/* ==================================================================
   SDPL IT Department - shared "Pro app" look
   Same design language as Quality Control (SDPLQCApp/qc-pro.css),
   Data Management (SDPL DMM/dmm-pro.css), Production Control and the
   Enterprise Hub: dark canvas with a theme-coloured wash and grid,
   round brand mark, mono eyebrow, Inter type, pill buttons, flat red
   power button, panel cards. Loaded AFTER each page's own <style>,
   so it only restyles - page logic and ids are untouched.
   ================================================================== */

:root {
    --rd-canvas: #0b1020;
    --rd-wash:
        radial-gradient(1100px circle at 8% -8%, rgba(var(--theme-rgb), 0.22) 0%, rgba(var(--theme-rgb), 0) 62%),
        radial-gradient(800px circle at 98% 4%, rgba(var(--theme-rgb), 0.12) 0%, rgba(var(--theme-rgb), 0) 58%),
        radial-gradient(900px circle at 50% 108%, rgba(var(--theme-rgb), 0.08) 0%, rgba(var(--theme-rgb), 0) 60%),
        repeating-radial-gradient(circle at 78% 18%, transparent 0 46px, rgba(var(--theme-rgb), 0.12) 46px 47px),
        repeating-radial-gradient(circle at 12% 95%, transparent 0 60px, rgba(var(--theme-rgb), 0.08) 60px 61px),
        radial-gradient(circle at 20% 25%, rgba(var(--theme-rgb), 0.13) 0%, rgba(var(--theme-rgb), 0.045) 100%);
    --rd-wash-size: auto, auto, auto, auto, auto, auto;
    --rd-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.032) 0%, rgba(255, 255, 255, 0.012) 100%);
    --rd-line: rgba(255, 255, 255, 0.08);
    --rd-muted: #8b9ab1;
    --rd-faint: #6b7890;
    --rd-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* ---------- base ---------- */
html body.it-pro {
    background-color: var(--rd-canvas) !important;
    background-image: var(--rd-wash) !important;
    background-size: var(--rd-wash-size) !important;
    background-attachment: fixed !important;
    background-repeat: repeat !important;
    color: #e2e8f0;
    font-family: "Inter", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

body.it-pro,
body.it-pro input,
body.it-pro select,
body.it-pro textarea,
body.it-pro button {
    font-family: "Inter", sans-serif;
}

body.it-pro .material-icons {
    font-family: 'Material Icons' !important;
    font-weight: normal;
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}

/* the old animated backgrounds are not part of the Pro look */
body.it-pro #particles-js,
body.it-pro #particleCanvas,
body.it-pro .particles-js-canvas-el,
body.it-pro .grid-overlay,
body.it-pro .glow-blob,
body.it-pro .glow1,
body.it-pro .glow2,
body.it-pro .bg-glow,
body.it-pro::after,
body.it-pro .container::before {
    display: none !important;
}

body.it-pro ::-webkit-scrollbar { width: 8px; height: 8px; }
body.it-pro ::-webkit-scrollbar-thumb { background: rgba(var(--theme-rgb), 0.3); border-radius: 10px; }
body.it-pro ::-webkit-scrollbar-thumb:hover { background: rgba(var(--theme-rgb), 0.6); }
body.it-pro ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 10px; }

/* ==================================================================
   Header (1:1 with the Production Control header)
   ================================================================== */
.rd-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 0 0 20px 0;
    margin-bottom: 28px;
    z-index: 20;
}

.rd-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(var(--theme-rgb), 0.55) 0%,
            rgba(255, 255, 255, 0.10) 30%,
            rgba(255, 255, 255, 0.04) 70%,
            rgba(255, 255, 255, 0) 100%);
}

.rd-head-left { display: flex; align-items: center; gap: 15px; min-width: 0; flex: 1 1 420px; }
.rd-head-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.rd-brandmark {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, rgba(var(--theme-rgb), 0.26), rgba(var(--theme-rgb), 0.04));
    border: 1px solid rgba(var(--theme-rgb), 0.34);
    box-shadow: 0 10px 26px -12px rgba(var(--theme-rgb), 0.85), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.rd-brandmark::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(var(--theme-rgb), 0.16);
    pointer-events: none;
}

.rd-brandmark img { width: 42px; height: 42px; border-radius: 50%; object-fit: contain; }

.rd-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding-left: 3px;
    font-family: var(--rd-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(var(--theme-rgb), 0.92);
    white-space: nowrap;
}

.rd-eyebrow > span:not(.rd-eyebrow-dot),
.rd-eyebrow > a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: inherit;
}

