/* assets/css/app.css (Phase 5)
   Brand: Black / White / Primary Blue #014C97
   Goal: clean, modern, responsive + reusable components
*/

:root{
  --primary:#014C97;
  --primary-ink:#ffffff;
  --primary-soft:rgba(1,76,151,.10);
  --ink:#0b0f14;
  --muted:#5b6678;
  --bg:#f6f8fc;
  --card:#ffffff;
  --border:rgba(15,23,42,.10);
  --shadow:0 10px 30px rgba(2,6,23,.08);
  --radius:14px;
  --radius-sm:10px;
  --ring:0 0 0 4px rgba(1,76,151,.18);
  --mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  --sans:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:
    radial-gradient(700px 260px at 15% 0%, rgba(1,76,151,.10) 0%, rgba(1,76,151,0) 60%),
    radial-gradient(520px 200px at 85% 10%, rgba(1,76,151,.08) 0%, rgba(1,76,151,0) 65%),
    var(--bg);
}

a{color:inherit}
a.link{color:var(--primary); text-decoration:none; font-weight:800}
a.link:hover{text-decoration:underline}

.container{
  max-width:1180px;
  margin:18px auto 40px;
  padding:0 16px;
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:30;
  background:linear-gradient(180deg, #0b0f14 0%, #0c1118 100%);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar-inner{
  max-width:1180px;
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  gap:12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.2px;
}
.brand-mark{
  width:12px;height:12px;border-radius:4px;
  background:var(--primary);
  box-shadow:0 0 0 4px rgba(1,76,151,.16);
}
.brand-name{font-size:15px; white-space:nowrap}
.nav{
  display:flex;
  gap:6px;
  margin-left:6px;
  flex-wrap:wrap;
}
.nav-link{
  color:rgba(255,255,255,.86);
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  padding:8px 10px;
  border-radius:10px;
  transition:transform .15s ease, background .15s ease;
}
.nav-link:hover{
  background:rgba(255,255,255,.08);
  transform:translateY(-1px);
}
.topbar-right{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
}
.top-search{
  position:relative;
  display:flex;
  align-items:center;
}
.top-search input{
  width:min(360px, 38vw);
  padding:9px 10px 9px 34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  outline:none;
  transition:box-shadow .15s ease, border .15s ease;
}
.top-search input::placeholder{color:rgba(255,255,255,.65)}
.top-search input:focus{
  border-color:rgba(255,255,255,.22);
  box-shadow:0 0 0 4px rgba(1,76,151,.28);
}
.search-ico{
  position:absolute;
  left:10px;
  color:rgba(255,255,255,.75);
  display:flex;
  align-items:center;
}
.icon-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  text-decoration:none;
  transition:transform .15s ease, background .15s ease, border .15s ease;
}
.icon-btn:hover{background:rgba(255,255,255,.10); transform:translateY(-1px)}
.badge-dot{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:var(--primary);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:900;
  border:2px solid #0b0f14;
}
.userbox{
  display:flex;
  align-items:center;
  gap:10px;
  padding-left:6px;
  border-left:1px solid rgba(255,255,255,.10);
}
.user-role{
  color:rgba(255,255,255,.75);
  font-size:12px;
  font-weight:800;
  max-width:140px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Layout helpers */
.page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:6px 0 14px;
}
.h2{margin:0 0 4px; font-size:20px; letter-spacing:.1px}
.muted{color:var(--muted); font-size:13px}
.actions{display:flex; gap:8px; flex-wrap:wrap}

/* Card/box */
.card, .box{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:0 1px 0 rgba(2,6,23,.03);
}

