/* TBS Studio Modern UI System — 2026-10-02 */
:root{
  --tbs-bg:#090b10;--tbs-bg2:#0d1017;--tbs-surface:#121722;--tbs-surface2:#171d29;
  --tbs-elev:#1b2230;--tbs-line:#283142;--tbs-line2:#343f53;--tbs-text:#f5f7fb;
  --tbs-muted:#939daf;--tbs-muted2:#bcc4d1;--tbs-accent:#e32636;--tbs-accent2:#ff4050;
  --tbs-green:#35c979;--tbs-amber:#f3b544;--tbs-blue:#56a8ff;--tbs-danger:#ff5b68;
  --tbs-radius:14px;--tbs-radius-sm:10px;--tbs-shadow:0 18px 50px rgba(0,0,0,.28);
  --tbs-font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
html{background:var(--tbs-bg);scrollbar-color:#364157 #0c1017}
body.tbs-admin-ui,body.tbs-employee-ui{margin:0!important;background:linear-gradient(135deg,#090b10 0%,#0c1018 48%,#110b10 100%)!important;color:var(--tbs-text)!important;font-family:var(--tbs-font)!important;letter-spacing:-.008em;min-height:100vh}
body.tbs-admin-ui *,body.tbs-employee-ui *{box-sizing:border-box}
body.tbs-admin-ui button,body.tbs-admin-ui input,body.tbs-admin-ui select,body.tbs-admin-ui textarea,
body.tbs-employee-ui button,body.tbs-employee-ui input,body.tbs-employee-ui select,body.tbs-employee-ui textarea{font-family:var(--tbs-font)}
body.tbs-admin-ui .app,body.tbs-employee-ui .app{min-height:100vh;align-items:stretch}

/* Sidebar */
body.tbs-admin-ui aside,body.tbs-employee-ui .side{width:278px!important;height:100vh!important;position:sticky!important;top:0!important;padding:20px 14px 16px!important;background:rgba(10,13,19,.96)!important;border-right:1px solid rgba(255,255,255,.07)!important;box-shadow:14px 0 40px rgba(0,0,0,.16);backdrop-filter:blur(18px);z-index:30;overflow:auto}
body.tbs-admin-ui aside::-webkit-scrollbar,body.tbs-employee-ui .side::-webkit-scrollbar{width:5px}body.tbs-admin-ui aside::-webkit-scrollbar-thumb,body.tbs-employee-ui .side::-webkit-scrollbar-thumb{background:#30394a;border-radius:10px}
body.tbs-admin-ui .brand,body.tbs-employee-ui .brand{display:flex!important;align-items:center;gap:10px;margin:2px 8px 22px!important;color:#fff!important;font-size:16px!important;font-weight:850!important;letter-spacing:.02em!important;white-space:nowrap}
body.tbs-admin-ui .brand:before,body.tbs-employee-ui .brand:before{content:"T";display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:linear-gradient(145deg,#f32a3b,#a90919);box-shadow:0 8px 25px rgba(227,38,54,.28);font-size:18px;font-weight:900;color:#fff}
body.tbs-admin-ui .brand span,body.tbs-employee-ui .brand span{color:#ff5360!important}
body.tbs-admin-ui .nav,body.tbs-employee-ui .nav{display:flex;flex-direction:column;gap:3px}
body.tbs-admin-ui .nav button,body.tbs-employee-ui .nav button{position:relative;display:flex!important;align-items:center;gap:11px;width:100%!important;min-height:43px;padding:9px 11px!important;margin:0!important;border:1px solid transparent!important;border-radius:11px!important;background:transparent!important;color:#9ea8b8!important;text-align:left!important;font-size:13px!important;font-weight:620!important;line-height:1.25;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
body.tbs-admin-ui .nav button:hover,body.tbs-employee-ui .nav button:hover{background:#151b26!important;border-color:#202a3a!important;color:#f7f9fc!important;transform:translateX(1px)}
body.tbs-admin-ui .nav button.active,body.tbs-employee-ui .nav button.active{background:linear-gradient(100deg,rgba(227,38,54,.18),rgba(227,38,54,.055))!important;border-color:rgba(227,38,54,.28)!important;color:#fff!important;box-shadow:inset 3px 0 0 var(--tbs-accent)}
body.tbs-admin-ui .nav button .tbs-icon,body.tbs-employee-ui .nav button .tbs-icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;color:currentColor}
.tbs-icon svg{width:100%;height:100%;display:block;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.tbs-admin-ui .nav-parent{display:flex;align-items:center;gap:10px;margin:12px 6px 4px!important;padding:8px 7px 5px!important;color:#6f7b8e!important;text-transform:uppercase;font-size:10px!important;letter-spacing:.12em;font-weight:800!important}
body.tbs-admin-ui .nav-parent .tbs-icon{width:15px;height:15px}
body.tbs-admin-ui .nav-sub{margin:0!important;padding:0!important;border:0!important}
body.tbs-admin-ui .nav-sub .agreement-nav-child{padding-left:40px!important}
body.tbs-admin-ui .monthBox{margin-top:18px!important;border-top:1px solid rgba(255,255,255,.075)!important;padding:16px 7px 5px!important}
body.tbs-admin-ui .monthBox label{font-size:10px!important;letter-spacing:.1em!important;color:#717d90!important;font-weight:800}
body.tbs-admin-ui .monthBox select{height:40px;background:#121822!important;border:1px solid #293345!important;border-radius:10px!important;color:#f3f6fa!important;padding:0 10px!important}

/* Main shell */
body.tbs-admin-ui main,body.tbs-employee-ui .main{max-width:none!important;margin:0!important;padding:26px 30px 42px!important;background:radial-gradient(circle at 90% 0%,rgba(227,38,54,.07),transparent 30%);min-width:0}
body.tbs-admin-ui main>.top,body.tbs-employee-ui .main>.top{min-height:72px;margin:0 0 22px!important;padding:0 2px 18px;border-bottom:1px solid rgba(255,255,255,.07);align-items:center!important}
body.tbs-admin-ui .title h1,body.tbs-employee-ui .main>.top h1{margin:0 0 5px!important;font-size:25px!important;line-height:1.2!important;letter-spacing:-.035em!important;font-weight:800!important;color:#fff!important}
body.tbs-admin-ui .hint,body.tbs-admin-ui .muted,body.tbs-employee-ui .muted{color:var(--tbs-muted)!important}
body.tbs-admin-ui .tbs-color-legend{margin:10px 0 0!important}
body.tbs-admin-ui .tbs-color-legend span{border:1px solid rgba(255,255,255,.06);font-size:10px!important;padding:4px 8px!important}

/* Buttons */
body.tbs-admin-ui .btn,body.tbs-employee-ui .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 12px!important;border-radius:10px!important;border:1px solid #303a4d!important;background:#171d28!important;color:#eef2f7!important;font-size:12px!important;font-weight:700!important;line-height:1.1!important;box-shadow:none;transition:background .16s ease,border .16s ease,transform .14s ease,box-shadow .16s ease}
body.tbs-admin-ui .btn:hover,body.tbs-employee-ui .btn:hover{background:#202838!important;border-color:#3e4a60!important;transform:translateY(-1px)}
body.tbs-admin-ui .btn.primary,body.tbs-employee-ui .btn.primary{background:linear-gradient(145deg,#ed2b3c,#c91627)!important;border-color:#f13b4a!important;color:#fff!important;box-shadow:0 8px 22px rgba(227,38,54,.19)}
body.tbs-admin-ui .btn.primary:hover,body.tbs-employee-ui .btn.primary:hover{background:linear-gradient(145deg,#ff3d4d,#d61a2b)!important;box-shadow:0 10px 28px rgba(227,38,54,.27)}
body.tbs-admin-ui .btn.danger,body.tbs-employee-ui .btn.danger{background:rgba(255,72,86,.07)!important;border-color:rgba(255,91,104,.32)!important;color:#ff929b!important}
body.tbs-admin-ui .btn.green,body.tbs-employee-ui .btn.green{background:rgba(53,201,121,.13)!important;border-color:rgba(53,201,121,.3)!important;color:#87e8b3!important}
body.tbs-admin-ui .btn.small,body.tbs-employee-ui .btn.small{min-height:31px!important;padding:6px 9px!important;font-size:11px!important;border-radius:8px!important}
body.tbs-admin-ui .btn .tbs-icon,body.tbs-employee-ui .btn .tbs-icon{width:15px;height:15px}

/* Panels/cards */
body.tbs-admin-ui .card,body.tbs-admin-ui .panel,body.tbs-employee-ui .card,body.tbs-employee-ui .panel{background:linear-gradient(180deg,rgba(20,25,35,.97),rgba(16,21,30,.97))!important;border:1px solid rgba(255,255,255,.075)!important;border-radius:var(--tbs-radius)!important;box-shadow:0 12px 32px rgba(0,0,0,.12)!important;color:var(--tbs-text)!important}
body.tbs-admin-ui .card,body.tbs-employee-ui .card{padding:17px 18px!important;min-height:102px;position:relative;overflow:hidden}
body.tbs-admin-ui .card:after,body.tbs-employee-ui .card:after{content:"";position:absolute;inset:auto -24px -32px auto;width:78px;height:78px;border-radius:50%;background:rgba(227,38,54,.035)}
body.tbs-admin-ui .card .label,body.tbs-employee-ui .card .label{font-size:10px!important;color:#8691a3!important;letter-spacing:.085em!important;font-weight:800!important}
body.tbs-admin-ui .card .value,body.tbs-employee-ui .card .value{font-size:27px!important;letter-spacing:-.035em;color:#fff!important}
body.tbs-admin-ui .panel,body.tbs-employee-ui .panel{padding:18px!important;margin-bottom:15px}
body.tbs-admin-ui .panel h2,body.tbs-employee-ui .panel h2{margin:0 0 13px!important;font-size:15px!important;font-weight:780!important;color:#f6f8fb!important;letter-spacing:-.015em}
body.tbs-admin-ui .cards,body.tbs-employee-ui .cards{gap:12px!important}
body.tbs-admin-ui .grid2,body.tbs-employee-ui .grid2{gap:15px!important}

/* Forms */
body.tbs-admin-ui input:not([type=checkbox]):not([type=radio]),body.tbs-admin-ui select,body.tbs-admin-ui textarea,
body.tbs-employee-ui input:not([type=checkbox]):not([type=radio]),body.tbs-employee-ui select,body.tbs-employee-ui textarea{min-height:40px!important;background:#0d121a!important;color:#f1f4f8!important;border:1px solid #2c3648!important;border-radius:10px!important;padding:9px 11px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.015)!important;transition:border .15s,box-shadow .15s,background .15s}
body.tbs-admin-ui textarea,body.tbs-employee-ui textarea{min-height:84px!important;resize:vertical}
body.tbs-admin-ui input:focus,body.tbs-admin-ui select:focus,body.tbs-admin-ui textarea:focus,
body.tbs-employee-ui input:focus,body.tbs-employee-ui select:focus,body.tbs-employee-ui textarea:focus{outline:none!important;border-color:rgba(227,38,54,.7)!important;box-shadow:0 0 0 3px rgba(227,38,54,.11)!important;background:#101720!important}
body.tbs-admin-ui label,body.tbs-employee-ui label{color:#b9c1ce!important;font-size:11px!important;font-weight:650}
body.tbs-admin-ui ::placeholder,body.tbs-employee-ui ::placeholder{color:#5f6b7e!important}
body.tbs-admin-ui .filters{gap:9px!important;padding:2px 0 4px}
body.tbs-admin-ui .row-check{accent-color:var(--tbs-accent)!important;width:16px!important;height:16px!important}

/* Tables */
body.tbs-admin-ui .tablewrap,body.tbs-employee-ui .wrap{border:1px solid rgba(255,255,255,.065);border-radius:12px;overflow:auto;background:#0d1219}
body.tbs-admin-ui table,body.tbs-employee-ui .table{border-collapse:separate!important;border-spacing:0!important;background:transparent!important;color:#dfe4ec!important}
body.tbs-admin-ui thead,body.tbs-employee-ui .table thead{background:#151b25!important;color:#9ca7b7!important}
body.tbs-admin-ui th,body.tbs-employee-ui .table th{position:relative;background:#151b25!important;color:#8d98aa!important;border-bottom:1px solid #2a3445!important;padding:10px 10px!important;font-size:10px!important;font-weight:800!important;letter-spacing:.055em!important;white-space:nowrap}
body.tbs-admin-ui td,body.tbs-employee-ui .table td{padding:11px 10px!important;border-bottom:1px solid rgba(255,255,255,.055)!important;color:#d6dce5!important;font-size:12px!important;background:transparent!important}
body.tbs-admin-ui tbody tr,body.tbs-employee-ui .table tbody tr{transition:background .13s}
body.tbs-admin-ui tbody tr:hover,body.tbs-employee-ui .table tbody tr:hover{background:rgba(255,255,255,.025)!important}
body.tbs-admin-ui tbody tr:last-child td,body.tbs-employee-ui .table tbody tr:last-child td{border-bottom:0!important}
body.tbs-admin-ui .bulkbar{background:#101620!important;border:1px solid #273143!important;border-radius:11px!important;padding:9px 11px!important}

/* Pills / badges */
body.tbs-admin-ui .pill,body.tbs-admin-ui .tag,body.tbs-employee-ui .tag{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px!important;border:1px solid rgba(255,255,255,.06);border-radius:999px!important;background:#202837!important;color:#cbd3df!important;font-size:10px!important;font-weight:750!important;white-space:nowrap}
body.tbs-admin-ui .pill.done,body.tbs-employee-ui .completed,body.tbs-employee-ui .approved{background:rgba(53,201,121,.12)!important;color:#7ce2aa!important;border-color:rgba(53,201,121,.2)!important}
body.tbs-admin-ui .pill.progress,body.tbs-employee-ui .progress{background:rgba(86,168,255,.12)!important;color:#90c8ff!important;border-color:rgba(86,168,255,.2)!important}
body.tbs-admin-ui .pill.pending,body.tbs-employee-ui .assigned{background:rgba(243,181,68,.12)!important;color:#f7ca74!important;border-color:rgba(243,181,68,.2)!important}
body.tbs-employee-ui .revision{background:rgba(255,91,104,.12)!important;color:#ff9099!important;border-color:rgba(255,91,104,.2)!important}
.tbs-nav-badge{margin-left:auto!important;display:inline-grid!important;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#e32636!important;color:#fff!important;font-size:10px!important;font-weight:850!important;box-shadow:0 0 0 3px rgba(227,38,54,.08)}
.tbs-nav-badge[hidden]{display:none!important}

/* Modals */
body.tbs-admin-ui .modal,body.tbs-employee-ui .modal{background:rgba(3,6,10,.78)!important;backdrop-filter:blur(7px)!important;padding:22px!important}
body.tbs-admin-ui .modalbox,body.tbs-employee-ui .modalbox{background:linear-gradient(180deg,#151b25,#10151e)!important;border:1px solid #303a4d!important;border-radius:18px!important;padding:21px!important;box-shadow:0 35px 100px rgba(0,0,0,.55)!important;color:#f3f6fa!important}
body.tbs-admin-ui .modalbox hr,body.tbs-employee-ui .modalbox hr{border:0!important;border-top:1px solid #2b3546!important}

/* Login */
body.tbs-admin-ui #loginScreen,body.tbs-employee-ui #login{background:radial-gradient(circle at 72% 10%,rgba(128,9,26,.65),transparent 31%),linear-gradient(145deg,#07090d,#0c1119 65%,#08090d)!important}
body.tbs-admin-ui .login-card,body.tbs-employee-ui .login{background:rgba(16,21,30,.95)!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:20px!important;box-shadow:0 34px 100px rgba(0,0,0,.55)!important;backdrop-filter:blur(18px)!important}
body.tbs-admin-ui .login-mark{border-radius:14px!important;background:linear-gradient(145deg,#f32a3b,#ac0d1c)!important;box-shadow:0 12px 35px rgba(227,38,54,.28)!important}
body.tbs-employee-ui .login>div:first-child{width:54px;height:54px;display:grid;place-items:center;background:linear-gradient(145deg,#f32a3b,#ac0d1c);border-radius:14px;color:white!important;box-shadow:0 12px 35px rgba(227,38,54,.28)}

/* Employee chat and notification surfaces */
body.tbs-employee-ui .task-chat-shell,body.tbs-admin-ui .admin-chat-panel{border:1px solid #2c3648!important;border-radius:14px!important;background:#0d121a!important;overflow:hidden!important}
body.tbs-employee-ui .task-chat-shell .chat,body.tbs-employee-ui .chat{background:radial-gradient(circle at 82% 0%,rgba(227,38,54,.08),transparent 32%),#0c1118!important;border-color:#273143!important;border-radius:12px!important}
body.tbs-employee-ui .msg{border:1px solid rgba(255,255,255,.06);background:#1a2230!important;border-radius:13px 13px 13px 4px!important;padding:9px 11px!important}
body.tbs-employee-ui .msg.me{background:linear-gradient(145deg,#631523,#3f111a)!important;border-color:rgba(227,38,54,.2)!important;border-radius:13px 13px 4px 13px!important}
body.tbs-employee-ui .notification-item{border-bottom:1px solid rgba(255,255,255,.06)!important}
body.tbs-employee-ui .notification-item.unread{background:rgba(227,38,54,.055)!important;border:1px solid rgba(227,38,54,.1)!important}
body.tbs-employee-ui .notification-icon{background:#1b2330!important;border:1px solid #293447!important}

/* Folder/file rows */
body.tbs-admin-ui .folder{background:#101620!important;border:1px solid #293345!important;border-radius:12px!important;padding:13px 14px!important}
body.tbs-admin-ui .folder:hover{background:#161d29!important;border-color:#38445a!important}

/* Preserve document/PDF preview surfaces */
body.tbs-admin-ui .invoice,body.tbs-admin-ui .agreement-document,body.tbs-admin-ui .contract-document,
body.tbs-employee-ui .employee-statement{font-family:Arial,Helvetica,sans-serif!important}
body.tbs-admin-ui .invoice{background:#fff!important;color:#111!important;border-radius:4px!important}
body.tbs-admin-ui .invoice input,body.tbs-admin-ui .invoice textarea{background:transparent!important;color:#111!important;border-radius:0!important;min-height:0!important;box-shadow:none!important;padding:2px!important}
body.tbs-admin-ui .invoice table{color:#111!important;background:#fff!important}
body.tbs-admin-ui .invoice td{color:#111!important;background:#fff!important;border-bottom:1px solid #ddd!important}
body.tbs-admin-ui .invoice th{color:#fff!important;background:#e31b23!important;border-bottom:0!important}
body.tbs-employee-ui .employee-statement input,body.tbs-employee-ui .employee-statement textarea{background:#fff!important;color:#17191d!important}

/* Responsive */
@media(max-width:1100px){body.tbs-admin-ui aside,body.tbs-employee-ui .side{width:230px!important}body.tbs-admin-ui main,body.tbs-employee-ui .main{padding:22px!important}}
@media(max-width:760px){
 body.tbs-admin-ui .app,body.tbs-employee-ui .app{display:block!important}
 body.tbs-admin-ui aside,body.tbs-employee-ui .side{position:relative!important;width:100%!important;height:auto!important;max-height:none!important;border-right:0!important;border-bottom:1px solid rgba(255,255,255,.07)!important;padding:13px!important}
 body.tbs-admin-ui .brand,body.tbs-employee-ui .brand{margin:2px 5px 12px!important}
 body.tbs-admin-ui .nav,body.tbs-employee-ui .nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px!important}
 body.tbs-admin-ui .nav button,body.tbs-employee-ui .nav button{min-height:40px!important;padding:8px 9px!important}
 body.tbs-admin-ui .nav-parent{grid-column:1/-1;margin-top:7px!important}
 body.tbs-admin-ui .nav-sub{display:contents!important}
 body.tbs-admin-ui .nav-sub .agreement-nav-child{padding-left:10px!important}
 body.tbs-admin-ui .monthBox{margin-top:10px!important}
 body.tbs-admin-ui main,body.tbs-employee-ui .main{padding:18px 13px 32px!important}
 body.tbs-admin-ui main>.top,body.tbs-employee-ui .main>.top{align-items:flex-start!important}
 body.tbs-admin-ui .cards,body.tbs-employee-ui .cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.tbs-admin-ui .filters{grid-template-columns:1fr!important}
 body.tbs-admin-ui .modal,body.tbs-employee-ui .modal{padding:8px!important;align-items:flex-end!important}
 body.tbs-admin-ui .modalbox,body.tbs-employee-ui .modalbox{width:100%!important;max-height:94vh!important;border-radius:18px 18px 10px 10px!important}
}
@media(max-width:460px){body.tbs-admin-ui .cards,body.tbs-employee-ui .cards{grid-template-columns:1fr!important}body.tbs-admin-ui .nav,body.tbs-employee-ui .nav{grid-template-columns:1fr!important}}
body.tbs-admin-ui .nav-group-title,body.tbs-employee-ui .nav-group-title{margin:13px 8px 5px;color:#5f6b7d;font-size:9px;font-weight:850;letter-spacing:.13em;text-transform:uppercase}
body.tbs-admin-ui .nav-group-title:first-child,body.tbs-employee-ui .nav-group-title:first-child{margin-top:2px}
body.tbs-admin-ui .nav-sub .agreement-nav-child .tbs-icon{width:16px;height:16px}

/* =============================================================
   TBS Studio UI refinement v2 — compact, clean, production shell
   ============================================================= */

/* Hard guard: icons can never inherit card/button dimensions. */
.tbs-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;flex:0 0 18px!important;line-height:0!important;overflow:hidden!important}
.tbs-icon svg{display:block!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;overflow:visible!important;vector-effect:non-scaling-stroke!important}
.btn .tbs-icon{width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;min-height:16px!important;max-height:16px!important;flex-basis:16px!important}
.btn .tbs-icon svg{width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;min-height:16px!important;max-height:16px!important}

body.tbs-admin-ui,body.tbs-employee-ui{
  --tbs-bg:#080b11;--tbs-sidebar:#0b0f16;--tbs-surface:#111722;--tbs-surface2:#151c28;
  --tbs-surface3:#1a2230;--tbs-line:#252f3e;--tbs-text:#f6f8fb;--tbs-muted:#8995a7;
  --tbs-accent:#ed2738;--tbs-accent-soft:rgba(237,39,56,.10);--tbs-radius:12px;
  background:#080b11!important;color:var(--tbs-text)!important;
}
body.tbs-admin-ui .app,body.tbs-employee-ui .app{display:grid!important;grid-template-columns:248px minmax(0,1fr)!important;background:#080b11!important;min-height:100vh!important}

/* Sidebar: compact app navigation, not giant cards. */
body.tbs-admin-ui aside,body.tbs-employee-ui .side{
  width:248px!important;min-width:248px!important;height:100vh!important;position:sticky!important;top:0!important;
  padding:18px 12px 16px!important;background:linear-gradient(180deg,#0b0f16 0%,#090d13 100%)!important;
  border-right:1px solid #1d2531!important;box-shadow:none!important;overflow-y:auto!important;overflow-x:hidden!important;
}
body.tbs-admin-ui .brand,body.tbs-employee-ui .brand{
  height:46px!important;margin:0 6px 17px!important;padding:0!important;gap:10px!important;font-size:14px!important;font-weight:850!important;
}
body.tbs-admin-ui .brand:before,body.tbs-employee-ui .brand:before{
  width:32px!important;height:32px!important;flex-basis:32px!important;border-radius:9px!important;font-size:16px!important;box-shadow:none!important;
}
body.tbs-admin-ui .nav,body.tbs-employee-ui .nav{gap:2px!important}
body.tbs-admin-ui .nav-group-title,body.tbs-employee-ui .nav-group-title,
body.tbs-admin-ui .nav-parent{
  margin:14px 9px 5px!important;padding:0!important;height:auto!important;color:#586476!important;font-size:9px!important;font-weight:850!important;letter-spacing:.15em!important;
}
body.tbs-admin-ui .nav-parent{display:flex!important;gap:7px!important;align-items:center!important}
body.tbs-admin-ui .nav-parent .tbs-icon{width:14px!important;height:14px!important;min-width:14px!important;max-width:14px!important;flex-basis:14px!important}
body.tbs-admin-ui .nav-parent .tbs-icon svg{width:14px!important;height:14px!important;min-width:14px!important;max-width:14px!important}
body.tbs-admin-ui .nav button,body.tbs-employee-ui .nav button{
  width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:0 10px!important;margin:0!important;
  display:flex!important;align-items:center!important;gap:10px!important;border:1px solid transparent!important;border-radius:9px!important;
  background:transparent!important;color:#9ba6b6!important;font-size:12px!important;font-weight:650!important;line-height:1!important;box-shadow:none!important;overflow:hidden!important;
}
body.tbs-admin-ui .nav button:hover,body.tbs-employee-ui .nav button:hover{background:#121823!important;border-color:#202938!important;color:#f2f5f9!important;transform:none!important}
body.tbs-admin-ui .nav button.active,body.tbs-employee-ui .nav button.active{
  background:#171d29!important;border-color:#293446!important;color:#fff!important;box-shadow:inset 2px 0 0 var(--tbs-accent)!important;
}
body.tbs-admin-ui .nav button .tbs-icon,body.tbs-employee-ui .nav button .tbs-icon{color:#7f8b9c!important}
body.tbs-admin-ui .nav button.active .tbs-icon,body.tbs-employee-ui .nav button.active .tbs-icon{color:#ff4e5d!important}
body.tbs-admin-ui .nav-sub .agreement-nav-child{padding-left:28px!important}
body.tbs-admin-ui .monthBox{margin:17px 5px 0!important;padding:14px 5px 0!important}
body.tbs-admin-ui .monthBox select{width:100%!important;height:38px!important;min-height:38px!important;border-radius:8px!important;font-size:12px!important}
body.tbs-employee-ui .side>.btn{height:39px!important;min-height:39px!important;margin:16px 4px 0!important;border-radius:9px!important}

/* Main content shell. */
body.tbs-admin-ui main,body.tbs-employee-ui .main{
  width:100%!important;min-width:0!important;padding:0 30px 42px!important;background:
  radial-gradient(900px 420px at 90% -120px,rgba(237,39,56,.065),transparent 58%),#080b11!important;
}
body.tbs-admin-ui main>.top,body.tbs-employee-ui .main>.top{
  position:sticky!important;top:0!important;z-index:18!important;min-height:78px!important;margin:0 -30px 24px!important;padding:16px 30px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;
  background:rgba(8,11,17,.88)!important;border-bottom:1px solid rgba(255,255,255,.065)!important;backdrop-filter:blur(18px)!important;
}
body.tbs-admin-ui .title h1,body.tbs-employee-ui .main>.top h1{font-size:23px!important;font-weight:790!important;letter-spacing:-.035em!important;margin:0 0 5px!important}
body.tbs-admin-ui .title .hint,body.tbs-employee-ui .main>.top .muted{font-size:11px!important}
body.tbs-admin-ui main>.top .actions,body.tbs-employee-ui .main>.top .actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important}
body.tbs-admin-ui main>.top .btn,body.tbs-employee-ui .main>.top .btn{
  width:auto!important;height:38px!important;min-height:38px!important;max-height:38px!important;padding:0 12px!important;border-radius:9px!important;white-space:nowrap!important;
}
body.tbs-admin-ui .tbs-color-legend{display:none!important}

/* Section windows / cards. */
body.tbs-admin-ui .section,body.tbs-employee-ui .page{animation:tbsFade .18s ease-out}
@keyframes tbsFade{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:none}}
body.tbs-admin-ui .panel,body.tbs-employee-ui .panel{
  background:#10151e!important;border:1px solid #222b39!important;border-radius:12px!important;box-shadow:none!important;padding:17px!important;margin-bottom:14px!important;
}
body.tbs-admin-ui .panel:hover,body.tbs-employee-ui .panel:hover{border-color:#293548!important}
body.tbs-admin-ui .panel h2,body.tbs-employee-ui .panel h2{font-size:14px!important;font-weight:760!important;margin:0 0 12px!important;color:#f5f7fa!important}
body.tbs-admin-ui .cards,body.tbs-employee-ui .cards{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;margin-bottom:14px!important}
body.tbs-employee-ui .cards{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.tbs-admin-ui .card,body.tbs-employee-ui .card{
  min-height:92px!important;padding:15px 16px!important;border-radius:11px!important;background:linear-gradient(180deg,#121925,#0f151e)!important;
  border:1px solid #242e3d!important;box-shadow:none!important;overflow:hidden!important;
}
body.tbs-admin-ui .card:before,body.tbs-employee-ui .card:before{content:"";position:absolute;left:0;top:15px;width:2px;height:27px;border-radius:0 2px 2px 0;background:#343f50}
body.tbs-admin-ui .card:after,body.tbs-employee-ui .card:after{display:none!important}
body.tbs-admin-ui .card .label,body.tbs-employee-ui .card .label{font-size:9px!important;font-weight:820!important;letter-spacing:.09em!important;color:#778396!important;text-transform:uppercase!important}
body.tbs-admin-ui .card .value,body.tbs-employee-ui .card .value{margin-top:10px!important;font-size:24px!important;font-weight:760!important;letter-spacing:-.04em!important}
body.tbs-admin-ui .grid2,body.tbs-employee-ui .grid2{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important;gap:12px!important}

/* Section-level headers should feel like clean windows. */
body.tbs-admin-ui .panel>.top,body.tbs-employee-ui .panel>.top{margin:-2px 0 14px!important;padding:0 0 13px!important;border-bottom:1px solid #202938!important;min-height:0!important}
body.tbs-admin-ui .panel>.top h2,body.tbs-employee-ui .panel>.top h2{margin:0!important}

/* Forms and controls. */
body.tbs-admin-ui input:not([type=checkbox]):not([type=radio]),body.tbs-admin-ui select,body.tbs-admin-ui textarea,
body.tbs-employee-ui input:not([type=checkbox]):not([type=radio]),body.tbs-employee-ui select,body.tbs-employee-ui textarea{
  min-height:38px!important;border-radius:8px!important;border:1px solid #2a3546!important;background:#0b1017!important;padding:8px 10px!important;font-size:12px!important;
}
body.tbs-admin-ui input:focus,body.tbs-admin-ui select:focus,body.tbs-admin-ui textarea:focus,
body.tbs-employee-ui input:focus,body.tbs-employee-ui select:focus,body.tbs-employee-ui textarea:focus{border-color:#8f3440!important;box-shadow:0 0 0 3px rgba(237,39,56,.09)!important}
body.tbs-admin-ui .filters{background:#0d121a!important;border:1px solid #202a38!important;border-radius:10px!important;padding:9px!important;margin-bottom:10px!important}

/* Buttons: compact toolbar controls instead of tiles. */
body.tbs-admin-ui .btn,body.tbs-employee-ui .btn{
  width:auto!important;min-width:0!important;min-height:36px!important;max-height:42px!important;padding:0 11px!important;border-radius:8px!important;
  background:#151c27!important;border:1px solid #2b3647!important;color:#e6ebf2!important;font-size:11px!important;font-weight:700!important;box-shadow:none!important;
}
body.tbs-admin-ui .btn:hover,body.tbs-employee-ui .btn:hover{background:#1a2230!important;border-color:#3a465a!important;transform:none!important}
body.tbs-admin-ui .btn.primary,body.tbs-employee-ui .btn.primary{background:#e62637!important;border-color:#f23c4c!important;box-shadow:none!important}
body.tbs-admin-ui .btn.primary:hover,body.tbs-employee-ui .btn.primary:hover{background:#f02b3d!important;box-shadow:0 5px 16px rgba(230,38,55,.18)!important}
body.tbs-admin-ui .btn.small,body.tbs-employee-ui .btn.small{min-height:29px!important;height:29px!important;padding:0 8px!important;font-size:10px!important}

/* Tables: dense professional data grid. */
body.tbs-admin-ui .tablewrap,body.tbs-employee-ui .wrap{border:1px solid #232d3b!important;border-radius:10px!important;background:#0c1118!important;overflow:auto!important}
body.tbs-admin-ui th,body.tbs-employee-ui .table th{height:36px!important;padding:0 10px!important;background:#141a24!important;border-bottom:1px solid #2a3443!important;font-size:9px!important;letter-spacing:.07em!important;color:#778396!important}
body.tbs-admin-ui td,body.tbs-employee-ui .table td{padding:10px!important;font-size:11px!important;border-bottom:1px solid #1d2633!important;color:#cfd6df!important}
body.tbs-admin-ui tbody tr:hover,body.tbs-employee-ui .table tbody tr:hover{background:#111823!important}
body.tbs-admin-ui .bulkbar{min-height:42px!important;margin:0 0 10px!important;background:#0d131c!important;border:1px solid #222d3c!important;border-radius:9px!important;padding:7px 9px!important}

/* Modern modal windows. */
body.tbs-admin-ui .modal,body.tbs-employee-ui .modal{background:rgba(2,5,9,.76)!important;backdrop-filter:blur(10px)!important}
body.tbs-admin-ui .modalbox,body.tbs-employee-ui .modalbox{
  border-radius:14px!important;background:#111720!important;border:1px solid #313c4e!important;box-shadow:0 28px 90px rgba(0,0,0,.58)!important;padding:18px!important;
}
body.tbs-admin-ui .modalbox>.top,body.tbs-employee-ui .modalbox>.top{padding-bottom:13px!important;margin-bottom:14px!important;border-bottom:1px solid #232d3b!important}

/* Chat windows. */
body.tbs-admin-ui .social-chat,body.tbs-employee-ui .chat{border-radius:11px!important;border:1px solid #273141!important;background:#0b1017!important}
body.tbs-admin-ui .chat-people{background:#0f151e!important;border-right:1px solid #273141!important}
body.tbs-admin-ui .chat-person{border-radius:8px!important}
body.tbs-admin-ui .chat-person.active{background:#1a2230!important}

/* Notifications and badges. */
.tbs-nav-badge{min-width:18px!important;height:18px!important;padding:0 5px!important;font-size:9px!important;box-shadow:none!important}
body.tbs-admin-ui .pill,body.tbs-admin-ui .tag,body.tbs-employee-ui .tag{min-height:21px!important;padding:3px 7px!important;font-size:9px!important}

/* Login: centred contemporary access card. */
body.tbs-admin-ui #loginScreen,body.tbs-employee-ui #login{background:radial-gradient(600px 420px at 75% 10%,rgba(230,38,55,.16),transparent 60%),#070a0f!important}
body.tbs-admin-ui .login-card,body.tbs-employee-ui .login{border-radius:16px!important;background:#111720!important;border:1px solid #293445!important;box-shadow:0 28px 80px rgba(0,0,0,.5)!important}

/* Dashboard action bar on small screens never becomes giant icon cards. */
@media(max-width:1180px){
 body.tbs-admin-ui .cards{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.tbs-admin-ui .grid2,body.tbs-employee-ui .grid2{grid-template-columns:1fr!important}
}
@media(max-width:900px){
 body.tbs-admin-ui .app,body.tbs-employee-ui .app{grid-template-columns:210px minmax(0,1fr)!important}
 body.tbs-admin-ui aside,body.tbs-employee-ui .side{width:210px!important;min-width:210px!important}
 body.tbs-admin-ui main,body.tbs-employee-ui .main{padding-left:20px!important;padding-right:20px!important}
 body.tbs-admin-ui main>.top,body.tbs-employee-ui .main>.top{margin-left:-20px!important;margin-right:-20px!important;padding-left:20px!important;padding-right:20px!important}
}
@media(max-width:760px){
 body.tbs-admin-ui .app,body.tbs-employee-ui .app{display:block!important}
 body.tbs-admin-ui aside,body.tbs-employee-ui .side{position:relative!important;width:100%!important;min-width:0!important;height:auto!important;padding:12px!important}
 body.tbs-admin-ui .nav,body.tbs-employee-ui .nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important}
 body.tbs-admin-ui .nav-group-title,body.tbs-employee-ui .nav-group-title,body.tbs-admin-ui .nav-parent{grid-column:1/-1!important}
 body.tbs-admin-ui main,body.tbs-employee-ui .main{padding:0 13px 28px!important}
 body.tbs-admin-ui main>.top,body.tbs-employee-ui .main>.top{position:relative!important;margin:0 -13px 18px!important;padding:14px 13px!important;align-items:flex-start!important;flex-direction:column!important}
 body.tbs-admin-ui main>.top .actions,body.tbs-employee-ui .main>.top .actions{width:100%!important;overflow-x:auto!important;padding-bottom:2px!important}
 body.tbs-admin-ui .cards,body.tbs-employee-ui .cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:470px){body.tbs-admin-ui .cards,body.tbs-employee-ui .cards{grid-template-columns:1fr!important}}

/* V8.0 UI stability: avoid layout-shifting hover/fade motion during live data refreshes. */
body.tbs-admin-ui .section,body.tbs-employee-ui .page{animation:none!important}
body.tbs-admin-ui .btn,body.tbs-employee-ui .btn,body.tbs-admin-ui .nav button,body.tbs-employee-ui .nav button{transform:none!important;transition:background .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease!important}
body.tbs-admin-ui .btn:hover,body.tbs-employee-ui .btn:hover,body.tbs-admin-ui .nav button:hover,body.tbs-employee-ui .nav button:hover{transform:none!important}
body.tbs-admin-ui .employee-card,body.tbs-employee-ui .employee-card{transform:none!important;transition:border-color .12s ease,background .12s ease!important}
body.tbs-admin-ui .employee-card:hover,body.tbs-employee-ui .employee-card:hover{transform:none!important}
body.tbs-admin-ui .modalbox,body.tbs-employee-ui .modalbox{overflow-anchor:none}
body.tbs-admin-ui .tablewrap,body.tbs-employee-ui .tablewrap{overflow-anchor:none}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
