/* =====================================================================
   BKH — Personal App  ·  Master stylesheet
   One common theme for the whole application.
   Design system mirrors Databord (databord.bkh.no):
     primary #1f4e66 · page bg #f2f2f2 · menu text #fae0ce
     success #2d7048 · danger #cc334c · warning #c26800 · info #0ea5e9
     font: Inter
   This file loads LAST and is the single source of truth for the look.
   It sits on top of Bootstrap 3 (kept only as a structural skeleton so
   existing markup + jQuery plugins keep working — "restyle only").
   To re-theme the whole app, edit the tokens in :root below.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root{
  --bkh-primary:#1f4e66;
  --bkh-primary-600:#1b465c;
  --bkh-primary-700:#163a4d;
  --bkh-primary-soft:rgba(31,78,102,.08);
  --bkh-primary-soft-2:rgba(31,78,102,.14);
  --bkh-page:#f2f2f2;
  --bkh-card:#ffffff;
  --bkh-menu:#fae0ce;
  --bkh-text:#1f2937;
  --bkh-muted:#6b7280;
  --bkh-border:#e5e7eb;
  --bkh-success:#2d7048;
  --bkh-danger:#cc334c;
  --bkh-warning:#c26800;
  --bkh-info:#0ea5e9;

  --bkh-sidebar-w:272px;
  --bkh-topbar-h:64px;
  --bkh-radius:14px;
  --bkh-radius-sm:10px;
  --bkh-shadow:0 1px 2px rgba(16,24,40,.04),0 4px 16px rgba(16,24,40,.06);
  --bkh-shadow-lg:0 10px 30px rgba(16,24,40,.12);
  --bkh-font:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}

/* ------------------------------------------------------------------ base */
html{scroll-behavior:smooth;}
body{
  font-family:var(--bkh-font)!important;
  background:var(--bkh-page)!important;
  color:var(--bkh-text)!important;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-size:14px;
  line-height:1.5;
}
*{box-sizing:border-box;}
a{color:var(--bkh-primary);text-decoration:none;}
a:hover,a:focus{color:var(--bkh-primary-700);text-decoration:none;}
h1,h2,h3,h4,h5,h6{font-family:var(--bkh-font);color:var(--bkh-text);font-weight:600;}
hr{border-top:1px solid var(--bkh-border);}
.text-muted{color:var(--bkh-muted)!important;}

/* thin custom scrollbars everywhere (matches Databord) */
*::-webkit-scrollbar{width:9px;height:9px;}
*::-webkit-scrollbar-track{background:transparent;}
*::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:9999px;}
*::-webkit-scrollbar-thumb:hover{background:#94a3b8;}

/* =====================================================================
   APP SHELL
   ===================================================================== */
.bkh-app{min-height:100vh;}

/* ---- Sidebar ---- */
.bkh-sidebar{
  position:fixed;top:0;left:0;height:100vh;width:var(--bkh-sidebar-w);
  background:linear-gradient(160deg,var(--bkh-primary) 0%,var(--bkh-primary) 60%,var(--bkh-primary-700) 100%);
  color:var(--bkh-menu);
  display:flex;flex-direction:column;
  z-index:1050;
  box-shadow:var(--bkh-shadow-lg);
  transition:transform .3s ease;
}
.bkh-sidebar__header{
  flex:0 0 auto;
  display:flex;flex-direction:column;align-items:center;gap:14px;
  padding:26px 18px 22px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:linear-gradient(to bottom,rgba(255,255,255,.06),transparent);
}
.bkh-brandlink{display:flex;flex-direction:column;align-items:center;gap:13px;width:100%;}
/* soft circular badge behind the logo */
.bkh-logo-badge{
  width:108px;height:108px;border-radius:50%;
  background:radial-gradient(circle at 50% 35%,rgba(255,255,255,.12),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.16);
  box-shadow:inset 0 0 26px rgba(255,255,255,.06),0 8px 22px rgba(0,0,0,.20);
  display:flex;align-items:center;justify-content:center;
  transition:transform .3s ease;
}
.bkh-brandlink:hover .bkh-logo-badge{transform:scale(1.04);}
.bkh-sidebar__header img{
  height:92px;width:auto;object-fit:contain;
  /* black artwork -> crisp white on the dark sidebar */
  filter:brightness(0) invert(1);
}
.bkh-sidebar__brand{
  text-align:center;color:#fff;font-weight:700;
  font-size:13px;letter-spacing:.18em;text-transform:uppercase;line-height:1.3;
}

.bkh-nav{
  flex:1 1 auto;overflow-y:auto;overflow-x:hidden;
  padding:14px 12px 24px;
}
.bkh-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.20);}
.bkh-nav::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.32);}
.bkh-nav{scrollbar-color:rgba(255,255,255,.2) transparent;}

/* uppercase section label with a trailing hairline rule */
.bkh-nav__section{
  display:flex;align-items:center;gap:9px;
  padding:18px 16px 8px;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(250,224,206,.5);font-weight:700;
}
.bkh-nav__section::after{
  content:"";flex:1;height:1px;
  background:linear-gradient(to right,rgba(250,224,206,.18),transparent);
}
.bkh-nav ul{list-style:none;margin:0;padding:0;}
.bkh-nav li{margin:3px 0;}

