@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');
html, body { overflow-x: hidden; max-width: 100%; }

/* Replaces Bootstrap's row, col-N, btn, form-control and nav-tabs classes
   used lower on this page (Admin Tools panels, Quick Links, and
   menu_1.php's dashboard panels) - added 2026-09-16 as part of removing
   the framework dependency from these files. Mobile-first: base =
   stacked full-width, fraction applied at >=768px (matches Bootstrap
   3's sm breakpoint, which is what the original col-sm-N classes this
   replaces were keyed to). NOTE: this comment used to read "row/col-
   asterisk-slash-btn" as shorthand, which accidentally closed this
   comment early (an asterisk immediately followed by a slash always
   ends a CSS comment, even mid-word) and silently killed the
   .is-row{display:flex} rule below site-wide from 2026-09-16 until
   found and fixed 2026-09-17. Avoid writing wildcard-class shorthand
   like that right before a slash in any CSS comment. */
.is-row { display: flex; flex-wrap: wrap; }
.is-col-2, .is-col-3, .is-col-4, .is-col-6, .is-col-8, .is-col-10, .is-col-12 {
    flex: 0 0 100%; max-width: 100%; box-sizing: border-box;
}
@media (min-width: 768px) {
    .is-col-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
    .is-col-3  { flex: 0 0 25%;      max-width: 25%; }
    .is-col-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .is-col-6  { flex: 0 0 50%;      max-width: 50%; }
    .is-col-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
    .is-col-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
    .is-col-12 { flex: 0 0 100%;     max-width: 100%; }
}
/* menu_1.php's outer dashboard-panel grid needs a 3rd tier (was
   col-xs-12 col-sm-6 col-md-4: full-width below 768px, half from
   768-991px, a third from 992px up) - a separate class since the
   inner-row fractions above only have one breakpoint. */
/* Widened from 1/2/3-column (100%/50%/33%) to 2 columns minimum even on
   phones, scaling up to 6 on very wide screens - smaller boxes, more of
   them visible at once, direct request 2026-09-17. */
