html{visibility:hidden}

/* Client account actions stay beside their account and wrap on small screens. */

.gc-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}

.gc-action{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:6px 9px;background:var(--card2);border:1px solid var(--line);border-radius:8px;color:var(--text);font:600 11px Inter,sans-serif;cursor:pointer}

.gc-action:hover{border-color:var(--teal)}.gc-action:focus-visible{outline:2px solid var(--teal);outline-offset:2px}

.gc-action.danger{color:var(--red)}.gc-action:disabled{opacity:.5;cursor:wait}.gc-action svg{width:14px;height:14px;flex:none}

.gc-client-row .acct-meta{overflow-wrap:anywhere}.gc-setup{color:var(--amber);margin-top:5px;font-size:11px}

.gc-dialog{border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--text);padding:0;width:min(480px,calc(100% - 32px));max-height:90vh;overflow:auto;margin:auto;box-shadow:0 20px 80px #0005}

.gc-dialog::backdrop{background:#07131d99}.gc-dialog header{padding:20px 22px 14px;border-bottom:1px solid var(--line2);display:flex;justify-content:space-between;gap:12px}.gc-dialog h2{font-size:18px;margin:0}

.gc-dialog-body{padding:18px 22px}.gc-dialog-body p{font-size:13px;line-height:1.6;margin:0 0 14px;color:var(--text-mute)}

.gc-dialog label{display:block;font-size:12px;font-weight:600;margin:12px 0 6px}.gc-dialog input:not([type=checkbox]){width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--card2);color:var(--text);font:14px Inter,sans-serif;box-sizing:border-box}

.gc-dialog .gc-confirm{display:flex;gap:8px;align-items:flex-start;font-weight:400;line-height:1.5}.gc-dialog footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 22px;border-top:1px solid var(--line2)}

.gc-dialog-error{font-size:13px;color:var(--red);line-height:1.5}.gc-dialog-error:empty{display:none}

@media(max-width:620px){.gc-client-row{flex-wrap:wrap}.gc-client-row .acct-info{min-width:calc(100% - 60px)}.gc-client-row .acct-name{white-space:normal}.gc-actions{width:100%;padding-left:48px;justify-content:flex-start}.gc-dialog header,.gc-dialog-body{padding:16px}.gc-dialog footer{padding:12px 16px}}







:root{--bg:#070d1c;--card:#0e1829;--card2:#111f33;--line:rgba(255,255,255,.08);--line2:rgba(255,255,255,.04);--teal:#3ee0c8;--teal-soft:rgba(62,224,200,.10);--teal-border:rgba(62,224,200,.25);--text:#eaf2ff;--text-dim:#8a9bb8;--text-mute:#4e607a;--red:#ff6b6b;--red-soft:rgba(255,107,107,.10);--green:#4ade80;--green-soft:rgba(74,222,128,.08);--green-border:rgba(74,222,128,.25);--amber:#fbbf24;--amber-soft:rgba(251,191,36,.08);--safe-top:env(safe-area-inset-top,0px);--safe-bot:env(safe-area-inset-bottom,0px)}

*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}

html,body{min-height:100vh;background:var(--bg);color:var(--text);font-family:'Inter',sans-serif;-webkit-font-smoothing:antialiased}

body{background:radial-gradient(900px 500px at 60% -5%,rgba(62,224,200,.06),transparent 60%),var(--bg)}



/* .topbar/.topbar-logo/.topbar-title are gone — /_niq_admin_header.js owns the

   bar now. Only the sub-label survives, as a local control riding in the bar. */

.topbar-sub{font-size:11px;color:#8AAAC8;letter-spacing:.1em;text-transform:uppercase;

  font-family:'Barlow Condensed',sans-serif;font-weight:600;white-space:nowrap}



/* The 72px top offset here existed ONLY to clear the old position:fixed

   topbar. The shared banner is position:sticky and occupies its own space,

   so the offset would now be a second empty gap. */

.wrap{max-width:560px;margin:0 auto;padding:20px 16px calc(var(--safe-bot) + 32px)}



/* tabs */

.tabs{display:flex;gap:4px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:4px;margin-bottom:20px}

.tab{flex:1;padding:9px;border:none;border-radius:9px;font-family:'Inter',sans-serif;font-size:13px;font-weight:700;cursor:pointer;transition:background .15s,color .15s;background:transparent;color:var(--text-mute)}