.rd-eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--theme-color);
    box-shadow: 0 0 8px 1px rgba(var(--theme-rgb), 0.8);
}

.rd-eyebrow-sep { color: rgba(255, 255, 255, 0.25); margin: 0 1px; }

/* the module word in the eyebrow leads back to the IT menu */
.rd-eyebrow-link { color: inherit; text-decoration: none; cursor: pointer; }
.rd-eyebrow-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.rd-title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #ffffff 0%, #c7d3e3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.rd-title span {
    font-family: inherit;
    -webkit-text-fill-color: var(--theme-color);
    color: var(--theme-color);
}

.rd-desc { margin: 0; font-size: 13px; line-height: 1.55; color: var(--rd-muted); max-width: 620px; }

.rd-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-top: 4px;
}

.rd-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 99px;
    font-family: var(--rd-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #94a3b8;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.rd-chip:empty { display: none; }

.rd-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 0 6px 0 10px;
    min-width: 0;
}

.rd-user .user-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.user-role-badge {
    display: inline-block;
    font-family: var(--rd-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(var(--theme-rgb), 0.95);
    background: rgba(var(--theme-rgb), 0.12);
    border: 1px solid rgba(var(--theme-rgb), 0.25);
    padding: 3px 9px;
    border-radius: 99px;
    white-space: nowrap;
}

.rd-hub-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: 99px;
    font-family: "Inter", sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-top-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.9);
    transition: all 0.25s ease;
}

.rd-hub-btn .material-icons { font-size: 16px; vertical-align: middle; }
.rd-hub-btn:active { transform: scale(0.97); }

.rd-hub-btn.rd-back:hover,
.rd-hub-btn.rd-accent:hover {
    color: #fff;
    border-color: rgba(var(--theme-rgb), 0.55);
    background: linear-gradient(180deg, rgba(var(--theme-rgb), 0.22) 0%, rgba(var(--theme-rgb), 0.06) 100%);
    box-shadow: 0 10px 24px -12px rgba(var(--theme-rgb), 0.8);
}

/* page action in the header (e.g. "Add New Form") - theme filled */
.rd-hub-btn.rd-accent {
    color: #fff;
    border-color: rgba(var(--theme-rgb), 0.45);
    background: linear-gradient(180deg, rgba(var(--theme-rgb), 0.30) 0%, rgba(var(--theme-rgb), 0.10) 100%);
}

/* Logout = round red power button, flat (same as Production Control) */
.rd-power {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.42);
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.rd-power svg { width: 19px; height: 19px; display: block; }
.rd-power:hover { color: #fff; background: #ef4444; border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18); }
.rd-power:active { transform: scale(0.94); }
.rd-power:focus-visible { outline: 2px solid #f87171; outline-offset: 2px; }


/* ==================================================================
   Loaders - same as the QC / Production Control dashboards
   (page loader: transparent + blur over the themed canvas,
    dual counter-rotating rings, theme-coloured status text)
   ================================================================== */
body.it-pro .loading-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* module pages: solid canvas behind the loader so the half-built page never shows through */
body.it-module .loading-overlay {
    background-color: var(--rd-canvas) !important;
    background-image: var(--rd-wash) !important;
    background-size: var(--rd-wash-size) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

body.it-pro .loading-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
body.it-dashboard .loading-overlay.hidden { display: none; }
body.it-pro .loading-overlay.dissolve { animation: itFadeOutOverlay 0.5s ease-out forwards; }

@keyframes itFadeOutOverlay {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.1); filter: blur(5px); }
}

body.it-pro .logo-loader-container {
    position: relative;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* dual counter-rotating rings (the base .spinner itself draws nothing) */
body.it-pro .spinner {
    position: relative;
    width: 52px;
    height: 52px;
    margin: 0 0 10px 0;
    border: 0 !important;
    animation: none !important;
    background: none !important;
}

body.it-pro .spinner::before,
body.it-pro .spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 4px solid transparent;
}

body.it-pro .spinner::before {
    inset: 0;
    border-color: #e2e8f0;
    border-right-color: transparent;
    animation: it-spin-cw 1s linear infinite;
}

body.it-pro .spinner::after {
    inset: 25%;
    border-color: var(--theme-color);
    border-left-color: transparent;
    animation: it-spin-ccw 0.8s linear infinite;
}

@keyframes it-spin-cw { to { transform: rotate(360deg); } }
@keyframes it-spin-ccw { to { transform: rotate(-360deg); } }

body.it-pro .loading-text {
    margin: 0;
    color: var(--theme-color);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

body.it-pro .loading-subtext {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 10px;
    letter-spacing: 0.3px;
}

/* redirect overlay - shown the instant a module card is launched */
body.it-pro .overlay-loading {
    position: fixed;
    inset: 0;
    background-color: rgba(2, 4, 8, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #e2e8f0;
}

body.it-pro .overlay-loading.visible { display: flex; }
body.it-pro .overlay-loading .spinner { margin: 0; }
body.it-pro #redirect-text { font-size: 13px; color: #94a3b8; letter-spacing: 0.3px; }

/* ==================================================================
   Dashboard + menu pages (index / erp / nonerp / it_admin) - Production Control cards
   ================================================================== */
body.it-dashboard * { scrollbar-width: thin; scrollbar-color: rgba(var(--theme-rgb), 0.35) transparent; }

body.it-dashboard .hub-container {
    width: 100%;
    padding: 20px 40px 40px 40px;
    position: relative;
    z-index: 1;
}

body.it-dashboard .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

@keyframes rdFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

body.it-dashboard .portal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 188px;
    padding: 22px 22px 18px 22px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid rgba(var(--theme-rgb), 0.18);
    background:
        radial-gradient(110% 70% at 50% 0%, rgba(var(--theme-rgb), 0.10) 0%, rgba(var(--theme-rgb), 0) 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.012) 100%);
    box-shadow: 0 30px 70px -44px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.28, 1), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    animation: rdFadeUp 0.55s cubic-bezier(0.22, 1, 0.28, 1) both;
}