/* Inputs */
label{display:block; font-size:13px; font-weight:800; color:#273142; margin-bottom:6px}
input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  outline:none;
  background:#fff;
  transition:border .15s ease, box-shadow .15s ease, transform .15s ease;
}
input:focus, select:focus, textarea:focus{
  border-color:rgba(1,76,151,.35);
  box-shadow:var(--ring);
}
textarea{min-height:110px; resize:vertical}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
  text-decoration:none;
  user-select:none;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border .15s ease;
}
.btn:active{transform:translateY(1px)}
.btn.primary{
  background:var(--primary);
  color:var(--primary-ink);
  box-shadow:0 8px 18px rgba(1,76,151,.22);
}
.btn.primary:hover{box-shadow:0 10px 22px rgba(1,76,151,.28)}
.btn.ghost{
  background:#fff;
  color:#1a2433;
  border-color:var(--border);
}
.btn.ghost:hover{border-color:rgba(1,76,151,.30); box-shadow:0 10px 24px rgba(2,6,23,.06)}
.btn.danger{
  background:#b42318;
  color:#fff;
}
.btn.sm{padding:7px 10px; font-size:12px; border-radius:10px}

/* Chips */
.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(1,76,151,.14);
  background:rgba(1,76,151,.08);
  color:#0d2e5d;
  text-decoration:none;
  font-weight:900;
  font-size:12px;
  transition:transform .15s ease, background .15s ease, border .15s ease;
}
.chip:hover{transform:translateY(-1px); border-color:rgba(1,76,151,.25)}
.chip.active{background:var(--primary); border-color:rgba(1,76,151,.55); color:#fff}
.chip.gray{background:#f2f4f7; border-color:rgba(15,23,42,.12); color:#344054}

/* Alerts */
.alert{
  border-radius:14px;
  padding:12px 14px;
  border:1px solid transparent;
  margin:10px 0 14px;
  font-weight:800;
}
.alert.ok{background:#ecfdf3; border-color:#abefc6; color:#0f5132}
.alert.err{background:#fef3f2; border-color:#fecdca; color:#b42318}
.alert.info{background:#eff8ff; border-color:#b2ddff; color:#014C97}

/* Tables */
.table-wrap{overflow-x:auto;overflow-y:visible}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:860px;
}
.table th, .table td{
  padding:10px 10px;
  border-bottom:1px solid rgba(15,23,42,.08);
  text-align:left;
  vertical-align:top;
  font-size:13px;
}
.table th{
  position:sticky;
  top:0;
  background:#fbfcff;
  font-size:12px;
  color:#465468;
  font-weight:900;
  z-index:1;
}
.table tr:hover td{background:rgba(1,76,151,.035)}
.table td .sub{display:block; font-size:12px; color:var(--muted); margin-top:3px}

/* Badges */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  line-height:1.1;
  border:1px solid transparent;
  white-space:nowrap;
}
.badge.ok{background:#ecfdf3; border-color:#abefc6; color:#067647}
.badge.bad{background:#fef3f2; border-color:#fecdca; color:#b42318}
.badge.warn{background:#fffaeb; border-color:#fedf89; color:#b54708}
.badge.info{background:#eff8ff; border-color:#b2ddff; color:#014C97}
.badge.muted{background:#f2f4f7; border-color:#eaecf0; color:#344054}

/* Grid utility */
.grid{display:grid; gap:12px}
.grid-3{grid-template-columns:repeat(3, minmax(0, 1fr))}
.grid-6{grid-template-columns:repeat(6, minmax(0, 1fr))}
.col-span-2{grid-column:span 2}
@media (max-width: 980px){
  .grid-6{grid-template-columns:1fr 1fr}
  .col-span-2{grid-column:span 2}
  .top-search input{width:min(52vw, 360px)}
}
@media (max-width: 640px){
  .grid-3{grid-template-columns:1fr}
  .grid-6{grid-template-columns:1fr}
  .col-span-2{grid-column:span 1}
  .nav{display:none}
  .top-search input{width:44vw}
}

/* Notifications */
.filters{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap}
.filter-right select{min-width:220px}
.group-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:10px}
.nlist{display:flex; flex-direction:column; gap:10px}
.nitem{
  display:grid;
  grid-template-columns:160px 1fr auto;
  gap:12px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
}
.nitem.unread{
  border-color:rgba(1,76,151,.25);
  background:linear-gradient(90deg, rgba(1,76,151,.06) 0%, rgba(1,76,151,0) 60%);
}
.nmeta{display:flex; flex-direction:column; gap:4px}
.ntype{font-weight:900; font-size:12px; color:#22304a}
.nbody{font-weight:800; font-size:13px; display:flex; align-items:center}
.nactions{display:flex; align-items:center; justify-content:flex-end}
@media (max-width: 780px){
  .nitem{grid-template-columns:1fr; gap:8px}
  .nactions{justify-content:flex-start}
}

/* Modal (Phase 3) */
.modal{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.62);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:60;
}
.modal.show{display:flex}
.modal .panel{
  width:min(1100px, 100%);
  max-height:88vh;
  overflow:hidden;
  background:#fff;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
}
.modal .panel .head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(15,23,42,.08);
}
.modal .panel .body{
  padding:0;
  overflow:auto;
  background:#fff;
}
.modal iframe{width:100%; height:78vh; border:0}
.modal img{max-width:100%; height:auto; display:block; margin:0 auto}

/* Dropzone */
.dropzone{
  border:1.5px dashed rgba(1,76,151,.28);
  background:rgba(1,76,151,.05);
  border-radius:16px;
  padding:12px;
}
.dropzone.drag{
  background:rgba(1,76,151,.09);
  border-color:rgba(1,76,151,.45);
}
.dropzone .dz-row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.dropzone .dz-file{display:none}

/* Toasts */
.toast-wrap{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:80;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.toast-wrap.toast-tl{left:18px;top:18px;right:auto;bottom:auto}
.toast{
  min-width:260px;
  max-width:360px;
  background:#0b0f14;
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:12px 12px;
  box-shadow:0 16px 40px rgba(2,6,23,.28);
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.toast.toast-small{min-width:200px;max-width:320px}
.toast .t-title{font-weight:900; font-size:13px}
.toast .t-body{font-weight:700; font-size:13px; color:rgba(255,255,255,.85)}
.toast .t-x{
  margin-left:auto;
  background:transparent;
  border:0;
  color:rgba(255,255,255,.80);
  cursor:pointer;
  font-size:16px;
  line-height:1;
}

/* Brand logo */
.brand-logo{
  width:34px;
  height:34px;
  border-radius:10px;
  object-fit:cover;
  background:#fff;
  box-shadow:0 1px 0 rgba(2,6,23,.12);
}

/* Nav tooltips */
.nav-link[data-tip]{position:relative}
.nav-link[data-tip]::after{
  content:attr(data-tip);
  position:absolute;
  left:0;
  top:calc(100% + 10px);
  width:280px;
  max-width:min(320px, 80vw);
  padding:10px 12px;
  border-radius:12px;
  background:#0b0f14;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 16px 40px rgba(2,6,23,.28);
  color:rgba(255,255,255,.92);
  font-weight:800;
  font-size:12px;
  line-height:1.35;
  white-space:pre-line;
  opacity:0;
  transform:translateY(-4px);
  pointer-events:none;
  transition:opacity .14s ease, transform .14s ease;
  z-index:90;
}
.nav-link[data-tip]::before{
  content:'';
  position:absolute;
  left:14px;
  top:calc(100% + 4px);
  width:10px;
  height:10px;
  transform:rotate(45deg);
  background:#0b0f14;
  border-left:1px solid rgba(255,255,255,.10);
  border-top:1px solid rgba(255,255,255,.10);
  opacity:0;
  transition:opacity .14s ease;
  z-index:91;
}
.nav-link[data-tip]:hover::after{
  opacity:1;
  transform:translateY(0);
}
.nav-link[data-tip]:hover::before{
  opacity:1;
}

/* Disabled nav/tab (Coming soon) */
.nav-disabled,
.btn-disabled{
  filter: blur(.6px);
  opacity: .55;
  cursor: not-allowed;
}
.nav-disabled:hover,
.btn-disabled:hover{
  opacity: .65;
}

/* Tooltip helper (reuse same styling/behavior as header tooltips) */
.has-tip[data-tip]{position:relative;display:inline-flex;align-items:center;justify-content:center}
.has-tip[data-tip]::after{
  content:attr(data-tip);
  position:absolute;
  left:50%;
  top:calc(100% + 10px);
  width:280px;
  max-width:min(320px, 86vw);
  padding:10px 12px;
  border-radius:12px;
  background:#0b0f14;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 16px 40px rgba(2,6,23,.28);
  color:rgba(255,255,255,.92);
  font-weight:800;
  font-size:12px;
  line-height:1.35;
  white-space:pre-line;
  opacity:0;
  transform:translate(-50%,-4px);
  pointer-events:none;
  transition:opacity .14s ease, transform .14s ease;
  z-index:90;
}
.has-tip[data-tip]::before{
  content:'';
  position:absolute;
  left:50%;
  top:calc(100% + 4px);
  width:10px;
  height:10px;
  transform:translateX(-50%) rotate(45deg);
  background:#0b0f14;
  border-left:1px solid rgba(255,255,255,.10);
  border-top:1px solid rgba(255,255,255,.10);
  opacity:0;
  transition:opacity .14s ease;
  z-index:91;
}
.has-tip[data-tip]:hover::after{
  opacity:1;
  transform:translate(-50%,0);
}
.has-tip[data-tip]:hover::before{
  opacity:1;
}

/* Requests list tooltips (🔔 count / N/A): anchor from left edge + top layer */
.req-tip.has-tip[data-tip]::after{
  left:0;
  width:auto;
  max-width:min(320px, 86vw);
  white-space:normal;
  transform:translate(0,-4px);
  z-index:9999;
}
.req-tip.has-tip[data-tip]::before{
  left:14px;
  transform:rotate(45deg);
  z-index:10000;
}
.req-tip.has-tip[data-tip]:hover::after{transform:translate(0,0)}

/* Notifications dropdown */
.notif-overlay{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.46);
  backdrop-filter:blur(2px);
  z-index:60;
  opacity:0;
  transition:opacity .15s ease;
}
.notif-overlay.show{opacity:1}

.notif-panel{
  position:fixed;
  top:64px;
  right:18px;
  width:min(420px, calc(100vw - 24px));
  max-height:min(70vh, 520px);
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  z-index:70;
  overflow:hidden;
  opacity:0;
  transform:translateY(-6px);
  transition:opacity .15s ease, transform .15s ease;
}
.notif-panel.show{opacity:1; transform:translateY(0)}

.notif-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 12px;
  background:linear-gradient(180deg, rgba(1,76,151,.10) 0%, rgba(1,76,151,.04) 100%);
  border-bottom:1px solid var(--border);
}
.notif-title{font-weight:1000; font-size:14px}
.notif-sub{color:var(--muted); font-size:12px; font-weight:800; margin-top:2px}
.notif-body{padding:10px; overflow:auto; max-height:calc(70vh - 58px)}
.notif-empty{padding:14px; color:var(--muted); font-weight:800}

.notif-item{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(1,76,151,.10);
  background:rgba(1,76,151,.04);
  text-decoration:none;
  transition:transform .12s ease, background .12s ease, border .12s ease;
  margin-bottom:10px;
}
.notif-item:hover{
  background:rgba(1,76,151,.07);
  border-color:rgba(1,76,151,.18);
  transform:translateY(-1px);
}
.ni-title{font-weight:1000; font-size:13px; color:#0b0f14}
.ni-body{margin-top:4px; color:#334155; font-weight:800; font-size:12px; line-height:1.35}
.ni-time{margin-top:6px; color:var(--muted); font-weight:800; font-size:11px}


/* Per-request unread update badge (Requests list) */
.req-badge{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:999px;background:#b42318;color:#fff;font-size:11px;font-weight:900;line-height:1}
.req-na{display:inline-block;color:#98a2b3;font-weight:800;font-size:12px}

/* Tooltip for request notifications (count / N\/A) */
.req-tip{display:inline-flex;align-items:center;justify-content:center}

/* WhatsApp-style chat bubbles (Request Messages tab) */
.chat{display:flex;flex-direction:column;gap:6px}
.chat-row{display:flex;gap:8px;align-items:flex-end}
/* Robust alignment (works even if page direction changes) */
.chat-row .chat-bubble{margin-right:auto}
.chat-row.me .chat-bubble{margin-left:auto;margin-right:0}
.chat-row.other .chat-bubble{margin-left:0;margin-right:auto}
.chat-bubble{max-width:58%;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:7px 9px;color:#111827;white-space:pre-wrap;font-size:12.5px;line-height:1.36;text-align:left}
.chat-row.me .chat-bubble{background:rgba(9,81,153,.12);border-color:rgba(9,81,153,.20)}
.chat-meta{position:relative;display:flex;flex-direction:column;gap:1px;margin:0 0 4px;padding-right:22px}
.chat-meta .name{font-weight:900;font-size:12.5px}
.chat-meta .muted{font-size:11px;color:#667085}
.chat-when{margin-top:0}
.chat-del{position:absolute;top:0;right:0}
.chat-body{margin-top:2px}
.chat-attachments{margin-top:8px;display:flex;gap:8px;flex-wrap:wrap}

/* Small delete (X) button inside chat bubbles */
.xbtn{width:20px;height:20px;border-radius:999px;border:1px solid rgba(2,6,23,.14);background:rgba(2,6,23,.06);color:#111827;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;line-height:1;font-size:14px}
.xbtn:hover{background:rgba(2,6,23,.10)}
.chat-row.me .xbtn{border-color:rgba(9,81,153,.25);background:rgba(255,255,255,.22)}

/* Attachments pill inside chat */
.att-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border-radius:999px;border:1px solid rgba(2,6,23,.10);background:rgba(2,6,23,.04);color:#0b0f14;text-decoration:none;font-weight:800;font-size:12px}
.att-pill:hover{background:rgba(2,6,23,.06)}


/* Request Messages (plain, compact; no bubble background) */
.chat{gap:10px; padding-bottom:10px}
.chat-bubble1{
  display:inline-block;
  width:fit-content;
  max-width:min(50%, 560px);
  padding:0;
  border:0;
  background:transparent;
}
.chat-row.me .chat-bubble1{margin-left:auto}
.chat-row.other .chat-bubble1{margin-right:auto}
.chat-meta .name{color:#095199}
.chat-del{opacity:0; transition:opacity .12s ease}
.chat-row.me:hover .chat-del{opacity:1}

/* Group separator line (under each sender-group) */
.chat-row{position:relative}
.chat-row::after{
  content:'';
  display:none;
}
.chat-row.group-end::after{
  display:block;
  content:'';
  position:absolute;
  left:0;
  right:0;
  /* place the line in the middle of the 10px row gap */
  bottom:-5px;
  height:1px;
  background:rgba(9,81,153,.22); /* transparent line */
  pointer-events:none;
}

/* Employee live search loading bar */
.ac-loading{height:2px;width:100%;border-radius:999px;overflow:hidden;background:rgba(9,81,153,.10);margin-top:6px}
.ac-loading::after{content:'';display:block;height:100%;width:40%;background:rgba(9,81,153,.55);animation:acload 1.1s infinite ease-in-out}
@keyframes acload{0%{transform:translateX(-100%)}100%{transform:translateX(250%)} }


/* ===== Phase 3+: HR Tracker enhancements ===== */
.tracker-views-bar{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.tracker-views-left,.tracker-views-right{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.tracker-views-group{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.tracker-presets,.tracker-quick{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.chip{
  border:1px solid var(--line);
  background:var(--bg2);
  color:var(--text);
  padding:6px 10px;
  border-radius:999px;
  cursor:pointer;
  font-size:12px;
  line-height:1;
}
.chip.active{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(59,130,246,.12);
}
.chip.danger{
  border-color:#ef4444;
  color:#ef4444;
  background:rgba(239,68,68,.06);
}

.tracker-table-wrap{
  overflow:auto;
  max-height:72vh;
}
.tracker-table thead th{
  position:sticky;
  top:0;
  background:var(--bg);
  z-index:5;
}
.tracker-table thead th.sortable{
  cursor:pointer;
}
.tracker-table thead th .sort-ind{
  font-size:11px;
  opacity:.7;
}

.sticky-left-0{
  position:sticky !important;
  left:0;
  z-index:7 !important;
  background:var(--bg);
}
.sticky-left-44{
  position:sticky !important;
  left:44px;
  z-index:6 !important;
  background:var(--bg);
}

.tracker-row-active{
  outline:2px solid rgba(59,130,246,.35);
  outline-offset:-2px;
}

tr.is-overdue{
  background:rgba(245,158,11,.08);
}
tr.is-stuck{
  background:rgba(239,68,68,.06);
}
tr.no-owner td[data-col="assigned_to"]{
  color:#ef4444;
}

.tracker-bulkbar{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.tracker-bulk-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.tracker-popover{
  width:360px;
  max-width:90vw;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  box-shadow:0 10px 25px rgba(0,0,0,.15);
  z-index:9999;
}
.tracker-popover-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}
.tracker-columns-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.tracker-col-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--bg2);
}
.tracker-col-item .drag{
  opacity:.55;
  cursor:grab;
}
.tracker-col-item.dragging{
  opacity:.6;
}
.tracker-col-item.dragover{
  border-color:var(--primary);
}

.tracker-context-menu{
  width:160px;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 10px 25px rgba(0,0,0,.18);
  overflow:hidden;
  z-index:99999;
}
.tracker-context-menu button{
  display:block;
  width:100%;
  text-align:left;
  padding:10px 12px;
  border:0;
  background:transparent;
  cursor:pointer;
}
.tracker-context-menu button:hover{
  background:var(--bg2);
}

.tracker-sidepanel{
  position:fixed;
  top:70px;
  right:16px;
  width:420px;
  max-width:92vw;
  height:calc(100vh - 90px);
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 20px 45px rgba(0,0,0,.25);
  z-index:9998;
  overflow:hidden;
}
.tracker-sidepanel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 12px;
  border-bottom:1px solid var(--line);
  background:var(--bg2);
}
.tracker-sidepanel-body{
  padding:12px;
  overflow:auto;
  height:calc(100% - 56px);
}
.tracker-sidepanel-body .kv{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:10px;
  padding:6px 0;
  border-bottom:1px dashed rgba(148,163,184,.35);
}
.tracker-sidepanel-body .kv .k{
  color:var(--muted);
}
.tracker-sidepanel-body .h3{
  font-weight:700;
  margin:10px 0 6px 0;
}
.tracker-sidepanel-body .desc{
  white-space:pre-wrap;
  background:var(--bg2);
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  margin:0;
}

/* keep tooltip hover working on disabled nav items */
a[data-disabled="1"]{ cursor:not-allowed; }


/* Language switcher */
.lang-switch{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 8px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  border-radius:999px;
}
.lang-switch.light{
  border:1px solid #e5e7eb;
  background:#fff;
}
.lang-btn{
  color:rgba(255,255,255,.88);
  font-weight:950;
  font-size:12px;
  text-decoration:none;
  padding:4px 6px;
  border-radius:999px;
  line-height:1;
}
.lang-switch.light .lang-btn{color:#344054}
.lang-btn:hover{background:rgba(255,255,255,.10)}
.lang-switch.light .lang-btn:hover{background:#f2f4f7}
.lang-btn.active{
  background:rgba(255,255,255,.14);
  color:#fff;
}
.lang-switch.light .lang-btn.active{
  background:#0b2f5f;
  color:#fff;
}
.lang-sep{
  color:rgba(255,255,255,.55);
  font-weight:950;
  font-size:12px;
}
.lang-switch.light .lang-sep{color:#98a2b3}

/* Auth language switch placement */
.auth-lang{
  position:fixed;
  top:14px;
  right:14px;
  z-index:80;
}