/* a leaf link OR a group toggle */
.bkh-nav__link{
  position:relative;display:flex;align-items:center;gap:13px;
  padding:11px 14px;border-radius:12px;
  color:var(--bkh-menu);font-size:14.5px;font-weight:500;
  cursor:pointer;white-space:nowrap;
  transition:background .22s cubic-bezier(.4,0,.2,1),color .2s ease,
             transform .22s cubic-bezier(.4,0,.2,1),box-shadow .22s ease;
}
/* animated left accent bar — grows on hover, full + glowing when active */
.bkh-nav__link::before{
  content:"";position:absolute;left:0;top:50%;
  width:3px;height:62%;border-radius:0 3px 3px 0;background:var(--bkh-menu);
  transform:translateY(-50%) scaleY(0);transform-origin:center;opacity:0;
  transition:transform .26s cubic-bezier(.4,0,.2,1),opacity .2s ease,background .2s ease,box-shadow .2s ease;
}
.bkh-nav__link:hover,.bkh-nav__link:focus{
  background:rgba(255,255,255,.08);color:#fff;transform:translateX(4px);
}
.bkh-nav__link:hover::before,.bkh-nav__link:focus::before{transform:translateY(-50%) scaleY(.55);opacity:.5;}
.bkh-nav__link:hover .bkh-ic,.bkh-nav__link:focus .bkh-ic{transform:scale(1.09);}
.bkh-nav__link.is-active{
  background:linear-gradient(100deg,rgba(255,255,255,.22),rgba(255,255,255,.09));
  color:#fff;font-weight:600;transform:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 10px 22px -10px rgba(0,0,0,.55);
}
.bkh-nav__link.is-active::before{
  transform:translateY(-50%) scaleY(1);opacity:1;background:#fff;
  box-shadow:0 0 10px rgba(255,255,255,.55);
}
.bkh-nav__link.is-active .bkh-ic{color:#fff;}
.bkh-nav__link .bkh-ic{
  width:20px;text-align:center;font-size:17px;flex:0 0 auto;
  transition:transform .22s cubic-bezier(.34,1.56,.64,1),color .2s ease;
}
.bkh-nav__link .bkh-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;}
/* caret points right (>) when collapsed, rotates down (v) when open */
.bkh-nav__link .bkh-caret{transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .2s ease;font-size:11px;opacity:.65;transform:rotate(-90deg);}
.bkh-nav__group.is-open > .bkh-nav__link .bkh-caret{transform:rotate(0deg);opacity:.95;}
.bkh-nav__group.is-open > .bkh-nav__link{background:rgba(255,255,255,.06);color:#fff;}

/* submenu — guide rail + connector dots */
.bkh-nav__sub{
  position:relative;max-height:0;overflow:hidden;opacity:0;margin:2px 0;
  transition:max-height .35s cubic-bezier(.4,0,.2,1),opacity .3s ease,margin .3s ease;
}
.bkh-nav__group.is-open > .bkh-nav__sub{max-height:640px;opacity:1;}
.bkh-nav__sub::before{
  content:"";position:absolute;left:24px;top:5px;bottom:5px;width:1.5px;border-radius:2px;
  background:linear-gradient(to bottom,rgba(250,224,206,.28),rgba(250,224,206,.05));
}
.bkh-nav__sub a{
  position:relative;display:flex;align-items:center;gap:11px;padding:9px 14px 9px 38px;border-radius:10px;
  color:rgba(250,224,206,.82);font-size:13.5px;font-weight:500;
  transition:background .18s ease,color .18s ease,transform .18s cubic-bezier(.4,0,.2,1);
}
.bkh-nav__sub a::before{
  content:"";position:absolute;left:20.5px;top:50%;transform:translateY(-50%);
  width:8px;height:8px;border-radius:50%;background:var(--bkh-primary);
  box-shadow:0 0 0 2px rgba(250,224,206,.3);
  transition:background .2s ease,box-shadow .2s ease;
}
.bkh-nav__sub a .bkh-ic{width:16px;text-align:center;font-size:14px;flex:0 0 auto;opacity:.85;}
.bkh-nav__sub a:hover{background:rgba(255,255,255,.08);color:#fff;transform:translateX(3px);}
.bkh-nav__sub a:hover::before{background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.2);}
.bkh-nav__sub a.is-active{background:rgba(255,255,255,.13);color:#fff;font-weight:600;}
.bkh-nav__sub a.is-active::before{background:#fff;box-shadow:0 0 8px rgba(255,255,255,.6),0 0 0 3px rgba(255,255,255,.22);}

/* counter badge — gentle attention pulse */
.bkh-nav__badge{
  margin-left:auto;font-size:10.5px;font-weight:700;color:#fff;background:var(--bkh-danger);
  padding:2px 8px;border-radius:9999px;box-shadow:0 2px 6px rgba(204,51,76,.45);
  animation:bkh-badge-pulse 2.4s ease-in-out infinite;
}
@keyframes bkh-badge-pulse{0%,100%{box-shadow:0 2px 6px rgba(204,51,76,.4);}50%{box-shadow:0 2px 13px rgba(204,51,76,.8);}}

/* subtle staggered entrance for top-level items */
.bkh-nav > ul > li{animation:bkh-nav-in .42s cubic-bezier(.2,.7,.3,1) both;}
.bkh-nav > ul > li:nth-child(1){animation-delay:.02s;}
.bkh-nav > ul > li:nth-child(2){animation-delay:.05s;}
.bkh-nav > ul > li:nth-child(3){animation-delay:.08s;}
.bkh-nav > ul > li:nth-child(4){animation-delay:.11s;}
.bkh-nav > ul > li:nth-child(5){animation-delay:.14s;}
.bkh-nav > ul > li:nth-child(6){animation-delay:.17s;}
.bkh-nav > ul > li:nth-child(7){animation-delay:.20s;}
.bkh-nav > ul > li:nth-child(8){animation-delay:.23s;}
.bkh-nav > ul > li:nth-child(9){animation-delay:.26s;}
.bkh-nav > ul > li:nth-child(n+10){animation-delay:.29s;}
@keyframes bkh-nav-in{from{opacity:0;transform:translateX(-12px);}to{opacity:1;transform:none;}}

/* respect reduced-motion preferences (accessibility) */
@media (prefers-reduced-motion:reduce){
  .bkh-nav > ul > li{animation:none;}
  .bkh-nav__badge{animation:none;}
  .bkh-nav__link,.bkh-nav__link::before,.bkh-nav__link .bkh-ic,.bkh-nav__sub,.bkh-nav__sub a{transition:none;}
}

/* decorative gradient divider (Databord) */
.bkh-divider-line{height:3px;flex:0 0 auto;
  background:linear-gradient(to right,transparent,rgba(250,224,206,.30),transparent);}

/* ---- Sidebar language switch (NO / EN segmented pill) ---- */
.bkh-langswitch{
  display:flex;gap:4px;padding:4px;margin:10px 16px 2px;
  background:rgba(255,255,255,.06);border-radius:11px;
}
.bkh-langswitch__opt{
  flex:1;text-align:center;padding:6px 0;font-size:12px;font-weight:700;
  letter-spacing:.04em;color:var(--bkh-menu);border-radius:8px;opacity:.72;
  transition:background .15s ease,color .15s ease,opacity .15s ease;
}
.bkh-langswitch__opt:hover{opacity:1;color:#fff;}
.bkh-langswitch__opt.is-active{
  background:#fff;color:var(--bkh-primary);opacity:1;box-shadow:0 1px 3px rgba(0,0,0,.18);
}
/* light variant for the auth (login) cards */
.bkh-langswitch--auth{background:#eef2f5;border:1px solid #e2e8ed;}
.bkh-langswitch--auth .bkh-langswitch__opt{color:#5a6670;}
.bkh-langswitch--auth .bkh-langswitch__opt:hover{color:var(--bkh-primary);}
.bkh-langswitch--auth .bkh-langswitch__opt.is-active{background:var(--bkh-primary);color:#fff;}

/* ---- Sidebar flag language switch (pinned top-right, above the logo) ---- */
/* Absolutely positioned inside the fixed sidebar so it never shifts the
   centred logo. Inactive flag is dimmed; active gets full colour + ring. */
.bkh-flagswitch{position:absolute;top:13px;right:13px;z-index:4;display:flex;gap:7px;}
.bkh-flagswitch__opt{display:block;width:27px;height:18px;border-radius:4px;overflow:hidden;line-height:0;
  opacity:.45;filter:grayscale(.35);border:1.5px solid transparent;
  box-shadow:0 1px 3px rgba(0,0,0,.35);transition:opacity .15s ease,transform .15s ease,box-shadow .15s ease,border-color .15s ease;}
.bkh-flagswitch__opt:hover{opacity:.9;transform:translateY(-1px);}
.bkh-flagswitch__opt.is-active{opacity:1;filter:none;border-color:#fff;box-shadow:0 2px 7px rgba(0,0,0,.45);}
.bkh-flagswitch__opt svg{width:100%;height:100%;display:block;}

/* ---- Sidebar footer: user card (avatar + name + logout) ---- */
.bkh-sidebar__foot{
  flex:0 0 auto;
  border-top:1px solid rgba(255,255,255,.10);
  background:linear-gradient(to top,rgba(0,0,0,.22),transparent);
}
.bkh-user{
  display:flex;align-items:center;gap:12px;padding:14px 14px;
  margin:8px;border-radius:16px;background:rgba(255,255,255,.05);
  transition:background .2s ease;
}
.bkh-user:hover{background:rgba(255,255,255,.08);}
.bkh-user__avatar{flex:0 0 auto;display:block;line-height:0;}
.bkh-user__avatar img,
.bkh-user__avatar .bkh-avatar{
  width:46px;height:46px;border-radius:13px;object-fit:cover;
  border:2px solid rgba(255,255,255,.22);transition:border-color .2s ease;
}
.bkh-user__avatar:hover img,
.bkh-user__avatar:hover .bkh-avatar{border-color:rgba(255,255,255,.5);}
.bkh-avatar{
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#2b6383,#163a4d);color:#fff;font-weight:700;font-size:17px;
}
.bkh-user__meta{flex:1 1 auto;min-width:0;line-height:1.25;}
.bkh-user__meta b{display:block;color:#fff;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bkh-user__meta span{display:block;color:var(--bkh-menu);font-size:11.5px;opacity:.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bkh-user__logout{
  flex:0 0 auto;width:42px;height:42px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(204,51,76,.85);color:#fff;font-size:17px;text-decoration:none;
  transition:all .2s ease;
}
.bkh-user__logout:hover{background:var(--bkh-danger);color:#fff;transform:translateX(2px);box-shadow:0 8px 20px rgba(204,51,76,.30);}

/* ---- Floating mobile menu button (replaces the removed top bar) ---- */
.bkh-mobile-toggle{
  position:fixed;top:14px;left:14px;z-index:1035;
  width:46px;height:46px;border-radius:12px;border:0;cursor:pointer;
  background:var(--bkh-primary);color:#fff;font-size:19px;
  box-shadow:var(--bkh-shadow-lg);
  display:none;align-items:center;justify-content:center;
}
@media (max-width:991px){
  .bkh-mobile-toggle{display:inline-flex;}
  .bkh-content{padding-top:74px;}
}

/* mobile overlay */
.bkh-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1040;
  opacity:0;visibility:hidden;transition:opacity .3s ease;
}
.bkh-overlay.is-open{opacity:1;visibility:visible;}

/* ---- Main column ---- */
.bkh-main{
  margin-left:var(--bkh-sidebar-w);
  min-height:100vh;
  display:flex;flex-direction:column;
  transition:margin .3s ease;
}

/* ---- Topbar ---- */
.bkh-topbar{
  position:sticky;top:0;z-index:1030;
  height:var(--bkh-topbar-h);
  background:#fff;
  border-bottom:1px solid var(--bkh-border);
  box-shadow:0 1px 3px rgba(16,24,40,.06);
  display:flex;align-items:center;gap:14px;
  padding:0 22px;
}
.bkh-topbar__toggle{
  border:0;background:transparent;color:var(--bkh-text);
  font-size:20px;width:42px;height:42px;border-radius:10px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  transition:background .15s ease,color .15s ease;
}
.bkh-topbar__toggle:hover{background:var(--bkh-primary-soft);color:var(--bkh-primary);}
.bkh-topbar__title{font-size:16px;font-weight:600;color:var(--bkh-text);margin:0;}
.bkh-topbar__spacer{flex:1 1 auto;}
.bkh-topbar__right{display:flex;align-items:center;gap:8px;}
.bkh-topbar__btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 14px;border-radius:10px;font-weight:600;font-size:13.5px;
  color:var(--bkh-text);background:transparent;border:1px solid transparent;cursor:pointer;
  transition:all .15s ease;
}
.bkh-topbar__btn:hover{background:var(--bkh-primary-soft);color:var(--bkh-primary);}
.bkh-topbar__btn.logout:hover{background:rgba(204,51,76,.10);color:var(--bkh-danger);}
.bkh-chip{
  display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:9999px;
  background:var(--bkh-primary-soft);color:var(--bkh-primary);font-weight:600;font-size:13px;
}

/* ---- Content + footer ---- */
.bkh-content{flex:1 1 auto;padding:26px 26px 12px;}
.bkh-footer{
  padding:16px 26px;color:var(--bkh-muted);font-size:12.5px;
  border-top:1px solid var(--bkh-border);background:transparent;
  display:flex;justify-content:space-between;align-items:center;gap:10px;
}

/* desktop default: drawer is static, hamburger only collapses on small screens */
@media (min-width:992px){
  .bkh-topbar__toggle.mobile-only{display:none;}
}
@media (max-width:991px){
  .bkh-sidebar{transform:translateX(-100%);}
  .bkh-sidebar.is-open{transform:translateX(0);}
  .bkh-main{margin-left:0;}
  .bkh-content{padding:18px 14px 10px;}
}

/* =====================================================================
   BOOTSTRAP 3 COMPONENT RE-SKIN
   (the 84 content views inherit these automatically)
   ===================================================================== */

/* page heading strip used by INSPINIA views */
.page-heading,.wrapper.border-bottom,.row.wrapper.border-bottom{
  background:transparent!important;border:0!important;padding:0 0 18px!important;
}
.page-heading h1,.page-heading h2{font-size:22px;font-weight:700;margin:0 0 4px;}
.breadcrumb{background:transparent;padding:0;margin:4px 0 0;font-size:13px;}
.breadcrumb>li+li:before{color:#cbd5e1;}
.wrapper-content{padding:0!important;}

/* cards: panel + INSPINIA ibox -> Databord card */
.panel,.ibox,.ibox-content,.ibox-title,.well{
  border:0;box-shadow:none;background:transparent;
}
.panel,.ibox{
  background:var(--bkh-card);border:1px solid var(--bkh-border);
  border-radius:var(--bkh-radius);box-shadow:var(--bkh-shadow);
  margin-bottom:24px;overflow:hidden;
}
.ibox-title{
  background:var(--bkh-card);border-bottom:1px solid var(--bkh-border);
  padding:16px 20px;border-radius:var(--bkh-radius) var(--bkh-radius) 0 0;
}
.ibox-title h1,.ibox-title h2,.ibox-title h3,.ibox-title h4,.ibox-title h5{
  margin:0;font-size:15.5px;font-weight:600;color:var(--bkh-text);
}
.ibox-content{
  background:var(--bkh-card);border:0;padding:20px;
}
.panel-heading{
  background:var(--bkh-card);border-bottom:1px solid var(--bkh-border);
  color:var(--bkh-text);font-weight:600;padding:16px 20px;border-radius:0;
}
.panel-body{padding:20px;}
.panel-footer{background:#fafafa;border-top:1px solid var(--bkh-border);}
.well{
  background:#f8fafc;border:1px solid var(--bkh-border);border-radius:var(--bkh-radius-sm);
  box-shadow:none;
}

/* small dashboard stat widget look for .widget / .ibox with numbers (best-effort) */
.well .m,.no-padding{padding:0;}

/* ---- Buttons ---- */
.btn{
  border-radius:10px;font-weight:600;font-size:13.5px;
  padding:8px 16px;border:1px solid transparent;
  transition:all .15s ease;box-shadow:none;
}
.btn:active{box-shadow:none;}
.btn-primary{background:var(--bkh-primary);border-color:var(--bkh-primary);color:#fff;}
.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active{
  background:var(--bkh-primary-700)!important;border-color:var(--bkh-primary-700)!important;color:#fff;
}
.btn-success{background:var(--bkh-success);border-color:var(--bkh-success);color:#fff;}
.btn-success:hover,.btn-success:focus{background:#245c3a!important;border-color:#245c3a!important;color:#fff;}
.btn-danger{background:var(--bkh-danger);border-color:var(--bkh-danger);color:#fff;}
.btn-danger:hover,.btn-danger:focus{background:#b02a40!important;border-color:#b02a40!important;color:#fff;}
.btn-warning{background:var(--bkh-warning);border-color:var(--bkh-warning);color:#fff;}
.btn-warning:hover,.btn-warning:focus{background:#a55700!important;border-color:#a55700!important;color:#fff;}
.btn-info{background:var(--bkh-info);border-color:var(--bkh-info);color:#fff;}
.btn-info:hover,.btn-info:focus{background:#0b8bc4!important;border-color:#0b8bc4!important;color:#fff;}
.btn-default,.btn-white{
  background:#fff;border-color:var(--bkh-border);color:var(--bkh-text);
}
.btn-default:hover,.btn-white:hover{background:#f8fafc;border-color:#cbd5e1;color:var(--bkh-text);}
.btn-outline,.btn-primary.btn-outline{background:transparent;color:var(--bkh-primary);border-color:var(--bkh-primary);}
.btn-link{color:var(--bkh-primary);}
.btn-xs{padding:4px 9px;font-size:12px;border-radius:8px;}
.btn-sm{padding:6px 12px;font-size:12.5px;border-radius:8px;}
.btn-lg{padding:11px 22px;font-size:15px;border-radius:12px;}
.btn-rounded{border-radius:9999px;}

/* ---- Forms ---- */
.form-control{
  border-radius:10px;border:1px solid var(--bkh-border);
  box-shadow:none;height:auto;padding:9px 13px;font-size:14px;color:var(--bkh-text);
  background:#fff;transition:border-color .15s ease,box-shadow .15s ease;
}
.form-control:focus{
  border-color:var(--bkh-primary);
  box-shadow:0 0 0 3px var(--bkh-primary-soft-2);
}
textarea.form-control{height:auto;}
label,.control-label{font-weight:600;color:#374151;font-size:13px;margin-bottom:6px;}
.input-group-addon{border-radius:10px;border:1px solid var(--bkh-border);background:#f8fafc;color:var(--bkh-muted);}
.input-group .form-control:first-child,.input-group-addon:first-child{border-top-right-radius:0;border-bottom-right-radius:0;}
.input-group .form-control:last-child,.input-group-addon:last-child{border-top-left-radius:0;border-bottom-left-radius:0;}
.has-error .form-control{border-color:var(--bkh-danger);}
.help-block{font-size:12.5px;}
.has-error .help-block,.text-danger{color:var(--bkh-danger);}

/* ---- Tables ---- */
.table{background:transparent;color:var(--bkh-text);margin-bottom:0;}
.table>thead>tr>th,table.dataTable>thead>tr>th{
  border-bottom:1px solid var(--bkh-border)!important;
  background:#f8fafc;color:#475569;font-weight:600;font-size:11.5px;
  text-transform:uppercase;letter-spacing:.03em;padding:12px 14px;vertical-align:middle;
  text-align:left;
}
.table>tbody>tr>td,table.dataTable>tbody>tr>td{
  border-top:1px solid #f1f5f9;padding:11px 14px;vertical-align:middle;font-size:13px;
  text-align:left;
}
/* utility: center a specific column (header + cells) */
.table th.dt-center,.table td.dt-center,
table.dataTable th.dt-center,table.dataTable td.dt-center{text-align:center;}
/* primary-name + muted sub-line inside a cell */
.cell-title{font-weight:600;color:var(--bkh-text);}
.cell-sub{color:var(--bkh-muted);font-size:12px;margin-top:2px;}
/* stacked employee identity: small light id, dark name, phone */
.cell-emp{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:1px;min-width:0;}
.cell-emp .cell-id{font-size:11px;color:#94a3b8;font-weight:500;letter-spacing:.02em;}
.cell-emp .cell-title{font-size:14px;font-weight:600;color:var(--bkh-text);margin:0;}
.cell-emp .cell-sub{font-size:12px;color:var(--bkh-muted);margin:0;}
/* keep row action buttons on one line, tight */
td.cell-actions{white-space:nowrap;}
td.cell-actions .btn{margin:0 1px;}
.table-striped>tbody>tr:nth-of-type(odd){background:#fafbfc;}
.table-hover>tbody>tr:hover{background:var(--bkh-primary-soft);}
.table-bordered{border:1px solid var(--bkh-border);border-radius:var(--bkh-radius-sm);overflow:hidden;}
.table-bordered>thead>tr>th,.table-bordered>tbody>tr>td{border:1px solid var(--bkh-border);}

/* ---- Labels / badges / pills ---- */
.label,.badge{
  font-weight:600;font-size:11.5px;border-radius:9999px;padding:.32em .7em;letter-spacing:.01em;
}
.label-primary,.badge-primary{background:var(--bkh-primary);}
.label-success,.badge-success{background:var(--bkh-success);}
.label-danger,.badge-danger{background:var(--bkh-danger);}
.label-warning,.badge-warning{background:var(--bkh-warning);}
.label-info,.badge-info{background:var(--bkh-info);}
.label-default{background:#e2e8f0;color:#475569;}
.badge{background:var(--bkh-primary);}

/* ---- Alerts ---- */
.alert{border:0;border-radius:var(--bkh-radius-sm);border-left:4px solid;font-size:13.5px;padding:13px 16px;}
.alert-success{background:#eaf4ee;border-color:var(--bkh-success);color:#1e4d31;}
.alert-danger{background:#fbeaed;border-color:var(--bkh-danger);color:#8f2233;}
.alert-warning{background:#fbf1e6;border-color:var(--bkh-warning);color:#7a4400;}
/* !important beats legacy style.css .alert-info{#1ab394 !important} */
.alert-info{background:#e7f5fc!important;border-color:var(--bkh-info)!important;color:#0b5e80!important;}

/* ---- Tabs (used on the admin dashboard) ---- */
.nav-tabs{border-bottom:1px solid var(--bkh-border);margin-bottom:0;}
.nav-tabs>li{margin-bottom:-1px;}
.nav-tabs>li>a{
  border:0;border-radius:0;color:var(--bkh-muted);font-weight:600;font-size:14px;
  padding:13px 18px;margin-right:2px;border-bottom:2px solid transparent;background:transparent;
}
.nav-tabs>li>a:hover{background:var(--bkh-primary-soft);color:var(--bkh-primary);border-bottom-color:transparent;}
.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{
  color:var(--bkh-primary);background:transparent;border:0;border-bottom:2px solid var(--bkh-primary);
}
.nav-tabs>li>a i{margin-right:7px;}
.tab-content{padding:20px 0 0;}
.tabs-container .tab-content,.panel-body .tab-content{padding-top:18px;}

/* pills */
.nav-pills>li>a{border-radius:9999px;color:var(--bkh-text);font-weight:600;}
.nav-pills>li.active>a,.nav-pills>li.active>a:hover{background:var(--bkh-primary);color:#fff;}

/* ---- Dropdowns ---- */
.dropdown-menu{
  border:1px solid var(--bkh-border);border-radius:12px;box-shadow:var(--bkh-shadow-lg);
  padding:6px;overflow:hidden;
}
.dropdown-menu>li>a{border-radius:8px;padding:9px 12px;font-size:13.5px;color:var(--bkh-text);}
.dropdown-menu>li>a:hover{background:var(--bkh-primary-soft);color:var(--bkh-primary);}

/* ---- Branded modal (opt-in via .bkh-modal) ---- */
.bkh-modal .modal-content{border:0;border-radius:16px;overflow:hidden;box-shadow:0 24px 60px rgba(16,24,40,.28);}
.bkh-modal .modal-header{
  background:linear-gradient(135deg,var(--bkh-primary),var(--bkh-primary-700));
  color:#fff;border:0;padding:18px 22px;
}
.bkh-modal .modal-header .modal-title{color:#fff;font-weight:600;font-size:16px;display:flex;align-items:center;gap:9px;}
.bkh-modal .modal-header .modal-title small,
.bkh-modal .modal-header .modal-title .who{color:rgba(255,255,255,.75);font-weight:500;font-size:13px;}
.bkh-modal .modal-header .close{color:#fff;opacity:.85;text-shadow:none;font-size:24px;margin-top:2px;}
.bkh-modal .modal-header .close:hover{opacity:1;}
.bkh-modal .modal-body{padding:22px;}
.bkh-modal .modal-footer{border-top:1px solid var(--bkh-border);padding:14px 22px;}

/* styled file fields */
.bkh-filefield{margin-bottom:16px;}
.bkh-filefield > label{display:flex;align-items:center;gap:8px;font-weight:600;color:#374151;font-size:13px;margin-bottom:7px;}
.bkh-filefield > label i{color:var(--bkh-primary);}
.bkh-filefield > label .req{color:var(--bkh-danger);}
.bkh-filefield > label .hint{margin-left:auto;font-weight:500;font-size:11px;color:var(--bkh-muted);text-transform:uppercase;letter-spacing:.03em;}
.bkh-filefield input[type="file"]{
  width:100%;border:1.5px dashed #cbd5e1;border-radius:11px;padding:11px 13px;background:#f8fafc;
  font-size:13px;color:var(--bkh-muted);cursor:pointer;transition:all .15s ease;height:auto;
}
.bkh-filefield input[type="file"]:hover{border-color:var(--bkh-primary);background:var(--bkh-primary-soft);}
.bkh-filefield input[type="file"]::file-selector-button,
.bkh-filefield input[type="file"]::-webkit-file-upload-button{
  border:0;background:var(--bkh-primary);color:#fff;padding:8px 15px;border-radius:8px;
  font-weight:600;font-size:12.5px;margin-right:13px;cursor:pointer;transition:background .15s ease;
}
.bkh-filefield input[type="file"]:hover::file-selector-button,
.bkh-filefield input[type="file"]:hover::-webkit-file-upload-button{background:var(--bkh-primary-700);}

/* ---- Modals ----
   Legacy INSPINIA style.css forces EVERY .modal-header to Material teal
   (#009688 !important) with white bold text. We re-assert the BKH navy
   header here with !important so all modals — branded (.bkh-modal /
   .ep-modal) or plain — share the one common scheme. */
.modal-content{border:0;border-radius:var(--bkh-radius);box-shadow:var(--bkh-shadow-lg);overflow:hidden;}
.modal-header{
  background:linear-gradient(135deg,var(--bkh-primary),var(--bkh-primary-700))!important;
  color:#fff!important;border-bottom:0!important;padding:18px 22px;
}
.modal-header .modal-title,
.modal-header .modal-title i{color:#fff!important;font-weight:600;}
.modal-header .modal-title small,
.modal-header .modal-title .who{color:rgba(255,255,255,.75)!important;font-weight:500;}
.modal-header .close{color:#fff!important;opacity:.85;text-shadow:none;font-weight:400;}
.modal-header .close:hover{opacity:1;}
.modal-body{padding:22px;}
.modal-footer{border-top:1px solid var(--bkh-border);padding:16px 22px;}
.modal-backdrop.in{opacity:.5;}

/* DataTables export buttons — legacy style.css paints .buttons-excel teal */
.dt-button.buttons-excel,.dt-button.buttons-html5,.dt-button.buttons-print{
  background:var(--bkh-primary)!important;border-color:var(--bkh-primary)!important;color:#fff!important;
}

/* ---- Pagination ---- */
.pagination>li>a,.pagination>li>span{color:var(--bkh-primary);border-color:var(--bkh-border);}
.pagination>li:first-child>a,.pagination>li:first-child>span{border-radius:8px 0 0 8px;}
.pagination>li:last-child>a,.pagination>li:last-child>span{border-radius:0 8px 8px 0;}
/* !important beats legacy style.css .pagination>.active{#009688 !important} */
.pagination>.active>a,.pagination>.active>span,.pagination>.active>a:hover{
  background:var(--bkh-primary)!important;border-color:var(--bkh-primary)!important;color:#fff!important;
}

/* =====================================================================
   PLUGIN RE-SKIN  (DataTables, pickers, summernote, sweetalert)
   ===================================================================== */

/* DataTables wrapper controls */
.dataTables_wrapper{padding:0;}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter{margin-bottom:14px;font-size:13px;color:var(--bkh-muted);}
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select{
  border:1px solid var(--bkh-border);border-radius:9px;padding:7px 11px;margin-left:8px;
  box-shadow:none;outline:none;background:#fff;
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus{
  border-color:var(--bkh-primary);box-shadow:0 0 0 3px var(--bkh-primary-soft-2);
}
.dataTables_wrapper .dataTables_info{padding-top:14px;font-size:12.5px;color:var(--bkh-muted);}
.dataTables_wrapper .dataTables_paginate .paginate_button{
  border-radius:8px!important;border:1px solid var(--bkh-border)!important;
  padding:6px 12px!important;margin-left:4px;color:var(--bkh-text)!important;background:#fff!important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{
  background:var(--bkh-primary)!important;border-color:var(--bkh-primary)!important;color:#fff!important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover{
  background:var(--bkh-primary-soft)!important;color:var(--bkh-primary)!important;border-color:var(--bkh-primary)!important;
}
table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc{cursor:pointer;}
.html5buttons{margin-bottom:12px;}
.html5buttons:empty,.DTTT{display:none!important;}

/* BKH reusable DataTable toolbar (head / foot rows) */
.bkh-dt-head{
  display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;
  margin-bottom:18px;padding:14px 16px;
  background:#f8fafc;border:1px solid var(--bkh-border);border-radius:12px;
}
.bkh-dt-head-l{display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
.bkh-dt-head-r{display:flex;align-items:center;}
.bkh-dt-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px;}
.bkh-dt-foot-l{color:var(--bkh-muted);font-size:13px;font-weight:500;}
.bkh-dt-head .dataTables_filter,.bkh-dt-head .dataTables_length,
.bkh-dt-foot .dataTables_info,.bkh-dt-foot .dataTables_paginate{margin:0;padding:0;}

/* length selector */
.bkh-dt-head .dataTables_length label{margin:0;font-weight:500;color:var(--bkh-muted);font-size:13px;display:flex;align-items:center;gap:8px;}
.bkh-dt-head .dataTables_length select{
  height:38px;border:1px solid var(--bkh-border);border-radius:9px;padding:0 30px 0 12px;background:#fff;
  font-weight:600;color:var(--bkh-text);cursor:pointer;
}
/* search box */
.bkh-dt-head .dataTables_filter label{margin:0;display:flex;align-items:center;}
.bkh-dt-head .dataTables_filter input{
  height:38px;min-width:230px;margin:0;border:1px solid var(--bkh-border);border-radius:9px;
  padding:0 14px 0 36px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 13px center;
}
.bkh-dt-head .dataTables_filter input:focus{border-color:var(--bkh-primary);box-shadow:0 0 0 3px var(--bkh-primary-soft-2);outline:none;}

/* export buttons */
.dt-buttons{display:inline-flex;gap:7px;flex-wrap:wrap;}
.dt-button.dt-btn,button.dt-btn,a.dt-btn{
  display:inline-flex;align-items:center;gap:6px;height:38px;
  background:#fff!important;border:1px solid var(--bkh-border)!important;border-radius:9px!important;
  color:#475569!important;padding:0 13px!important;font-weight:600;font-size:12.5px!important;
  box-shadow:none!important;margin:0!important;line-height:1;transition:all .15s ease;
}
.dt-button.dt-btn:hover,button.dt-btn:hover{
  background:var(--bkh-primary)!important;color:#fff!important;border-color:var(--bkh-primary)!important;
  transform:translateY(-1px);box-shadow:0 6px 14px rgba(31,78,102,.18)!important;
}
.dt-btn i{font-size:13px;}

/* pagination pills */
.bkh-dt-foot .dataTables_paginate{display:inline-flex;gap:6px;align-items:center;}
.dataTables_paginate .paginate_button{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-width:38px;height:38px;padding:0 10px!important;margin:0!important;
  border:1px solid var(--bkh-border)!important;border-radius:10px!important;
  background:#fff!important;color:var(--bkh-text)!important;font-weight:600;font-size:13px;
  cursor:pointer;transition:all .15s ease;
}
.dataTables_paginate .paginate_button:hover{
  background:var(--bkh-primary-soft)!important;border-color:var(--bkh-primary)!important;color:var(--bkh-primary)!important;
}
.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover{
  background:var(--bkh-primary)!important;border-color:var(--bkh-primary)!important;color:#fff!important;
}
.dataTables_paginate .paginate_button.disabled,
.dataTables_paginate .paginate_button.disabled:hover{
  opacity:.4;cursor:not-allowed;background:#fff!important;color:var(--bkh-muted)!important;border-color:var(--bkh-border)!important;
}
.dataTables_paginate .ellipsis{padding:0 6px;color:var(--bkh-muted);}

@media (max-width:680px){
  .bkh-dt-head,.bkh-dt-foot{justify-content:center;}
  .bkh-dt-head-l,.bkh-dt-head-r{width:100%;justify-content:center;}
  .bkh-dt-head .dataTables_filter input{width:100%;min-width:0;}
}
.html5buttons .dt-button{
  background:#fff!important;border:1px solid var(--bkh-border)!important;border-radius:8px!important;
  color:var(--bkh-text)!important;padding:6px 12px!important;margin-right:6px;font-weight:600;font-size:12.5px;
}
.html5buttons .dt-button:hover{background:var(--bkh-primary-soft)!important;color:var(--bkh-primary)!important;}

/* DataTables vertical-scroll body — the "scroll inside the tab" that must work.
   Make the scroll container actually scroll and show a visible scrollbar. */
.dataTables_scroll{border-radius:var(--bkh-radius-sm);}
.dataTables_scrollBody{
  overflow-y:auto!important;-webkit-overflow-scrolling:touch;
  border-bottom:1px solid var(--bkh-border);
}
.dataTables_scrollBody::-webkit-scrollbar{width:10px;height:10px;}
.dataTables_scrollBody::-webkit-scrollbar-track{background:#f1f5f9;border-radius:9999px;}
.dataTables_scrollBody::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:9999px;border:2px solid #f1f5f9;}
.dataTables_scrollBody::-webkit-scrollbar-thumb:hover{background:#94a3b8;}
.dataTables_scrollHead{overflow:visible!important;}
/* keep DataTables in hidden tabs from collapsing width */
.tab-content>.tab-pane .dataTables_scrollHeadInner,
.tab-content>.tab-pane table.dataTable{width:100%!important;}

/* date range / date / clock pickers */
.daterangepicker,.datepicker.dropdown-menu{
  border:1px solid var(--bkh-border)!important;border-radius:12px!important;box-shadow:var(--bkh-shadow-lg)!important;
}
.daterangepicker td.active,.daterangepicker td.active:hover,
.datepicker table tr td.active,.datepicker table tr td.active:hover,
.datepicker table tr td.active.active{
  background:var(--bkh-primary)!important;border-color:var(--bkh-primary)!important;color:#fff!important;
}
.datepicker table tr td.today{background:var(--bkh-primary-soft)!important;color:var(--bkh-primary)!important;}
.daterangepicker td.in-range{background:var(--bkh-primary-soft)!important;color:var(--bkh-text)!important;}
.clockpicker-popover .clockpicker-tick.active,
.clockpicker-canvas-bg{background:var(--bkh-primary-soft);}
.clockpicker-canvas line{stroke:var(--bkh-primary);}
.clockpicker-canvas-fg,.clockpicker-canvas-bearing{fill:var(--bkh-primary);}

/* summernote */
.note-editor.note-frame{border:1px solid var(--bkh-border);border-radius:var(--bkh-radius-sm);overflow:hidden;}
.note-toolbar,.note-editor .panel-heading.note-toolbar{background:#f8fafc;border-bottom:1px solid var(--bkh-border);}

/* sweetalert */
.sweet-alert{border-radius:var(--bkh-radius)!important;box-shadow:var(--bkh-shadow-lg)!important;font-family:var(--bkh-font)!important;}
.sweet-alert button.confirm{background:var(--bkh-primary)!important;border-radius:9px!important;font-weight:600;}
.sweet-alert button.cancel{border-radius:9px!important;font-weight:600;}

/* misc INSPINIA helpers that may appear */
.gray-bg,.white-bg{background:transparent!important;}
.border-bottom{border-bottom:0!important;}
.full-height-scroll{height:auto;overflow:visible;}
.full-width{width:100%!important;}
.block{display:block!important;}

/* INSPINIA contact-box (used on the second-login "online employees" grid) */
.contact-box{
  background:var(--bkh-card);border:1px solid var(--bkh-border);border-radius:var(--bkh-radius);
  box-shadow:var(--bkh-shadow);padding:20px;margin-bottom:20px;
}
.contact-box.center-version{text-align:center;}
.contact-box .img-circle{width:74px;height:74px;object-fit:cover;border:3px solid #fff;box-shadow:var(--bkh-shadow);margin-bottom:10px;}
/* Legacy style.css floats the photo <img> left at 60px; force photos to render
   exactly like the centered initials circle so every card looks identical. */
.contact-box.center-version > a img.img-circle{width:74px;height:74px;float:none;display:block;margin:0 auto 10px;}
.contact-box h3{font-size:15px;margin:6px 0;}
.contact-box-footer{margin-top:10px;}
.feed-element{border:0;}

/* =====================================================================
   CONTENT COMPONENTS (dashboard stat cards, employee cards, page head)
   ===================================================================== */
.bkh-page-head{margin:0 0 22px;position:relative;}
.bkh-page-head .bkh-page-actions{position:absolute;top:0;right:0;}
@media(max-width:600px){.bkh-page-head .bkh-page-actions{position:static;margin-top:12px;}}
.bkh-page-head h1{font-size:23px;font-weight:700;margin:0 0 4px;color:var(--bkh-text);}
.bkh-page-head .bkh-crumbs{font-size:13px;color:var(--bkh-muted);}
.bkh-page-head .bkh-crumbs a{color:var(--bkh-muted);}
.bkh-page-head .bkh-crumbs a:hover{color:var(--bkh-primary);}
.bkh-page-head .bkh-crumbs .sep{margin:0 7px;color:#cbd5e1;}

.bkh-section-title{font-size:18px;font-weight:700;color:var(--bkh-text);margin:8px 0 16px;display:flex;align-items:center;gap:10px;}
.bkh-section-title i{color:var(--bkh-primary);}

/* stat cards */
.bkh-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px;}
@media (max-width:1200px){.bkh-stats{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.bkh-stats{grid-template-columns:1fr;}}
.bkh-stat{
  display:flex;align-items:center;gap:16px;padding:20px;
  background:var(--bkh-card);border:1px solid var(--bkh-border);border-radius:var(--bkh-radius);
  box-shadow:var(--bkh-shadow);text-decoration:none;color:var(--bkh-text);
  transition:transform .18s ease,box-shadow .18s ease;
}
.bkh-stat:hover{transform:translateY(-3px);box-shadow:var(--bkh-shadow-lg);color:var(--bkh-text);}
.bkh-stat__icon{
  width:56px;height:56px;border-radius:15px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;font-size:23px;
}
.bkh-stat__body{min-width:0;flex:1 1 auto;}
.bkh-stat__label{display:block;color:var(--bkh-muted);font-size:13px;font-weight:500;margin-bottom:3px;line-height:1.25;}
.bkh-stat__value{font-size:27px;font-weight:700;color:var(--bkh-text);line-height:1;}
.bkh-stat__value small{font-size:14px;font-weight:600;color:var(--bkh-muted);margin-left:4px;}
.bkh-stat.is-primary .bkh-stat__icon{background:rgba(31,78,102,.12);color:var(--bkh-primary);}
.bkh-stat.is-success .bkh-stat__icon{background:rgba(45,112,72,.12);color:var(--bkh-success);}
.bkh-stat.is-info    .bkh-stat__icon{background:rgba(14,165,233,.12);color:var(--bkh-info);}
.bkh-stat.is-warning .bkh-stat__icon{background:rgba(194,104,0,.12);color:var(--bkh-warning);}

/* employee cards (online employees grid) */
.bkh-branch-title{
  font-size:13px;font-weight:700;color:var(--bkh-primary);text-transform:uppercase;
  letter-spacing:.05em;margin:22px 0 14px;display:flex;align-items:center;gap:9px;
}
.bkh-branch-title:before{content:'';width:6px;height:18px;border-radius:3px;background:var(--bkh-primary);}
.bkh-emp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;margin-bottom:8px;}
.bkh-emp-card{
  background:var(--bkh-card);border:1px solid var(--bkh-border);border-radius:var(--bkh-radius);
  box-shadow:var(--bkh-shadow);padding:20px 16px;text-align:center;
  display:flex;flex-direction:column;align-items:center;gap:8px;
  transition:transform .18s ease,box-shadow .18s ease;
}
.bkh-emp-card:hover{transform:translateY(-3px);box-shadow:var(--bkh-shadow-lg);}
.bkh-emp-card__ava{width:66px;height:66px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:var(--bkh-shadow);}
.bkh-emp-card__name{font-weight:600;font-size:14.5px;color:var(--bkh-text);}
.bkh-emp-card__meta{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:center;margin-top:2px;}
.bkh-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:9999px;font-size:12px;font-weight:600;}
.bkh-pill.is-time{background:rgba(194,104,0,.12);color:var(--bkh-warning);}
.bkh-pill.is-online{background:rgba(45,112,72,.12);color:var(--bkh-success);}

/* avatar thumbnails inside data tables */
.client-avatar img,td.client-avatar img{width:42px;height:42px;border-radius:50%;object-fit:cover;border:1px solid var(--bkh-border);}
.bkh-row-ava{width:40px;height:40px;border-radius:50%;object-fit:cover;border:1px solid var(--bkh-border);flex:0 0 auto;}

/* ---- Card-row table (modern, opt-in via .bkh-cards) ---- */
table.dataTable.bkh-cards,table.bkh-cards{border-collapse:separate!important;border-spacing:0 10px;}
table.bkh-cards>thead>tr>th{
  background:transparent!important;border:0!important;color:#94a3b8;font-size:11px;
  padding:2px 16px 6px;
}
table.bkh-cards>tbody>tr{transition:transform .15s ease,box-shadow .15s ease;}
table.bkh-cards>tbody>tr>td{
  background:#fff;border-top:1px solid var(--bkh-border);border-bottom:1px solid var(--bkh-border);
  padding:15px 16px;vertical-align:middle;
}
table.bkh-cards>tbody>tr>td:first-child{
  border-left:1px solid var(--bkh-border);border-top-left-radius:14px;border-bottom-left-radius:14px;
}
table.bkh-cards>tbody>tr>td:last-child{
  border-right:1px solid var(--bkh-border);border-top-right-radius:14px;border-bottom-right-radius:14px;
}
table.bkh-cards>tbody>tr:hover>td{background:#fbfcfd;border-color:#cfe0ea;}
table.bkh-cards>tbody>tr:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(16,24,40,.08);}
table.bkh-cards>tbody>tr:hover>td:first-child{box-shadow:-1px 0 0 #cfe0ea;}
.bkh-row-ava{width:46px;height:46px;}

/* ---- Modern soft badge with status dot ---- */
.bkh-badge{display:inline-flex;align-items:center;gap:7px;padding:5px 12px;border-radius:9999px;
  font-size:11.5px;font-weight:600;line-height:1;letter-spacing:.01em;white-space:nowrap;}
.bkh-badge:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 auto;}
.bkh-badge.is-green{background:rgba(45,112,72,.12);color:#2d7048;}
.bkh-badge.is-red{background:rgba(204,51,76,.12);color:#cc334c;}
.bkh-badge.is-amber{background:rgba(194,104,0,.13);color:#b5610a;}
.bkh-badge.is-blue{background:rgba(31,78,102,.12);color:#1f4e66;}
.bkh-badge.is-gray{background:#eef2f6;color:#64748b;}
.bkh-badge.no-dot:before{display:none;}

/* table filter bar */
.bkh-filters{
  display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;
  margin-bottom:18px;padding:14px 16px;background:#f8fafc;border:1px solid var(--bkh-border);border-radius:12px;
}
.bkh-filter{display:flex;flex-direction:column;gap:5px;}
.bkh-filter label{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--bkh-muted);font-weight:600;margin:0;}
.bkh-filter select{
  height:38px;border:1px solid var(--bkh-border);border-radius:9px;padding:0 30px 0 12px;background:#fff;
  font-weight:500;color:var(--bkh-text);min-width:170px;cursor:pointer;
}
.bkh-filter select:focus{border-color:var(--bkh-primary);box-shadow:0 0 0 3px var(--bkh-primary-soft-2);outline:none;}
.bkh-filters__clear{margin-left:auto;align-self:flex-end;}

/* tabbed panel card (admin dashboard) */
.clients-list{
  background:var(--bkh-card);border:1px solid var(--bkh-border);border-radius:var(--bkh-radius);
  box-shadow:var(--bkh-shadow);overflow:hidden;
}
.clients-list .nav-tabs{padding:4px 14px 0;background:#fafbfc;}
.clients-list .tab-content{padding:18px;}
.clients-list .ibox-content{padding:0;border:0;background:transparent;}

/* two-column form grid */
.bkh-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px;}
.bkh-form-grid .full{grid-column:1 / -1;}
@media (max-width:640px){.bkh-form-grid{grid-template-columns:1fr;}}

/* per-day working hours editor */
.bkh-hours{border:1px solid var(--bkh-border);border-radius:12px;overflow:hidden;background:#fff;}
.bkh-hours__head{
  display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;
  padding:12px 16px;background:#f8fafc;border-bottom:1px solid var(--bkh-border);
}
.bkh-hours__head b{font-size:14px;color:var(--bkh-text);}
.bkh-hours-row{
  display:grid;grid-template-columns:120px 1fr 1fr auto auto;gap:16px;align-items:end;
  padding:14px 16px;border-bottom:1px solid #f1f5f9;
}
.bkh-hours-row:last-child{border-bottom:0;}
.bkh-hours-day{font-weight:600;color:var(--bkh-text);align-self:center;}
.bkh-hours-field{display:flex;flex-direction:column;gap:5px;}
.bkh-hours-field label{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--bkh-muted);margin:0;font-weight:600;}
.bkh-hours-field input[type="time"]{height:40px;}
.bkh-hours-toggle{display:flex;flex-direction:column;gap:5px;align-self:center;}
.bkh-hours-toggle > span.bkh-toggle-cap{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--bkh-muted);font-weight:600;}
.bkh-hours-row.is-closed{background:#fafbfc;}
.bkh-hours-row.is-closed .bkh-hours-field{opacity:.4;pointer-events:none;}
.bkh-hours-row.is-closed .bkh-switch--night{opacity:.4;pointer-events:none;}

/* Reusable toggle switch (replaces bare checkboxes) */
.bkh-switch{display:inline-flex;align-items:center;gap:9px;cursor:pointer;margin:0;font-weight:600;font-size:13px;color:var(--bkh-text);white-space:nowrap;user-select:none;}
.bkh-switch input{position:absolute;opacity:0;width:1px;height:1px;}
.bkh-switch__slider{position:relative;width:42px;height:24px;border-radius:999px;background:#cbd5e1;transition:background .18s ease;flex:none;}
.bkh-switch__slider::before{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .18s ease;box-shadow:0 1px 2px rgba(16,24,40,.25);}
.bkh-switch input:checked + .bkh-switch__slider{background:var(--bkh-primary);}
.bkh-switch input:checked + .bkh-switch__slider::before{transform:translateX(18px);}
.bkh-switch input:focus-visible + .bkh-switch__slider{box-shadow:0 0 0 3px var(--bkh-primary-soft);}
.bkh-switch--night input:checked + .bkh-switch__slider{background:#5b6ee0;}
.bkh-switch--danger input:checked + .bkh-switch__slider{background:var(--bkh-danger);}
.bkh-switch__txt{display:inline-flex;align-items:center;gap:5px;}

/* Night supplement config card */
.bkh-night{border:1px solid var(--bkh-border);border-radius:12px;background:linear-gradient(180deg,#f7f8ff 0%,#fff 60%);padding:16px;}
.bkh-night-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:16px;align-items:end;}
.bkh-night-grid .form-group{margin-bottom:0;}
.bkh-night-window{display:flex;align-items:center;gap:8px;}
.bkh-night-window input[type="time"]{height:40px;}
.bkh-night-window .sep{color:var(--bkh-muted);font-weight:600;}
.bkh-night-hint{margin-top:12px;font-size:12px;color:var(--bkh-muted);display:flex;align-items:flex-start;gap:7px;}
.bkh-night-hint i{color:#5b6ee0;margin-top:1px;}

@media (max-width:680px){
  .bkh-hours-row{grid-template-columns:1fr 1fr;gap:12px;}
  .bkh-hours-day{grid-column:1 / -1;}
  .bkh-hours-toggle{grid-column:auto;}
  .bkh-night-grid{grid-template-columns:1fr;}
}

/* simple centered card (e.g. the admin second-login form) */
.bkh-card{
  background:var(--bkh-card);border:1px solid var(--bkh-border);border-radius:var(--bkh-radius);
  box-shadow:var(--bkh-shadow);padding:24px;
}
.bkh-login-card{max-width:420px;margin:6px auto 8px;}

/* =====================================================================
   AUTH / LOGIN screens
   ===================================================================== */
.bkh-auth{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  padding:24px;
  background:
    radial-gradient(1200px 600px at 10% -10%,rgba(255,255,255,.10),transparent),
    linear-gradient(160deg,var(--bkh-primary) 0%,var(--bkh-primary-700) 100%);
}
.bkh-auth__card{
  width:100%;max-width:420px;background:#fff;border-radius:18px;
  box-shadow:0 24px 60px rgba(0,0,0,.28);
  padding:38px 34px;animation:bkhAuthIn .4s ease both;
}
@keyframes bkhAuthIn{from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:none;}}
.bkh-auth__logo{display:flex;justify-content:center;margin-bottom:10px;}
.bkh-auth__logo img{height:74px;width:auto;object-fit:contain;}
.bkh-auth__title{text-align:center;font-size:20px;font-weight:700;margin:6px 0 2px;color:var(--bkh-text);}
.bkh-auth__sub{text-align:center;color:var(--bkh-muted);font-size:13.5px;margin:0 0 22px;}
.bkh-auth .form-group{margin-bottom:16px;}
.bkh-auth .form-control{padding:12px 14px;border-radius:11px;}
.bkh-auth .btn-primary{width:100%;padding:12px;font-size:15px;border-radius:11px;margin-top:4px;}
.bkh-auth .error,.bkh-auth .text-danger{color:var(--bkh-danger);font-size:12.5px;}
.bkh-auth__foot{text-align:center;color:var(--bkh-muted);font-size:12px;margin-top:20px;}
.bkh-input-icon{position:relative;}
.bkh-input-icon i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:15px;}
.bkh-input-icon .form-control{padding-left:40px;}

/* =====================================================================
   PRINT — keep print/PDF views clean
   ===================================================================== */
@media print{
  .bkh-sidebar,.bkh-topbar,.bkh-footer,.bkh-overlay{display:none!important;}
  .bkh-main{margin-left:0!important;}
  .bkh-content{padding:0!important;}
}