body.it-dashboard .portal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--theme-rgb), 0.55);
    background:
        radial-gradient(110% 80% at 50% 0%, rgba(var(--theme-rgb), 0.20) 0%, rgba(var(--theme-rgb), 0) 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
    box-shadow: 0 22px 48px -26px rgba(var(--theme-rgb), 0.85), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

body.it-dashboard .portal-card:active { transform: translateY(-1px) scale(0.99); }
body.it-dashboard .portal-card:focus-visible { outline: 2px solid rgba(var(--theme-rgb), 0.8); outline-offset: 3px; }

body.it-dashboard .card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

body.it-dashboard .card-icon-box {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--theme-color);
    background: linear-gradient(150deg, rgba(var(--theme-rgb), 0.24), rgba(var(--theme-rgb), 0.05));
    border: 1px solid rgba(var(--theme-rgb), 0.32);
    box-shadow: 0 12px 28px -14px rgba(var(--theme-rgb), 0.75), 0 1px 0 rgba(255, 255, 255, 0.16) inset;
}

body.it-dashboard .card-icon-box .material-icons { font-size: 22px; }

body.it-dashboard .portal-card .status-badge {
    font-family: var(--rd-mono);
    font-size: 9.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #34d399;
}

body.it-dashboard .card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 7px;
    letter-spacing: -0.02em;
}

body.it-dashboard .card-body p {
    font-size: 12.5px;
    line-height: 1.6;
    color: #8b9ab1;
}

body.it-dashboard .card-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-color);
}

body.it-dashboard .card-action::after {
    content: '\2192';
    font-size: 16px;
    margin-left: 6px;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.28, 1);
}

body.it-dashboard .portal-card:hover .card-action::after { transform: translateX(5px); }

body.it-dashboard .no-modules {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 40px 20px;
    color: #8b9ab1;
    font-size: 13px;
    border: 1px dashed rgba(255, 255, 255, 0.10);
    border-radius: 20px;
}

body.it-dashboard .no-modules .material-icons { font-size: 34px; color: rgba(var(--theme-rgb), 0.8); }

@media (prefers-reduced-motion: reduce) {
    .portal-card { animation: none; }
}


/* ==================================================================
   Themed dropdowns (it-pro.js upgrades the native form selects)
   ================================================================== */
.itxs { position: relative; display: inline-block; min-width: 140px; vertical-align: middle; }
.itxs.itxs-block { display: block; width: 100%; }

.itxs-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.itxs-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    padding: 0 12px 0 14px;
    border-radius: 12px;
    font-family: "Inter", sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.itxs.itxs-icon .itxs-btn { padding-left: 46px; }

.itxs-btn:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.15); }

.itxs-btn:focus-visible,
.itxs.is-open .itxs-btn {
    outline: none;
    border-color: rgba(var(--theme-rgb), 0.6);
    box-shadow: 0 0 0 3px rgba(var(--theme-rgb), 0.14);
}

.itxs-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.itxs-text.is-ph { color: rgba(255, 255, 255, 0.45); }