.is-panel-col { flex: 0 0 50%; max-width: 50%; box-sizing: border-box; padding: 0 6px; }
@media (min-width: 768px) { .is-panel-col { flex: 0 0 33.3333%; max-width: 33.3333%; } }
@media (min-width: 992px) { .is-panel-col { flex: 0 0 25%; max-width: 25%; } }
@media (min-width: 1200px) { .is-panel-col { flex: 0 0 20%; max-width: 20%; } }
@media (min-width: 1600px) { .is-panel-col { flex: 0 0 16.6667%; max-width: 16.6667%; } }
.is-container-fluid { width: 100%; box-sizing: border-box; padding: 0 15px; }
.is-pull-left  { float: left; }
.is-pull-right { float: right; }
.is-btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
}
.is-btn-xs { padding: 2px 8px; font-size: 11px; }
.is-btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 3px; }
.is-btn-success { background: #1f8a55; }
.is-btn-success:hover { background: #196e44; }
.is-btn-warning { background: #c9971f; }
.is-btn-warning:hover { background: #a67c19; }
/* Matches Bootstrap 3's actual btn-primary/btn-info default colors -
   menu_1.php's 2 live uses of these never had their own color override
   (everything else there uses inline style="background-color:..."), so
   this needs to reproduce the real default, not invent a new one. */
.is-btn-primary { background: #337ab7; }
.is-btn-primary:hover { background: #286090; }
.is-btn-info { background: #5bc0de; }
.is-btn-info:hover { background: #31b0d5; }
/* Matches Bootstrap 3's label component (distinct from .badge) - one
   live use (label-danger) with no existing color override anywhere. */
.is-label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}
.is-label-danger { background: #d9534f; }
.is-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
}
.is-input:focus { outline: none; border-color: var(--gold); }
/* Just a plain list reset - the actual Quick Links tab widget nested
   inside pages2.php uses its own separate, unrelated legacy library
   (ajaxtabs.js), not this class. */
.is-quicklinks-list { list-style: none; margin: 0; padding: 0; }
/* ── Hide the existing top navbar from mulmenu.php on this page only ── */
.menu-header-row { display: none !important; }
nav.menu-bar     { display: none !important; }

.theme-panel {
    position: fixed;
    top: 74px;
    right: 16px;
    width: 250px;
    z-index: 1205;
    background: #fff;
    border: 1px solid #d7e2f2;
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(16, 48, 84, 0.18);
    padding: 14px;
    display: none;
}
.theme-panel.tp-open { display: block; }
.theme-panel h6 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #14325a;
}
.theme-panel .theme-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.theme-panel label {
    font-size: 12px;
    font-weight: 600;
    color: #334e72;
}
.theme-panel input[type="color"] {
    width: 100%;
    height: 44px;
    border: 1px solid #cddcf0;
    border-radius: 10px;
    padding: 4px;
    background: #fff;
}
.theme-panel .theme-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.theme-panel .theme-actions button {
    flex: 1;
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    color: #fff;
    background: var(--taj-theme-color);
}
.theme-panel .theme-actions button.secondary {
    background: #7a8798;
}

/* ═══════════════════════════════════════
   ISLAMIC THEME — CSS VARIABLES
═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}

/* ═══════════════════════════════════════
   THEME PRESETS (2026-09-17) - admin_dashboard.php only for now (the
   toggle UI lives there). Attribute-gated (:root[data-theme="x"]) so this
   is completely inert everywhere else on the site - nothing else ever
   sets data-theme on <html>, so welcome.php/welcome_new.php/etc. are
   unaffected. Higher specificity than a plain `:root{}` rule (attribute
   selector adds a step), so these correctly override each page's own
   inline :root block regardless of source order - specificity beats
   position in the cascade. "Light" is the existing default look
   (unchanged, no override block needed - it's just whatever each page's
   own :root already sets).
═══════════════════════════════════════ */
:root[data-theme="dark"] {
    --bg:          #12181a;
    --card:        #1b2422;
    --line:        #2c3733;
    --ink:         #e6e8e6;
    --muted:       #8fa08f;
    --gold-pale:   rgba(201,162,39,.15);
    --isl-mid:     #2f8f5c;
    --isl-light:   #3fae74;
    --search-bg:   #1b2422;
    --search-ink:  #e6e8e6;
}
:root[data-theme="teal"] {
    --isl-deep:    #0d3d3d;
    --isl-dark:    #115757;
    --isl-mid:     #1a7a7a;
    --isl-light:   #2ba3a3;
    --bg:          #eef7f7;
    --card:        #ffffff;
    --line:        #cfe6e6;
    --ink:         #16302f;
    --muted:       #4f7373;
    --gold-pale:   #d7f0ef;
    --search-bg:   #eef7f7;
    --search-dark: #115757;
    --search-mid:  #1a7a7a;
    --search-deep: #0d3d3d;
    --search-ink:  #16302f;
}
:root[data-theme="titanium"] {
    --isl-deep:    #33383b;
    --isl-dark:    #43484c;
    --isl-mid:     #656d72;
    --isl-light:   #8a9298;
    --gold:        #9aa3a8;
    --gold-light:  #b7bfc3;
    --gold-pale:   #e7e9eb;
    --bg:          #f1f2f3;
    --card:        #ffffff;
    --line:        #dde0e2;
    --ink:         #2a2e30;
    --muted:       #6b7378;
    --search-bg:   #f1f2f3;
    --search-dark: #43484c;
    --search-mid:  #656d72;
    --search-deep: #33383b;
    --search-ink:  #2a2e30;
}
/* start.php (shared by almost every page) opens <body class="text-bg-light
   px-3"> - Bootstrap's .px-3 utility adds 1rem of !important left/right
   padding. Originally tried to override this with a plain `body{}` rule,
   but that never actually worked: .px-3 is a class selector (specificity
   0-1-0), and when two !important declarations compete, specificity is
   still the tiebreaker, not source order - a lower-specificity `body{}`
   rule can never beat a class selector no matter which loads later. Also,
   this file now loads on every page (moved to start.php's own <head> to
   fix a separate flash-of-unstyled-content bug), so removing this padding
   here removes it everywhere px-3 appears, not just welcome.php - matches
   the same side-padding also being reported on login.php (2026-09-16). */
body.px-3 { padding: 0 !important; }

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.is-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--isl-dark);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 4px 0 24px rgba(0,0,0,.35);
    transition: transform .3s ease;
}

/* Islamic geometric SVG pattern overlay */
.is-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='rgba(201,162,39,0.08)' stroke-width='1'%3E%3Cpolygon points='30,2 56,16 56,44 30,58 4,44 4,16'/%3E%3Cpolygon points='30,10 50,21 50,43 30,54 10,43 10,21'/%3E%3Cline x1='30' y1='2' x2='30' y2='10'/%3E%3Cline x1='56' y1='16' x2='50' y2='21'/%3E%3Cline x1='56' y1='44' x2='50' y2='43'/%3E%3Cline x1='30' y1='58' x2='30' y2='54'/%3E%3Cline x1='4' y1='44' x2='10' y2='43'/%3E%3Cline x1='4' y1='16' x2='10' y2='21'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* ── Brand / Logo area ── */
.is-brand {
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(201,162,39,.25);
    flex-shrink: 0;
    position: relative;
}
.is-brand-name {
    font-family: 'Amiri', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: .5px;
    line-height: 1.2;
}
.is-brand-sub {
    font-size: 11px;
    color: rgba(255,255,255,.5);
    margin-top: 2px;
    letter-spacing: .3px;
}
.is-crescent {
    font-size: 22px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ── User block ── */
.is-user-block {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.is-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--isl-deep);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
    flex-shrink: 0;
    border: 2px solid rgba(201,162,39,.4);
}
.is-user-name  { font-size: 13px; font-weight: 600; color: #fff; }
.is-user-role  { font-size: 11px; color: rgba(255,255,255,.5); }

/* ── Nav section label ── */
.is-nav-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(201,162,39,.6);
    padding: 14px 18px 4px;
    flex-shrink: 0;
}

/* ── Scrollable nav area ──
   Still scrolls (wheel/touch/keyboard) - only the visible scrollbar itself
   is hidden (2026-09-18, per direct request), same technique already used
   for #menu.nav.nav-tabs further down this file. */
.is-nav-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.is-nav-scroll::-webkit-scrollbar { width: 0; display: none; }

/* ── Nav items moved from mulmenu.php's Bootstrap 5 navbar ── */
#sidebarMenu { padding: 4px 6px; }

/* top-level group items - bigger font + icon, tighter side padding to
   suit the narrower sidebar (2026-09-17: --sidebar-w 215px -> 185px). */
#sidebarMenu .nav-item > .nav-link,
#sidebarMenu .nav-item > a {
    color: rgba(255,255,255,.82) !important;
    border-radius: 8px !important;
    padding: 9px 8px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    transition: background .15s, color .15s !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
}
#sidebarMenu .is-nav-icon { font-size: 14px; flex-shrink: 0; }
#sidebarMenu .nav-item > .nav-link:hover,
#sidebarMenu .nav-item > a:hover {
    background: var(--isl-mid) !important;
    color: var(--gold-light) !important;
    text-decoration: none !important;
}

/* dropdown menus inside sidebar */
#sidebarMenu .dropdown-menu {
    position: static !important;
    float: none !important;
    background: rgba(0,0,0,.18) !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 4px 0 4px 10px !important;
    margin: 2px 0 4px !important;
    display: none;
}
#sidebarMenu .dropdown-menu.show { display: block !important; }
#sidebarMenu .dropdown-item {
    color: rgba(255,255,255,.72) !important;
    font-size: 13.5px !important;
    padding: 7px 8px !important;
    border-radius: 6px !important;
    white-space: normal !important;
}
#sidebarMenu .dropdown-item:hover {
    background: var(--isl-mid) !important;
    color: var(--gold-light) !important;
}
/* sub-submenu */
#sidebarMenu .dropdown-submenu > .dropdown-menu {
    padding-left: 10px !important;
}
/* caret arrow */
#sidebarMenu .dropdown-toggle::after {
    margin-left: auto;
    flex-shrink: 0;
}
/* search bar inside moved nav */
#sidebarMenu #menuSearch,
#sidebarMenu input#menuSearch {
    width: 100% !important; border-radius: 8px !important;
    background: rgba(0,0,0,.25) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    color: #fff !important; padding: 7px 12px !important;
    font-size: 12px !important; margin: 4px 0 8px !important;
    box-shadow: none !important; outline: none !important;
}
#sidebarMenu #menuSearch::placeholder,
#sidebarMenu input#menuSearch::placeholder { color: rgba(255,255,255,.4) !important; }
#sidebarMenu #menuSearch:focus,
#sidebarMenu input#menuSearch:focus {
    background: rgba(0,0,0,.35) !important;
    border-color: var(--gold) !important;
}
/* hide mobile-only elements that don't make sense in sidebar */
#sidebarMenu #mobileBackRow { display: none !important; }
#sidebarMenu .navbar-nav { flex-direction: column !important; width: 100%; }
/* all link states — keep dark background, no white bleed from Bootstrap */
#sidebarMenu a,
#sidebarMenu a:link,
#sidebarMenu a:visited,
#sidebarMenu a:focus,
#sidebarMenu a:active,
#sidebarMenu .dropdown-item,
#sidebarMenu .dropdown-item:visited,
#sidebarMenu .dropdown-item:focus,
#sidebarMenu .dropdown-item:active,
#sidebarMenu .nav-link,
#sidebarMenu .nav-link:visited,
#sidebarMenu .nav-link:focus,
#sidebarMenu .nav-link:active {
    background: transparent !important;
    color: rgba(255,255,255,.82) !important;
    outline: none !important;
    box-shadow: none !important;
}
/* open (show) state — level 2 toggle stays gold while its submenu is open */
#sidebarMenu li.show > a.dropdown-toggle,
#sidebarMenu li.show > a.dropdown-item {
    background: var(--isl-mid) !important;
    color: var(--gold-light) !important;
}
/* hover always wins */
#sidebarMenu a:hover,
#sidebarMenu .dropdown-item:hover,
#sidebarMenu .nav-link:hover {
    background: var(--isl-mid) !important;
    color: var(--gold-light) !important;
    text-decoration: none !important;
}

