/* ============================================================
   CENTRALEYE — ATM Monitoring NOC Platform
   Dark control-room design system
   ============================================================ */

/* cyrillic-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/centraleye/c7416f0a-ef3d-4335-9c38-01acab42ae54.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/centraleye/0610eaef-4e5c-4be2-9771-629e1b53f2ba.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/centraleye/a040af02-be39-433e-8488-a8cfd1bf3a43.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/centraleye/7542ad0c-9a23-423c-a53a-5d1b0d55a6f5.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/centraleye/c7416f0a-ef3d-4335-9c38-01acab42ae54.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/centraleye/0610eaef-4e5c-4be2-9771-629e1b53f2ba.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/centraleye/a040af02-be39-433e-8488-a8cfd1bf3a43.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/centraleye/7542ad0c-9a23-423c-a53a-5d1b0d55a6f5.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/centraleye/c7416f0a-ef3d-4335-9c38-01acab42ae54.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/centraleye/0610eaef-4e5c-4be2-9771-629e1b53f2ba.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/centraleye/a040af02-be39-433e-8488-a8cfd1bf3a43.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/centraleye/7542ad0c-9a23-423c-a53a-5d1b0d55a6f5.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/centraleye/c7416f0a-ef3d-4335-9c38-01acab42ae54.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/centraleye/0610eaef-4e5c-4be2-9771-629e1b53f2ba.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/centraleye/a040af02-be39-433e-8488-a8cfd1bf3a43.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/centraleye/7542ad0c-9a23-423c-a53a-5d1b0d55a6f5.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/centraleye/c7416f0a-ef3d-4335-9c38-01acab42ae54.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/centraleye/0610eaef-4e5c-4be2-9771-629e1b53f2ba.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/centraleye/a040af02-be39-433e-8488-a8cfd1bf3a43.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/centraleye/7542ad0c-9a23-423c-a53a-5d1b0d55a6f5.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/centraleye/e1ca5f33-651a-4d12-a51c-77d0e8201e2c.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/centraleye/4ede833f-1ad1-416d-ba7f-84ef59032b21.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/centraleye/4e03e4ce-010c-4aaf-b63d-b5c46584923c.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/centraleye/368c92b6-c9e2-4dc5-b40f-098365c75a90.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/centraleye/7bcfe3b2-5632-49c6-963b-5334e9088603.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/centraleye/6166cfc9-7832-49ce-a35f-f762d5549af4.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/centraleye/5dbe92a7-fab3-4bb9-a25c-bde627830ba4.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/centraleye/9e0420fb-2a23-4bd1-948c-01b73c9a4113.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/centraleye/b5662410-cbc9-4e7c-a4de-4db955a14bb2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/centraleye/de3c6ef3-e24a-4a64-ba2c-bbf8ab413ccb.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/centraleye/3bcf0e57-5694-4e5c-a653-55f1ca70c992.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/centraleye/75252ca2-ba92-45a7-8bb7-04bb622cf472.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/centraleye/40aaf7e1-c346-493a-91a2-cf73d1322b41.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/centraleye/d1e6d50e-2a86-4bb2-966e-90a48dbdc883.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/centraleye/2f1d26e2-7fc6-4843-9786-91b70d98edbb.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  /* ---- Surfaces (dark control-room) ---- */
  --bg:        #090C12;   /* deepest app background */
  --surface-0: #0E121B;   /* sidebar / rails */
  --surface-1: #131926;   /* panels / cards */
  --surface-2: #1A2233;   /* raised / hover */
  --surface-3: #222C40;   /* inputs / chips */
  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.12);
  --line-strong: #2A3650;

  /* ---- Text ---- */
  --text:      #E8EEF7;
  --text-2:    #9AA7BD;
  --text-3:    #66738C;
  --text-faint:#48546B;

  /* ---- Brand accent (benok blue) ---- */
  --accent:    #2B8BDE;
  --accent-2:  #5BA8EE;
  --accent-dim:#13456E;
  --accent-glow: rgba(43,139,222,0.30);

  /* ---- Brand palette (from benok logo) ---- */
  --brand-blue:      #1878c0;
  --brand-blue-deep: #004890;
  --brand-gold:      #F0C018;
  --brand-gold-dim:  rgba(240,192,24,0.16);

  /* ---- Fleet map ---- */
  --map-bg:   radial-gradient(120% 120% at 50% 0%, rgba(43,139,222,0.06), transparent 60%);
  --map-grid: rgba(255,255,255,0.04);
  --map-land: rgba(40,60,90,0.30);

  /* ---- Status palette ---- */
  --ok:    #36D98A;
  --warn:  #F5B23C;
  --crit:  #FF5C62;
  --info:  #5AA0FF;
  --maint: #B488FF;
  --idle:  #6B7689;

  --ok-bg:    rgba(54,217,138,0.13);
  --warn-bg:  rgba(245,178,60,0.14);
  --crit-bg:  rgba(255,92,98,0.14);
  --info-bg:  rgba(90,160,255,0.14);
  --maint-bg: rgba(180,136,255,0.14);
  --idle-bg:  rgba(107,118,137,0.16);

  /* ---- Fonts ---- */
  --font: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  /* Unified UI font — numbers/IDs/tags use the same family as the nav, with tabular figures.
     True monospace is reserved for the Electronic Journal readout only (--mono-journal). */
  --mono: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono-journal: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* ---- Density (tunable via Tweaks) ---- */
  --row-h: 40px;
  --pad-card: 18px;
  --gap: 16px;
  --radius: 12px;
  --radius-sm: 8px;

  --shadow-1: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 8px 30px rgba(0,0,0,0.45);
  --shadow-pop: 0 18px 50px rgba(0,0,0,0.55);

  --sidebar-w: 244px;
  --topbar-h: 60px;
}

[data-density="compact"] {
  --row-h: 34px;
  --pad-card: 14px;
  --gap: 12px;
}

/* Light theme (optional toggle) */
[data-theme="light"] {
  --bg:        #EEF1F6;
  --surface-0: #FFFFFF;
  --surface-1: #FFFFFF;
  --surface-2: #F3F5F9;
  --surface-3: #E9EDF3;
  --line:      rgba(15,23,42,0.09);
  --line-2:    rgba(15,23,42,0.14);
  --line-strong: #D3DAE6;
  --text:      #111726;
  --text-2:    #515E73;
  --text-3:    #7A869B;
  --text-faint:#A2AEC0;
  --accent-glow: rgba(43,139,222,0.22);
  --ok-bg:    rgba(20,160,95,0.12);
  --warn-bg:  rgba(190,130,20,0.12);
  --crit-bg:  rgba(210,50,55,0.10);
  --info-bg:  rgba(40,110,220,0.10);
  --maint-bg: rgba(130,80,220,0.10);
  --idle-bg:  rgba(100,112,130,0.12);
  --shadow-2: 0 8px 30px rgba(20,30,55,0.12);
  --shadow-pop: 0 18px 50px rgba(20,30,55,0.18);
  --map-bg:   linear-gradient(180deg, #F4F7FB, #EAEFF6);
  --map-grid: rgba(15,23,42,0.05);
  --map-land: rgba(43,139,222,0.09);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
#root { height: 100vh; }

::selection { background: var(--accent-glow); }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); background-clip: content-box; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: -0.005em; }
.tnum { font-variant-numeric: tabular-nums; }

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; height: 100vh; }
.app.nav-collapsed { grid-template-columns: 68px 1fr; }

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 22px 26px 60px; }
.content-wide { max-width: 1680px; margin: 0 auto; }