.itxs-icon-chev { flex-shrink: 0; display: flex; color: #8b9ab1; transition: transform 0.28s cubic-bezier(0.22, 1, 0.28, 1), color 0.2s ease; }
.itxs-btn:hover .itxs-icon-chev { color: var(--theme-color); }
.itxs.is-open .itxs-icon-chev { transform: rotate(180deg); color: var(--theme-color); }

.itxs.is-disabled .itxs-btn { color: #5b6880; cursor: not-allowed; border-style: dashed; background: rgba(255, 255, 255, 0.022); }

.itxs-pop {
    position: absolute;
    z-index: 2000;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    max-width: min(420px, 90vw);
    max-height: 264px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(var(--theme-rgb), 0.24);
    background:
        linear-gradient(180deg, rgba(var(--theme-rgb), 0.11) 0%, rgba(var(--theme-rgb), 0.05) 100%),
        linear-gradient(180deg, #131a28 0%, #0d121d 100%);
    box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.95), 0 0 40px -26px rgba(var(--theme-rgb), 0.8), 0 1px 0 rgba(255, 255, 255, 0.07) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.985);
    transform-origin: top center;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.28, 1), visibility 0s linear 0.22s;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--theme-rgb), 0.35) transparent;
}

.itxs.is-open { z-index: 400; }
.itxs.is-open .itxs-pop { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.28, 1), visibility 0s; }
.itxs-pop.is-up { top: auto; bottom: calc(100% + 6px); transform-origin: bottom center; }
.itxs-pop.is-right { left: auto; right: 0; }

.itxs-opt {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 9px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: #c2c8d2;
    color: color-mix(in srgb, var(--theme-soft, #cfd6e2) 30%, #c2c8d2);
    cursor: pointer;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: background 0.16s ease, color 0.16s ease;
}

.itxs-opt::before {
    content: "";
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background: var(--theme-color);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0;
    transition: opacity 0.16s ease;
}

.itxs-opt:hover { background: rgba(var(--theme-rgb), 0.13); color: #fff; }
.itxs-opt.is-selected { color: #fff; background: linear-gradient(100deg, rgba(var(--theme-rgb), 0.26) 0%, rgba(var(--theme-rgb), 0.08) 100%); }
.itxs-opt.is-selected::before { opacity: 1; }
.itxs-opt.is-disabled { opacity: 0.45; cursor: not-allowed; }
.itxs-opt.is-ph { display: none; }

body.it-pro select option { background: #131a28; color: #e2e8f0; }

/* ==================================================================
   Module pages (Ticket Approval, Distributor Approval, Asset Management)
   Same page shell as the QC / DMM module pages: Pro header on top,
   then the page in one panel. Page logic and ids are untouched.
   ================================================================== */
html body.it-module {
    display: block !important;
    padding: 20px 40px 48px 40px !important;
    margin: 0 !important;
}

body.it-module .rd-header,
body.it-module .it-page {
    width: 100%;
    max-width: none; /* full screen width on every IT module page (same side padding as the hub/menu pages) */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* the page panel */
body.it-module .it-panel {
    position: relative;
    z-index: 5;
    padding: 22px 22px 24px;
    border-radius: 18px;
    border: 1px solid var(--rd-line);
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(var(--theme-rgb), 0.06) 0%, rgba(var(--theme-rgb), 0) 60%),
        var(--rd-panel);
    box-shadow: 0 30px 70px -44px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

body.it-pro .material-icons { color: inherit; }
body.it-pro input[type="checkbox"] { accent-color: var(--theme-color); }

/* toolbar at the top of a panel: mono section title + page actions */
.it-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 18px 0;
}

.it-toolbar-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-family: var(--rd-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rd-faint);
}

.it-toolbar-title::before {
    content: "";
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--theme-color);
    box-shadow: 0 0 8px 1px rgba(var(--theme-rgb), 0.7);
}

.it-toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* neutral pill (Refresh ...) - colour only in the icon */
.it-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    border-radius: 99px;
    font-family: "Inter", sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
    cursor: pointer;
    white-space: nowrap;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.025) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-top-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.9);
    transition: all 0.2s ease;
}

.it-pill .material-icons,
.it-pill i { font-size: 17px; color: var(--theme-color) !important; }
.it-pill:hover { color: #fff; border-color: rgba(var(--theme-rgb), 0.5); background: linear-gradient(180deg, rgba(var(--theme-rgb), 0.2) 0%, rgba(var(--theme-rgb), 0.05) 100%); }
.it-pill:active { transform: scale(0.97); }

/* "LIVE SYNC" status chip */
.it-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: 99px;
    font-family: var(--rd-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #34d399;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.28);
    white-space: nowrap;
}

.it-live .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: itPulse 1.6s infinite;
}

