:root { --brand: #1f4e79; --brand-dark: #153a5b; }
body { background: #f3f5f9; }
.topbar { background: var(--brand-dark); height: 56px; }
.sidebar { position: fixed; top: 56px; bottom: 0; left: 0; width: 230px; background: #fff; border-right: 1px solid #e3e7ee; z-index: 100; }
.sidebar .nav-link { color: #3b4a5a; border-radius: 8px; padding: .65rem .9rem; display: block; }
.sidebar .nav-link:hover { background: #eef2f8; }
.sidebar .nav-link.active { background: var(--brand); color: #fff; }
.content { margin-left: 230px; padding: 1.5rem; }
@media (max-width: 991.98px) {
  .sidebar { position: fixed; top: 0; width: 260px; }
  .content { margin-left: 0; padding: 1rem .75rem; }
}
.card { border: 0; box-shadow: 0 1px 3px rgba(20, 40, 70, .08); border-radius: 12px; }
.stat-card .stat { font-size: 1.6rem; font-weight: 600; color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.table > :not(caption) > * > * { vertical-align: middle; }
.table-actions { white-space: nowrap; }
.text-end-num { text-align: right; font-variant-numeric: tabular-nums; }
.items-table input, .items-table select { min-width: 90px; }
.items-table .desc { min-width: 180px; }
.chat-msg { border-radius: 10px; padding: .75rem 1rem; margin-bottom: .75rem; }
.chat-msg.cust { background: #e8f0fa; }
.chat-msg.adm { background: #e6f4ea; }
@media (max-width: 767.98px) {
  .stack-sm .btn { width: 100%; margin-bottom: .4rem; }
}
.brand-logo { height: 34px; max-width: 120px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px 4px; vertical-align: middle; }

/* Guest (login / register): full-screen graphic background with the form floating on top */
.guest-bg { min-height: 100vh; background: #153a5b; }
.guest-hero {
  position: fixed; inset: 0; z-index: 0; color: #fff; display: flex; align-items: center; padding: 2.5rem 4vw; overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.10) 0 2px, transparent 3px) 0 0 / 38px 38px,
    radial-gradient(900px 500px at 10% 0%, #2c7a7b 0%, transparent 60%),
    linear-gradient(150deg, #0f3050 0%, #1f4e79 55%, #17606a 100%);
}
.guest-hero::before, .guest-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); }
.guest-hero::before { width: 520px; height: 520px; right: -160px; top: -160px; }
.guest-hero::after { width: 380px; height: 380px; left: -120px; bottom: -140px; }
.hero-inner { position: relative; z-index: 1; width: 46%; max-width: 560px; }
.hero-brand { font-size: 1.15rem; font-weight: 600; letter-spacing: .4px; opacity: .95; }
.hero-title { font-size: 2rem; font-weight: 700; line-height: 1.2; margin: 1.2rem 0 .6rem; }
.hero-sub { opacity: .85; margin-bottom: 1rem; }
.hero-art { width: 100%; max-width: 500px; display: block; margin: .5rem 0 1rem; }
.hero-points { list-style: none; padding: 0; margin: 0; }
.hero-points li { padding: .3rem 0; opacity: .95; }
.hero-points i { color: #7ee0c9; margin-right: .5rem; }
.guest-wrap { position: relative; z-index: 1; display: flex; justify-content: flex-end; min-height: 100vh; }
.guest-form { width: 54%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem 1.25rem; }
.guest-form .card { box-shadow: 0 18px 50px rgba(5, 20, 40, .35); }
.guest-brand-mobile { display: none; font-size: 1.25rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
@media (max-width: 991.98px) {
  .guest-hero { padding: 0; align-items: flex-end; justify-content: center; }
  .hero-inner { width: 100%; max-width: none; }
  .hero-brand, .hero-title, .hero-sub, .hero-points { display: none; }
  .hero-art { max-width: 420px; margin: 0 auto; opacity: .35; }
  .guest-wrap { justify-content: center; }
  .guest-form { width: 100%; justify-content: flex-start; padding-top: 2rem; }
  .guest-brand-mobile { display: block; }
}