/* ---- Sidebar (benok brand blue + gold threading) ---- */
.sidebar {
  background: linear-gradient(185deg, #013B77 0%, #013168 34%, #00224B 100%);
  border-right: 1px solid rgba(0,0,0,0.25);
  display: flex; flex-direction: column;
  min-height: 0;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.04);
}
.sidebar::-webkit-scrollbar-thumb, .sidebar ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); background-clip: content-box; }
.brand { display: flex; flex-direction: column; gap: 9px; padding: 15px 14px 13px; }
.brand-chip {
  background: #FFFFFF; border-radius: 10px; padding: 7px 13px;
  display: flex; align-items: center; justify-content: flex-start;
  box-shadow: 0 2px 10px rgba(0,20,50,0.28);
}
.brand-chip img { height: 26px; width: auto; display: block; }
.brand-tag { font-size: 10px; letter-spacing: 0.18em; color: var(--brand-gold); text-transform: uppercase; font-weight: 700; padding-left: 3px; }

.nav-collapsed .brand-tag, .nav-collapsed .nav-label, .nav-collapsed .nav-group-label, .nav-collapsed .nav-badge { display: none; }
.nav-collapsed .brand { align-items: center; padding: 14px 8px; }
.nav-collapsed .brand-chip { padding: 6px; width: 42px; height: 42px; justify-content: center; }
.nav-collapsed .brand-chip img { height: auto; width: 30px; }

.nav { flex: 1; overflow-y: auto; padding: 8px 12px 20px; }
.nav-group-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); font-weight: 700; padding: 16px 10px 7px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px;
  color: rgba(255,255,255,0.78); cursor: pointer; font-weight: 500; font-size: 13.5px;
  position: relative; user-select: none; transition: background .12s, color .12s;
}
.nav-item:hover { background: rgba(255,255,255,0.09); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.13); color: #fff; font-weight: 600; }
.nav-item.active::before { content:""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-gold); box-shadow: 0 0 12px rgba(240,192,24,0.6); }
.nav-item .ico { width: 18px; height: 18px; flex-shrink: 0; opacity: .9; }
.nav-item.active .ico { color: var(--brand-gold); opacity: 1; }
.nav-label { flex: 1; white-space: nowrap; }
.nav-badge { font-family: var(--mono); font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 20px; background: var(--crit); color: #fff; }
.nav-badge.warn { background: var(--brand-gold); color: #3a2c00; }
.nav-collapsed .nav-item { justify-content: center; padding: 10px 0; }
.nav-collapsed .nav-item.active::before { left: 0; }

.nav-foot { padding: 10px 14px; border-top: 1px solid rgba(255,255,255,0.12); }
.collapse-btn { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,0.6); cursor: pointer; font-size: 12.5px; padding: 6px 8px; border-radius: 7px; }
.collapse-btn:hover { background: rgba(255,255,255,0.09); color: #fff; }

/* ---- Topbar ---- */
.topbar {
  height: var(--topbar-h); flex-shrink: 0; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-0) 80%, transparent);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 16px; padding: 0 22px;
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.crumbs b { color: var(--text); font-weight: 600; }
.crumbs .sep { color: var(--text-faint); }

.searchbar {
  flex: 1; max-width: 440px; display: flex; align-items: center; gap: 9px;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: 9px;
  padding: 0 12px; height: 36px; color: var(--text-3);
}
.searchbar input { border: none; background: none; outline: none; color: var(--text); font-family: var(--font); font-size: 13px; flex: 1; }
.searchbar input::placeholder { color: var(--text-3); }
.searchbar .kbd { font-family: var(--mono); font-size: 11px; color: var(--text-faint); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }

.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ---- Tenant switcher ---- */
.tenant-switch {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 11px 0 9px;
  background: var(--surface-1); border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer;
  position: relative; transition: border-color .12s;
}
.tenant-switch:hover { border-color: var(--line-strong); }
.tenant-logo { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; flex-shrink: 0; }
.tenant-meta { line-height: 1.1; }
.tenant-meta .t1 { font-size: 13px; font-weight: 600; }
.tenant-meta .t2 { font-size: 10.5px; color: var(--text-3); font-family: var(--mono); }

.iconbtn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); cursor: pointer; background: var(--surface-1); border: 1px solid var(--line); position: relative; }
.iconbtn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.iconbtn .dot-badge { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--crit); box-shadow: 0 0 0 2px var(--surface-1); }

.avatar { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-dim)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; cursor: pointer; border: 1px solid var(--line-2); }

/* ---- Dropdown ---- */
.dropdown { position: absolute; z-index: 80; background: var(--surface-1); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; min-width: 240px; }
.dd-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text); }
.dd-item:hover { background: var(--surface-2); }
.dd-item.sel { background: var(--surface-2); }
.dd-head { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; padding: 8px 10px 5px; }
.dd-sep { height: 1px; background: var(--line); margin: 5px 4px; }

/* ============================================================
   PRIMITIVES
   ============================================================ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.page-desc { color: var(--text-3); font-size: 13px; margin-top: 3px; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-1); color: var(--text); font-family: var(--font); font-weight: 600; font-size: 13px; cursor: pointer; transition: all .12s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 0 18px var(--accent-glow); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn.danger { color: var(--crit); border-color: rgba(255,92,98,0.3); }
.btn.danger:hover { background: var(--crit-bg); }

.card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: var(--pad-card); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--pad-card); border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.card-head .sub { font-size: 11.5px; color: var(--text-3); font-weight: 500; }

.grid { display: grid; gap: var(--gap); }

/* KPI stat */
.stat { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 17px; position: relative; overflow: hidden; }
.stat .lbl { font-size: 11.5px; color: var(--text-3); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.stat .val { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; margin-top: 9px; font-variant-numeric: tabular-nums; line-height: 1; }
.stat .val small { font-size: 15px; color: var(--text-3); font-weight: 600; }
.stat .delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; margin-top: 9px; font-family: var(--mono); white-space: nowrap; }
.stat .delta.up { color: var(--ok); }
.stat .delta.down { color: var(--crit); }
.stat .delta.flat { color: var(--text-3); }
.stat .spark { position: absolute; right: 14px; bottom: 12px; opacity: .9; }