/* prevent any JS from hiding top-level items */
#sidebarMenu .navbar-nav > li.nav-item { display: block !important; }
/* all dropdown-menus hidden until .show is toggled by JS */
#sidebarMenu .dropdown-menu,
#sidebarMenu .dropdown-menu.show { display: none !important; }
#sidebarMenu li.show > .dropdown-menu { display: block !important; }

/* ── Sidebar footer ── */
.is-sidebar-footer {
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
    display: flex; gap: 6px;
}
.is-sf-btn {
    flex: 1;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.7);
    border-radius: 8px;
    padding: 6px 4px;
    font-size: 11px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
    display: inline-block;
}
.is-sf-btn:hover { background: var(--isl-mid); color: var(--gold-light); text-decoration: none; }

/* ── Sidebar toggle (hamburger) — lives inside topnav ── */
#sidebarToggle {
    display: none;
    background: rgba(255,255,255,.15);
    color: var(--gold-light);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    width: 40px; height: 40px;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
#sidebarToggle:hover { background: rgba(255,255,255,.25); }

/* ═══════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════ */
.is-main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Top navbar ── */
.is-topnav {
    background: linear-gradient(130deg, var(--isl-deep) 0%, var(--isl-dark) 60%, #145c35 100%);
    padding: 10px 20px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    position: sticky; top: 0; z-index: 500;
    flex-wrap: wrap; gap: 8px;
}
.is-topnav-left {
    display: flex; align-items: center; gap: 10px;
}
.is-greeting {
    font-size: 14px; color: rgba(255,255,255,.7);
}
.is-topnav-store {
    font-size: 13px;
    color: var(--gold-light);
    font-weight: 600;
}
.is-topnav-centre {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    justify-content: center; flex: 1;
}
.is-tn-tool {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: 3px 8px;
}
/* Style the store-switch select that comes from mulmenu.php */
.is-tn-tool select,
#allowed-store-select {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    max-width: 160px;
}
.is-tn-tool select option { background: var(--isl-dark); color: #fff; }
.is-tn-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 6px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff; text-decoration: none;
    transition: background .15s;
}
.is-tn-btn:hover { background: rgba(255,255,255,.22); color: #fff; text-decoration: none; }
.is-tn-logout { background: rgba(220,53,69,.35); border-color: rgba(220,53,69,.5); }
.is-tn-logout:hover { background: rgba(220,53,69,.6); }
.is-topnav-right {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.is-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
    text-decoration: none; transition: opacity .15s;
}
.is-badge:hover { opacity: .85; text-decoration: none; }
.is-badge-warn   { background: #fef3c7; color: #78350f; }
.is-badge-danger { background: #fee2e2; color: #991b1b; }
.is-badge-glass  { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); }
#liveClock { font-size: 12px; color: rgba(255,255,255,.65); font-variant-numeric: tabular-nums; min-width: 80px; }

/* ═══════════════════════════════════════
   TOP NAVBAR v2 (redesigned 2026-09-17)
   welcome_new.php only - welcome.php still uses .is-topnav/-left/-centre/
   -right above untouched, since it doesn't share any of these class
   names. Store switch/user switch/theme/old-dashboard link (used to be
   five loose buttons crammed into a wrapping .is-topnav-centre strip)
   are consolidated into the .is-tn2-menu overflow panel; identity stays
   left, live status + logout stay always-visible right.
═══════════════════════════════════════ */
.is-topnav-v2 {
    background: linear-gradient(130deg, var(--isl-deep) 0%, var(--isl-dark) 60%, #145c35 100%);
    padding: 6px 18px;
    margin: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    position: sticky; top: 0; z-index: 500;
    flex-wrap: wrap;
}
/* Slim down the shared widgets (hamburger/badges/buttons/clock) only
   inside this header - their base rules are shared with welcome.php's
   untouched .is-topnav, so sizing is overridden here via descendant
   selectors rather than editing those shared rules directly. */
.is-topnav-v2 #sidebarToggle { width: 30px; height: 30px; font-size: 15px; }
.is-topnav-v2 .is-badge { padding: 3px 8px; font-size: 11px; }
.is-topnav-v2 .is-tn-btn { padding: 3px 8px; font-size: 11px; }
.is-topnav-v2 #liveClock { font-size: 11px; min-width: 0; }

.is-tn2-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.is-tn2-identity { min-width: 0; }
.is-tn2-greeting { font-size: 12.5px; color: rgba(255,255,255,.75); white-space: nowrap; }
.is-tn2-greeting strong { color: #fff; }
.is-tn2-context {
    font-size: 11.5px; color: var(--gold-light); font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.is-tn2-dot { color: rgba(255,255,255,.4); }

.is-tn2-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Universal search, relocated into the topnav (2026-09-17). search_new_v2.php's
   own markup/CSS (.search-shell/.search-bar-wrap/#txtHint, defined in
   css/app/search.css and duplicated inline in that file) is reused
   completely unchanged - only the surrounding position/sizing is scoped
   here, via descendant selectors, so nothing shared with the live
   dashboard's search is touched. */
.is-tn2-search { position: relative; flex: 1 1 360px; max-width: 480px; min-width: 0; }
.is-tn2-search .search-shell { background: transparent; border: none; box-shadow: none; padding: 0; margin: 0; }
.is-tn2-search .search-shell-head { display: none; }
.is-tn2-search .search-bar-wrap { background: rgba(255,255,255,.95); }
.is-tn2-search #txtHint {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    margin-top: 0; z-index: 600;
}

.is-tn2-menu { position: relative; }
.is-tn2-menu-btn {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 7px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    color: #fff; font-size: 12px; cursor: pointer;
    transition: background .15s;
}
.is-tn2-menu-btn:hover, .is-tn2-menu.is-open .is-tn2-menu-btn { background: rgba(255,255,255,.25); }
.is-tn2-menu-panel {
    display: none;
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 230px;
    background: var(--card); color: var(--ink);
    border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    padding: 8px; z-index: 600;
}
.is-tn2-menu.is-open .is-tn2-menu-panel { display: block; }
.is-tn2-menu-row { padding: 6px 8px; }
.is-tn2-menu-row label {
    display: block; font-size: 11px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px;
}
.is-tn2-menu-row select {
    width: 100%; font-size: 13px; padding: 6px 8px; border-radius: 6px;
    border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.is-theme-swatches { display: flex; gap: 8px; }
.is-theme-swatch {
    width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
    border: 2px solid transparent; padding: 0; box-shadow: 0 0 0 1px var(--line) inset;
    transition: transform .1s, border-color .15s;
}
.is-theme-swatch:hover { transform: scale(1.08); }
.is-theme-swatch.is-active { border-color: var(--gold); }
.is-theme-light    { background: linear-gradient(135deg, #fffef8 50%, #1a7a40 50%); }
.is-theme-dark      { background: linear-gradient(135deg, #12181a 50%, #2f8f5c 50%); }
.is-theme-teal      { background: linear-gradient(135deg, #eef7f7 50%, #115757 50%); }
.is-theme-titanium  { background: linear-gradient(135deg, #f1f2f3 50%, #656d72 50%); }
.is-tn2-menu-item {
    display: flex; align-items: center; gap: 8px;
    width: 100%; text-align: left; background: none; border: none;
    padding: 8px; border-radius: 8px; font-size: 13px; font-weight: 600;
    color: var(--ink); cursor: pointer; text-decoration: none;
}
.is-tn2-menu-item:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.is-tn2-menu-item i { width: 16px; text-align: center; color: var(--gold); }
.is-tn2-menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ── Content area ── */
.is-content { padding: 0; flex: 1; }

/* ── Mini trend-chart strip (2026-09-17) ── */
.is-spark-row { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.is-spark-card {
    flex: 1 1 150px; min-width: 130px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px 12px; box-shadow: 0 3px 14px rgba(10,61,31,.07);
    color: var(--isl-mid);
}
.is-spark-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-spark-value { font-size: 22px; font-weight: 700; color: var(--isl-dark); line-height: 1.1; }
.is-spark-svg { width: 100%; height: 28px; margin-top: 4px; display: block; }

/* Optimistic/Pessimistic toggle (2026-09-17) - both framings render in the
   markup; the toggle just flips which one is visible, no re-fetch. */
.is-spark-toggle { display: inline-flex; gap: 4px; margin-bottom: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.is-spark-toggle-btn {
    border: none; background: none; cursor: pointer;
    font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
    color: var(--muted); transition: background .15s, color .15s;
}
.is-spark-toggle-btn.is-active { background: var(--isl-dark); color: #fff; }
.is-spark-opt { display: none; }
.is-spark-row.is-optimistic .is-spark-pess { display: none; }
.is-spark-row.is-optimistic .is-spark-opt { display: block; }
.is-spark-opt .is-spark-value { font-size: 14px; line-height: 1.3; }
.is-spark-opt-good .is-spark-value { color: #0f6e4f; }
.is-spark-opt-bad .is-spark-value { color: var(--tk-danger, #c0392b); }
.is-spark-opt-flat .is-spark-value { color: var(--muted); }

/* ── Dashboard hub links (2026-09-17) ── */
.is-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.is-hub-card {
    display: flex; align-items: center; gap: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px; box-shadow: 0 3px 14px rgba(10,61,31,.07);
    text-decoration: none; color: var(--ink);
    transition: box-shadow .15s, transform .15s;
}
.is-hub-card:hover { box-shadow: 0 6px 20px rgba(10,61,31,.14); transform: translateY(-1px); text-decoration: none; color: var(--ink); }
.is-hub-icon { font-size: 22px; flex-shrink: 0; }
.is-hub-label { font-weight: 700; font-size: 13.5px; color: var(--isl-dark); }
.is-hub-card-group { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px; }
.is-hub-main { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.is-hub-sublinks { display: flex; flex-wrap: wrap; gap: 6px 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.is-hub-sublinks a { font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.is-hub-sublinks a:hover { color: var(--isl-dark); text-decoration: underline; }

/* ── Trend/bar overview cards (2026-09-18) ── */
.is-chart-row { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.is-chart-card {
    flex: 1 1 320px; min-width: 280px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; box-shadow: 0 3px 14px rgba(10,61,31,.07);
}
.is-chart-head { display: flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 700; color: var(--isl-dark); margin-bottom: 8px; flex-wrap: wrap; }
.is-chart-icon { font-size: 15px; }
.is-chart-sub { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.is-chart-svg { width: 100%; height: 160px; display: block; }
.is-chart-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.is-chart-axis { stroke: var(--line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.is-chart-bar-value { font-size: 13px; font-weight: 700; fill: var(--ink); }
.is-chart-bar-label { font-size: 15px; }
.is-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.is-chart-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.is-chart-legend-item b { color: var(--isl-dark); }
.is-chart-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

@media (max-width: 992px) {
    .is-spark-card { flex: 1 1 45%; }
    .is-hub-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .is-chart-card { flex: 1 1 100%; }
}

/* ── Cards ── */
.is-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 3px 14px rgba(10,61,31,.07);
}
.is-card-head {
    font-size: 13px; font-weight: 600; color: var(--isl-dark);
    padding-bottom: 8px; margin-bottom: 10px;
    border-bottom: 2px solid var(--gold-pale);
    display: flex; align-items: center; justify-content: space-between;
}
.is-card-head i { color: var(--gold); margin-right: 6px; }

/* ── Admin panels ── */
.is-admin-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
}
.is-admin-panel-head {
    padding: 10px 14px;
    font-weight: 600; font-size: 13px; color: var(--isl-dark);
    background: linear-gradient(130deg, #f5f0e8, #ede5d0);
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
}
.is-admin-panel-head i.fa-chevron-down { color: var(--gold); }
.is-admin-panel-body { padding: 12px 14px; }

/* ── Quick links chip ── */
.is-ql-chip {
    display: inline-flex; align-items: center;
    background: #edf7ed; color: var(--isl-dark);
    border: 1px solid #c5e0c5;
    font-size: 12px; font-weight: 600;
    padding: 4px 10px; border-radius: 999px;
    text-decoration: none; transition: background .15s;
}
.is-ql-chip:hover { background: #d5edd5; color: var(--isl-dark); text-decoration: none; }

/* ── Refresh button ── */
#refreshMenuBtn {
    font-size: 11px; font-weight: 600;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 7px; padding: 4px 10px;
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
    cursor: pointer; transition: background .15s;
}
#refreshMenuBtn:hover { background: rgba(255,255,255,.2); color: var(--gold-light); }

/* ── Divider ornament ── */
.is-ornament {
    text-align: center;
    color: var(--gold);
    font-size: 18px;
    letter-spacing: 6px;
    margin: 6px 0 12px;
    opacity: .6;
}

/* ═══════════════════════════════════════
   RESPONSIVE  (≤992px = all phones + tablets)
═══════════════════════════════════════ */
@media (max-width: 992px) {
    /* Sidebar: hidden by default, slides in on open */
    .is-sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1050;
    }
    .is-sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0,0,0,.55);
    }
    /* Main content: full width */
    .is-main { margin-left: 0; }

    /* Show hamburger in topnav */
    #sidebarToggle { display: flex !important; }

    /* Topnav compact */
    .is-topnav { padding: 8px 12px; gap: 6px; position: sticky; top: 0; z-index: 500; flex-wrap: wrap; }
    .is-topnav-left { gap: 8px; min-width: 0; flex: 0 0 auto; overflow: hidden; }
    .is-topnav-centre { flex: 0 0 100%; order: 3; justify-content: flex-start; gap: 6px; }
    .is-greeting { display: none; }
    .is-topnav-store {
        font-size: 11px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        max-width: 200px;
    }
    .is-topnav-right { gap: 5px; }
    #switchUserInput { width: 100px !important; }
    .is-tn-logout span { display: none; }
    #liveClock { display: none !important; }

    /* Topnav v2 compact (welcome_new.php only). .is-tn2-right holds
       badges + sync status + the more-menu + logout - too many items to
       share a row with the hamburger/identity on a phone, so (matching
       the old .is-topnav-centre pattern) it gets bumped to its own
       full-width second row instead of fighting .is-tn2-left for space. */
    .is-topnav-v2 { padding: 5px 10px; gap: 5px; }
    .is-tn2-left { gap: 8px; min-width: 0; flex: 0 0 auto; overflow: hidden; }
    .is-tn2-greeting { display: none; }
    .is-tn2-context {
        font-size: 11px;
        max-width: 200px;
    }
    .is-tn2-search { flex: 0 0 100%; order: 2; max-width: none; }
    .is-tn2-right { flex: 0 0 100%; order: 3; justify-content: flex-end; gap: 5px; }
    .is-tn2-menu-panel { right: -8px; max-width: calc(100vw - 24px); }

    /* Content padding */
    .is-content { padding: 0; }

    /* Row gutters tighter */
    .is-content > .row { margin: 0 -4px; }
    .is-content > .row > [class*="col-"] { padding: 0 4px; }

    /* Stack the two columns */
    .col-md-8 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
    .col-md-4 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }

    /* Admin panels: stack */
    .is-content .row .col-md-6 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }

    /* Quick links: horizontal scroll */
    #menu.nav.nav-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #menu.nav.nav-tabs::-webkit-scrollbar { display: none; }

    /* Cards full width */
    .is-card { border-radius: 10px; }

    /* Touch-friendly nav items */
    #sidebarMenu .nav-item > .nav-link,
    #sidebarMenu .nav-item > a,
    #sidebarMenu .dropdown-item {
        min-height: 46px !important;
        display: flex !important;
        align-items: center !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

@media (max-width: 480px) {
    .is-brand-name  { font-size: 15px; }
    .is-badge       { padding: 3px 7px; font-size: 10px; }
    .is-content     { padding: 0; }
}

.is-overlay {
    display: none;  /* JS sets display:block when sidebar opens */
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1049;  /* just below sidebar z-index 1050 */
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}
.tasks-banner { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:12px; box-shadow:0 4px 18px rgba(0,0,0,.07); }
/* Head row doubles as the collapse/expand button - starts collapsed
   (2026-09-16), showing just the avatar, a count badge and a chevron;
   clicking anywhere on it (except the "Open Oliver" link) reveals the
   full task list below. */
.tasks-banner-head { display:flex; align-items:center; gap:8px; font-weight:700; color:var(--isl-dark); font-size:13px; cursor:pointer; user-select:none; border-radius:20px; padding:4px 6px; transition:background .12s ease; }
.tasks-banner-head:hover { background:var(--bg); }
.tasks-banner-avatar { width:26px; height:26px; border-radius:50%; background:linear-gradient(135deg, var(--gold), var(--isl-mid)); display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0; box-shadow:0 1px 4px rgba(0,0,0,.2); }
.tasks-banner-head-text { flex:1; display:flex; align-items:center; gap:7px; }
.tasks-banner-badge { background:var(--tk-danger, #c0392b); color:#fff; font-size:10.5px; font-weight:700; border-radius:10px; padding:1px 7px; line-height:1.5; }
.tasks-banner-chevron { font-size:10px; color:var(--muted); transition:transform .15s ease; }
.tasks-banner-chevron.is-open { transform:rotate(180deg); }
.tasks-banner-head a { font-size:11px; font-weight:600; color:#fff; background:var(--isl-dark); padding:4px 10px; border-radius:20px; text-decoration:none; white-space:nowrap; }
.tasks-banner-list { margin-top:10px; }
.tasks-banner-list { display:flex; flex-direction:column; gap:8px; }
.tasks-banner-item { background:var(--bg); border:1px solid var(--line); border-radius:13px; padding:9px 10px; }
.tasks-banner-item-title { font-weight:700; color:var(--ink); font-size:11.5px; margin-bottom:5px; display:flex; align-items:center; gap:5px; }
.tasks-banner-item-title .tk-dot { width:6px; height:6px; border-radius:50%; background:var(--tk-danger, #c0392b); flex-shrink:0; }
.tasks-banner-bubble { background:var(--card); border:1px solid var(--line); border-radius:12px 12px 12px 3px; padding:8px 10px; font-size:12px; color:var(--ink); line-height:1.4; margin-bottom:7px; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.tasks-banner-chips { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:7px; }
.tasks-banner-chip { border:1px solid var(--gold); background:var(--gold-pale); color:var(--isl-dark); font-size:11px; font-weight:600; border-radius:20px; padding:4px 11px; cursor:pointer; transition:background .12s ease, transform .08s ease; }
.tasks-banner-chip:hover { background:var(--gold); }
.tasks-banner-chip:active { transform:scale(.95); }
.tasks-banner-quickrow { display:flex; align-items:center; gap:6px; }
.tasks-banner-quickrow input[type=text] { flex:1; min-width:0; font-size:12px; border:1px solid var(--line); border-radius:20px; padding:7px 12px; background:var(--card); }
.tasks-banner-quickrow input[type=text]:focus { outline:none; border-color:var(--gold); }
.tasks-banner-send { width:30px; height:30px; border-radius:50%; border:none; background:var(--isl-dark); color:#fff; font-size:13px; flex-shrink:0; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.tasks-banner-send:hover { background:var(--isl-deep); }
.tasks-banner-send:disabled { opacity:.5; cursor:default; }
.tasks-banner-full { font-size:10px; color:var(--muted); text-decoration:none; border-bottom:1px dotted var(--muted); margin-inline-start:8px; white-space:nowrap; }
.tasks-banner-item-foot { display:flex; align-items:center; margin-top:6px; }
.tasks-banner-sent { color:#0f6e4f; font-weight:600; font-size:12px; padding:4px 0; }
.tasks-mention-dropdown { position:absolute; z-index:1100; background:var(--card); border:1px solid var(--line); border-radius:8px; box-shadow:0 6px 20px rgba(0,0,0,.15); max-height:180px; overflow-y:auto; min-width:180px; }
.tasks-mention-item { padding:7px 12px; font-size:12.5px; cursor:pointer; }
.tasks-mention-item:hover { background:var(--gold-pale); }
.tasks-mention-item.is-oliver { font-weight:700; color:var(--isl-dark); border-bottom:1px solid var(--line); }

/* ── Ported from admin_dashboard.css's widget rebuild (2026-09-19):
   full comment threads, uploads, tabs, resolve button, spreadsheet -
   see that file's history for the full story on each of these. ── */
.tasks-banner-toggle { cursor:pointer; user-select:none; }
.tasks-banner-caret { font-size:9px; color:var(--muted); transition:transform .15s ease; flex-shrink:0; }
.tasks-banner-caret.is-open { transform:rotate(90deg); }
.tasks-banner-replycount { margin-inline-start:auto; font-size:10px; font-weight:600; color:var(--muted); white-space:nowrap; }
.tasks-banner-thread { margin-bottom:7px; max-height:260px; overflow-y:auto; }
.tasks-comment { display:flex; gap:7px; margin-bottom:9px; align-items:flex-start; }
.tasks-comment:last-child { margin-bottom:0; }
.tasks-comment-avatar { width:22px; height:22px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; color:#fff; background:var(--isl-mid); }
.tasks-comment-avatar.is-oliver { background:linear-gradient(135deg, var(--gold), var(--isl-mid)); font-size:11px; }
.tasks-comment-col { flex:1; min-width:0; }
.tasks-comment-head { font-size:10.5px; font-weight:600; color:var(--ink); margin-bottom:2px; }
.tasks-comment-date { font-weight:400; color:var(--muted); margin-inline-start:5px; font-size:9.5px; }
.tasks-comment-bubble { font-size:11.5px; white-space:pre-wrap; background:var(--card); border:1px solid var(--line); border-radius:3px 11px 11px 11px; padding:6px 9px; line-height:1.4; }
.tasks-comment.is-oliver .tasks-comment-bubble { background:var(--gold-pale); border-color:var(--gold-pale); }
.tasks-comment-attachments { margin-top:4px; }
.tasks-comment-attachments a { display:inline-block; font-size:10.5px; margin-inline-end:8px; color:var(--isl-dark); }
.tasks-banner-attach { width:30px; height:30px; border-radius:50%; border:1px solid var(--line); background:var(--card); color:var(--muted); font-size:13px; flex-shrink:0; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.tasks-banner-attach:hover { background:var(--gold-pale); border-color:var(--gold); }
.tasks-banner-attach:disabled { opacity:.5; cursor:default; }
.tasks-banner-paste-preview { margin-bottom:6px; }
.tasks-paste-chip { display:inline-flex; align-items:center; gap:6px; background:var(--gold-pale); border:1px solid var(--gold); color:var(--isl-dark); font-size:11px; border-radius:14px; padding:3px 6px 3px 10px; }
.tasks-paste-chip img { width:20px; height:20px; object-fit:cover; border-radius:5px; }
.tasks-paste-remove { color:inherit; text-decoration:none; font-weight:700; padding:0 4px; }
.tasks-banner-new-btn { margin-inline-start:auto; border:1px solid var(--isl-dark); background:none; color:var(--isl-dark); font-size:11px; font-weight:700; border-radius:14px; padding:4px 10px; cursor:pointer; }
.tasks-banner-new-btn:hover { background:var(--gold-pale); }
.tasks-banner-close-btn { display:none; border:none; background:none; color:var(--muted); font-size:14px; cursor:pointer; padding:4px 6px; line-height:1; }
.tasks-banner-close-btn:hover { color:var(--ink); }
.tasks-banner-tabs { display:flex; gap:4px; margin-top:10px; margin-bottom:2px; }
.tasks-banner-tab { flex:1; border:1px solid var(--line); background:var(--bg); color:var(--muted); font-size:10.5px; font-weight:600; border-radius:20px; padding:5px 6px; cursor:pointer; text-align:center; }
.tasks-banner-tab.is-active { background:var(--isl-dark); border-color:var(--isl-dark); color:#fff; }
.tasks-banner-tab-count { font-weight:700; }
.tasks-banner-empty { text-align:center; color:var(--muted); font-size:12px; padding:18px 0; }
.tasks-banner-item.is-resolved { opacity:.6; }
.tasks-banner-resolve-row { display:flex; justify-content:flex-end; margin-top:6px; }
.tasks-banner-resolve { border:1px solid var(--isl-dark); background:none; color:var(--isl-dark); font-size:10.5px; font-weight:600; border-radius:14px; padding:4px 10px; cursor:pointer; }
.tasks-banner-resolve:hover { background:var(--gold-pale); }
.tasks-banner-resolve:disabled { opacity:.5; cursor:default; }

.tasks-new-modal-backdrop { display:none; position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:1000; align-items:center; justify-content:center; padding:20px; }
.tasks-new-modal { background:var(--card); border-radius:14px; padding:20px; max-width:420px; width:100%; max-height:88vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.tasks-new-modal h4 { margin:0 0 14px; color:var(--ink); font-size:16px; }
.tasks-new-modal input[type=text], .tasks-new-modal textarea { width:100%; box-sizing:border-box; font-size:13px; border:1px solid var(--line); border-radius:8px; padding:9px 10px; margin-bottom:10px; background:var(--bg); color:var(--ink); font-family:inherit; }
.tasks-new-modal textarea { min-height:70px; resize:vertical; }
.tasks-new-user-list { border:1px solid var(--line); border-radius:8px; max-height:150px; overflow-y:auto; padding:8px; margin-bottom:10px; background:var(--bg); }
.tasks-new-user-list label { display:block; font-size:12.5px; color:var(--ink); padding:3px 0; }
.tasks-new-empty { color:var(--muted); font-size:12px; padding:4px; }
.tasks-new-urgent-label { display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--ink); margin-bottom:10px; }
.tasks-new-modal #tasksNewAttach { display:block; margin-bottom:10px; width:auto; }
.tasks-new-modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:4px; }
.tasks-new-btn-outline, .tasks-new-btn-primary { border-radius:20px; padding:8px 16px; font-size:12.5px; font-weight:600; cursor:pointer; }
.tasks-new-btn-outline { background:none; border:1px solid var(--line); color:var(--muted); }
.tasks-new-btn-primary { background:var(--isl-dark); border:1px solid var(--isl-dark); color:#fff; }
.tasks-new-btn-primary:hover { background:var(--isl-deep); }
.tasks-new-btn-primary:disabled { opacity:.6; cursor:default; }

.tasks-sheet-toggle-row { display:flex; justify-content:flex-end; margin:2px 0 6px; }
.tasks-sheet-toggle-btn { border:1px solid var(--line); background:var(--card); color:var(--muted); font-size:10.5px; font-weight:600; border-radius:14px; padding:4px 10px; cursor:pointer; }
.tasks-sheet-toggle-btn.is-active, .tasks-sheet-toggle-btn:hover { background:var(--gold-pale); border-color:var(--gold); color:var(--isl-dark); }
.tasks-sheet-wrap { margin-bottom:8px; }
.tasks-sheet-loading { font-size:11px; color:var(--muted); padding:8px; text-align:center; }
.tasks-sheet-scroll { overflow-x:auto; border:1px solid var(--line); border-radius:8px; max-width:100%; }
.tasks-sheet-table { border-collapse:collapse; font-size:11px; }
.tasks-sheet-table th, .tasks-sheet-table td { border:1px solid var(--line); padding:0; }
.tasks-sheet-table thead th { background:var(--bg); color:var(--muted); font-weight:600; padding:3px 6px; min-width:60px; }
.tasks-sheet-table tbody th { background:var(--bg); color:var(--muted); font-weight:600; padding:3px 6px; text-align:center; }
.tasks-sheet-cell { width:70px; box-sizing:border-box; border:none; background:var(--card); color:var(--ink); font-size:11px; padding:4px 6px; font-family:inherit; }
.tasks-sheet-cell:focus { outline:2px solid var(--gold); outline-offset:-2px; position:relative; z-index:1; }
.tasks-sheet-controls { display:flex; gap:6px; margin-top:6px; }
.tasks-sheet-addrow, .tasks-sheet-addcol { border:1px solid var(--line); background:var(--card); color:var(--muted); font-size:10.5px; border-radius:12px; padding:3px 9px; cursor:pointer; }
.tasks-sheet-addrow:hover, .tasks-sheet-addcol:hover { background:var(--gold-pale); border-color:var(--gold); }

/* ── Oliver as a floating launcher (welcome_new.php only, 2026-09-17) -
   moved off the inline top-of-content banner (welcome.php still uses the
   plain .tasks-banner layout above, untouched); new classes only, so
   nothing shared with welcome.php changes. Collapses to just the avatar
   icon bottom-right; clicking it opens the same .tasks-banner-head/-list
   markup as before, now inside .oliver-fab-panel instead of inline. */
.oliver-fab-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 900; }
.oliver-fab-btn {
    width: 52px; height: 52px; border-radius: 50%;
    border: none; cursor: pointer; position: relative;
    background: linear-gradient(135deg, var(--gold), var(--isl-mid));
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; padding: 0;
    transition: transform .15s ease;
}
.oliver-fab-btn:hover { transform: scale(1.06); }
.oliver-fab-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--tk-danger, #c0392b); color: #fff;
    font-size: 11px; font-weight: 700; border-radius: 10px;
    padding: 1px 6px; line-height: 1.4;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.oliver-fab-panel {
    display: none;
    position: absolute; bottom: 64px; right: 0;
    width: 320px; max-width: calc(100vw - 40px);
    max-height: 70vh; overflow-y: auto;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 16px; padding: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,.25);
}
.oliver-fab-wrap.is-open .oliver-fab-panel { display: block; }
.oliver-fab-backdrop { display: none; }

@media (max-width: 480px) {
    .oliver-fab-wrap { right: 12px; bottom: 12px; }
}
/* Desktop/tablet (2026-09-19): a large centered modal with a dimmed
   backdrop instead of the old 320px corner box - too much content now
   (full threads, tabs, spreadsheet) to work comfortably that small.
   .oliver-fab-backdrop is a real sibling element (not a pseudo-element)
   so the existing click-outside-closes handler treats a click on it as
   "outside the panel" and closes correctly - see the JS comment on that
   handler for why it only exempts .oliver-fab-panel, not the whole wrap. */
@media (min-width: 641px) {
    .oliver-fab-wrap.is-open .oliver-fab-backdrop {
        display: block;
        position: fixed; inset: 0;
        background: rgba(20, 24, 20, .45);
    }
    .oliver-fab-wrap.is-open .oliver-fab-btn { position: relative; z-index: 2; }
    .oliver-fab-wrap.is-open .oliver-fab-panel {
        position: fixed;
        top: 50%; left: 50%; transform: translate(-50%, -50%);
        width: 800px; max-width: 90vw;
        height: 85vh; max-height: 85vh;
        display: flex; flex-direction: column;
        overflow: hidden;
        z-index: 2;
    }
    .oliver-fab-panel .tasks-banner-list { flex: 1; overflow-y: auto; margin-top: 10px; }
    .tasks-banner-close-btn { display: inline-flex; align-items: center; }
}
/* On phones the widget takes the full screen instead of a small floating
   box - too much content now (full threads, tabs, spreadsheet) to work
   comfortably in a corner popup. */
@media (max-width: 640px) {
    /* Button stays put and on top of the full-screen panel (not hidden) -
       tapping it toggles open/closed same as always, in addition to the
       X button in the panel header. */
    .oliver-fab-wrap.is-open .oliver-fab-btn { position: relative; z-index: 2; }
    .oliver-fab-wrap.is-open .oliver-fab-panel {
        position: fixed; inset: 0; margin: 0;
        width: 100vw; max-width: 100vw;
        height: 100vh; max-height: 100vh;
        border-radius: 0;
        display: flex; flex-direction: column;
        overflow: hidden;
        z-index: 1;
    }
    .oliver-fab-panel .tasks-banner-list { flex: 1; overflow-y: auto; margin-top: 10px; padding-bottom: 70px; }
    .tasks-banner-close-btn { display: inline-flex; align-items: center; }
}