.tab.active{background:var(--teal);color:#05241e}

.fa-mods{display:flex;gap:6px;margin-top:7px;flex-wrap:wrap}

.fa-chip{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.03em;color:var(--text-mute);background:var(--card2);border:1px solid var(--line);border-radius:7px;padding:4px 9px;cursor:pointer;user-select:none}

.fa-chip input{width:14px;height:14px;margin:0;cursor:pointer}

.fa-chip.on{color:var(--teal);border-color:var(--teal-border);background:var(--teal-soft)}



/* cards */

.card{background:var(--card);border:1px solid var(--line);border-radius:14px;margin-bottom:10px;overflow:hidden}

.card-hd{padding:14px 16px;border-bottom:1px solid var(--line2);display:flex;align-items:center;justify-content:space-between}

.card-hd-title{font-size:13px;font-weight:800}

.card-hd-meta{font-size:11px;color:var(--text-mute)}

.card-body{padding:12px 16px}

.row{display:flex;justify-content:space-between;align-items:baseline;padding:6px 0;border-bottom:1px solid var(--line2);font-size:13px}

.row:last-child{border-bottom:none}

.row .lbl{color:var(--text-mute);font-size:12px}

.row .val{font-weight:600;text-align:right}



/* badges */

.badge{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;padding:3px 8px;border-radius:99px}

.badge-pending{background:var(--amber-soft);color:var(--amber);border:1px solid rgba(251,191,36,.25)}

.badge-approve{background:var(--green-soft);color:var(--green);border:1px solid var(--green-border)}

.badge-reject{background:var(--red-soft);color:var(--red);border:1px solid rgba(255,107,107,.2)}

.badge-active{background:var(--teal-soft);color:var(--teal);border:1px solid var(--teal-border)}

.badge-inactive{background:rgba(255,255,255,.04);color:var(--text-mute);border:1px solid var(--line)}



/* action buttons */

.btn-row{display:flex;gap:8px;margin-top:12px}

.btn-sm{padding:8px 14px;border:none;border-radius:8px;font-family:'Inter',sans-serif;font-size:12px;font-weight:800;cursor:pointer;transition:opacity .15s}

.btn-sm:disabled{opacity:.4;cursor:not-allowed}

.btn-approve{background:linear-gradient(135deg,var(--teal),#2bc9b4);color:#05241e}

.btn-reject{background:var(--red-soft);color:var(--red);border:1px solid rgba(255,107,107,.2)}

.btn-deactivate{background:var(--red-soft);color:var(--red);border:1px solid rgba(255,107,107,.2)}

.btn-activate{background:var(--teal-soft);color:var(--teal);border:1px solid var(--teal-border)}



/* account row */

.acct-row{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line2)}

.acct-row:last-child{border-bottom:none}

.acct-avatar{width:36px;height:36px;border-radius:50%;background:var(--teal-soft);border:1px solid var(--teal-border);display:grid;place-items:center;font-size:13px;font-weight:800;color:var(--teal);flex-shrink:0}

.acct-avatar.inactive{background:rgba(255,255,255,.04);border-color:var(--line);color:var(--text-mute)}

.acct-info{flex:1;min-width:0}

.acct-name{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.acct-meta{font-size:11px;color:var(--text-mute);margin-top:2px}

.acct-toggle{background:transparent;border:1px solid var(--line);border-radius:8px;padding:6px 10px;font-family:'Inter',sans-serif;font-size:11px;font-weight:700;cursor:pointer;color:var(--text-mute);transition:all .15s;flex-shrink:0}

.acct-toggle.deactivate{border-color:rgba(255,107,107,.3);color:var(--red)}

.acct-toggle.activate{border-color:var(--teal-border);color:var(--teal)}



.empty{text-align:center;padding:36px;color:var(--text-mute);font-size:14px}

.loading-wrap{display:flex;align-items:center;justify-content:center;padding:40px;color:var(--text-mute);font-size:14px;gap:10px}

.spinner{width:16px;height:16px;border:2px solid var(--line);border-top-color:var(--teal);border-radius:50%;animation:spin .7s linear infinite}

@keyframes spin{to{transform:rotate(360deg)}}



.section-label{font-size:11px;font-weight:700;color:var(--text-mute);letter-spacing:.8px;text-transform:uppercase;margin:20px 0 10px}



.pane{display:none}

.pane.active{display:block}

/* Embedded under Mission Control (?embed=1) — drop our own top bar; host frames it. */

/* Embed mode creates no banner at all (NIQ_ADMIN_HEADER_MANUAL above), so the

   .hdr rule is belt-and-braces. The MOUNT POINT is not: when the helper is

   suppressed it never replaces #niq-admin-header, so the div stays in the DOM

   and rendered its "Field Tickets" label as an 18px band above the content.

   Measured, not guessed — it showed up between the sub-nav and .wrap. */

body.niq-embed .hdr,body.niq-embed .topbar,

body.niq-embed #niq-admin-header{display:none!important}

body.niq-embed #niq-user-bar{display:none!important}  /* host already shows the user up top */

body.niq-embed .wrap{padding-top:8px!important;max-width:none;padding-left:24px;padding-right:24px}

/* ══ STANDALONE THEME (2026-08-29) ══════════════════════════════════════════

   The operator: "i want clean for everything and the option for dark." The

   standalone page was still committed to the dark app palette, so the banner's

   Light Mode toggle changed nothing here. Light reuses the EMBED light palette

   below verbatim — one design, already proven inside Mission Control — and dark

   restates the page's original app values, so Dark Mode is the app exactly as

   it shipped. Tokens are set on body (inherited by everything inside), so the

   :root base stays untouched for the embed context. */

body:not(.niq-embed){

  --bg:#F5F7FA; --card:#FFFFFF; --card2:#F0F2F5; --line:#E2E7EE; --line2:#EEF1F5;

  --teal:#008878; --teal-soft:rgba(0,136,120,.09); --teal-border:rgba(0,136,120,.28);

  --text:#1A2030; --text-dim:#3A5068; --text-mute:#6A8098;

  --red:#D03030; --red-soft:rgba(208,48,48,.08);

  --green:#00905A; --green-soft:rgba(0,144,90,.08); --green-border:rgba(0,144,90,.28);

  --amber:#C88500; --amber-soft:rgba(200,133,0,.10);

  background:var(--bg);   /* no radial teal glow on the light ground */

}

html[data-theme="dark"] body:not(.niq-embed){

  --bg:#070d1c; --card:#0e1829; --card2:#111f33; --line:rgba(255,255,255,.08); --line2:rgba(255,255,255,.04);

  --teal:#3ee0c8; --teal-soft:rgba(62,224,200,.10); --teal-border:rgba(62,224,200,.25);

  --text:#eaf2ff; --text-dim:#8a9bb8; --text-mute:#4e607a;

  --red:#ff6b6b; --red-soft:rgba(255,107,107,.10);

  --green:#4ade80; --green-soft:rgba(74,222,128,.08); --green-border:rgba(74,222,128,.25);

  --amber:#fbbf24; --amber-soft:rgba(251,191,36,.08);

  background:radial-gradient(900px 500px at 60% -5%,rgba(62,224,200,.06),transparent 60%),var(--bg);

}

/* Active tab ink must clear the fill in BOTH themes: dark teal #3ee0c8 takes

   the dark ink it always had; deep light teal #008878 takes white. */

body:not(.niq-embed) .tab.active{color:#fff}

html[data-theme="dark"] body:not(.niq-embed) .tab.active{color:#05241e}

body:not(.niq-embed) .btn-approve{background:var(--teal);color:#fff}

html[data-theme="dark"] body:not(.niq-embed) .btn-approve{background:linear-gradient(135deg,var(--teal),#2bc9b4);color:#05241e}



/* Embedded desktop redesign — re-skin to the Mission Control palette so the

   admin sits native in the dashboard (not the dark phone app). Matches host theme. */

body.niq-embed{

  --bg:#F5F7FA; --card:#FFFFFF; --card2:#F0F2F5; --line:#E2E7EE; --line2:#EEF1F5;

  --teal:#008878; --teal-soft:rgba(0,136,120,.09); --teal-border:rgba(0,136,120,.28);

  --text:#1A2030; --text-dim:#3A5068; --text-mute:#6A8098;

  --red:#D03030; --red-soft:rgba(208,48,48,.08);

  --green:#00905A; --green-soft:rgba(0,144,90,.08); --green-border:rgba(0,144,90,.28);

  --amber:#C88500; --amber-soft:rgba(200,133,0,.10);

  background:var(--bg)!important;

}

html[data-theme="dark"] body.niq-embed{

  --bg:#0E1218; --card:#161D28; --card2:#1C2433; --line:#2A3848; --line2:#222C3E;

  --teal:#00C0A8; --teal-soft:rgba(0,192,168,.12); --teal-border:rgba(0,192,168,.30);

  --text:#EEF3FA; --text-dim:#A0BCD4; --text-mute:#5A7898;

  --red:#F04848; --green:#00C07A; --amber:#E8A000;

}

/* Flat desktop tabs — not the chunky full-width app segmented control. */

body.niq-embed .tabs{display:inline-flex;width:auto;background:transparent;border:none;border-radius:0;padding:0;gap:6px;margin-bottom:14px}

body.niq-embed .tab{flex:0 0 auto;padding:8px 18px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text-dim)}

body.niq-embed .tab.active{background:var(--blu,#2B7DE0);border-color:var(--blu,#2B7DE0);color:#fff}

body.niq-embed .btn-approve{color:#fff}

body.niq-embed .card{box-shadow:0 1px 3px rgba(26,32,48,.06)}



/* ══ DESKTOP RECONSTRUCTION (2026-08-29, standalone only) ═══════════════════

   The base styles above ARE the mobile app layout — one 560px column, tab

   groups stacked over one visible pane — and they are preserved verbatim: at

   ≤720px nothing below applies, so the phone keeps the app it had. Embed mode

   is excluded too (body:not(.niq-embed)); Mission Control owns that context

   and its measured baseline stays byte-identical.



   On a desktop the same markup re-flows as a workbench: the two group labels

   and their tab rails move into a left sidebar — every destination visible at

   once instead of two stacked pill rows — and the active pane sits beside

   them at reading width. No markup and no JS changed; switchTab() and the

   ?tab= deep link work identically in both layouts. The panes share one grid

   area and only the active one is displayed, so they stack exactly as before.

   Sidebar rules are scoped to .wrap's DIRECT children — .section-label and

   .tabs also occur INSIDE panes, and those must not move. */

@media(min-width:721px){

  body:not(.niq-embed) .wrap{max-width:1280px;display:grid;

    grid-template-columns:236px minmax(0,1fr);gap:0 36px;align-content:start;

    padding-left:28px;padding-right:28px}

  body:not(.niq-embed) .wrap>.section-label{grid-column:1;margin:0 0 8px!important}

  body:not(.niq-embed) .wrap>.section-label~.section-label{margin-top:22px!important}

  body:not(.niq-embed) .wrap>.tabs{grid-column:1;flex-direction:column;gap:4px;

    padding:5px;margin-bottom:0}

  body:not(.niq-embed) .wrap>.tabs .tab{flex:none;width:100%;text-align:left;

    padding:10px 14px}

  body:not(.niq-embed) .wrap>.pane{grid-column:2;grid-row:1/span 8;min-width:0;

    max-width:920px}

  /* The first label inside a pane is the pane's own heading — on desktop it

     doubles as the page-area title, so give it a touch more presence. */

  body:not(.niq-embed) .wrap>.pane>.section-label:first-child{font-size:12px;

    letter-spacing:1px;margin-top:2px}

}



body.native-access .wrap{display:block;max-width:none;padding:0;margin:0}

.access-top{display:flex;align-items:center;gap:20px;padding:16px 28px;border-bottom:1px solid var(--line);background:#070c14;color:#fff}

.access-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-size:14px;font-weight:800}.access-brand img{width:30px;height:34px;object-fit:contain}

.access-top nav{display:flex;gap:20px;margin-left:auto}.access-top nav a{font-size:13px;color:#c6d3e3;text-decoration:none}

.access-layout{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:calc(100vh - 70px)}

.access-sidebar{padding:28px 18px;border-right:1px solid var(--line);background:var(--card)}

.access-sidebar .section-label{margin:22px 10px 7px;font-size:10px}.access-sidebar .section-label:first-child{margin-top:0}

.access-sidebar .tabs{display:flex;flex-direction:column;border:0;background:none;padding:0;gap:3px;margin:0}.access-sidebar .tab{flex:none;text-align:left;font-weight:600;padding:11px 12px;font-size:13px}

.access-sidebar .tab.active{background:var(--teal-soft)!important;color:var(--teal)!important;box-shadow:inset 3px 0 var(--teal)}

.access-content{padding:30px clamp(20px,3vw,48px);min-width:0;max-width:1400px;width:100%}.access-intro{margin-bottom:26px;display:flex;justify-content:space-between;gap:20px;align-items:center}.access-intro h1{font-size:26px;letter-spacing:-.6px}.access-intro p{color:var(--text-dim);font-size:13px;line-height:1.6;margin-top:6px}

.access-link{font-size:13px;color:var(--teal);text-decoration:none;font-weight:600}.access-note{font-size:13px;line-height:1.65;color:var(--text-dim);padding:16px 18px;border:1px solid var(--line);border-radius:10px;background:var(--card);margin-bottom:18px}

.access-content .pane>.section-label:first-child{font-size:16px;letter-spacing:0;text-transform:none;margin-top:0;color:var(--text)}

.access-content .acct-row{background:var(--card)}.access-content .acct-name{white-space:normal}.access-content .acct-meta{overflow-wrap:anywhere}

.access-content .card{border-radius:10px}.access-content .acct-grid{border:1px solid var(--line);border-radius:10px;overflow:hidden}

.access-apps{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.access-apps article{padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--card)}.access-apps h3{font-size:16px;margin-bottom:8px}.access-apps p{font-size:13px;line-height:1.6;color:var(--text-dim);margin:10px 0}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--teal);outline-offset:3px}

@media(max-width:760px){.access-layout{grid-template-columns:1fr}.access-sidebar{padding:12px;border-right:0;border-bottom:1px solid var(--line);display:flex;gap:16px;overflow:auto}.access-sidebar>section{flex:none}.access-sidebar .section-label{margin:0 4px 6px}.access-sidebar .tabs{flex-direction:row}.access-sidebar .tab{white-space:nowrap;font-size:12px;padding:9px}.access-content{padding:22px 16px}.access-top{padding:12px 16px}.access-top nav{gap:12px}.access-intro{align-items:flex-start;flex-direction:column}.access-intro h1{font-size:23px}}


body.native-access [hidden]{display:none!important}

.access-top{flex-wrap:wrap}.access-top #niq-user-bar{flex-wrap:wrap}
@media(max-width:760px){.access-top #niq-user-bar{order:3;width:100%;margin:0!important;padding:8px 0 0!important;border-left:0!important}}

/* Approvals lives inside the Tickets workspace; keep only the inner controls. */
body.native-access.niq-embed .access-top{display:none}
body.native-access.niq-embed .access-layout{min-height:560px;grid-template-columns:210px minmax(0,1fr)}
body.native-access.niq-embed .access-sidebar{padding:18px 12px;background:transparent}
body.native-access.niq-embed .access-content{padding:18px 24px;max-width:none}
body.native-access.niq-embed .access-intro{display:none}
body.native-access.niq-embed .access-note{padding:10px 14px;margin-bottom:18px}
@media(max-width:760px){body.native-access.niq-embed .access-layout{grid-template-columns:1fr}body.native-access.niq-embed .access-content{padding:16px}}

/* Task-first navigation: request review, permissions, account administration. */
.access-nav-list{display:grid;gap:2px}
.access-nav-item{display:block;width:100%;text-align:left;background:transparent;border:0;border-radius:5px;padding:7px 12px;font:500 13px Inter,sans-serif;color:var(--text-dim);cursor:pointer}
.access-nav-item:hover{background:var(--teal-soft)}
.access-nav-item[aria-current=page]{background:var(--teal-soft);color:var(--teal);box-shadow:inset 3px 0 var(--teal)}
.access-sidebar section{margin-bottom:17px}
.access-sidebar .section-label{margin:0 10px 5px!important}
.access-create{border-top:1px solid var(--line);padding-top:13px}
.access-view-title{font-size:19px;margin:0 0 8px}.access-view-note{font-size:13px;color:var(--text-dim);line-height:1.5;margin:0 0 16px}
#access-create-type{display:block;min-width:260px;padding:11px;border:1px solid var(--line);border-radius:7px;margin:8px 0 14px;background:var(--card);color:var(--text)}
body[data-access-group=accounts] .field-module-controls{display:none}
body[data-access-group=access] .field-account-controls{display:none!important}
#legacy-foremen-slot{margin-top:18px}
#legacy-foremen-slot .pane{display:block}#legacy-foremen-slot details>summary{cursor:pointer;padding:12px 0;font-size:13px}
body[data-access-group=accounts] #legacy-foremen-slot .fa-mods{display:none}
#access-create-form iframe{width:100%;min-height:980px;border:1px solid var(--line);border-radius:8px}
@media(max-width:760px){.access-nav-list{display:flex}.access-sidebar section{margin-bottom:0}.access-nav-item{white-space:nowrap}}

/* Solid section bands distinguish group headings from their destinations. */
.access-sidebar>section>.section-label{margin:0 0 6px!important;padding:9px 12px;background:#20394d;color:#fff;border-radius:4px;font-size:10px;font-weight:700;letter-spacing:.75px;line-height:1.4}

.access-sidebar>section>.access-create{background:#20394d;color:#fff;min-height:36px;padding:9px 12px;font-size:10px;font-weight:700;letter-spacing:.65px;text-transform:uppercase;border-radius:4px}
.access-sidebar>section>.access-create:hover{background:#2d4b63}
.access-sidebar>section>.access-create[aria-current=page]{background:#20394d;color:#fff;box-shadow:inset 3px 0 var(--teal)}