@keyframes itPulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* filter pills (Open / Owned / ... , Pending / Approved / ...) = the location tabs of the QC / DMM pages */
body.it-module .filter-btn {
    height: 38px;
    padding: 0 16px !important;
    border-radius: 99px !important;
    font-family: var(--rd-mono) !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--rd-muted) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.it-module .filter-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

body.it-module .filter-btn.active {
    color: #fff !important;
    border-color: rgba(var(--theme-rgb), 0.45) !important;
    background: linear-gradient(180deg, rgba(var(--theme-rgb), 0.26) 0%, rgba(var(--theme-rgb), 0.08) 100%) !important;
    box-shadow: 0 10px 24px -14px rgba(var(--theme-rgb), 0.9) !important;
}

/* search box with icon */
body.it-module .search-input,
body.it-asset .header-search input,
body.it-asset .zone-search-box input {
    height: 40px;
    padding: 0 16px 0 40px !important;
    border-radius: 99px !important;
    font-size: 13px !important;
    font-weight: 500;
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.045) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b9ab1' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

body.it-module .search-input:focus,
body.it-asset .header-search input:focus,
body.it-asset .zone-search-box input:focus {
    border-color: rgba(var(--theme-rgb), 0.6) !important;
    box-shadow: 0 0 0 3px rgba(var(--theme-rgb), 0.14) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
}

body.it-pro input::placeholder,
body.it-pro textarea::placeholder { color: rgba(255, 255, 255, 0.38); }

/* every dialog = the QC / DMM form dialog */
body.it-module .modal-overlay {
    background: rgba(2, 4, 8, 0.55) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.it-approval .modal-card,
body.it-dist #details-modal > .modal,
body.it-dist #loading-overlay > .modal,
body.it-asset .modal-box {
    border-radius: 20px !important;
    color: #e2e8f0;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(var(--theme-rgb), 0.14) 0%, rgba(var(--theme-rgb), 0) 60%),
        linear-gradient(180deg, rgba(20, 26, 38, 0.98) 0%, rgba(10, 14, 22, 0.99) 100%) !important;
    border: 1px solid rgba(var(--theme-rgb), 0.32) !important;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9), 0 0 60px -26px rgba(var(--theme-rgb), 0.7), 0 1px 0 rgba(255, 255, 255, 0.10) inset !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--theme-rgb), 0.35) transparent;
}

body.it-approval .modal-overlay.active .modal-card,
body.it-dist .modal-overlay.active > .modal,
body.it-asset .modal-overlay.open .modal-box { animation: rdPopIn 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2); }

@keyframes rdPopIn { from { opacity: 0; transform: translateY(10px) scale(0.94); } to { opacity: 1; transform: none; } }

/* field labels = mono caps (Report Desk filter labels) */
body.it-approval .form-label,
body.it-asset .field label {
    font-family: var(--rd-mono);
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rd-faint) !important;
}

/* inputs */
body.it-approval .form-control,
body.it-asset .field input[type="text"],
body.it-asset .field input[type="password"],
body.it-asset .field input[type="number"],
body.it-asset .field select,
body.it-asset .field textarea {
    min-height: 44px;
    padding: 10px 14px !important;
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    font-weight: 500;
    outline: none;
    color-scheme: dark;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.it-approval .form-control:hover,
body.it-asset .field input:hover,
body.it-asset .field textarea:hover { background: rgba(255, 255, 255, 0.07) !important; border-color: rgba(255, 255, 255, 0.15) !important; }

body.it-approval .form-control:focus,
body.it-asset .field input:focus,
body.it-asset .field textarea:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(var(--theme-rgb), 0.6) !important;
    box-shadow: 0 0 0 3px rgba(var(--theme-rgb), 0.14) !important;
}

body.it-pro input[readonly] { border-style: dashed !important; }

/* hard-coded sky blue written by the pages / their scripts -> theme colour */
body.it-pro [style*="color:#38bdf8"],
body.it-pro [style*="color: #38bdf8"] { color: var(--theme-color) !important; }
body.it-pro [style*="accent-color: #38bdf8"] { accent-color: var(--theme-color) !important; }

/* ==================================================================
   IT Help Ticket Approval (it_approval.html)
   ================================================================== */
body.it-approval .filter-bar {
    display: flex;
    gap: 10px;
    margin: 0 0 20px 0;
    flex-wrap: wrap;
    align-items: center;
}

body.it-approval .filter-bar .search-input { margin-left: auto; width: 260px; }

body.it-approval .tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 18px;
}

