/* TKLM CRM UI UNIFIED V1.0 — jeden design system.
   Core from original base.html followed by one authoritative token/component layer.
   Application/database/API logic is NOT changed. */
:root{
  --tk-bg:#070a0f;
  --tk-bg2:#0a1018;
  --tk-panel:#0f151e;
  --tk-panel2:#121a25;
  --tk-line:rgba(255,255,255,.09);
  --tk-line2:rgba(255,137,45,.28);
  --tk-text:#f5f7fa;
  --tk-muted:#8d99a9;
  --tk-orange:#ff8a2c;
  --tk-orange2:#f25b2d;
  --tk-red:#ff635d;
  --tk-green:#45d98d;
  --tk-blue:#56aef5;
  --tk-shadow:0 18px 56px rgba(0,0,0,.34);
  --tk-side:224px;
  --tk-top:66px;
}
*{box-sizing:border-box}
html,body{min-height:100%;background:var(--tk-bg);color:var(--tk-text)}
body{
  margin:0;
  color:var(--tk-text);
  background:
    radial-gradient(circle at 82% 2%,rgba(255,110,31,.075),transparent 24rem),
    radial-gradient(circle at 12% 100%,rgba(34,96,146,.08),transparent 30rem),
    linear-gradient(145deg,#06090e,#0a1018 55%,#06090e);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:#ff9b50;text-decoration:none}
a:hover{color:#ffb172}
::selection{background:rgba(255,132,38,.32);color:#fff}

/* global moving background */
#tk-global-fx{
  position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.18;
}
.tk-cursor-glow{
  position:fixed;z-index:0;pointer-events:none;width:430px;height:430px;border-radius:50%;
  transform:translate(-50%,-50%);filter:blur(22px);
  background:radial-gradient(circle,rgba(255,124,33,.055),transparent 68%);
}

/* shell */
.tk-sidebar{
  position:fixed;z-index:50;left:0;top:0;bottom:0;width:var(--tk-side);
  display:flex;flex-direction:column;
  background:
    linear-gradient(180deg,rgba(10,15,22,.98),rgba(7,11,17,.985)),
    radial-gradient(circle at 50% 100%,rgba(255,116,32,.08),transparent 45%);
  border-right:1px solid var(--tk-line);
  box-shadow:14px 0 44px rgba(0,0,0,.12);
}
.tk-brand{
  height:var(--tk-top);display:flex;align-items:center;gap:12px;padding:0 22px;
  border-bottom:1px solid var(--tk-line);
}
.tk-brand img{width:98px;height:43px;object-fit:contain;filter:drop-shadow(0 0 10px rgba(255,127,37,.12))}
.tk-brand span{font-size:20px;font-weight:700;color:#fff}
.tk-side-scroll{padding:24px 14px;overflow:auto;scrollbar-width:thin}
.tk-nav{display:grid;gap:6px}
.tk-nav a,.tk-nav button{
  width:100%;height:44px;border:1px solid transparent;border-radius:10px;
  display:flex;align-items:center;gap:13px;padding:0 14px;
  color:#aeb8c7!important;background:transparent;
  font-size:14px;font-weight:540;text-align:left;
  transition:.18s ease;
}
.tk-nav a i,.tk-nav button i{width:20px;text-align:center;color:#8895a6}
.tk-nav a:hover,.tk-nav button:hover{
  color:#fff!important;background:rgba(255,255,255,.035);transform:translateX(2px)
}
.tk-nav a.active{
  color:#fff!important;border-color:rgba(255,137,45,.25);
  background:linear-gradient(90deg,rgba(255,119,33,.22),rgba(255,119,33,.045));
  box-shadow:inset 2px 0 var(--tk-orange),0 0 26px rgba(255,119,33,.07);
}
.tk-nav a.active i{color:var(--tk-orange)}
.tk-side-sep{height:1px;background:var(--tk-line);margin:18px 12px}
.tk-side-foot{margin-top:auto;padding:18px 28px 28px;color:#667181;font-size:10px;letter-spacing:.24em;line-height:1.8;text-transform:uppercase}
.tk-side-foot:after{content:"";display:block;width:38px;height:2px;background:var(--tk-orange);margin-top:10px}

.tk-topbar{
  position:fixed;z-index:45;top:0;left:var(--tk-side);right:0;height:var(--tk-top);
  display:flex;align-items:center;padding:0 24px;gap:16px;
  background:rgba(7,11,17,.88);backdrop-filter:blur(20px);
  border-bottom:1px solid var(--tk-line);
}
.tk-menu-toggle{
  display:none;width:38px;height:38px;border:1px solid var(--tk-line);border-radius:10px;
  background:rgba(255,255,255,.03);color:#fff;
}
.tk-search{
  position:relative;width:min(460px,42vw);margin-right:auto
}
.tk-search i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#8190a1}
.tk-search input{
  width:100%;height:40px;padding:0 72px 0 38px;border:1px solid var(--tk-line);border-radius:10px;
  color:#fff;background:rgba(255,255,255,.03);outline:none;
}
.tk-search input:focus{border-color:rgba(255,137,45,.5);box-shadow:0 0 0 3px rgba(255,120,33,.08)}
.tk-kbd{position:absolute;right:9px;top:9px;padding:2px 6px;border:1px solid var(--tk-line);border-radius:5px;color:#8b96a4;font-size:10px}
.tk-user{display:flex;align-items:center;gap:10px}
.tk-avatar{
  width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:800;
  border:1px solid rgba(255,137,45,.18);background:linear-gradient(145deg,#323945,#181d25);
}
.tk-user-text{line-height:1.1}
.tk-user-text strong{display:block;font-size:12px;color:#fff}
.tk-user-text small{font-size:10px;color:#7e8997}
.tk-logout{
  width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:#9eabb9!important;
  border:1px solid transparent;
}
.tk-logout:hover{border-color:var(--tk-line);background:rgba(255,255,255,.035);color:#fff!important}

.tk-main{
  position:relative;z-index:2;margin-left:var(--tk-side);padding-top:var(--tk-top);min-height:100vh;
}
.tk-content{width:min(100%,1560px);margin:0 auto;padding:22px 24px 46px}
.tk-mobile-nav{display:none}

/* page primitives */
.page-head{
  display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;
  margin:4px 0 18px;
}
.page-eyebrow{
  color:var(--tk-orange);font-size:10px;font-weight:750;letter-spacing:.22em;text-transform:uppercase;margin-bottom:5px
}
.page-title{margin:0;color:#fff;font-size:28px;font-weight:720;letter-spacing:-.035em}
.page-subtitle{margin:6px 0 0;color:var(--tk-muted);font-size:13px;max-width:780px}
.page-actions{display:flex;gap:8px;flex-wrap:wrap}

/* panels/cards */
.card,.panel-card,.filter-card,.form-section,.info-cell,.kpi-card,.modal-content,.list-group-item,.accordion-item{
  color:var(--tk-text)!important;
  background:linear-gradient(145deg,rgba(19,27,38,.92),rgba(10,14,21,.92))!important;
  border:1px solid var(--tk-line)!important;
  border-radius:14px!important;
  box-shadow:inset 0 1px rgba(255,255,255,.025),0 14px 42px rgba(0,0,0,.20)!important;
}
.card,.panel-card,.kpi-card,.form-section,.info-cell{position:relative;overflow:hidden}
.card:before,.panel-card:before,.kpi-card:before,.form-section:before,.info-cell:before{
  content:"";position:absolute;left:0;top:0;width:100%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,137,45,.18),transparent);pointer-events:none
}
.card-header,.card-footer,.panel-head,.modal-header,.modal-footer{
  background:rgba(255,255,255,.018)!important;border-color:var(--tk-line)!important;color:#fff!important
}
.panel-card .panel-head{padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.panel-card .panel-body{padding:16px}
.panel-title{margin:0;font-size:15px;font-weight:680;color:#fff}
.filter-card{padding:14px;margin-bottom:14px}
.table-card{overflow:hidden}
.form-section{padding:16px}
.form-section-title{color:#fff;font-size:15px;font-weight:680;margin-bottom:12px}

/* KPI */
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.kpi-card{padding:16px;min-height:118px}
.kpi-card:after{
  content:"";position:absolute;right:-30px;top:-36px;width:110px;height:110px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,130,35,.09),transparent 68%)
}
.kpi-icon{
  width:40px;height:40px;border-radius:10px;display:grid;place-items:center;margin-bottom:10px;
  color:var(--tk-orange);background:rgba(255,124,34,.09);border:1px solid rgba(255,137,45,.14)
}
.kpi-label{color:#97a3b2;font-size:11px;letter-spacing:.06em;text-transform:uppercase}
.kpi-value{color:#fff;font-size:28px;line-height:1.1;font-weight:760;letter-spacing:-.035em;margin:4px 0}
.kpi-meta{color:#7f8b9b;font-size:11px}
.kpi-card.danger .kpi-icon{color:var(--tk-red);background:rgba(255,99,93,.09)}
.kpi-card.success .kpi-icon{color:var(--tk-green);background:rgba(69,217,141,.09)}
.kpi-card.info .kpi-icon{color:var(--tk-blue);background:rgba(86,174,245,.09)}

/* tables */
.table-responsive{
  border:1px solid rgba(255,255,255,.055);border-radius:12px;overflow:auto
}
table,.table{
  margin:0!important;color:var(--tk-text)!important;
  --bs-table-bg:transparent!important;--bs-table-color:var(--tk-text)!important;
  --bs-table-border-color:rgba(255,255,255,.07)!important;
  --bs-table-striped-bg:rgba(255,255,255,.018)!important;
  --bs-table-hover-bg:rgba(255,126,34,.052)!important;
  --bs-table-hover-color:#fff!important;
}
.table>:not(caption)>*>*{padding:.75rem .8rem;border-color:rgba(255,255,255,.07)!important}
table thead th,.table thead th{
  color:#9da8b7!important;background:rgba(255,255,255,.025)!important;
  border-bottom-color:rgba(255,137,45,.18)!important;
  font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;white-space:nowrap
}
table tbody td{color:#dce2e9!important}
.company-name{color:#f2f5f8!important;font-weight:650}
.company-name:hover{color:var(--tk-orange)!important}
.company-meta{color:#758190;font-size:11px;margin-top:2px}
.table-actions{display:flex;justify-content:flex-end;gap:5px;white-space:nowrap}

/* forms */
label,.muted-label{color:#aab5c3!important;font-size:12px}
.form-control,.form-select,input:not([type=checkbox]):not([type=radio]),textarea,select{
  color:#eef2f6!important;background:rgba(255,255,255,.035)!important;
  border:1px solid rgba(255,255,255,.11)!important;border-radius:10px!important;box-shadow:none!important
}
.form-control,.form-select{min-height:40px}
.form-control:focus,.form-select:focus,input:focus,textarea:focus,select:focus{
  border-color:rgba(255,137,45,.62)!important;box-shadow:0 0 0 3px rgba(255,121,32,.09)!important;outline:none!important
}
input::placeholder,textarea::placeholder{color:#697586!important}
select option{background:#111822;color:#fff}
.form-check-input{background-color:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.20)!important}
.form-check-input:checked{background-color:var(--tk-orange)!important;border-color:var(--tk-orange)!important}
.search-field{position:relative}
.search-field>i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#7d8998;z-index:2}
.search-field>.form-control{padding-left:38px}

/* buttons */
.btn{border-radius:9px!important;font-weight:620!important}
.btn-primary{
  color:#fff!important;background:linear-gradient(135deg,var(--tk-orange2),var(--tk-orange))!important;
  border-color:rgba(255,145,60,.7)!important;box-shadow:0 8px 22px rgba(255,107,30,.13)!important
}
.btn-primary:hover{filter:brightness(1.06);transform:translateY(-1px)}
.btn-light,.btn-outline-secondary,.btn-outline-light{
  color:#dce4ed!important;background:rgba(255,255,255,.035)!important;border-color:rgba(255,255,255,.12)!important
}
.btn-outline-primary{
  color:#ff9b50!important;border-color:rgba(255,137,45,.42)!important;background:rgba(255,126,34,.035)!important
}
.btn-outline-danger{color:#ff857f!important;border-color:rgba(255,99,93,.35)!important}
.icon-btn{width:34px;height:34px;padding:0!important;display:inline-grid!important;place-items:center}

/* status / misc */
.status-pill{
  display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;
  font-size:10px;font-weight:680;white-space:nowrap;border:1px solid transparent
}
.status-pill.ok{color:#9aebbd;background:rgba(69,217,141,.09);border-color:rgba(69,217,141,.15)}
.status-pill.warn{color:#ffd28f;background:rgba(255,174,68,.08);border-color:rgba(255,174,68,.14)}
.status-pill.bad{color:#ffaaa5;background:rgba(255,99,93,.08);border-color:rgba(255,99,93,.14)}
.status-pill.neutral{color:#acb6c4;background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.08)}
.text-muted,.small,small,.form-text{color:var(--tk-muted)!important}
hr,.dropdown-divider{border-color:var(--tk-line)!important;opacity:1}
code{color:#ffad6d;background:rgba(255,124,34,.07);padding:2px 5px;border-radius:5px}
.badge{border-radius:999px!important}
.empty-state{padding:34px 16px;text-align:center;color:#768291}
.empty-state i{display:block;font-size:25px;color:#657181;margin-bottom:10px}
.info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.info-cell{padding:14px}
.info-cell .label{color:#808c9b;font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.info-cell .value{color:#fff;font-size:15px;font-weight:650;margin-top:4px}
.task-stack{display:grid;gap:8px}
.task-item{
  display:block;padding:11px 12px;border-radius:10px;border:1px solid var(--tk-line)!important;
  border-left:2px solid #7b8796!important;background:rgba(255,255,255,.025)!important;color:#fff!important
}
.task-item.bad{border-left-color:var(--tk-red)!important}
.task-item.info{border-left-color:var(--tk-blue)!important}
.task-title{font-size:12px;font-weight:650}.task-meta{font-size:10px;color:#7e8998;margin-top:3px}

/* dropdowns/modals */
.dropdown-menu{
  padding:7px;background:#0e151f!important;border:1px solid var(--tk-line)!important;
  border-radius:11px!important;box-shadow:var(--tk-shadow)!important
}
.dropdown-item{color:#bdc7d4!important;border-radius:8px;padding:8px 10px}
.dropdown-item:hover{color:#fff!important;background:rgba(255,128,35,.075)!important}
.dropdown-item i{width:22px;color:#7f8b9b}
.dropdown-header{color:#687586!important;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.modal-backdrop-local{
  display:none;position:fixed;inset:0;background:rgba(0,0,0,.68);z-index:1090;align-items:center;justify-content:center;padding:16px
}
.modal-backdrop-local.is-open{display:flex}
.modal-card-local{
  width:min(100%,460px);padding:18px;border-radius:14px;color:#fff;background:#101720;
  border:1px solid var(--tk-line);box-shadow:var(--tk-shadow)
}

/* flash */
.flash-wrap{
  position:fixed;z-index:1200;top:78px;right:18px;width:min(430px,calc(100% - 36px))
}
.alert{border-radius:11px!important;backdrop-filter:blur(14px);box-shadow:0 16px 38px rgba(0,0,0,.24)}
.alert-success{color:#c9f7da!important;background:rgba(44,176,103,.14)!important;border-color:rgba(69,217,141,.25)!important}
.alert-danger{color:#ffd2cf!important;background:rgba(210,72,65,.14)!important;border-color:rgba(255,99,93,.25)!important}
.alert-warning{color:#ffe0af!important;background:rgba(208,134,39,.14)!important;border-color:rgba(255,174,68,.25)!important}
.alert-info{color:#cfeaff!important;background:rgba(65,139,200,.14)!important;border-color:rgba(86,174,245,.25)!important}

/* dynamic hover */
.tk-dynamic{
  transform-style:preserve-3d;will-change:transform;transition:transform .12s ease,border-color .18s ease,box-shadow .18s ease
}
.tk-dynamic:hover{
  border-color:rgba(255,137,45,.22)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.03),0 17px 48px rgba(0,0,0,.25),0 0 28px rgba(255,121,32,.04)!important
}

/* standalone fallback */
.tk-standalone-wrap{position:relative;z-index:1}

/* mobile */
@media(max-width:1100px){
  .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:920px){
  :root{--tk-side:0px}
  .tk-sidebar{
    width:250px;transform:translateX(-105%);transition:transform .22s ease;box-shadow:20px 0 60px rgba(0,0,0,.45)
  }
  body.tk-menu-open .tk-sidebar{transform:translateX(0)}
  .tk-topbar{left:0;padding:0 14px;height:60px}
  .tk-menu-toggle{display:grid;place-items:center}
  .tk-search{width:min(420px,55vw)}
  .tk-main{margin-left:0;padding-top:60px;padding-bottom:70px}
  .tk-content{padding:14px 13px 34px}
  .tk-mobile-nav{
    display:grid;grid-template-columns:repeat(6,1fr);
    position:fixed;z-index:60;left:8px;right:8px;bottom:8px;height:61px;
    padding:5px;border:1px solid var(--tk-line);border-radius:15px;
    background:rgba(8,12,18,.94);backdrop-filter:blur(18px);box-shadow:0 14px 40px rgba(0,0,0,.42)
  }
  .tk-mobile-nav a{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    color:#8f9baa!important;font-size:9px;border-radius:10px
  }
  .tk-mobile-nav a i{font-size:16px}
  .tk-mobile-nav a.active{color:var(--tk-orange)!important;background:rgba(255,124,34,.07)}
  .tk-user-text{display:none}
}
@media(max-width:620px){
  .tk-search{width:auto;flex:1}.tk-kbd{display:none}.tk-search input{padding-right:10px}
  .tk-user{display:none}
  .page-title{font-size:23px}.page-actions{width:100%}.page-actions .btn{flex:1}
  .kpi-grid,.info-grid{grid-template-columns:1fr}
  .table{font-size:12px}
  .flash-wrap{top:68px;left:10px;right:10px;width:auto}
}
@media(prefers-reduced-motion:reduce){
  #tk-global-fx,.tk-cursor-glow{display:none!important}
  *{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}
}

/* === TKLM_UI_V32_PRIORITY_ACTIONS === */
.tk-nav a.tk-priority{
  color:#fff!important;
  border-color:rgba(255,137,45,.34)!important;
  background:linear-gradient(90deg,rgba(255,91,35,.30),rgba(255,145,39,.11))!important;
  box-shadow:inset 2px 0 var(--tk-orange),0 0 24px rgba(255,117,30,.09)!important;
}
.tk-nav a.tk-priority i{color:#ff9b50!important}
.tk-nav a.tk-reports{
  color:#ffd0aa!important;
  border-color:rgba(255,137,45,.14)!important;
  background:rgba(255,123,32,.035)!important;
}
.tk-nav a.tk-logout-side{
  color:#ffaaa5!important;
  margin-top:5px;
  border-color:rgba(255,99,93,.13)!important;
}
.tk-nav a.tk-logout-side:hover{
  color:#fff!important;
  background:rgba(255,99,93,.08)!important;
  border-color:rgba(255,99,93,.24)!important;
}
.tk-quick-actions{
  display:flex;align-items:center;gap:7px;margin-left:auto
}
.tk-quick-action{
  height:36px;padding:0 12px;border-radius:9px;
  display:inline-flex;align-items:center;gap:7px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.026);
  color:#d7e0e9!important;font-size:11px;font-weight:650;
  white-space:nowrap;transition:.18s ease;
}
.tk-quick-action:hover{transform:translateY(-1px);color:#fff!important}
.tk-quick-action.add{
  color:#fff!important;
  border-color:rgba(255,137,45,.38);
  background:linear-gradient(135deg,rgba(242,91,45,.76),rgba(255,138,44,.72));
  box-shadow:0 8px 20px rgba(255,107,30,.10);
}
.tk-quick-action.report{
  border-color:rgba(255,137,45,.18);
  color:#ffc18c!important;
}
.tk-quick-action.logout{
  color:#ffaaa5!important;
  border-color:rgba(255,99,93,.13);
}
.tk-quick-action.logout:hover{
  background:rgba(255,99,93,.08);border-color:rgba(255,99,93,.26)
}
.tk-logout{display:none!important}
@media(max-width:1180px){
  .tk-quick-action span{display:none}
  .tk-quick-action{width:36px;padding:0;justify-content:center}
}
@media(max-width:920px){
  .tk-quick-actions{display:none}
}
@media(max-width:620px){
  .tk-mobile-nav{grid-template-columns:repeat(6,1fr)}
  .tk-mobile-nav a.tk-mobile-priority{
    color:var(--tk-orange)!important;
    background:rgba(255,124,34,.07);
  }
}
/* === /TKLM_UI_V32_PRIORITY_ACTIONS === */


/* === TKLM_UI_V33B_PROFILE_PRIORITY === */
.tk-nav a.tk-priority-hours{
  color:#fff!important;
  border-color:rgba(255,137,45,.36)!important;
  background:linear-gradient(90deg,rgba(255,91,35,.31),rgba(255,145,39,.10))!important;
  box-shadow:inset 2px 0 var(--tk-orange),0 0 24px rgba(255,117,30,.09)!important;
}
.tk-nav a.tk-priority-hours i{color:#ff9b50!important}
.tk-nav a.tk-priority-reports{
  color:#ffd0aa!important;
  border-color:rgba(255,137,45,.16)!important;
  background:rgba(255,123,32,.04)!important;
}
.tk-nav a.tk-sidebar-logout{
  color:#ffaaa5!important;
  border-color:rgba(255,99,93,.13)!important;
  margin-top:5px;
}
.tk-nav a.tk-sidebar-logout:hover{
  color:#fff!important;
  background:rgba(255,99,93,.08)!important;
  border-color:rgba(255,99,93,.25)!important;
}

.tk-top-actions{display:flex;align-items:center;gap:7px;margin-left:auto}
.tk-top-action{
  height:36px;padding:0 11px;border-radius:9px;
  display:inline-flex;align-items:center;gap:7px;
  color:#d8e1eb!important;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.025);
  font-size:11px;font-weight:650;white-space:nowrap;transition:.18s ease;
}
.tk-top-action:hover{transform:translateY(-1px);color:#fff!important}
.tk-top-action.hours{
  color:#fff!important;
  border-color:rgba(255,137,45,.38);
  background:linear-gradient(135deg,rgba(242,91,45,.78),rgba(255,138,44,.74));
  box-shadow:0 8px 22px rgba(255,107,30,.10)
}
.tk-top-action.reports{
  color:#ffc18c!important;border-color:rgba(255,137,45,.18)
}

.tk-profile-wrap{position:relative}
.tk-profile-btn{
  height:44px;display:flex;align-items:center;gap:10px;
  padding:4px 8px 4px 5px;border:1px solid transparent;border-radius:11px;
  background:transparent;color:#fff;cursor:pointer;transition:.18s ease
}
.tk-profile-btn:hover,.tk-profile-wrap.is-open .tk-profile-btn{
  background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.09)
}
.tk-profile-main{line-height:1.12;text-align:left;min-width:110px}
.tk-profile-main strong{
  display:block;color:#fff;font-size:12px;font-weight:700;
  max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.tk-profile-main small{display:block;color:#7e8997;font-size:10px;margin-top:2px}
.tk-profile-chevron{color:#687485;font-size:10px;transition:transform .18s}
.tk-profile-wrap.is-open .tk-profile-chevron{transform:rotate(180deg)}

.tk-profile-menu{
  display:none;position:absolute;right:0;top:calc(100% + 9px);width:300px;
  padding:12px;border:1px solid rgba(255,255,255,.10);border-radius:14px;
  background:linear-gradient(145deg,rgba(17,24,34,.985),rgba(8,12,18,.985));
  backdrop-filter:blur(22px);
  box-shadow:0 24px 70px rgba(0,0,0,.48),0 0 35px rgba(255,119,34,.035);
  z-index:120
}
.tk-profile-wrap.is-open .tk-profile-menu{display:block}
.tk-profile-head{
  display:flex;gap:11px;align-items:center;padding:6px 5px 12px;
  border-bottom:1px solid rgba(255,255,255,.07)
}
.tk-profile-head .tk-avatar{width:44px;height:44px}
.tk-profile-head strong{display:block;color:#fff;font-size:13px}
.tk-profile-head small{display:block;color:#8390a0;font-size:10px;margin-top:2px}
.tk-profile-data{padding:11px 5px;display:grid;gap:8px}
.tk-profile-row{
  display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px;font-size:11px
}
.tk-profile-row span:first-child{color:#778392}
.tk-profile-row span:last-child{
  color:#dbe3ec;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.tk-profile-actions{
  display:grid;grid-template-columns:1fr 1fr;gap:7px;
  padding-top:10px;border-top:1px solid rgba(255,255,255,.07)
}
.tk-profile-actions a{
  height:38px;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:7px;
  color:#d7e0ea!important;border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.025);font-size:11px;font-weight:650
}
.tk-profile-actions a:hover{
  border-color:rgba(255,137,45,.24);
  background:rgba(255,126,34,.045);color:#fff!important
}
.tk-profile-actions a.logout{
  color:#ffaaa5!important;border-color:rgba(255,99,93,.15)
}
.tk-profile-actions a.logout:hover{
  background:rgba(255,99,93,.08);
  border-color:rgba(255,99,93,.27);color:#fff!important
}
.tk-logout{display:none!important}

@media(max-width:1280px){
  .tk-top-action span{display:none}
  .tk-top-action{width:36px;padding:0;justify-content:center}
}
@media(max-width:1050px){
  .tk-profile-main{display:none}
  .tk-profile-chevron{display:none}
  .tk-profile-btn{padding-right:5px}
}
@media(max-width:920px){
  .tk-top-actions{display:none}
  .tk-profile-menu{right:-4px;width:min(300px,calc(100vw - 24px))}
}
/* === /TKLM_UI_V33B_PROFILE_PRIORITY === */

/* ===========================================================================
   TKLM UI UNIFIED V1 — final, authoritative layer
   One token set, stable shell, and common building blocks for 225+ views.
   Deliberately no animated canvas, glow following pointer, tilt, or entrance FX.
   =========================================================================== */
:root{
  --tk-bg:#0a1019; --tk-bg2:#0d1520;
  --tk-panel:#121d2a; --tk-panel2:#172433;
  --tk-line:rgba(170,191,216,.16);
  --tk-line2:rgba(255,151,69,.40);
  --tk-text:#f1f5fa; --tk-muted:#a0b0c3;
  --tk-orange:#ff994a; --tk-orange2:#ee8034;
  --tk-red:#fa7880; --tk-green:#66dba3; --tk-blue:#82baf5;
  --tk-shadow:0 8px 25px rgba(0,0,0,.14);
  --tk-side:248px; --tk-top:64px;
  --tk-radius:12px; --tk-radius-sm:9px;
  --bs-body-bg:var(--tk-bg); --bs-body-color:var(--tk-text);
  color-scheme:dark;
}
html{scroll-behavior:auto;scrollbar-color:#3a4b60 #0b1320}
body.tklm-ui-unified{
  margin:0;min-height:100vh;overflow-x:hidden;
  background:var(--tk-bg)!important;color:var(--tk-text)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  font-size:14px;line-height:1.48;
}
body.tklm-ui-unified::before,body.tklm-ui-unified::after{display:none!important}
body.tklm-ui-unified #tk-global-fx,body.tklm-ui-unified #tk-cursor-glow{display:none!important}
body.tklm-ui-unified *{scroll-margin-top:calc(var(--tk-top) + 18px)}
body.tklm-ui-unified :is(a,button,input,select,textarea,summary):focus-visible{
  outline:2px solid #ffc08b!important;outline-offset:2px;
}
body.tklm-ui-unified a{color:var(--tk-orange)}
body.tklm-ui-unified a:hover{color:#ffc08b}
/* Shell: computed by CSS BEFORE JS; no client-side menu DOM rewrites. */
body.tklm-ui-unified .tk-sidebar{
  width:var(--tk-side)!important;top:0;left:0;bottom:0;position:fixed;z-index:130;
  background:#0e1723!important;border-right:1px solid var(--tk-line)!important;
  box-shadow:none!important;display:flex;flex-direction:column;
}
body.tklm-ui-unified .tk-brand{
  min-height:var(--tk-top);height:var(--tk-top)!important;padding:0 20px;
  border-bottom:1px solid var(--tk-line)!important;gap:11px;
}
body.tklm-ui-unified .tk-brand img{width:92px;height:42px;filter:none!important}
body.tklm-ui-unified .tk-brand span{font-size:18px;font-weight:760;letter-spacing:-.03em}
body.tklm-ui-unified .tk-side-scroll{
  overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;padding:10px 9px 16px!important;
  scrollbar-width:thin;overscroll-behavior:contain;
}
body.tklm-ui-unified .tk-side-foot{
  flex:none;padding:11px 21px 16px;margin:0;
  font-size:10px;color:#75879c;line-height:1.3;letter-spacing:.07em;text-transform:none;
  border-top:1px solid var(--tk-line);
}
body.tklm-ui-unified .tk-side-foot span{display:block;margin-top:4px;color:#63758b;letter-spacing:0}
body.tklm-ui-unified .tk-side-foot:after{display:none}
body.tklm-ui-unified .tk-main{
  min-height:100vh;min-width:0;position:relative;z-index:1;
  margin-left:var(--tk-side)!important;padding-top:var(--tk-top)!important;
  background:transparent!important;
}
body.tklm-ui-unified .tk-content{
  width:100%!important;max-width:1680px!important;min-width:0;
  margin:0 auto!important;padding:24px clamp(16px,2.1vw,34px) 76px!important;
}
body.tklm-ui-unified .tk-topbar{
  left:var(--tk-side)!important;right:0;top:0;height:var(--tk-top)!important;
  z-index:120;display:flex;align-items:center;gap:12px;padding:0 18px;
  border-bottom:1px solid var(--tk-line)!important;background:#101a27!important;
  backdrop-filter:none!important;box-shadow:none!important;
}
body.tklm-ui-unified .tk-menu-toggle{flex:none}
body.tklm-ui-unified .tk-search{
  position:relative;display:block;flex:0 1 440px;width:auto!important;
  min-width:150px;margin-right:auto;
  background:none!important;border:none!important;
}
body.tklm-ui-unified .tk-search input{
  width:100%;min-height:39px!important;height:39px;padding:0 70px 0 38px!important;
  background:#0c1420!important;border:1px solid #344457!important;
  color:#f1f5fb!important;border-radius:var(--tk-radius-sm)!important;
}
body.tklm-ui-unified .tk-search input:focus{border-color:var(--tk-orange)!important;box-shadow:0 0 0 3px rgba(255,153,74,.14)!important}
body.tklm-ui-unified .tk-search .tk-kbd{font-size:10px;right:10px;top:10px}
body.tklm-ui-unified .tk-top-actions{display:flex;align-items:center;gap:7px;margin:0}
body.tklm-ui-unified .tk-top-action{
  min-height:37px;height:37px;padding:0 11px;display:inline-flex;align-items:center;gap:8px;
  font-size:12px;font-weight:700;border-radius:9px!important;
  border:1px solid #35465c!important;box-shadow:none!important;
  background:#1b2b3c!important;color:#e7edf6!important;transform:none!important;
}
body.tklm-ui-unified .tk-top-action.hours{
  color:#211407!important;background:var(--tk-orange)!important;border-color:#ffb36e!important;
}
body.tklm-ui-unified .tk-top-action:hover{filter:brightness(1.13);transform:none!important}
body.tklm-ui-unified .tk-h378-open{
  height:37px;min-height:37px;font-size:12px;font-weight:700;padding:0 11px;
  background:#1a2a3b;border:1px solid #35465c;border-radius:9px;color:#e7eef9!important;
}
body.tklm-ui-unified .tk-profile-wrap{position:relative;flex:none}
body.tklm-ui-unified .tk-profile-btn{
  height:42px;min-height:42px;border:1px solid #304055!important;
  border-radius:10px!important;background:#172434!important;box-shadow:none!important;
  padding:4px 9px;display:flex;align-items:center;gap:9px;
}
body.tklm-ui-unified .tk-avatar{width:32px;height:32px;flex:none}
body.tklm-ui-unified .tk-profile-menu{
  position:absolute;right:0;top:calc(100% + 9px);
  z-index:180;background:#162435!important;border:1px solid #34465b!important;
  border-radius:12px!important;box-shadow:0 14px 35px rgba(0,0,0,.35)!important;
}
body.tklm-ui-unified .tk-profile-wrap:not(.is-open) .tk-profile-menu{display:none!important}
body.tklm-ui-unified .tk-profile-wrap.is-open .tk-profile-menu{display:block!important}
/* Menu is rendered once by Jinja. Details/summary provide native keyboard behavior. */
body.tklm-ui-unified .tk-nav-clean{display:block!important}
body.tklm-ui-unified .tk-ui-nav-pinned{display:grid;gap:2px;padding-bottom:8px}
body.tklm-ui-unified .tk-ui-nav-group{
  display:block;margin:1px 0 4px;border:0;background:transparent;
}
body.tklm-ui-unified .tk-ui-nav-group:not(:has(a[href])){display:none}
body.tklm-ui-unified .tk-ui-nav-heading{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-height:35px;padding:10px 12px 7px;margin:3px 0;
  color:#96a8bd!important;font-size:10px;font-weight:760;
  line-height:1.3;letter-spacing:.085em;cursor:pointer;
  border-radius:8px;list-style:none;text-transform:uppercase;
}
body.tklm-ui-unified .tk-ui-nav-heading::-webkit-details-marker{display:none}
body.tklm-ui-unified .tk-ui-nav-heading:hover{background:#192737;color:#f2f6fb!important}
body.tklm-ui-unified .tk-ui-nav-heading i{font-size:10px;transition:transform .12s ease}
body.tklm-ui-unified .tk-ui-nav-group[open]>.tk-ui-nav-heading i{transform:rotate(180deg)}
body.tklm-ui-unified .tk-ui-nav-links{display:grid;gap:2px;padding:0 0 6px}
body.tklm-ui-unified #tkSidebar .tk-nav a,
body.tklm-ui-unified #tkSidebar .tk-nav-bottom a{
  display:flex!important;align-items:center!important;gap:11px!important;
  width:100%!important;max-width:100%;height:auto!important;min-height:37px!important;
  margin:0!important;padding:9px 11px!important;border-radius:9px!important;
  font-size:12px!important;font-weight:630!important;line-height:1.25!important;
  border:1px solid transparent!important;background:transparent!important;color:#b7c6d8!important;
  box-shadow:none!important;transform:none!important;transition:background-color .13s,color .13s,border-color .13s!important;
  text-decoration:none!important;overflow:hidden;
}
body.tklm-ui-unified #tkSidebar .tk-nav a:hover,
body.tklm-ui-unified #tkSidebar .tk-nav-bottom a:hover{
  background:#1e3044!important;color:#f7f9fc!important;border-color:#30445b!important;transform:none!important;
}
body.tklm-ui-unified #tkSidebar .tk-nav a.active{
  color:#fff!important;background:#273344!important;
  border-color:rgba(255,153,74,.43)!important;
  box-shadow:inset 3px 0 var(--tk-orange)!important;
}
body.tklm-ui-unified #tkSidebar .tk-nav a span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.tklm-ui-unified #tkSidebar .tk-nav a img,
body.tklm-ui-unified #tkSidebar .tk-nav a>i,
body.tklm-ui-unified #tkSidebar .tk-nav-bottom a>i{
  width:18px!important;height:18px!important;flex:0 0 18px!important;
  object-fit:contain;text-align:center;color:#96abc0;
}
body.tklm-ui-unified #tkSidebar .tk-nav a.tk-nav-sub{padding-left:11px!important;font-size:12px!important;opacity:1}
body.tklm-ui-unified .tk-nav-bottom{display:grid;gap:3px;border-top:1px solid var(--tk-line);padding:10px 0 0;margin-top:10px}
/* Core typography, surfaces, inputs, table and toolbar dimensions. */
body.tklm-ui-unified :is(.page-head,.section-header){gap:14px;margin-bottom:20px}
body.tklm-ui-unified .page-eyebrow{font-size:10px;letter-spacing:.105em;color:var(--tk-orange)}
body.tklm-ui-unified .page-title{font-size:clamp(23px,2.05vw,30px)!important;line-height:1.2;font-weight:750!important}
body.tklm-ui-unified .page-subtitle{font-size:13px;color:var(--tk-muted)!important;line-height:1.55}
body.tklm-ui-unified .tk-content :is(h1,h2,h3){letter-spacing:-.015em}
body.tklm-ui-unified .tk-content :is(h1,h2,h3,h4,h5){color:#f1f6fc}
body.tklm-ui-unified .tk-content :is(.text-muted,.form-text,small.text-muted){color:#9eafc3!important}
body.tklm-ui-unified .tk-content :is(.card,.panel-card,.filter-card,.form-section,.info-cell,.kpi-card,.modal-content,.accordion-item,.list-group-item){
  background:var(--tk-panel)!important;color:var(--tk-text)!important;
  border:1px solid var(--tk-line)!important;border-radius:var(--tk-radius)!important;
  box-shadow:var(--tk-shadow)!important;
}
body.tklm-ui-unified .tk-content :is(.card,.panel-card,.kpi-card,.form-section,.info-cell):before{display:none!important}
body.tklm-ui-unified .tk-content :is(.card-header,.card-footer,.panel-head,.modal-header,.modal-footer){
  background:var(--tk-panel2)!important;color:var(--tk-text)!important;border-color:var(--tk-line)!important;
}
body.tklm-ui-unified .tk-content .card-body{min-width:0}
body.tklm-ui-unified .tk-content :is(.kpi-grid,.grid,.row){min-width:0}
body.tklm-ui-unified .tk-content .kpi-value{font-variant-numeric:tabular-nums}
body.tklm-ui-unified .tk-content :is(.table-responsive,.v42-table-scroll){
  overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;border-radius:10px;
  -webkit-overflow-scrolling:touch;border:1px solid var(--tk-line);
}
body.tklm-ui-unified .tk-content table:not(.calendar-table),
body.tklm-ui-unified .tk-content .table{
  --bs-table-bg:transparent;--bs-table-color:#eaf0f8;
  --bs-table-striped-bg:rgba(255,255,255,.025);
  --bs-table-hover-bg:rgba(255,153,74,.05);
  --bs-table-border-color:var(--tk-line);
  width:100%;color:#eaf0f8!important;margin-bottom:0!important;
}
body.tklm-ui-unified .tk-content :is(table,.table) thead th{
  font-size:11px;font-weight:750;color:#a7b8ca!important;
  letter-spacing:.045em;background:#192735!important;border-bottom:1px solid #33465b!important;
}
body.tklm-ui-unified .tk-content :is(table,.table) tbody td{color:#e2eaf3!important}
body.tklm-ui-unified .tk-content :is(table,.table) :is(td,th){vertical-align:middle}
body.tklm-ui-unified .tk-content :is(.form-control,.form-select,textarea,select,input:not([type=checkbox]):not([type=radio])){
  min-height:39px;max-width:100%;font-size:13px;
  background:#101a27!important;color:#eef3fa!important;border:1px solid #3a4a5e!important;
  border-radius:9px!important;box-shadow:none!important;
}
body.tklm-ui-unified .tk-content :is(.form-control,.form-select,textarea,select,input:not([type=checkbox]):not([type=radio])):focus{
  border-color:var(--tk-orange)!important;box-shadow:0 0 0 3px rgba(255,153,74,.12)!important;
}
body.tklm-ui-unified :is(input,textarea)::placeholder{color:#798ea6!important;opacity:1}
body.tklm-ui-unified .tk-content :is(label,.form-label){font-size:12px;color:#b7c5d5!important}
body.tklm-ui-unified .tk-content :is(.btn,button.btn,input[type=submit],input[type=button]){
  min-height:37px;border-radius:9px!important;font-size:12px;font-weight:680;
  box-shadow:none!important;transform:none!important;
}
body.tklm-ui-unified .tk-content .btn-primary{
  background:#ed8a3b!important;color:#1c120a!important;border-color:#f3a35c!important;
}
body.tklm-ui-unified .tk-content .btn-primary:hover{background:#ffad65!important;border-color:#ffd1a0!important}
body.tklm-ui-unified .tk-content :is(.btn-secondary,.btn-light,.btn-outline-secondary,.btn-outline-primary){
  background:#23354a!important;color:#e4edf7!important;border:1px solid #40536a!important;
}
body.tklm-ui-unified .tk-content :is(.btn-secondary,.btn-light,.btn-outline-secondary,.btn-outline-primary):hover{background:#2b425b!important;color:#fff!important}
body.tklm-ui-unified .tk-content .btn-danger{background:#ab3b46!important;color:#fff!important;border-color:#cc5b67!important}
body.tklm-ui-unified .tk-content .btn-success{background:#176e56!important;color:#fff!important;border-color:#2f9575!important}
body.tklm-ui-unified .tk-content :is(.badge,.alert){border-radius:8px}
body.tklm-ui-unified .tk-content .alert{border-color:var(--tk-line)}
body.tklm-ui-unified .tk-content :is(.nav-tabs,.nav-pills){gap:5px;border-color:var(--tk-line)}
body.tklm-ui-unified .tk-content .nav-link{color:#b8c9dc;border-radius:9px}
body.tklm-ui-unified .tk-content .nav-link.active{background:#23374b!important;color:#fff!important;border-color:#e99449!important}
body.tklm-ui-unified .tk-content .dropdown-menu{
  background:#152334!important;border:1px solid #35475b!important;box-shadow:0 12px 28px rgba(0,0,0,.24)!important;
}
body.tklm-ui-unified .tk-content .dropdown-item{color:#edf2f9}
body.tklm-ui-unified .tk-content .dropdown-item:hover{color:#fff;background:#263b52}
/* Unified inline search dropdown; retains existing /szukaj backend and RBAC. */
body.tklm-ui-unified .tklm-v10-search-panel{
  position:absolute!important;top:calc(100% + 9px);left:0;right:0;max-height:min(65vh,560px);
  overflow-y:auto;z-index:170;border:1px solid #40526b;border-radius:12px;
  background:#122032;box-shadow:0 16px 38px rgba(0,0,0,.32);padding:9px;
}
body.tklm-ui-unified .tklm-v10-search-panel[hidden]{display:none!important}
body.tklm-ui-unified .tklm-v10-search-head,
body.tklm-ui-unified .tklm-v10-search-foot{font-size:10px;color:#8ea5bf;letter-spacing:.05em;padding:9px 10px}
body.tklm-ui-unified .tklm-v10-search-results{display:grid;gap:3px}
body.tklm-ui-unified .tklm-v10-search-item{
  display:flex;align-items:center;gap:10px;padding:10px;border-radius:9px;
  color:#edf4fc!important;text-decoration:none;background:transparent;
}
body.tklm-ui-unified .tklm-v10-search-item:hover,
body.tklm-ui-unified .tklm-v10-search-item.is-active{background:#243a50}
body.tklm-ui-unified .tklm-v10-search-type{font-size:10px;color:#f4ab6e;min-width:68px}
body.tklm-ui-unified .tklm-v10-search-text{display:grid;min-width:0;flex:1;gap:3px}
body.tklm-ui-unified .tklm-v10-search-text strong{font-size:12px;color:#edf4fc}
body.tklm-ui-unified .tklm-v10-search-text small{font-size:11px;color:#9cacc0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.tklm-ui-unified .tklm-v10-search-message{padding:14px 10px;color:#a5b6cb;font-size:12px}
body.tklm-ui-unified .tklm-v10-search-all{display:block;padding:9px 10px;color:#ffac70!important;font-size:12px}
body.tklm-ui-unified .tklm-v10-search-arrow{color:#93a8bd}
/* Keep content static. All transient visual motion and shimmer disabled. */
body.tklm-ui-unified .tk-content :is(.card,.panel-card,.kpi-card,.info-cell,.form-section),
body.tklm-ui-unified .tk-content :is(.card,.panel-card,.kpi-card,.info-cell,.form-section):hover{
  transform:none!important;animation:none!important;
}
body.tklm-ui-unified .tk-content :is(.card,.panel-card,.kpi-card,.info-cell,.form-section):before,
body.tklm-ui-unified .tk-content :is(.card,.panel-card,.kpi-card,.info-cell,.form-section):after{animation:none!important}
/* Prevent dark UI flash when focused; no global DOM mutation/observer required. */
body.tklm-ui-unified .flash-wrap{z-index:250}
@media(max-width:1220px){
  body.tklm-ui-unified .tk-top-action span{display:none}
  body.tklm-ui-unified .tk-top-action{width:37px;padding:0;justify-content:center}
}
@media(max-width:1050px){
  body.tklm-ui-unified .tk-profile-main,body.tklm-ui-unified .tk-profile-chevron{display:none}
  body.tklm-ui-unified .tk-h378-open span{display:none}
}
@media(max-width:920px){
  :root{--tk-top:59px}
  body.tklm-ui-unified .tk-sidebar{
    left:0!important;width:min(310px,88vw)!important;max-width:88vw;
    transform:translateX(-105%);transition:transform .15s ease!important;
    box-shadow:0 14px 35px rgba(0,0,0,.4)!important;
  }
  body.tklm-ui-unified.tk-menu-open .tk-sidebar{transform:translateX(0)}
  body.tklm-ui-unified .tk-topbar{left:0!important;padding:0 12px;gap:8px}
  body.tklm-ui-unified .tk-menu-toggle{display:grid;place-items:center;min-width:39px;min-height:39px;background:#1e3044;color:#f2f7fc}
  body.tklm-ui-unified .tk-main{margin-left:0!important;padding-top:var(--tk-top)!important}
  body.tklm-ui-unified .tk-content{padding:16px 13px calc(86px + env(safe-area-inset-bottom))!important}
  body.tklm-ui-unified .tk-top-actions{display:none!important}
  body.tklm-ui-unified .tk-h378-open{min-width:37px;justify-content:center;padding:0 8px}
  body.tklm-ui-unified .tk-mobile-nav{
    display:grid;position:fixed;bottom:0;left:0;right:0;z-index:115;
    grid-auto-flow:column;grid-auto-columns:1fr;gap:0;height:auto;
    min-height:63px;padding:5px 3px calc(5px + env(safe-area-inset-bottom));
    border-top:1px solid var(--tk-line);background:#111d2a!important;box-shadow:none;
  }
  body.tklm-ui-unified .tk-mobile-nav a{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
    min-width:0;min-height:48px;padding:3px!important;font-size:10px!important;
    color:#adbed1!important;text-align:center;line-height:1.1;
  }
  body.tklm-ui-unified .tk-mobile-nav a i{font-size:17px}
  body.tklm-ui-unified .tk-mobile-nav a.active{background:#243549!important;color:#ffa35c!important}
  body.tklm-ui-unified .tk-profile-menu{right:0;width:min(300px,calc(100vw - 18px))}
}
@media(max-width:600px){
  body.tklm-ui-unified .tk-search .tk-kbd{display:none}
  body.tklm-ui-unified .tk-search input{padding-right:11px!important}
  body.tklm-ui-unified .tk-content :is(.page-title,h1){overflow-wrap:anywhere}
  body.tklm-ui-unified .tk-content :is(.form-control,.form-select,textarea,select,input:not([type=checkbox]):not([type=radio])){font-size:16px!important}
  body.tklm-ui-unified .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){
  body.tklm-ui-unified *,body.tklm-ui-unified *::before,body.tklm-ui-unified *::after{
    scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important;
  }
}

/* Unified V1.1 — visible finance/work shortcuts, no new visual engine. */
body.tklm-ui-unified .tk-ui-analytics-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 0 20px}
body.tklm-ui-unified .tk-ui-analytics-shortcuts a{display:flex;align-items:center;gap:9px;min-height:51px;background:#172638;border:1px solid #34485e;border-radius:10px;color:#eaf0f6!important;padding:10px 13px;text-decoration:none!important;font-size:12px;font-weight:700}
body.tklm-ui-unified .tk-ui-analytics-shortcuts a i{font-size:15px;color:#ef9a54}
body.tklm-ui-unified .tk-ui-analytics-shortcuts a:hover{background:#23364b;border-color:#e99554}
body.tklm-ui-unified .tk-wa-stack{display:grid;gap:15px}
body.tklm-ui-unified .tk-wa-toolbar{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
body.tklm-ui-unified .tk-wa-toolbar a{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border:1px solid #40536b;border-radius:8px;background:#203246;color:#eaf1fa;text-decoration:none;font-size:12px}
body.tklm-ui-unified .tk-wa-toolbar a:hover{border-color:#ee974f}
body.tklm-ui-unified .tk-wa-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
body.tklm-ui-unified .tk-wa-card{border:1px solid #33475c;background:#172638;border-radius:12px;padding:17px;min-width:0}
body.tklm-ui-unified .tk-wa-card h2{font-size:13px;margin:0 0 13px;font-weight:750}
body.tklm-ui-unified .tk-wa-label{font-size:11px;color:#a8b8c9;font-weight:650}
body.tklm-ui-unified .tk-wa-value{font-size:28px;font-weight:800;line-height:1.3;margin:7px 0;color:#eaf3fc;font-variant-numeric:tabular-nums}
body.tklm-ui-unified .tk-wa-value.emphasis{color:#ffa760}
body.tklm-ui-unified .tk-wa-note{color:#9caec2;font-size:11px;line-height:1.5}
body.tklm-ui-unified .tk-wa-charts{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:13px}
body.tklm-ui-unified .tk-wa-months{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:end;gap:9px;min-height:240px}
body.tklm-ui-unified .tk-wa-month{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;min-width:0;height:230px}
body.tklm-ui-unified .tk-wa-bars{display:flex;align-items:flex-end;width:100%;gap:2px;height:175px;border-bottom:1px solid #354b61}
body.tklm-ui-unified .tk-wa-bar{width:50%;min-height:0;background:#ec9854;border-radius:4px 4px 0 0}
body.tklm-ui-unified .tk-wa-bar.done{background:#479cc2}
body.tklm-ui-unified .tk-wa-month-label{font-size:10px;color:#9baec1;white-space:nowrap}
body.tklm-ui-unified .tk-wa-month-total{font-size:10px;font-weight:700;color:#eaf0f8;white-space:nowrap}
body.tklm-ui-unified .tk-wa-legend{display:flex;gap:16px;font-size:11px;color:#a9b9c9;margin-top:10px}
body.tklm-ui-unified .tk-wa-legend b{display:inline-block;width:9px;height:9px;margin-right:5px;border-radius:2px;background:#479cc2}
body.tklm-ui-unified .tk-wa-legend b.pending{background:#ec9854}
body.tklm-ui-unified .tk-wa-clients{width:100%;border-collapse:collapse}
body.tklm-ui-unified .tk-wa-clients th,body.tklm-ui-unified .tk-wa-clients td{border-bottom:1px solid #304456;padding:10px 8px;font-size:12px;text-align:left}
body.tklm-ui-unified .tk-wa-clients td:last-child,body.tklm-ui-unified .tk-wa-clients th:last-child{text-align:right}
body.tklm-ui-unified .tk-wa-clients a{color:#ffaf73}
body.tklm-ui-unified .tk-wa-forecast{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
body.tklm-ui-unified .tk-wa-forecast>div{background:#1e3043;border:1px solid #3b4c61;border-radius:9px;padding:12px}
body.tklm-ui-unified .tk-wa-forecast strong{display:block;font-size:21px;font-variant-numeric:tabular-nums;color:#f2f7fc;margin-top:5px}
@media(max-width:1100px){body.tklm-ui-unified .tk-wa-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}body.tklm-ui-unified .tk-wa-charts{grid-template-columns:1fr}}
@media(max-width:850px){body.tklm-ui-unified .tk-ui-analytics-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}body.tklm-ui-unified .tk-wa-months{gap:4px}}
@media(max-width:520px){body.tklm-ui-unified .tk-wa-kpis{gap:7px}body.tklm-ui-unified .tk-wa-card{padding:12px}body.tklm-ui-unified .tk-wa-value{font-size:22px}body.tklm-ui-unified .tk-wa-months{overflow-x:auto;grid-template-columns:repeat(12,minmax(39px,1fr));padding-bottom:7px}body.tklm-ui-unified .tk-wa-forecast{grid-template-columns:1fr}}
