/* ===========================================================================
   FT Global Portfolio — F.T. Solutions enterprise theme
   Same design language as the FTSPL Accounts portal (assets_app/css/enterprise.css):
   navy sidebar, enterprise blue, compact type, KPI tiles with accent bars,
   uppercase table heads, pill statuses, split-screen sign-in, dark mode.
   Loaded after styles.css so it wins.
   ======================================================================== */
:root {
  --ink-900: #0d1b2a; --ink-800: #16263a; --ink-700: #243447; --ink-600: #3a4d63; --ink-500: #5b7186;
  --ink-400: #8296a9; --ink-300: #b3c1cd; --ink-200: #d9e1e8; --ink-100: #eef2f6; --ink-050: #f6f8fa;
  --brand-700: #0b4f8a; --brand-500: #1177cc; --brand-400: #3f95dc;
  --green-600: #15803d; --green-500: #1ca350; --green-100: #dcf5e5;
  --amber-600: #b45309; --amber-500: #e08a09; --amber-100: #fdf0d5;
  --red-600: #b91c1c; --red-500: #dc2f2f; --red-100: #fbe3e3;
  --violet-600: #6d28d9; --violet-100: #ece4fb; --teal-600: #0f766e; --teal-100: #d6f2ef;
  --ok: var(--green-600); --ok-50: var(--green-100); --warn: var(--amber-600); --warn-50: var(--amber-100);
  --bad: var(--red-600); --bad-50: var(--red-100); --info: var(--brand-700); --info-50: var(--brand-100);
  --violet: var(--violet-600); --violet-50: var(--violet-100); --muted-50: var(--ink-100);
  --shadow-sm: 0 1px 2px rgba(13,27,42,.06), 0 1px 3px rgba(13,27,42,.05);
  --shadow: 0 2px 6px rgba(13,27,42,.07), 0 6px 18px rgba(13,27,42,.06);
  --shadow-lg: 0 10px 34px rgba(13,27,42,.13);
  --sidebar-w: 252px; --sidebar-min: 68px; --topbar-h: 58px;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}