body.it-approval .ticket-card {
    padding: 20px;
    gap: 13px;
    border-radius: 18px;
    border: 1px solid rgba(var(--theme-rgb), 0.18);
    background:
        radial-gradient(110% 70% at 50% 0%, rgba(var(--theme-rgb), 0.08) 0%, rgba(var(--theme-rgb), 0) 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.012) 100%);
    backdrop-filter: none;
    box-shadow: 0 30px 70px -44px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    overflow: hidden;
    animation: rdFadeUp 0.45s cubic-bezier(0.22, 1, 0.28, 1) both;
}

body.it-approval .ticket-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, rgba(var(--theme-rgb), 0) 0%, rgba(var(--theme-rgb), 0.7) 50%, rgba(var(--theme-rgb), 0) 100%);
}

body.it-approval .ticket-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--theme-rgb), 0.5);
    box-shadow: 0 22px 48px -26px rgba(var(--theme-rgb), 0.8), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

body.it-approval .ticket-card.card-closed {
    opacity: 0.72;
    border-color: rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.008) 100%);
}

body.it-approval .ticket-card.card-closed::before { display: none; }

body.it-approval .ticket-id {
    font-family: var(--rd-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(180deg, rgba(var(--theme-rgb), 0.38) 0%, rgba(var(--theme-rgb), 0.16) 100%);
    border: 1px solid rgba(var(--theme-rgb), 0.45);
    padding: 4px 11px;
}

body.it-approval .pill-priority,
body.it-approval .status-corner-badge {
    font-family: var(--rd-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    border-radius: 99px;
    padding: 4px 10px;
    box-shadow: none;
}

body.it-approval .priority-low,
body.it-approval .badge-owned {
    color: var(--theme-color);
    background: rgba(var(--theme-rgb), 0.14);
    border: 1px solid rgba(var(--theme-rgb), 0.35);
}

body.it-approval .ticket-applicant { font-size: 16px; letter-spacing: -0.02em; }
body.it-approval .ticket-meta { font-size: 12px; color: var(--rd-muted); line-height: 1.7; }
body.it-approval .ticket-meta strong { color: #cbd5e1; font-weight: 600; }

body.it-approval .ticket-desc {
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

body.it-approval .ticket-card-actions { gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.06); flex-wrap: wrap; }

body.it-approval .btn-action {
    min-height: 36px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

body.it-approval .btn-own {
    color: #fff;
    border-color: rgba(var(--theme-rgb), 0.5);
    background: linear-gradient(180deg, rgba(var(--theme-rgb), 0.42) 0%, rgba(var(--theme-rgb), 0.18) 100%);
}

body.it-approval .btn-own:hover { background: linear-gradient(180deg, rgba(var(--theme-rgb), 0.55) 0%, rgba(var(--theme-rgb), 0.24) 100%); box-shadow: 0 10px 24px -12px rgba(var(--theme-rgb), 0.8); }
body.it-approval .btn-transfer { background: rgba(168, 85, 247, 0.14); border-color: rgba(168, 85, 247, 0.35); }
body.it-approval .btn-close-case { background: linear-gradient(180deg, rgba(16, 185, 129, 0.42) 0%, rgba(16, 185, 129, 0.18) 100%); border-color: rgba(16, 185, 129, 0.5); color: #fff; }
body.it-approval .btn-close-case:hover { background: linear-gradient(180deg, rgba(16, 185, 129, 0.55) 0%, rgba(16, 185, 129, 0.25) 100%); }
body.it-approval .btn-history { color: #cbd5e1; background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%); }
body.it-approval .btn-history:hover { color: #fff; border-color: rgba(var(--theme-rgb), 0.45); background: rgba(var(--theme-rgb), 0.14); }

body.it-approval .locked-banner {
    border-radius: 99px;
    font-family: var(--rd-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(148, 163, 184, 0.25);
}

body.it-approval .modal-card { padding: 26px; }
body.it-approval .modal-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    padding: 0 40px 14px 0;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body.it-approval .modal-close {
    top: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 15px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

body.it-approval .modal-close:hover { color: #fff; background: rgba(239, 68, 68, 0.85); border-color: #ef4444; }

body.it-approval .btn-submit-modal {
    min-height: 48px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.it-approval .btn-submit-modal:not([style*="background"]) {
    background: linear-gradient(135deg, var(--theme-gradient-start), var(--theme-gradient-end));
    box-shadow: 0 12px 28px -14px rgba(var(--theme-rgb), 0.95);
}

body.it-approval .btn-submit-modal:not([style*="background"]):hover {
    background: linear-gradient(135deg, var(--theme-gradient-start), var(--theme-gradient-end));
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -14px rgba(var(--theme-rgb), 1);
}

body.it-approval .btn-submit-modal[style*="background"]:hover { filter: brightness(1.12); }

body.it-approval .timeline-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--theme-color);
    border-radius: 0 12px 12px 0;
}

body.it-approval .timeline-time { font-family: var(--rd-mono); font-size: 10.5px; }
body.it-approval .timeline-remarks { background: rgba(0, 0, 0, 0.2); border-radius: 8px; }

/* ==================================================================
   New Distributor Approval (dist_it.html + it_app.js)
   dist_styles.css stays; only the shell, table and dialogs restyle.
   The welcome-letter PDF builds its own markup (.page ...) - untouched.
   ================================================================== */
body.it-dist {
    --accent-blue: var(--theme-color);
    --accent-blue-hover: var(--theme-gradient-end);
    --card-bg: #111826;
    --text-muted: #8b9ab1;
    color: #e2e8f0;
}

body.it-dist .it-toolbar .filter-row { display: flex; gap: 8px; flex-wrap: wrap; }

body.it-dist #table-container .applications-table {
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.16) !important;
}

body.it-dist #table-container .applications-table thead tr { background: #0f1626 !important; border-bottom: 1px solid rgba(var(--theme-rgb), 0.25) !important; }

body.it-dist #table-container .applications-table th {
    padding: 12px 15px !important;
    font-size: 10.5px;
    font-weight: 700 !important;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(var(--theme-rgb), 0.92) !important;
    background: #0f1626;
}

body.it-dist #table-container .applications-table td { padding: 13px 15px !important; }
body.it-dist #table-container .applications-table tbody tr:hover { background: rgba(var(--theme-rgb), 0.07) !important; }

body.it-dist #table-container .btn-primary,
body.it-dist #table-container .btn-outline {
    border-radius: 99px !important;
    font-size: 12px !important;
    font-weight: 600;
    white-space: nowrap;
}

body.it-dist .btn-primary {
    color: #fff !important;
    border: 1px solid rgba(var(--theme-rgb), 0.5) !important;
    background: linear-gradient(180deg, rgba(var(--theme-rgb), 0.42) 0%, rgba(var(--theme-rgb), 0.18) 100%) !important;
}

body.it-dist .btn-primary:hover { background: linear-gradient(180deg, rgba(var(--theme-rgb), 0.55) 0%, rgba(var(--theme-rgb), 0.24) 100%) !important; box-shadow: 0 10px 24px -12px rgba(var(--theme-rgb), 0.8); }
body.it-dist #table-container .btn-outline:hover { color: #fff !important; border-color: rgba(var(--theme-rgb), 0.5) !important; background: rgba(var(--theme-rgb), 0.12); }

body.it-dist #details-modal > .modal { width: 900px; }
body.it-dist .modal-header { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
body.it-dist .modal-header h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
body.it-dist .modal-footer { border-top: 1px solid rgba(255, 255, 255, 0.07); }

body.it-dist .close-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 20px;
    line-height: 1;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.it-dist .close-btn:hover { color: #fff; background: rgba(239, 68, 68, 0.85); border-color: #ef4444; }
body.it-dist .detail-label { font-family: var(--rd-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--rd-faint); }
body.it-dist .badge { font-family: var(--rd-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 99px; }
body.it-dist #loading-overlay { background: rgba(2, 4, 8, 0.7) !important; backdrop-filter: blur(8px) !important; }
body.it-dist #loading-steps { border-radius: 12px !important; border-color: rgba(255, 255, 255, 0.08) !important; background: rgba(0, 0, 0, 0.25) !important; }
body.it-dist #loading-title { color: var(--theme-color) !important; }

/* ==================================================================
   IT Asset Management (it_asset_management.html)
   ================================================================== */
body.it-asset { background-color: var(--rd-canvas); }
/* asset register: its inner container follows the full-width header (no centred side gap) */
body.it-asset #appRoot > .container { max-width: none !important; width: 100%; padding: 0; }

body.it-asset .stat-card,
body.it-asset .panel {
    border-radius: 18px;
    border: 1px solid rgba(var(--theme-rgb), 0.16);
    background:
        radial-gradient(110% 70% at 50% 0%, rgba(var(--theme-rgb), 0.07) 0%, rgba(var(--theme-rgb), 0) 60%),
        var(--rd-panel);
    backdrop-filter: none;
    box-shadow: 0 30px 70px -44px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.07) inset;
}

body.it-asset .stat-label,
body.it-asset th {
    font-family: var(--rd-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.it-asset .stat-label { color: var(--rd-faint); }
body.it-asset th { color: rgba(var(--theme-rgb), 0.92); background: #0f1626; }
body.it-asset thead tr { border-bottom: 1px solid rgba(var(--theme-rgb), 0.25); }
body.it-asset tbody tr:hover { background: rgba(var(--theme-rgb), 0.07); }
body.it-asset .stat-value { letter-spacing: -0.02em; }

body.it-asset .panel-header { background: rgba(255, 255, 255, 0.015); }
body.it-asset .panel-header h3,
body.it-asset .users-section-header h3 {
    font-family: var(--rd-mono);
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #cbd5e1;
}

body.it-asset .facility-card { border-radius: 14px; background: rgba(0, 0, 0, 0.18); }
body.it-asset .location-row.active-loc,
body.it-asset .zone-row.active-zone { background: linear-gradient(90deg, rgba(var(--theme-rgb), 0.20) 0%, rgba(var(--theme-rgb), 0.04) 100%); }
body.it-asset .count-badge,
body.it-asset .device-badge { font-family: var(--rd-mono); letter-spacing: 0.06em; }

body.it-asset .btn { border-radius: 99px; }
body.it-asset .btn-primary { box-shadow: 0 10px 24px -12px rgba(var(--theme-rgb), 0.8); }
body.it-asset .form-section-label { font-family: var(--rd-mono); letter-spacing: 0.14em; }
body.it-asset .modal-head h3 { font-size: 16px; letter-spacing: -0.01em; }
body.it-asset .segmented { border-radius: 99px; }
body.it-asset .header-search { position: relative; flex: 1 1 320px; max-width: 460px; min-width: 200px; }
body.it-asset .header-search > .material-icons { display: none; }
body.it-asset .zone-search-box > .material-icons { display: none; }
body.it-asset .search-results { border-radius: 14px; border-color: rgba(var(--theme-rgb), 0.24); }
body.it-asset .field select option { background: #131a28; color: #e2e8f0; }

body.it-asset #accessDeniedScreen h1 { font-size: 24px; letter-spacing: -0.02em; }

/* themed dropdowns: smaller in the filter bars */
body.it-approval .filter-bar .itxs { min-width: 200px; }
body.it-approval .filter-bar .itxs-btn { height: 38px; border-radius: 99px; font-size: 12.5px; }

/* ==================================================================
   Phones (same breakpoints as Quality / Production Control)
   ================================================================== */
@media (max-width: 900px) {
    .rd-chip { display: none; }
}

@media (max-width: 768px) {
    html body.it-module { padding: 15px 14px 28px 14px !important; }
    body.it-dashboard .hub-container { padding: 15px 20px 28px 20px; }
    body.it-dashboard .cards-grid { grid-template-columns: 1fr; gap: 14px; }
    body.it-dashboard .portal-card { min-height: auto; padding: 20px 20px 16px 20px; }
    body.it-dashboard .card-body h3 { font-size: 17px; }
    .rd-header { gap: 16px; padding-bottom: 16px; margin-bottom: 20px; }
    .rd-head-left { gap: 12px; }
    .rd-brandmark { width: 44px; height: 44px; }
    .rd-brandmark img { width: 36px; height: 36px; }
    .rd-title { font-size: 22px; }
    .rd-desc { font-size: 12px; }
    .rd-eyebrow { font-size: 9px; letter-spacing: 0.10em; }
    .rd-head-right { width: 100%; margin-top: 0; gap: 8px; flex-wrap: wrap; }
    .rd-user { flex: 1; align-items: flex-start; padding-left: 4px; }
    .rd-hub-btn { padding: 10px 14px; }
    body.it-module .it-panel { padding: 14px 12px 18px; border-radius: 16px; }
    body.it-approval .tickets-grid { grid-template-columns: 1fr; }
    body.it-approval .filter-bar .search-input { margin-left: 0; width: 100%; }
    body.it-approval .filter-bar .itxs { flex: 1; }
    body.it-approval .ticket-card-actions .btn-action { flex: 1 1 40%; }
    body.it-asset .it-toolbar-actions { flex: 1 1 100% !important; flex-wrap: nowrap; }
    body.it-asset .header-search { max-width: none; flex: 1 1 auto; min-width: 0; }
}

@media (max-width: 560px) {
    .rd-eyebrow-org, .rd-eyebrow-org + .rd-eyebrow-sep { display: none; }
    .rd-hub-btn .btn-label { display: none; }
    .it-pill .btn-label { display: none; }
    .it-pill { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
    body.it-approval .ticket-card { animation: none; }
}