/* status dot */
.sdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; position: relative; }
.sdot.online { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.sdot.warn   { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.sdot.critical { background: var(--crit); box-shadow: 0 0 0 3px var(--crit-bg); }
.sdot.offline { background: var(--idle); box-shadow: 0 0 0 3px var(--idle-bg); }
.sdot.maint  { background: var(--maint); box-shadow: 0 0 0 3px var(--maint-bg); }
.sdot.pulse::after { content:""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid currentColor; animation: ping 1.8s ease-out infinite; }
.sdot.online.pulse { color: var(--ok); }
.sdot.critical.pulse { color: var(--crit); }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }

/* chips / badges */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap; }
.chip .sdot { width: 6px; height: 6px; box-shadow: none; }
.chip.online { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.critical { background: var(--crit-bg); color: var(--crit); }
.chip.offline { background: var(--idle-bg); color: var(--idle); }
.chip.maint { background: var(--maint-bg); color: var(--maint); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.neutral { background: var(--surface-3); color: var(--text-2); }

.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; font-family: var(--font); letter-spacing: 0.01em; background: var(--surface-3); color: var(--text-2); letter-spacing: -0.01em; }
.tag.ncr { background: rgba(0,160,130,0.16); color: #2ecbab; }
.tag.hyosung { background: rgba(90,160,255,0.16); color: #6fb0ff; }
.tag.grg { background: rgba(245,120,60,0.16); color: #ff9a5b; }
.tag.wincor { background: rgba(180,136,255,0.16); color: #c0a0ff; }

.sev { display:inline-flex; align-items:center; gap:6px; font-weight:700; font-size:11.5px; }
.sev.p1 { color: var(--crit); }
.sev.p2 { color: var(--warn); }
.sev.p3 { color: var(--info); }
.sev.p4 { color: var(--text-3); }
.sev-box { width: 16px; height: 16px; border-radius: 5px; display:grid; place-items:center; font-size:10px; font-weight:800; font-family:var(--mono); }
.sev.p1 .sev-box { background: var(--crit-bg); color: var(--crit); }
.sev.p2 .sev-box { background: var(--warn-bg); color: var(--warn); }
.sev.p3 .sev-box { background: var(--info-bg); color: var(--info); }
.sev.p4 .sev-box { background: var(--idle-bg); color: var(--text-2); }

/* ---- Tables ---- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { text-align: left; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); font-weight: 700; padding: 0 14px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface-1); z-index: 2; cursor: pointer; user-select: none; white-space: nowrap; }
table.tbl th .arr { opacity: 0; margin-left: 4px; font-size: 9px; }
table.tbl th.sorted .arr { opacity: 1; color: var(--accent); }
table.tbl td { padding: 0 14px; height: var(--row-h); border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--text); }
table.tbl tbody tr { cursor: pointer; transition: background .1s; }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl tbody tr.sel { background: var(--accent-glow); }
table.tbl td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
table.tbl td .muted { color: var(--text-3); }

/* progress / meter */
.meter { height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; position: relative; }
.meter > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.meter.ok > i { background: var(--ok); }
.meter.warn > i { background: var(--warn); }
.meter.crit > i { background: var(--crit); }
.meter.accent > i { background: var(--accent); }

/* toolbar / filters */
.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--surface-1); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: none; background: none; color: var(--text-2); font-family: var(--font); font-weight: 600; font-size: 12.5px; padding: 5px 12px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--surface-3); color: var(--text); }
.select, .input { height: 36px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 9px; color: var(--text); font-family: var(--font); font-size: 13px; padding: 0 12px; outline: none; }
.select:focus, .input:focus { border-color: var(--accent); }
.filter-pill { display:inline-flex; align-items:center; gap:7px; height:32px; padding:0 11px; border-radius:8px; background:var(--surface-1); border:1px solid var(--line); font-size:12.5px; color:var(--text-2); cursor:pointer; font-weight:500; }
.filter-pill:hover { border-color: var(--line-strong); color: var(--text); }
.filter-pill.on { background: var(--accent-glow); border-color: var(--accent); color: var(--accent-2); }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs .tab { padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs .tab:hover { color: var(--text); }
.tabs .tab.on { color: var(--text); border-bottom-color: var(--accent); }
.tab-count { margin-left: 7px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 20px; background: var(--surface-3); color: var(--text-2); }
.tabs .tab.on .tab-count { background: var(--accent-glow); color: var(--accent); }

/* RBAC — role pills, permission levels, matrix */
.role-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
  color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 32%, transparent); white-space: nowrap; }
.role-pill.lg { height: 26px; font-size: 13px; padding: 0 12px; }
.lvl-cell { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: 2px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 700; }
.lvl-cell.none { color: var(--text-faint); background: transparent; min-width: 58px; }
.flex-col { flex-direction: column; }
.field-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }

.lvl-seg { display: inline-flex; gap: 3px; background: var(--surface-2); padding: 3px; border-radius: 9px; border: 1px solid var(--line); flex-shrink: 0; }
.lvl-seg button { border: 1px solid transparent; background: transparent; color: var(--text-3); font-family: var(--font); font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 6px; cursor: pointer; transition: all .12s; }
.lvl-seg button:hover { color: var(--text); background: var(--surface-3); }
.lvl-seg button.on { background: var(--surface-0); color: var(--text); box-shadow: var(--shadow-1); }

.tbl.matrix th, .tbl.matrix td { text-align: center; }
.tbl.matrix .sticky-col { position: sticky; left: 0; z-index: 2; text-align: left; background: var(--surface-1); box-shadow: 1px 0 0 var(--line); }
.tbl.matrix thead .sticky-col { z-index: 3; }
.mtx-rolehead { cursor: pointer; vertical-align: bottom; white-space: nowrap; font-size: 11px; transition: background .12s; }
.mtx-rolehead:hover, .mtx-rolehead.hl { background: var(--surface-2); }
.mtx-cell { transition: background .12s; }
.mtx-cell.hl { background: var(--accent-glow); }
.mtx-group td { background: var(--surface-2); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding: 5px 14px; }

/* misc */
.divline { height: 1px; background: var(--line); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--text-3); }
.kv .v { color: var(--text); font-weight: 600; }
.empty { text-align: center; color: var(--text-3); padding: 40px; font-size: 13px; }

/* drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(4,7,12,0.55); z-index: 90; backdrop-filter: blur(2px); animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 94vw; background: var(--surface-1); border-left: 1px solid var(--line-2); z-index: 91; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: slidein .22s cubic-bezier(.2,.8,.2,1); }
.drawer.wide { width: 760px; }
@keyframes slidein { from { transform: translateX(26px); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* live ticker */
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--crit); animation: blink 1.4s infinite; }
.live-dot.ok { background: var(--ok); }

@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.row-new { animation: rowin .4s ease; }

/* sparkline + charts use currentColor */
svg.chart text { font-family: var(--mono); }

/* utility */
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; } .col { flex-direction: column; } .flex-1 { flex: 1; } .ml-auto { margin-left: auto; }
.muted { color: var(--text-3); } .faint { color: var(--text-faint); }
.t-ok { color: var(--ok); } .t-warn { color: var(--warn); } .t-crit { color: var(--crit); } .t-acc { color: var(--accent); } .t-info { color: var(--info); }
.fw7 { font-weight: 700; } .fw6 { font-weight: 600; }
.fs12 { font-size: 12px; } .fs13 { font-size: 13px; } .fs11 { font-size: 11px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.hoverable:hover { background: var(--surface-2); }
.clickable { cursor: pointer; }

/* On-call ribbon (incidents) */
.oncall-bar { display: flex; align-items: center; gap: 20px; padding: 12px 18px; margin-bottom: var(--gap); flex-wrap: wrap; }
.oncall-head { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-right: 18px; border-right: 1px solid var(--line); align-self: stretch; }
.oncall-title { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.oncall-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 22px; flex: 1; min-width: 260px; }
.oncall-person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.oncall-meta { line-height: 1.35; min-width: 0; }
.oncall-tier { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.oncall-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oncall-until { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.oncall-action { flex-shrink: 0; }

/* ============================================================
   Sign-in / login screen
   ============================================================ */
.login-root { position: fixed; inset: 0; display: grid; grid-template-columns: 1.05fr 1fr; background: #EEF2F8; color: #111726; font-family: var(--font); z-index: 1; }

/* brand panel */
.login-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 48px; color: #fff; background: linear-gradient(195deg, #0B4F94 0%, #073A73 42%, #04254C 100%); }
.login-grid-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 75%); }
.login-brand::after { content: ""; position: absolute; width: 460px; height: 460px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,139,222,0.55), transparent 62%); pointer-events: none; }
.login-brand > * { position: relative; z-index: 1; }
.login-brand .brand-chip { padding: 9px 16px; }
.login-brand .brand-chip img { height: 30px; }