[data-theme="dark"] {
  --bg: #0c141d; --surface: #131e2a; --surface-2: #0f1924; --border: #223243; --border-strong: #2e4358; --line-soft: #1a2733;
  --text: #dde6ef; --text-2: #93a6b8; --text-3: #6f8497;
  --brand-50: #0f2233; --brand-100: #12283c; --accent-50: #12283c; --muted-50: #1a2733;
  --ok-50: #0f2a1c; --warn-50: #2e2310; --bad-50: #2e1616; --info-50: #12283c; --violet-50: #1f1833; --amber-50: #2e2310;
  --green-100: #0f2a1c; --amber-100: #2e2310; --red-100: #2e1616; --violet-100: #1f1833; --teal-100: #0d2624; --ink-100: #1a2733;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 2px 8px rgba(0,0,0,.45); --shadow-lg: 0 12px 36px rgba(0,0,0,.55);
  color-scheme: dark;
}
html { font-size: 90%; }
html, body { font-size: 13.2px; letter-spacing: -.005em; }
body { background: var(--bg) !important; color: var(--text); line-height: 1.55; }
h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 650; letter-spacing: -.02em; }
a { color: var(--brand); }
::selection { background: var(--brand-100); color: var(--brand-700); }
* { scrollbar-width: thin; scrollbar-color: var(--ink-300) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; } *::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 6px; }
[data-theme="dark"] * { scrollbar-color: #2e4358 transparent; }

/* ------------------------------------------------------------ console shell */
body.with-sidebar .app-side {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); z-index: 1040;
  background: linear-gradient(178deg, #0d1b2a 0%, #0a1622 100%); color: #c8d5e1;
  display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.05);
  transition: width .18s ease, transform .2s ease;
}
.app-side__brand { height: var(--topbar-h); flex: 0 0 var(--topbar-h); display: flex; align-items: center; gap: .65rem; padding: 0 1rem; border-bottom: 1px solid rgba(255,255,255,.07); overflow: hidden; text-decoration: none; }
.app-side__logo { width: 34px; height: 34px; border-radius: 9px; background: #fff; padding: 3px; object-fit: contain; flex: 0 0 34px; box-shadow: 0 2px 10px rgba(17,119,204,.35); }
.app-side__name { font-weight: 700; color: #fff; font-size: 14px; letter-spacing: -.02em; white-space: nowrap; line-height: 1.15; }
.app-side__sub { font-size: 9.5px; color: #7d93a8; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.app-side__role { margin: .75rem .8rem .2rem; padding: .55rem .7rem; border-radius: 9px; background: rgba(255,255,255,.05); display: flex; align-items: center; gap: .6rem; white-space: nowrap; overflow: hidden; }
.app-side__role i { color: var(--brand-400); width: 18px; text-align: center; }
.app-side__role b { color: #fff; font-size: 12.5px; font-weight: 600; display: block; }
.app-side__role small { color: #7d93a8; font-size: 10.5px; }
.app-side__scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: .3rem 0 1.2rem; }
.app-side__scroll::-webkit-scrollbar-thumb { background: #243447; }
.nav-group { margin-top: .15rem; }
.nav-group__head { width: 100%; display: flex; align-items: center; gap: .5rem; background: none; border: 0; padding: .7rem 1.05rem .35rem; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #63798d; font-weight: 700; cursor: pointer; white-space: nowrap; }
.nav-group__head:hover { color: #9fb3c6; }
.nav-group__caret { margin-left: auto; font-size: 9px; opacity: .7; transition: transform .18s; }
.nav-group.is-closed .nav-group__caret { transform: rotate(-90deg); }
.nav-group.is-closed .nav-group__body { display: none; }
.nav-link-x { display: flex; align-items: center; gap: .7rem; padding: .5rem 1.05rem; color: #bccbd8; font-size: 13px; border-left: 2.5px solid transparent; white-space: nowrap; transition: background .12s, color .12s; text-decoration: none; position: relative; }
.nav-link-x:hover { background: rgba(255,255,255,.055); color: #fff; }
.nav-link-x.active { background: linear-gradient(90deg, rgba(17,119,204,.28), rgba(17,119,204,.03)); color: #fff; border-left-color: var(--brand-400); font-weight: 560; }
.nav-link-x i { width: 17px; text-align: center; font-size: 13px; opacity: .88; flex: 0 0 17px; }
.nav-link-x.active i { color: var(--brand-400); opacity: 1; }
.nav-link-x .nav-badge { margin-left: auto; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 20px; background: var(--red-500); color: #fff; line-height: 1.5; }
.app-side__foot { border-top: 1px solid rgba(255,255,255,.07); padding: .65rem 1.05rem; font-size: 10.5px; color: #63798d; white-space: nowrap; overflow: hidden; }
.app-side__foot img { height: 22px; background: #fff; border-radius: 5px; padding: 2px 5px; vertical-align: middle; margin-left: 4px; }

body.with-sidebar .topbar { left: var(--sidebar-w); transition: left .18s ease; padding: 0 1.15rem; gap: .75rem; }
body.with-sidebar .main { margin-left: var(--sidebar-w); transition: margin-left .18s ease; }
body.with-sidebar .topbar .brand-logo { display: none; }
.top-title { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top-title small { display: block; font-size: 10.5px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* collapsed icon strip (desktop) */
body.side-min.with-sidebar .app-side { width: var(--sidebar-min); }
body.side-min.with-sidebar .topbar { left: var(--sidebar-min); }
body.side-min.with-sidebar .main { margin-left: var(--sidebar-min); }
body.side-min .app-side .app-side__brandtext, body.side-min .app-side .nav-link-x span, body.side-min .app-side .nav-group__head span,
body.side-min .app-side .nav-group__caret, body.side-min .app-side__role div, body.side-min .app-side__foot { display: none; }
body.side-min .app-side .nav-link-x { padding-left: 1.45rem; }
body.side-min .app-side .nav-link-x .nav-badge { position: absolute; top: 3px; right: 8px; padding: 0 5px; }
body.side-min .app-side .nav-group__head { justify-content: center; padding: .6rem 0 .2rem; }
body.side-min .app-side .nav-group__head::before { content: ''; width: 18px; height: 1px; background: rgba(255,255,255,.12); }
body.side-min .app-side .nav-group.is-closed .nav-group__body { display: block; }
body.side-min .app-side__brand { justify-content: center; padding: 0; }
body.side-min .app-side__role { justify-content: center; margin: .6rem .5rem; }

/* ------------------------------------------------------------ top bar */
.topbar { background: var(--surface) !important; border-bottom: 1px solid var(--border); height: var(--topbar-h); }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-2); display: inline-grid; place-items: center; cursor: pointer; font-size: 15px; flex: 0 0 36px; position: relative; }
.icon-btn:hover { background: var(--muted-50); color: var(--text); border-color: var(--border); }
.gsearch input { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.gsearch input:focus { background: var(--surface); }
.secure-pill { background: var(--ok-50); color: var(--ok); }
.session-pill { background: var(--muted-50); color: var(--text-2); }
.bell .count { background: var(--red-500); }
.brand-logo .mark { background: none !important; width: auto; height: auto; }
.brand-logo .mark img { width: 34px; height: 34px; object-fit: contain; }
.brand-logo .name { color: var(--text); }
.brand-logo .name small { color: var(--text-3); }

/* ------------------------------------------------------------ page scaffolding */
.main { padding-top: calc(var(--topbar-h) + 18px); padding-left: 1.35rem; padding-right: 1.35rem; }
.page-head { margin-bottom: 1.1rem; align-items: flex-start; }
.page-head h1 { font-size: 21px; font-weight: 680; letter-spacing: -.025em; }
.page-head p { font-size: 12.8px; color: var(--text-2); }
.crumb { font-size: 10.5px; letter-spacing: .1em; color: var(--text-3); }
.crumb a { color: var(--text-3); }

/* ------------------------------------------------------------ cards / KPI */
.card-x { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: var(--surface); }
.card-x .card-h { padding: .8rem 1.05rem; border-bottom: 1px solid var(--line-soft); }
.card-x .card-h h6 { font-size: 13.6px; font-weight: 650; }
.card-x .card-b, .card-x.pad { padding: 1.05rem; }
.kpi { position: relative; overflow: hidden; background: var(--surface) !important; border-radius: var(--radius); padding: .95rem 1rem .9rem 1.15rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.kpi::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--brand-500); }
.kpi.k-ok::before { background: var(--green-500); } .kpi.k-warn::before { background: var(--amber-500); } .kpi.k-bad::before { background: var(--red-500); }
.kpi.k-violet::before { background: var(--violet-600); } .kpi.k-muted::before { background: var(--ink-400); } .kpi.k-teal::before { background: var(--teal-600); }
.kpi .kpi-label { font-size: 10.3px; text-transform: uppercase; letter-spacing: .085em; color: var(--text-3); font-weight: 650; }
.kpi .kpi-icon { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
.kpi .kpi-value { font-size: 23px; font-weight: 700; letter-spacing: -.03em; margin-top: .3rem; }
.kpi .kpi-sub { font-size: 11.4px; color: var(--text-2); }
a.kpi:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.kpi-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* ------------------------------------------------------------ status pills */
.sb { text-transform: none; letter-spacing: .005em; font-size: 11px; font-weight: 650; padding: 2px 9px 2px 8px; }
.sb::before { width: 6px; height: 6px; }

/* ------------------------------------------------------------ tables */
.table-x th { background: var(--surface-2); color: var(--text-3); font-size: 10.4px; font-weight: 680; letter-spacing: .07em; padding: .6rem .75rem; border-bottom: 1px solid var(--border); }
.table-x td { padding: .6rem .75rem; border-bottom: 1px solid var(--line-soft); font-size: 12.8px; }
.table-x tbody tr:hover td { background: var(--brand-50); }

/* ------------------------------------------------------------ buttons & forms */
.btn { border-radius: 8px; font-weight: 600; font-size: 12.6px; padding: .42rem .85rem; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.btn-sm { font-size: 11.8px; padding: .28rem .6rem; border-radius: 7px; }
.btn-lg { font-size: 14px; padding: .6rem 1.15rem; border-radius: 10px; }
.btn-brand { background: var(--brand); border-color: var(--brand); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-700); border-color: var(--brand-700); }
.btn-soft { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--muted-50); color: var(--text); border-color: var(--border-strong); }
.form-control, .form-select { border-radius: 8px; border-color: var(--border); font-size: 13px; background-color: var(--surface); color: var(--text); }
.form-control:focus, .form-select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); background-color: var(--surface); color: var(--text); }
.form-label { font-size: 12px; color: var(--text); font-weight: 600; }
.input-group-text { background: var(--surface-2); border-color: var(--border); color: var(--text-2); }
.nav-tabs-x { border-bottom: 1px solid var(--border); gap: .1rem; }
.nav-tabs-x a { font-size: 12.8px; padding: .6rem .9rem; color: var(--text-2); border-radius: 7px 7px 0 0; }
.nav-tabs-x a:hover { background: rgba(127,127,127,.07); color: var(--text); }
.nav-tabs-x a.active { color: var(--brand); border-bottom-color: var(--brand); }

/* dark-mode fixes for Bootstrap bits that ignore our variables */
[data-theme="dark"] .modal-content, [data-theme="dark"] .dropdown-menu { background: var(--surface); color: var(--text); border-color: var(--border); }
[data-theme="dark"] .dropdown-item { color: var(--text); } [data-theme="dark"] .dropdown-item:hover { background: var(--muted-50); }
[data-theme="dark"] .alert-light { background: var(--surface-2); color: var(--text); border-color: var(--border) !important; }
[data-theme="dark"] .text-dark { color: var(--text) !important; }
[data-theme="dark"] .bg-white { background: var(--surface) !important; }
[data-theme="dark"] .border, [data-theme="dark"] .border-top, [data-theme="dark"] .border-bottom, [data-theme="dark"] .border-end { border-color: var(--border) !important; }
[data-theme="dark"] .qty input { background: var(--surface); color: var(--text); }
[data-theme="dark"] .invoice, [data-theme="dark"] .ship-label { background: #fff; color: #111; }
[data-theme="dark"] .p-img, [data-theme="dark"] .pimg { background-color: #e9eef3; }
[data-theme="dark"] .hero { background: linear-gradient(160deg, #0f1c2b, #131e2a) !important; }

/* ------------------------------------------------------------ sign-in (Accounts portal style) */
body.auth-mode .main { padding: 0 !important; margin: 0 !important; max-width: none; }
body.auth-mode .topbar, body.auth-mode .bottom-nav { display: none !important; }
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth__brand { background: linear-gradient(160deg, #0d1b2a 0%, #0f2f4f 58%, #0f62ae 130%); color: #dbe7f3; padding: clamp(2rem, 6vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; gap: 1.4rem; }
.auth__logo { width: 62px; height: 62px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.auth__logo img { width: 46px; height: 46px; object-fit: contain; }
.auth__brand h1 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 750; color: #fff; line-height: 1.15; margin: 0; }
.auth__brand h1 small { display: block; font-size: .5em; font-weight: 500; color: #9fb9d3; margin-top: .5rem; letter-spacing: .02em; }
.auth__brand ul { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .85rem; max-width: 34rem; }
.auth__brand li { display: flex; gap: .8rem; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.auth__brand li i { width: 1.3rem; text-align: center; margin-top: .2rem; color: #6db3f2; flex: 0 0 auto; }
.auth__foot { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7f9bb8; margin: 1rem 0 0; }
.auth__panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(1.25rem, 4vw, 3rem); gap: 1.2rem; background: var(--bg); }
.auth__card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: clamp(1.4rem, 3.5vw, 2.2rem); }
.auth__mark { display: block; height: 48px; width: auto; margin: 0 0 1.3rem; }
[data-theme="dark"] .auth__mark { filter: brightness(0) invert(1); opacity: .92; }
.auth__card h2 { font-size: 20px; font-weight: 720; margin: 0 0 .25rem; }
.auth__lead { color: var(--text-2); font-size: 13px; margin: 0 0 1.1rem; }
.auth__card .form-control { height: 44px; font-size: 14px; border-radius: 10px; }
.auth__alert { background: var(--red-100); color: var(--red-600); border-radius: 10px; padding: .6rem .8rem; font-size: 12.5px; margin-bottom: .8rem; }
.auth__legal { font-size: 11.5px; color: var(--text-3); margin: 0; }
.auth__back { position: absolute; top: 14px; right: 16px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { padding: 1.6rem 1.25rem; gap: .8rem; }
  .auth__brand ul, .auth__foot { display: none; }
  .auth__brand h1 { font-size: 1.45rem; }
}

/* ------------------------------------------------------------ product imagery */
.pimg { position: relative; background: linear-gradient(180deg, #f6f8fb, #eceff5); overflow: hidden; display: block; }
.pimg img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; transition: transform .25s; }
.p-card:hover .pimg img { transform: scale(1.04); }
.pimg .p-tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; z-index: 1; }
.pimg .img-count { position: absolute; bottom: 8px; right: 8px; font-size: 10.5px; background: rgba(13,27,42,.6); color: #fff; border-radius: 20px; padding: 1px 7px; }
.pthumb { width: 42px; height: 42px; border-radius: 8px; object-fit: contain; background: #f1f4f8; border: 1px solid var(--border); flex: 0 0 auto; }
.gallery-main { aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--border); overflow: hidden; background: linear-gradient(180deg, #f6f8fb, #eceff5); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); box-shadow: var(--shadow); color: #16263a; }
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs img { width: 70px; height: 70px; object-fit: contain; border-radius: 10px; border: 2px solid var(--border); background: #f1f4f8; cursor: pointer; flex: 0 0 auto; }
.gallery-thumbs img.sel { border-color: var(--brand); }
.img-mgr { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.img-tile { position: relative; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #f1f4f8; aspect-ratio: 1; }
.img-tile img { width: 100%; height: 100%; object-fit: contain; }
.img-tile .cover { position: absolute; top: 6px; left: 6px; font-size: 10px; background: var(--brand); color: #fff; border-radius: 20px; padding: 1px 7px; font-weight: 700; }
.img-tile .ops { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; padding: 5px; background: linear-gradient(transparent, rgba(13,27,42,.65)); }
.img-tile .ops button { width: 26px; height: 26px; border-radius: 6px; border: 0; background: rgba(255,255,255,.92); color: #16263a; font-size: 11px; }
.img-add { border: 2px dashed var(--border-strong); border-radius: 10px; aspect-ratio: 1; display: grid; place-items: center; text-align: center; color: var(--text-2); cursor: pointer; font-size: 12px; background: var(--surface-2); }
.img-add:hover { border-color: var(--brand); color: var(--brand); }

/* ------------------------------------------------------------ misc components */
.attn { display: flex; align-items: center; gap: .75rem; padding: .7rem .2rem; border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.attn:last-child { border-bottom: 0; }
.attn:hover { background: var(--brand-50); }
.attn .n { margin-left: auto; font-weight: 700; font-size: 16px; }
.attn .ai { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 32px; }
.policy h5 { font-size: 14px; margin-top: 1.1rem; }
.policy ul, .policy ol { padding-left: 1.2rem; margin-bottom: .4rem; }
.policy li { margin-bottom: .25rem; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat .m { max-width: 82%; padding: .6rem .8rem; border-radius: 12px; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); }
.chat .m.me { align-self: flex-end; background: var(--brand-50); border-color: var(--brand-100); }
.chat .m .t { font-size: 10.5px; color: var(--text-3); margin-top: 4px; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-grid img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); cursor: zoom-in; background: #f1f4f8; }
.theme-ic-dark { display: none; } [data-theme="dark"] .theme-ic-dark { display: inline; } [data-theme="dark"] .theme-ic-light { display: none; }
.hero { background: radial-gradient(1000px 380px at 8% -10%, #e3f0fb 0%, transparent 60%), radial-gradient(700px 380px at 100% 0%, #eef2f6 0%, transparent 60%), var(--surface); border-radius: 18px; }
.site-foot img { height: 30px; }
.pay-tabs .nav-link.active, .opt.sel { background: var(--brand-50); }
[data-theme="dark"] .scanner { background: #05090e; }
[data-theme="dark"] .kcol { background: var(--surface-2); }
[data-theme="dark"] .json { background: #070d14; }
[data-theme="dark"] .rx-flag { background: #3a1616; border-color: #5a2222; }
[data-theme="dark"] .p-card { background: var(--surface); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 991.98px) {
  body.with-sidebar .app-side { transform: translateX(-100%); width: var(--sidebar-w) !important; box-shadow: var(--shadow-lg); }
  body.with-sidebar.sidebar-open .app-side { transform: none; }
  body.with-sidebar .topbar, body.side-min.with-sidebar .topbar { left: 0; }
  body.with-sidebar .main, body.side-min.with-sidebar .main { margin-left: 0; }
  body.with-sidebar .topbar .brand-logo { display: flex; }
  body.with-sidebar .top-title { display: none; }
  body.sidebar-open .sidebar-backdrop { inset: 0; z-index: 1035; }
  body.side-min .app-side .app-side__brandtext, body.side-min .app-side .nav-link-x span, body.side-min .app-side .nav-group__head span, body.side-min .app-side__role div, body.side-min .app-side__foot { display: revert; }
  .main { padding-left: 1rem; padding-right: 1rem; }
}
@media (max-width: 575.98px) {
  .kpi .kpi-value { font-size: 19px; }
  .page-head h1 { font-size: 18px; }
  .auth__card { border-radius: 12px; }
}
@media print { .app-side { display: none !important; } }
.pimg { display: grid; place-items: center; }
.pimg-fb { font-size: 44px; color: rgba(255,255,255,.95); }

.pimg img { position: absolute; inset: 0; }
.pd-wrap { max-width: 1240px; margin: 0 auto; }
.pd-title { color: var(--text); }
@media (max-width: 575.98px) { .invoice { overflow-x: auto; } .invoice > .row > .col-6 { flex: 0 0 100%; max-width: 100%; } }