.login-brand-mid { max-width: 460px; }
.login-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-gold); margin-bottom: 18px; }
.login-headline { font-size: 38px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; }
.login-sub { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.78); margin: 0 0 30px; }
.login-features { display: flex; flex-direction: column; gap: 14px; }
.login-feature { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.92); }
.login-feature-ic { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,0.10); color: var(--brand-gold); border: 1px solid rgba(255,255,255,0.14); }
.login-brand-foot { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,0.62); }
.login-stat { display: flex; align-items: center; gap: 7px; }
.login-stat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(54,217,138,0.22); }

/* form panel */
.login-form-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; gap: 16px; position: relative; }
.login-card { width: 100%; max-width: 392px; background: #fff; border: 1px solid #E2E8F1; border-radius: 18px; padding: 32px 32px 22px;
  box-shadow: 0 18px 50px rgba(20,40,80,0.10), 0 2px 6px rgba(20,40,80,0.05); }
.login-card-head { margin-bottom: 22px; }
.login-card-head h2 { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 5px; }
.login-card-head p { font-size: 13.5px; color: #66738C; margin: 0; line-height: 1.5; }

.login-sso { width: 100%; height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; white-space: nowrap;
  background: #fff; border: 1px solid #D8E0EC; border-radius: 11px; font-family: var(--font); font-size: 14px; color: #1F2A3D; font-weight: 500; transition: .12s; }
.login-sso:hover { background: #F6F9FD; border-color: #B9C6DA; }
.login-sso b { font-weight: 700; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #9AA7BD; font-size: 12px; white-space: nowrap; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: #E6EBF2; }

.login-field { display: block; margin-bottom: 15px; }
.login-label { font-size: 12.5px; font-weight: 600; color: #44506A; }
.login-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0; }
.login-input { display: flex; align-items: center; gap: 9px; height: 46px; margin-top: 7px; padding: 0 13px;
  background: #F7F9FC; border: 1.5px solid #E2E8F1; border-radius: 11px; transition: .12s; }
.login-input:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(43,139,222,0.12); }
.login-input-ic { color: #9AA7BD; flex-shrink: 0; }
.login-input input { flex: 1; border: none; background: none; outline: none; font-family: var(--font); font-size: 14.5px; color: #111726; }
.login-input input::placeholder { color: #AEB9CA; }
.login-eye { border: none; background: none; color: #9AA7BD; cursor: pointer; padding: 4px; display: grid; place-items: center; }
.login-eye:hover { color: var(--accent); }

.login-otp { width: 100%; height: 56px; margin-top: 7px; text-align: center; letter-spacing: 0.5em; font-size: 24px; font-weight: 700;
  font-family: var(--mono-journal); color: #111726; background: #F7F9FC; border: 1.5px solid #E2E8F1; border-radius: 12px; outline: none; padding-left: 0.5em; }
.login-otp:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(43,139,222,0.12); }

.login-link { font-size: 12.5px; color: var(--accent); text-decoration: none; font-weight: 600; }
.login-link:hover { text-decoration: underline; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 18px; }
.login-check { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #44506A; cursor: pointer; user-select: none; white-space: nowrap; }
.login-check input { position: absolute; opacity: 0; pointer-events: none; }
.login-check-box { width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid #CBD4E1; display: grid; place-items: center; color: transparent; transition: .12s; }
.login-check input:checked + .login-check-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.login-roletag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; flex-shrink: 0;
  color: var(--rc); background: color-mix(in srgb, var(--rc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 30%, transparent); }

.login-submit { width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; white-space: nowrap;
  background: var(--accent); color: #fff; border: none; border-radius: 12px; font-family: var(--font); font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(43,139,222,0.32); transition: .14s; }
.login-submit:hover:not(:disabled) { background: #1F7BCB; box-shadow: 0 8px 22px rgba(43,139,222,0.4); }
.login-submit:disabled { opacity: 0.75; cursor: default; }
.login-text-btn { width: 100%; margin-top: 10px; background: none; border: none; color: var(--accent); font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; }
.login-back { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; color: #66738C; font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
.login-back:hover { color: var(--accent); }
.login-mfa-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--accent-glow); color: var(--accent); }

.login-err { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #C0353B; background: #FCEBEC; border: 1px solid #F6D2D4;
  padding: 9px 12px; border-radius: 9px; margin-bottom: 14px; }
.login-card-foot { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; padding-top: 16px;
  border-top: 1px solid #EDF1F7; font-size: 11.5px; color: #8A97AD; }
.login-legal { font-size: 12px; color: #8A97AD; text-align: center; }
.login-legal a { color: #66738C; text-decoration: none; }
.login-legal a:hover { text-decoration: underline; }
.login-demohint { font-size: 11px; color: #A6B1C2; text-align: center; max-width: 360px; line-height: 1.5; }

.login-spin { width: 19px; height: 19px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: login-spin 0.7s linear infinite; }
@keyframes login-spin { to { transform: rotate(360deg); } }

@media (max-width: 880px) {
  .login-root { grid-template-columns: 1fr; }
  .login-brand { display: none; }
}

/* signed-in user chip in topbar */
.user-menu { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: 10px; cursor: pointer; }
.user-menu:hover { background: var(--surface-1); }
.user-menu-meta { line-height: 1.25; text-align: right; }
.user-menu-name { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.user-menu-role { font-size: 11px; color: var(--text-3); white-space: nowrap; }


/* ============================================================
   Wisej integration: map real Wisej controls onto the login design,
   knock back qooxdoo panes, floating theme toggle. (Appended.)
   ============================================================ */
.wisej-desktop, .wisej-page, #desktop,
.qx-window-borderNone-maximized-active,
.qx-window-pane-maximized-active, .qx-window-pane-maximized, .qx-window-pane {
  background: transparent !important; background-color: transparent !important;
}
/* Wisej TextBox styled like .login-input.
   The .ce-field class is on the qooxdoo textbox DIV (the container) — make IT the bordered
   box at a fixed height, and let the inner input fill it with line-height = box height so the
   text is vertically centered. */
.ce-field {
  height: 44px !important; min-height: 44px !important;
  border: 1px solid #DCE4F0 !important; border-radius: 11px !important;
  background: #F7FAFD !important; box-sizing: border-box !important; padding: 0 13px !important;
}
.ce-field input, .ce-field textarea {
  border: none !important; outline: none !important; background: transparent !important;
  height: 42px !important; line-height: 42px !important; padding: 0 !important; margin: 0 !important;
  font-family: var(--font) !important; font-size: 14.5px !important; color: #111726 !important;
  vertical-align: middle !important;
}
.ce-field:focus-within {
  border-color: var(--accent) !important; background: #fff !important;
  box-shadow: 0 0 0 4px rgba(43,139,222,0.12) !important;
}
.ce-field input::placeholder { color: #AEB9CA !important; line-height: 42px !important; }
/* Wisej Button styled like .login-submit — borderless solid navy, no clipping */
.ce-submit {
  border: none !important; border-radius: 10px !important; box-shadow: none !important;
  background: #1A4E8A !important; outline: none !important;
}
.ce-submit, .ce-submit * {
  color: #fff !important; background-color: transparent !important;
  font-family: var(--font) !important; font-weight: 700 !important; font-size: 15px !important;
  letter-spacing: .2px; white-space: nowrap !important; text-overflow: clip !important; overflow: visible !important;
}
.ce-submit { background: #1A4E8A !important; }
.ce-submit:hover { background: #1F5C9F !important; }
.ce-fieldlabel, .ce-fieldlabel * { font-size:12.5px !important; font-weight:600 !important; color:#44506A !important; font-family:var(--font) !important; }
.ce-error, .ce-error * { color:#FF5C62 !important; font-size:12.5px !important; font-family:var(--font) !important; }

/* floating theme toggle */
#ce-theme-toggle {
  position: fixed; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; z-index: 100000;
  background: rgba(255,255,255,0.9); border: 1px solid #DCE4F0; box-shadow: 0 8px 24px rgba(20,30,55,0.15);
  cursor: pointer; font-size: 17px; line-height: 1; user-select: none;
}
#ce-theme-toggle:hover { border-color: var(--accent); }
#ce-theme-toggle .ce-ico { pointer-events: none; }

/* network constellation background on the login left brand panel */
.login-brand {
  background: url("Images/splash-bg.svg") center center / cover no-repeat,
              linear-gradient(195deg, #0B4F94, #04254C) !important;
}
.login-brand::after { opacity: 0.55; }   /* soften the extra glow over the artwork */

/* ============================================================
   Command-center Dashboard + shell content (CentralJournal)
   ============================================================ */
.cj-dash { padding: 24px 26px; font-family: var(--font); color: var(--text); background: var(--bg); min-height: 100%; box-sizing: border-box; }
.cj-dash-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.cj-dash-head h1 { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.cj-dash-head .sub { color: var(--text-dim); font-size: 13px; margin-top: 3px; }

.cj-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.cj-card {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(16,30,60,0.05), 0 8px 22px rgba(16,30,60,0.07);
  transition: box-shadow .15s ease, transform .15s ease;
}
.cj-card:hover { box-shadow: 0 2px 4px rgba(16,30,60,0.06), 0 14px 30px rgba(16,30,60,0.12); transform: translateY(-1px); }
html[data-theme="dark"] .cj-card { background: var(--panel); border-color: var(--line); box-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 8px 22px rgba(0,0,0,0.40); }
html[data-theme="dark"] .cj-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.5), 0 16px 34px rgba(0,0,0,0.5); }
.cj-card .lbl { font-size: 11.5px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.cj-card .num { font-size: 30px; font-weight: 800; margin: 5px 0 1px; letter-spacing: -0.02em; line-height: 1.05; }
.cj-card .sub { font-size: 12.5px; color: var(--text-dim); }
.cj-card.ok .num { color: #19A86A; } .cj-card.warn .num { color: #C8881A; } .cj-card.crit .num { color: #E03B43; } .cj-card.info .num { color: #1E6FB8; }
html[data-theme="dark"] .cj-card.ok .num { color: #36D98A; } html[data-theme="dark"] .cj-card.warn .num { color: #F5B23C; }
html[data-theme="dark"] .cj-card.crit .num { color: #FF5C62; } html[data-theme="dark"] .cj-card.info .num { color: #5AA0FF; }

.cj-tablewrap {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,30,60,0.05), 0 8px 22px rgba(16,30,60,0.07);
}
html[data-theme="dark"] .cj-tablewrap { background: var(--panel); border-color: var(--line); box-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 8px 22px rgba(0,0,0,0.40); }
.cj-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cj-table thead th { background: #EFF3F9; text-align: left; padding: 11px 16px; color: #5A6B85; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--line); }
html[data-theme="dark"] .cj-table thead th { background: rgba(255,255,255,0.04); color: var(--text-dim); }
.cj-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cj-table tr:last-child td { border-bottom: none; }
/* row hover + click selection (applies to every .cj-table grid) — kept distinct from the white grid */
.cj-table tbody tr { cursor: pointer; transition: background .12s ease, box-shadow .12s ease; }
.cj-table tbody tr:hover { background: #E7EEF8; }
.cj-table tbody tr.sel { background: rgba(30,111,184,0.13); box-shadow: inset 3px 0 0 var(--accent, #1E6FB8); }
.cj-table tbody tr.sel:hover { background: rgba(30,111,184,0.18); }
html[data-theme="dark"] .cj-table tbody tr:hover { background: rgba(255,255,255,0.06); }
html[data-theme="dark"] .cj-table tbody tr.sel { background: rgba(90,160,255,0.18); box-shadow: inset 3px 0 0 #5AA0FF; }
.cj-table td.mono { font-family: var(--mono, ui-monospace, monospace); }
.cj-table .t-name { font-weight: 600; }
.cj-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.cj-pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.cj-pill.ok   { background: rgba(25,168,106,0.12); color: #19A86A; } .cj-pill.ok .dot   { background: #19A86A; }
.cj-pill.crit { background: rgba(224,59,67,0.10);  color: #E03B43; } .cj-pill.crit .dot { background: #E03B43; }
.cj-pill.warn { background: rgba(200,136,26,0.12); color: #C8881A; } .cj-pill.warn .dot { background: #C8881A; }
.cj-pill.idle { background: rgba(107,118,137,0.14); color: #6B7689; } .cj-pill.idle .dot { background: #6B7689; }
.cj-pill.info { background: rgba(30,111,184,0.12); color: #1E6FB8; } .cj-pill.info .dot { background: #1E6FB8; }
.cj-pill.unknown { background: rgba(124,108,204,0.14); color: #6C5FB0; } .cj-pill.unknown .dot { background: #8A7CCC; }
.cj-bar { display: inline-block; width: 64px; height: 6px; border-radius: 6px; background: var(--line-strong); vertical-align: middle; overflow: hidden; }
.cj-bar > i { display: block; height: 100%; border-radius: 6px; }

/* ============================================================
   Terminal Health — per-terminal detail drill-down
   ============================================================ */
.cj-sec { background: #FFFFFF; border: 1px solid #E6ECF4; border-radius: 14px; margin-bottom: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,30,60,0.04), 0 6px 18px rgba(16,30,60,0.05); }
html[data-theme="dark"] .cj-sec { background: var(--panel, #131926); border-color: var(--line); box-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.cj-sec-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-weight: 800; font-size: 13px; color: #1B2A4A; background: #F5F8FC; border-bottom: 1px solid #E6ECF4; letter-spacing: 0.01em; }
html[data-theme="dark"] .cj-sec-h { background: rgba(255,255,255,0.03); color: var(--text); border-color: var(--line); }
.cj-sec-h .r { font-weight: 600; }
.cj-sec-b { padding: 14px 16px; }

.cj-subh { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #8290A6; margin: 16px 2px 2px; }
.cj-note { font-size: 12px; color: var(--text-dim); margin-top: 10px; font-style: italic; }
.cj-path { font-size: 11.5px; color: #6B7689; margin-top: 8px; font-family: var(--mono-journal, monospace); word-break: break-all; background: #F5F8FC; border: 1px solid #E6ECF4; border-radius: 8px; padding: 7px 10px; }
html[data-theme="dark"] .cj-path { background: rgba(255,255,255,0.03); border-color: var(--line); color: var(--text-2); }

/* metric tiles */
.cj-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.cj-tile { background: #F7FAFD; border: 1px solid #E6ECF4; border-radius: 11px; padding: 11px 13px; }
html[data-theme="dark"] .cj-tile { background: rgba(255,255,255,0.03); border-color: var(--line); }
.cj-tile .tl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #8290A6; }
.cj-tile .tv { font-size: 19px; font-weight: 800; margin-top: 3px; color: #1B2A4A; letter-spacing: -0.01em; }
html[data-theme="dark"] .cj-tile .tv { color: var(--text); }
.cj-tile.ok .tv { color: #19A86A; } .cj-tile.warn .tv { color: #C8881A; } .cj-tile.crit .tv { color: #E03B43; } .cj-tile.info .tv { color: #1E6FB8; } .cj-tile.idle .tv { color: #6B7689; }

/* key/value definition grid */
.cj-kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 26px; }
.cj-kv .kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #EAEFF6; min-height: 30px; }
html[data-theme="dark"] .cj-kv .kv { border-color: var(--line); }
.cj-kv .kv .k { font-size: 12.5px; color: #6B7689; flex-shrink: 0; }
.cj-kv .kv .v { font-size: 13px; color: #1B2A4A; font-weight: 600; text-align: right; word-break: break-word; }
html[data-theme="dark"] .cj-kv .kv .v { color: var(--text); }

/* gauges */
.cj-gauge { margin: 9px 0; }
.cj-gauge .gl { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: #1B2A4A; margin-bottom: 5px; }
html[data-theme="dark"] .cj-gauge .gl { color: var(--text); }
.cj-gauge .gl .gv { color: #6B7689; font-weight: 700; }
.cj-gauge .gtrack { height: 9px; border-radius: 6px; background: #EAEFF6; overflow: hidden; }
html[data-theme="dark"] .cj-gauge .gtrack { background: rgba(255,255,255,0.08); }
.cj-gauge .gtrack > i { display: block; height: 100%; border-radius: 6px; transition: width .3s ease; }

/* alert list */
.cj-alerts { display: flex; flex-direction: column; gap: 7px; }
.cj-alert { display: flex; align-items: center; gap: 9px; font-size: 12.5px; padding: 9px 12px; border-radius: 9px; border: 1px solid transparent; }
.cj-alert .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cj-alert.crit { background: rgba(224,59,67,0.08); border-color: rgba(224,59,67,0.25); color: #B23036; } .cj-alert.crit .dot { background: #E03B43; }
.cj-alert.warn { background: rgba(200,136,26,0.10); border-color: rgba(200,136,26,0.28); color: #8A5E10; } .cj-alert.warn .dot { background: #C8881A; }
.cj-alert.info { background: rgba(30,111,184,0.08); border-color: rgba(30,111,184,0.22); color: #1E6FB8; } .cj-alert.info .dot { background: #1E6FB8; }

/* ============================================================
   Settings — left category rail + content
   ============================================================ */
.cj-setitem { border-radius: 10px; font-family: var(--font) !important; font-weight: 500 !important; }
.cj-setitem:hover { background: #EDF2F9 !important; }
html[data-theme="dark"] .cj-setitem:hover { background: rgba(255,255,255,0.06) !important; }
.cj-setitem.active { background: #FFFFFF !important; font-weight: 600 !important; box-shadow: 0 1px 3px rgba(16,30,60,0.08); }
html[data-theme="dark"] .cj-setitem.active { background: var(--surface-2, #1A2233) !important; box-shadow: none; }

/* a simple white form card used by Application Settings / config editors */
.cj-formcard { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16,30,60,0.05), 0 8px 22px rgba(16,30,60,0.07); }
html[data-theme="dark"] .cj-formcard { background: var(--panel, #131926); border-color: var(--line); box-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.cj-codearea, .cj-codearea textarea { font-family: var(--mono-journal, 'IBM Plex Mono', monospace) !important; font-size: 12.5px !important; }
.cj-hint { font-size: 12px; color: var(--text-dim); }

/* config-monitor push cards (old frmConfigMonitor look) */
.cj-pushcard { border: 1px solid #E6ECF4; border-radius: 12px; transition: box-shadow .12s ease, border-color .12s ease; }
.cj-pushcard:hover { border-color: #C7D6EA; box-shadow: 0 2px 10px rgba(16,30,60,0.08); }
.cj-pushcard.sel { border-color: #1E6FB8; box-shadow: inset 3px 0 0 #1E6FB8, 0 2px 10px rgba(16,30,60,0.10); }
html[data-theme="dark"] .cj-pushcard { border-color: var(--line); }
html[data-theme="dark"] .cj-pushcard.sel { border-color: #5AA0FF; box-shadow: inset 3px 0 0 #5AA0FF; }

/* notification bell badge + dropdown rows */
.nt-badge { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #E0413F; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 0 0 2px var(--surface-0, #fff); }
.nt-row { display: flex; align-items: flex-start; gap: 11px; padding: 11px 14px; }
.nt-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.nt-text { display: flex; flex-direction: column; line-height: 1.3; }
.nt-title { font-size: 13px; font-weight: 600; color: #1B2A4A; }
.nt-sub { font-size: 11.5px; color: #7B8699; margin-top: 2px; }
html[data-theme="dark"] .nt-title { color: var(--text); }
html[data-theme="dark"] .nt-sub { color: var(--text-2); }

/* Per-terminal / cash-unit drawer: browser-native scroll for tab bodies (Wisej label AutoScroll is
   unreliable for HTML). Drawers are now FULL-HEIGHT (Dock=Fill body running to the footer), so the
   wrapper fills the whole body and only scrolls when content genuinely overflows — no empty gap above
   the status bar, no premature scrollbar (the old fixed max-height:498px capped content mid-drawer). */
/* Drawer body scroll wrapper. Its HEIGHT is set INLINE in px by the drawer code, computed from the
   drawer's actual rendered size (Wisej knows it exactly) — reliable, unlike height:100% (can't resolve
   through the Wisej label's content div) or 100vh (differs from the drawer's real height, which clipped
   content under the footer). Here we only own the scroll behaviour. */
.cj-modalscroll { overflow-y: auto; overflow-x: hidden; padding-right: 6px; box-sizing: border-box; }

/* Device Monitoring page — browser-native scroll for tall tab bodies + device-type cards */
.cj-pagescroll { max-height: calc(100vh - 300px); overflow-y: auto; overflow-x: hidden; padding-right: 6px; }
.cj-typecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 12px; }
.cj-typecard { background: #FFFFFF; border: 1px solid #E6ECF4; border-radius: 12px; padding: 12px 14px; }
html[data-theme="dark"] .cj-typecard { background: var(--panel, #131926); border-color: var(--line); }
.cj-typecard .tn { font-weight: 700; font-size: 13.5px; color: #1B2A4A; }
html[data-theme="dark"] .cj-typecard .tn { color: var(--text); }
.cj-typecard .tx { font-size: 11px; color: #8290A6; font-family: var(--mono-journal, monospace); text-transform: uppercase; }
.cj-typecard .tc { font-size: 12px; color: #6B7689; margin-top: 6px; }
.cj-stack { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: #E6EBF2; margin-top: 9px; }
html[data-theme="dark"] .cj-stack { background: rgba(255,255,255,0.08); }
.cj-stack i { display: block; height: 100%; }

/* Fleet Monitoring — device cards (per-terminal Hardware tab) */
.cj-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.cj-devcard { background: #FFFFFF; border: 1px solid #E6ECF4; border-radius: 12px; padding: 12px 14px; }
html[data-theme="dark"] .cj-devcard { background: var(--panel, #131926); border-color: var(--line); }
.cj-devhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cj-devname { font-weight: 700; font-size: 13.5px; color: #1B2A4A; }
html[data-theme="dark"] .cj-devname { color: var(--text); }
.cj-devmeta { font-size: 11px; color: #8290A6; margin-top: 3px; font-family: var(--mono-journal, monospace); text-transform: uppercase; letter-spacing: 0.03em; }
.cj-devrow { font-size: 12.5px; color: #41506B; margin-top: 6px; }
html[data-theme="dark"] .cj-devrow { color: var(--text-2); }

/* animated status dot (critical pulses, like the sample) */
.cj-pill.crit .dot { animation: cj-pulse 1.3s ease-in-out infinite; }
@keyframes cj-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224,59,67,0.55); }
  70%  { box-shadow: 0 0 0 5px rgba(224,59,67,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,59,67,0); }
}
.cj-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-right: 7px; }
.cj-dot.ok { background: #19A86A; } .cj-dot.warn { background: #C8881A; }
.cj-dot.crit { background: #E03B43; animation: cj-pulse 1.3s ease-in-out infinite; }
.cj-dot.idle { background: #8C96A5; } .cj-dot.maint { background: #9B6BE0; }

/* vendor tag */
.cj-vtag { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700;
  background: rgba(30,111,184,0.10); color: #1E6FB8; letter-spacing: 0.02em; }
html[data-theme="dark"] .cj-vtag { background: rgba(90,160,255,0.16); color: #8FBEF5; }

/* segmented status filter (button-driven) */
.cj-segwrap { display: inline-flex; gap: 2px; background: #EFF3F9; border-radius: 10px; padding: 3px; }
html[data-theme="dark"] .cj-segwrap { background: rgba(255,255,255,0.05); }
.cj-segbtn { background: transparent !important; border: none !important; box-shadow: none !important;
  color: #5A6B85 !important; font-weight: 600 !important; border-radius: 7px !important; font-family: var(--font) !important; }
.cj-segbtn:hover { background: rgba(16,30,60,0.05) !important; }
.cj-segbtn.active { background: #FFFFFF !important; color: #1B2A4A !important; box-shadow: 0 1px 3px rgba(16,30,60,0.12) !important; }
html[data-theme="dark"] .cj-segbtn { color: var(--text-2) !important; }
html[data-theme="dark"] .cj-segbtn.active { background: var(--surface-2, #1A2233) !important; color: var(--text) !important; }

/* ---- shell nav (Wisej-native items) overrides ----
   Wisej labels set their own inline font + color and ignore CSS padding, so force the font here
   (color/indent are handled on the controls) and render the active accent as a real child element. */
.sidebar .nav-item { font-family: var(--font) !important; font-size: 14px !important; font-weight: 500 !important; padding: 0 !important; }
.sidebar .nav-item.active { font-weight: 600 !important; }
.sidebar .nav-group-label { font-family: var(--font) !important; font-size: 10.5px !important; font-weight: 700 !important; letter-spacing: 0.14em !important; padding: 0 !important; }
.sidebar .collapse-btn { font-family: var(--font) !important; font-size: 13px !important; font-weight: 500 !important; padding: 0 !important; }
.sidebar .collapse-btn:hover { background: rgba(255,255,255,0.08); }
/* zero the inherited paddings so the collapse content fills the footer and centres vertically */
.sidebar .nav-foot { padding: 0 !important; }

/* active accent — rounded gold bar at the item's left edge, inset top/bottom (not full height) */
.sidebar .nav-item .nav-accent { position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 4px 4px 0; background: transparent; pointer-events: none; }
.sidebar .nav-item.active .nav-accent { background: var(--brand-gold); box-shadow: 0 0 9px rgba(240,192,24,0.55); }
.sidebar .nav-item.active::before { display: none; }

/* brand (benok logo on top, product name below — no white chip) */
/* hairline separator between the brand (logo + app name) and the nav items */
.sidebar .cj-brandbar { border-bottom: 1px solid rgba(255,255,255,0.12); }
.sidebar .cj-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 16px 12px; }
.sidebar .cj-brand-logo { height: 38px; width: auto; display: block; }
.sidebar .cj-brand-name { color: #FFFFFF; font-weight: 700; font-size: 28px; letter-spacing: -0.01em; white-space: nowrap; font-family: var(--font); padding-left: 2px; }

/* ---- topbar bar: the white strip must span the FULL width (incl. the docked user chip),
   so the background lives on the Wisej panel and the inner .topbar header is transparent ---- */
.topbar-bar { background: var(--surface-0, #ffffff); border-bottom: 1px solid var(--line); }
.topbar { background: transparent !important; border-bottom: none !important; backdrop-filter: none !important; }

/* ---- topbar user chip (avatar + name + role + caret) ---- */
.user-chip { display: flex; align-items: center; gap: 10px; padding: 0 8px; height: 100%; border-radius: 10px; cursor: pointer; font-family: var(--font); }
.user-chip:hover { background: #EDF2F9 !important; }
.uc-avatar { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #2A6FD6, #0B4D94); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.uc-meta { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; }
.uc-name { font-weight: 700; font-size: 13.5px; color: #1B2A4A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-role { font-size: 11.5px; color: #6B7689; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-caret { color: #9AA7BD; flex-shrink: 0; margin-left: auto; }
html[data-theme="dark"] .user-chip:hover { background: rgba(255,255,255,0.07) !important; }
html[data-theme="dark"] .uc-name { color: #E9EEF6; }
html[data-theme="dark"] .uc-role { color: #9FB0C9; }

/* ---- account dropdown card ---- */
.user-menu { background: #fff; border: 1px solid #E4E9F2; border-radius: 14px; box-shadow: 0 14px 44px rgba(16,30,60,0.18); overflow: hidden; font-family: var(--font); }
.um-header { font-size: 10.5px !important; font-weight: 700 !important; letter-spacing: 0.12em; color: #9AA7BD; padding: 12px 14px 4px; font-family: var(--font) !important; }
.um-item { border-radius: 10px; cursor: pointer; transition: background .12s ease; }
/* !important so the hover beats the inline `background:transparent` Wisej puts on the label */
.um-item:hover { background: #EAF1FB !important; }
html[data-theme="dark"] .um-item:hover { background: rgba(255,255,255,0.07) !important; }
.um-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; height: 100%; box-sizing: border-box; }
.um-ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff !important; flex-shrink: 0; }
.um-ico.blue { background: #2A6FD6; } .um-ico.teal { background: #0F8C7E; } .um-ico.red { background: #D8443C; }
.um-text { display: flex; flex-direction: column; line-height: 1.2; }
.um-title { font-weight: 700; font-size: 14px; }
.um-sub { font-size: 12px; }
.um-divider { height: 1px; background: #E9EDF4; margin: 5px 10px; align-self: center; }

/* ---- Electronic Journal tab control ---- */
.cj-tabs [class*="qx-tabview-page-button"] { font-family: var(--font) !important; font-weight: 600 !important; font-size: 13.5px !important; outline: none !important; }
.cj-tabs *:focus { outline: none !important; }

/* ---- EJ search card + fields ---- */
.cj-searchcard { background: #fff; border: 1px solid var(--line,#E4E9F2); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,30,60,0.05), 0 8px 22px rgba(16,30,60,0.07); overflow: hidden; }
.cj-searchbar { border-bottom: 1px solid var(--line,#E9EDF4); transition: background .12s; }
.cj-searchbar:hover { background: #F4F8FD !important; }
.ejlbl, .ejlbl * { color: #6B7689 !important; font-family: var(--font) !important; font-size: 12px !important; font-weight: 600 !important; }
.cj-seg, .cj-seg * { font-family: var(--font) !important; font-size: 13px !important; font-weight: 600 !important; }
/* segmented period control */
.cj-segwrap { background: #F1F4F9; border-radius: 10px; }

/* ---- stat cards: shadow so they pop ---- */
.cj-statcard { box-shadow: 0 1px 2px rgba(16,30,60,0.06), 0 6px 16px rgba(16,30,60,0.08) !important; }

/* ---- pager ---- */
.cj-pager, .cj-pager * { font-family: var(--font); color: #6B7689; font-size: 13px; }

/* ---- modal title bar: light strip + separator under it ---- */
.cj-modalhead { background: #F7FAFD !important; border-bottom: 1px solid var(--line,#E4E9F2) !important; }

/* ---- combobox dropdown list items: readable text -------------------------------------------
   Wisej/qooxdoo renders item states as SUFFIX classes (qx-listitem-selected / -hovered), not
   [selected] attributes — the default theme paints the selected item white-on-blue. Force a
   readable dark-on-tint scheme for normal, selected and hovered rows (and their inner label). */
.qx-listitem, .qx-listitem * { color: #1F2A3D !important; }
.qx-listitem-selected, .qx-listitem-selected *,
[class*="listitem-selected"], [class*="listitem-selected"] * {
    background-color: #EAF1FB !important; color: #0B3D6E !important; }
.qx-listitem-hovered, .qx-listitem-hovered *,
.qx-listitem:hover, .qx-listitem:hover *,
[class*="listitem-hovered"], [class*="listitem-hovered"] * {
    background-color: #F2F6FC !important; color: #0B3D6E !important; }

/* ---- checkbox captions: never clip the label (Wisej measures the text box slightly short) ---- */
.qx-checkbox, .qx-checkbox * { overflow: visible !important; }
.qx-checkbox * { white-space: nowrap !important; }

/* ---- grid pager: separator line above it ---- */
.cj-pagerbar { border-top: 1px solid var(--line,#E4E9F2) !important; }

/* ---- grid "View": a solid, filled blue button (white centred text, darker on hover) ---- */
.cj-grid .qx-table-button-cell-button,
.cj-grid .qx-table-button-cell-content,
.cj-grid .qx-table-button-cell-content-middle { background: #1B6FB8 !important; color: #FFFFFF !important; border: none !important; }
.cj-grid .qx-table-button-cell-button { border-radius: 7px !important; font-weight: 600 !important; margin: 5px 10px !important; transition: background .12s; }
.cj-grid .qx-table-button-cell-content,
.cj-grid .qx-table-button-cell-content-middle { display: flex !important; align-items: center !important; justify-content: center !important; text-align: center !important; width: 100% !important; height: 100% !important; }
.cj-grid .qx-table-button-cell-button:hover,
.cj-grid .qx-table-button-cell-button:hover .qx-table-button-cell-content,
.cj-grid .qx-table-button-cell-button:hover .qx-table-button-cell-content-middle { background: #0B4D94 !important; color: #FFFFFF !important; }
/* no focus rectangle on the cell itself */
.cj-grid .qx-cell { outline: none !important; }
.cj-grid [class*="cell-focused"], .cj-grid [class*="-focused-"] { border-color: transparent !important; box-shadow: none !important; outline: none !important; }
/* row hover + selected highlight (DataGridView) — Wisej's cell style has no SelectionBackColor, so
   the look is done entirely here against the qooxdoo cell/row state classes. */
.cj-grid .qx-cell:hover,
.cj-grid [class*="row-hovered"] .qx-cell, .cj-grid [class*="row-hovered"],
.cj-grid [class*="-hovered"] .qx-cell { background-color: #EEF3FA !important; }
/* full-row hover — the theme JS toggles .cj-rh on the whole row element */
.cj-grid .cj-rh, .cj-grid .cj-rh .qx-cell { background-color: #EEF3FA !important; }
html[data-theme="dark"] .cj-grid .cj-rh, html[data-theme="dark"] .cj-grid .cj-rh .qx-cell { background-color: rgba(255,255,255,0.05) !important; }
.cj-grid [class*="row-selected"] .qx-cell, .cj-grid [class*="row-selected"],
.cj-grid [class*="cell-selected"], .cj-grid .qx-cell[class*="selected"],
.cj-grid [class*="-selected"] .qx-cell { background-color: #E1ECFA !important; color: #0B3D6E !important; }

/* ---- video thumbnails: hover + selected state (matches the old viewer) ---- */
.cj-thumb { border: 1px solid #E6ECF4 !important; border-radius: 10px !important; transition: background .12s, border-color .12s; }
.cj-thumb:hover { background: #EEF3FA !important; border-color: #C9D8EC !important; }
.cj-thumb.sel { background: #E7F0FA !important; border-color: #1B6FB8 !important; box-shadow: inset 3px 0 0 #1B6FB8 !important; }

/* ---- Wisej modal window caption close (X): the theme renders it without a glyph, so draw a
   grey × on the caption's close element (first child, positioned at the caption's right) ---- */
/* only our modal forms (CssClass cj-modal) get the drawn ✕ — keeps it off the session-timeout window */
.cj-modal [class*="qx-window-captionbar"] > div:first-child { background-image: none !important; }
.cj-modal [class*="qx-window-captionbar"] > div:first-child::before { content: "✕"; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 16px; font-weight: 700; color: #000000 !important; opacity: 1 !important; }

/* ---- shared panel header strip: tinted (never plain white), subtle divider ---- */
.cj-panelhead { background: #EEF3F9 !important; border-bottom: 1px solid #E1E8F2 !important; }
/* black-box video viewer */
.cj-videobox { background: #0F1115 !important; border-radius: 10px !important; }

/* ---- Camera page: session list cards, thumbnail cards, filter chips ---- */
.cj-sesscard { border: 1px solid #E6ECF4 !important; border-radius: 12px !important; transition: background .12s, border-color .12s, box-shadow .12s; }
.cj-sesscard:hover { background: #F4F8FD !important; border-color: #C9D8EC !important; }
.cj-sesscard.sel { background: #EAF2FB !important; border-color: #1B6FB8 !important; box-shadow: inset 3px 0 0 #1B6FB8 !important; }

.cj-thumbcard { border: 2px solid transparent !important; border-radius: 10px !important; overflow: hidden !important; transition: border-color .12s, transform .08s; }
.cj-thumbcard:hover { border-color: #5B86B6 !important; }
.cj-thumbcard.sel { border-color: #1B6FB8 !important; box-shadow: 0 0 0 2px rgba(27,111,184,.25) !important; }

.cj-chip { border: 1px solid #DDE5F0 !important; border-radius: 16px !important; color: #5A6B85 !important; font-size: 12.5px !important; font-weight: 600 !important; background: #FFFFFF !important; transition: background .12s, color .12s, border-color .12s; }
.cj-chip:hover { background: #F2F6FC !important; border-color: #C2D2E8 !important; }
.cj-chip.on { background: #11497C !important; color: #FFFFFF !important; border-color: #11497C !important; }
