










:root {
  
  --bg: #0E0C0A;
  --sidebar-bg: #17140F;   
  --surface-2: #1D1914;    
  --surface-3: #26211B;    
  --input-bg: #0C0A08;

  
  --text: #EDE8E0;         
  --label: #CFC6B9;
  --muted: #A79E92;        

  
  --accent: rgb(var(--accent-rgb));
  --accent-hover: rgb(var(--accent-hover-rgb));
  --accent-ink: #08120B;    
  --accent-soft: rgba(var(--accent-rgb), 0.13);
  --clay: rgb(var(--clay-rgb));          
  --gold: rgb(var(--gold-rgb));          

  
  --border: rgba(232, 208, 176, 0.13);
  --border-strong: rgba(232, 208, 176, 0.26);

  
  --neutral-bg: rgba(255, 255, 255, 0.08); --neutral-text: #BDB5AA;
  --success-bg: rgba(var(--accent-rgb), 0.15); --success-text: var(--accent-hover);
  --warn-bg:    rgba(var(--warn-tint-rgb), 0.15);  --warn-text:    #FFC85A;
  --info-bg:    rgba(var(--info-tint-rgb), 0.15);  --info-text:    #8FBCF7;
  --danger-bg:  rgba(var(--danger-tint-rgb), 0.16);  --danger-text:  #F79287;
  --purple-bg:  rgba(var(--purple-tint-rgb), 0.16); --purple-text:  #C4B5FD;
  --pickup-bg:  rgba(var(--pickup-tint-rgb), 0.15);  --pickup-text:  #5EEAD4; 

  --danger: rgb(var(--danger-rgb)); 
  

  --accent-rgb: 104, 208, 124;
  --accent-hover-rgb: 132, 236, 152;
  --clay-rgb: 221, 174, 133;
  --gold-rgb: 201, 181, 138;
  --danger-tint-rgb: 244, 110, 96;
  --warn-tint-rgb: 255, 196, 87;
  --info-tint-rgb: 96, 165, 250;
  --purple-tint-rgb: 167, 139, 250;
  --pickup-tint-rgb: 45, 212, 191;
  --danger-rgb: 199, 65, 47;
  
  --bg-deep: #14100C;
  --bg-tint-1-rgb: 232, 180, 120;
  --bg-tint-2-rgb: 104, 208, 124;
  --blob-sage-2-rgb: 60, 180, 110;
  --blob-clay-2-rgb: 150, 110, 80;
  --glass-rgb: 29, 25, 20;
  --chrome-rgb: 24, 20, 16;
  --chrome-2-rgb: 27, 23, 18;
  --scrim-rgb: 5, 3, 2;
  --scrim-soft-rgb: 14, 11, 8;
  --scrim-login-rgb: 8, 6, 4;
  --attention: #ffc107;
  --attention-rgb: 255, 193, 7;
  --amber-text: #E8C083;
  --amber-rgb: 230, 180, 100;
  --periwinkle-text: #AAB6FF;
  --periwinkle-rgb: 139, 157, 255;
  --return-tint-rgb: 240, 120, 120;
  --thumb-error-rgb: 158, 42, 43;
  --amber-hairline-rgb: 135, 98, 25;
  --edited-fill: #C79A3E;
  --edited-fill-rgb: 199, 154, 62;
  --danger-hover: #B93D2C;
  --brick: #B25A4A;
  --brick-rgb: 178, 90, 74;
  --hard-text: #F5A97F;
  --hard-rgb: 230, 140, 80;
  --pause-amber: #d9a53c;
  --amber-bright: #E8C46A;
  --banner-err-bg: var(--danger-bg);  --banner-err-text: var(--danger-text);
  --banner-ok-bg: var(--success-bg);  --banner-ok-text: var(--success-text);

  --shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.62);
  --shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, 0.55);
  
  color-scheme: dark;
  
  --glow: 0 0 18px -2px rgba(var(--accent-rgb), 0.45);
  --glow-soft: 0 0 14px -4px rgba(var(--accent-rgb), 0.35);
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  



  --surface: var(--sidebar-bg);      
  --surface-1: var(--sidebar-bg);
  --card: var(--sidebar-bg);
  --text-muted: var(--muted);
  --success: #4CC96B;                
  --warn-border: rgba(var(--warn-tint-rgb), 0.4);
  --shadow-md: 0 10px 28px -12px rgba(0, 0, 0, 0.6);

  --sidebar-w: 236px;
  --topbar-h: 56px;
  --speed: 180ms;

  
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);     
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); 
}













:root {
  
  --r-capsule: 999px;
  --r-14: 14px;        
  --r-18: 18px;        
  --r-24: 24px;        
  --r-28: 28px;        
  
  --no-line: transparent;
  --edge-lit: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --elev-1: 0 8px 18px -14px rgba(0, 0, 0, 0.70);
  --elev-2: 0 14px 32px -20px rgba(0, 0, 0, 0.75);
  --elev-3: 0 28px 64px -24px rgba(0, 0, 0, 0.88);
  
  --raised: var(--surface-2);
  --raised-chip: var(--surface-3);
  
  --well: rgba(5, 3, 2, 0.34);
  


  --field-bg: var(--input-bg);
  --field-edge: var(--border-strong);
  
  --field-fill: rgba(232, 208, 176, 0.08);
  --field-fill-focus: rgba(232, 208, 176, 0.11);
  
  --focus-ring: 0 0 0 3px rgba(var(--accent-rgb), 0.24);
  




  --tonal: rgba(232, 208, 176, 0.10);
  --tonal-hover: rgba(232, 208, 176, 0.15);
  --tonal-on: rgba(var(--accent-rgb), 0.20);
  --tonal-on-hover: rgba(var(--accent-rgb), 0.26);
  --tonal-on-text: var(--accent-hover);
  --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  






  --danger-ink: #fff;
  --glow-danger-soft: 0 0 14px -4px rgba(var(--danger-tint-rgb), 0.35);
  --glow-danger: 0 0 16px -4px rgba(var(--danger-tint-rgb), 0.55), 0 8px 20px -8px rgba(0, 0, 0, 0.6);
  --warn: var(--amber-bright);
  





  --fs-2xs: 12px;   
  --fs-xs: 13px;    
  --fs-sm: 14px;    
  --fs-md: 15px;    
  --fs-lg: 16px;    
}







html[dir="rtl"] { --fs-2xs: 13px; --fs-xs: 14px; --fs-sm: 15px; --fs-md: 16px; --fs-lg: 17px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }


html, body { overscroll-behavior-y: contain; }

.onsite-correct { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.onsite-correct select { max-width: 100%; }

.labor-check-off { opacity: 0.55; cursor: not-allowed; }

.ptr-indicator { position: fixed; top: 6px; left: 50%; z-index: 4000; opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(0); transition: opacity .15s ease, transform .15s ease; }
.ptr-spinner { display: block; width: 26px; height: 26px; box-sizing: border-box; border-radius: 50%;
  border: 3px solid var(--border-strong); border-top-color: var(--accent); background: var(--surface-2); }
.ptr-indicator.ptr-armed .ptr-spinner { border-top-color: var(--accent-hover); }
.ptr-indicator.ptr-spin .ptr-spinner { animation: ptrSpin .7s linear infinite; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }

body {
  font-family: var(--font-ui);
  color: var(--text);
  

  background:
    radial-gradient(1100px 700px at 85% -15%, rgba(var(--bg-tint-1-rgb), 0.10), transparent 55%),
    radial-gradient(800px 620px at -10% 110%, rgba(var(--bg-tint-2-rgb), 0.07), transparent 52%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  background-attachment: fixed;
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(var(--accent-rgb), 0.32); color: var(--text); }




input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]),
select, textarea {
  background-color: var(--field-bg);     
  color: var(--text);
  border-color: var(--field-edge);
}

.btn:focus-visible, .btn-link:focus-visible, .nav-link:focus-visible,
.modal-close:focus-visible, .item-remove:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}






#reconnect-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: var(--bg); }
#reconnect-overlay[hidden] { display: none; }
.reconnect-card { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 12px; background: var(--surface); color: var(--text); font-size: var(--fs-md); font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }
.reconnect-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: reconnect-spin 0.8s linear infinite; }
@keyframes reconnect-spin { to { transform: rotate(360deg); } }

.bg-art {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.art { position: absolute; opacity: 0.06; will-change: transform; }
.art-monstera { top: -70px; right: -90px; width: 440px; height: 440px; transform: rotate(-8deg); }
.art-palm { bottom: -60px; left: -80px; width: 480px; height: 360px; transform: rotate(6deg); }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.10;
}
.blob-sage {
  width: 380px; height: 380px; top: -110px; left: 9%;
  background: radial-gradient(circle at 34% 30%, rgba(var(--accent-hover-rgb), 0.5), rgba(var(--blob-sage-2-rgb), 0.35) 72%);
}
.blob-clay {
  width: 340px; height: 340px; bottom: -120px; right: 7%;
  background: radial-gradient(circle at 34% 30%, rgba(var(--clay-rgb), 0.4), rgba(var(--blob-clay-2-rgb), 0.28) 72%);
}




























[hidden] { display: none !important; }

.topbar {
  display: none;
  align-items: center;
  gap: 12px;
  height: var(--topbar-h);
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(var(--chrome-rgb), 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
}
.topbar-title { font-family: var(--font-display); font-weight: 600; letter-spacing: 1.5px; color: var(--text); }

.hamburger {
  width: 44px; height: 44px;
  border: none; background: none; cursor: pointer;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 10px;
}
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }










.hc-btn {
  flex: 0 0 auto;
  width: 44px; height: 44px;              
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
}
.hc-btn[hidden] { display: none !important; }







.hc-btn .hc-ico-cancel { display: none; }
.hc-btn.is-cancel .hc-ico-call { display: none; }
.hc-btn.is-cancel .hc-ico-cancel { display: block; }
.hc-btn:disabled { cursor: default; opacity: 0.72; }

.hc-btn.is-open { background: var(--warn, var(--amber-bright)); color: #1a1a1a; }


.topbar .hc-btn { margin-inline-start: auto; }
.sidebar-footer .hc-btn { align-self: flex-start; }

.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(var(--scrim-rgb), 0.6);
  backdrop-filter: blur(2px);
  z-index: 35;
}
.sidebar-backdrop.open { display: block; }




.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  
  background: linear-gradient(180deg, rgba(var(--chrome-2-rgb), 0.82) 0%, rgba(var(--chrome-rgb), 0.86) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  border-right: 1px solid var(--border);
  padding: 24px 0 16px;
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.brand {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 1.8px;
  padding: 4px 20px 22px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto; 
}
.brand::before {
  content: "";
  width: 11px; height: 11px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 14px rgba(var(--accent-rgb), 0.55);
}





.nav {
  display: flex; flex-direction: column; gap: 2px; padding: 0 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav::-webkit-scrollbar { width: 8px; }
.nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 11px;
  font-weight: 500;
  transition: color var(--speed) ease, background var(--speed) ease;
  


  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
}
.nav-link::before {
  content: "";
  width: 18px; height: 18px;
  flex: 0 0 18px;
  background-color: currentColor;
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  
  inset-inline-start: 4px; top: 22%; bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.65);
}
.nav-link:hover { background: var(--surface-3); color: var(--text); }
.nav-link.active {
  color: var(--accent); background: var(--accent-soft); font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.22), var(--glow-soft);
}




.nav-link[hidden] { display: none !important; }


.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group[hidden] { display: none; }
.nav-group-toggle {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 14px; border: none; background: none; cursor: pointer; text-align: left;
  color: var(--muted); font: inherit; font-weight: 500; border-radius: 11px;
  transition: color var(--speed) ease, background var(--speed) ease;
  
  --group-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
}
.nav-group-toggle::before {
  content: ""; width: 18px; height: 18px; flex: 0 0 18px; background-color: currentColor;
  -webkit-mask: var(--group-icon) no-repeat center / contain; mask: var(--group-icon) no-repeat center / contain;
}

.nav-group-toggle[data-group-toggle="work"]     { --group-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E"); }
.nav-group-toggle[data-group-toggle="catalog"]  { --group-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E"); }
.nav-group-toggle[data-group-toggle="people"]   { --group-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.nav-group-toggle[data-group-toggle="insights"] { --group-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E"); }


.nav-group-toggle[data-group-toggle="money"]    { --group-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E"); }
.nav-group-toggle:hover { background: var(--surface-3); color: var(--text); }
.nav-group-toggle.active-parent { color: var(--accent); font-weight: 600; }
.nav-group-label { flex: 1 1 auto; }
.nav-group-chevron { font-size: var(--fs-2xs); opacity: 0.8; transition: transform var(--speed) ease; }
.nav-group-toggle.open .nav-group-chevron { transform: rotate(90deg); }
.nav-group-sub { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; margin-top: 2px; }
.nav-group-sub[hidden] { display: none; }
.nav-sublink { font-size: var(--fs-sm); padding: 8px 14px; }
.nav-sublink::before { width: 15px; height: 15px; flex-basis: 15px; opacity: 0.9; }


.nav-group-toggle[data-group-toggle="crm"] { --group-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E"); }
.nav-link[data-ext="crm-inbox"]       { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 16 12 14 15 10 15 8 12 2 12'/%3E%3Cpath d='M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E"); }
.nav-link[data-ext="crm-contacts"]    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.nav-link[data-ext="crm-agents"]      { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2' ry='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cline x1='9' y1='1' x2='9' y2='4'/%3E%3Cline x1='15' y1='1' x2='15' y2='4'/%3E%3Cline x1='9' y1='20' x2='9' y2='23'/%3E%3Cline x1='15' y1='20' x2='15' y2='23'/%3E%3Cline x1='20' y1='9' x2='23' y2='9'/%3E%3Cline x1='20' y1='14' x2='23' y2='14'/%3E%3Cline x1='1' y1='9' x2='4' y2='9'/%3E%3Cline x1='1' y1='14' x2='4' y2='14'/%3E%3C/svg%3E"); }
.nav-link[data-ext="crm-connections"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E"); }
.nav-ext-label { flex: 1 1 auto; min-width: 0; }
.nav-ext-mark {
  flex: 0 0 13px; width: 13px; height: 13px; opacity: 0.7; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
}



body.role-leader .nav-link[data-view="my-time"] { order: 0; }
body.role-leader .nav-link[data-view="calendar"] { order: 1; }
body.role-leader .nav-link[data-view="production"] { order: 2; }

.prod-card-readonly { cursor: default; }
@media (max-width: 768px) {
  .nav-group-toggle, .nav-sublink { min-height: 44px; }
}

.nav-link[data-view="clients"]  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }

.nav-link[data-view="orders"]   { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
.nav-link[data-view="calendar"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }

.nav-link[data-view="catalog"]  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5z'/%3E%3Cpath d='M2 17l10 5 10-5'/%3E%3Cpath d='M2 12l10 5 10-5'/%3E%3C/svg%3E"); }

.nav-link[data-view="users"]    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }


.nav-link[data-view="home"]           { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E"); }
.nav-link[data-view="my-time"]        { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }
.nav-link[data-view="production"]     { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 11 12 14 22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E"); }
.nav-link[data-view="ready-products"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E"); }


.nav-link[data-view="attendance"]     { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cpolyline points='17 11 19 13 23 9'/%3E%3C/svg%3E"); }
.nav-link[data-view="activities"]     { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E"); }

.nav-link[data-view="dashboard"]      { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E"); }
.nav-link[data-view="reports"]        { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E"); }



.nav-link[data-view="reviews"]            { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 16 12 14 15 10 15 8 12 2 12'/%3E%3Cpath d='M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E"); }

.nav-link[data-view="inventory"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='21 8 21 21 3 21 3 8'/%3E%3Crect x='1' y='3' width='22' height='5'/%3E%3Cline x1='10' y1='12' x2='14' y2='12'/%3E%3C/svg%3E"); }

.nav-link[data-view="notification-settings"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E"); }

.nav-link[data-view="backups"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M21 12c0 1.66-4 3-9 3s-9-1.34-9-3'/%3E%3Cpath d='M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5'/%3E%3C/svg%3E"); }

.nav-link[data-view="client-book"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E"); }

.nav-link[data-view="ask"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E"); }
.nav-link[data-view="wallet"]             { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E"); }
.nav-link[data-view="company-purchases"]  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E"); }
.nav-link[data-view="finances"]           { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 6 13.5 15.5 8.5 10.5 1 18'/%3E%3Cpolyline points='17 6 23 6 23 12'/%3E%3C/svg%3E"); }
.nav-link[data-view="checklists"],
.nav-link[data-view="checklists-admin"]   { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3C/svg%3E"); }

.btn-iconed { display: inline-flex; align-items: center; gap: 6px; }
.btn-iconed .btn-ico { flex: 0 0 auto; }


.nav-group-sub:not([hidden]) { animation: navSubIn var(--dur-base, 200ms) var(--ease-out, ease); }
@keyframes navSubIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

[dir="rtl"] .nav-group-sub { padding-left: 0; padding-right: 14px; }




.content {
  margin-left: var(--sidebar-w);
  padding: 40px 48px;
  max-width: 1140px;
}

.view { animation: viewFade 0.22s ease both; }






body.login-checking #login-screen { visibility: hidden; }










#kiosk-bar, #kiosk-idle { display: none; }
body.kiosk-mode #logout-btn,
body.kiosk-mode #profile-password-form { display: none !important; }


body.kiosk-mode .content { padding-bottom: 104px; }
body.kiosk-mode #kiosk-bar {
  display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 900;
  align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 18px; min-height: 68px;
  background: var(--surface-2); border-top: 1px solid var(--border-strong);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.28);
}
#kiosk-bar .kiosk-who { font-size: 17px; font-weight: 700; color: var(--text); }
#kiosk-bar .kiosk-done { min-height: 48px; font-size: 17px; padding: 10px 30px; }


body.kiosk-mode #kiosk-idle.on {
  display: flex; position: fixed; inset: 0; z-index: 1200;
  align-items: center; justify-content: center;
  background: rgba(var(--scrim-soft-rgb), 0.92);
}
#kiosk-idle .kiosk-idle-box { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
#kiosk-idle .kiosk-idle-msg { font-size: 26px; font-weight: 700; color: var(--text); }
#kiosk-idle .kiosk-idle-count { font-size: 76px; font-weight: 800; color: var(--warn, var(--amber-bright)); line-height: 1; }
#kiosk-idle .btn { min-height: 56px; font-size: 19px; padding: 14px 34px; }
@media (max-width: 768px) {
  body.kiosk-mode .content { padding-bottom: 96px; }
}

.view-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: 28px; gap: 12px; 
}
.view-header h1 { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin: 0; letter-spacing: 0.2px; }




.table-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--sidebar-bg);
  
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow-sm);
}

.data-table { width: 100%; border-collapse: collapse; }

.data-table th, .data-table td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table thead th {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  font-weight: 600;
  background: var(--surface-3);
}

.data-table tbody tr { transition: background var(--speed) ease; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(var(--accent-rgb), 0.06); }

.actions-col { width: 150px; }
.muted { color: var(--muted); }

.truncate {
  display: block; max-width: 260px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}




.badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  background: var(--neutral-bg);
  color: var(--neutral-text);
}



.badge[data-status="In production"]                { background: var(--warn-bg); color: var(--warn-text); }
.badge[data-status="Quoted"],
.badge[data-status="Confirmed"]                    { background: var(--info-bg); color: var(--info-text); }
.badge[data-status="Ready"],
.badge[data-status="Completed"]                    { background: var(--success-bg); color: var(--success-text); }
.badge[data-status="Cancelled"]                    { background: var(--danger-bg); color: var(--danger-text); }

.badge[data-payment="Not paid"],
.badge[data-payment="Pending payment"]             { background: var(--danger-bg); color: var(--danger-text); }
.badge[data-payment="Partially paid"],
.badge[data-payment="Down payment received"]       { background: var(--warn-bg); color: var(--warn-text); }
.badge[data-payment="Fully paid"]                  { background: var(--success-bg); color: var(--success-text); }


.badge[data-quote-status="Pending"]  { background: var(--warn-bg); color: var(--warn-text); }
.badge[data-quote-status="Approved"] { background: var(--success-bg); color: var(--success-text); }
.badge[data-quote-status="Rejected"] { background: var(--danger-bg); color: var(--danger-text); }




.btn {
  font: inherit;
  font-weight: 500;
  padding: 8px 15px;
  border: 1px solid var(--no-line);   
  background: var(--tonal);
  box-shadow: var(--edge-lit);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  transition: background var(--speed) ease, border-color var(--speed) ease, transform 120ms ease, box-shadow var(--speed) ease;
}
.btn:hover { background: var(--tonal-hover); border-color: var(--no-line); }   
.btn:active { transform: translateY(1px) scale(0.99); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn-primary { box-shadow: var(--glow-soft); }
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--glow), 0 8px 20px -8px rgba(0, 0, 0, 0.6);
}

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; }
.btn-danger:hover { background: var(--danger-hover); border-color: var(--danger-hover); box-shadow: 0 0 16px -4px rgba(var(--danger-tint-rgb), 0.55), 0 8px 20px -8px rgba(0, 0, 0, 0.6); }



.btn.danger:not(.btn-link) { background: var(--danger); border-color: var(--danger); color: var(--danger-ink); font-weight: 600; box-shadow: var(--edge-lit), var(--glow-danger-soft); }
.btn.danger:not(.btn-link):hover { background: var(--danger-hover); border-color: var(--danger-hover); box-shadow: var(--edge-lit), var(--glow-danger); }
.btn.danger:not(.btn-link):disabled { background: var(--danger); box-shadow: none; }   

.btn-link {
  border: none; background: none; padding: 4px 6px; cursor: pointer;
  color: var(--accent); font: inherit; font-weight: 500;
  border-radius: 6px;
  transition: color var(--speed) ease, background var(--speed) ease;
}
.btn-link:hover { color: var(--accent-hover); text-decoration: underline; }
.btn-link.danger { color: var(--danger-text); } 
.btn-link.danger:hover { color: var(--danger-text); }

.btn-link.paid-action { color: var(--success-text); font-weight: 600; }
.btn-link.paid-action:hover { color: var(--accent-hover); }




#orders-table .actions-col, #quotations-table .actions-col { width: auto; min-width: 232px; }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.oa-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font: inherit; font-size: var(--fs-2xs); font-weight: 500; line-height: 1;
  padding: 6px 9px; min-height: 33px;
  border: 1px solid var(--border-strong); border-radius: 10px; 
  background: var(--surface-2); color: var(--text); cursor: pointer; white-space: nowrap;
  transition: background var(--speed) ease, border-color var(--speed) ease, color var(--speed) ease, transform 120ms ease, box-shadow var(--speed) ease;
}
.oa-btn:hover { background: var(--surface-3); border-color: rgba(var(--accent-rgb), 0.45); transform: translateY(-1px); }
.oa-btn:active { transform: translateY(0) scale(0.97); }
.oa-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.oa-ico { flex: 0 0 auto; }

.oa-btn.oa-wa { border-color: rgba(37, 211, 102, 0.55); color: #4ADE80; }
.oa-btn.oa-wa:hover { background: rgba(37, 211, 102, 0.14); border-color: #25d366; }

.oa-btn.oa-paid { background: var(--success-bg); border-color: rgba(var(--accent-rgb), 0.35); color: var(--success-text); font-weight: 600; }
.oa-btn.oa-paid:hover { background: rgba(var(--accent-rgb), 0.26); border-color: rgba(var(--accent-rgb), 0.55); }
.oa-btn.oa-complete { background: var(--accent-soft); border-color: rgba(var(--accent-rgb), 0.4); color: var(--accent); font-weight: 600; }
.oa-btn.oa-complete:hover { background: rgba(var(--accent-rgb), 0.22); border-color: var(--accent); }


.oa-btn.oa-del { color: var(--danger-text); border-color: rgba(var(--danger-tint-rgb), 0.35); background: transparent; margin-inline-start: 4px; }
.oa-btn.oa-del:hover { background: var(--danger-bg); border-color: var(--danger); color: var(--danger-text); }

.orders-filter-tabs { margin-bottom: 12px; }


.orders-range { margin-bottom: 12px; align-items: center; }
.orders-range-label { font-size: var(--fs-xs); color: var(--muted); margin-inline-end: 4px; }
.orders-range-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; width: 100%; }
.orders-range-custom[hidden] { display: none; }
.orders-range-custom label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-xs); color: var(--muted); }
.orders-range-summary { width: 100%; font-weight: 600; font-size: var(--fs-sm); }
.orders-range-summary[hidden] { display: none; }
.row-taken { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }

.diff-badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600;
  background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; white-space: nowrap;
}
.diff-badge.diff-super_easy, .diff-badge.diff-very_easy, .diff-badge.diff-easy { background: var(--success-bg); color: var(--success-text); }
.diff-badge.diff-hard, .diff-badge.diff-very_hard, .diff-badge.diff-super_hard { background: rgba(var(--hard-rgb), 0.16); color: var(--hard-text); }
.prod-card-difficulty { display: flex; align-items: center; gap: 6px; }

.prod-card-deadline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.dl-chip.dl-none { background: var(--neutral-bg); color: var(--neutral-text); }
.dl-pts { font-weight: 800; }
.dl-live { font-size: var(--fs-2xs); font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }

.dl-returned { font-size: var(--fs-2xs); font-weight: 600; color: var(--warn-text, var(--muted)); white-space: nowrap; }
.task-return-modal { max-width: 420px; }
.task-return-modal .rf-field { display: block; margin-top: 10px; }

.inv-size-modal { max-width: 380px; }
.inv-size-choices { display: flex; gap: 12px; margin-top: 12px; }
.inv-size-btn {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: 72px; padding: 14px 10px; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: background var(--speed) ease, border-color var(--speed) ease;
}
.inv-size-btn:hover { border-color: var(--border-strong); }
.inv-size-btn.is-last { border-color: var(--accent); background: var(--accent-soft); }
.inv-size-name { font-size: var(--fs-md); font-weight: 700; }
.inv-size-dim { font-size: var(--fs-xs); color: var(--muted); direction: ltr; }
.inv-size-btn.is-last .inv-size-name { color: var(--accent); }
.dl-live.dl-ok { background: var(--info-bg); color: var(--info-text); }
.dl-live.dl-over { background: var(--danger-bg); color: var(--danger-text); }

.dl-live.clk-run::before { content: '●'; color: var(--success); margin-inline-end: 3px; animation: clkpulse 1.6s ease-in-out infinite; }
.dl-live.clk-pause { opacity: 0.72; }
.dl-live.clk-pause::before { content: '❚❚'; font-size: var(--fs-2xs); margin-inline-end: 3px; letter-spacing: -1px; }
@keyframes clkpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.deadline-field { display: flex; flex-direction: column; gap: 4px; }
.deadline-hint { font-size: var(--fs-xs); }

.jr-remaining { font-size: var(--fs-sm); font-weight: 600; color: var(--accent); margin-bottom: 8px; padding: 8px 12px; background: var(--accent-soft); border-radius: 10px; }
.jr-remaining-paid { color: var(--success-text); background: var(--success-bg); }







.cl-sess-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }






.banner { scroll-margin-top: calc(var(--topbar-h, 56px) + 8px); }


.prod-status-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.banner {
  padding: 11px 15px;
  border-radius: 11px;
  margin-bottom: 16px;
  font-size: var(--fs-sm);
  border: 1px solid transparent;
  animation: bannerIn 0.25s ease both;
}
.banner.error { background: var(--danger-bg); color: var(--danger-text); border-color: rgba(var(--danger-tint-rgb), 0.22); }




[dir="rtl"] .banner.error, [dir="rtl"] .form-error { unicode-bidi: plaintext; }
.banner.success { background: var(--success-bg); color: var(--success-text); border-color: rgba(var(--accent-rgb), 0.22); }

.banner.info { background: var(--surface-2); color: var(--text); border-color: var(--border); }





.stale-hint { font-size: var(--fs-xs); opacity: 0.75; }
.stale-hint::before { content: '⟳ '; }

.stale-retry { display: block; margin: 6px auto 0; min-height: 44px; padding: 0 12px; background: var(--warn-bg); color: var(--warn-text);
  border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.stale-retry[hidden] { display: none; }

.donow-card .btn.is-busy { opacity: .6; pointer-events: none; }
.donow-card .btn.is-busy::after {
  content: ''; display: inline-block; width: 10px; height: 10px; margin-inline-start: 6px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  vertical-align: -1px; animation: statusBtnSpin .7s linear infinite;
}

.net-retry-btn { margin: 6px 0 0; min-height: 44px; }

.saved-flash { font-size: var(--fs-xs); font-weight: 600; color: var(--accent, var(--accent)); padding: 4px 0; unicode-bidi: plaintext; }

.skel-wrap { display: flex; flex-direction: column; gap: 10px; }
.skel-row { height: 44px; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.05) 75%); background-size: 200% 100%; animation: skel-shimmer 1.2s linear infinite; }
.skel-card .skel-row { height: 150px; border-radius: 14px; }
@keyframes skel-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }




.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skel { display: block; padding: 6px 0; }
.skel-shapes { display: flex; flex-direction: column; gap: 14px; }
.skel-item { display: flex; align-items: center; gap: 12px; }
.skel-dot { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.skel-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.skel-bar { display: block; height: 11px; border-radius: 6px; width: 72%; }
.skel-bar.skel-short { width: 44%; height: 9px; }
.skel-bar.skel-tiny { width: 26%; height: 9px; }
.skel-item:nth-child(3n + 2) .skel-bar:first-child { width: 58%; }
.skel-item:nth-child(3n) .skel-bar:first-child { width: 84%; }
.skel-card .skel-shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.skel-card-block { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 104px; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.skel-card-block .skel-bar:first-child { width: 38%; height: 18px; }
.skel-line .skel-shapes { gap: 10px; }
.skel-text { height: 12px; width: 92%; }
.skel-text:nth-child(3n + 2) { width: 78%; }
.skel-text:nth-child(3n) { width: 56%; }
.skel-dot, .skel-bar {
  background: linear-gradient(90deg, var(--neutral-bg) 0%, var(--neutral-bg) 38%, var(--accent-soft) 50%, var(--neutral-bg) 62%, var(--neutral-bg) 100%);
  background-size: 300% 100%; background-position: 100% 0; animation: skel-sweep 1.6s ease-in-out infinite;
}
[dir="rtl"] .skel-dot, [dir="rtl"] .skel-bar { animation-direction: reverse; }
@keyframes skel-sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.skel-tr td { padding: 12px 14px; }
.skel-li { list-style: none; padding: 8px 4px; }

.inv-identify-btn .ico { margin-inline-end: 4px; }
.idf-top { display: flex; justify-content: center; }
.idf-photo { max-width: 100%; max-height: 220px; border-radius: 14px; border: 1px solid var(--border); object-fit: contain; background: var(--surface-2); }
.idf-seen { margin: 14px 0 8px; color: var(--label); }
.idf-seen .ico { color: var(--accent); }
.idf-reading { text-align: center; margin: 6px 0 0; }
.idf-error { color: var(--danger-text); margin: 14px 0; }
.idf-none { margin: 14px 0; color: var(--muted); }
.idf-cards { display: flex; flex-direction: column; gap: 10px; }
.idf-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.idf-card.idf-conf-high { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.idf-thumb { width: 72px; height: 72px; flex: none; border-radius: 10px; object-fit: cover; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.idf-thumb .ico { width: 1.6em; height: 1.6em; }
.idf-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.idf-conf { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.idf-conf-high .idf-conf { color: var(--accent); }
.idf-name { font-size: var(--fs-lg); line-height: 1.3; }
.idf-stock strong { font-size: 18px; }
.idf-show { align-self: flex-start; margin-top: 4px; }
.idf-actions { display: flex; justify-content: center; margin-top: 16px; }
.idf-note { text-align: center; font-size: var(--fs-xs); margin: 10px 0 0; }

.myjobs { margin: 16px 0 6px; display: flex; flex-direction: column; gap: 10px; }
.myjobs-title { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.myjob { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--sidebar-bg); }
.myjob.is-today { border-color: var(--border-strong); }
.myjob.is-running { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.myjob-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.myjob-ico .ico { width: 20px; height: 20px; }
.myjob-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.myjob-top { font-size: var(--fs-md); }
.myjob-for { font-size: var(--fs-sm); color: var(--label); overflow-wrap: anywhere; }
.myjob-for bdi { white-space: nowrap; }   
.myjob-who { font-size: var(--fs-xs); }
.myjob-live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--accent); white-space: nowrap; }
.myjob-start { flex: none; white-space: nowrap; }





.home-skeleton { display: grid; gap: 14px; margin-top: 12px; }
.home-skeleton[hidden] { display: none; }
.home-skeleton .sk-row { display: flex; gap: 12px; }
.sk-card, .sk-block, .sk-line { position: relative; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, 0.055); }
.sk-card { height: 84px; flex: 1; }
.sk-block { height: 140px; }
.sk-line { height: 16px; border-radius: 8px; }
.sk-line-short { width: 60%; }
.sk-card::after, .sk-block::after, .sk-line::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  animation: sk-shimmer 1.4s infinite;
}
@keyframes sk-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .sk-card::after, .sk-block::after, .sk-line::after { animation: none; }
}


.woo-sync-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.woo-sync-strip .sync-err { color: var(--danger-text); }
.ready-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.ready-filters .ready-search { flex: 1 1 240px; min-width: 180px; }
.ready-filters select { flex: 0 1 200px; }

.ready-thumb-col { width: 56px; }
.ready-thumb {
  display: inline-block; width: 40px; height: 40px; border-radius: 9px;
  background: var(--surface-3) center / cover no-repeat;
  border: 1px solid var(--border); vertical-align: middle;
}
.ready-thumb-empty { background: repeating-linear-gradient(45deg, var(--surface-3), var(--surface-3) 5px, var(--input-bg) 5px, var(--input-bg) 10px); }
.ready-row-inactive td:not(.actions-col):not(.ready-thumb-col) { color: var(--muted); }

.is-dimmed { opacity: 0.5; }


.order-item.is-ready { border-style: dashed; border-color: var(--gold); }
.ready-tag {
  font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
  padding: 2px 9px; border-radius: 10px; margin-left: auto; margin-right: 10px;
}
.ready-item-info { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ready-item-info .ready-thumb { width: 44px; height: 44px; }
.ready-info-meta { font-size: var(--fs-xs); color: var(--muted); }
.ready-stock-warn { margin: 0; flex-basis: 100%; background: var(--warn-bg); color: var(--warn-text); border-color: rgba(var(--amber-hairline-rgb), 0.22); animation: none; }


.item-add-row { display: flex; flex-wrap: wrap; gap: 10px; }


.ready-picker-body { display: flex; flex-direction: column; gap: 14px; }
.ready-picker-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; max-height: 60vh; overflow-y: auto; padding: 2px;
}
.ready-picker-empty { grid-column: 1 / -1; padding: 24px 4px; }
.ready-card {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 10px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-2); cursor: pointer; transition: border-color var(--speed) ease, box-shadow var(--speed) ease, transform var(--speed) ease;
}
.ready-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.ready-card:active { transform: translateY(1px) scale(0.99); }
.ready-card-img {
  display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px;
  background: var(--surface-3) center / cover no-repeat; margin-bottom: 4px;
}
.ready-card-noimg { display: flex; align-items: center; justify-content: center; font-size: var(--fs-xs); color: var(--muted); }
.ready-card-name { font-weight: 600; font-size: var(--fs-sm); }
.ready-card-price { font-size: var(--fs-sm); color: var(--accent); font-weight: 600; }
.ready-card-meta { font-size: var(--fs-xs); color: var(--muted); }




.catalog-custom-work { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.cw-heading { font-size: 18px; margin: 0 0 12px; }
.cw-cat-name { color: var(--accent); }
.cw-sub { font-size: var(--fs-xs); margin: 0 0 8px; }
.catalog-pebbles-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.catalog-delivery-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.catalog-treetypes-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }


.woo-variable-badge { background: var(--accent-soft); color: var(--accent); }
.woo-var-toggle { font-size: var(--fs-2xs); }
.woo-var-row.is-hidden { display: none; }
.woo-var-list { list-style: none; margin: 0; padding: 6px 0; display: flex; flex-direction: column; gap: 4px; }
.woo-var-list li { display: flex; gap: 16px; font-size: var(--fs-xs); }
.woo-var-list .woo-var-name { min-width: 160px; font-weight: 600; }
.ready-variations-panel { margin: 14px 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-3); }
.ready-var-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ready-var-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 10px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; }
.ready-var-item.is-inactive { opacity: 0.6; }
.ready-var-itemname { font-weight: 600; min-width: 120px; }
.ready-var-itemstock { color: var(--muted); font-size: var(--fs-xs); }
.ready-var-itemactions { margin-left: auto; display: flex; gap: 8px; }
.ready-var-addrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ready-var-addrow input[type="text"] { flex: 1 1 160px; }
.ready-var-addrow input[type="number"] { width: 90px; }
.ready-var-addrow input, .ready-var-addrow select { padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--input-bg); color: var(--text); font: inherit; }
.df-key { font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-display); background: var(--surface-3); padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.df-unit { color: var(--muted); font-weight: 400; }
.catalog-item-actions .btn-link[disabled] { opacity: 0.35; cursor: default; pointer-events: none; }




.item-cw { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.item-cw:empty { display: none; }

.item-treetype-other { margin-top: 8px; }

.item-subhead {
  font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.item-dim-grid { margin: 0; }


.item-pebbles {
  display: flex; flex-direction: column; gap: 10px; margin-top: 4px;
  padding: 12px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--surface-3);
}
.item-pebbles-toggle-wrap { font-weight: 600; }
.item-pebbles-color-field { margin: 0; }
.pebbles-free-tag,
.pebble-free-tag {
  display: inline-block; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.3px;
  color: var(--accent); background: var(--accent-soft);
  padding: 1px 8px; border-radius: 10px;
}




.prod-buffer { display: flex; align-items: center; gap: 8px; }
.prod-buffer-label { font-size: var(--fs-xs); color: var(--label); display: flex; align-items: center; gap: 6px; }
.prod-buffer-input { width: 64px; }

.prod-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.prod-filters .ready-search { flex: 1 1 240px; min-width: 180px; }

.ready-search { --field-bg: var(--field-fill); --field-edge: var(--no-line); border-radius: var(--r-14); padding-inline: 12px; }
.ready-search:focus { outline: none; --field-edge: var(--accent); --field-bg: var(--field-fill-focus); box-shadow: var(--focus-ring); }
.prod-filters select { flex: 0 1 200px; }
.prod-quick { display: inline-flex; gap: 4px; }
.prod-archived-wrap { white-space: nowrap; }


.tasks-tabs { display: flex; gap: 6px; margin: 4px 0 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tasks-tabs::-webkit-scrollbar { display: none; } 
.tasks-tab {
  flex: 1 1 auto; min-height: 44px; padding: 8px 12px; border: 1px solid var(--no-line);   
  background: var(--tonal); color: var(--text); border-radius: 11px; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center;
  justify-content: center; gap: 7px; transition: background var(--speed) ease, border-color var(--speed) ease;
}
.tasks-tab:hover { background: var(--tonal-hover); }
.tasks-tab.active { background: var(--tonal-on); border-color: var(--no-line); color: var(--tonal-on-text); }   
.tasks-tab-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--neutral-bg);
  color: var(--neutral-text); font-size: var(--fs-xs); font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.tasks-tab.active .tasks-tab-count { background: var(--accent); color: var(--accent-ink); }
.tasks-panel { animation: fadeIn var(--speed) ease; }


.task-list { display: flex; flex-direction: column; gap: 10px; }


.cal-sections { display: flex; gap: 8px; margin: 2px 0 12px; }
.cal-section-btn {
  flex: 1 1 auto; min-height: 40px; padding: 7px 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); border-radius: 11px; cursor: pointer;
  font-size: var(--fs-xs); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background var(--speed) ease, border-color var(--speed) ease;
}
.cal-section-btn:hover { border-color: var(--border-strong); }
.cal-section-btn.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.cal-section-count {
  min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--neutral-bg);
  color: var(--neutral-text); font-size: var(--fs-xs); font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.cal-section-btn.is-active .cal-section-count { background: var(--accent); color: var(--accent-ink); }



.insights-tabs { display: flex; gap: 6px; margin: 4px 0 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.insights-tabs::-webkit-scrollbar { display: none; }
.insights-tab {
  flex: 1 1 auto; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); border-radius: 11px; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center;
  justify-content: center; text-decoration: none; transition: background var(--speed) ease, border-color var(--speed) ease;
}
.insights-tab:hover { border-color: var(--border-strong); text-decoration: none; }
.insights-tab.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }


.tl-item.tl-focus { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-18); }   


.tl-status-pending { background: rgba(var(--warn-tint-rgb), 0.16) !important; color: var(--warn-text) !important; border: 1px solid var(--warn-border); }
.tasks-tab-pending { background: rgba(var(--warn-tint-rgb), 0.16); color: var(--warn-text); }
.tasks-tab.active .tasks-tab-pending { background: var(--warn-text); color: #3A2A05; }
.review-actions { margin-top: 8px; }
.review-note {
  margin-top: 8px; padding: 8px 10px; border-radius: 9px;
  background: rgba(var(--danger-tint-rgb), 0.12); border: 1px solid rgba(var(--danger-tint-rgb), 0.4);
  color: var(--danger-text); font-size: var(--fs-xs);
}


@media (max-width: 640px) {
  .insights-tab { font-size: var(--fs-xs); padding: 8px 8px; }
  .hub-toggle .btn { min-height: 44px; }
}
.tl-empty { padding: 24px 8px; text-align: center; }
.tl-sentinel { height: 1px; }

.tl-item { border: 1px solid var(--no-line); border-radius: var(--r-18); background: var(--raised); box-shadow: var(--edge-lit), var(--elev-1); overflow: hidden; }
.tl-item.expanded { box-shadow: var(--edge-lit), var(--elev-2); }
.tl-item.tl-done { opacity: 0.6; }
.tl-item.tl-done .tl-title { text-decoration: line-through; }
.tl-head {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px;
  background: transparent; border: none; cursor: pointer; text-align: start; color: var(--text);
}
.tl-caret { flex: 0 0 auto; transition: transform var(--speed) ease; color: var(--muted); font-size: var(--fs-xs); }
.tl-item.expanded .tl-caret { transform: rotate(90deg); }
.tl-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }





.tl-title { font-weight: 700; font-size: var(--fs-md); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-sub { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }















.tl-item-name {
  padding: 0 12px 9px 34px;   
  font-size: var(--fs-md); color: var(--text); line-height: 1.35;
  white-space: normal; overflow-wrap: anywhere; unicode-bidi: plaintext;
}
[dir="rtl"] .tl-item-name { padding: 0 34px 9px 12px; }

.dn-item {
  font-size: var(--fs-md); color: var(--text); margin-top: 3px; line-height: 1.4;
  white-space: normal; overflow-wrap: anywhere; unicode-bidi: plaintext;
}
.tl-chips { flex: 0 1 auto; min-width: 0; max-width: 55%; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; row-gap: 3px; }
.tl-chip { font-size: var(--fs-2xs); font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tl-status { background: var(--neutral-bg); color: var(--neutral-text); }
.tl-status[data-status="Awaiting"] { background: var(--warn-bg); color: var(--warn-text); }
.tl-status[data-status="In progress"] { background: var(--info-bg); color: var(--info-text); }
.tl-status[data-status="Done"] { background: var(--success-bg); color: var(--success-text); }
.tl-more { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; }

.tl-body { padding: 0 12px 12px; border-block-start: 1px dashed var(--no-line); }
.tl-body .prod-card { cursor: pointer; margin-top: 12px; background: var(--well); border-color: var(--no-line); border-radius: var(--r-14); box-shadow: none; }

[dir="rtl"] .tl-item.expanded .tl-caret { transform: rotate(-90deg); }
@media (max-width: 640px) { .tasks-tab { font-size: var(--fs-xs); padding: 8px 8px; } }


.big-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.big-intro { font-size: var(--fs-xs); margin: 0; flex: 1; min-width: 180px; }
.big-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.big-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px;
}
.big-card.is-open { border-color: rgba(var(--accent-rgb), 0.45); }
.big-head { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; cursor: pointer; text-align: start; color: inherit; padding: 0; min-height: 32px; }
.big-title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; flex: 1; min-width: 0; }
.big-status { flex: 0 0 auto; font-size: var(--fs-2xs); font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.4px; }
.big-st-assigned { background: rgba(var(--periwinkle-rgb), 0.16); color: var(--periwinkle-text); }
.big-st-prog { background: rgba(var(--amber-rgb), 0.16); color: var(--amber-text); }
.big-st-done { background: rgba(var(--accent-rgb), 0.16); color: var(--accent-hover); }

.big-cs-pending { background: rgba(var(--amber-rgb), 0.18); color: var(--amber-text); }
.big-cs-approved { background: rgba(var(--accent-rgb), 0.18); color: var(--accent-hover); }
.big-cs-returned { background: rgba(var(--return-tint-rgb), 0.18); color: var(--danger-text); }
.big-return-note { margin: 6px 12px 0; padding: 7px 10px; border-radius: 8px; font-size: var(--fs-xs);
  background: rgba(var(--return-tint-rgb), 0.10); color: var(--text); border-inline-start: 3px solid rgba(var(--return-tint-rgb), 0.55);
  unicode-bidi: plaintext; }
.rev-open-kids { color: var(--amber-text); font-weight: 600; }
.big-meta { font-size: var(--fs-xs); }
.big-createdby { font-size: var(--fs-xs); margin-top: 2px; }
.big-pts { color: var(--accent-hover); font-weight: 700; }

.big-overdue { color: var(--danger-text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; font-size: var(--fs-2xs); }
.big-progress { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.big-progress-bar { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.25s ease; }
.big-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.big-kids { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; border-top: 1px dashed var(--border); padding-top: 8px; }
.big-desc { font-size: var(--fs-xs); margin: 0 0 4px; }
.big-kid {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-xs);
}
.big-kid-title { flex: 1; min-width: 0; }
.big-kid-who { flex: 0 0 auto; font-size: var(--fs-xs); max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.big-kid-st { flex: 0 0 auto; font-size: var(--fs-xs); font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.big-kid.k-done { border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.06); }
.big-kid.k-done .big-kid-st { background: rgba(var(--accent-rgb), 0.16); color: var(--accent-hover); }
.big-kid.k-prog .big-kid-st { background: rgba(var(--amber-rgb), 0.16); color: var(--amber-text); }
.big-kid.k-review .big-kid-st { background: rgba(var(--warn-tint-rgb), 0.18); color: var(--warn-text); }
.big-empty { padding: 6px 4px; font-size: var(--fs-xs); }
@media (max-width: 640px) { .big-board { grid-template-columns: 1fr; } }




.dl-due-red { background: var(--danger-bg); color: var(--danger-text); border-color: rgba(var(--danger-tint-rgb), 0.45) !important; font-weight: 700; }
.dl-due-orange { background: var(--warn-bg); color: var(--warn-text); border-color: rgba(var(--warn-tint-rgb), 0.45) !important; font-weight: 700; }
.big-due.dl-due-red, .big-due.dl-due-orange { padding: 1px 7px; border-radius: 999px; }
.tl-due { background: var(--raised-chip); border: 1px solid var(--no-line); }   



.tl-type { font-weight: 700; letter-spacing: 0.2px; }
.tl-type-project { background: var(--success-bg); color: var(--success-text); }
.tl-type-delivery { background: var(--info-bg); color: var(--info-text); }
.tl-type-installation { background: var(--purple-bg); color: var(--purple-text); }
.tl-type-pickup { background: var(--warn-bg); color: var(--warn-text); }


.cal-breakdown { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--border); }
.cal-bd-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cal-bd-add { border-style: dashed; }
.cal-bd-progress { font-size: var(--fs-xs); }
.cal-bd-kids { display: flex; flex-direction: column; gap: 5px; }

.prod-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.prod-col {
  background: var(--sidebar-bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px; min-height: 120px;
}
.prod-col-head {
  font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.prod-count {
  font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 600; color: var(--muted);
  background: var(--surface-3); border-radius: 10px; padding: 1px 9px;
}
.prod-col-body { display: flex; flex-direction: column; gap: 10px; min-height: 60px; border-radius: 10px; transition: background var(--speed) ease; }
.prod-col-body.drag-over { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: 2px; }
.prod-col-empty { color: var(--muted); font-size: var(--fs-xs); padding: 16px 4px; text-align: center; }

.prod-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px;
  padding: 11px 12px; cursor: grab; box-shadow: var(--shadow-sm);
  transition: border-color var(--speed) ease, transform var(--speed) ease;
}
.prod-card:hover { border-color: var(--border-strong); }
.prod-card.dragging { opacity: 0.5; cursor: grabbing; }
.prod-card-top { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.prod-card-title { font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; }
.prod-auto-tag {
  font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent); padding: 1px 7px; border-radius: 9px; flex: 0 0 auto;
}
.prod-card-sub { font-size: var(--fs-xs); color: var(--muted); margin: 3px 0 6px; }
.prod-card-line { font-size: var(--fs-xs); color: var(--label); margin-top: 2px; }
.prod-card-line strong { color: var(--text); font-weight: 600; }
.prod-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.prod-leader { font-size: var(--fs-xs); color: var(--text); font-weight: 600; }
.prod-card-createdby { font-size: var(--fs-xs); margin-top: 4px; }

.prod-card-labor { font-size: var(--fs-xs); color: var(--label); margin-top: 4px; }
.prod-card-labor strong { color: var(--text); font-weight: 600; }
.assign-labor-field .labor-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.labor-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 5px 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); font-weight: 600; }
.labor-chip-x { border: none; background: rgba(255, 255, 255, 0.16); color: inherit; width: 18px; height: 18px; border-radius: 50%;
  cursor: pointer; font-size: var(--fs-xs); line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.labor-chip-x:hover { background: var(--danger); color: #fff; }
@media (max-width: 768px) {
  .labor-chip { min-height: 32px; }
  .labor-chip-x { width: 26px; height: 26px; }
  #pfield-labor-add { min-height: 44px; }
}
.prod-deadline { font-size: var(--fs-xs); color: var(--muted); background: var(--surface-3); padding: 2px 8px; border-radius: 9px; white-space: nowrap; }
.prod-deadline-overdue { background: var(--danger-bg); color: var(--danger-text); font-weight: 600; }
.prod-deadline-soon { background: var(--warn-bg); color: var(--warn-text); font-weight: 600; }
.prod-deadline-none { font-style: italic; }

.prod-card-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }

.prod-item-count { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.prod-card-jobs { color: var(--accent); font-weight: 600; }
.prod-item-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.prod-item { display: flex; gap: 10px; align-items: flex-start; }
.prod-item-body { flex: 1 1 auto; min-width: 0; }
.prod-item-name { font-weight: 600; }
.prod-item-meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.prod-status-btn {
  flex: 1; font-size: var(--fs-xs); padding: 5px 4px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--no-line); background: var(--tonal); color: var(--muted);   
  transition: all var(--speed) ease;
}
.prod-status-btn:hover { background: var(--tonal-hover); color: var(--text); }
.prod-status-btn.active { background: var(--tonal-on); color: var(--tonal-on-text); border-color: var(--no-line); font-weight: 700; }   


.prod-status-btn.is-busy { opacity: .55; pointer-events: none; }

.ga-preset.is-on::before, .prod-status-btn.active::before, .pill-btn.active::before, .staff-filter-chip.active::before,
.qt2-chip.is-on::before, .toggle-active::before {
  content: ''; display: inline-block; flex: none; width: 0.95em; height: 0.95em; margin-inline-end: 6px; vertical-align: -0.12em;
  background-color: currentColor;
  -webkit-mask: var(--ico-check) center / contain no-repeat; mask: var(--ico-check) center / contain no-repeat;
}
.prod-status-btn.is-busy::after {
  content: ''; display: inline-block; width: 10px; height: 10px; margin-inline-start: 6px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  vertical-align: -1px; animation: statusBtnSpin .7s linear infinite;
}
@keyframes statusBtnSpin { to { transform: rotate(360deg); } }


.prod-detail-meta { font-size: var(--fs-sm); margin-bottom: 10px; }
.prod-detail-spec { margin-bottom: 14px; padding: 12px; background: var(--surface-3); border-radius: 11px; }
.prod-spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; margin: 0; }
.prod-spec-list div { display: flex; flex-direction: column; }
.prod-spec-list dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.prod-spec-list dd { margin: 0; font-size: var(--fs-sm); color: var(--text); }
.prod-spec-block { margin-top: 12px; }
.prod-spec-block ul { margin: 4px 0 0; padding-left: 18px; font-size: var(--fs-sm); }
.prod-spec-block p { margin: 4px 0 0; font-size: var(--fs-sm); }

@media (max-width: 760px) {
  


  .prod-board { grid-template-columns: 1fr; overflow-x: visible; gap: 14px; padding-bottom: 0; }
  .prod-col { min-height: 0; }
  .prod-status-btn { min-height: 44px; }
  .prod-filters select, .prod-filters .ready-search { flex: 1 1 100%; min-height: 44px; }
  .prod-quick { width: 100%; }
  .prod-quick .btn-sm { flex: 1; min-height: 44px; }
  .prod-spec-list { grid-template-columns: 1fr; }
}




.placeholder {
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  padding: 64px 24px;
  text-align: center;
  background: var(--sidebar-bg);
}
.placeholder-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 6px; color: var(--text); }




.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(var(--scrim-rgb), 0.66);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  z-index: 50;
}
.modal-overlay.open { display: flex; animation: overlayFade 0.18s ease both; }

.modal {
  
  background: rgba(var(--glass-rgb), 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid var(--no-line);   
  border-radius: var(--r-28);
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--elev-3);
  max-height: 90vh;
  



  max-height: 90dvh;
  overflow-y: auto;
  



  margin-block: auto;
}
.modal-overlay.open .modal { animation: modalPop 0.2s cubic-bezier(0.2, 0.7, 0.3, 1) both; }












.modal-overlay {
  --sa-top: max(24px, calc(env(safe-area-inset-top) + 8px));
  --sa-bottom: max(24px, calc(env(safe-area-inset-bottom) + 8px));
  padding-block: var(--sa-top) var(--sa-bottom);
}
.modal { max-height: min(90dvh, calc(100dvh - var(--sa-top) - var(--sa-bottom))); }
.modal > .modal-header:not(.order-modal-header) {
  position: sticky; top: 0; z-index: 5;
  background: rgb(var(--glass-rgb));
  box-shadow: 0 -24px 0 0 rgb(var(--glass-rgb)), -24px 0 0 0 rgb(var(--glass-rgb)), 24px 0 0 0 rgb(var(--glass-rgb)),
    -24px -24px 0 0 rgb(var(--glass-rgb)), 24px -24px 0 0 rgb(var(--glass-rgb));
}


.modal .modal-actions:not(:has(~ .modal-actions)):not(.wizard-actions):not(.jr-actions) {
  position: sticky; bottom: 0; z-index: 5;
  padding-block-start: 10px;
  background: rgb(var(--glass-rgb));
  box-shadow: 0 24px 0 0 rgb(var(--glass-rgb)), -24px 0 0 0 rgb(var(--glass-rgb)), 24px 0 0 0 rgb(var(--glass-rgb)),
    -24px 24px 0 0 rgb(var(--glass-rgb)), 24px 24px 0 0 rgb(var(--glass-rgb));
}

.modal.modal-sm { max-width: 380px; }

.mistake-modal > input:not([type="file"]) {
  display: block; width: 100%; min-width: 0; margin-block-end: 12px;
  border: 1px solid var(--border-strong); border-radius: 10px; padding-block: 9px; padding-inline: 11px;
  background: var(--input-bg); color: var(--text); font: inherit;
}
.mistake-modal > input:not([type="file"]):focus { outline: none; border-color: var(--accent); box-shadow: var(--glow-soft); }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.modal-header h2 { margin: 0; font-size: 21px; font-family: var(--font-display); font-weight: 600; }

.modal-close {
  border: none; background: none;
  font-size: 26px; line-height: 1; cursor: pointer;
  color: var(--muted);
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  margin: -10px -10px -10px 0;
  border-radius: var(--r-capsule);   
  transition: background var(--speed) ease, color var(--speed) ease;
}
.modal-close:hover { background: var(--surface-3); color: var(--text); }

.field { display: block; margin-bottom: 14px; --field-bg: var(--field-fill); --field-edge: var(--no-line); }   



.field[hidden] { display: none; }
.field > span { display: block; font-size: var(--fs-xs); color: var(--label); margin-bottom: 6px; font-weight: 500; }
.field em { color: var(--danger-text); font-style: normal; }
.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  padding: 9px 11px;
  border: 1px solid var(--field-edge);   
  border-radius: var(--r-14);
  resize: vertical;
  background: var(--field-bg);
  color: var(--text);
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  --field-edge: var(--accent);   
  --field-bg: var(--field-fill-focus);
  border-color: var(--accent);
  box-shadow: var(--focus-ring), var(--glow-soft);
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239BA896' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
  padding-inline-end: 32px;   
}



[dir="rtl"] .field select { background-position: left 10px center; }

.form-error {
  background: var(--danger-bg);
  color: var(--danger-text);
  padding: 10px 13px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: var(--fs-sm);
  border: 1px solid rgba(var(--danger-tint-rgb), 0.35);
  animation: bannerIn 0.2s ease both;
}

.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }


.modal.print-choose { max-width: 340px; }
.print-choose-opts { display: flex; flex-direction: column; gap: 12px; }
.print-choose-opts .print-choose-btn { width: 100%; min-height: 48px; font-size: var(--fs-md); justify-content: center; }




.modal-wide { max-width: 780px; }

.form-section {
  border: 1px solid var(--no-line);   
  border-radius: var(--r-18);
  padding: 16px 16px 6px;
  margin: 0 0 16px;
  background: rgba(255, 255, 255, 0.03);
}
.form-section > legend {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--accent);
  padding: 2px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}
.field-grid .field { margin-bottom: 0; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
  margin: 4px 0 12px;
}
.check { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); cursor: pointer; color: var(--label); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.readonly-calc { background: rgba(var(--accent-rgb), 0.1) !important; color: var(--text); font-weight: 700; }

.item-variety-readonly { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); font-size: var(--fs-sm); }

.is-hidden { display: none !important; }

.order-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px;
  margin-bottom: 12px;
  background: var(--sidebar-bg);
  transition: border-color var(--speed) ease;
}
.order-item:hover { border-color: var(--border-strong); }

.order-item-collapsed-row { display: none; }
.order-item.is-collapsed { padding: 9px 14px; }
.order-item.is-collapsed > *:not(.order-item-collapsed-row) { display: none !important; }
.order-item.is-collapsed .order-item-collapsed-row {
  display: flex; align-items: center; gap: 10px;
}
.order-item-collapsed-name {
  flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: var(--fs-sm); color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.order-item-collapsed-actions { flex: 0 0 auto; display: inline-flex; gap: 6px; }
.order-item-collapsed-actions .btn { padding: 4px 12px; }
.item-collapse-del:hover { border-color: var(--danger); color: var(--danger-text); }
.order-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.order-item-title { font-weight: 600; font-size: var(--fs-sm); color: var(--accent); }
.item-remove {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--danger-text);
  width: 30px; height: 30px;
  border-radius: 9px;
  font-size: 18px; line-height: 1;
  cursor: pointer;
  transition: background var(--speed) ease, border-color var(--speed) ease;
}
.item-remove:hover { background: var(--danger-bg); border-color: rgba(var(--brick-rgb), 0.4); }

#add-item-btn { margin-bottom: 8px; }

.sched-hint { margin-top: 0; font-size: var(--fs-xs); }

.fulfillment-pick { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.fulfillment-q { font-weight: 600; font-size: var(--fs-xs); color: var(--text); }
.fulfillment-inshop-note { margin: 4px 0 0; font-size: var(--fs-xs); padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.pill-inshop { background: var(--purple-bg); color: var(--purple-text); }

.pill-due { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.pill-due.is-late { background: var(--danger-bg); color: var(--danger-text); border-color: transparent; }
.cp-promised { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
.promised-day-field small { display: block; margin-top: 4px; font-size: var(--fs-xs); }
.sched-jobs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px 16px;
  margin-bottom: 12px;
}
.sched-job { display: flex; align-items: center; gap: 10px; }
.sched-job .check { flex: 0 0 120px; }
.sched-date {
  flex: 1; min-width: 0;
  font: inherit;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease;
}
.sched-date:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2); }
.sched-leader { max-width: 320px; }


.sched-target { max-width: 320px; border-inline-start: 3px solid var(--accent); padding-inline-start: 10px; margin-top: 10px; }
.sched-target input[type="date"] { max-width: 220px; }


.sched-typepicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.sched-typepicker-label { font-weight: 600; color: var(--muted); font-size: var(--fs-xs); margin-right: 2px; }
.sched-type.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }


.sched-layout {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px;
  margin-bottom: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface-3);
}
.sched-joblist { display: flex; flex-direction: column; gap: 6px; }
.sched-joblist-head { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.sched-joblist-empty { font-size: var(--fs-xs); margin: 4px 0 0; }
.sched-job-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--border-strong); border-radius: 10px; background: var(--input-bg);
  cursor: pointer; font: inherit; text-align: left; width: 100%;
}
.sched-job-row:hover { border-color: var(--accent); }
.sched-job-row.is-pen { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sched-job-type { font-weight: 700; flex: 0 0 auto; }
.sched-job-date { font-size: var(--fs-xs); color: var(--label); flex: 1 1 auto; }
.sched-job-unscheduled { font-style: italic; color: var(--warn-text); }
.sched-job-actions { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.sched-job-clear { font-size: var(--fs-xs); background: none; border: none; color: var(--muted); cursor: pointer; text-decoration: underline; padding: 2px; }
.sched-job-clear:hover { color: var(--accent); }
.sched-job-remove { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; font-size: var(--fs-md); line-height: 1; border: none; background: rgba(0, 0, 0, 0.10); color: var(--text); cursor: pointer; }
.sched-job-remove:hover { background: var(--danger); color: #fff; }

.minical-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.minical-title { font-weight: 700; font-size: var(--fs-sm); }
.minical-nav { width: 34px; height: 34px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--input-bg); color: var(--text); cursor: pointer; font-size: 17px; line-height: 1; }
.minical-nav:hover { border-color: var(--accent); }
.minical-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.minical-wd { text-align: center; font-size: var(--fs-xs); color: var(--muted); padding: 2px 0; font-weight: 700; }

.minical-empty { min-height: 84px; }
.minical-day { position: relative; min-height: 84px; display: flex; flex-direction: column; align-items: stretch; gap: 3px;
  border: 1px solid var(--border); border-radius: 9px; background: var(--input-bg); color: var(--text);
  cursor: pointer; font: inherit; padding: 5px 6px; text-align: left; overflow: hidden; }
.minical-day:hover { border-color: var(--accent); }



.minical-day.is-today { box-shadow: inset 0 0 0 2px var(--gold); font-weight: 700; }
.minical-day.is-today:not(.is-active-sel) { background: rgba(var(--warn-tint-rgb), 0.16); }
.minical-day.is-today:not(.is-active-sel) .minical-daynum { color: var(--warn-text); }
.minical-day.has-jobs { background: var(--accent-soft); }
.minical-day.is-assigned { border-color: var(--accent); }
.minical-day.is-active-sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.minical-daynum { font-size: var(--fs-xs); font-weight: 700; align-self: flex-start; }


.minical-day-badged { align-items: center; justify-content: flex-start; }
.minical-day-badged .minical-daynum { position: absolute; top: 5px; left: 7px; }
.minical-count {
  margin-top: auto; margin-bottom: 6px; min-width: 26px; height: 26px; padding: 0 7px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: var(--fs-sm); font-weight: 800; line-height: 1;
}
.minical-count.is-mine { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.minical-day.is-active-sel .minical-count { background: var(--accent-ink); color: var(--accent); }
.minical-foot { margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); }


.minical-info {
  position: absolute; top: 2px; right: 2px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: var(--fs-2xs); font-weight: 800; font-style: italic; line-height: 1;
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
  opacity: 0.85; transition: opacity var(--speed) ease, transform var(--speed) ease;
}
.minical-info:hover { opacity: 1; transform: scale(1.12); }
.minical-day.is-active-sel .minical-info { background: var(--accent-ink); color: var(--accent); }

.sched-daypop { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sched-daypop[hidden] { display: none; }
.sched-daypop-backdrop { position: absolute; inset: 0; background: rgba(var(--scrim-rgb), 0.6); }
.sched-daypop-panel {
  position: relative; width: min(420px, 100%); max-height: 80vh; overflow: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); padding: 16px 18px;
}
.sched-daypop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sched-daypop-head h4 { margin: 0; font-size: var(--fs-md); }
.sched-daypop-close { width: 32px; height: 32px; border: none; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 8px; }
.sched-daypop-close:hover { background: var(--surface-3); color: var(--text); }
.sched-daypop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sched-daypop-item {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-3); font-size: var(--fs-xs);
}
.sched-daypop-type {
  font-weight: 700; font-size: var(--fs-2xs); padding: 2px 8px; border-radius: 999px;
  border-left: 3px solid var(--neutral-text); background: var(--input-bg); color: var(--text);
}
.sched-daypop-type[data-type="Installation"] { border-left-color: var(--info-text); }
.sched-daypop-type[data-type="Delivery"]     { border-left-color: var(--success-text); }
.sched-daypop-type[data-type="Maintenance"]  { border-left-color: var(--warn-text); }
.sched-daypop-type[data-type="Site Survey"]  { border-left-color: var(--purple-text); }
.sched-daypop-type[data-type="Pickup"]       { border-left-color: var(--pickup-text); }
.sched-daypop-item-mine { background: var(--accent-soft); border-color: var(--accent); }
.sched-daypop-client { font-weight: 600; flex: 1 1 auto; min-width: 0; }
.sched-daypop-order { color: var(--muted); font-variant-numeric: tabular-nums; }
.sched-daypop-empty { margin: 4px 0; font-size: var(--fs-xs); }
.sched-daypop-foot { margin-top: 12px; display: flex; justify-content: flex-end; }
.sched-daypop-foot button[hidden] { display: none; }

.sched-daypop-section { margin-bottom: 14px; }
.sched-daypop-section:last-child { margin-bottom: 0; }
.sched-daypop-subhead { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); margin-bottom: 7px; }
.sched-choose { display: flex; flex-wrap: wrap; gap: 8px; }
.sched-choose-btn {
  min-height: 44px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--input-bg); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
  transition: background var(--speed) ease, border-color var(--speed) ease, color var(--speed) ease;
}
.sched-choose-btn:hover { border-color: var(--accent); }
.sched-choose-btn.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.sched-choose-move { font-size: var(--fs-2xs); font-weight: 500; opacity: 0.8; }
.sched-daypop-mine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sched-daypop-mine li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--accent-soft); }
.sched-daypop-mine .sched-daypop-type { flex: 1 1 auto; }
.sched-daypop-remove { width: 30px; height: 30px; min-height: 30px; border: none; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 8px; }
.sched-daypop-remove:hover { background: var(--danger-bg); color: var(--danger-text); }

.brand-auto-label {
  margin: 0; padding: 9px 11px; font-size: var(--fs-sm); font-weight: 600; color: var(--text);
  background: var(--surface-3); border: 1px solid var(--border); border-radius: 10px;
}
.brand-auto-label.brand-unset { font-weight: 400; font-style: italic; color: var(--muted); }

.task-chip .auto-tag {
  font-size: var(--fs-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
  opacity: 0.85; margin-left: 3px;
}
.pill-auto { background: var(--purple-bg); color: var(--purple-text); }


.client-picker-field { grid-column: 1 / -1; }
.client-picker { position: relative; }
.client-picker-row { display: flex; gap: 8px; align-items: stretch; }
.client-search {
  flex: 1 1 auto; min-width: 0;
  font: inherit;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease;
}
.client-search::placeholder { color: var(--muted); opacity: 0.8; }
.client-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.22); }
.client-picker-row .btn-sm { flex: 0 0 auto; white-space: nowrap; }

.client-results {
  list-style: none; margin: 6px 0 0; padding: 4px;
  position: absolute; left: 0; right: 0; top: 100%;
  z-index: 5;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 264px; overflow-y: auto;
}
.client-result {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 1px;
}
.client-result:hover, .client-result.active { background: var(--accent-soft); }
.client-result-name { font-weight: 600; font-size: var(--fs-sm); }
.client-result-meta { font-size: var(--fs-xs); color: var(--muted); }
.client-result-empty { padding: 12px 10px; color: var(--muted); font-size: var(--fs-xs); }



.client-result { min-height: 40px; justify-content: center; }
.client-result-add .client-result-name { color: var(--accent); }
.client-search-wrap { position: relative; flex: 1 1 auto; display: flex; min-width: 0; }
.client-search-wrap .client-search { width: 100%; }
.client-clear {
  position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; background: var(--surface-3); color: var(--muted);
  font-size: 17px; line-height: 1; cursor: pointer;
}
.client-clear:hover { color: var(--text); }
@media (max-width: 640px) {
  .client-results { max-height: 45vh; }
}

.client-addr-ref {
  margin: 10px 0 0;
  font-size: var(--fs-xs);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  line-height: 1.45;
}
.client-addr-ref strong { color: var(--label); font-weight: 600; }


#modal-overlay { z-index: 60; }





#payment-modal-overlay { z-index: 70; }





#job-report-overlay { z-index: 1200; }


.item-search { position: relative; margin-bottom: 10px; }
.item-search-input {
  width: 100%; font: inherit;
  padding: 9px 11px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease;
}
.item-search-input::placeholder { color: var(--muted); opacity: 0.85; }
.item-search-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.22); }
.item-search-results {
  list-style: none; margin: 6px 0 0; padding: 4px;
  position: absolute; left: 0; right: 0; top: 100%;
  z-index: 6;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 264px; overflow-y: auto;
}
.item-result { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.item-result:hover, .item-result.active { background: var(--accent-soft); }
.item-result-name { font-weight: 600; font-size: var(--fs-sm); }
.item-result-meta { font-size: var(--fs-xs); color: var(--muted); }
.item-result-empty { padding: 12px 10px; color: var(--muted); font-size: var(--fs-xs); }
.browse-manual-hint { font-size: var(--fs-xs); color: var(--muted); margin: 0 0 8px; }


.pill-group { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-btn {
  font: inherit; font-size: var(--fs-xs);
  padding: 7px 13px;
  border: 1px solid var(--no-line);   
  border-radius: 999px;
  background: var(--tonal);
  color: var(--label);
  cursor: pointer;
  transition: background var(--speed) ease, border-color var(--speed) ease, color var(--speed) ease, box-shadow var(--speed) ease, transform 120ms ease;
}
.pill-btn:hover { background: var(--tonal-hover); border-color: var(--no-line); color: var(--text); }
.pill-btn:active { transform: translateY(1px) scale(0.98); }
.pill-btn.active {
  background: var(--tonal-on); border-color: var(--no-line); color: var(--tonal-on-text); font-weight: 700;   
  box-shadow: none;
}
.pill-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill-group.pill-disabled .pill-btn { opacity: 0.65; cursor: default; pointer-events: none; }




.catalog-intro { margin: -8px 0 18px; max-width: 70ch; }

.catalog-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.catalog-col {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px 8px;
  background: var(--sidebar-bg);
  box-shadow: var(--shadow-sm);
}
.catalog-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.catalog-col-head h2 { font-size: var(--fs-md); margin: 0; font-family: var(--font-display); font-weight: 600; }

.btn-sm { padding: 6px 11px; font-size: var(--fs-xs); }

.catalog-list { list-style: none; margin: 0; padding: 0; }
.catalog-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 8px;
  border-bottom: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  flex-wrap: wrap;
  transition: background var(--speed) ease;
}
.catalog-item:hover { background: var(--surface-3); }
.catalog-item.selected { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.catalog-item[data-type="product-type"] { cursor: default; }
.catalog-item-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-size: var(--fs-sm); }
.catalog-item.is-inactive .catalog-item-name { color: var(--muted); }
.catalog-item .tag { font-size: var(--fs-xs); background: var(--neutral-bg); color: var(--neutral-text); padding: 1px 8px; border-radius: 10px; }
.catalog-item-defaults { font-size: var(--fs-2xs); color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.catalog-item-actions { display: flex; gap: 2px; flex: 0 0 auto; }
.catalog-empty { padding: 10px 6px; }




.calendar-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-title { font-family: var(--font-display); font-weight: 600; min-width: 165px; text-align: center; font-size: 18px; }
.cal-view-toggle { display: flex; }
.cal-view-toggle .btn-sm { border-radius: 0; }
.cal-view-toggle .btn-sm:first-child { border-radius: 10px 0 0 10px; }
.cal-view-toggle .btn-sm:last-child { border-radius: 0 10px 10px 0; border-left: none; }
.toggle-active { background: var(--tonal-on); border-color: var(--no-line); color: var(--tonal-on-text); font-weight: 700; }   
.toggle-active:hover { background: var(--tonal-on-hover); border-color: var(--no-line); }



.agenda-jump { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.agenda-jump-label { font-size: var(--fs-xs); color: var(--muted); }
.agenda-from-input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: var(--surface); color: var(--text); min-height: 40px; }
.agenda-list { display: flex; flex-direction: column; }
.agenda-day { margin-bottom: 16px; }
.agenda-day-head {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--text);
  padding: 8px 2px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.agenda-job {
  display: flex; flex-direction: column; gap: 4px; width: 100%; min-height: 44px;
  padding: 11px 13px; margin-bottom: 8px; text-align: left; cursor: pointer;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
  transition: background var(--speed) ease, border-color var(--speed) ease;
}
.agenda-job:hover, .agenda-job:active { background: var(--surface-3); border-color: var(--accent); }
.agenda-job-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.agenda-job-client { font-weight: 600; color: var(--text); }
.agenda-job-sub { font-size: var(--fs-xs); color: var(--muted); }
.agenda-empty { color: var(--muted); text-align: center; padding: 28px 0; }

.cal-day-body { display: flex; flex-direction: column; gap: 8px; }
.cal-day-count { font-size: var(--fs-xs); }
.cal-day-list { display: flex; flex-direction: column; gap: 8px; }
.cal-day-job {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px;
  padding: 11px 13px; text-align: start; cursor: pointer; color: var(--text); font: inherit;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
  transition: background var(--speed) ease, border-color var(--speed) ease;
}
.cal-day-job:hover, .cal-day-job:active { background: var(--surface-3); border-color: var(--accent); }
.cal-day-job .task-chip { flex: 0 0 auto; max-width: 40%; }
.cal-day-job-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cal-day-job-who { font-weight: 600; overflow-wrap: anywhere; }
.cal-day-job-sub { font-size: var(--fs-xs); overflow-wrap: anywhere; }
.cal-day-job-status { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.cal-day-job.is-done { opacity: 0.8; }
.cal-day-add { align-self: flex-start; margin-top: 4px; }


.visit-chip {
  font-size: var(--fs-2xs); line-height: 1.35; padding: 3px 7px; border-radius: 7px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--purple-bg); color: var(--purple-text); border: 1px dashed var(--purple-text);
}
.visit-chip.is-confirmed { border-style: solid; }
.visit-chip.is-completed, .visit-chip.is-no_show { opacity: 0.65; }
.visit-chip.is-no_show { text-decoration: line-through; }
.visit-chip-ico { margin-inline-end: 3px; font-size: var(--fs-2xs); }
.cal-day-vhead { font-size: var(--fs-sm); margin: 10px 0 2px; color: var(--purple-text); }
.cal-day-voff { font-size: var(--fs-xs); padding: 6px 0; }
.cal-day-visit, .agenda-visit {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 11px 13px; text-align: start;
  cursor: pointer; color: var(--text); font: inherit; border: 1px dashed var(--purple-text); border-radius: 12px;
  background: var(--surface-2); transition: background var(--speed) ease;
}
.agenda-visit { flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 8px; }
.cal-day-visit.is-confirmed, .agenda-visit.is-confirmed { border-style: solid; }
.cal-day-visit:hover, .agenda-visit:hover { background: var(--surface-3); }
.visit-time { flex: 0 0 auto; font-weight: 600; color: var(--purple-text); font-variant-numeric: tabular-nums; }
.visit-pill { background: var(--purple-bg); color: var(--purple-text); }
.visit-pill.is-pending, .visit-pill.is-proposed { background: var(--warn-bg); color: var(--warn-text); }
.visit-pill.is-completed, .visit-pill.is-no_show { background: var(--neutral-bg); color: var(--neutral-text); }
.visit-body { display: flex; flex-direction: column; gap: 10px; }
.visit-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.visit-who { font-size: 17px; overflow-wrap: anywhere; }

.visit-name { unicode-bidi: plaintext; font-weight: 600; }
.visit-contact { display: flex; gap: 8px; flex-wrap: wrap; }

.visit-confirm { margin: 10px 0 6px; padding: 10px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.visit-avail { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: var(--fs-sm); }
.visit-avail-name { flex: 1 1 100%; font-weight: 600; }
.visit-ready, .visit-avail label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.visit-line { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); }
.visit-k { font-size: var(--fs-xs); color: var(--muted); }
.visit-v { overflow-wrap: anywhere; white-space: pre-wrap; }
.visit-how { font-size: var(--fs-xs); margin: 4px 0 0; }
.visit-body a.btn { text-decoration: none; }



.calendar-grid-wrap { overflow-x: auto; border-radius: 16px; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.cal-weekday {
  background: var(--surface-3);
  padding: 8px 4px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.4px;
  color: var(--muted); text-align: center;
}
.cal-day {
  background: var(--sidebar-bg);
  min-height: 100px;
  padding: 6px 7px;
  display: flex; flex-direction: column; gap: 3px;
  cursor: pointer;
  transition: background var(--speed) ease;
}
.cal-day.cal-empty { background: rgba(255, 255, 255, 0.04); cursor: default; }
.cal-day:not(.cal-empty):hover { background: var(--surface-3); }
.cal-day-num { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); align-self: flex-start; }
.cal-day.cal-today .cal-day-num {
  background: var(--accent); color: var(--accent-ink);
  border-radius: 50%; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}

.task-chip {
  font-size: var(--fs-2xs); line-height: 1.35;
  padding: 3px 7px;
  border-radius: 7px;
  border-left: 3px solid;
  cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform 120ms ease, filter var(--speed) ease;
}
.task-chip:hover { filter: brightness(0.97); transform: translateY(-1px); }
.task-chip[data-type="Installation"] { background: var(--info-bg);    color: var(--info-text);    border-color: var(--info-text); }
.task-chip[data-type="Delivery"]     { background: var(--success-bg); color: var(--success-text); border-color: var(--success-text); }
.task-chip[data-type="Maintenance"]  { background: var(--warn-bg);    color: var(--warn-text);    border-color: var(--warn-text); }
.task-chip[data-type="Site Survey"]  { background: var(--purple-bg);  color: var(--purple-text);  border-color: var(--purple-text); }
.task-chip[data-type="Pickup"]       { background: var(--pickup-bg);  color: var(--pickup-text);  border-color: var(--pickup-text); }
.task-chip[data-type="Pending"]      { background: var(--neutral-bg); color: var(--neutral-text); border-color: var(--neutral-text); }


.task-chip.is-done {
  text-decoration: line-through; opacity: 0.72;
  background: var(--success-bg) !important; color: var(--success-text) !important;
  border-color: var(--success-text) !important;
}
.chip-done-tick { text-decoration: none; font-weight: 800; margin-inline-end: 3px; }
.task-chip.is-progress { box-shadow: inset 0 0 0 1px var(--accent); }
.task-chip.needs-review { box-shadow: inset 0 0 0 1px var(--danger); }

.agenda-job.is-done { border-inline-start: 4px solid var(--success-text); background: color-mix(in srgb, var(--success-bg) 45%, transparent); }
.agenda-job.is-done .agenda-job-client { color: var(--muted); text-decoration: line-through; }
.agenda-done-badge { display: inline-block; margin-inline-start: 8px; font-size: var(--fs-2xs); font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--success-bg); color: var(--success-text); }

.pill { display: inline-block; font-size: var(--fs-2xs); padding: 2px 9px; border-radius: 10px; font-weight: 600; margin-right: 4px; }
.pill-done     { background: var(--success-bg); color: var(--success-text); }
.pill-pending  { background: var(--neutral-bg); color: var(--neutral-text); }
.pill-progress { background: var(--accent-soft); color: var(--accent); }
.pill-review   { background: var(--danger-bg);  color: var(--danger-text); }


.needs-sched { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin-bottom: 12px;
  background: var(--accent-soft); border: 1px solid var(--border); border-radius: 10px; }
.needs-sched-label { font-weight: 700; font-size: var(--fs-xs); color: var(--accent); }
.needs-sched-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.needs-sched-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 4px 8px; cursor: pointer; font: inherit; }
.needs-sched-chip:hover { border-color: var(--accent); }
.needs-sched-order { font-size: var(--fs-xs); color: var(--muted); }




body:not(.authed) .topbar,
body:not(.authed) .sidebar,
body:not(.authed) .content { display: none !important; }

#login-screen { display: none; }
body.guest #login-screen {
  display: flex;
  position: fixed; inset: 0;
  align-items: center; justify-content: center;
  padding: 24px;
  z-index: 100;
  
  background:
    radial-gradient(900px 620px at 16% -8%, rgba(var(--accent-rgb), 0.14), transparent 60%),
    radial-gradient(760px 600px at 108% 112%, rgba(var(--clay-rgb), 0.10), transparent 60%),
    rgba(var(--scrim-login-rgb), 0.6);
}

body.guest .art { opacity: 0.2; }
body.guest .blob { opacity: 0.24; }

.login-card {
  position: relative;
  width: 100%; max-width: 380px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 30px;
  background: rgba(var(--chrome-rgb), 0.88);
  box-shadow: var(--shadow), var(--glow-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: modalPop 0.35s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.login-card::before {
  content: "";
  position: absolute; left: 30px; right: 30px; top: 0;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.login-brand {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--text);
}
.login-sub { color: var(--muted); margin: 8px 0 22px; font-size: var(--fs-sm); }
.login-card .field input { min-height: 46px; font-size: var(--fs-lg); }
.login-btn {
  width: 100%; min-height: 46px; margin-top: 10px;
  box-shadow: 0 8px 22px -8px rgba(var(--accent-rgb), 0.6);
}
.login-btn:hover { box-shadow: 0 10px 26px -8px rgba(var(--accent-rgb), 0.8); }


.sidebar-footer {
  

  flex: 0 0 auto;
  margin: 0 12px;
  padding: 14px 14px 4px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, var(--sidebar-bg) 30%);
  display: flex; flex-direction: column; gap: 10px;
}
.user-info { display: flex; flex-direction: column; line-height: 1.3; }
.user-name { font-weight: 600; font-size: var(--fs-sm); word-break: break-word; }
.user-role { font-size: var(--fs-2xs); color: var(--accent); text-transform: capitalize; }
.sidebar-footer #logout-btn { align-self: flex-start; }

.field-hint { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }




@keyframes modalPop { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes overlayFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bannerIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes viewFade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }






@keyframes pillPop   { 0% { transform: scale(0.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes itemIn    { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes itemOut   { to { opacity: 0; transform: translateY(-6px) scale(0.98); } }
@keyframes stepIn    { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes gridIn    { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes bannerOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes checkPop  { 0% { transform: scale(0); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes valuePulse { 0% { box-shadow: 0 0 0 3px var(--accent-soft); } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes confettiFly { from { opacity: 1; transform: translate(0, 0) rotate(0); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(220deg); } }


.btn { transition: background var(--dur-base) ease, border-color var(--dur-base) ease, transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) ease, filter var(--dur-fast) ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn:active { transform: translateY(0) scale(0.96); transition-duration: var(--dur-fast); }
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(var(--accent-rgb), 0.78); }
.btn-link { transition: color var(--dur-base) ease, background var(--dur-base) ease, transform var(--dur-fast) var(--ease-spring); }
.btn-link:hover { transform: translateY(-1px); }
.btn-link:active { transform: scale(0.94); }
.modal-close { transition: transform var(--dur-fast) var(--ease-spring), color var(--dur-base) ease; }
.modal-close:hover { transform: rotate(90deg) scale(1.1); }


.pill-btn, .sched-toggle, .toggle-active, .cp-preset, .prod-status-btn, .sched-chip {
  transition: background var(--dur-base) ease, border-color var(--dur-base) ease, color var(--dur-base) ease, box-shadow var(--dur-base) ease, transform var(--dur-base) var(--ease-spring);
}
.pill-btn.active, .sched-toggle.active, .toggle-active, .sched-chip.is-active, .prod-status-btn.active { animation: pillPop var(--dur-base) var(--ease-spring); }
.pill-btn:active, .sched-toggle:active, .prod-status-btn:active, .sched-chip:active, .cp-preset:active { transform: scale(0.95); }


.check input { transition: transform var(--dur-fast) var(--ease-spring); }
.check input:active { transform: scale(0.88); }
.check input:checked { animation: pillPop var(--dur-fast) var(--ease-spring); }


.modal-overlay { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-overlay.open { animation: overlayFade var(--dur-base) ease both; }
.modal-overlay.open .modal { animation: modalPop var(--dur-base) var(--ease-spring) both; }


:is(.data-table tbody tr, .catalog-item, .prod-card, .ready-card, .order-item, .cp-order, .cp-sum-card, .needs-sched-chip, .review-item) {
  animation: itemIn var(--dur-base) var(--ease-out) both;
}
:is(.data-table tbody tr, .catalog-item, .prod-card, .ready-card):nth-child(1) { animation-delay: 0ms; }
:is(.data-table tbody tr, .catalog-item, .prod-card, .ready-card):nth-child(2) { animation-delay: 28ms; }
:is(.data-table tbody tr, .catalog-item, .prod-card, .ready-card):nth-child(3) { animation-delay: 56ms; }
:is(.data-table tbody tr, .catalog-item, .prod-card, .ready-card):nth-child(4) { animation-delay: 84ms; }
:is(.data-table tbody tr, .catalog-item, .prod-card, .ready-card):nth-child(5) { animation-delay: 112ms; }
:is(.data-table tbody tr, .catalog-item, .prod-card, .ready-card):nth-child(6) { animation-delay: 140ms; }
:is(.data-table tbody tr, .catalog-item, .prod-card, .ready-card):nth-child(7) { animation-delay: 168ms; }
:is(.data-table tbody tr, .catalog-item, .prod-card, .ready-card):nth-child(8) { animation-delay: 196ms; }
:is(.data-table tbody tr, .catalog-item, .prod-card, .ready-card):nth-child(9) { animation-delay: 224ms; }
:is(.data-table tbody tr, .catalog-item, .prod-card, .ready-card):nth-child(10) { animation-delay: 252ms; }
:is(.data-table tbody tr, .catalog-item, .prod-card, .ready-card):nth-child(n+11) { animation-delay: 0ms; }
.data-table tbody tr:hover { background: var(--surface-3); }
.prod-card, .ready-card, .cp-sum-card { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) ease, border-color var(--dur-base) ease; }
.prod-card:hover, .ready-card:hover, .cp-sum-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.prod-card.dragging { opacity: 0.55; transform: scale(0.97) rotate(-1.5deg); }
.order-item.removing { animation: itemOut var(--dur-base) var(--ease-out) forwards; }


.banner.success::before { content: "\2713"; display: inline-block; margin-right: 8px; font-weight: 800;
  animation: checkPop var(--dur-slow) var(--ease-spring) both; }
.banner-leaving { animation: bannerOut var(--dur-base) ease forwards; }


.value-pulse { animation: valuePulse var(--dur-slow) var(--ease-out); }


.calendar-grid { animation: gridIn var(--dur-base) var(--ease-out) both; }
.task-chip { transition: transform var(--dur-fast) var(--ease-spring), filter var(--dur-fast) ease; }
.task-chip:hover { transform: scale(1.06); filter: brightness(1.04); }
.minical-day { transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-spring); }
.minical-day:active { transform: scale(0.92); }
.minical-day.is-active-sel, .minical-day.is-selected { animation: pillPop var(--dur-base) var(--ease-spring); }


.nav-link { transition: background var(--dur-base) ease, color var(--dur-base) ease, transform var(--dur-fast) var(--ease-spring); }
.nav-link:hover { transform: translateX(2px); }


.confetti-piece { position: fixed; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; z-index: 9999;
  animation: confettiFly 800ms var(--ease-out) forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}




.view-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.woo-body { display: flex; flex-direction: column; gap: 14px; }
.woo-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.woo-notice {
  padding: 14px 16px; border-radius: 11px; font-size: var(--fs-sm);
  background: var(--warn-bg); color: var(--warn-text); border: 1px solid rgba(var(--amber-hairline-rgb), 0.22);
}
.woo-bulk {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--sidebar-bg);
}
.woo-bulk-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.woo-bulk-label { font-size: var(--fs-xs); font-weight: 600; color: var(--label); }
.woo-brand-group { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.woo-brand-cell { white-space: nowrap; }
.woo-brand-cell .woo-brand-group { display: inline-flex; }
.woo-brand-btn { padding: 4px 10px; font-size: var(--fs-2xs); }
.woo-preview-wrap { max-height: 56vh; overflow-y: auto; }
.woo-table th, .woo-table td { vertical-align: middle; }
.woo-check-col, .woo-thumb-col { width: 1%; }
.woo-grouping-input { width: 140px; min-width: 120px; }
.badge.woo-status-new { background: var(--accent-soft); color: var(--accent); }
.badge.woo-status-update { background: var(--warn-bg); color: var(--warn-text); }






.of-topbar {
  position: sticky; top: -24px; 
  z-index: 6;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: -12px -12px 16px; padding: 12px;
  background: rgba(var(--glass-rgb), 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.of-mode-seg { display: inline-flex; gap: 2px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.of-mode-btn {
  border: 0; background: transparent; font: inherit; font-size: var(--fs-xs); font-weight: 650;
  color: var(--muted); padding: 6px 15px; border-radius: 999px; cursor: pointer; min-height: 32px;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.of-mode-btn.active { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow-soft); }
.of-mode-btn:disabled { cursor: default; opacity: 0.75; }
.of-jump { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.of-jump::-webkit-scrollbar { display: none; }
.of-jump a {
  flex: 0 0 auto; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 6px 12px; min-height: 32px; display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 999px; white-space: nowrap;
}
.of-jump a:hover { color: var(--accent); border-color: var(--accent); }

.of-section { display: block; }
.of-section + .of-section { margin-top: 20px; }
.of-section .form-section + .form-section { margin-top: 16px; }


.deliver-elsewhere { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.deliver-elsewhere .check { font-weight: 600; }
.address2-fields { margin-top: 12px; }


.wizard-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  position: sticky; bottom: -24px; 
  z-index: 6;
  margin: 22px -12px -24px; padding: 12px;
  background: rgba(var(--glass-rgb), 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.wizard-spacer { flex: 1 1 auto; }
.of-foot-totals { font-size: var(--fs-sm); font-weight: 700; color: var(--accent); white-space: nowrap; }


.of-more { position: relative; display: inline-flex; }

.of-more[hidden], .of-more-menu[hidden] { display: none !important; }
.of-more-menu {
  position: absolute; bottom: calc(100% + 8px); inset-inline-start: 0;
  display: flex; flex-direction: column; gap: 6px; min-width: 160px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 8px; box-shadow: var(--shadow); z-index: 8;
}
.of-more-menu .btn { min-height: 40px; white-space: nowrap; }






.staff-filter { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 12px; }
.staff-filter-search { max-width: 260px; min-height: 38px; }
.staff-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.staff-filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
  background: var(--tonal); border: 1px solid var(--no-line);   
  color: var(--text); font-size: var(--fs-xs); min-height: 36px;
}
.staff-filter-chip:hover { background: var(--tonal-hover); }

.staff-filter-chip.active { background: var(--tonal-on); border-color: var(--no-line); color: #10140f; color: var(--tonal-on-text); }
.staff-filter-chip.active .sf-badge { background: rgba(16, 20, 15, 0.18); color: #10140f; }
.staff-filter-chip .sf-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-badge {
  min-width: 20px; padding: 1px 6px; border-radius: 999px; text-align: center;
  font-size: var(--fs-xs); font-weight: 700; background: var(--surface-3); color: var(--text-muted);
}
.sf-badge-review { background: rgba(var(--attention-rgb), 0.18); color: var(--attention); }
.staff-filter-chip.active .sf-badge-review { background: rgba(16, 20, 15, 0.25); color: #10140f; }
.sf-clear { border-style: dashed; color: var(--text-muted); }
@media (max-width: 480px) {
  .staff-filter-search { max-width: 100%; }
  .staff-filter-chip .sf-name { max-width: 96px; }
}



.cl-sess-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0 10px; padding: 8px 10px; border: 1px dashed var(--border); border-radius: 10px; }
.cl-sess-budget { font-size: var(--fs-xs); }
.cl-sess-btn { min-height: 38px; }
.cl-sess-running { color: var(--accent); font-weight: 700; font-size: var(--fs-xs); }

.cl-sess-suspended { color: var(--warn-text); font-weight: 700; font-size: var(--fs-xs); }
.mycl-suspended { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.cl-sess-today { flex-basis: 100%; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-xs); }
.cla-flagged { border: 1px solid rgba(var(--attention-rgb), 0.45); background: rgba(var(--attention-rgb), 0.08); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.cla-flagged-title { font-weight: 700; color: var(--attention); font-size: var(--fs-sm); }
.cla-flagged-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cla-flagged-meta { font-size: var(--fs-xs); }
.cla-flag-end { max-width: 210px; min-height: 38px; }
.cla-budget-chip { font-size: var(--fs-xs); padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-muted); margin-inline-start: 6px; white-space: nowrap; }
.cla-budget-hint { display: block; font-size: var(--fs-xs); margin-top: 3px; }
.cla-sess-row { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 7px 4px; border-bottom: 1px solid var(--border); font-size: var(--fs-xs); align-items: baseline; }
.cla-sess-row:last-child { border-bottom: none; }
.cla-sess-who { font-weight: 600; }

.cla-sess-mems { flex-basis: 100%; font-size: var(--fs-xs); }
.cla-flagged-mems { display: block; font-size: var(--fs-xs); margin-top: 2px; }
.cl-sess-members { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.cl-helper-running { border-color: var(--accent); }
.cls-people { display: flex; flex-direction: column; gap: 8px; }
.cls-person { display: flex; min-height: 44px; border-radius: 12px; } 
.cls-person input { width: 20px; height: 20px; flex: 0 0 auto; }
.cls-person-off { opacity: 0.55; cursor: not-allowed; }
.cls-busy-hint { font-size: var(--fs-xs); display: block; }
.sr-cl-roll { font-size: var(--fs-xs); margin: 2px 0 6px; }

.sr-cl-period { font-size: var(--fs-xs); font-weight: 600; margin: 2px 0 2px; }
.sr-cl-co { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 3px; color: var(--muted); font-weight: 400; font-size: var(--fs-xs); }

.mytime-clcard-wrap { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 6px; }
.mycl-card { border: 1px solid var(--border-strong); border-radius: 14px; padding: 12px 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.mycl-card.mycl-done { border-color: var(--accent); }
.mycl-card.mycl-overdue { border-color: var(--attention); }
.mycl-head { display: flex; align-items: center; gap: 8px; }
.mycl-kind { font-size: var(--fs-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.mycl-overdue-chip { font-size: var(--fs-2xs); font-weight: 700; color: #1a1a10; background: var(--attention); border-radius: 999px; padding: 2px 8px; }
.mycl-title { font-weight: 700; font-size: var(--fs-lg); }
.mycl-todo, .mycl-running, .mycl-done { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.mycl-done-line, .mycl-run-line { display: inline-flex; align-items: center; gap: 6px; }
.mycl-done .mycl-done-line { color: var(--accent); font-weight: 600; }
.mycl-with { display: inline-flex; align-items: center; gap: 4px; }
.mycl-run-who { display: inline-flex; align-items: center; gap: 2px; }

.reassign-panel { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 12px; margin-top: 8px; background: var(--surface-2); }
.reassign-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.ra-chip { font-size: var(--fs-xs); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: inherit; cursor: pointer; min-height: 32px; }
.ra-chip.is-active { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.reassign-actions { display: flex; justify-content: flex-end; }
.sr-ra-zero { color: var(--attention); font-weight: 700; }
.sr-pb-neg { color: var(--danger-text); font-weight: 700; } 
.sr-ra-count { background: var(--attention); color: #1a1a10; }

.avatar { cursor: pointer; }
#avatar-pop {
  position: fixed; z-index: 12000; width: 216px; max-width: calc(100vw - 16px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 14px 12px; border-radius: 18px; text-align: center;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}
.avatar-pop-face { width: 160px; height: 160px; }
.avatar-pop-img { width: 160px; height: 160px; object-fit: cover; border-radius: 22px; display: block; }
.avatar-pop-ini { width: 160px !important; height: 160px !important; font-size: 52px !important; border-radius: 22px !important; }
.avatar-pop-name { font-weight: 700; font-size: var(--fs-lg); }
.avatar-pop-meta { font-size: var(--fs-xs); }
.avatar-pop-in { color: var(--accent); font-weight: 600; }
.avatar-pop-out { opacity: 0.8; }

.photo-nudge { display: flex; align-items: center; gap: 10px; border: 1px solid var(--accent); background: var(--surface-2); border-radius: 14px; padding: 10px 12px; margin: 4px 0 8px; position: relative; }
.photo-nudge-main { flex: 1; min-width: 0; }
.photo-nudge-title { font-weight: 700; font-size: var(--fs-md); }
.photo-nudge-sub { font-size: var(--fs-xs); }
.photo-nudge-x { position: absolute; inset-inline-end: 6px; top: 4px; background: none; border: none; color: var(--muted, var(--muted)); font-size: 18px; cursor: pointer; padding: 2px 6px; }
.team-strip { margin-top: 10px; }
.team-faces { display: flex; flex-wrap: wrap; gap: 12px 14px; padding: 6px 2px; }
.team-face { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 56px; position: relative; }
.team-face-name { font-size: var(--fs-2xs); font-weight: 600; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-on .avatar { box-shadow: 0 0 0 2px var(--accent), 0 0 10px rgba(var(--accent-rgb), 0.45); }
.team-on::after { content: ''; position: absolute; top: 2px; inset-inline-end: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface-1, #111); }
.team-off { opacity: 0.45; filter: grayscale(0.6); }



.team-idle .avatar { box-shadow: 0 0 0 2px var(--warn-text); }
.team-idle::after { background: var(--warn-text); }



.team-st { font-size: var(--fs-2xs); font-weight: 700; line-height: 1.2; padding: 1px 6px; border-radius: 8px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-st-busy { background: rgba(var(--accent-rgb), 0.16); color: var(--accent); }
.team-st-idle { background: var(--warn-bg); color: var(--warn-text); }
.team-st-off { color: var(--muted); }



.assign-labor-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cap-open-btn { border: 1px solid var(--border); background: var(--surface-2, rgba(255, 255, 255, 0.04)); color: var(--accent); font-size: var(--fs-2xs); font-weight: 700; padding: 3px 10px; border-radius: 999px; cursor: pointer; line-height: 1.4; white-space: nowrap; }
.cap-open-btn:hover { border-color: var(--accent); }
.capacity-modal .modal-body { display: flex; flex-direction: column; gap: 10px; }
.cap-sub { margin: 0; font-size: var(--fs-xs); }
.cap-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.cap-toolbar .btn { min-height: 34px; }
.cap-list { display: flex; flex-direction: column; max-height: 60vh; overflow-y: auto; }
.cap-loading { padding: 14px 2px; }
.cap-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.cap-row:last-child { border-bottom: 0; }
.cap-off { opacity: 0.55; }
.cap-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cap-name { font-weight: 700; font-size: var(--fs-sm); display: flex; align-items: center; gap: 6px; }
.cap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.cap-status { font-size: var(--fs-2xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cap-status-busy { color: var(--accent); }
.cap-status-idle { color: var(--warn-text); }
.cap-status-off { color: var(--muted); }
.cap-load { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: end; }
.cap-tasks { font-size: var(--fs-2xs); font-weight: 700; }
.cap-mins { font-size: var(--fs-xs); color: var(--muted); }


.atrisk-card { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2, rgba(255, 255, 255, 0.03)); padding: 12px 14px; margin: 10px 0; }
.atrisk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.atrisk-title { display: flex; align-items: center; gap: 7px; font-size: var(--fs-md); font-weight: 800; margin: 0; }
.atrisk-body { display: flex; flex-direction: column; gap: 12px; }
.ar-loading, .ar-clear { font-size: var(--fs-xs); padding: 6px 2px; }
.ar-clear { color: var(--accent); font-weight: 600; }
.ar-group { display: flex; flex-direction: column; gap: 5px; }
.ar-group-head { display: flex; align-items: center; gap: 8px; }
.ar-group-name { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.ar-count { font-size: var(--fs-2xs); font-weight: 800; min-width: 20px; text-align: center; padding: 0 6px; border-radius: 999px; background: var(--border); }
.ar-g-overdue .ar-group-name, .ar-g-over .ar-group-name { color: var(--danger-text); }
.ar-g-overdue .ar-count, .ar-g-over .ar-count { background: var(--danger-bg); color: var(--danger-text); }
.ar-g-soon .ar-group-name { color: var(--warn-text); }
.ar-g-soon .ar-count { background: var(--warn-bg); color: var(--warn-text); }
.ar-g-stalled .ar-group-name { color: var(--muted); }
.ar-list { display: flex; flex-direction: column; }
.ar-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 6px; border-bottom: 1px solid var(--border); cursor: pointer; border-radius: 6px; }
.ar-item:last-child { border-bottom: 0; }
.ar-item:hover { background: var(--border); }
.ar-item-main { flex: 1 1 auto; min-width: 0; font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-title { font-weight: 600; }
.ar-client { font-weight: 400; }
.ar-kind { display: inline-block; font-size: var(--fs-xs); font-weight: 800; padding: 1px 6px; border-radius: 6px; background: var(--border); color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; vertical-align: 1px; }
.ar-item-meta { flex: 0 0 auto; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-align: end; white-space: nowrap; }
.ar-g-overdue .ar-item-meta, .ar-g-over .ar-item-meta { color: var(--danger-text); }
.ar-g-soon .ar-item-meta { color: var(--warn-text); }
.ar-more { font-size: var(--fs-xs); padding: 4px 6px 0; }



.ar-item-miss { flex-wrap: wrap; border-inline-start: 3px solid var(--warn-text); padding-inline-start: 8px; }
.ar-miss-reason { flex: 1 0 100%; font-size: var(--fs-2xs); font-weight: 600; color: var(--warn-text); padding-top: 3px; white-space: normal; line-height: 1.35; }
.ar-miss { display: inline-block; font-size: var(--fs-2xs); font-weight: 800; padding: 1px 6px; border-radius: 6px; background: var(--warn-bg); color: var(--warn-text); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.ar-note { font-size: var(--fs-xs); font-weight: 600; padding: 3px 6px 0; color: var(--muted); font-style: italic; }


.owner-overview { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2, rgba(255, 255, 255, 0.03)); padding: 12px 14px; margin: 10px 0; }
.ov-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ov-title { font-size: var(--fs-md); font-weight: 800; }
.ov-sub { font-size: var(--fs-xs); }
.ov-tiles { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ov-tile { text-align: start; display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 12px 14px; cursor: pointer; min-height: 88px; color: var(--text); }
.ov-tile:hover { border-color: var(--accent); }


.ov-tile-static { cursor: default; }
.ov-tile-static:hover { border-color: var(--border); }
.ov-label { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.ov-big { font-size: 22px; font-weight: 800; line-height: 1.15; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ov-big.ov-warn { color: var(--danger-text); }
.ov-note { font-size: var(--fs-xs); }
.ov-sub2 { font-size: var(--fs-2xs); margin-top: 4px; }
.ov-miss { font-size: var(--fs-2xs); font-weight: 800; color: var(--warn-text); margin-top: 2px; } 
.ov-wow { font-size: var(--fs-2xs); font-weight: 800; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.ov-wow.ov-up { background: rgba(var(--accent-rgb), 0.16); color: var(--accent); }
.ov-wow.ov-down { background: var(--danger-bg); color: var(--danger-text); }
.ov-wow.ov-flat { background: var(--border); color: var(--muted); }
@media (min-width: 640px) { .ov-tiles { grid-template-columns: repeat(3, 1fr); } }
.user-nophoto { border-color: var(--attention); color: var(--attention); font-size: var(--fs-2xs); }
.users-photo-note { margin: 4px 0 8px; font-size: var(--fs-xs); }

.mytime-clblock { border: 1px solid var(--attention); background: rgba(var(--attention-rgb), 0.08); border-radius: 12px; padding: 10px 12px; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; text-align: start; }
.clblock-msg { font-size: var(--fs-sm); font-weight: 600; }
.clblock-hint { font-size: var(--fs-xs); }
.clblock-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.clblock-actions .btn { min-height: 40px; }

.tb-row { align-items: center; }
.tb-row .tb-title { flex: 1; min-width: 160px; unicode-bidi: plaintext; }

.mytime-clweek { margin-top: 6px; }
.myclw-list { display: flex; flex-direction: column; gap: 6px; }
.myclw-day { display: flex; flex-direction: column; gap: 4px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; }
.myclw-day.myclw-today { border-color: var(--accent); }
.myclw-dow { font-size: var(--fs-xs); font-weight: 700; }
.myclw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.myclw-chip { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: inherit; }
button.myclw-chip { cursor: pointer; min-height: 28px; }
.myclw-done { border-color: var(--accent); }
.myclw-done .myclw-mark { color: var(--accent); font-weight: 700; }
.myclw-missed { opacity: 0.75; }
.myclw-missed .myclw-mark { color: var(--danger-text); font-weight: 700; }
.myclw-pending { border-color: var(--attention); }
.myclw-pending .myclw-mark { color: var(--attention); }
.myclw-upcoming { opacity: 0.55; }
.myclw-who { font-weight: 600; }
.myclw-hm { font-size: var(--fs-xs); }



.by-chip { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.by-chip-name { font-weight: 600; }
.row-by { font-size: var(--fs-xs); margin-top: 2px; }
.cp-created-by { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.cp-job-who { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cla-sess-under .cla-sess-band, .cla-sess-on_time .cla-sess-band { color: var(--accent); }
.cla-sess-over .cla-sess-band { color: var(--attention); }
.cla-sess-way_over .cla-sess-band { color: var(--danger-text); }
.cla-sess-flagged { opacity: 0.85; }


.ga-strip { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ga-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.ga-card-main { flex: 1 1 240px; min-width: 0; }
.ga-card-title { font-weight: 700; font-size: var(--fs-sm); }
.ga-min { color: var(--accent); font-weight: 600; font-size: var(--fs-xs); margin-inline-start: 6px; }
.ga-card-sub { font-size: var(--fs-xs); overflow-wrap: anywhere; }
.ga-start-btn { align-self: flex-start; }
.ga-all-lbl { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; font-size: var(--fs-sm); }


.nprefs-note { margin: 4px 0 12px; font-size: var(--fs-xs); }
.nprefs-table { width: 100%; }
.nprefs-table th.nprefs-role { text-align: center; font-size: var(--fs-xs); }
.nprefs-table td { text-align: center; padding: 8px 6px; }
.nprefs-table td.nprefs-ev { text-align: start; font-size: var(--fs-sm); }
.nprefs-na { color: var(--text-muted); opacity: 0.45; }
.nprefs-cell { display: inline-flex; padding: 6px; cursor: pointer; }
.nprefs-cb { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }


.onsite-cancel { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }


.ga-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.ga-preset {
  flex: 1 1 30%; min-height: 52px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: var(--tonal); border: 1px solid var(--no-line); box-shadow: var(--edge-lit);   
  color: var(--text); font-size: 14px; font-weight: 600;
}


.ga-preset.is-on { background: var(--tonal-on); border-color: var(--no-line); color: #10140f; color: var(--tonal-on-text); }
.ga-card-members { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ga-member-x { background: none; border: none; color: inherit; cursor: pointer; font-size: var(--fs-2xs); padding: 0 2px; opacity: 0.8; }
.ga-member-x:hover { opacity: 1; color: var(--danger-text); }
.ga-left { opacity: 0.55; text-decoration: line-through; }
.ga-flagged { border-color: rgba(var(--attention-rgb), 0.55); }
.ga-close-end { max-width: 210px; min-height: 38px; }
@media (max-width: 480px) { .ga-preset { flex-basis: 100%; } }






.cl-item-text, .cl-inv-name, .cl-inv-htitle, .cl-card-title,
.cla-row-title, .home-need-text, .sr-td-name, .cla-item-input,
.comb-name {
  unicode-bidi: plaintext;
}



.comb-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.comb-toolbar #comb-search { max-width: 260px; min-height: 40px; flex: 1 1 180px; }
.comb-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.comb-chip { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: var(--fs-xs); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.comb-chip.is-on { background: var(--accent); border-color: var(--accent); color: #10241a; font-weight: 700; }
.comb-count { font-size: var(--fs-2xs); opacity: 0.8; }
.comb-list { display: flex; flex-direction: column; }
.comb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.comb-row:last-child { border-bottom: none; }
.comb-name { flex: 1 1 180px; font-size: var(--fs-md); min-width: 0; overflow-wrap: anywhere; }


.comb-cbs { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.comb-cb { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); cursor: pointer; white-space: nowrap; }
.comb-cb input { width: 17px; height: 17px; margin: 0; cursor: pointer; }
.comb-cb-honda input { accent-color: #f6c453; }
.comb-cb-shop input { accent-color: #7fb5ff; }
.comb-cb input:disabled { opacity: 0.4; cursor: wait; }

.budget-suggest { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 12px; border-radius: 999px; border: 1px dashed var(--accent); background: rgba(var(--accent-rgb), 0.08); color: var(--accent); font-size: var(--fs-xs); cursor: pointer; width: fit-content; max-width: 100%; text-align: start; }
.budget-suggest:hover { background: var(--accent); color: #10241a; border-style: solid; }
.budget-suggest[hidden] { display: none; }


.budget-suggest.bs-rough { border-color: var(--warn-text); background: var(--warn-bg); color: var(--warn-text); opacity: 0.9; font-style: italic; }
.budget-suggest.bs-rough:hover { background: var(--warn-text); color: #241a10; border-style: solid; opacity: 1; }



.field > span.budget-outlier { display: block; margin-top: 6px; padding: 5px 10px; border-radius: 8px; border-inline-start: 3px solid var(--warn-text); background: var(--warn-bg); color: var(--warn-text); font-size: var(--fs-2xs); font-weight: 600; line-height: 1.35; max-width: 100%; }
.field > span.budget-outlier[hidden] { display: none; }
.cla-row-suggest { margin-top: 8px; }

.todo-parent-chip { display: inline-flex; align-items: baseline; gap: 4px; margin: 4px 0 2px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-3); color: var(--text); font-size: var(--fs-2xs); cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.todo-parent-chip:hover { border-color: var(--accent); color: var(--accent); }
.todo-parent-code { color: var(--text-muted); font-size: var(--fs-xs); }


.inv-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.inv-toolbar #inv-q { flex: 1 1 170px; min-height: 42px; max-width: 280px; }
.inv-toolbar select { min-height: 42px; max-width: 170px; }
.inv-selall-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-muted); }
.inv-list { display: flex; flex-direction: column; }
.inv-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.inv-row:last-child { border-bottom: none; }
.inv-sel { width: 18px; height: 18px; flex: 0 0 auto; }
.inv-row-main { flex: 1 1 auto; min-width: 0; }
.inv-row-name { font-size: var(--fs-md); font-weight: 600; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.inv-row-sub { font-size: var(--fs-xs); unicode-bidi: plaintext; }
.inv-row-codes { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin-top: 2px; }
.inv-bc-chip { font-family: ui-monospace, monospace; font-size: var(--fs-2xs); background: var(--surface-3); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.inv-bc-none { font-size: var(--fs-2xs); color: var(--attention); }
.inv-sku { font-size: var(--fs-xs); color: var(--text-muted); font-family: ui-monospace, monospace; }
.inv-row-qty { text-align: end; flex: 0 0 auto; }
.inv-qty-num { font-size: var(--fs-lg); font-weight: 700; }

.inv-qty-words { font-size: var(--fs-sm); font-weight: 600; }
.inv-qty-uncounted { color: var(--muted); font-style: italic; }
.inv-qty-recount { color: var(--amber-text); }
.inv-qty-sub { font-size: var(--fs-xs); white-space: nowrap; }
.inv-bc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inv-bulk-example { background: var(--surface-3); border-radius: 8px; padding: 8px 10px; font-size: var(--fs-2xs); overflow-x: auto; direction: ltr; }
.inv-bulk-results { margin-top: 10px; font-size: var(--fs-xs); display: flex; flex-direction: column; gap: 3px; }

.count-overlay { position: fixed; inset: 0; z-index: 250; background: var(--surface-1); display: flex; flex-direction: column; overflow-y: auto; }
.count-overlay[hidden] { display: none; }
.count-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: inherit; z-index: 2; }
.count-title { margin: 0; font-size: 17px; }
.count-head-actions { display: flex; gap: 8px; align-items: center; }
.count-main, .count-review { padding: 14px; display: flex; flex-direction: column; gap: 12px; max-width: 560px; width: 100%; margin: 0 auto; }
.count-big-btn { min-height: 54px; font-size: 17px; width: 100%; }
.count-actions { display: flex; flex-direction: column; gap: 8px; position: relative; }
.count-results { display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 6px; }
.count-result { text-align: start; background: none; border: none; color: var(--text); padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: var(--fs-md); unicode-bidi: plaintext; display: flex; justify-content: space-between; gap: 8px; }
.count-result:hover { background: var(--surface-3); }
.count-qty-panel, .count-unknown { background: var(--surface-2); border: 1px solid var(--accent); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.count-qty-name { font-size: var(--fs-lg); font-weight: 700; unicode-bidi: plaintext; }
.count-qty-input { font-size: 26px; min-height: 56px; text-align: center; font-weight: 700; }
.count-qty-btns { display: flex; gap: 8px; }
.count-qty-btns .btn { flex: 1; min-height: 46px; }
.count-unknown-title { font-weight: 700; color: var(--attention); }
.count-unknown { border-color: var(--attention); }
#count-unknown-create { display: flex; flex-direction: column; gap: 8px; }
.count-lines { display: flex; flex-direction: column; }
.count-line { display: flex; align-items: center; gap: 8px; padding: 9px 2px; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.count-line-name { flex: 1 1 auto; min-width: 0; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.count-line-qty { white-space: nowrap; }
.count-line-edit, .count-line-x { background: none; border: none; color: var(--text-muted); font-size: var(--fs-lg); cursor: pointer; padding: 2px 6px; }
.count-line-x:hover { color: var(--danger-text); }
.count-line-edit:hover { color: var(--accent); }

.count-photo-panel { background: var(--surface-2); border: 1px solid var(--accent); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.count-photo-top { display: flex; gap: 12px; align-items: flex-start; }
.count-photo-shot { width: 84px; height: 84px; flex: none; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); background: var(--surface-3); }
.count-photo-said { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.count-photo-said .idf-seen, .count-photo-said .idf-none, .count-photo-said .idf-error, .count-photo-said .idf-reading { margin: 0; }
.count-photo-said .idf-reading { text-align: start; }
.count-photo-pick { margin: 0; font-size: var(--fs-xs); }
.count-photo-cards { display: flex; flex-direction: column; gap: 8px; }
.count-photo-card { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 68px; text-align: start; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.count-photo-card:hover, .count-photo-card:focus-visible { border-color: var(--accent); }
.count-photo-card.idf-conf-high { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.count-photo-card .idf-thumb { width: 56px; height: 56px; }
.count-photo-card .idf-name { font-size: var(--fs-md); overflow-wrap: anywhere; }
.count-photo-done { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--accent); }
.count-photo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.count-photo-btns .btn { flex: 1 1 140px; }
.count-review-table { display: flex; flex-direction: column; }
.count-review-row { display: flex; align-items: baseline; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.count-review-headrow { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.count-review-diff { background: rgba(var(--attention-rgb), 0.07); }
.crv-num { width: 56px; text-align: end; white-space: nowrap; }
.crv-arrow { width: 16px; text-align: center; color: var(--text-muted); }
.crv-var { width: 62px; text-align: end; font-weight: 700; }
.count-var-up { color: var(--accent); }
.count-var-down { color: var(--danger-text); }
.count-var-zero { color: var(--text-muted); font-weight: 400; }
.count-review-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.count-review-actions .btn { min-height: 48px; flex: 1; }
.inv-open-counts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.inv-open-count-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid rgba(var(--attention-rgb), 0.45); background: rgba(var(--attention-rgb), 0.08); border-radius: 10px; padding: 9px 12px; font-size: var(--fs-sm); }

.count-where { padding: 14px; display: flex; flex-direction: column; gap: 10px; max-width: 560px; width: 100%; margin: 0 auto; }
.count-where[hidden] { display: none; }
.count-where-q { margin: 6px 0 2px; font-size: var(--fs-lg); font-weight: 700; }
.count-loc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 10px; background: var(--surface-2); }
.count-loc-now { font-weight: 700; font-size: var(--fs-md); unicode-bidi: plaintext; }
.count-legacy { border: 1px solid var(--attention); background: rgba(var(--attention-rgb), 0.08); border-radius: 10px; padding: 10px 12px; font-size: var(--fs-sm); }
.count-line-loc { flex: 0 0 auto; font-size: var(--fs-xs); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.count-review-loc { font-weight: 700; font-size: var(--fs-xs); padding: 12px 2px 4px; color: var(--accent); }
.count-review-note { font-size: var(--fs-xs); margin: 8px 0 0; }

.count-unscanned { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid rgba(var(--attention-rgb), 0.55); border-radius: 10px; background: rgba(var(--attention-rgb), 0.07); }
.count-unscanned[hidden] { display: none; }
.count-unscanned-title { font-weight: 700; font-size: var(--fs-sm); }
.count-unscanned-row { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--border); }
.count-unscanned-row .count-line-name { flex: 1 1 100%; font-weight: 600; unicode-bidi: plaintext; }
.count-unscanned-what { flex: 1 1 12em; font-size: var(--fs-xs); }
.count-unscanned-go { flex: 0 0 auto; min-height: 40px; }
.count-unscanned-hint { font-size: var(--fs-xs); margin: 0; }

.inv-drift { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text-muted); font-size: var(--fs-sm); }
.inv-drift[hidden] { display: none; }
.inv-drift-text { flex: 1 1 14em; }

.inv-imp-body { display: flex; flex-direction: column; gap: 10px; }
.inv-imp-rule { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; }
.inv-imp-rule-label { font-weight: 600; }
.inv-imp-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.inv-imp-chip { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); font-size: var(--fs-xs); }
.inv-imp-held, .inv-imp-hint { flex: 1 1 100%; margin: 0; font-size: var(--fs-xs); }
.inv-imp-cats { flex: 1 1 100%; max-height: 42dvh; overflow-y: auto; }
.inv-imp-cat { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.inv-imp-sentence { margin: 4px 0 0; font-size: var(--fs-md); font-weight: 700; }
.inv-imp-list { margin: 0; padding-inline-start: 18px; max-height: 38dvh; overflow-y: auto; font-size: var(--fs-sm); }
.inv-imp-list li { padding: 3px 0; }
.inv-imp-skip { margin: 0; font-size: var(--fs-xs); }
.inv-imp-note { margin: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(var(--attention-rgb), 0.55); background: rgba(var(--attention-rgb), 0.07); font-size: var(--fs-xs); }
.inv-imp-error { margin: 6px 0 0; color: var(--danger, var(--danger-text)); font-size: var(--fs-xs); }
.inv-imp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.inv-imp-actions .btn { flex: 1 1 8em; min-height: 44px; }

.rcv-where { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin: 0; padding: 6px 12px 8px; border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.rcv-where legend { padding: 0 4px; font-weight: 600; font-size: var(--fs-sm); }
.rcv-where-opt { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: var(--fs-sm); cursor: pointer; }
.rcv-where-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.rcv-where-missing { border-color: rgba(var(--attention-rgb), 0.8); background: rgba(var(--attention-rgb), 0.07); }
.inv-loc-line { font-size: var(--fs-2xs); margin-top: 2px; max-width: 48vw; margin-inline-start: auto; }
.inv-loc-part strong { font-weight: 700; }
.inv-loc-unplaced { color: var(--text-muted); }

.inv-loc-uncounted { color: var(--muted); font-style: italic; }
.inv-total-incomplete { display: inline-block; margin-inline-start: 4px; font-size: var(--fs-2xs); color: var(--warn-text); }

.mytime-today { margin: 6px 0 10px; padding: 6px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text); line-height: 1.3; }
.mytime-today strong { font-weight: 700; }
.inv-stock-locs { margin-top: 6px; }
.inv-stock-locs .inv-loc-line { font-size: var(--fs-xs); max-width: none; margin-inline-start: 0; }
.inv-hist-loc { font-size: var(--fs-2xs); padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); }


.scan-overlay { position: fixed; inset: 0; z-index: 300; background: #000; display: flex; flex-direction: column; }
.scan-overlay[hidden] { display: none; }
.scan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(0,0,0,0.75); position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.scan-hint { color: #fff; font-size: var(--fs-sm); }
#scan-video { width: 100%; height: 100%; object-fit: cover; }
.scan-error { position: absolute; bottom: 20%; left: 12px; right: 12px; background: rgba(var(--danger-rgb), 0.92); color: #fff; padding: 12px 14px; border-radius: 10px; font-size: var(--fs-sm); text-align: center; z-index: 2; }

.rw-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.rw-h { font-size: var(--fs-sm); margin: 0 0 8px; color: var(--text); }
.rw-row { display: flex; align-items: baseline; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.rw-row:last-child { border-bottom: none; }
.rw-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.rw-num { font-weight: 700; white-space: nowrap; }
.rw-count { color: var(--text-muted); font-size: var(--fs-xs); white-space: nowrap; }
.rw-budget { font-size: var(--fs-xs); padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-muted); white-space: nowrap; }
.cla-row-drift { margin-top: 8px; border-color: var(--attention); color: var(--attention); background: rgba(var(--attention-rgb), 0.08); }
.cla-row-drift:hover { background: var(--attention); color: #241a06; }


.comb-edit-btn { border: none; background: none; color: var(--text-muted); font-size: var(--fs-sm); cursor: pointer; padding: 2px 6px; border-radius: 6px; line-height: 1; }
.comb-edit-btn:hover { color: var(--accent); background: var(--surface-3); }
.comb-edit-input { flex: 1 1 160px; min-width: 0; min-height: 38px; }
.comb-row-editing { gap: 8px; }

.push-banner { margin-bottom: 18px; }

.push-banner.push-banner--line { flex-wrap: nowrap; padding: 8px 12px; margin: 10px 0 14px; border-radius: 10px; box-shadow: none; gap: 8px; }
.push-banner.push-banner--line .hrb-icon { font-size: 18px; }
.push-banner.push-banner--line .hrb-text { font-size: var(--fs-md); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.push-banner.push-banner--line .push-banner-actions .btn { min-height: 34px; padding: 4px 10px; font-size: var(--fs-xs); }
.push-banner[hidden] { display: none !important; } 
.push-banner-actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.push-banner-actions .btn-sm { min-height: 40px; }
.profile-push-status { font-size: var(--fs-xs); margin: 4px 0 10px; }


.inline-client { margin-top: 12px; }
.inline-client legend { color: var(--accent); }
.inline-client-actions { display: flex; gap: 8px; margin: 4px 0 10px; }
.inline-client-actions .btn { min-height: 40px; }


.order-review { display: flex; flex-direction: column; gap: 14px; }
.review-issues ul { margin: 6px 0 0; padding-left: 18px; }
.review-issues a { color: var(--danger-text); font-weight: 600; }
.review-section { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.review-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-section-head h3 { margin: 0; font-size: var(--fs-md); }
.review-edit { font-size: var(--fs-xs); font-weight: 600; color: var(--accent); }
.review-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.review-row { display: flex; flex-direction: column; }
.review-row dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.review-row dd { margin: 0; font-size: var(--fs-sm); color: var(--text); }
.review-items { display: flex; flex-direction: column; gap: 8px; }
.review-item { border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; background: var(--input-bg); }
.review-item-head { display: flex; align-items: center; gap: 8px; }
.review-item-head strong { flex: 1 1 auto; }
.review-item-total { font-weight: 600; color: var(--accent); }
.review-item-meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 3px; }
.review-brand { margin-top: 10px; font-size: var(--fs-sm); }




.ref-images { display: flex; flex-direction: column; gap: 10px; border: 1px dashed var(--border-strong); border-radius: 12px; padding: 12px; background: var(--sidebar-bg); transition: border-color var(--speed) ease, background var(--speed) ease; }
.ref-images.ref-dragover { border-color: var(--accent); background: var(--accent-soft); }
.ref-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.ref-empty { margin: 0; font-size: var(--fs-xs); }
.ref-thumb { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; flex: 0 0 auto; background: var(--surface-3); }
.ref-thumb-img { display: block; width: 100%; height: 100%; background: center / cover no-repeat; }
.ref-thumb-del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: none; cursor: pointer; font-size: var(--fs-md); line-height: 1;
  background: rgba(0, 0, 0, 0.62); color: #fff;
}
.ref-thumb-del:hover { background: var(--danger); }
.ref-thumb-badge { position: absolute; left: 4px; bottom: 4px; font-size: var(--fs-2xs); font-weight: 600; padding: 1px 6px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-text); }
.ref-thumb-badge.ref-thumb-err { background: var(--danger); color: #fff; }

.ref-thumb.is-uploading .ref-thumb-img { opacity: 0.5; animation: refPulse 1s ease-in-out infinite; }
.ref-thumb.is-error { border-color: var(--danger); }
@keyframes refPulse { 50% { opacity: 0.25; } }
.ref-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ref-hint { font-size: var(--fs-xs); }
.ref-status { margin: 0; font-size: var(--fs-xs); }
.ref-status.ref-error { color: var(--danger-text); }

.ref-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0.86); }
.ref-lightbox[hidden] { display: none; }
.ref-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--border-strong); }
.ref-lightbox-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 1; background: rgba(var(--glass-rgb), 0.92); color: var(--text); }




.ref-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 48px; height: 48px; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 50%; cursor: pointer; background: rgba(var(--glass-rgb), 0.92); color: var(--text); }
.ref-lightbox-prev { left: 8px; }
.ref-lightbox-next { right: 8px; }
html[dir="rtl"] .ref-lightbox-prev { left: auto; right: 8px; }
html[dir="rtl"] .ref-lightbox-next { right: auto; left: 8px; }
html[dir="rtl"] .ref-lightbox-nav svg { transform: scaleX(-1); }
.ref-lightbox-count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(var(--glass-rgb), 0.92); color: var(--text); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; unicode-bidi: plaintext; }
.ref-lightbox-fail { max-width: 78vw; padding: 18px 20px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(var(--glass-rgb), 0.92); color: var(--text); font-size: var(--fs-md); line-height: 1.4; text-align: center; }
.tp-short-more[data-lightbox-src] { cursor: pointer; }


.cltoday-list { list-style: none; margin: 0; padding: 0; }
.cltoday-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.cltoday-row:last-child { border-bottom: 0; }
.cltoday-name { font-weight: 600; unicode-bidi: plaintext; }
.cltoday-meta { font-size: var(--fs-xs); color: var(--muted); }
.cltoday-sub { font-size: var(--fs-sm); font-weight: 700; margin: 14px 0 4px; color: var(--muted); }
.cltoday-notyet .cltoday-name { font-weight: 500; }


.review-refs { margin-top: 10px; }
.review-refs-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); margin-bottom: 6px; }
.review-ref-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.review-ref-thumb { width: 64px; height: 64px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-3) center / cover no-repeat; }





.idle-hint { margin: 2px 0 12px; font-size: var(--fs-xs); }
.idle-tablewrap { overflow-x: auto; }
.idle-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.idle-table th, .idle-table td { padding: 8px 10px; text-align: start; border-bottom: 1px solid var(--border); white-space: nowrap; }
.idle-table th { font-weight: 700; color: var(--muted); font-size: var(--fs-xs); }
.idle-num { text-align: end; font-variant-numeric: tabular-nums; }
.idle-head-idle { color: var(--danger-text); }
.idle-row { cursor: pointer; }
.idle-row:hover { background: var(--surface-2); }
.idle-person { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.idle-caret { color: var(--muted); transition: transform .15s; margin-inline-start: auto; }
.idle-row.is-open .idle-caret { transform: rotate(90deg); }
.idle-idleval { font-weight: 700; color: var(--danger-text); }
.idle-totalrow td { border-top: 2px solid var(--border); font-weight: 700; background: var(--surface-2); }
.idle-detailrow > td { padding: 0 0 6px; background: var(--surface-2); }
.idle-daytable { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.idle-daytable td { padding: 5px 10px; border-bottom: 1px dashed var(--border); }
.idle-day { color: var(--muted); }
.idle-empty { padding: 24px; text-align: center; }

.sr-detail { display: flex; flex-direction: column; gap: 12px; padding: 10px 12px 14px; }
.sr-detail-sec { min-width: 0; }
.sr-detail-h { margin: 0 0 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.sr-count { display: inline-block; min-width: 20px; text-align: center; background: var(--surface-3); border-radius: 999px; padding: 0 7px; font-size: var(--fs-2xs); color: var(--text); }
.sr-subtable { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.sr-subtable th { text-align: start; padding: 6px 10px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.sr-subtable td { padding: 6px 10px; border-bottom: 1px dashed var(--border); vertical-align: middle; }
.sr-subtable tr:last-child td { border-bottom: 0; }
.sr-td-name { font-weight: 600; }
.sr-sub-meta { color: var(--muted); font-weight: 400; font-size: var(--fs-xs); }
.sr-none { padding: 8px 10px; font-size: var(--fs-xs); }






.sp-page { max-width: 1100px; }
.sp-back-btn { background: none; border: 1px solid var(--border); border-radius: 999px; color: var(--text);
  padding: 7px 16px; font-size: var(--fs-xs); font-weight: 700; cursor: pointer; margin-bottom: 14px; }
.sp-back-btn:hover { background: var(--surface-2); }
.sp-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 16px; }
.sp-name { font-size: 22px; font-weight: 800; unicode-bidi: plaintext; }
.sp-period { color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; }
.sp-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.sp-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 18px; min-width: 104px; }
.sp-tile-label { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.sp-tile-num { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-sec { margin-bottom: 16px; }
.sp-pb { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-pb-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: var(--fs-xs); white-space: nowrap; }
.sp-pb-chip b { margin-inline-start: 6px; font-variant-numeric: tabular-nums; }
#sp-body .sr-detail { padding: 0; }
#sp-body .sr-subtable th,
#sp-body .sr-subtable td { white-space: normal; overflow-wrap: anywhere; }
#sp-body .sr-subtable td.idle-num,
#sp-body .sr-subtable th.idle-num { white-space: nowrap; } 
#sp-body .sr-subtable { width: auto; min-width: min(420px, 100%); max-width: 100%; }
#sp-body .sr-subtable.sr-wide { width: 100%; }


#sp-body .sr-subtable.sr-wide .sr-td-name { min-width: 200px; }
#sp-body .sr-detail-sec { overflow-x: auto; } 


@media (max-width: 768px) {
  .sr-table th, .sr-table td { white-space: normal; padding: 8px 6px; }
  .sr-table th:nth-child(4), .sr-table td:nth-child(4),
  .sr-table th:nth-child(5), .sr-table td:nth-child(5) { display: none; }
  

  .sr-table .sr-ob-badge { display: none; }
  .sr-table .sr-pending-inline { display: block; margin-inline-start: 0; width: fit-content; margin-top: 2px; }
}

.sr-task-row { cursor: pointer; transition: background .12s ease; }
.sr-task-row:hover td { background: rgba(var(--accent-rgb), 0.10); }
.sr-task-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sr-task-times { color: var(--muted); font-weight: 400; font-size: var(--fs-xs); margin-top: 2px; }

.sr-autoclosed-badge { display: inline-block; font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .3px;
  padding: 1px 7px; border-radius: 999px; background: rgba(var(--clay-rgb), 0.16); color: var(--clay); vertical-align: middle; }


.sr-pts-pending { color: var(--warn-text); font-weight: 700; white-space: nowrap; cursor: help; }
.sr-pending-tag { display: inline-block; margin-inline-start: 4px; font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: .3px; padding: 1px 6px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-text); vertical-align: middle; }
.sr-pending-inline { display: inline-block; margin-inline-start: 6px; font-size: var(--fs-2xs); font-weight: 700; padding: 1px 7px;
  border-radius: 999px; background: var(--warn-bg); color: var(--warn-text); cursor: help; }


.sr-ob-badge { display: inline-block; margin-inline-start: 6px; font-size: var(--fs-2xs); font-weight: 800; padding: 1px 8px;
  border-radius: 999px; background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border);
  white-space: nowrap; cursor: help; vertical-align: middle; }
.sr-ob-task-badge { display: inline-block; font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .3px;
  padding: 1px 7px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-text); vertical-align: middle; }
.sr-ob-timeline { margin-top: 6px; padding: 6px 10px; border-inline-start: 2px solid var(--warn-border);
  background: rgba(var(--attention-rgb), 0.05); border-radius: 0 8px 8px 0; font-size: var(--fs-xs); color: var(--text-muted); }
.sr-ob-line { padding: 1px 0; unicode-bidi: plaintext; }
.sr-ob-line strong { color: var(--warn-text); }
.sr-ob-ret { font-weight: 800; color: var(--warn-text); letter-spacing: .3px; }

.sr-ip-row td { background: rgba(var(--periwinkle-rgb), 0.07); }
.sr-ip-badge { display: inline-block; font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
  padding: 1px 7px; border-radius: 999px; background: rgba(var(--periwinkle-rgb), 0.16); color: var(--periwinkle-text); vertical-align: middle; }
.sr-cl-chip { display: inline-block; font-size: var(--fs-2xs); font-weight: 700; padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
.sr-cl-daily { background: rgba(var(--accent-rgb), 0.14); color: var(--accent-hover); }
.sr-cl-weekday { background: rgba(var(--periwinkle-rgb), 0.16); color: var(--periwinkle-text); }
.sr-cl-inventory { background: rgba(var(--amber-rgb), 0.16); color: var(--amber-text); }

.sr-section { margin-bottom: 26px; }
.sr-lb-section { border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.sr-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sr-sec-head .dash-section-title { margin: 0; }

.sr-trial > .sr-trial-sum { cursor: pointer; padding: 6px 0; }
.sr-trial > .sr-trial-sum .dash-section-title { display: inline-block; margin: 0 8px 0 0; }
.sr-trial[open] > .sr-trial-sum { margin-bottom: 14px; }

.task-onsite { margin-bottom: 14px; }


.labor-panel { margin-top: 12px; }
.labor-panel:empty { display: none; }
.lp-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.lp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.lp-title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.lp-eye { flex: none; }
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lp-stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lp-stat-lbl { font-size: var(--fs-xs); color: var(--muted); }
.lp-stat-val { font-size: var(--fs-lg); font-weight: 700; color: var(--text); line-height: 1.25; }
.lp-stat-cost .lp-stat-val { color: var(--accent); }
.lp-cost-part { white-space: nowrap; }
.lp-plus { color: var(--muted); font-weight: 400; }
.lp-sources { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.lp-src { display: flex; align-items: baseline; gap: 8px; font-size: var(--fs-xs); }
.lp-src-lbl { flex: 1 1 auto; min-width: 0; }
.lp-src-mins { flex: none; }
.lp-src-cost { flex: none; font-weight: 600; }
.lp-note { margin-top: 10px; font-size: var(--fs-xs); line-height: 1.45; }
.lp-loading, .lp-error, .lp-empty { font-size: var(--fs-xs); padding: 2px 0; }
@media (max-width: 480px) { .lp-stats { grid-template-columns: 1fr; gap: 8px; } }
.onsite-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.onsite-card.onsite-running { border-color: var(--success); }
.onsite-card.onsite-flagged { border-color: var(--danger-text); background: var(--danger-bg); }
.onsite-title { font-weight: 700; }
.onsite-line { font-size: var(--fs-sm); }
.onsite-label { color: var(--muted); margin-inline-end: 6px; }
.onsite-flag { color: var(--danger-text); font-weight: 700; }
.crew-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.crew-chip { min-height: 40px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 600; cursor: pointer; }
.crew-chip.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.onsite-crew { display: flex; flex-wrap: wrap; gap: 6px; }
.crew-tag { font-size: var(--fs-xs); font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.onsite-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.onsite-close { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.job-sheet { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.js-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.js-header .js-type { font-size: var(--fs-xs); }
.js-date { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); }
.js-order { font-size: var(--fs-sm); color: var(--muted); }
.js-section { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.js-section-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 6px; }
.js-client-name { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.js-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.js-contact-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  border-radius: 10px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
}
.js-contact-btn:hover { background: var(--accent-hover); }
.js-contact-btn.js-wa { background: #25855a; border-color: #25855a; color: #fff; }
.js-contact-btn.js-wa:hover { background: #1f6f4c; }
.js-address-row { margin-top: 2px; }
.js-address { font-size: var(--fs-sm); color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.js-muted { color: var(--muted); font-size: var(--fs-xs); }

.js-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.js-item { border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; background: var(--input-bg); }
.js-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.js-item-name { flex: 1 1 auto; font-weight: 600; font-size: var(--fs-sm); }
.js-item-qty { font-weight: 700; color: var(--accent); }
.js-item-tag { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; padding: 1px 7px; border-radius: 9px; }
.js-item-tag.js-ready { background: var(--accent-soft); color: var(--accent); }
.js-item-tag.js-custom { background: var(--gold); color: #4a3a1c; }
.js-item-line { font-size: var(--fs-xs); color: var(--label); margin-top: 3px; }
.js-item-line strong { color: var(--text); font-weight: 600; }


.js-item.has-thumb { display: flex; align-items: flex-start; gap: 10px; }
.js-item-body { flex: 1 1 auto; min-width: 0; }
.job-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.job-thumb {
  width: 56px; height: 56px; flex: 0 0 auto; padding: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface-3);
  cursor: zoom-in; transition: border-color var(--speed) ease, transform var(--speed) ease;
}
.job-thumb:hover { border-color: var(--accent); transform: scale(1.04); }
.job-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.js-item.has-thumb .job-thumb { margin-top: 1px; }

.prod-card-thumbs { margin-top: 6px; }
.prod-card-thumbs .job-thumb { width: 40px; height: 40px; border-radius: 7px; }
@media (max-width: 768px) {
  
  .job-thumb { width: 60px; height: 60px; }
  .prod-card-thumbs .job-thumb { width: 46px; height: 46px; }
}

.js-meta { display: flex; flex-direction: column; gap: 6px; }
.js-meta-row { font-size: var(--fs-sm); }
.js-meta-row .js-section-label { display: inline; margin-right: 6px; }
.js-meta-row.js-notes { white-space: pre-wrap; }




.client-name-link { font-weight: 600; font-size: var(--fs-sm); padding: 0; }
.cp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.cp-head .cp-name { flex: 1 1 auto; margin: 0; font-size: 26px; }
.cp-details { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.cp-contact-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-contact {
  display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 10px;
  font-weight: 600; font-size: var(--fs-sm); text-decoration: none; background: var(--accent); color: var(--accent-ink);
}
.cp-contact:hover { background: var(--accent-hover); }
.cp-contact.cp-wa { background: #25855a; }
.cp-contact.cp-wa:hover { background: #1f6f4c; }
.cp-addr { font-size: var(--fs-sm); color: var(--text); }
.cp-since { font-size: var(--fs-xs); }

.cp-section { margin-bottom: 24px; }
.cp-section h2 { font-size: 18px; margin: 0 0 12px; }
.cp-section h2 .cp-sub { font-size: var(--fs-xs); font-weight: 400; }

.cp-sum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cp-sum-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: var(--surface-2); }
.cp-sum-cur { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.cp-sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); padding: 3px 0; color: var(--label); }
.cp-sum-row strong { color: var(--text); }
.cp-sum-row.cp-out { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; }
.cp-sum-row.cp-out strong { color: var(--danger-text); }

.cp-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cp-list { margin: 0; padding-left: 0; list-style: none; }
.cp-list li { font-size: var(--fs-sm); padding: 5px 0; border-bottom: 1px solid var(--border); color: var(--label); }
.cp-li-date { font-weight: 600; color: var(--text); }


.cp-filter { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.cp-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-preset.toggle-active { background: var(--tonal-on); color: var(--tonal-on-text); border-color: var(--no-line); }   
.cp-custom { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.cp-date-label { font-size: var(--fs-xs); color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.cp-sub-head { font-size: var(--fs-sm); margin: 4px 0 10px; }


.cp-groups { display: flex; flex-direction: column; gap: 14px; }
.cp-year { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cp-year-head, .cp-month-head { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-wrap: wrap; }
.cp-year-head { padding: 10px 14px; background: var(--surface-3); }
.cp-year-head:hover, .cp-month-head:hover { filter: brightness(0.98); }
.cp-year-label { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); }
.cp-month-head { padding: 9px 14px; background: var(--sidebar-bg); border-top: 1px solid var(--border); }
.cp-month-label { font-weight: 600; font-size: var(--fs-sm); }
.cp-period-count { font-size: var(--fs-xs); color: var(--muted); }
.cp-period-sub { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.cp-sub-cur { font-weight: 700; color: var(--accent); font-size: var(--fs-xs); background: var(--accent-soft); padding: 1px 8px; border-radius: 9px; white-space: nowrap; }
.cp-caret { color: var(--muted); transition: transform var(--speed) ease; }
.cp-year.collapsed .cp-year-body, .cp-month.collapsed .cp-month-body { display: none; }
.cp-year.collapsed > .cp-year-head .cp-caret, .cp-month.collapsed > .cp-month-head .cp-caret { transform: rotate(-90deg); }
.cp-month-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.cp-empty { padding: 16px 4px; }

.cp-orders { display: flex; flex-direction: column; gap: 10px; }
.cp-order { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.cp-order-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; flex-wrap: wrap; }
.cp-order-head:hover { background: var(--surface-3); }
.cp-order-code { font-weight: 700; font-size: var(--fs-sm); min-width: 80px; }
.cp-order-date { font-size: var(--fs-xs); color: var(--muted); }
.cp-order-items { font-size: var(--fs-xs); color: var(--muted); }
.cp-order-total { margin-left: auto; font-weight: 700; color: var(--accent); }
.cp-order-caret { color: var(--muted); transition: transform var(--speed) ease; }
.cp-order.open .cp-order-caret { transform: rotate(180deg); }
.cp-order-actions { display: flex; gap: 8px; padding: 0 14px 12px; flex-wrap: wrap; }
.cp-order-detail { padding: 0 14px 14px; }

.cp-summary { border-top: 1px solid var(--border); padding-top: 12px; }
.cp-item-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.cp-item-table th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); padding: 4px 8px; border-bottom: 1px solid var(--border); }
.cp-item-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cp-item-table .cp-num { text-align: right; white-space: nowrap; }
.cp-item-spec { font-size: var(--fs-xs); color: var(--muted); margin-top: 3px; }
.cp-summary-foot { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; margin-top: 12px; }
.cp-summary-meta { font-size: var(--fs-sm); color: var(--label); display: flex; flex-direction: column; gap: 4px; }
.cp-money { min-width: 240px; flex: 0 0 auto; }
.cp-money-row { display: flex; justify-content: space-between; gap: 16px; font-size: var(--fs-sm); padding: 3px 0; color: var(--muted); }
.cp-money-row span:last-child { color: var(--text); }
.cp-money-row.cp-money-total { font-weight: 700; font-size: var(--fs-md); border-top: 1px solid var(--border-strong); margin-top: 4px; padding-top: 6px; }
.cp-money-row.cp-money-total span { color: var(--text); }


.cp-payments { margin-top: 14px; }
.cp-pay { border-top: 1px solid var(--border); padding-top: 12px; }
.cp-pay-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cp-pay-head h4 { margin: 0; font-size: var(--fs-md); }
.cp-pay-totals { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 10px; font-size: var(--fs-sm); color: var(--label); }
.cp-pay-totals strong { color: var(--text); }
.cp-pay-table { font-size: var(--fs-sm); }
.cp-pay-table th { font-size: var(--fs-2xs); }
.cp-payhist { font-size: var(--fs-sm); }




@media (max-width: 768px) {
  .topbar { display: flex; }
  

  .sidebar-footer .hc-btn { display: none !important; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.6);
  }
  .sidebar.open { transform: translateX(0); }

  .content {
    margin-left: 0;
    padding: calc(var(--topbar-h) + 20px) 16px 24px;
    max-width: none;
  }

  
  .art-palm { display: none; }
  .art-monstera { width: 300px; height: 300px; right: -100px; }
  .blob { width: 240px; height: 240px; }

  
  .table-wrap { border: none; border-radius: 0; overflow: visible; background: none; box-shadow: none; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }

  .data-table tr {
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 8px 14px;
    background: var(--sidebar-bg);
    box-shadow: var(--shadow-sm);
  }
  .data-table tbody tr:hover { background: var(--sidebar-bg); }

  .data-table td {
    border: none;
    padding: 8px 0;
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    min-width: 0; overflow-wrap: anywhere; 
  }
  .data-table td::before {
    content: attr(data-label);
    font-weight: 600; color: var(--muted); flex: 0 0 auto;
  }
  .data-table td.actions-col {
    width: auto; justify-content: flex-start; flex-wrap: wrap; gap: 8px;
    padding-top: 8px; border-top: 1px solid var(--border); margin-top: 4px;
  }
  .data-table td.actions-col::before { content: none; }
  .data-table td.actions-col .btn-link {
    min-height: 44px; padding: 8px 14px;
    border: 1px solid var(--border-strong); border-radius: 9px;
  }
  
  .order-actions { flex: 1 1 100%; gap: 8px; }
  .oa-btn { min-height: 40px; padding: 9px 12px; font-size: var(--fs-xs); }
  .oa-btn.oa-del { margin-inline-start: 0; } 

  .modal { max-width: none; border-radius: var(--r-28); }   
  .field input, .field textarea, .field select { min-height: 44px; font-size: var(--fs-lg); }
  .field textarea { min-height: 64px; }

  .truncate { max-width: none; white-space: normal; }

  




  .modal-actions:not(.wizard-actions) { flex-direction: row; flex-wrap: wrap; }
  .modal-actions:not(.wizard-actions) .btn { width: auto; flex: 1 1 auto; min-width: -webkit-fit-content; min-width: fit-content; max-width: 100%; min-height: 44px; }

  .field-grid, .checkbox-grid { grid-template-columns: 1fr; }
  #add-item-btn, #add-ready-item-btn { width: 100%; min-height: 44px; }

  
  .cp-head .cp-name { flex: 1 1 100%; order: 2; font-size: 22px; }
  .cp-head #cp-report { flex: 1 1 100%; order: 3; min-height: 44px; }
  .cp-twocol { grid-template-columns: 1fr; }
  .cp-contact { flex: 1 1 100%; justify-content: center; min-height: 44px; }
  .cp-order-actions .btn { flex: 1; min-height: 44px; }
  .cp-summary-foot { flex-direction: column; }
  .cp-money { min-width: 0; }
  .cp-filter { flex-direction: column; align-items: stretch; }
  .cp-presets .btn-sm { flex: 1 1 30%; min-height: 40px; }
  .cp-custom { align-items: stretch; }
  .cp-date-label input { min-height: 44px; }
  .cp-custom #cp-apply { min-height: 44px; }
  .cp-period-sub { margin-left: 0; width: 100%; }

  
  .js-contact-actions { flex-direction: column; }
  .js-contact-btn { width: 100%; justify-content: center; min-height: 48px; }
  .js-address { display: inline-block; min-height: 44px; line-height: 44px; }

  
  #ref-upload-btn { width: 100%; min-height: 44px; }
  .ref-thumb { width: 84px; height: 84px; }
  .ref-thumb-del { width: 30px; height: 30px; font-size: 18px; }

  



  .wizard-actions { flex-direction: row; flex-wrap: nowrap; gap: 8px; padding: 8px 10px; }
  .wizard-actions .btn {
    width: auto; flex: 0 0 auto; min-height: 40px; min-width: 40px;
    padding: 8px 12px; font-size: var(--fs-sm); white-space: nowrap;
  }
  .of-foot-totals { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-xs); }
  .review-list { grid-template-columns: 1fr; }
  .item-add-row { flex-direction: column; }
  .ready-filters select, .ready-filters .ready-search { flex: 1 1 100%; min-height: 44px; }
  .ready-picker-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .view-header-actions { width: 100%; }
  .view-header-actions .btn { flex: 1; min-height: 44px; }
  .woo-grouping-input { width: 100%; }
  .woo-brand-btn { min-height: 36px; }
  .item-remove { width: 44px; height: 44px; font-size: 20px; }

  


  .calendar-grid-wrap { overflow-x: visible; }
  .calendar-grid { min-width: 0; }
  .cal-day, .cal-weekday { min-width: 0; }
  .cal-day { min-height: 66px; padding: 4px 3px; overflow: hidden; }
  .cal-weekday { padding: 6px 2px; font-size: 10px; letter-spacing: 0.2px; }
  .cal-day-num { font-size: 11px; }
  .cal-day.cal-today .cal-day-num { width: 20px; height: 20px; }
  .task-chip { font-size: 10px; padding: 2px 4px; border-left-width: 2px; min-width: 0; max-width: 100%; }
  .calendar-toolbar { gap: 8px; }
  .cal-nav .btn-sm, .cal-view-toggle .btn-sm { min-height: 40px; }
  .cal-title { min-width: 120px; font-size: var(--fs-lg); }

  .sched-jobs { grid-template-columns: 1fr; }
  .sched-job .check { flex: 0 0 auto; }
  .sched-date { min-height: 44px; }
  .sched-leader { max-width: none; }
  
  .sched-layout { grid-template-columns: 1fr; }
  .sched-type { min-height: 44px; }
  .sched-job-row { min-height: 44px; }
  .sched-job-remove { width: 32px; height: 32px; }
  
  .minical-nav { width: 44px; height: 44px; }
  .minical-day { min-height: 52px; }
  .minical-ev { font-size: 9px; }
  
  .minical-info { width: 22px; height: 22px; font-size: var(--fs-2xs); opacity: 1; }
  .sched-daypop-item { font-size: var(--fs-sm); }
  .sched-daypop-close { width: 44px; height: 44px; }
  .sched-chip { min-height: 40px; }
  .sched-chip-clear { width: 24px; height: 24px; }
  
  .ready-var-addrow input, .ready-var-addrow select, .ready-var-addrow .btn { flex: 1 1 100%; width: auto; min-height: 44px; }
  .item-size-field select { min-height: 44px; }

  
  .client-picker-row { flex-wrap: wrap; }
  .client-picker-row .client-search-wrap { flex: 1 1 100%; }
  .client-picker-row .client-search { flex: 1 1 100%; min-height: 44px; }
  .client-picker-row .btn-sm { flex: 1 1 100%; width: 100%; min-height: 44px; }
  .client-result { min-height: 44px; justify-content: center; }

  
  .item-search-input { min-height: 44px; }
  .item-result { min-height: 44px; justify-content: center; }

  
  .pill-btn { min-height: 44px; padding: 8px 15px; }

  .catalog-cols { grid-template-columns: minmax(0, 1fr); }
  .catalog-col-head .btn-sm { min-height: 44px; }
  .catalog-item { padding: 10px 8px; }
  .catalog-item-actions { width: 100%; gap: 6px; margin-top: 4px; }
  .catalog-item-actions .btn-link {
    min-height: 44px; padding: 8px 12px;
    border: 1px solid var(--border-strong); border-radius: 9px;
    flex: 1; text-align: center;
  }
}




.order-view-modal { max-width: 720px; width: 100%; }
.order-view-body { max-height: 72vh; overflow-y: auto; padding: 4px 2px; }
.order-view-body .cp-summary { margin-top: 4px; }
.cp-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-bottom: 10px; }

.btn.btn-wa { border-color: rgba(37, 211, 102, 0.55); color: #4ADE80; }
.btn.btn-wa:hover { background: rgba(37, 211, 102, 0.14); }
.btn-link.btn-link-wa { color: #4ADE80; }
.btn-link.btn-link-wa:hover { color: #86EFAC; }


#print-root { display: none; }
.po-receipt { display: none; } 
.po-doc { color: #1a1a1a; font-family: var(--font-ui); }
.po-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #2b2b2b; padding-bottom: 10px; margin-bottom: 14px; }
.po-brand { display: flex; align-items: center; gap: 10px; }
.po-logo { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9px;
  

  background: #6FDD84; color: #08120B; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.po-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.3px; }
.po-brand-sub { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: 1px; }
.po-meta { text-align: end; font-size: 12px; color: #444; } 
.po-meta .po-code { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.po-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #777; margin-bottom: 4px; }
.po-billto { margin-bottom: 14px; font-size: 12.5px; }
.po-client { font-weight: 700; font-size: 14px; }
.po-items { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 12px; }
.po-items th { text-align: left; background: #f0ece2; color: #2b2b2b; padding: 7px 8px; border-bottom: 1px solid #cfc7b6; }
.po-items td { padding: 7px 8px; border-bottom: 1px solid #e6e0d2; vertical-align: top; }
.po-items .po-num, .po-items .cp-num { text-align: end; white-space: nowrap; }
.po-items .cp-item-spec { font-size: 11px; color: #555; margin-top: 3px; }
.po-items .ready-tag { font-size: 10px; background: #e8e2d2; color: #555; border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.po-totals { margin-left: auto; width: 280px; font-size: 12.5px; }
.po-money-row { display: flex; justify-content: space-between; padding: 3px 0; }
.po-money-row.po-total { font-weight: 700; font-size: 15px; border-top: 1.5px solid #2b2b2b; border-bottom: 1.5px solid #2b2b2b; padding: 6px 0; margin: 5px 0; }
.po-section { margin-top: 14px; }
.po-pay { width: 100%; border-collapse: collapse; font-size: 12px; }
.po-pay th { text-align: left; color: #777; padding: 5px 8px; border-bottom: 1px solid #cfc7b6; }
.po-pay td { padding: 5px 8px; border-bottom: 1px solid #ececec; }
.po-pay .po-num { text-align: end; }
.po-note { font-size: 12px; color: #333; margin-bottom: 3px; }
.po-terms { margin-top: 14px; font-size: 11.5px; color: #555; }
.po-foot { margin-top: 22px; padding-top: 8px; border-top: 1px solid #ddd; font-size: 10px; color: #999; text-align: center; }











.po-payrcpt { display: flex; flex-direction: column; min-height: 250mm; }
.po-payrcpt .po-head { align-items: flex-start; }


.pr-issuer { font-size: 11.5px; color: #444; line-height: 1.5; }
.pr-issuer-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #1a1a1a; letter-spacing: 0.3px; margin-bottom: 2px; }
.pr-title { margin: 6px 0 2px; }
.pr-title-main { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: 0.5px; }
.pr-title-alt { font-size: 20px; color: #555; margin-inline-start: 10px; }
.pr-off-ref { font-size: 12.5px; font-weight: 700; color: #1a1a1a; margin-bottom: 14px; }
.po-payrcpt .po-billto { margin: 10px 0 16px; }

.pr-amount {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border: 2px solid #1a1a1a; border-radius: 6px; padding: 14px 16px; margin-bottom: 16px;
}
.pr-amount-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #555; }
.pr-amount-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; white-space: nowrap; }
.pr-details { font-size: var(--fs-xs); margin-bottom: 18px; }
.pr-line { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px solid #ececec; }
.pr-line-l { color: #666; }
.pr-line-v { font-weight: 600; }

.pr-tail { margin-top: auto; }
.pr-sign { margin-top: 26px; }
.pr-received-by { font-size: var(--fs-2xs); margin-bottom: 18px; }
.pr-sign-line { border-top: 1px solid #1a1a1a; width: 62mm; }
.pr-sign-label { font-size: 10px; color: #777; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }
.po-payrcpt .po-foot { margin-top: 18px; }


@media print {
  @page { size: A4; margin: 14mm; }
  html, body { background: #fff !important; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  .po-doc { color: #000; }
  .po-items tr, .po-pay tr { page-break-inside: avoid; }
  .po-totals, .po-section { page-break-inside: avoid; }
  .confetti-piece { display: none !important; }

  


  








  @page receipt80 { size: 80mm 297mm; margin: 0; }

  





  body.label-print .po-doc, body.label-print .po-receipt { display: none !important; }
  .inv-labels, .inv-labels * { color: #000 !important; background: #fff !important; }
  body.receipt-print .po-doc { display: none !important; }
  body.receipt-print .po-receipt {
    display: block !important; page: receipt80;
    width: 72mm; margin: 0 auto; padding: 3mm 2mm 5mm; color: #000; background: #fff;
    font-family: 'Courier New', ui-monospace, monospace; font-size: 11px; line-height: 1.38;
    





    overflow-wrap: break-word;
  }
  .po-receipt * { color: #000 !important; }
  .po-receipt .rcpt-head { text-align: center; }
  .po-receipt .rcpt-logo {
    display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border: 1.5px solid #000; border-radius: 6px; font-weight: 700; font-size: 14px; margin-bottom: 3px;
  }
  .po-receipt .rcpt-biz { font-weight: 700; font-size: 15px; letter-spacing: 1px; }
  .po-receipt .rcpt-biz-sub { font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; }
  .po-receipt .rcpt-divider { border-top: 1px dashed #000; margin: 5px 0; }
  .po-receipt .rcpt-meta { font-size: 10.5px; }
  .po-receipt .rcpt-code { font-weight: 700; font-size: 12px; }
  .po-receipt .rcpt-client { margin-top: 4px; font-size: 10.5px; }
  .po-receipt .rcpt-strong { font-weight: 700; font-size: 12px; }
  .po-receipt .rcpt-label { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
  .po-receipt .rcpt-item { page-break-inside: avoid; margin-bottom: 3px; }
  .po-receipt .rcpt-item-name { font-weight: 700; }
  .po-receipt .rcpt-tag { font-weight: 400; font-size: 9px; border: 1px solid #000; border-radius: 4px; padding: 0 3px; }
  
  .po-receipt .rcpt-item-spec { font-size: 9px; line-height: 1.3; overflow-wrap: anywhere; margin: 1px 0 1px 2px; }
  .po-receipt .rcpt-item-line { display: flex; justify-content: space-between; gap: 8px; }
  .po-receipt .rcpt-trow { display: flex; justify-content: space-between; gap: 8px; }
  .po-receipt .rcpt-trow.rcpt-grand { font-weight: 700; font-size: 13px; border-top: 1px solid #000; border-bottom: 1px solid #000; padding: 2px 0; margin: 2px 0; }
  .po-receipt .rcpt-small { font-size: 10px; }
  .po-receipt .rcpt-totals, .po-receipt .rcpt-pays { page-break-inside: avoid; }
  .po-receipt .rcpt-foot { text-align: center; margin-top: 4px; font-size: 10px; }
  .po-receipt .rcpt-thanks { font-weight: 700; }
  
  .po-receipt[dir="rtl"] { text-align: right; }

  


  .po-payrcpt, .po-payrcpt * { color: #000 !important; background: transparent !important; }
  .po-payrcpt { page-break-inside: auto; }
  .po-payrcpt .pr-amount { page-break-inside: avoid; }
}




.list-search { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.list-search-field { position: relative; flex: 1 1 460px; max-width: 460px; min-width: 0; }
.list-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 17px; pointer-events: none; line-height: 1; }
.list-search-input {
  width: 100%; min-height: 44px; padding: 9px 38px 9px 34px;
  font: inherit; font-size: var(--fs-md); color: var(--text);
  --field-bg: var(--field-fill); --field-edge: var(--no-line);   
  background: var(--field-bg); border: 1px solid var(--field-edge); border-radius: var(--r-14);
  transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.list-search-input::placeholder { color: var(--muted); }
.list-search-input:focus { outline: none; --field-edge: var(--accent); --field-bg: var(--field-fill-focus); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.list-search-input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.list-search-clear {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: var(--surface-3); color: var(--muted); border-radius: 50%;
  font-size: 17px; line-height: 1; cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-spring);
}
.list-search-clear[hidden] { display: none; }
.list-search-clear:hover { background: var(--accent-soft); color: var(--accent); transform: translateY(-50%) scale(1.1); }
.list-search-count { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }

@media (max-width: 768px) {
  .list-search-field { flex: 1 1 100%; max-width: none; }
  .list-search-clear { width: 32px; height: 32px; }
}


.fin-status-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 14px;
}
.fin-status { display: inline-flex; align-items: center; gap: 8px; }
.fin-status-label { font-weight: 600; color: var(--muted); }
.fin-status-auto {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em;
  border: 1px solid var(--border-strong); border-radius: 6px; padding: 1px 6px;
}
.fin-pending-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--fs-sm); }
.fin-pending-toggle input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent); }
.fin-pending-toggle:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.fin-pending-toggle:has(input:disabled) input { cursor: not-allowed; }


.pay-inline-grid { margin-bottom: 12px; }
.pay-inline-grid #pay-received { font-weight: 600; }
.pay-inline-grid #pay-received:disabled { opacity: .55; cursor: not-allowed; }

.pay-change-field .pay-change-value {
  font-weight: 700; color: var(--accent);
  border-color: var(--accent); background: var(--accent-soft);
}
.pay-inline-hint { font-size: var(--fs-xs); margin: -4px 0 12px; }

.pay-review-summary {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  padding: 10px 12px; background: var(--surface-3); border-radius: 10px; font-size: var(--fs-sm); color: var(--label);
}
.pay-review-summary strong { color: var(--text); }
@media (max-width: 768px) {
  .pay-inline-grid input, .pay-inline-grid select { min-height: 44px; }
}


#order-modal-overlay[data-mode="quote"] .order-only { display: none !important; }


.payment-helper {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  margin: -2px 0 14px; padding: 9px 12px;
  background: var(--surface-3); border-radius: 10px; font-size: var(--fs-sm);
}
.payment-helper-remaining { color: var(--muted); }
.payment-helper-change {
  font-weight: 700; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.payment-helper-change::before { content: "↩"; font-weight: 400; }
@media (max-width: 768px) {
  .payment-helper { flex-direction: column; gap: 4px; }
}




.modal-narrow { max-width: 460px; }
.checkbox-field { flex-direction: row; align-items: center; gap: 8px; }
.checkbox-field input { width: 16px; height: 16px; accent-color: var(--accent); }
.row-flagged { background: var(--danger-bg); }
.att-flag { color: var(--danger-text); font-weight: 600; }
.user-pay-line { font-size: var(--fs-xs); margin-top: 2px; }


.mytime-wrap { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.mytime-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 28px 20px; text-align: center;
}
.mytime-status { font-size: 17px; font-weight: 600; color: var(--muted); }
.mytime-timer { font-size: 46px; font-weight: 800; letter-spacing: 1px; color: var(--accent); font-variant-numeric: tabular-nums; }
.mytime-btn { min-height: 64px; min-width: 220px; font-size: 20px; border-radius: 14px; }
.mytime-btn.checkout { background: var(--danger-text); border-color: var(--danger-text); }
.mytime-flag-box { display: flex; flex-direction: column; gap: 8px; }
.mytime-flag { background: var(--danger-bg); color: var(--danger-text); border-radius: 10px; padding: 10px 14px; font-size: var(--fs-md); font-weight: 600; }
.mytime-week-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }


.att-dash, .att-section { margin-bottom: 28px; }
.att-section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.att-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.att-controls select, .att-controls input[type="date"] { min-height: 38px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--input-bg); padding: 4px 8px; }
.att-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.att-count { background: var(--surface-3); border-radius: 12px; padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.att-count-n { font-size: 30px; font-weight: 800; line-height: 1; }
.att-count-in .att-count-n { color: var(--accent); }
.att-count-out .att-count-n { color: var(--accent); }
.att-count-absent .att-count-n { color: var(--muted); }


.att-roster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.att-group { border: 1px solid var(--border-strong); border-top-width: 3px; border-radius: 12px; background: var(--surface-2); padding: 12px 14px; }
.att-group-in { border-top-color: var(--accent); }
.att-group-out { border-top-color: var(--accent); }
.att-group-absent { border-top-color: var(--border-strong); }
.att-group-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.att-group-count { font-size: 26px; font-weight: 800; line-height: 1; }
.att-group-in .att-group-count { color: var(--accent); }
.att-group-out .att-group-count { color: var(--accent); }
.att-group-absent .att-group-count { color: var(--muted); }
.att-group-label { font-weight: 600; color: var(--label); }
.att-group-body { display: flex; flex-direction: column; gap: 8px; }
.att-group-empty { color: var(--muted); font-size: 20px; line-height: 1; padding: 2px 0 4px; }
.att-chip { display: flex; align-items: center; gap: 9px; }
.att-chip-body { display: flex; flex-direction: column; min-width: 0; }
.att-chip-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-chip-sub { font-size: var(--fs-xs); color: var(--muted); }
.att-group-absent .att-chip-name { color: var(--muted); }

.att-recheck-btn { margin-inline-start: auto; flex: 0 0 auto; border: 1px solid var(--border-strong); background: var(--surface-3); color: var(--accent); font-size: var(--fs-2xs); font-weight: 600; border-radius: 8px; padding: 3px 8px; cursor: pointer; white-space: nowrap; line-height: 1.4; transition: background var(--speed) ease; }
.att-recheck-btn:hover { background: var(--accent-soft); color: var(--accent-hover); }
.att-recheck-ok { margin-inline-start: auto; flex: 0 0 auto; color: var(--accent); font-weight: 800; font-size: var(--fs-sm); }
#att-emp-recheck { white-space: nowrap; }
.att-live { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); }
.att-pay-card { background: var(--surface-3); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.att-pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.att-pay-grid > div { display: flex; flex-direction: column; gap: 2px; }
.att-pay-grid > div > span { font-size: var(--fs-xs); color: var(--muted); }
.att-pay-grid > div > strong { font-size: 17px; }
.att-pay-total > strong { color: var(--accent); }
.att-pay-range { margin-top: 10px; font-size: var(--fs-xs); }
.att-warn { margin-top: 10px; background: var(--warn-bg); color: var(--warn-text); border-radius: 9px; padding: 8px 12px; font-size: var(--fs-xs); font-weight: 600; }


.att-provisional {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 8px 12px;
  background: var(--accent-soft); border-radius: 9px; font-size: var(--fs-sm);
}
.att-provisional strong { font-variant-numeric: tabular-nums; }
.att-prov-note { font-size: var(--fs-xs); }
.att-live-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--accent);
  animation: attLivePulse 1.6s ease-in-out infinite;
}
@keyframes attLivePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.att-report-range { margin-bottom: 8px; }
.att-report-totals { margin-top: 10px; font-size: var(--fs-md); }


.checklists-placeholder {
  margin-top: 24px; padding: 40px 20px; text-align: center;
  background: var(--surface-2); border: 1px dashed var(--border-strong);
  border-radius: 14px;
}


.cl-loading, .cl-empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.cl-inactive { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.clp-toolbar, .cla-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.cl-day-field { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }
.cla-active-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); }
.cl-prog-note { margin: 0 0 12px; }

.cl-mine, .clp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.clp-group { grid-column: 1 / -1; }
.clp-group-name { font-family: var(--font-display); font-size: 18px; margin: 8px 0 10px; }
.clp-group .cl-mine, .clp-group { }
.clp-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.clp-group-name { grid-column: 1 / -1; }

.cl-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
}
.cl-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cl-card-title { font-family: var(--font-display); font-size: 17px; margin: 0; }
.cl-card-desc { margin: 2px 0 0; font-size: var(--fs-xs); }
.cl-card-assignee { display: block; font-size: var(--fs-xs); margin-top: 2px; }
.cl-type-badge { flex: 0 0 auto; font-size: var(--fs-2xs); font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.4px; }
.cl-type-daily { background: rgba(var(--accent-rgb), 0.14); color: var(--accent-hover); }
.cl-type-oneoff { background: rgba(var(--clay-rgb), 0.16); color: var(--clay); }
.cl-type-weekday { background: rgba(var(--periwinkle-rgb), 0.16); color: var(--periwinkle-text); }
.cl-type-inventory { background: rgba(var(--amber-rgb), 0.16); color: var(--amber-text); }

.cl-inv-summary { font-size: var(--fs-xs); margin: 2px 0 8px; }
.cl-inv-items { display: flex; flex-direction: column; gap: 6px; }
.cl-inv-item {
  display: flex; align-items: center; gap: 10px; min-height: 42px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px;
}
.cl-inv-item.cl-inv-available { border-color: rgba(var(--accent-rgb), 0.5); background: rgba(var(--accent-rgb), 0.07); }
.cl-inv-item.cl-inv-missing { border-color: rgba(var(--brick-rgb), 0.55); background: rgba(var(--brick-rgb), 0.08); }
.cl-inv-name { flex: 1; min-width: 0; font-size: var(--fs-sm); }
.cl-inv-btns { flex: 0 0 auto; display: flex; gap: 6px; }
.cl-inv-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); font-size: var(--fs-md); cursor: pointer; line-height: 1; color: var(--muted);
}
.cl-inv-btn-avail.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cl-inv-btn-miss.is-on { background: var(--danger); border-color: var(--danger); color: #fff; }
.cl-inv-add { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; }
.cl-inv-add .rf-input { flex: 1; min-width: 120px; }
.cl-inv-confirm { width: 100%; margin-top: 4px; }

.clp-inventory { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.clp-inv-title { font-size: var(--fs-lg); margin: 4px 0; }
.cl-card-inv-review .cl-inv-meta { font-size: var(--fs-2xs); }

.cl-inv-status { flex: 0 1 auto; font-size: var(--fs-2xs); font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.cl-inv-status-confirmed { background: rgba(var(--amber-rgb), 0.16); color: var(--amber-text); }
.cl-inv-status-reviewed { background: rgba(var(--accent-rgb), 0.16); color: var(--accent-hover); }
.cl-inv-rlist { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.cl-inv-rrow { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 8px; background: var(--surface); }
.cl-inv-rrow .cl-inv-name { font-size: var(--fs-xs); }
.cl-inv-chip { flex: 0 0 auto; font-size: var(--fs-2xs); font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.cl-inv-chip-avail { background: rgba(var(--accent-rgb), 0.16); color: var(--accent-hover); }
.cl-inv-chip-miss { background: var(--danger-bg); color: var(--danger-text); }
.cl-inv-chip-unset { background: var(--surface-3); color: var(--muted); }
.cl-inv-signrow { margin-top: 6px; }
.cl-inv-signed { font-size: var(--fs-xs); color: var(--accent-hover); font-weight: 600; }

.cl-card-inv { padding: 0; overflow: hidden; }
.cl-inv-header {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px;
  padding: 10px 14px; background: none; border: 0; cursor: pointer; text-align: start; color: inherit;
}
.cl-inv-header:hover { background: rgba(var(--accent-rgb), 0.05); }
.cl-inv-chevron { flex: 0 0 auto; font-size: var(--fs-xs); color: var(--muted); width: 14px; }
.cl-inv-htitle { font-weight: 700; font-size: var(--fs-md); color: var(--text); flex: 0 0 auto; }
.cl-inv-hsummary { font-size: var(--fs-xs); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-inv-body { padding: 0 14px 14px; }
.cl-inv-history { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.cl-inv-history-title { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; color: var(--muted); margin-bottom: 6px; }
.cl-inv-hrow { font-size: var(--fs-xs); padding: 4px 0; border-bottom: 1px dashed var(--border); }
.cl-inv-hrow:last-child { border-bottom: 0; }
.cl-inv-hrow.cl-inv-h-reviewed { color: var(--accent-hover); }

.cl-inv-hlist { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.cl-inv-hitem { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }





.cl-inv-hitem-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; }
.cl-inv-hitem-toggle { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 32px; background: none; border: 0; cursor: pointer; text-align: start; color: inherit; }
.cl-inv-hdate { font-weight: 600; font-size: var(--fs-xs); flex: 0 0 auto; }
.cl-inv-hby { font-size: var(--fs-xs); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-inv-hitem .cl-inv-rlist { margin: 0 10px 10px; }
.cl-progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.cl-progress-bar { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.25s ease; }
.cl-progress-lbl { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }


.cl-day-by + .cl-day-by { margin-top: -6px; }
.cl-card .cl-day-older { padding: 12px 8px; }
.cl-items { display: flex; flex-direction: column; gap: 8px; }


.mycl-items-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.mycl-prog { font-weight: 700; }
.cl-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px;
  padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--input-bg); text-align: start; cursor: pointer; font-size: var(--fs-sm); color: var(--text);
}
.cl-item:hover { border-color: var(--accent); }
.cl-item-ro { cursor: default; }
.cl-check {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  border: 2px solid var(--border-strong); color: #fff; font-size: var(--fs-sm); font-weight: 800; line-height: 1;
}
.cl-item-done { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }
.cl-item-done .cl-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cl-item-done .cl-item-text { text-decoration: line-through; color: var(--muted); }


.cla-list { display: flex; flex-direction: column; gap: 10px; }
.cla-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
}
.cla-row-title { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cla-row-sub { font-size: var(--fs-xs); margin-top: 3px; }
.cla-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cla-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cla-items { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 8px; }
.cla-item-row { display: flex; gap: 6px; align-items: center; }

.cla-assign-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cla-assign-opt {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 6px 11px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-2); font-size: var(--fs-sm); user-select: none;
}
.cla-assign-opt:has(.cla-assign-cb:checked) { border-color: var(--gold); background: var(--success-bg); color: var(--success-text); font-weight: 600; }
.cla-assign-opt input { accent-color: var(--success-text); }
.cla-item-inputs { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cla-item-input, .cla-item-input-ar { flex: 1; }
.cla-item-btn {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface-3); cursor: pointer; font-size: var(--fs-sm); line-height: 1;
}
.cla-item-btn.danger { color: var(--danger-text); }


.cla-drec-state { font-weight: 600; }
.cla-drec-state-done { color: var(--accent-hover); font-weight: 700; }
.cla-drec-era { display: inline-block; font-size: var(--fs-xs); padding: 1px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); white-space: nowrap; }
.cla-drec-person { padding: 6px 0; }
.cla-drec-person + .cla-drec-person { border-top: 1px dashed var(--border); }
.cla-drec-person-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--fs-xs); margin-bottom: 4px; }


.cla-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.cla-tab {
  appearance: none; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  padding: 9px 16px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px;
  border-radius: 8px 8px 0 0; letter-spacing: 0.2px;
}
.cla-tab:hover { color: var(--text); background: rgba(var(--accent-rgb), 0.06); }
.cla-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.cla-rec-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 12px; }
.cla-rec-h { font-family: var(--font-display); font-size: 18px; margin: 22px 0 4px; }
.cla-rec-h:first-of-type { margin-top: 6px; }
.cla-rec-note { font-size: var(--fs-xs); margin: 0 0 12px; }
.cla-daylogs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 8px; }
.cla-daylog-card { gap: 12px; }
.cla-drec-list { display: flex; flex-direction: column; gap: 6px; }
.cla-drec { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.cla-drec-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; min-height: 40px;
  padding: 8px 10px; background: none; border: 0; cursor: pointer; text-align: start; color: inherit;
}
.cla-drec-head:hover { background: rgba(var(--accent-rgb), 0.05); }
.cla-drec.is-open { border-color: rgba(var(--accent-rgb), 0.5); }
.cla-drec-date { font-weight: 700; font-size: var(--fs-sm); flex: 0 0 auto; }
.cla-drec-meta { font-size: var(--fs-xs); min-width: 0; }
.cla-drec-detail { display: flex; flex-direction: column; gap: 6px; padding: 4px 10px 10px; }
.cla-drec-detail .cl-item-ro { min-height: 38px; }
.cla-drec-empty { padding: 8px 4px; font-size: var(--fs-xs); }

@media (max-width: 640px) {
  .cla-row2 { grid-template-columns: 1fr; }
  .cl-mine, .clp-group, .cla-daylogs { grid-template-columns: 1fr; }
  .cla-tab { padding: 9px 12px; }
}



.pay-eye-btn { display: inline-flex; align-items: center; gap: 6px; }
.pay-eye-btn svg { display: block; flex: 0 0 auto; }
.pay-eye-btn.is-revealed { border-color: var(--accent); color: var(--accent); }
.pay-eye-lbl { line-height: 1; }
@media (hover: none), (max-width: 640px) {
  .pay-eye-btn { min-height: 44px; }
}


.notif-bell {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: var(--surface-3); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 8px 12px; cursor: pointer; margin-bottom: 10px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text); position: relative;
}
.notif-bell:hover { background: var(--accent-soft); }



.notif-bell[hidden] { display: none !important; }
.notif-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  

  background: var(--danger); color: #fff; border-radius: 999px;
  font-size: var(--fs-2xs); font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.notif-panel { max-width: 440px; }
.notif-panel-actions { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.notif-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.notif-list::-webkit-scrollbar { width: 8px; }
.notif-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.notif-list::-webkit-scrollbar-track { background: transparent; }



.notif-item {
  text-align: left; width: 100%; border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; background: var(--sidebar-bg); cursor: pointer;
}
.notif-item:hover { background: var(--surface-3); }

.notif-item.unread { background: var(--accent-soft); border-color: var(--accent); }
.notif-item-title { font-weight: 600; font-size: var(--fs-sm); color: var(--label); }
.notif-item.unread .notif-item-title { font-weight: 700; color: var(--text); }
.notif-item-body { font-size: var(--fs-xs); color: var(--label); margin-top: 2px; }
.notif-item-time { font-size: var(--fs-xs); margin-top: 4px; color: var(--muted); }
.notif-empty { padding: 20px; text-align: center; }

@media (max-width: 768px) {
  .att-counts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .att-counts .att-count { padding: 10px 6px; }
  .att-roster { grid-template-columns: 1fr; }
  .mytime-timer { font-size: 40px; }
  .mytime-btn { width: 100%; }
  .att-section-head { align-items: flex-start; }
}


.att-range-field { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--muted); }
.att-range-field input { min-height: 38px; border: 1px solid var(--border-strong); border-radius: 9px; padding: 4px 8px; }
.att-pay-hidden { padding: 10px 0 2px; font-style: italic; }
.att-pay-reveal { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-strong); }
.att-leaderboard { display: flex; flex-direction: column; gap: 10px; }
.att-lb-top { background: var(--accent-soft); color: var(--accent); border-radius: 12px; padding: 12px 16px; font-size: var(--fs-lg); }
.att-lb-first td { background: var(--accent-soft); font-weight: 700; }


.order-item .tree-hidden-dim { display: none !important; }


.item-variation-chip {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: var(--fs-2xs); font-weight: 600; white-space: nowrap;
}
.ready-item-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.item-change-product { margin-left: auto; }
.item-variation-wrap { margin-top: 8px; }
.item-variation-attrs { display: flex; flex-wrap: wrap; gap: 12px; }
.item-variation-attrs .item-attr-field { flex: 1 1 140px; min-width: 130px; }
.item-size-hidden { display: none; }
@media (max-width: 768px) {
  .item-change-product { margin-left: 0; }
  .item-variation-attrs .item-attr-field { flex: 1 1 100%; }
}







[dir="rtl"] .data-table th,
[dir="rtl"] .data-table td { text-align: right; }


[dir="rtl"] .sidebar {
  left: auto; right: 0;
  border-right: none; border-left: 1px solid var(--border);
}
[dir="rtl"] .content { margin-left: 0; margin-right: var(--sidebar-w); }


.lang-toggle { align-self: stretch; }

@media (max-width: 768px) {
  
  [dir="rtl"] .sidebar { transform: translateX(100%); box-shadow: -6px 0 30px rgba(0, 0, 0, 0.6); }
  [dir="rtl"] .sidebar.open { transform: translateX(0); }
  [dir="rtl"] .content { margin-right: 0; }
  
  [dir="rtl"] .prod-status-btn { min-height: 44px; }
}




.hub-toggle { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.hub-panel[hidden] { display: none; }

.daily-report-modal { max-width: 760px; }
.daily-report-controls { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.daily-report-controls .field { margin: 0; }
.daily-report-body { max-height: 60vh; overflow: auto; }
.dr-totals { margin-top: 16px; border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; background: var(--sidebar-bg); }
.dr-totals-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.dr-total { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: var(--fs-sm); }
.dr-total span:first-child { font-weight: 600; }


.dr-cashin { margin-top: 16px; margin-bottom: 4px; border: 1px solid var(--accent); border-radius: 14px; padding: 12px 16px; background: rgba(var(--accent-rgb), 0.06); }
.dr-cashin .dr-totals-label { color: var(--accent); }
.dr-cashin-sub { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: var(--fs-xs); }
.dr-cnt { font-weight: 400; font-size: var(--fs-xs); }

.dr-cashin-expandable .dr-cashin-head { cursor: pointer; user-select: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.dr-caret { display: inline-block; color: var(--accent); font-size: var(--fs-2xs); transition: transform 0.12s ease; }
.dr-cashin-hint { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: var(--fs-xs); }
.dr-cashin-list { margin-top: 10px; border-top: 1px dashed var(--accent); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.dr-pay-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px;
  width: 100%; text-align: start; background: transparent; border: 0; border-radius: 8px;
  padding: 7px 8px; font: inherit; color: var(--text); cursor: pointer; }
.dr-pay-row:hover { background: rgba(var(--accent-rgb), 0.10); }
.dr-pay-time { font-variant-numeric: tabular-nums; font-size: var(--fs-xs); min-width: 40px; }
.dr-pay-client { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-pay-order { font-size: var(--fs-xs); }
.dr-pay-amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.dr-pay-ccy { display: inline-block; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.5px;
  padding: 1px 6px; border-radius: 999px; margin-inline-end: 2px; vertical-align: middle; }
.dr-ccy-usd { background: var(--success-bg); color: var(--success-text); }
.dr-ccy-lbp { background: rgba(var(--info-tint-rgb), 0.16); color: var(--info-text); }

@media (max-width: 768px) {
  .daily-report-controls { align-items: stretch; }
  .daily-report-controls .btn { min-height: 44px; }
}




.bulk-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 14px; padding: 9px 14px;
  background: var(--sidebar-bg); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-sm);
}
.bulk-count { font-weight: 600; font-size: var(--fs-sm); }
.data-table th.check-col, .data-table td.check-col { width: 40px; text-align: center; }
.data-table .row-check, #orders-select-all, #clients-select-all { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); }

@media (max-width: 768px) {
  
  .data-table td.check-col { justify-content: flex-start; gap: 10px; }
  .data-table td.check-col .row-check { width: 22px; height: 22px; }
  .bulk-bar .btn { min-height: 44px; }
}




.sig-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.sig-section-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sig-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sig-badge { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: var(--fs-2xs); font-weight: 600; }
.sig-unsigned { background: var(--surface-3); color: var(--muted); }
.sig-sent { background: rgba(var(--amber-rgb), .18); color: var(--amber-text); border: 1px solid rgba(var(--amber-rgb), .4); }
.sig-signed { background: rgba(var(--accent-rgb), .18); color: var(--success-text); border: 1px solid rgba(var(--accent-rgb), .4); }
.sig-image { margin-top: 10px; }
.sig-image img { max-width: 300px; width: 100%; background: #fff; border-radius: 10px; padding: 6px; border: 1px solid var(--border); }
.sig-link-box { margin-top: 10px; }
.sig-link-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sig-link-input { flex: 1; min-width: 200px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: var(--fs-xs); }

.signature-modal { max-width: 640px; }
.signature-details { max-height: 42vh; overflow: auto; margin-bottom: 8px; }
.sig-consent-admin { font-size: var(--fs-xs); margin: 6px 0 12px; }
.sig-pad-wrap { position: relative; }
.sig-pad-canvas { width: 100%; height: 200px; background: #fff; border: 1px dashed var(--border); border-radius: 12px; touch-action: none; display: block; }
.sig-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: var(--muted); font-size: var(--fs-sm); pointer-events: none; }
.sig-controls { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.sig-controls input[type="text"] { flex: 1; min-width: 180px; min-height: 40px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: var(--fs-md); }
.sig-review-head { font-family: var(--font-display); font-weight: 600; margin-bottom: 10px; }

@media (max-width: 768px) {
  .sig-controls .btn, .signature-modal .modal-actions .btn { min-height: 44px; }
}




.catalog-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.catalog-selall-wrap { font-size: var(--fs-xs); color: var(--muted); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.catalog-selall-wrap input { width: 16px; height: 16px; accent-color: var(--accent); }
.catalog-bulkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; padding: 8px 10px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 10px; }
.catalog-bulkbar .cat-count { font-weight: 600; font-size: var(--fs-xs); }
.catalog-item .cat-check { width: 16px; height: 16px; margin-right: 8px; flex: 0 0 auto; accent-color: var(--accent); cursor: pointer; }
@media (max-width: 768px) {
  .catalog-bulkbar .btn { min-height: 40px; }
  .catalog-item .cat-check { width: 20px; height: 20px; }
}




.order-modal-header {
  position: sticky; top: 0; z-index: 6;
  background: var(--surface-2);
  margin: -4px -4px 0; padding: 4px;
  border-bottom: 1px solid var(--border);
}
.order-header-actions { display: flex; align-items: center; gap: 10px; }
.order-partial-note { font-size: var(--fs-xs); font-weight: 600; color: var(--success-text); background: var(--success-bg); border: 1px solid rgba(var(--accent-rgb), .28); border-radius: 999px; padding: 3px 10px; }
#order-header-save-btn { min-height: 36px; }
@media (max-width: 768px) {
  #order-header-save-btn { min-height: 44px; }
  .order-partial-note { display: none; }
}





.act-filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 16px; padding: 12px 14px;
  background: var(--sidebar-bg); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-sm);
}
.act-filters .act-search { flex: 1 1 220px; min-width: 180px; }
.act-filters select, .act-filters input[type="date"] {
  height: 38px; padding: 0 10px; border: 1px solid var(--border-strong);
  border-radius: 9px; background: var(--input-bg); color: var(--text);
  font: inherit; font-size: var(--fs-xs);
}
.act-date { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }
.act-pager {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 16px; flex-wrap: wrap;
}
.act-pager .btn-sm[disabled] { opacity: 0.4; cursor: default; pointer-events: none; }


.act-badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em; text-transform: capitalize;
  background: var(--neutral-bg); color: var(--neutral-text); white-space: nowrap;
}
.act-a-create, .act-a-login { background: var(--success-bg); color: var(--success-text); }
.act-a-update, .act-a-edit, .act-a-assign, .act-a-status-change { background: var(--info-bg); color: var(--info-text); }
.act-a-delete, .act-a-bulk-delete, .act-a-unassign { background: var(--danger-bg); color: var(--danger-text); }
.act-a-restore, .act-a-convert, .act-a-activate { background: var(--purple-bg); color: var(--purple-text); }
.act-a-logout, .act-a-deactivate { background: var(--warn-bg); color: var(--warn-text); }


#act-sessions-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.act-sess-card {
  background: var(--sidebar-bg); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.act-sess-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.act-sess-head strong { font-family: var(--font-display); font-size: var(--fs-lg); }
.act-sess-dur { margin-left: auto; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.act-badge.act-active { background: var(--success-bg); color: var(--success-text); }
.act-badge.act-timeout { background: var(--warn-bg); color: var(--warn-text); }
.act-badge.act-logout { background: var(--neutral-bg); color: var(--neutral-text); }
.act-sess-times { font-size: var(--fs-xs); margin-top: 6px; }
.act-sess-modlabel { font-size: var(--fs-xs); color: var(--muted); margin: 12px 0 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.act-hint { cursor: help; color: var(--clay); font-weight: 700; }
.act-sess-mods { display: flex; flex-wrap: wrap; gap: 6px; }
.act-mod-chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 3px 9px; border-radius: 8px; font-size: var(--fs-2xs);
  background: var(--accent-soft); color: var(--text); border: 1px solid var(--border);
}
.act-mod-chip b { color: var(--accent-hover); font-variant-numeric: tabular-nums; }
.act-sess-empty { font-size: var(--fs-xs); }

@media (max-width: 768px) {
  #act-sessions-list { grid-template-columns: 1fr; }
  .act-filters { padding: 10px; }
  .act-filters select, .act-filters input[type="date"] { flex: 1 1 auto; }
}




.lb-intro { max-width: 760px; margin: 0 0 14px; }
.lb-monthpick { display: inline-flex; align-items: center; gap: 8px; }
.lb-month-input {
  height: 38px; padding: 0 10px; border: 1px solid var(--border-strong);
  border-radius: 9px; background: var(--input-bg); color: var(--text); font: inherit; font-size: var(--fs-xs);
}

.lb-eom {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(100deg, var(--warn-bg), var(--surface-2));
  border: 1px solid var(--gold); border-radius: 14px; padding: 14px 18px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.lb-eom-badge {
  display: inline-block; background: var(--gold); color: #4a3d1e; font-weight: 700;
  font-size: var(--fs-2xs); letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.lb-eom-name { font-family: var(--font-display); font-size: 20px; color: var(--text); }


.eom-card {
  margin: 16px 0 6px; padding: 14px 16px 16px; border-radius: 16px;
  background: linear-gradient(160deg, var(--warn-bg), var(--surface-2));
  border: 1px solid var(--gold); box-shadow: var(--shadow-sm);
}
.eomc-head { display: flex; align-items: center; gap: 12px; }
.eomc-trophy { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--warn-bg); color: var(--gold); border: 1px solid var(--gold); }
.eomc-trophy .ico { width: 26px; height: 26px; }
.eomc-titles { min-width: 0; }
.eomc-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.2; }
.eomc-month { font-size: var(--fs-sm); color: var(--muted); }
.eomc-line { margin: 10px 0 12px; font-size: var(--fs-sm); line-height: 1.45; color: var(--text); }
.eomc-places { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eomc-place { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 8px 12px; text-align: center; min-width: 0; }
.eomc-first { border-color: var(--gold); }
.eomc-rank { display: inline-block; font-weight: 800; font-size: var(--fs-sm); padding: 2px 12px; border-radius: 999px; margin-bottom: 10px; background: var(--surface-3); color: var(--text); border: 1px solid var(--border); }
.eomc-first .eomc-rank { background: var(--warn-bg); color: var(--text); border-color: var(--gold); }
.eomc-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.eomc-person { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.eomc-second .avatar-lg { transform: scale(.82); transform-origin: center bottom; }
.eomc-name { font-weight: 700; font-size: var(--fs-sm); color: var(--text); overflow-wrap: anywhere; }



.eom-card.eom-card-top { margin: 4px 0 12px; padding: 10px 12px 12px; }
.eom-card-top .eomc-head { gap: 10px; }
.eom-card-top .eomc-trophy { width: 34px; height: 34px; }
.eom-card-top .eomc-trophy .ico { width: 20px; height: 20px; }
.eom-card-top .eomc-title { font-size: 17px; }
.eom-card-top .eomc-month { font-size: var(--fs-xs); }
.eom-card-top .eomc-line { margin: 6px 0 8px; font-size: var(--fs-xs); line-height: 1.35; }
.eom-card-top .eomc-places { gap: 8px; }
.eom-card-top .eomc-place { padding: 6px 8px 8px; text-align: start; }
.eom-card-top .eomc-rank { margin-bottom: 6px; padding: 1px 10px; font-size: var(--fs-xs); }
.eom-card-top .eomc-people { justify-content: flex-start; gap: 6px; }
.eom-card-top .eomc-person { flex-direction: row; gap: 8px; }
.eom-card-top .eomc-person .avatar-lg { width: 40px; height: 40px; font-size: var(--fs-sm); border-width: 1px; }
.eom-card-top .eomc-second .avatar-lg { transform: none; }
.eom-card-top .eomc-name { text-align: start; }
.lb-staffcard { border: 1px dashed var(--gold); border-radius: 14px; padding: 12px 14px; margin: -6px 0 16px; background: var(--surface-2); }
.lb-staffcard-title { font-weight: 800; font-size: var(--fs-sm); color: var(--text); }
.lb-staffcard-line { margin: 4px 0 10px; font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); }
.lb-staffcard-err { margin: 0 0 8px; font-size: var(--fs-sm); color: var(--danger); }

.lb-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.lb-podium:empty { display: none; }
.lb-podium-card {
  background: var(--sidebar-bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 12px; text-align: center; box-shadow: var(--shadow-sm); position: relative;
}
.lb-podium-card.lb-p1 { border-color: var(--gold); border-width: 2px; transform: translateY(-4px); }
.lb-podium-card.lb-p2 { border-color: var(--border-strong); }
.lb-medal { font-size: 30px; line-height: 1; margin-bottom: 6px; }
.lb-podium-name { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; }
.lb-podium-pts { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-podium-unit { font-weight: 500; font-size: var(--fs-xs); color: var(--muted); }

.lb-table .lb-num { text-align: right; font-variant-numeric: tabular-nums; }
.lb-table .lb-rank-col { width: 40px; text-align: center; color: var(--muted); font-weight: 600; }
.lb-table .lb-pts { font-weight: 700; color: var(--accent-hover); }
.lb-table .lb-sub { font-size: var(--fs-xs); }
.lb-eom-row { background: var(--warn-bg); }
.lb-eom-tag { color: var(--warn-text); font-weight: 700; font-size: var(--fs-2xs); margin-left: 4px; }


.mytime-points {
  background: var(--sidebar-bg); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: 12px; padding: 14px 16px; margin: 4px 0 8px; box-shadow: var(--shadow-sm);
}
.mp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mp-title { font-weight: 600; }
.mp-month { font-weight: 400; font-size: var(--fs-2xs); }
.mp-total { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--accent); }
.mp-total-unit { font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-ui); }
.mp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.mp-stat {
  text-align: center; background: var(--accent-soft); border-radius: 9px; padding: 8px 4px;
}
.mp-stat b { display: block; font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.mp-stat span { font-size: var(--fs-xs); color: var(--muted); }

@media (max-width: 640px) {
  .lb-podium { grid-template-columns: 1fr; }
  .lb-podium-card.lb-p1 { transform: none; }
  .mp-stats { grid-template-columns: repeat(2, 1fr); }
}






.avatar {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; font-size: var(--fs-2xs); border-radius: 50%; overflow: hidden;
  background: var(--accent-soft); color: var(--accent-hover); font-weight: 700;
  flex: 0 0 auto; vertical-align: middle; line-height: 1;
  border: 1px solid var(--border); 
}
.avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-ini { user-select: none; letter-spacing: .02em; }



.av-h0 { background: rgba(96, 165, 250, 0.18);  color: #A7C9F5; }  
.av-h1 { background: rgba(45, 212, 191, 0.16);  color: #7EE6D4; }  
.av-h2 { background: rgba(111, 221, 132, 0.16); color: #9AE8AB; }  
.av-h3 { background: rgba(201, 181, 138, 0.18); color: #DFCFA6; }  
.av-h4 { background: rgba(255, 196, 87, 0.16);  color: #F5CE84; }  
.av-h5 { background: rgba(221, 174, 133, 0.18); color: #EBC8A8; }  
.av-h6 { background: rgba(244, 143, 177, 0.15); color: #F3B3C9; }  
.av-h7 { background: rgba(167, 139, 250, 0.17); color: #C9BBF7; }  
.avatar-xs { width: 22px; height: 22px; font-size: 9px; }
.avatar-sm { width: 30px; height: 30px; font-size: var(--fs-2xs); }
.avatar-md { width: 44px; height: 44px; font-size: var(--fs-md); }
.avatar-lg { width: 76px; height: 76px; font-size: 26px; border: 2px solid var(--surface-2); box-shadow: var(--shadow-sm); }


.user-info {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: transparent; border: none; padding: 7px 6px; border-radius: 10px;
  cursor: pointer; color: inherit; transition: background var(--dur-base) ease;
}
.user-info:hover { background: var(--surface-3); }
.user-info-text { display: flex; flex-direction: column; min-width: 0; }
.menu-avatar { display: inline-flex; }


.profile-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.profile-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.profile-role { text-transform: capitalize; font-size: var(--fs-xs); }
.profile-photo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-sep { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.profile-subhead { font-family: var(--font-display); font-size: var(--fs-md); margin: 0 0 10px; }
.profile-pw-form .field { margin-bottom: 10px; }
.profile-pw-msg { font-size: var(--fs-xs); padding: 8px 10px; border-radius: 8px; margin: 2px 0 10px; }
.profile-pw-msg.error { background: var(--danger-bg); color: var(--danger-text); }
.profile-pw-msg.ok { background: var(--success-bg); color: var(--success-text); }


.avatar-row { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; vertical-align: middle; }
.avatar-row-name { margin-right: 6px; }
.lb-name-cell { display: inline-flex; align-items: center; gap: 8px; }
.lb-podium-av { margin: 2px auto 8px; }
.lb-eom .avatar { border: 2px solid var(--gold); }
.lb-eom-amp { color: var(--muted); margin: 0 2px; }
.prod-leader { display: inline-flex; align-items: center; gap: 5px; }
.prod-card-labor .avatar-row { margin-top: 2px; }
.labor-chip { display: inline-flex; align-items: center; gap: 5px; }
.notif-item.has-avatar { display: flex; align-items: flex-start; gap: 10px; text-align: left; }
.notif-item.has-avatar .notif-item-main { flex: 1; min-width: 0; }
.notif-avatar { margin-top: 1px; }




.prod-hub-toggle { margin: 4px 0 16px; }
.internal-cat { background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }
#internal-tasks-panel .prod-filters { align-items: center; }
#internal-new-btn { margin-left: auto; }
.labor-assign { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 8px 0; }
.labor-check { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .field { flex: 1 1 160px; }


.notif-section + .notif-section { margin-top: 6px; }
.notif-section-head {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); padding: 10px 14px 4px;
}
.notif-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.notif-badge-type {
  display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-xs); font-weight: 700;
  padding: 2px 7px; border-radius: 999px; background: var(--neutral-bg); color: var(--neutral-text); white-space: nowrap;
}
.notif-badge-type.notif-ok { background: var(--success-bg); color: var(--success-text); }
.notif-badge-type.notif-warn { background: var(--warn-bg); color: var(--warn-text); }
.notif-badge-type.notif-task { background: var(--info-bg); color: var(--info-text); }
.notif-badge-type.notif-muted { background: var(--neutral-bg); color: var(--neutral-text); }
.notif-item-head .notif-item-time { margin-left: auto; font-size: var(--fs-xs); }



.update-pill {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 10000; border: 0; border-radius: 999px; padding: 10px 18px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer;
  box-shadow: var(--glow), var(--shadow-sm);
}
.update-pill:hover { background: var(--accent-hover); }




body:has(.modal-overlay.open) .update-pill { display: none; }



body:has(.sidebar.open) .update-pill { display: none; }






.topbar .update-pill { position: static; transform: none; bottom: auto; left: auto; z-index: auto; margin-inline-start: auto; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 10px; box-shadow: none; }
.topbar .hc-btn:not([hidden]) ~ .update-pill { margin-inline-start: 0; }
.topbar .update-pill .update-pill-ico { flex: 0 0 auto; }
.topbar .update-pill .update-pill-text { display: none; }
@media (min-width: 430px) { .topbar .update-pill .update-pill-text { display: inline; } }
.topbar:has(.update-pill) .topbar-title { letter-spacing: 0.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }









@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not(.count-qty-input):not(.kiosk-code-input),
  select,
  textarea { font-size: max(16px, 1em) !important; }
}



.cl-day-field { flex-wrap: wrap; max-width: 100%; min-width: 0; }
.cl-day-field input { min-width: 0; max-width: 100%; flex: 1 1 auto; }





.session-ended {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10001;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; padding: 12px 18px;
  background: var(--danger); color: #fff;
  font-size: var(--fs-sm); font-weight: 600; text-align: center;
  box-shadow: var(--shadow-sm);
}
.session-ended-btn {
  border: 0; border-radius: 999px; padding: 7px 16px;
  background: #fff; color: var(--danger);
  font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer;
}
.session-ended-btn:hover { background: rgba(255, 255, 255, 0.88); }
@media print { .session-ended { display: none !important; } }





.hc-ring {
  position: fixed; inset: 0; z-index: 10002;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(3px);
}
.hc-ring-card {
  width: min(420px, 100%); background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 20px; padding: 26px 22px 22px; text-align: center;
  animation: hcRingPulse 1.2s ease-in-out infinite;
}
@keyframes hcRingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55); }
  50% { box-shadow: 0 0 0 16px rgba(var(--accent-rgb), 0); }
}
.hc-ring-bell { font-size: 56px; line-height: 1; animation: hcRingShake 0.9s ease-in-out infinite; }
@keyframes hcRingShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.hc-ring-title { margin: 12px 0 6px; font-size: 22px; line-height: 1.25; }
.hc-ring-hint { margin: 0 0 4px; font-size: var(--fs-md); }
.hc-ring-since { margin: 0 0 18px; font-size: var(--fs-xs); }
.hc-ring-go { width: 100%; min-height: 64px; font-size: 20px; font-weight: 800; border-radius: 999px; }
.hc-ring-no { width: 100%; min-height: 44px; margin-top: 10px; font-size: var(--fs-sm); background: transparent; color: var(--text); border: 1px solid var(--border); }
@media (prefers-reduced-motion: reduce) { .hc-ring-card, .hc-ring-bell { animation: none; } }


.hc-status.hc-status-ringing, .hc-status.hc-status-ok { background: var(--accent); color: var(--accent-ink); }
.hc-status.hc-status-ringing .session-ended-btn, .hc-status.hc-status-ok .session-ended-btn { color: var(--accent-ink); }
.hc-status.hc-status-bad { background: var(--danger); color: #fff; }

.hc-set-quiet { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 8px; }
.hc-set-field { flex: 1 1 120px; margin: 0; }
.hc-set-hint { margin: 6px 0 0; font-size: var(--fs-xs); }




.tb-avail-title { margin-top: 18px; }
.tb-chip-take { background: var(--accent); color: var(--accent-ink); }
.tb-chip-join { background: var(--surface-3); color: var(--text); }
.tb-faces { display: inline-flex; align-items: center; gap: 2px; margin-inline-end: 6px; }
.tb-faces .avatar-sm { width: 22px; height: 22px; font-size: 10px; }
.tb-sub { font-size: var(--fs-2xs); line-height: 1.3; }
.tb-more { font-size: var(--fs-2xs); margin-top: 6px; }


.points-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px);
  z-index: 4000; display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--gold);
  border-radius: 14px; padding: 12px 18px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-base) ease, transform var(--dur-base) var(--ease-spring);
  max-width: min(92vw, 400px);
}
.points-toast.show { opacity: 1; transform: translate(-50%, 0); }
.points-toast-emoji { font-size: 26px; line-height: 1; }
.points-toast-main { display: flex; flex-direction: column; }
.points-toast-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); }
.points-toast-sub { font-size: var(--fs-xs); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .points-toast { transition: opacity var(--dur-base) ease; transform: translate(-50%, 0); } }


.welcome-toast {
  position: fixed; left: 50%; top: 22px; transform: translate(-50%, -18px);
  z-index: 4000; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  color: var(--text); border: 1px solid var(--gold); border-radius: 16px;
  padding: 13px 22px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) ease, transform var(--dur-base) var(--ease-spring);
  max-width: min(92vw, 460px);
}
.welcome-toast.show { opacity: 1; transform: translate(-50%, 0); }
.welcome-toast-emoji { font-size: 24px; line-height: 1; }
.welcome-toast-text { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.2px; }
@media (prefers-reduced-motion: reduce) { .welcome-toast { transition: opacity var(--dur-base) ease; transform: translate(-50%, 0); } }


.login-lang-row { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.login-lang-row .lang-toggle { align-self: auto; }
.profile-name-form .field { margin-bottom: 10px; }





.task-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 4px 0; flex-wrap: wrap;
}
.task-section-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0; color: var(--text);
}



.task-section + .task-section {
  margin-top: 30px; padding-top: 22px;
  border-top: 2px solid var(--border-strong); 
}
@media (max-width: 768px) {
  .task-section + .task-section { margin-top: 22px; padding-top: 18px; }
  .task-section-title { font-size: 18px; }
}






.labor-assign { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0; width: 100%; }
.labor-check {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--input-bg); cursor: pointer; font-size: var(--fs-sm); max-width: 100%;
  -webkit-tap-highlight-color: transparent; transition: background var(--dur-base) ease, border-color var(--dur-base) ease;
}
.labor-check input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); }
.labor-check-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.labor-check:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }

.internal-images-strip { margin-bottom: 8px; }
.internal-thumb-wrap { position: relative; display: inline-block; }
.internal-thumb-del {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: var(--danger); color: #fff; font-size: var(--fs-md); line-height: 1;
  cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm);
}



.internal-thumb-pending .job-thumb { cursor: default; }
.internal-thumb-pending .job-thumb img { filter: brightness(0.7); opacity: 0.85; }
.internal-thumb-state {
  position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: inherit; pointer-events: none;
}
.internal-thumb-spin::after {
  content: ""; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.55); border-top-color: #fff;
  animation: internal-thumb-spin 0.7s linear infinite;
}
@keyframes internal-thumb-spin { to { transform: rotate(360deg); } }
.internal-thumb-error {
  color: #fff; font-weight: 800; font-size: 20px;
  background: rgba(var(--thumb-error-rgb), 0.55); border-radius: 8px;
}


.internal-bigpick-strip { margin-bottom: 8px; }
.bigpick-thumb {
  position: relative; width: 54px; height: 54px; padding: 0; border-radius: 8px;
  border: 2px solid var(--border); background: var(--surface); cursor: pointer;
  overflow: hidden; display: block;
}
.bigpick-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bigpick-thumb:hover { border-color: var(--accent); }
.bigpick-thumb.is-on { border-color: var(--success-text); }
.bigpick-thumb.is-on img { filter: brightness(0.85); }
.bigpick-check {
  position: absolute; top: 2px; inset-inline-end: 2px; width: 18px; height: 18px; border-radius: 50%;
  
  background: var(--success-text); color: var(--accent-ink); font-size: var(--fs-2xs); line-height: 18px;
  text-align: center; display: none; box-shadow: var(--shadow-sm);
}
.bigpick-thumb.is-on .bigpick-check { display: block; }
.big-thumbs { margin-top: 8px; }
.big-thumbs-label { display: block; font-size: var(--fs-xs); margin-bottom: 4px; }
.big-thumbs .job-thumb { width: 48px; height: 48px; }





.mytime-helping { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.mytime-helping-btn { flex: 1 1 0; min-width: 0; width: auto; padding-inline: 8px; white-space: normal; line-height: 1.2; }
.mytime-helping-on { flex: 1 1 100%; }
.mytime-helping-on { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 12px; background: var(--warn-bg); border: 1px solid var(--warn-border); }
.mytime-helping-badge { font-weight: 700; }
.mytime-helping-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); }
.mytime-helping-on .btn { margin-inline-start: auto; }

.nav-badge { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px;
  margin-inline-start: 6px; border-radius: 9px; background: var(--danger); color: #fff;
  font-size: var(--fs-2xs); font-weight: 700; text-align: center; vertical-align: middle; }

#reviews-body { max-width: 760px; }
.rev-h { font-size: var(--fs-md); margin: 14px 0 8px; display: flex; align-items: center; gap: 8px; }
.rev-h2 { margin-top: 22px; color: var(--muted); }
.rev-count { min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--surface-3); font-size: var(--fs-2xs); text-align: center; }
.rev-empty { padding: 6px 2px; }
.rev-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.rev-main { flex: 1; min-width: 0; }
.rev-title { font-weight: 600; }
.rev-sub { font-size: var(--fs-xs); margin-top: 2px; }
.rev-actions { display: flex; gap: 6px; flex-shrink: 0; }
.rev-meta { flex-shrink: 0; font-size: var(--fs-2xs); }
.rev-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: var(--fs-2xs); font-weight: 600;
  background: var(--surface-3); color: var(--text); }
.rev-chip.rev-ok { background: var(--success-bg); color: var(--success-text); }
.rev-chip.rev-no { background: var(--danger-bg); color: var(--danger-text); }
@media (max-width: 768px) {
  .rev-card { flex-wrap: wrap; }
  .rev-actions { width: 100%; }
  .rev-actions .btn { flex: 1; }
}


.pe-edit-btn { background: var(--surface-3, var(--border)); color: var(--text); }
.btn-xs { padding: 3px 8px; font-size: var(--fs-2xs); line-height: 1.3; border-radius: 8px; }
.pe-modal { max-width: 460px; width: 100%; }
#pe-body { display: flex; flex-direction: column; gap: 8px; }
.pe-head { font-weight: 700; font-size: var(--fs-md); }
.pe-worked { font-weight: 700; color: var(--accent); }
.pe-att { font-size: var(--fs-xs); }
.pe-att .pe-lbl { font-weight: 600; }
.pe-sect-title { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-top: 6px; }
.pe-list { display: flex; flex-direction: column; gap: 6px; }
.pe-pause { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.pe-span { font-size: var(--fs-xs); font-weight: 600; }
.pe-pact { display: flex; gap: 6px; flex-shrink: 0; }
.pe-empty { font-size: var(--fs-xs); }
.pe-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; padding: 8px; border: 1px dashed var(--border); border-radius: 10px; }
.pe-f { display: flex; flex-direction: column; gap: 3px; font-size: var(--fs-2xs); }
.pe-f input { min-height: 38px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.pe-reason-f { flex: 1 1 100%; }
.pe-reason-f input { width: 100%; }
.pe-hint { flex: 1 1 100%; font-size: var(--fs-2xs); color: var(--warn-text); }
.pe-result { font-weight: 700; color: var(--success-text); background: var(--success-bg); padding: 6px 10px; border-radius: 8px; }
.pe-err { color: var(--danger-text); font-size: var(--fs-xs); }


.dt-count { margin: 4px 0 12px; font-size: var(--fs-xs); letter-spacing: .04em; text-transform: uppercase; }
.dt-table td, .dt-table th { vertical-align: middle; }
.dt-task { font-weight: 600; }
.dt-when { white-space: nowrap; }
.dt-actions { white-space: nowrap; text-align: end; }
.dt-actions .btn + .btn { margin-inline-start: 6px; }
.dt-type { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-2xs);
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--surface-3); color: var(--text); }
.dt-type-todo { background: var(--success-bg); color: var(--success-text); }
.dt-type-cal { background: rgba(var(--info-tint-rgb), .16); color: var(--info-text); }
.dt-type-big { background: rgba(var(--purple-tint-rgb), .16); color: var(--purple-text); }
.dt-empty { padding: 28px 0; text-align: center; font-size: var(--fs-md); }
@media (max-width: 768px) {
  .dt-actions { text-align: start; }
  .dt-actions .btn { margin-top: 4px; }
}

@media (max-width: 768px) {
  .labor-assign { flex-direction: column; align-items: stretch; }
  .labor-check { width: 100%; justify-content: flex-start; }
}




.home-header { margin-bottom: 18px; position: relative; }
.home-welcome {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  color: var(--text); margin: 0 0 4px; letter-spacing: 0.2px;
}
.home-subtitle { margin: 0; font-size: var(--fs-sm); }
.home-holidays-btn { position: absolute; top: 2px; right: 0; }
[dir="rtl"] .home-holidays-btn { right: auto; left: 0; }


.home-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
  border: 1px solid var(--gold); border-radius: 16px;
  padding: 14px 18px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.home-strip-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-strip-icon { font-size: 26px; line-height: 1; }
.home-strip-text { display: flex; flex-direction: column; line-height: 1.35; }
.home-strip-status { font-weight: 600; font-size: var(--fs-md); color: var(--text); }
.home-strip-hours { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.home-strip-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.home-strip-btn.checkout { background: var(--clay); }


.home-feed { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.home-feed-empty { padding: 28px 8px; text-align: center; font-size: var(--fs-sm); }
.home-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 13px 16px;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-base) ease;
}
.home-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.home-card-pinned {
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.18), var(--surface-2) 62%); 
  border-color: var(--gold);
}
.home-card-ava { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.home-card-emoji {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--accent-soft);
}
.home-card-body { min-width: 0; flex: 1 1 auto; }
.home-card-text { font-size: var(--fs-md); color: var(--text); line-height: 1.4; }
.home-card-meta { font-size: var(--fs-xs); margin-top: 2px; }


.home-section { max-width: 760px; margin-top: 20px; }


.owner-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.owner-head .home-section-title { margin: 0; }
.owner-asof { font-size: var(--fs-xs); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.owner-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .owner-grid { grid-template-columns: 1fr 1fr; } }
.owner-tile { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--card); min-width: 0; }
.owner-tile-title { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; }
.owner-big { font-size: 18px; font-weight: 800; color: var(--text); margin: 2px 0 6px; line-height: 1.3; }
.owner-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); font-size: var(--fs-sm); line-height: 1.35; }
.owner-row:first-child { border-top: 0; }
.owner-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.owner-row > span:last-child { text-align: end; flex-shrink: 0; max-width: 55%; }
.owner-row .avatar-xs { vertical-align: middle; margin-inline-end: 4px; }

.team-panel .team-waiting { font-weight: 700; color: var(--text); }
.owner-empty { color: var(--muted); font-size: var(--fs-sm); }
.owner-uncrewed, .owner-state-untouched { color: var(--warn-text); font-weight: 700; }
.owner-state-done { color: var(--accent); font-weight: 700; }
.owner-state-running { color: var(--text); font-weight: 700; }


.owner-tile[data-tile="web"] .web-paid { color: var(--accent); font-weight: 700; }
.owner-tile[data-tile="web"] .web-unpaid { color: var(--warn-text); font-weight: 700; }
.owner-tile[data-tile="web"] .web-place { color: var(--muted); font-size: var(--fs-xs); }

.owner-tile[data-tile="web"] .web-add-btn, .owner-tile[data-tile="web"] .web-pay-btn { min-height: 40px; margin-inline-start: 6px; }
.owner-tile[data-tile="web"] .web-in-ops { color: var(--accent); font-weight: 700; }

.owner-needs { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px 6px; background: var(--card); margin: 0 0 10px; }
.needs-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 2px; background: none; border: 0; border-top: 1px solid var(--border); color: var(--text); font: inherit; font-size: var(--fs-md); line-height: 1.35; text-align: start; cursor: pointer; }
.needs-row:first-of-type { border-top: 0; }
.needs-row b { font-weight: 800; }
.needs-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.needs-go { color: var(--muted); font-size: 22px; line-height: 1; flex-shrink: 0; }
.needs-empty { padding: 6px 0 4px; }





.needs-icon { position: relative; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.needs-icon::before { content: ""; position: absolute; inset: 7px; background: currentColor; -webkit-mask: var(--icon) no-repeat center / contain; mask: var(--icon) no-repeat center / contain; }
.needs-chip[data-needs="late"] .needs-icon, .needs-chip[data-needs="pauses"] .needs-icon { background: var(--warn-bg); color: var(--warn-text); }
.needs-chip[data-needs="pauses"] .needs-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='10' y1='15' x2='10' y2='9'/%3E%3Cline x1='14' y1='15' x2='14' y2='9'/%3E%3C/svg%3E"); }
.needs-chip[data-needs="reviews"] .needs-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 11 12 14 22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E"); }
.needs-chip[data-needs="unpaid"] .needs-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E"); }
.needs-chip[data-needs="late"] .needs-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }
.needs-chip[data-needs="uncrewed"] .needs-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cline x1='18' y1='8' x2='23' y2='13'/%3E%3Cline x1='23' y1='8' x2='18' y2='13'/%3E%3C/svg%3E"); }
.needs-chip[data-needs="todos"] .needs-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E"); }
.needs-chip[data-needs="stock"] .needs-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='16.5' y1='9.4' x2='7.5' y2='4.21'/%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E"); }
.needs-chip[data-needs="web"] .needs-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); }
.needs-chip[data-needs="quotes"] .needs-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E"); }





.needs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 6px; }
.needs-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 88px; padding: 10px 6px 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; color: var(--text); cursor: pointer; text-align: center; font: inherit; }
.needs-chip:active { background: var(--surface-3); }
.needs-chip .needs-n { font-size: 24px; font-weight: 800; line-height: 1.1; }
.needs-chip .needs-label { font-size: var(--fs-xs); color: var(--muted); line-height: 1.2; overflow-wrap: anywhere; }
.owner-tile { padding: 0; }
.owner-tile-title { display: block; margin: 0; }
.owner-tile-head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 14px; background: none; border: 0; color: var(--text); text-align: start; cursor: pointer; font: inherit; }
.owner-tile-head .owner-tile-name { flex: 1; min-width: 0; font-size: var(--fs-sm); font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--text); }
.owner-tile-head .owner-tile-icon { width: 18px; height: 18px; flex: 0 0 18px; color: var(--accent); }

.owner-tile-title { display: flex; align-items: center; }
.owner-tile-title .owner-tile-head { flex: 1; min-width: 0; }
.owner-tile-go { flex: none; width: 44px; height: 44px; margin-inline-end: 6px; border: 0; border-radius: 12px; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.owner-tile-go:hover, .owner-tile-go:focus-visible { color: var(--accent); background: var(--accent-soft); }
.owner-row-tap .avatar { vertical-align: middle; margin-inline-end: 6px; }
@media (max-width: 768px) {
  
  #home-owner .owner-tile:not(.is-open) { position: relative; }
  #home-owner .owner-tile:not(.is-open) .owner-tile-go { position: absolute; inset-inline-end: 2px; bottom: 2px; margin: 0; }
}
.needs-chip[data-needs="dueSoon"] .needs-icon { background: var(--warn-bg); color: var(--warn-text); }
.needs-chip[data-needs="dueSoon"] .needs-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"); }

.needs-chip[data-needs="odd"] .needs-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='7'/%3E%3Cpolyline points='8.21 13.89 7 23 12 20 17 23 15.79 13.88'/%3E%3C/svg%3E"); }

.needs-chip[data-needs="confirm"] .needs-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cpolyline points='17 11 19 13 23 9'/%3E%3C/svg%3E"); }

.needs-chip[data-needs="reach"] .needs-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3Cpath d='M18.63 13A17.89 17.89 0 0 1 18 8'/%3E%3Cpath d='M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14'/%3E%3Cpath d='M18 8a6 6 0 0 0-9.33-5'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E"); }

.reach-body { display: flex; flex-direction: column; gap: 4px; }
.reach-intro { margin-block: 0 6px; margin-inline: 0; font-size: var(--fs-xs); }
.reach-warn { color: var(--danger-text); font-size: var(--fs-xs); margin-block: 0 6px; }
.reach-row { display: flex; align-items: center; gap: 10px; padding-block: 8px; border-bottom: 1px solid var(--border); }
.reach-row:last-child { border-bottom: none; }
.reach-main { flex: 1; min-width: 0; }
.reach-name { font-weight: 600; overflow-wrap: anywhere; }
.reach-status { font-size: var(--fs-xs); margin-block-start: 2px; }
.reach-on { color: var(--success-text); display: inline-flex; align-items: center; gap: 4px; }
.reach-on .ico { width: 14px; height: 14px; }
.reach-off { color: var(--warn-text); }
.reach-result { font-size: var(--fs-xs); margin-block-start: 4px; }
.needs-chip[data-needs="free"] .needs-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.owner-tile-n { font-size: 20px; font-weight: 800; flex-shrink: 0; }
.owner-tile-chev { color: var(--muted); font-size: 22px; line-height: 1; flex-shrink: 0; transition: transform .15s; }
[dir="rtl"] .owner-tile:not(.is-open) .owner-tile-chev { transform: scaleX(-1); }
.owner-tile.is-open .owner-tile-chev { transform: rotate(90deg); }
.owner-tile-body { padding: 0 14px 12px; border-top: 1px solid var(--border); }
.home-more-btn { width: 100%; margin: 12px 0 4px; min-height: 44px; }
body.role-admin.home-compact #home-driver-admin, body.role-admin.home-compact #home-board, body.role-admin.home-compact #home-reviews-banner,
body.role-admin.home-compact #home-checklists-today, body.role-admin.home-compact #home-photonudge,
body.role-admin.home-compact #home-owner-overview, body.role-admin.home-compact #home-atrisk, body.role-admin.home-compact #home-tasks,
body.role-admin.home-compact #home-schedule, body.role-admin.home-compact #home-mistakes, body.role-admin.home-compact #home-needed,
body.role-admin.home-compact #home-products, body.role-admin.home-compact #home-snapshot, body.role-admin.home-compact #home-completions,
body.role-admin.home-compact #home-celebrations, body.role-admin.home-compact #home-feed, body.role-admin.home-compact #ga-strip { display: none; }   


body.role-admin.home-compact #home-subtitle { display: none; }





.fold { border: 1px solid var(--border); border-radius: 12px; background: var(--card); margin: 0 0 10px; }
.fold[hidden] { display: none; }
.fold-head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 14px; background: none; border: 0; color: var(--text); text-align: start; cursor: pointer; font: inherit; }
.fold-name { flex: 1; min-width: 0; font-size: var(--fs-sm); font-weight: 700; }
.fold-icon { position: relative; width: 18px; height: 18px; flex: 0 0 18px; color: var(--accent); }
.fold-icon::before { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: var(--icon) no-repeat center / contain; mask: var(--icon) no-repeat center / contain; }
.fold-n { font-size: 20px; font-weight: 800; flex-shrink: 0; }
.fold-n:empty { display: none; }
.fold-chev { color: var(--muted); font-size: 22px; line-height: 1; flex-shrink: 0; transition: transform .15s; }
[dir="rtl"] .fold:not(.is-open) .fold-chev { transform: scaleX(-1); }
.fold.is-open .fold-chev { transform: rotate(90deg); }
.fold-body { display: none; padding: 0 14px 12px; border-top: 1px solid var(--border); }
.fold.is-open .fold-body { display: block; }
.fold-body > * { margin-top: 10px; }
.fold[data-fold="team-now"] .fold-icon, .fold[data-fold="team"] .fold-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.fold[data-fold="ga"] .fold-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='10' y1='15' x2='10' y2='9'/%3E%3Cline x1='14' y1='15' x2='14' y2='9'/%3E%3C/svg%3E"); }
.fold[data-fold="tasks"] .fold-icon, .fold[data-fold="mytasks"] .fold-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E"); }
.fold[data-fold="schedule"] .fold-icon, .fold[data-fold="weeklog"] .fold-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"); }
.fold[data-fold="needed"] .fold-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E"); }
.fold[data-fold="products"] .fold-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='16.5' y1='9.4' x2='7.5' y2='4.21'/%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E"); }
.fold[data-fold="news"] .fold-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E"); }
.fold[data-fold="clweek"] .fold-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 11 12 14 22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E"); }






.update-bar { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(var(--scrim-rgb), 0.66); }   
.update-bar[hidden] { display: none; }
.update-card { width: min(100%, 360px); display: flex; flex-direction: column; gap: 14px; padding: 22px 18px 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--accent); color: var(--text); text-align: center; box-shadow: var(--shadow); }
.update-bar-text { font-size: 17px; font-weight: 700; line-height: 1.35; }
.update-bar-ver { display: block; margin-top: 8px; font-weight: 800; white-space: nowrap; color: var(--accent); }   
.update-bar-btn { min-height: 52px; font-size: 17px; }


#view-home > .home-header:first-child, #view-my-time > #mytime-greeting:first-child { margin-bottom: 12px; }
body:has(.modal-overlay.open) .update-bar, body:has(.sidebar.open) .update-bar { display: none; }
.owner-tile-icon { position: relative; width: 14px; height: 14px; flex: 0 0 14px; }
.owner-tile-icon::before { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: var(--icon) no-repeat center / contain; mask: var(--icon) no-repeat center / contain; }
.owner-tile[data-tile="who"] .owner-tile-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.owner-tile[data-tile="stuck"] .owner-tile-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E"); }
.owner-tile[data-tile="lists"] .owner-tile-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3C/svg%3E"); }
.owner-tile[data-tile="day"] .owner-tile-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E"); }
.owner-tile[data-tile="owed"] .owner-tile-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E"); }
.owner-tile[data-tile="late"] .owner-tile-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }
.owner-tile[data-tile="tomorrow"] .owner-tile-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"); }
.owner-tile[data-tile="stock"] .owner-tile-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='16.5' y1='9.4' x2='7.5' y2='4.21'/%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E"); }
.owner-tile[data-tile="web"] .owner-tile-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); }

.owner-tile[data-tile="jobs"] .owner-tile-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpolyline points='1 20 1 14 7 14'/%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/%3E%3C/svg%3E"); }

#home-owner .owner-tile.owner-tile-warn .owner-tile-n { color: var(--warn-text); }
#home-owner .owner-job .owner-job-did { text-align: end; }
#home-owner .owner-job.owner-job-warn .owner-job-did { color: var(--warn-text); font-weight: 700; }


.owner-tile[data-tile="leaders"] .owner-tile-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
#home-owner .owner-leader { padding-block: 8px; border-block-start: 1px solid var(--border); font-size: var(--fs-sm); line-height: 1.4; }
#home-owner .owner-leader:first-child { border-block-start: 0; }
#home-owner .owner-leader-name { display: inline-block; min-block-size: 32px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; text-align: start; }
#home-owner .owner-leader-fact { color: var(--muted); }
#home-owner .owner-leader-fact.is-quiet { color: var(--warn-text); }

.owner-row-tap { width: 100%; min-height: 44px; background: none; border-left: 0; border-right: 0; border-bottom: 0; color: var(--text); font: inherit; font-size: var(--fs-sm); cursor: pointer; text-align: start; }
.owner-row-tap:first-of-type { border-top: 0; }
.owner-finished { font-size: var(--fs-md); }
.owner-sub { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 0 2px; }

.cp-money-row.cp-margin { font-weight: 800; border-top: 1px solid var(--border); margin-top: 4px; padding-top: 6px; }
.cp-margin-made { color: var(--accent); }
.cp-margin-lost { color: var(--warn-text); }
.home-section-title { font-size: var(--fs-md); font-weight: 700; color: var(--text); margin: 0 0 10px; letter-spacing: .01em; }
.home-empty { padding: 16px 8px; text-align: center; font-size: var(--fs-sm); }

.home-task-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.home-count-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: 88px; padding: 16px 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-base) ease, border-color var(--dur-base) ease;
}
.home-count-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--accent); }
.home-count-num { font-size: 30px; font-weight: 800; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.home-count-label { font-size: var(--fs-xs); font-weight: 600; color: var(--text); text-align: center; }
.home-count-todo   .home-count-num { color: var(--clay); }
.home-count-inprog .home-count-num { color: var(--accent); }
.home-count-done   .home-count-num { color: var(--success-text); }

.home-schedule-list { display: flex; flex-direction: column; gap: 14px; }
.home-sched-group { display: flex; flex-direction: column; gap: 8px; }
.home-sched-daybody { display: flex; flex-direction: column; gap: 8px; }
.home-sched-dayhead {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
  color: var(--muted); padding: 0 2px 2px; border-bottom: 1px solid var(--border);
}
.home-sched-dayhead.home-sched-today { color: var(--accent); border-bottom-color: var(--accent-soft); }
.home-sched-row {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px;
}
.home-sched-icon { font-size: 18px; line-height: 1; flex: 0 0 auto; }
.home-sched-type { font-weight: 600; font-size: var(--fs-sm); color: var(--text); flex: 0 0 auto; }
.home-sched-what { font-size: var(--fs-xs); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.home-sched-clickable { cursor: pointer; transition: background var(--dur-fast) ease, box-shadow var(--dur-base) ease; }
.home-sched-clickable:hover { background: var(--surface-2); box-shadow: var(--shadow-sm); }
.home-sched-clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }



.home-sched-done { opacity: 0.62; }
.home-sched-done .home-sched-type,
.home-sched-done .home-sched-what { text-decoration: line-through; color: var(--muted); }
.home-sched-donetick {
  margin-inline-start: auto; flex: 0 0 auto;
  font-size: var(--fs-xs); font-weight: 700; color: var(--success-text);
}

.mytime-tasks, .mytime-weeklog { margin-top: 14px; }
.mytime-sec-title { font-size: var(--fs-md); font-weight: 800; color: var(--text); margin: 0 0 10px; }


.donow-card { background: var(--surface); border: 1px solid var(--accent); border-radius: 16px; padding: 14px 16px; margin-top: 14px; box-shadow: 0 0 0 1px var(--accent) inset, 0 6px 20px rgba(var(--accent-rgb), 0.12); }
.donow-resume { border-color: var(--warn-text); box-shadow: 0 0 0 1px var(--warn-text) inset; }
.dn-eyebrow { font-size: var(--fs-2xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.donow-resume .dn-eyebrow { color: var(--warn-text); }
.dn-title { font-size: 18px; font-weight: 800; color: var(--text); margin-top: 3px; line-height: 1.25; }
.dn-client { font-size: var(--fs-sm); margin-top: 2px; }
.dn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dn-chip { font-size: var(--fs-xs); font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--border); color: var(--muted); white-space: nowrap; }
.dn-dl.dn-dl-over { background: var(--danger-bg); color: var(--danger-text); }
.dn-dl.dn-dl-soon { background: var(--warn-bg); color: var(--warn-text); }
.dn-notes { font-size: var(--fs-xs); color: var(--text); margin-top: 8px; white-space: pre-wrap; word-break: break-word; }
.dn-btn { width: 100%; margin-top: 12px; min-height: 46px; font-size: var(--fs-md); font-weight: 800; }



.dn-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dn-open { font: inherit; font-size: var(--fs-xs); font-weight: 700; color: var(--accent); background: transparent; border: 0; padding: 4px 2px; cursor: pointer; }
.donow-resume .dn-open { color: var(--warn-text); }
.dn-main { display: flex; align-items: flex-start; gap: 12px; }
.dn-text { min-width: 0; flex: 1 1 auto; }
.dn-pic img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; margin-top: 4px; }
.dn-controls { display: flex; gap: 8px; margin-top: 8px; }
.dn-controls + .dn-item, .dn-why + .dn-item { margin-top: 10px; }


.task-board .donow-card { margin-top: 0; padding-top: 12px; }
.dn-controls .btn { flex: 1 1 0; margin-top: 0; min-height: 46px; font-size: var(--fs-md); font-weight: 800; }
.dn-finish { color: var(--accent); border-color: var(--accent); }
.dn-finish[data-armed] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.dn-why { font-size: var(--fs-xs); margin-top: 8px; line-height: 1.35; }
.upnext-row .un-pic img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.upnext-row .un-title { flex: 1 1 auto; }
.donow-clear { border-color: var(--border); box-shadow: none; }
.dn-allclear { font-size: var(--fs-sm); color: var(--accent); font-weight: 600; margin-top: 4px; }
.upnext { margin-top: 10px; }
.upnext-title { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.upnext-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 6px; cursor: pointer; min-height: 44px; color: var(--text); font-size: var(--fs-md); }
.upnext-row:hover { border-color: var(--accent); }
.un-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.un-dl { flex: 0 0 auto; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); white-space: nowrap; }
.un-dl.dn-dl-over { color: var(--danger-text); }
.un-dl.dn-dl-soon { color: var(--warn-text); }
.myt-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.myt-sec { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.myt-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.myt-sec-title { font-weight: 700; font-size: var(--fs-sm); color: var(--text); }
.myt-sec-count { font-weight: 800; font-size: var(--fs-md); color: var(--accent); font-variant-numeric: tabular-nums; min-width: 24px; text-align: center; }
.myt-inprog .myt-sec-count { color: var(--periwinkle-text); }
.myt-done .myt-sec-count { color: var(--accent-hover); }
.myt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.myt-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-sm); }
.myt-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.myt-empty { font-size: var(--fs-xs); padding: 2px 0; }


.todo-made { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; font-weight: 400; font-variant-numeric: tabular-nums; unicode-bidi: plaintext; text-align: start; }
.im-made { margin-bottom: 8px; }

.mywk-list { display: flex; flex-direction: column; gap: 10px; }
.mywk-day { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; }
.mywk-day.mywk-today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.mywk-dhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mywk-dow { font-weight: 800; font-size: var(--fs-sm); color: var(--text); }
.mywk-date { font-weight: 500; font-size: var(--fs-xs); }
.mywk-inout { font-size: var(--fs-xs); color: var(--text); font-variant-numeric: tabular-nums; }
.mywk-dbody { margin-top: 8px; }
.mywk-done { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mywk-done li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-xs); }
.mywk-done-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mywk-none { font-size: var(--fs-xs); }
@media (min-width: 640px) { .myt-grid { grid-template-columns: repeat(3, 1fr); } }

.home-snapshot-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.home-snap-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none;
  min-height: 84px; padding: 16px 12px;
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.18), var(--surface-2) 62%);  border: 1px solid var(--border); border-radius: 16px;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-base) ease;
}
.home-snap-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.home-snap-num { font-size: 26px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.home-snap-label { font-size: var(--fs-xs); font-weight: 600; color: var(--text); text-align: center; }
.home-dashboard-link { text-decoration: none; }

.home-needed-add { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.home-needed-input {
  flex: 1 1 160px; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border-strong);
  border-radius: 10px; background: var(--surface); color: var(--text); font-size: var(--fs-sm);
}
.home-needed-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.home-needed-list { display: flex; flex-direction: column; gap: 8px; }
.home-need-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  transition: opacity var(--dur-base) ease, background var(--dur-base) ease;
}
.home-need-item.is-done { opacity: 0.6; background: var(--surface-2); }
.home-need-item.is-done .home-need-text { text-decoration: line-through; }
.home-need-check {
  flex: 0 0 auto; width: 26px; height: 26px; min-width: 26px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--accent); background: transparent; color: var(--accent-ink);
  font-size: var(--fs-md); line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.home-need-item.is-done .home-need-check { background: var(--success-text); border-color: var(--success-text); color: var(--accent-ink); } 
.home-need-body { flex: 1 1 auto; min-width: 0; }
.home-need-text { font-size: var(--fs-md); font-weight: 600; color: var(--text); word-break: break-word; }
.home-need-meta { font-size: var(--fs-xs); margin-top: 2px; }
.home-need-rm {
  flex: 0 0 auto; border: none; background: transparent; cursor: pointer; color: var(--muted);
  font-size: var(--fs-lg); line-height: 1; min-width: 26px; min-height: 26px; border-radius: 50%;
}
.home-need-rm:hover { background: rgba(0,0,0,0.06); color: var(--danger-text); }

.home-products-photo { cursor: pointer; white-space: nowrap; }
.home-products-photo-name { font-size: var(--fs-xs); margin: -4px 0 10px; word-break: break-word; }
.home-need-thumb {
  flex: 0 0 auto; width: 46px; height: 46px; padding: 0; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; background: var(--surface-2); cursor: pointer;
}
.home-need-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.js-item-actions { margin-top: 6px; }
.js-item-request {
  border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent);
  font-size: var(--fs-2xs); font-weight: 700; padding: 4px 12px; border-radius: 999px; cursor: pointer;
}
.js-item-request:hover { background: var(--accent); color: var(--accent-ink); }
.js-item-request:disabled { opacity: 0.6; cursor: default; }
.js-item-requested { font-size: var(--fs-2xs); font-weight: 700; color: var(--success-text); }

.home-completions-summary { font-size: var(--fs-xs); font-weight: 600; margin: -2px 0 10px; }
.home-completions-list { display: flex; flex-direction: column; gap: 8px; }
.home-comp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.home-comp-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.home-comp-name { font-size: var(--fs-md); font-weight: 700; color: var(--text); word-break: break-word; }
.home-comp-role { font-size: var(--fs-xs); font-weight: 600; }
.home-comp-count { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 4px; text-align: end; }
.home-comp-done {
  font-size: var(--fs-sm); font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums;
  background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.home-comp-pending { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); white-space: nowrap; }

button.home-comp-row { width: 100%; cursor: pointer; text-align: inherit; font: inherit; }
button.home-comp-row:hover { border-color: var(--accent); background: var(--accent-soft); }
button.home-comp-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.home-comp-chevron { color: var(--muted); font-size: 18px; font-weight: 700; margin-inline-start: 4px; }
@media (max-width: 640px) {
  .home-comp-row { flex-wrap: wrap; gap: 6px; }
  .home-comp-pending { display: block; }
}


.pr-title { display: inline-flex; align-items: center; gap: 8px; }
.pr-name { font-weight: 800; }
.pr-role { font-size: var(--fs-xs); font-weight: 600; }
.pr-periods { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pr-period-btn {
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-size: var(--fs-xs); font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.pr-period-btn:hover { border-color: var(--accent); }
.pr-period-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pr-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.pr-custom .field { margin: 0; }
.pr-summary { font-size: var(--fs-sm); margin-bottom: 10px; }
.pr-body { min-height: 60px; }
.pr-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pr-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.pr-table th {
  text-align: start; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--muted); font-weight: 700; padding: 6px 10px; border-bottom: 1px solid var(--border);
}
.pr-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.pr-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-task-title { font-weight: 700; color: var(--text); }
.pr-task-meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pr-type { font-weight: 700; border-radius: 999px; padding: 1px 8px; font-size: var(--fs-2xs); }
.pr-type-project { background: var(--accent-soft); color: var(--accent); }
.pr-type-internal { background: var(--purple-bg); color: var(--purple-text); }
.pr-pts { font-weight: 800; color: var(--accent); }
.pr-pts-pending { font-style: italic; }
.pr-band { font-weight: 700; border-radius: 999px; padding: 2px 10px; font-size: var(--fs-2xs); white-space: nowrap; }
.pr-early { background: var(--success-bg); color: var(--success-text); }
.pr-ontime { background: var(--info-bg); color: var(--info-text); }
.pr-late { background: var(--warn-bg); color: var(--warn-text); }
.pr-verylate { background: var(--danger-bg); color: var(--danger-text); }
.pr-none { background: var(--surface-2); color: var(--muted); }
.pr-delta { font-size: var(--fs-xs); }
.pr-pending-tag { font-size: var(--fs-2xs); font-weight: 700; color: var(--warn-text); background: var(--warn-bg); border-radius: 999px; padding: 1px 8px; }
@media (max-width: 620px) {
  
  .pr-table thead { display: none; }
  .pr-table, .pr-table tbody, .pr-table tr, .pr-table td { display: block; width: 100%; }
  .pr-table tr { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; padding: 4px 2px; }
  .pr-table td { border: none; padding: 5px 12px; display: flex; justify-content: space-between; gap: 12px; }
  .pr-table td::before { content: attr(data-label); font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; }
  .pr-task-meta { justify-content: flex-end; }
}


.home-filter-chip {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 999px;
  padding: 6px 8px 6px 14px; width: fit-content; max-width: 100%;
}
.home-filter-chip-text { font-size: var(--fs-xs); font-weight: 600; color: var(--accent); }
.home-filter-chip-x {
  border: none; background: transparent; cursor: pointer; color: var(--accent);
  font-size: var(--fs-md); line-height: 1; min-width: 28px; min-height: 28px; border-radius: 50%;
}
.home-filter-chip-x:hover { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 640px) {
  .home-task-cards, .home-snapshot-cards { grid-template-columns: 1fr 1fr; }
  .home-count-card, .home-snap-card { min-height: 76px; }
  .home-sched-what { white-space: normal; }
}


.holidays-intro { font-size: var(--fs-xs); margin: 0 0 12px; }
.holidays-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; max-height: 40vh; overflow-y: auto; }
.holiday-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.holiday-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.holiday-row-name { font-weight: 600; font-size: var(--fs-sm); }
.holiday-row-date { font-size: var(--fs-xs); }
.holiday-row-greet { font-size: var(--fs-xs); font-style: italic; }
.holiday-row-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.holiday-form { border-top: 1px solid var(--border); padding-top: 14px; }

@media (max-width: 768px) {
  .home-welcome { font-size: 22px; }
  .home-holidays-btn { position: static; margin-top: 10px; }
  .home-strip { flex-direction: column; align-items: stretch; }
  .home-strip-actions { justify-content: space-between; }
  .home-strip-btn { flex: 1 1 auto; min-height: 46px; }
  .home-feed { max-width: none; }
}




.jr-modal { max-width: 560px; }
.jr-jobtype { padding: 8px 0 4px; font-size: var(--fs-md); }
.jr-section { padding: 12px 0; border-top: 1px solid var(--border); }
.jr-section:first-of-type { border-top: none; }
.jr-q { font-weight: 600; margin-bottom: 8px; color: var(--text); }
.jr-subq { font-weight: 600; font-size: var(--fs-sm); margin: 10px 0 6px; color: var(--muted); }
.jr-pts { color: var(--danger-text); font-weight: 700; }
.jr-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.jr-pill { min-height: 44px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 22px;
  background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; transition: all var(--speed) ease; }
.jr-pill:hover { border-color: var(--accent); }
.jr-pill.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.jr-yesno { max-width: 220px; }
.jr-yesno .jr-pill { flex: 1 1 0; justify-content: center; text-align: center; }
.jr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jr-chip { min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.jr-chip.is-on { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.jr-stafftags { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.jr-stafftag { padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.jr-stafftag-name { font-weight: 600; margin-bottom: 8px; }
.jr-taggrp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.jr-taglbl { font-size: var(--fs-2xs); font-weight: 700; margin-inline-end: 4px; }
.jr-taglbl-pos { color: var(--success-text); }
.jr-taglbl-neg { color: var(--danger-text); }
.jr-tag { min-height: 40px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 18px;
  background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.jr-tag-pos.is-on { background: var(--success-bg); border-color: var(--success-text); font-weight: 600; }
.jr-tag-neg.is-on { background: var(--warn-bg); border-color: var(--warn-text); font-weight: 600; }




.jr-rategrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.jr-rate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px;
  padding: 8px 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  color: var(--text); font: inherit; cursor: pointer; text-align: center; }
.jr-rate:hover { border-color: var(--accent); }
.jr-rate-face { font-size: 22px; line-height: 1; }
.jr-rate-lbl { font-size: var(--fs-xs); line-height: 1.15; color: var(--muted); font-weight: 600; }
.jr-rate.is-on { border-width: 2px; }
.jr-rate-pos.is-on { background: var(--success-bg); border-color: var(--success-text); }
.jr-rate-neg.is-on { background: var(--danger-bg); border-color: var(--danger-text); }
.jr-rate-zero.is-on { background: var(--surface-3); border-color: var(--border-strong); }
.jr-rate.is-on .jr-rate-lbl { color: var(--text); font-weight: 700; }

.rd-tag-face { margin-inline-end: 4px; }
.jr-note textarea { width: 100%; }
.jr-photo { display: flex; align-items: center; gap: 10px; }
.jr-actions { position: sticky; bottom: 0; background: var(--card); padding-top: 10px; }


.reports-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.rf-input { min-height: 40px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.reports-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-flag { min-height: 36px; padding: 5px 12px; font-size: var(--fs-xs); }
.rf-flag.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.reports-list { display: flex; flex-direction: column; gap: 10px; }
.report-card { width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-2); cursor: pointer; font: inherit; color: var(--text); transition: border-color var(--speed) ease; }
.report-card:hover { border-color: var(--accent); }
.report-card-top { font-size: var(--fs-md); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-card-sub { font-size: var(--fs-xs); margin-top: 3px; }
.report-card-flags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.report-sat { margin-inline-start: auto; font-size: var(--fs-2xs); padding: 2px 9px; border-radius: 12px; font-weight: 600; background: var(--surface-3); }
.report-sat.sat-very { background: var(--success-bg); color: var(--success-text); }
.report-sat.sat-ok { background: var(--success-bg); color: var(--success-text); }
.report-sat.sat-neutral { background: var(--surface-3); }
.report-sat.sat-bad { background: var(--warn-bg); color: var(--warn-text); }
.jr-flag-tag { font-size: var(--fs-xs); padding: 2px 8px; border-radius: 10px; background: var(--surface-3); color: var(--muted); }
.jr-flag-bad { background: var(--warn-bg); color: var(--warn-text); }
.reports-empty { padding: 24px 0; text-align: center; }


.rd-body { display: flex; flex-direction: column; gap: 2px; }
.rd-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.rd-label { flex: 0 0 40%; font-weight: 600; color: var(--muted); font-size: var(--fs-xs); }
.rd-val { flex: 1 1 auto; }
.rd-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.rd-tag { font-size: var(--fs-xs); padding: 3px 9px; border-radius: 12px; background: var(--surface-3); }
.rd-tag-pos { background: var(--success-bg); color: var(--success-text); }
.rd-tag-neg { background: var(--warn-bg); color: var(--warn-text); }

.rd-tag { display: inline-flex; align-items: center; gap: 5px; }
.rd-tag-rm { border: none; background: transparent; color: inherit; cursor: pointer; font-size: var(--fs-md); line-height: 1;
  font-weight: 800; opacity: 0.6; padding: 0 2px; border-radius: 4px; }
.rd-tag-rm:hover { opacity: 1; color: var(--danger-text); }
@media (hover: none) { .rd-tag-rm { min-width: 28px; min-height: 28px; opacity: 0.8; } }
.rd-orderlink { color: var(--accent); font-weight: 600; }
.rd-photos { flex-direction: column; align-items: stretch; }
.jr-complete-cta { width: 100%; margin: 6px 0 10px; min-height: 46px; }


.rd-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.rd-actions .btn { min-height: 40px; }





.dash-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.dash-presets { display: inline-flex; gap: 6px; background: var(--surface-3); padding: 4px; border-radius: 12px; }
.dash-presets .dash-preset { border: none; background: transparent; box-shadow: none; }
.dash-presets .dash-preset:hover { background: rgba(255, 255, 255, 0.06); }
.dash-preset.toggle-active { background: var(--tonal-on); color: var(--tonal-on-text); border-color: var(--no-line); }   
.dash-custom { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-dash { color: var(--muted); }
.dash-range-label { margin-inline-start: auto; color: var(--muted); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }

.dash-body { display: flex; flex-direction: column; gap: 26px; }
.dash-loading, .dash-empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.dash-empty-mini { padding: 30px 8px; text-align: center; color: var(--muted); font-size: var(--fs-xs); }


.dash-steps { margin-block-start: 26px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.dash-steps-title { margin: 0; font-size: var(--fs-lg); font-weight: 600; color: var(--text); }
.dash-steps-sub, .dash-steps-held { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.dash-steps-fair { margin: 12px 0 0; font-size: var(--fs-xs); color: var(--text); }
.dash-steps-list { margin: 10px 0 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 10px; }
.dash-step { display: flex; flex-direction: column; gap: 2px; }
.dash-step-name { font-weight: 600; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.dash-step-nums { font-size: var(--fs-xs); color: var(--muted); overflow-wrap: anywhere; }
.dash-steps-yours { margin: 14px 0 0; font-size: var(--fs-xs); font-weight: 600; color: var(--text); }


.dash-odd { scroll-margin-top: calc(var(--topbar-h, 56px) + 8px); }   
.dash-odd-list { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dash-odd-row { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.dash-odd-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.dash-odd-side { font-size: var(--fs-2xs); font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.dash-odd-over .dash-odd-side { background: var(--warn-bg); color: var(--warn-text); }
.dash-odd-under .dash-odd-side { background: var(--info-bg); color: var(--info-text); }
.dash-odd-who { font-weight: 600; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.dash-odd-what { font-size: var(--fs-xs); color: var(--text); overflow-wrap: anywhere; }
.dash-odd-why { font-size: var(--fs-xs); color: var(--muted); overflow-wrap: anywhere; }
.dash-odd-looked { align-self: flex-start; margin-block-start: 4px; }

.dash-section {
  background: var(--sidebar-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 18px 20px; box-shadow: var(--shadow-sm);
}
.dash-section-title {
  margin: 0 0 14px; font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: var(--text); letter-spacing: 0.2px; position: relative; padding-inline-start: 12px;
}
.dash-section-title::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 3px; background: var(--gold);
}

.dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.dash-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px;
  padding: 14px 15px; display: flex; flex-direction: column; gap: 3px;
}
.dash-card-label { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.dash-card-value { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--text); line-height: 1.15; }
.dash-card-sub { font-size: var(--fs-xs); color: var(--muted); }
.dash-card.tone-good .dash-card-value { color: var(--success-text); }
.dash-card.tone-bad .dash-card-value { color: var(--danger-text); }


.fin-net-hero {
  border: 1px solid var(--border); border-radius: 15px; padding: 20px 22px; margin-bottom: 16px;
  background: var(--surface-2); border-inline-start: 5px solid var(--gold);
  display: flex; flex-direction: column; gap: 6px;
}
.fin-net-hero.tone-good { background: var(--success-bg); border-color: rgba(var(--accent-rgb), 0.25); border-inline-start-color: var(--success-text); }
.fin-net-hero.tone-bad  { background: var(--danger-bg);  border-color: rgba(var(--danger-tint-rgb), 0.25); border-inline-start-color: var(--danger-text); }
.fin-net-hero-label { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.fin-net-hero-value { font-family: var(--font-display); font-size: 42px; font-weight: 700; line-height: 1.1; color: var(--text); }
.fin-net-hero.tone-good .fin-net-hero-value { color: var(--success-text); }
.fin-net-hero.tone-bad  .fin-net-hero-value { color: var(--danger-text); }
.fin-net-hero-note { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 640px) { .fin-net-hero-value { font-size: 34px; } }

.dash-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.dash-chart-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; padding: 12px 14px 14px; min-width: 0; }
.dash-chart-title { font-size: var(--fs-xs); font-weight: 600; color: var(--label); margin-bottom: 6px; }
.dash-chart-body { width: 100%; }
.dash-svg { width: 100%; height: auto; display: block; }
.dash-svg-val { font-size: var(--fs-2xs); fill: var(--muted); font-weight: 600; }
.dash-svg-lbl { font-size: var(--fs-2xs); fill: var(--muted); }
.dash-svg-axis { stroke: var(--border-strong); stroke-width: 1; }

.dash-pie-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dash-pie-svg { width: 150px; height: 150px; flex: 0 0 auto; }
.dash-pie-total { font-family: var(--font-display); font-size: 22px; font-weight: 600; fill: var(--text); }
.dash-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; min-width: 120px; flex: 1 1 120px; }
.dash-legend li { display: flex; align-items: center; gap: 7px; font-size: var(--fs-xs); color: var(--text); }
.dash-legend li b { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.dash-legend-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-dot { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }

.dash-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.dash-list-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; padding: 12px 14px; margin-top: 14px; overflow-x: auto; }
.dash-lists .dash-list-card { margin-top: 0; }
.dash-table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.dash-table th { text-align: end; padding: 6px 8px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); font-size: var(--fs-xs); }
.dash-table th:first-child { text-align: start; }
.dash-table td { text-align: end; padding: 7px 8px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.dash-table td.dash-td-name { text-align: start; font-weight: 500; font-variant-numeric: normal; }
.dash-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 640px) {
  .dash-toolbar { gap: 10px; }
  .dash-range-label { margin-inline-start: 0; width: 100%; }
  .dash-cards { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .dash-charts { grid-template-columns: 1fr; }
  .dash-pie-svg { width: 130px; height: 130px; }
}






.la-intro { margin: -4px 0 16px; max-width: 62ch; }
.la-pos { color: var(--success-text); }
.la-neg { color: var(--danger-text); }
.la-zero { color: var(--muted); }
.la-loading, .la-empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.la-empty-mini { padding: 20px 8px; text-align: center; color: var(--muted); font-size: var(--fs-xs); }


.la-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.la-leader-card {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center;
  gap: 2px 12px; text-align: start; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 15px;
  padding: 16px 18px; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.la-leader-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.la-leader-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); grid-column: 1; grid-row: 1 / span 2; }
.la-leader-score { font-family: var(--font-display); font-size: 26px; font-weight: 700; grid-column: 2; grid-row: 1; text-align: end; font-variant-numeric: tabular-nums; }
.la-leader-score-label { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .5px; grid-column: 2; grid-row: 2; text-align: end; }
.la-inactive { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }


.la-report-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.la-leader-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0; }
.la-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.la-presets { display: inline-flex; gap: 6px; background: var(--surface-3); padding: 4px; border-radius: 12px; }
.la-presets .la-preset { border: none; background: transparent; box-shadow: none; }
.la-presets .la-preset:hover { background: rgba(255, 255, 255, 0.06); }
.la-preset.toggle-active { background: var(--tonal-on); color: var(--tonal-on-text); border-color: var(--no-line); }   
.la-custom { display: inline-flex; align-items: center; gap: 6px; }
.la-range-label { margin-inline-start: auto; color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }


.la-section { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.la-sec-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.la-sec-title::before { content: ""; width: 8px; height: 20px; border-radius: 3px; background: var(--accent); display: inline-block; }
.la-sub-title { font-size: var(--fs-sm); font-weight: 600; color: var(--label); margin: 16px 0 8px; }


.la-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 14px; }
.la-add .la-add-points { width: 120px; }
.la-add .la-add-note { flex: 1 1 220px; min-width: 160px; }
.la-add .la-add-date { width: 160px; }


.la-entries { display: flex; flex-direction: column; gap: 8px; }
.la-entry { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.la-entry-delta { font-family: var(--font-display); font-size: 20px; font-weight: 700; min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.la-entry-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.la-entry-note { font-size: var(--fs-sm); color: var(--text); word-break: break-word; }
.la-entry-meta { font-size: var(--fs-xs); color: var(--muted); }
.la-entry-by { margin-inline-start: 8px; }
.la-badge { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .5px; padding: 1px 6px; border-radius: 999px; vertical-align: middle; }
.la-badge-auto { background: var(--surface-3); color: var(--muted); border: 1px solid var(--border); }
.la-entry-ctrls { display: flex; gap: 4px; flex: 0 0 auto; }
.la-icon-btn { border: 1px solid var(--border); background: var(--surface); color: var(--muted); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: var(--fs-xs); line-height: 1; transition: background .12s ease, color .12s ease, border-color .12s ease; }
.la-icon-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.la-entry-edit { flex-wrap: wrap; }
.la-entry-edit .la-edit-points { width: 110px; }
.la-entry-edit .la-edit-note { flex: 1 1 200px; min-width: 150px; }
.la-entry-edit .la-edit-date { width: 150px; }


.la-inc { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.la-inc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: var(--fs-xs); }
.la-inc-row b { font-variant-numeric: tabular-nums; }
.la-inc-row.la-inc-hot { border-color: var(--danger-text); }
.la-inc-row.la-inc-hot b { color: var(--danger-text); }

@media (max-width: 640px) {
  .la-list { grid-template-columns: 1fr; }
  .la-range-label { margin-inline-start: 0; width: 100%; }
  .la-add .la-add-note, .la-add .la-add-points, .la-add .la-add-date { flex: 1 1 100%; width: 100%; }
  .la-entry { flex-wrap: wrap; }
}




.pur-form-panel { background: var(--sidebar-bg); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.pur-form { display: flex; flex-direction: column; gap: 14px; }
.pur-field { display: flex; flex-direction: column; gap: 6px; }
.pur-field > label { font-size: var(--fs-xs); font-weight: 600; color: var(--label); }
.pur-field input, .pur-field textarea, .pur-field select { border: 1px solid var(--border-strong); border-radius: 9px; background: var(--input-bg); padding: 9px 10px; font: inherit; min-height: 42px; }
.pur-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pur-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pur-pill { border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 8px 16px; min-height: 40px; cursor: pointer; font: inherit; font-weight: 500; transition: background var(--speed) ease, color var(--speed) ease; }
.pur-pill:hover { background: var(--surface-3); }
.pur-pill.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pur-line { display: grid; grid-template-columns: minmax(0, 1fr) 68px auto 88px minmax(0, 1fr) auto; align-items: center; gap: 6px; margin-bottom: 8px; }
.pur-line input { min-height: 40px; min-width: 0; }
.pur-line .pf-x { color: var(--muted); text-align: center; }

.pf-pick { position: relative; min-width: 0; }
.pf-pick .pf-name { width: 100%; }
.pf-pick-menu { position: absolute; top: calc(100% + 2px); inset-inline-start: 0; z-index: 40; width: max(220px, 100%); max-height: 260px; overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.14)); padding: 4px; }
.pf-pick-item { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; text-align: start; background: none; border: 0; border-radius: 7px; padding: 8px 10px; min-height: 40px; cursor: pointer; color: inherit; }
.pf-pick-item:hover { background: rgba(var(--accent-rgb), 0.10); }
.pf-pick-name { font-size: var(--fs-sm); min-width: 0; }
.pf-pick-list { font-size: var(--fs-xs); flex: 0 0 auto; }
.pf-pick-empty { padding: 10px; font-size: var(--fs-xs); }
.pf-pick-hint { margin-top: 6px; }

.pf-pick-add { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.pf-pick-add-q { font-size: var(--fs-xs); }
.pf-pick-add-ar { width: 100%; padding: 7px 9px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: var(--fs-xs); background: var(--input-bg); color: var(--text); }
.pf-pick-add-lists { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-pick-addbtn { flex: 1 1 auto; min-height: 38px; padding: 7px 12px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: var(--fs-xs); cursor: pointer; }
.pf-pick-addbtn:hover { background: var(--accent); color: var(--accent-ink); } 
.pur-line.pf-invalid .pf-name { border-color: var(--brick); background: rgba(var(--brick-rgb), 0.06); }

.wallet-fuel { margin-top: 20px; }
.wallet-fuel-head { font-size: var(--fs-md); margin: 0 0 10px; }
.fuel-list { display: flex; flex-direction: column; gap: 8px; }
.fuel-empty { padding: 6px 2px; font-size: var(--fs-xs); }
.fuel-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.fuel-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.fuel-card-km { font-weight: 700; font-size: var(--fs-sm); }
.fuel-card-meta { font-size: var(--fs-xs); margin-top: 2px; }
.fuel-card-right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.fuel-card-amt { font-weight: 700; color: var(--danger-text); }


.fuel-card-made { font-size: var(--fs-2xs); font-weight: 700; color: var(--success-text); margin-top: 2px; }
.fuel-km-hint { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; font-size: var(--fs-2xs); }
.fuel-km-before { color: var(--muted); }
.fuel-km-now { font-weight: 700; color: var(--success-text); }
.fuel-card-made.is-down, .fuel-km-now.is-down { color: var(--danger-text); }

.fuel-card { align-items: flex-start; }
.fuel-card-main { min-width: 0; flex: 1 1 auto; }
.fuel-card-photos { margin-top: 8px; }
.wallet-fuel { margin-top: 0; }
.wallet-pur-block { margin-top: 24px; }
.wallet-ledger { max-width: 720px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-strong); }
.wallet-ledger:empty { display: none; }


.qt2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.qt2-chip { min-height: 48px; padding: 8px 14px; border: 1px solid var(--no-line); border-radius: var(--r-14); background: var(--tonal); box-shadow: var(--edge-lit); color: var(--text); font-size: var(--fs-md); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.qt2-chip.is-on { border-color: var(--no-line); background: var(--tonal-on); color: var(--tonal-on-text); }   
.qt2-chip.qt2-chip-more, .qt2-chip.qt2-chip-other { border-style: dashed; border-color: var(--border-strong); font-weight: 500; }   
.qt2-chip small { font-weight: 500; color: var(--muted); }
.qt2-stepper { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.qt2-stepper input { width: 84px; text-align: center; font-weight: 700; min-height: 48px; }
.qt2-step { min-width: 48px; min-height: 48px; border: 1px solid var(--no-line); border-radius: var(--r-14); background: var(--tonal); box-shadow: var(--edge-lit); color: var(--text); font-size: 22px; cursor: pointer; }
.qt2-more { margin-top: 10px; }
.qt2-more summary { cursor: pointer; color: var(--muted); font-size: var(--fs-xs); min-height: 48px; display: flex; align-items: center; }
.qt2-done-task { font-weight: 700; margin-bottom: 10px; }

.qt2-shoot { width: 100%; min-height: 56px; margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-weight: 700; }
.qt2-done-preview { display: block; width: 100%; max-height: 200px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); margin-top: 10px; }
.qt2-done-preview[hidden] { display: none; }
.dn-v2 { min-height: 44px; }
.std-tab.toggle-active { background: var(--tonal-on); color: var(--tonal-on-text); border-color: var(--no-line); }   
.std-table input[type="number"] { width: 72px; }
.std-table select, .std-table input[type="text"] { min-width: 90px; }
.std-row-proposed td:first-child { border-inline-start: 3px solid var(--danger-text); }
.std-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.pf-line-total { font-variant-numeric: tabular-nums; font-weight: 600; text-align: end; white-space: nowrap; }
.pf-remove { border: none; background: none; color: var(--danger-text); font-size: 20px; cursor: pointer; width: 34px; height: 34px; border-radius: 8px; line-height: 1; }
.pf-remove:hover { background: var(--danger-bg); }
.pur-total-field { max-width: 320px; }
.pur-total-wrap { display: flex; align-items: center; gap: 8px; }
.pur-cur-tag { font-weight: 700; color: var(--accent); }
.pur-total-wrap input { flex: 1 1 auto; font-weight: 700; }
.pur-hint { font-size: var(--fs-xs); }


.pur-amount-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.pur-photo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface-2); color: var(--text); cursor: pointer; font-weight: 600; white-space: nowrap; }
.pur-photo-btn:hover { background: var(--surface-3); }
.pur-defaults-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pur-defaults { flex: 1 1 auto; min-height: 44px; text-align: start; border: 1px dashed var(--border-strong); border-radius: 9px; background: var(--surface-2); color: var(--text); padding: 8px 12px; cursor: pointer; font-size: var(--fs-sm); }
.pur-defaults:hover { background: var(--surface-3); }
.pur-defaults-caret { color: var(--muted); margin-inline-start: 6px; }
.pur-defaults-box { display: flex; flex-direction: column; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; }
.pur-more { min-height: 44px; text-align: start; background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 8px 0; }
.pur-box { display: flex; flex-direction: column; gap: 6px; }
.pur-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pur-thumb { display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.pur-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pur-new-photos { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }
.pur-form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pur-form-actions .btn { min-height: 44px; }

.pp-block .pur-hint { margin-top: -2px; }
.pp-rows { display: flex; flex-direction: column; gap: 8px; }
.pp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
.pp-row .pp-target { min-width: 0; width: 100%; min-height: 42px; }
.pp-row .pp-amount { width: 110px; min-height: 40px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: end; }
.pp-remove { border: none; background: none; color: var(--danger-text); font-size: 20px; cursor: pointer; width: 34px; height: 34px; border-radius: 8px; line-height: 1; }
.pp-remove:hover { background: var(--danger-bg); }
.pp-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.pp-foot .btn { min-height: 40px; }
.pp-status { font-size: var(--fs-xs); }
.pp-status-off { color: var(--brick); font-weight: 600; }
.pp-codes { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-2xs); font-weight: 600; }

.pp-search-wrap { position: relative; margin-top: 6px; }
.pp-search { width: 100%; min-height: 40px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--input-bg); padding: 8px 10px; font: inherit; }
.pp-search-results { position: absolute; top: calc(100% + 2px); inset-inline-start: 0; z-index: 40; width: 100%; max-height: 240px; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-md); padding: 4px; }
.pp-search-results[hidden] { display: none; }
.pp-found { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; width: 100%; text-align: start; background: none; border: 0; border-radius: 7px; padding: 8px 10px; min-height: 40px; cursor: pointer; color: inherit; font: inherit; }
.pp-found:hover { background: rgba(var(--accent-rgb), 0.10); }
.pp-found-code { font-weight: 700; }
.pp-found-finished { padding: 0 7px; border-radius: 999px; background: var(--danger-bg); color: var(--danger-text); font-size: var(--fs-2xs); font-weight: 700; }
.pp-search-none { padding: 10px; font-size: var(--fs-xs); }
.cf-sup-row { display: flex; gap: 8px; align-items: center; }
.cf-sup-row select { flex: 1 1 auto; min-width: 0; }
.cf-sup-row .btn { flex: 0 0 auto; min-height: 42px; white-space: nowrap; }
.cf-sup-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.cf-sup-add[hidden] { display: none; }
.cf-sup-add input { flex: 1 1 160px; min-height: 40px; }
.cf-sup-add .btn { min-height: 40px; }
.pp-detail { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.pp-detail-head { font-size: var(--fs-xs); font-weight: 600; color: var(--label); margin-bottom: 4px; }
.pp-detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: var(--fs-sm); }
.pp-detail-amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.pp-detail-none { margin-top: 10px; font-size: var(--fs-xs); }
.pp-editor { margin-top: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.pp-editor-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: var(--fs-sm); }
.cp-cost { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.cp-cost[hidden] { display: none; }
.cp-cost-head { margin-bottom: 4px; }
.cp-cost-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; font-size: var(--fs-sm); padding: 3px 0; }
.cp-cost-when { color: var(--muted); font-variant-numeric: tabular-nums; }
.cp-cost-who { min-width: 0; overflow-wrap: anywhere; }
.cp-cost-amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.cp-cost-caveat { margin-top: 8px; font-size: var(--fs-xs); }

.cp-track { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.cp-track[hidden] { display: none; }
.cp-track-head { margin-bottom: 4px; }
.cp-track-url { font-size: var(--fs-xs); color: var(--muted); overflow-wrap: anywhere; text-align: start; unicode-bidi: isolate; }
.cp-track-seen { margin-top: 2px; font-size: var(--fs-xs); }
.cp-track-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cp-track-actions a.btn { text-decoration: none; }
@media (max-width: 480px) { .pp-row { grid-template-columns: minmax(0, 1fr) 96px auto; } .pp-row .pp-amount { width: 96px; } }

.pur-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.pur-filters .rf-input { min-height: 40px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--input-bg); padding: 4px 10px; }

.pur-list { display: flex; flex-direction: column; gap: 10px; }
.pur-empty { padding: 34px 16px; text-align: center; color: var(--muted); }
.pur-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; padding: 13px 16px; cursor: pointer; transition: border-color var(--speed) ease, box-shadow var(--speed) ease; }
.pur-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.pur-card-supplier { font-weight: 600; }
.pur-card-meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.pur-card-right { text-align: end; flex: 0 0 auto; }
.pur-card-total { font-family: var(--font-display); font-size: 18px; font-weight: 600; white-space: nowrap; }
.pur-card-sub { font-size: var(--fs-xs); color: var(--muted); }
.pur-cat-chip { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 1px 7px; font-size: var(--fs-2xs); font-weight: 600; }


.cp-totals { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.cp-total-card { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; padding: 12px 16px; }
.cp-total-card.cp-total-usd { border-inline-start: 3px solid var(--accent); }
.cp-total-card.cp-total-lbp { border-inline-start: 3px solid var(--gold); }
.cp-total-lbl { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cp-total-amt { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.cp-total-sub { font-size: var(--fs-xs); }

.pur-company-chip { display: inline-block; background: rgba(var(--periwinkle-rgb), 0.16); color: var(--periwinkle-text); border-radius: 6px; padding: 1px 7px; font-size: var(--fs-2xs); font-weight: 700; }
.pur-supplier-select { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font-size: var(--fs-sm); }
.pur-supplier-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.catalog-suppliers-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.catalog-item-main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.catalog-item-sub { font-size: var(--fs-xs); }
.sup-reserved-tag { font-size: var(--fs-xs); font-weight: 700; background: var(--neutral-bg); color: var(--neutral-text); border-radius: 10px; padding: 1px 7px; }

.pur-detail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pur-detail-supplier { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.pur-detail-total { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.pur-detail-meta { color: var(--muted); font-size: var(--fs-xs); margin: 4px 0 12px; }
.pur-detail-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-bottom: 12px; }
.pur-detail-table th { text-align: start; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.pur-detail-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); }
.pur-detail-table .pur-num { text-align: end; font-variant-numeric: tabular-nums; }
.pur-detail-notes { background: var(--surface-3); border-radius: 10px; padding: 10px 12px; font-size: var(--fs-sm); margin-top: 10px; }

@media (max-width: 640px) {
  .pur-row2 { grid-template-columns: 1fr; }
  .pur-line { grid-template-columns: minmax(0, 1fr) 56px auto 76px; grid-auto-rows: auto; }
  .pur-line .pf-line-total { grid-column: 1 / 4; text-align: start; }
  .pur-line .pf-remove { grid-column: 4; grid-row: 1; justify-self: end; }
  .pur-total-field { max-width: none; }
}





.prod-card.needs-staff-flash { outline: 2px solid var(--danger); outline-offset: 2px; animation: needsStaffPulse 0.9s var(--ease-out, ease) 2; }
@keyframes needsStaffPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--danger-tint-rgb), 0); }
  50%      { box-shadow: 0 0 0 5px rgba(var(--danger-tint-rgb), 0.32); }
}
.prod-card-labor.needs-staff-hl { outline: 2px dashed var(--danger); outline-offset: 1px; border-radius: 8px; }




.field.needs-deadline-hl {
  outline: 2px solid var(--danger); outline-offset: 3px; border-radius: 10px;
  animation: needsStaffPulse 0.9s var(--ease-out, ease) 2;
}
.field.needs-deadline-hl > span { color: var(--danger-text); }





.btn-loading { cursor: progress; }
.btn-loading .btn-loading-lbl { vertical-align: middle; }
.btn-spinner {
  display: inline-block; width: 15px; height: 15px; margin-inline-end: 8px; vertical-align: middle;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }



.mat-budget { color: var(--amber-text); font-weight: 600; }





.wallet-body { max-width: 720px; }
.wal-balance-card {
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 20px 22px; text-align: center; margin-bottom: 18px;
  box-shadow: 0 1px 0 var(--gold) inset;
}
.wal-balance-label { color: var(--muted); font-size: var(--fs-xs); letter-spacing: .04em; text-transform: uppercase; }
.wal-balance-amt { font-size: 40px; font-weight: 700; color: var(--accent); margin: 4px 0; }
.wal-balance-amt.is-neg { color: var(--danger-text); }
.wal-balance-sub { font-size: var(--fs-xs); }
.wal-sec-title { font-size: var(--fs-md); margin: 18px 0 8px; }
.wal-ledger { display: flex; flex-direction: column; gap: 6px; }
.wal-tx {
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; background: var(--surface-2);
  border-left-width: 3px; 
}
[dir="rtl"] .wal-tx { border-left-width: 1px; border-right-width: 3px; }
.wal-tx.wal-pos { border-left-color: var(--success-text); }
.wal-tx.wal-neg { border-left-color: var(--danger-text); }
[dir="rtl"] .wal-tx.wal-pos { border-right-color: var(--success-text); }
[dir="rtl"] .wal-tx.wal-neg { border-right-color: var(--danger-text); }
.wal-tx.is-edited { border-color: rgba(var(--edited-fill-rgb), 0.6); background: rgba(var(--edited-fill-rgb), 0.1); }
.wal-tx-main { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wal-tx-type { font-weight: 600; }
.wal-tx-amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wal-tx.wal-pos .wal-tx-amt { color: var(--success-text); }
.wal-tx.wal-neg .wal-tx-amt { color: var(--danger-text); }
.wal-tx-meta { font-size: var(--fs-xs); margin-top: 2px; }

.wal-recv-state { font-size: var(--fs-2xs); margin-top: 4px; font-weight: 600; }
.wal-recv-state.is-settled { color: var(--success-text); }
.wal-recv-state.is-partial { color: var(--amber-text); }
.wal-recv-actions { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.wal-mark-recv { min-height: 32px; }

.wal-ledger-foot { margin-top: 8px; padding: 8px 12px; font-size: var(--fs-xs); font-weight: 600; color: var(--text); text-align: right; border-top: 1px dashed var(--border); }
[dir="rtl"] .wal-ledger-foot { text-align: left; }
.wal-edited {
  
  display: inline-block; background: var(--edited-fill); color: #241A06; border-radius: 6px;
  padding: 0 6px; font-size: var(--fs-2xs); font-weight: 700; margin-inline-start: 4px;
}

.wal-rate-box { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.wal-rate-box .field { margin: 0; }
.wal-leaders { display: flex; flex-direction: column; gap: 8px; }
.wal-leader-row { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.wal-leader-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; cursor: pointer;
}
.wal-leader-head:hover { background: var(--surface-3); }
.wal-leader-name { font-weight: 600; }
.wal-leader-bal { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.wal-leader-bal.is-neg { color: var(--danger-text); }
.wal-leader-sub { padding: 0 14px 8px; font-size: var(--fs-xs); }
.wal-leader-detail { padding: 0 14px 14px; border-top: 1px solid var(--border); }
.wal-detail-bal { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.wal-detail-bal-amt { font-size: 24px; font-weight: 700; color: var(--accent); }
.wal-detail-bal-amt.is-neg { color: var(--danger-text); }
.wal-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.wal-act { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.wal-act input { flex: 1 1 120px; min-width: 0; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 8px; }
.wal-archives { display: flex; flex-direction: column; gap: 6px; }
.wal-archive-row {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; width: 100%; text-align: start;
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; background: var(--surface-2); cursor: pointer;
}
.wal-archive-row:hover { background: var(--surface-3); }
.wal-archive-bal { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }



.ready-name-ar { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.ready-var-attrs { font-size: var(--fs-xs); }




.wallet-purchases { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-strong); }
.wallet-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.wallet-section-head h2 { margin: 0; font-size: 20px; }




.pur-wallet-live {
  margin: 6px 0 4px; padding: 12px 14px; border: 1px solid var(--border-strong);
  border-radius: 10px; background: var(--surface-2); box-shadow: 0 1px 0 var(--gold) inset;
}
.pwl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pwl-label { color: var(--muted); font-size: var(--fs-xs); }
.pwl-current { font-weight: 600; font-variant-numeric: tabular-nums; }
.pwl-after-row { margin-top: 4px; }
.pwl-after { font-size: 20px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.pwl-after.is-neg { color: var(--danger-text); }
.pwl-conv { font-size: var(--fs-xs); margin-top: 4px; }
.pwl-neg-note {
  margin-top: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--danger-text);
  background: var(--danger-bg); border-radius: 8px; padding: 5px 9px;
}


#internal-parent-field { position: relative; }
.tp-seg {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
}
.tp-seg-btn {
  flex: 1 1 auto; min-width: 96px; padding: 8px 10px; font: inherit; font-size: var(--fs-md);
  font-weight: 600; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border-strong); border-radius: 10px; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.tp-seg-btn:hover { background: var(--surface-3); color: var(--text); }
.tp-seg-btn.tp-seg-active {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.tp-search-wrap { position: relative; margin-top: 8px; }
.tp-search-input {
  width: 100%; padding: 9px 11px; font: inherit; font-size: var(--fs-sm);
  border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2);
  color: var(--text);
}
.tp-search-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tp-results {
  margin-top: 6px; max-height: 240px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.tp-result {
  display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: start;
  padding: 9px 11px; font: inherit; background: none; border: 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.tp-result:last-child { border-bottom: 0; }
.tp-result:hover { background: var(--accent-soft); }
.tp-result-main { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.tp-result-sub { font-size: var(--fs-xs); color: var(--muted); }
.tp-result-empty { padding: 10px 11px; font-size: var(--fs-xs); }
.tp-selected {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  padding: 8px 11px; border-radius: 10px; background: var(--accent-soft);
  border: 1px solid var(--accent);
}
.tp-selected-label { flex: 1; font-size: var(--fs-sm); font-weight: 600; color: var(--text); }







.qt-sug {
  margin-top: 8px; max-height: 46vh; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2);
}
.qt-sug-row {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: start;
  min-height: 46px; padding: 10px 12px; font: inherit; font-size: var(--fs-sm); font-weight: 600;
  color: var(--text); background: none; border: 0; border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.qt-sug-row:last-child { border-bottom: 0; }
.qt-sug-row:hover { background: var(--accent-soft); }

.qt-sug-mine { border-inline-start: 3px solid var(--accent); }
.qt-sug-on { background: var(--accent-soft); }
.qt-sug-name { flex: 1; min-width: 0; }
.qt-sug-tick { color: var(--accent); font-weight: 700; }
.qt-sug-none { padding: 12px; font-size: var(--fs-xs); }





.qt-chips { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 8px; min-width: 0; }
.qt-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; max-width: 100%; min-height: 40px; padding: 6px 12px;
  font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--text); background: var(--surface-2);
  border: 1px dashed var(--border-strong); border-radius: 999px; cursor: pointer;
}
.qt-chip-kind, .qt-chip-tick { flex: none; }


.qt-chip-name { max-width: 8em; }
.qt-chip-guess { border-style: dashed; }
.qt-chip-on { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.qt-chip-open { box-shadow: 0 0 0 2px var(--accent); }
.qt-chip-kind { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.qt-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-chip-tick { color: var(--accent); font-weight: 800; }
.qt-sug-short { border-inline-start: 3px solid var(--accent); }
.iform-chips { margin-bottom: 4px; }
.iform-chip-list { margin-bottom: 10px; }
.qt-reason-seg { margin-top: 8px; }





.hlp-list { display: flex; flex-direction: column; gap: 8px; }
.hlp-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: start;
  min-height: 52px; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  cursor: pointer;
}
.hlp-row:hover { background: var(--surface-3); }
.hlp-row-info { cursor: default; background: transparent; border-style: dashed; }
.hlp-row-info:hover { background: transparent; }
.hlp-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hlp-name { font-size: var(--fs-md); font-weight: 600; overflow-wrap: anywhere; }
.hlp-sub { font-size: var(--fs-xs); }
.hlp-note { margin: 12px 2px 0; font-size: var(--fs-xs); }
.hlp-back { margin-top: 14px; }
.hlp-empty { padding: 14px 2px; font-size: var(--fs-sm); }
.hlp-nothing { padding: 4px 2px; }
.hlp-nothing-t { margin: 0 0 6px; font-size: var(--fs-md); font-weight: 600; }
.hlp-nothing-b { margin: 0 0 14px; font-size: var(--fs-xs); }
.hlp-make { width: 100%; min-height: 48px; }




.cl-clock {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-size: 17px; font-weight: 700; color: var(--accent);
}
.cl-clock-val { font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.cl-clock-since { display: inline-block; margin-inline-start: 8px; font-size: var(--fs-xs); font-weight: 400; }


.cl-sess-start-main { min-height: 44px; padding: 10px 18px; font-size: var(--fs-md); font-weight: 700; }

.cl-goto-btn { margin-inline-start: 10px; }
.cl-card-flash { animation: clCardFlash 1.6s ease-out 1; }
@keyframes clCardFlash {
  0%, 100% { box-shadow: none; }
  20%, 60% { box-shadow: 0 0 0 3px var(--accent); }
}



.qt-steps { display: flex; gap: 6px; margin-bottom: 14px; }
.qt-dot {
  flex: 1; min-width: 0; padding: 6px 4px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  font: inherit; font-size: var(--fs-xs); line-height: 1.2; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}


.qt-dot[disabled] { opacity: .45; cursor: default; }
.qt-dot-on { border-color: var(--accent); color: var(--accent); font-weight: 600; }

.qt-dot-back { cursor: pointer; color: var(--text); border-color: var(--border); }
.qt-finish-summary { margin: 2px 0 10px; font-size: var(--fs-xs); }





#internal-reason-wrap { margin-top: 10px; }
#internal-reason-wrap > span { display: block; font-size: var(--fs-2xs); }
#internal-reason-wrap .tp-search-input { margin-top: 8px; }
#qt-reason-other { margin-top: 6px; }
.qt-dims { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.qt-dim { display: flex; flex-direction: column; gap: 3px; flex: 1 1 88px; min-width: 88px; }
.qt-dim > span { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.qt-dim > input {
  width: 100%; min-height: 44px; padding: 8px 10px; font: inherit; font-size: var(--fs-sm);
  border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2);
  color: var(--text);
}
.qt-dim > input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.qt-record-note { font-size: var(--fs-xs); line-height: 1.4; margin: -2px 0 4px; }


.qt-basis { display: block; font-size: var(--fs-2xs); font-weight: 600; opacity: .85; }
.qt-basis-rough { color: var(--warn-text, var(--warn-text)); }



.qt-help-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.qt-help-chip {
  display: inline-flex; align-items: center; gap: 6px;
  flex: 0 1 auto; min-height: 44px; padding: 8px 12px; font: inherit;
  font-size: var(--fs-xs); font-weight: 600; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border-strong); border-radius: 10px; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.qt-help-chip:hover { background: var(--surface-3); color: var(--text); }
.qt-help-chip.qt-help-on {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}



.qt-help-queue {
  font-size: var(--fs-2xs); font-weight: 700; opacity: .8;
  padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12);
}
.qt-help-chip.qt-help-on .qt-help-queue { background: rgba(0, 0, 0, 0.18); }
.todo-leave-btn { margin-inline-start: auto; }


.todo-parent-refs { margin-top: 6px; padding: 8px 10px; border: 1px dashed var(--border-strong); border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.todo-ref-label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 5px; }
.tp-selected-clear {
  flex: 0 0 auto; width: 24px; height: 24px; line-height: 1; font-size: 18px;
  color: var(--muted); background: none; border: 0; border-radius: 6px; cursor: pointer;
}
.tp-selected-clear:hover { background: var(--surface-3); color: var(--text); }
[dir="rtl"] .tp-result { text-align: right; }



.home-reviews-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
  background: var(--warn-bg); color: var(--warn-text);
  border: 1px solid var(--gold); border-inline-start: 5px solid var(--warn-text);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.hrb-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hrb-icon { font-size: 24px; line-height: 1; }
.hrb-text { font-weight: 700; font-size: var(--fs-lg); color: var(--warn-text); }
.hrb-btn {
  background: var(--warn-text); color: #2A1F04; border: 0; font-weight: 700;
  white-space: nowrap; box-shadow: var(--shadow-sm);
}
.hrb-btn:hover { filter: brightness(1.08); background: var(--warn-text); color: #2A1F04; }
@media (max-width: 640px) {
  .home-reviews-banner { flex-direction: column; align-items: stretch; }
  .hrb-btn { min-height: 46px; }
}





.home-backup-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
  background: var(--danger-bg); color: var(--danger-text);
  border: 1px solid var(--danger); border-inline-start: 5px solid var(--danger-text);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.hbb-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hbb-icon { font-size: 24px; line-height: 1; }
.hbb-text { font-weight: 700; font-size: var(--fs-lg); color: var(--danger-text); }
.hbb-btn {
  background: var(--danger-text); color: #2A0A06; border: 0; font-weight: 700;
  white-space: nowrap; box-shadow: var(--shadow-sm);
}
.hbb-btn:hover { filter: brightness(1.08); background: var(--danger-text); color: #2A0A06; }
@media (max-width: 640px) {
  .home-backup-banner { flex-direction: column; align-items: stretch; }
  .hbb-btn { min-height: 46px; }
}
@media print { .home-backup-banner { display: none !important; } }






.bk-note { max-width: 720px; }
.bk-list { display: flex; flex-direction: column; gap: 12px; }




.ask-note { max-width: 720px; }
.ask-form { display: flex; gap: 10px; align-items: flex-start; max-width: 860px; margin-bottom: 10px; }
.ask-q { flex: 1 1 auto; min-height: 56px; resize: vertical; font-size: var(--fs-lg); line-height: 1.4; }
.ask-go { flex: 0 0 auto; min-height: 44px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; max-width: 860px; }
.ask-chips-label { font-size: var(--fs-xs); }
.ask-chip { font: inherit; font-size: var(--fs-xs); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; max-width: 100%; text-align: start; }
.ask-chip:hover { border-color: rgba(var(--accent-rgb), 0.5); background: var(--surface-3); }
.ask-status { margin: 6px 0; }
.ask-answer { margin: 8px 0 20px; max-width: 980px; scroll-margin-top: 84px; }
.ask-understood { font-size: 17px; margin: 0 0 10px; }
.ask-refused { color: var(--danger); margin: 6px 0; font-weight: 600; }
.ask-table-wrap { margin: 8px 0; }
.ask-table td.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 481px) { .ask-table td, .ask-table th { white-space: nowrap; } } 
.ask-count { font-size: var(--fs-xs); margin: 4px 0 10px; }
.ask-how { margin: 8px 0; }
.ask-sql summary { cursor: pointer; color: var(--muted); font-size: var(--fs-xs); }
.ask-sql pre { direction: ltr; text-align: left; white-space: pre-wrap; word-break: break-word; font-size: var(--fs-2xs); line-height: 1.45; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; max-height: 320px; overflow: auto; }
.ask-foot { font-size: var(--fs-xs); margin-top: 8px; }
.ask-wrong { font: inherit; font-size: var(--fs-xs); }
.ask-recent-h { font-size: var(--fs-md); margin: 18px 0 8px; }
.ask-recent { display: flex; flex-direction: column; gap: 6px; max-width: 860px; }
.ask-recent-row { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: start; font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.ask-recent-row:hover { border-color: rgba(var(--accent-rgb), 0.5); }
.ask-recent-q { font-size: var(--fs-sm); }
.ask-recent-meta { font-size: var(--fs-xs); }
@media (max-width: 480px) {
  .ask-form { flex-direction: column; }
  .ask-go { width: 100%; }
  

  .ask-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; max-width: 100%; }
  .ask-chip { flex: 0 0 auto; max-width: 78vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ask-chips-label { flex: 0 0 auto; }
}
.bk-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.bk-card.bk-failed { border-color: var(--danger); }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bk-when { font-weight: 700; font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.bk-status { font-size: var(--fs-2xs); font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.bk-status.bk-ok  { background: var(--accent); color: #0F2415; }
.bk-status.bk-bad { background: var(--danger); color: #2A0A0A; }
.bk-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; color: var(--muted); font-size: var(--fs-sm); }
.bk-trig { border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; font-size: var(--fs-2xs); }
.bk-error { margin-top: 8px; color: var(--danger-text); font-size: var(--fs-sm); word-break: break-word; }
.bk-actions { display: flex; align-items: flex-start; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.bk-dl { text-decoration: none; display: inline-flex; align-items: center; }
.bk-tables summary { cursor: pointer; color: var(--muted); font-size: var(--fs-sm); padding: 6px 0; }
.bk-tables[open] summary { color: var(--text); }
.bk-tables .table-wrap { max-height: 300px; overflow-y: auto; margin-top: 6px; }
.bk-table { border-collapse: collapse; min-width: 260px; }
.bk-table td { padding: 3px 10px; font-size: var(--fs-xs); border-bottom: 1px solid var(--border); color: var(--text); }
.bk-num { text-align: end; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .bk-actions { flex-direction: column; }
  .bk-dl { min-height: 44px; width: 100%; justify-content: center; }
}


.cbk-line { max-width: 720px; font-size: var(--fs-lg); line-height: 1.5; margin: 4px 0 14px; color: var(--text); }
.cbk-files { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.cbk-dl { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.cbk-note { max-width: 720px; font-size: var(--fs-sm); }
@media (max-width: 640px) {
  .cbk-files { flex-direction: column; }
  .cbk-dl { width: 100%; }
}






.rev-worker, .user-name-cell, .wal-leader-name, .la-leader-name, .cla-sess-who,
.jr-stafftag-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.crew-tag { display: inline-flex; align-items: center; gap: 5px; }
.rev-worker + .rev-worker { margin-inline-start: 8px; }
.user-name-cell > span:last-child, .wal-leader-name, .la-leader-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }







.mytime-greeting {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.mtg-avatar { flex: 0 0 auto; margin-top: 2px; }
.mtg-main { min-width: 0; flex: 1 1 auto; }
.mtg-hello {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  line-height: 1.2; color: var(--text); letter-spacing: 0.2px;
}
.mtg-quote { unicode-bidi: plaintext; margin-top: 6px; font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.5; color: var(--label); }

.mytime-greeting.mtg-compact { padding: 10px 14px; align-items: center; box-shadow: none; }
.mtg-compact .mtg-hello { font-size: var(--fs-lg); }
.mtg-compact .mtg-quote { margin-top: 2px; font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 640px) {
  .mytime-greeting { padding: 14px; gap: 11px; }
  .mtg-hello { font-size: 19px; }
}
.tq-admin { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 18px; }
.tq-admin h2 { margin: 0 0 4px; }
.tq-add { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 14px; }
.tq-add input { flex: 1 1 240px; }
.tq-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.tq-row {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: var(--sidebar-bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px;
}
.tq-row.tq-off { opacity: 0.55; }
.tq-texts { min-width: 0; }
.tq-en { font-size: var(--fs-sm); color: var(--text); }
.tq-ar { font-size: var(--fs-sm); color: var(--label); margin-top: 2px; }
.tq-toggle { flex: 0 0 auto; }
@media (max-width: 640px) {
  .tq-row { flex-direction: column; align-items: stretch; }
  .tq-toggle { min-height: 42px; }
}






.briefing-modal { display: flex; flex-direction: column; max-height: 88vh; max-width: 560px; }


.briefing-modal { max-height: 88dvh; }
.brf-body { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.brf-note { margin: 0 0 10px; }
.brf-list { display: flex; flex-direction: column; gap: 8px; }
.brf-row {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--sidebar-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px;
}
.brf-row:has(.brf-tick:checked) { border-color: var(--accent); background: var(--accent-soft); }

.brf-item { margin-bottom: 8px; }
.brf-item .brf-row { display: flex; align-items: stretch; gap: 8px; margin-bottom: 0; }
.brf-expand { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: start; cursor: pointer; min-height: 44px; }
.brf-chevron { flex: 0 0 auto; color: var(--muted); transition: transform 0.15s; }
.brf-open .brf-chevron { transform: rotate(90deg); }
.brf-ticklbl { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.brf-ticklbl .brf-tick:disabled { opacity: 0.4; cursor: not-allowed; }
.brf-openhint { font-size: var(--fs-xs); margin: 2px 4px 0; }
.brf-details { border: 1px solid var(--border-strong); border-top: 0; border-radius: 0 0 12px 12px; padding: 10px 12px; background: var(--surface-2); }
.brf-details .js-items { margin: 0 0 6px; padding: 0; }
.brf-details .js-section { margin-top: 8px; }
.brf-tick { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--accent); }
.brf-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.brf-when { font-size: var(--fs-xs); color: var(--label); }
.brf-client { font-weight: 700; font-size: var(--fs-md); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brf-code { font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
.brf-type { font-size: var(--fs-xs); color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.brf-badge { font-size: var(--fs-2xs); font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.brf-new { background: var(--success-bg); color: var(--success-text); }
.brf-moved { background: var(--warn-bg); color: var(--warn-text); }
.brf-seen { font-size: var(--fs-xs); flex: 0 0 auto; }
.brf-foot { flex: 0 0 auto; padding-top: 12px; border-top: 1px solid var(--border); }
.brf-foot .btn { width: 100%; min-height: 48px; }

.js-acks { display: flex; flex-wrap: wrap; gap: 8px; }
.js-ack { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--label); }
@media (max-width: 640px) {
  .briefing-modal { max-height: 94vh; max-height: 94dvh; }
  .brf-seen { display: none; } 
}



.home-greet { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.home-greet .home-welcome { margin: 0; }
.home-greet .mtg-quote { margin-top: 4px; }
.home-greet .home-subtitle { margin: 6px 0 0; }




.inv-low-badge {
  display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-2xs); font-weight: 700;
  padding: 1px 7px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-text);
  border: 1px solid var(--warn-border); white-space: nowrap;
}
.inv-low-badge.inv-neg { background: var(--danger-bg); color: var(--danger-text); border-color: var(--danger); }
.inv-stock-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inv-stock-qty { font-weight: 700; font-size: var(--fs-lg); }
.inv-history { margin-top: 8px; max-height: 260px; overflow-y: auto; border-top: 1px solid var(--border); }
.inv-hist-row { display: flex; align-items: baseline; gap: 8px; padding: 7px 2px; border-bottom: 1px solid var(--border); font-size: var(--fs-xs); }
.inv-hist-delta { flex: 0 0 52px; font-weight: 700; font-family: ui-monospace, monospace; text-align: right; direction: ltr; }
.inv-hist-delta.pos { color: var(--success-text); }
.inv-hist-delta.neg { color: var(--danger-text); }
.inv-hist-main { flex: 1 1 auto; min-width: 0; }
.inv-hist-meta { font-size: var(--fs-xs); color: var(--muted); }
.inv-hist-note { font-size: var(--fs-xs); color: var(--label); unicode-bidi: plaintext; overflow-wrap: anywhere; }
.inv-hist-ref { background: none; border: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: var(--fs-2xs); }
.inv-hist-row.is-deleted { opacity: 0.5; text-decoration: line-through; }
.inv-move-item { margin-bottom: 10px; }
.inv-move-name { font-weight: 700; unicode-bidi: plaintext; }
.inv-move-preview { font-size: var(--fs-sm); margin: 4px 0 8px; color: var(--label); }
.inv-move-negwarn {
  font-size: var(--fs-xs); padding: 8px 10px; border-radius: 10px; margin-bottom: 8px;
  background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border);
}
.count-foot { position: sticky; bottom: 0; padding: 10px 0 4px; background: inherit; }
.inv-row-qty .inv-qty-min { font-size: var(--fs-xs); color: var(--muted); }



.scan-toast {
  position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%);
  max-width: min(92vw, 480px); padding: 10px 16px; border-radius: 12px;
  background: rgba(var(--glass-rgb), 0.95); border: 1px solid var(--accent);
  color: var(--text); font-size: var(--fs-md); font-weight: 600; text-align: center;
  unicode-bidi: plaintext; pointer-events: none; z-index: 3;
}
.scan-toast.is-err { border-color: var(--danger); color: var(--danger-text); }



.scan-badge {
  font-size: var(--fs-xs); font-weight: 700; color: var(--accent);
  background: rgba(var(--accent-rgb), 0.14); border: 1px solid var(--accent);
  border-radius: 999px; padding: 2px 10px; white-space: nowrap; direction: ltr;
}

.scan-session {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  max-height: 30vh; overflow-y: auto;
  background: rgba(var(--scrim-soft-rgb), 0.86);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
}
.scan-session[hidden] { display: none; }

.scan-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  background: rgb(var(--glass-rgb));
  border-top: 1px solid var(--accent);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.55);
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  animation: scanSheetUp 0.22s var(--ease-spring) both;
  touch-action: pan-y;
}
.scan-sheet[hidden] { display: none; }
@keyframes scanSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.scan-sheet-grip { width: 42px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 10px; }
.scan-sheet-name {
  font-size: 17px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext;
}
.scan-sheet-meta { font-size: var(--fs-xs); color: var(--text-muted); margin: 3px 0 0; unicode-bidi: plaintext; }
.scan-sheet-code { display: inline-block; font-size: var(--fs-sm); padding: 4px 10px; margin: 8px 0 2px; }
.scan-sheet-insession { font-size: var(--fs-xs); font-weight: 600; color: var(--accent); margin-top: 4px; }
.scan-sheet-qtyrow { display: flex; align-items: stretch; gap: 10px; margin: 14px 0 4px; }
.scan-sheet-step {
  flex: 0 0 56px; min-height: 52px; font-size: 24px; font-weight: 700; line-height: 1;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-3); color: var(--text); cursor: pointer;
}
.scan-sheet-qty { flex: 1 1 auto; min-width: 0; text-align: center; font-size: 22px; font-weight: 700; min-height: 52px; }
.scan-sheet-qty.is-invalid { border-color: var(--danger); }
.scan-sheet-actions { display: flex; gap: 10px; margin-top: 12px; }
.scan-sheet-actions .btn { flex: 1; min-height: 48px; }


.modal-overlay.above-screens { z-index: 320; }



.official-row, .official-inline {
  


  border: none; border-radius: 10px;
  padding: 10px 12px; margin: 10px 0 14px; background: var(--surface-2);
}
.official-row.is-on, .official-inline.is-on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgba(var(--accent-rgb), 0.28);
}
.official-switch { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.official-switch input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.official-note { margin-top: 6px; font-size: var(--fs-xs); color: var(--accent); unicode-bidi: plaintext; }
.official-num { display: block; margin-top: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--text); direction: ltr; unicode-bidi: plaintext; }
.official-inline.is-on .official-num { color: var(--accent); }

.client-mof-hint { font-size: var(--fs-xs); margin-top: 2px; }
#client-mof-error { font-size: var(--fs-xs); margin-top: 4px; }
.official-mof-prompt { margin-top: 8px; }
.official-mof-msg { font-size: var(--fs-xs); color: var(--warn-text); margin-bottom: 6px; }
.official-mof-row { display: flex; gap: 8px; }
.official-mof-row .official-mof-input { flex: 1 1 auto; min-width: 0; min-height: 40px; }
.official-history { margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
.official-history summary { cursor: pointer; }
.official-log-line { padding: 2px 0; }




.mof-correct { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 8px; }
.mof-correct > summary { cursor: pointer; font-size: var(--fs-sm); color: var(--danger, var(--danger-text)); font-weight: 600; }
.mof-correct-body { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.mof-correct-hint, .mof-correct-warn { font-size: var(--fs-xs); color: var(--danger, var(--danger-text)); }
.mof-correct-cur { font-size: var(--fs-sm); color: var(--muted); }
.mof-correct-new, .mof-correct-reason { padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.mof-correct-go { align-self: flex-start; }
@media print { .mof-correct { display: none; } }


.dash-inv-filter { display: inline-flex; gap: 4px; margin-inline-start: 10px; }
.dash-off-lists { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 10px; }

.dash-off-list { border: none; border-radius: 10px; padding: 10px 12px; background: var(--surface-2); font-size: var(--fs-xs); }
.dash-off-list h4 { margin: 0 0 6px; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.dash-off-list .off-num { font-weight: 700; direction: ltr; unicode-bidi: plaintext; }



.mistakes-board { max-width: 760px; margin-top: 20px; }
.mistakes-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mistakes-head .home-section-title { margin: 0; }
.mistakes-list { display: flex; flex-direction: column; gap: 8px; }
.mistakes-empty { color: var(--muted); font-size: var(--fs-xs); padding: 6px 2px; }
.mistakes-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.mistakes-thumb, .mistakes-thumb-none { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: var(--surface-2); }
.mistakes-thumb-none { display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mistakes-thumb-link { flex: 0 0 auto; line-height: 0; }
.mistakes-body { flex: 1 1 auto; min-width: 0; }
.mistakes-line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mistakes-penalty { font-weight: 800; color: var(--danger); font-variant-numeric: tabular-nums; }

.mistakes-nodeduct { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); unicode-bidi: plaintext; }
.mistakes-everyone { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 8px; }
.mistakes-assignee { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text); font-weight: 600; }
.mistakes-meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mistakes-date { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.mistakes-actions { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.mistakes-actions .btn { padding: 3px 10px; font-size: var(--fs-2xs); }
.mistake-modal { max-width: 380px; display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.mistake-modal h3 { margin: 0 0 4px; color: var(--text); }
.mistake-modal input[type="text"], .mistake-modal input[type="number"], .mistake-modal select { width: 100%; }
.mistake-photo-label { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mistake-modal-err { color: var(--danger); font-size: var(--fs-xs); }
[dir="rtl"] .mistakes-row { flex-direction: row-reverse; }



.tl-group { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 16px 2px 6px; padding: 4px 4px 6px; border-block-end: 1px solid var(--no-line); }   
.tl-group:first-child { margin-top: 2px; }
.tl-group-title { font-weight: 700; font-size: var(--fs-xs); color: var(--text); letter-spacing: .01em; }
.tl-group-count { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
[dir="rtl"] .tl-group { flex-direction: row-reverse; }



.fin-hero-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; margin-bottom: 16px; }
.fin-hero-row .fin-net-hero { flex: 1 1 320px; margin-bottom: 0; }
.fin-hero-stat { flex: 0 1 200px; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  border: 1px solid var(--border); border-radius: 15px; padding: 20px 22px; background: var(--surface-2); }
.fin-hero-stat-value { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--text); }
.fin-hero-stat-value.muted { color: var(--muted); }
.fin-hero-stat-label { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.fin-hero-stat-sub { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 640px) { .fin-hero-stat-value { font-size: 32px; } }




.todo-pin-flag { font-size: var(--fs-2xs); line-height: 1; margin-inline-start: 2px; }
.todo-pin-btn { border: 1px solid var(--border); background: var(--surface-3); border-radius: 999px; padding: 1px 7px; font-size: var(--fs-2xs); line-height: 1.5; cursor: pointer; opacity: 0.45; filter: grayscale(1); }
.todo-pin-btn:hover { opacity: 0.9; filter: none; }
.todo-pin-btn.is-pinned { opacity: 1; filter: none; border-color: var(--accent); }
.todo-dofirst-chip { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 8px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #10231A; font-size: var(--fs-2xs); font-weight: 700; white-space: nowrap; }
.prod-card.todo-pinned-me { border-color: var(--accent); }
.myt-item.myt-pinned .myt-title { font-weight: 700; }
.myt-item .todo-pin-flag { margin-inline-end: 4px; }
.dn-chip.dn-pinned { background: var(--accent); color: #10231A; font-weight: 700; }



.dn-chip.dn-live { background: var(--surface-3); color: var(--text); }
.dn-chip.dn-live-paused { color: var(--muted); border: 1px dashed var(--border); background: transparent; }


.kiosk-code-body { display: flex; flex-direction: column; gap: 14px; }
.kiosk-code-user { font-weight: 600; }
.kiosk-code-row { display: flex; gap: 10px; align-items: center; }
.kiosk-code-input { font-size: 26px; letter-spacing: 6px; text-align: center; max-width: 180px; direction: ltr; }
.kiosk-code-error { color: var(--danger, var(--danger-text)); font-size: var(--fs-sm); }
.kiosk-code-actions { display: flex; gap: 10px; justify-content: space-between; }
.kiosk-code-big { font-size: 56px; font-weight: 800; letter-spacing: 10px; text-align: center; color: var(--accent); direction: ltr; }
.kiosk-code-note { text-align: center; color: var(--muted); margin: 8px 0 14px; }
#kiosk-code-once { display: flex; flex-direction: column; gap: 6px; }
#kiosk-code-once[hidden] { display: none; }
.kiosk-pill { border-color: var(--accent); }
.kiosk-devices-card { margin-top: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.kiosk-devices-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.kiosk-devices-head h2 { font-size: 18px; }
.kiosk-device-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.kiosk-device-row.is-revoked { opacity: 0.55; }
.kiosk-device-main { display: flex; flex-direction: column; gap: 2px; }
.kiosk-device-name { font-weight: 600; }




.qt-dim-from { display: block; font-size: var(--fs-xs); margin-top: 2px; color: var(--muted); }




.primary-leader-card { margin-top: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.primary-leader-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.primary-leader-field { flex: 0 1 300px; min-width: 200px; margin: 0; }
.primary-leader-note { font-size: var(--fs-xs); margin: 0; max-width: 68ch; }
.primary-leader-meta { font-size: var(--fs-xs); margin: 0; }


.primary-leader-card select option:disabled { color: var(--muted); }


button.kiosk-pill { cursor: pointer; font: inherit; font-size: var(--fs-2xs); letter-spacing: 1px; }


.bk-health { padding: 10px 14px; border-radius: 10px; background: var(--panel-2, rgba(255,255,255,0.04)); font-weight: 600; margin-bottom: 12px; }
.bk-health-bad { background: var(--danger-bg); color: var(--danger-text); border: 1px solid var(--danger); }
.bk-storage-down { padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); font-weight: 600; margin-bottom: 12px; }








.team-face-link { cursor: pointer; }
.team-face-link:hover .team-face-name, .team-face-link:focus-visible .team-face-name { text-decoration: underline; }

.sp-tl-nav { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.sp-tl-arrow { min-width: 34px; padding: 2px 10px; font-size: var(--fs-lg); }
.sp-tl-date { font-weight: 700; }
.sp-tl { display: flex; flex-direction: column; gap: 3px; }
.sp-tl-row { display: grid; grid-template-columns: minmax(72px, 130px) 1fr 88px; align-items: center; gap: 8px; }
.sp-tl-lbl { font-size: var(--fs-2xs); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-tl-track { position: relative; height: 14px; border-radius: 7px; background: var(--panel-2, rgba(255,255,255,0.05)); overflow: hidden; }
.sp-tl-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 5px; background: var(--accent); opacity: 0.9; }
.sp-tl-att { background: var(--muted); opacity: 0.45; }
.sp-tl-task { background: var(--accent); }
.sp-tl-pause { background: var(--warn-text, var(--pause-amber)); }
.sp-tl-checklist { background: #6fa8dd; }
.sp-tl-job { background: #b78fdd; }
.sp-tl-help_answered { background: #dd6f8f; }
.sp-tl-gap { background: transparent; border: 1px dashed var(--muted); opacity: 0.7; }
.sp-tl-gaprow .sp-tl-track { background: transparent; }
.sp-tl-open { border-inline-end: 2px solid var(--text, #fff); }
.sp-tl-mark { position: absolute; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--danger, #e5484d); }
.sp-tl-time { font-size: var(--fs-2xs); text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .sp-tl-row { grid-template-columns: minmax(58px, 84px) 1fr 74px; gap: 6px; }
  .sp-tl-lbl { font-size: 10.5px; }
  .sp-tl-time { font-size: 10px; }
}

.wal-spend { margin: 12px 0; }
.wal-spend-ranges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.wal-spend-custom { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.wal-spend-custom input[type="date"] { max-width: 150px; }
.wal-spend-row { display: flex; align-items: baseline; gap: 10px; padding: 3px 0; }
.wal-spend-row b { font-variant-numeric: tabular-nums; }
.wal-spend-total { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--panel-2, rgba(255,255,255,0.08)); font-weight: 700; }


.ho-batch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--panel-2, rgba(255,255,255,0.08)); font-size: var(--fs-xs); }
.ho-batch:first-of-type { border-top: 0; }



.tl-group-sub { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); margin-inline-start: 6px; }









#avatar-pop:has(.av-day) { width: 268px; max-height: 78dvh; overflow-y: auto; overscroll-behavior: contain; }
.av-day { width: 100%; display: flex; flex-direction: column; gap: 7px; margin-top: 2px;
  padding-top: 9px; border-top: 1px solid var(--border-strong); text-align: start; }
.av-day-inout { font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.av-day-now { font-size: var(--fs-2xs); }
.av-now { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; font-weight: 600; }
.av-now-task { color: var(--accent); }
.av-now-pause { color: var(--warn-text, var(--pause-amber)); }
.av-now-idle { color: var(--muted); }
.av-day-sec { display: flex; flex-direction: column; gap: 3px; }
.av-day-h { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; }
.av-day-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: var(--fs-2xs); }

.av-day-lbl { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-lbl-pause { color: var(--warn-text, var(--pause-amber)); }
.av-day-min { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--fs-xs); }
.av-day-more { font-size: var(--fs-xs); }
.av-day-nums { display: flex; gap: 12px; font-size: var(--fs-2xs); padding-top: 2px; }
.av-day-nums b { font-variant-numeric: tabular-nums; }
.av-day-link { width: 100%; margin-top: 2px; }
.av-day-loading { font-size: var(--fs-2xs); padding: 6px 0; }






.caps-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 0; background: none; border: 0; color: inherit; font: inherit; font-weight: 700; cursor: pointer; text-align: start; }
.caps-summary { font-size: var(--fs-xs); font-weight: 600; margin-inline-start: auto; }
.caps-summary.caps-has { color: var(--accent); }
.caps-chevron { transition: transform 0.15s; }
.caps-toggle[aria-expanded="true"] .caps-chevron { transform: rotate(90deg); }
.caps-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 8px; }
.caps-group-h { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
.caps-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--panel-2, rgba(255,255,255,0.06)); }
.caps-row:first-of-type { border-top: 0; }
.caps-row-main { flex: 1 1 auto; min-width: 0; }
.caps-row-label { font-size: var(--fs-xs); font-weight: 600; }
.caps-row-hint { font-size: var(--fs-xs); }

.caps-tri { flex: 0 0 auto; display: flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.caps-btn { padding: 4px 9px; font-size: var(--fs-xs); font-weight: 700; background: none; border: 0; border-inline-start: 1px solid var(--border-strong); color: var(--muted); cursor: pointer; white-space: nowrap; }
.caps-btn:first-child { border-inline-start: 0; }
.caps-btn.is-on { background: var(--accent); color: var(--on-accent, #10231a); }
@media (max-width: 480px) {
  .caps-row { flex-wrap: wrap; }
  .caps-tri { margin-inline-start: auto; }
}




.qt-suggest { min-height: 18px; margin: -4px 0 10px; font-size: var(--fs-xs); }
.qt-suggest:empty { margin: 0; min-height: 0; }



.qt-speak { margin: -4px 0 12px; }
.qt-speak-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--accent-soft); color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.qt-speak-btn svg { width: 20px; height: 20px; flex: none; }
.qt-speak-btn.listening { background: var(--danger-bg); color: var(--danger-text); border-color: transparent; animation: qt-speak-pulse 1.1s ease-in-out infinite; }
.qt-speak-btn.thinking { opacity: .7; cursor: progress; }
.qt-speak-btn[disabled] { opacity: .5; cursor: not-allowed; }
@keyframes qt-speak-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--danger-tint-rgb), .45); } 50% { box-shadow: 0 0 0 10px rgba(var(--danger-tint-rgb), 0); } }
.qt-speak-heard { margin: 0 0 12px; font-size: var(--fs-xs); line-height: 1.45; }   
.qt-speak-heard bdi { unicode-bidi: isolate; }


.qt-speak-words-only { display: block; margin-block-start: 2px; color: var(--label); font-weight: 600; }




.qt-lib { margin: -4px 0 12px; }
.qt-lib-ask { display: block; font-size: var(--fs-xs); margin-block-end: 6px; }
.qt-lib-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qt-lib-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-block: 6px; padding-inline: 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: var(--fs-md); line-height: 1.3; text-align: start; cursor: pointer; }
.qt-lib-chip bdi { unicode-bidi: isolate; }
.qt-lib-voice { border-style: dashed; border-color: var(--accent); }
.qt-lib-on { background: var(--accent-soft); border-color: var(--accent); border-style: solid; font-weight: 600; }
.qt-lib-none { color: var(--muted); }
.qt-lib-none.qt-lib-on { color: var(--text); }
.qt-lib-mark { font-size: var(--fs-sm); }






.sj-jobs { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.sj-job { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; padding: 12px 14px; min-height: 44px; }
.sj-job-client { font-weight: 600; }
.sj-job-meta { font-size: var(--fs-xs); }

.sj-crew { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.sj-person { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; min-height: 44px; }
.sj-person.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }


.ar-g-unfiled .ar-group-name::before { content: '■ '; opacity: .7; }





.tp-short { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.tp-short-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  text-align: start; padding: 9px 12px; min-height: 44px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer; width: 100%;
}
.tp-short-btn:hover { background: var(--surface-3); }
.tp-short-main { font-weight: 600; font-size: var(--fs-sm); }
.tp-short-sub { font-size: var(--fs-xs); }





.tp-short-btn.tp-short-haspic { flex-direction: row; align-items: center; gap: 10px; }
.tp-short-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.tp-short-pic { position: relative; flex: 0 0 auto; display: block; line-height: 0; }
.tp-short-thumb { width: 44px; height: 44px; display: block; }
.tp-short-thumb img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }

.tp-short-more {
  position: absolute; inset-block-end: -2px; inset-inline-end: -4px;
  font-size: var(--fs-xs); font-weight: 700; line-height: 1;
  padding: 2px 4px; border-radius: 999px;
  background: var(--surface-3); color: var(--muted); border: 1px solid var(--border);
}
.tp-more { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px 2px; font-size: var(--fs-xs); text-decoration: underline; }







.qt-items { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.qt-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: start; padding: 9px 12px; min-height: 44px; width: 100%;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.qt-item:hover { background: var(--surface-3); }
.qt-item-main { font-weight: 600; font-size: var(--fs-sm); }
.qt-item-sub { font-size: var(--fs-xs); white-space: nowrap; }


.qt-item.qt-item-on {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent); font-weight: 600;
}
.qt-item.qt-item-on .qt-item-sub { color: var(--accent-ink); opacity: 0.75; }






.tp-items { margin: 6px 0; }
.tp-items-list { display: flex; flex-direction: column; gap: 6px; margin-block-start: 6px; }
.tp-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  text-align: start; padding: 9px 12px; min-height: 44px; width: 100%;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.tp-item:hover { background: var(--surface-3); }
.tp-item-main { font-weight: 600; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.tp-item-qty { font-weight: 400; color: var(--muted); white-space: nowrap; }
.tp-item-sub { font-size: var(--fs-2xs); }
.tp-item.tp-item-whole { border-style: dashed; }
.tp-item-more { align-self: flex-start; }




.tp-order { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.tp-order-open { border-color: var(--accent); }
.tp-order-head {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 10px;
  text-align: start; font: inherit; color: var(--text); background: none; border: 0; cursor: pointer;
}
.tp-order-head:hover { background: var(--surface-3); }
.tp-order-pic { flex: none; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--surface-3); }
.tp-order-nopic { display: inline-flex; align-items: center; justify-content: center; font-size: 20px; color: var(--muted); }
.tp-order-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tp-order-who { font-weight: 700; font-size: var(--fs-md); overflow-wrap: anywhere; }
.tp-order-code { font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
.tp-order-when { font-size: var(--fs-xs); }
.tp-order-job { color: var(--gold); font-weight: 600; }
.tp-order-chev { flex: none; color: var(--muted); font-size: var(--fs-sm); }
.tp-order-lines { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 10px; }
.tp-order-group { margin-block: 6px 0; font-size: var(--fs-xs); font-weight: 600; }

.qt-for-line { margin: 2px 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-3); font-size: var(--fs-xs); font-weight: 600; overflow-wrap: anywhere; }

.qt-sug-head { padding: 6px 12px 2px; font-size: var(--fs-xs); font-weight: 600; }
.qt-sug-order { border-inline-start: 3px solid var(--gold); }


.tp-items-ask { display: block; margin-block-start: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--text); }

.tp-items-ask.tp-ask-need { color: var(--danger-text); }
.qt-shop-seg .tp-seg-btn { min-width: 140px; }

.qt-detail-toggle {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  padding: 6px 2px; font-size: var(--fs-xs); text-decoration: underline; text-align: start;
}
.qt-detail-body { margin-top: 4px; }
.qt-detail-desc {
  font-size: var(--fs-xs); line-height: 1.5; white-space: pre-wrap;
  
  unicode-bidi: plaintext;
}
.qt-detail-pics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qt-detail-pic {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2);
}




.lb-role-tag { font-size: var(--fs-xs); padding: 1px 6px; border-radius: 8px; background: var(--surface-3); color: var(--muted); margin-inline-start: 6px; }
.lb-leader-note { font-size: var(--fs-xs); margin: 8px 2px 0; line-height: 1.45; }


.task-board { margin-top: 14px; }
.tb-group { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.tb-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tb-group-title { font-weight: 800; font-size: var(--fs-sm); color: var(--text); }
.tb-group-count { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); background: var(--surface-3); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
.tb-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 720px) { .tb-grid { grid-template-columns: 1fr 1fr; } }
.tb-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 10px; text-align: start; font: inherit; color: var(--text); background: var(--surface-3); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.tb-btn:active { transform: scale(.99); }
.tb-pic { flex: 0 0 auto; line-height: 0; }
.tb-pic img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; }
.tb-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; flex: 1 1 auto; }
.tb-title { font-weight: 700; font-size: var(--fs-md); line-height: 1.3; overflow-wrap: anywhere; unicode-bidi: plaintext; text-align: start; }
.tb-chip { font-size: var(--fs-2xs); font-weight: 700; padding: 1px 8px; border-radius: 999px; color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.tb-empty, .tb-group-empty { padding: 4px 2px; font-size: var(--fs-sm); }

.tb-empty-next { color: var(--text); line-height: 1.45; }



.home-stopped { margin: 0 0 10px; }
.home-stopped-line { display: block; width: 100%; text-align: start; padding: 8px 12px; border: 1px solid var(--gold); border-inline-start: 4px solid var(--warn-text); border-radius: 10px; background: var(--warn-bg); color: var(--warn-text); font-weight: 700; font-size: var(--fs-sm); line-height: 1.25; cursor: pointer; }
.home-stopped-line .hs-more { font-weight: 500; opacity: 0.85; }
#stopped-body.ga-strip { margin-bottom: 0; }   
.rev-card.rev-open { border-inline-start: 4px solid var(--warn-text); }


.cq-card { touch-action: pan-y; }
.cq-photos { display: flex; gap: 6px; margin-top: 6px; }
.cq-photo { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cq-credit input { width: 90px; }

.home-duties-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.home-duties-row { display: flex; flex-wrap: wrap; gap: 8px; }

.pr-gate { padding: 8px 12px; border-radius: 10px; border-inline-start: 4px solid var(--accent); }
.pr-fail { border-inline-start-color: var(--warn-text); }
.pr-digest { margin-top: 6px; margin-bottom: 10px; padding-inline-start: 18px; }
.pr-team td { border-top: 2px solid var(--border); }



.cw-lead { margin: 0 0 10px; }
.cw-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.cw-list li { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; }
.cw-list li .muted { font-weight: 500; }
.cw-nopts { margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-text); font-weight: 700; font-size: var(--fs-xs); line-height: 1.3; }


.cw-answers .ga-preset { font-size: 16px; }
.cw-note { margin: 6px 0 0; padding-inline-start: 10px; border-inline-start: 3px solid var(--border); color: var(--text-muted); font-weight: 500; font-size: 14px; line-height: 1.35; }


.driver-block { margin: 0 0 14px; }
.driver-card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 12px 14px; }
.driver-h { margin: 0 0 10px; font-size: var(--fs-lg); }
.dt-h { margin: 12px 0 6px; font-size: var(--fs-xs); opacity: 0.8; font-weight: 700; }
.dt-h:first-of-type { margin-top: 0; }
.dt-list, .dr-runs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dt-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-3); font-size: var(--fs-sm); line-height: 1.35; }
.dt-row.dt-done .dt-title { opacity: 0.55; text-decoration: line-through; }

.dt-tick { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 20px; cursor: pointer; }
.dt-row.dt-done .dt-tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dt-title { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.dt-late { flex: 0 0 auto; font-size: var(--fs-2xs); font-weight: 700; color: var(--warn-text); background: var(--warn-bg); border-radius: 8px; padding: 2px 8px; }
.dt-day { flex: 0 0 auto; font-size: var(--fs-xs); }
.dr-run { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-3); font-size: var(--fs-sm); line-height: 1.4; }
.dr-run-today { border-inline-start: 4px solid var(--accent); }
.dr-when { font-size: var(--fs-2xs); font-weight: 700; opacity: 0.85; }
.dr-client { font-weight: 700; }
.dr-crew { margin-top: 4px; font-size: var(--fs-xs); }
.dr-call { display: inline-block; margin-top: 6px; font-size: var(--fs-xs); font-weight: 700; }
.da-form { display: grid; gap: 8px; }
.da-list { margin-top: 10px; display: grid; gap: 6px; }
.da-row { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); }
.da-row .da-done { opacity: 0.55; text-decoration: line-through; }
.da-row > span:first-child { flex: 1 1 auto; min-width: 0; }
.job-driver-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 480px) { .da-row { flex-wrap: wrap; } }



.wal-role-chip { margin-inline-start: 8px; font-size: var(--fs-2xs); font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--no-line); color: var(--text); vertical-align: middle; }   




.big-dup { border: 1px solid var(--warn-text); border-radius: 10px; padding: 10px; margin: 8px 0; background: var(--surface-2); }
.big-dup-head { font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.big-dup-list { display: flex; flex-direction: column; gap: 6px; }
.big-dup-row { display: flex; flex-direction: column; gap: 1px; text-align: start; width: 100%;
  min-height: 44px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-1); color: inherit; cursor: pointer; }
.big-dup-row:hover { background: var(--surface-3); }
.big-dup-title { font-weight: 600; font-size: var(--fs-sm); }
.big-dup-sub { font-size: var(--fs-xs); }
.big-dup-acts { display: flex; justify-content: flex-end; margin-top: 8px; }






.qu-hint { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 0.75rem; line-height: 1.45; }


#qu-create[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
@keyframes qu-block-flash { 0% { box-shadow: 0 0 0 0 rgba(var(--danger-tint-rgb), 0.6); } 100% { box-shadow: 0 0 0 12px rgba(var(--danger-tint-rgb), 0); } }
.qu-block-flash { animation: qu-block-flash 0.9s ease-out; }
.qu-note { margin-top: 0.6rem; }

.ga-todo-note { font-size: var(--fs-sm); margin: 0.45rem 0 0; line-height: 1.4; }

.qu-card-detail { margin-top: 0.45rem; }
.qu-notes { margin-top: 0.4rem; }
.qu-notes-list { margin: 0.2rem 0 0.6rem; padding-inline-start: 1.1rem; font-size: var(--fs-sm); text-align: start; }
.qu-notes-list li { margin: 0.15rem 0; }


.qu-read-btn { display: block; width: 100%; margin: 0.6rem 0 0; }
#qu-read[aria-disabled="true"] { opacity: 0.55; cursor: progress; }
.qu-paste { margin-top: 0.5rem; font-size: var(--fs-sm); }
.qu-dropping .modal { outline: 3px dashed var(--accent); outline-offset: -6px; }
.qu-f-unsure { border-color: var(--warning, var(--accent)); box-shadow: 0 0 0 2px rgba(var(--warning-rgb, var(--accent-rgb)), 0.25); }
.qu-h3 { font-size: var(--fs-lg); margin: 1.1rem 0 0.4rem; }
.qu-empty { color: var(--muted); font-size: var(--fs-sm); margin: 0.2rem 0 0.6rem; }


.qu-pick { display: block; margin-bottom: 0.6rem; }
.qu-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.qu-pick-btn { display: inline-block; width: 100%; text-align: center; cursor: pointer; }
.qu-pick input:focus-visible + .qu-pick-btn,
.qu-pick:focus-within .qu-pick-btn { outline: 2px solid var(--accent); outline-offset: 2px; }


.qu-files { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.qu-chip { display: flex; align-items: center; gap: 0.4rem; border: 1px solid var(--border);
  border-radius: 10px; padding: 0.3rem 0.4rem; background: var(--input-bg); max-width: 100%; }
.qu-chip-face { display: flex; flex: 0 0 auto; }
.qu-chip-img { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; display: block; }
.qu-chip-pdf { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px;
  background: var(--neutral-bg); color: var(--neutral-text); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; }
.qu-chip-name { font-size: var(--fs-xs); max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.qu-x { background: none; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1;
  min-width: 44px; min-height: 44px; cursor: pointer; flex: 0 0 auto; }
.qu-x:hover { color: var(--danger); }


.qu-card { border: 1px solid var(--border); border-radius: 12px; padding: 0.6rem; margin-bottom: 0.55rem;
  background: var(--input-bg); }
.qu-card-head { display: flex; align-items: flex-end; gap: 0.4rem; }
.qu-card-head .qu-f-wrap { flex: 1 1 auto; min-width: 0; }
.qu-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; margin-top: 0.45rem; }
.qu-card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qu-f-wrap { display: flex; flex-direction: column; gap: 0.15rem; text-align: start; min-width: 0; }
.qu-f-wrap > span { font-size: var(--fs-xs); color: var(--muted); }
.qu-f { width: 100%; min-width: 0; box-sizing: border-box; }
.qu-raw { font-size: var(--fs-xs); color: var(--muted); margin: 0.45rem 0 0; text-align: start; }
.qu-line-block { font-size: var(--fs-xs); color: var(--banner-err-text); margin: 0.45rem 0 0; text-align: start; }


.qu-totals { border: 1px solid var(--border); border-radius: 12px; padding: 0.6rem; }
.qu-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.3rem 0; }
.qu-row + .qu-row { border-top: 1px solid var(--border); }
.qu-row > label, .qu-row > span { font-size: var(--fs-sm); color: var(--muted); }
.qu-row .qu-num { width: 7.5rem; flex: 0 0 auto; text-align: end; }
.qu-row-net > span { color: inherit; font-weight: 600; }
.qu-row-net > strong { font-size: 1.08rem; }

.qu-banner { margin-top: 0.6rem; }

.qu-credits { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: var(--fs-sm); color: var(--text-muted, inherit); }
.qu-credits-form { display: inline-flex; align-items: center; gap: 0.4rem; }
.qu-credits-form .qu-num { width: 7em; }

.qu-credits .btn { min-height: 44px; min-width: 44px; }
.qu-credits .qu-num { min-height: 44px; }
.qu-warn { background: var(--info-bg); color: var(--info-text); }
.qu-block { background: var(--banner-err-bg); color: var(--banner-err-text); }


@media (max-width: 360px) {
  .qu-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.qu-doc-client { margin: 0.35rem 0 0; font-size: var(--fs-xs); color: var(--info-text); background: var(--info-bg);
  padding: 0.3rem 0.5rem; border-radius: 8px; text-align: start; }

.qu-note-warning { color: var(--amber-text); }












@media screen {
  :root {
    

    --font-ui: 'Inter', 'IBM Plex Sans Arabic', 'Noto Sans Symbols 2', 'Noto Sans Symbols', 'Noto Emoji', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Inter', 'IBM Plex Sans Arabic', 'Noto Sans Symbols 2', 'Noto Sans Symbols', 'Noto Emoji', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  }
  body { font-optical-sizing: auto; }
  .topbar-title { font-weight: 800; font-size: var(--fs-xs); letter-spacing: .22em; }
  .home-welcome, .mtg-hello { font-weight: 800; letter-spacing: -0.02em; }
  .home-section-title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
  .needs-n, .owner-tile-n { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
  .needs-n { font-size: 30px; }
  .owner-tile-n { font-size: 24px; }
}


:root {
  --tab-glass: rgba(var(--glass-rgb), 0.78);
  --float-edge: rgba(255, 255, 255, 0.08);
  --lit-edge: rgba(255, 255, 255, 0.06);
  --soft-edge: rgba(255, 255, 255, 0.05);
  --float-drop: 0 14px 34px -12px rgba(0, 0, 0, 0.85);
  --card-drop: 0 14px 32px -20px rgba(0, 0, 0, 0.75);
  --tab-on-bg: rgba(var(--accent-rgb), 0.13);
}



.tabbar { display: none; }
@media (max-width: 768px) {
  body.authed.has-tabbar:not(.kiosk-mode) .tabbar {
    display: flex; position: fixed; z-index: 30;
    inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    height: 64px; border-radius: 32px; padding: 0 6px; gap: 4px;
    align-items: center; justify-content: space-around;
    background: var(--tab-glass); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid var(--float-edge);
    box-shadow: inset 0 1px 0 var(--lit-edge), var(--float-drop);
  }
  body.authed.has-tabbar:not(.kiosk-mode) .hamburger { visibility: hidden; }   
  body.authed.has-tabbar:not(.kiosk-mode) .content { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.authed.has-tabbar:not(.kiosk-mode) .points-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
body .tabbar .nav-link[data-view], body .tabbar .tab-more {
  position: relative; order: 0;   
  flex: 1 1 0; min-width: 0; min-height: 52px; margin: 0; padding: 6px 4px; border: 0; border-radius: 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font: 600 11px/1.1 var(--font-ui); color: var(--muted); background: none; text-decoration: none; cursor: pointer;
}
body .tabbar .tab-more { order: 1; }
.tabbar .tab-label { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabbar .nav-link::before { width: 22px; height: 22px; flex: 0 0 22px; }
.tabbar .nav-link.active::after { content: none; }
body .tabbar .nav-link.active { color: var(--accent); background: var(--tab-on-bg); }
.tabbar .tab-more { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='12' r='1.5'/%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3Ccircle cx='19' cy='12' r='1.5'/%3E%3C/svg%3E"); }
.tabbar .tab-badge {
  position: absolute; top: 4px; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--danger); color: var(--text); font: 700 var(--fs-2xs)/18px var(--font-ui); text-align: center;
  font-variant-numeric: tabular-nums;
}





.btn, .hrb-btn, .home-stopped-line, .upnext-row { border-radius: 999px; }
.mytime-card, .donow-card, .mytime-greeting, .home-strip, .mycl-card, .owner-tile, .fold, .push-banner,
.home-reviews-banner, .mytime-flag, .team-panel { border-radius: 24px; }
.needs-chip { border-radius: 22px; }
.mytime-card, .home-strip, .owner-tile, .fold, .needs-chip {
  border-color: var(--soft-edge);
  box-shadow: inset 0 1px 0 var(--lit-edge), var(--card-drop);
}
.donow-card, .mycl-card, .mytime-greeting { box-shadow: inset 0 1px 0 var(--lit-edge), var(--card-drop); }

.mytime-helping-btn, #home-strip-todo, #home-strip-job, #home-strip-fullpage, #home-holidays-btn, #push-dismiss-btn {
  background: var(--surface-3); border-color: transparent;
}



.mytime-btn, #mytime-toggle, .home-strip-btn { min-height: 60px; font-size: 19px; font-weight: 800; letter-spacing: .01em; box-shadow: var(--glow); }
.mytime-helping-btn, #home-strip-todo, #home-strip-job, #home-strip-fullpage { min-height: 48px; font-weight: 600; }
[dir="rtl"] .mytime-btn, [dir="rtl"] #mytime-toggle, [dir="rtl"] .home-strip-btn { font-size: 22px; }
[dir="rtl"] .mytime-helping-btn, [dir="rtl"] #home-strip-todo, [dir="rtl"] #home-strip-job, [dir="rtl"] #home-strip-fullpage, [dir="rtl"] .dn-pause { font-size: var(--fs-md); }
.btn:active, .needs-chip:active, .fold-head:active, .owner-tile-head:active, .tabbar .nav-link:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .btn:active, .needs-chip:active, .fold-head:active, .owner-tile-head:active, .tabbar .nav-link:active { transform: none; }
}






@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
.view:not([hidden]) { animation: viewIn 280ms cubic-bezier(0.05, 0.7, 0.1, 1) backwards; }

@media (max-width: 768px) {
  body.authed.has-tabbar:not(.kiosk-mode) .tabbar { transition: transform 220ms cubic-bezier(0.2, 0, 0, 1), opacity 220ms ease; }
  body.authed.has-tabbar.bar-tucked:not(.kiosk-mode) .tabbar { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
}



.team-faces { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; gap: 14px; padding: 8px 4px 10px; }
.team-faces::-webkit-scrollbar { display: none; }
.team-face { flex: 0 0 auto; width: 64px; scroll-snap-align: start; }
.team-face .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--border-strong); }
.team-on .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent), 0 0 14px rgba(var(--accent-rgb), 0.35); }
.team-idle .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--warn-text); }
.team-on::after { top: 0; }



.dn-now { display: inline-flex; align-items: baseline; gap: 5px; margin-inline-start: auto; margin-inline-end: 10px; color: var(--accent); font-variant-numeric: tabular-nums; }
.dn-now b { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.dn-now small { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.dn-now-paused { color: var(--warn-text); }
.dn-pulse { width: 9px; height: 9px; border-radius: 50%; background: currentColor; align-self: center; }
@keyframes dnPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.dn-now:not(.dn-now-paused) .dn-pulse { animation: dnPulse 1.8s ease-in-out infinite; }



.dn-ring { align-items: center; gap: 8px; }
.dn-ring b {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-size: 19px;
  background: radial-gradient(closest-side, var(--surface) 80%, transparent 81% 100%), conic-gradient(var(--accent) calc(var(--dn-p) * 360deg), var(--border) 0);
}
.dn-ring small { display: none; }
.dn-ring-over b { background: radial-gradient(closest-side, var(--surface) 80%, transparent 81% 100%), conic-gradient(var(--gold) 360deg, var(--gold) 0); }
.dn-now-paused.dn-ring b { opacity: 0.85; }
.dn-left { font-style: normal; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); white-space: nowrap; }
.dn-ring-over .dn-left { color: var(--gold); }

.tday { margin-block-start: 12px; padding-block-start: 10px; border-block-start: 1px solid var(--border); }
.tday-title { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); margin-block-end: 6px; }
.tday-row { display: flex; align-items: baseline; gap: 8px; padding-block: 3px; font-size: var(--fs-sm); }
.tday-tick { color: var(--accent); font-weight: 800; }
.tday-hm { color: var(--muted); font-variant-numeric: tabular-nums; }
.tday-what { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tday-more { font-size: var(--fs-xs); padding-block: 2px; }
.dn-now-paused .dn-pulse { border-radius: 2px; }
.donow-card:has(.dn-now:not(.dn-now-paused)) .dn-live { display: none; }
.donow-card .dn-pause, .donow-card .dn-finish, .donow-card .dn-btn { min-height: 56px; font-size: 17px; font-weight: 800; }



.owner-tile-spark { display: none; }
@media (max-width: 768px) {
  #home-owner .owner-grid { grid-template-columns: 1fr 1fr; }
  #home-owner .owner-tile.is-open { grid-column: 1 / -1; }
  #home-owner .owner-tile:not(.is-open) .owner-tile-head {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "icon chev" "n n" "name name" "spark spark";
    align-items: center; row-gap: 6px; min-height: 128px; padding: 14px 14px 12px;
  }
  #home-owner .owner-tile:not(.is-open) .owner-tile-icon { grid-area: icon; width: 22px; height: 22px; flex: none; }
  #home-owner .owner-tile:not(.is-open) .owner-tile-chev { grid-area: chev; }
  #home-owner .owner-tile:not(.is-open) .owner-tile-n { grid-area: n; font-size: 32px; line-height: 1; }
  #home-owner .owner-tile:not(.is-open) .owner-tile-name { grid-area: name; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); line-height: 1.25; }
  #home-owner .owner-tile:not(.is-open) .owner-tile-spark { grid-area: spark; display: block; height: 22px; }
}
.owner-tile-spark svg { display: block; width: 100%; height: 22px; }
.owner-tile-spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }



@media screen { :where(button, input, select, textarea) { font-family: inherit; } }


.owner-tile-body > .owner-empty { text-align: center; padding: 14px 10px; border: 1px dashed var(--float-edge); border-radius: 14px; }



#order-modal-overlay .of-topbar { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .view:not([hidden]) { animation: none; }
  .dn-now .dn-pulse { animation: none; }
  body.authed.has-tabbar:not(.kiosk-mode) .tabbar { transition: none; }
}



@media (max-width: 768px) {
  
  .home-greet .avatar-lg, .mytime-greeting .avatar-lg { width: 48px; height: 48px; font-size: 18px; }
  .home-welcome { font-size: 22px; }
  .home-greet .mtg-quote, .mytime-greeting .mtg-quote { font-size: var(--fs-xs); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .home-header { margin-bottom: 10px; }

  



  #view-my-time > .view-header { display: none; }
  .mytime-wrap:has(#mytime-toggle.checkout) #mytime-board:has(.donow-card) { order: -1; margin-top: 0; }
  .mytime-wrap:has(#mytime-toggle.checkout) .mytime-card { padding: 14px 16px; }
  .mytime-wrap:has(#mytime-toggle.checkout) .mytime-timer { font-size: 30px; }
  .mytime-wrap:has(#mytime-toggle.checkout) #mytime-toggle { min-height: 48px; font-size: var(--fs-lg); box-shadow: none; }

  

  #home-team-now .owner-grid > .owner-tile:first-child { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
  #home-team-now .owner-grid > .owner-tile:first-child > .owner-tile-title { grid-column: 1 / -1; margin: 0; }
  #home-team-now .owner-grid > .owner-tile:first-child > .owner-empty { grid-column: 1 / -1; }
  #home-team-now .owner-grid > .owner-tile:first-child > .owner-row {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; padding: 12px;
    border: 1px solid var(--soft-edge); border-radius: 18px; background: var(--surface-2);
    box-shadow: inset 0 1px 0 var(--lit-edge);
  }
  #home-team-now .owner-grid > .owner-tile:first-child > .owner-row .avatar { width: 40px; height: 40px; font-size: var(--fs-md); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
  #home-team-now .owner-grid > .owner-tile:first-child > .owner-row > span:last-child { font-size: var(--fs-xs); color: var(--label); text-align: start; max-width: none; width: 100%; flex-shrink: 1; }
  
  #home-team-now .owner-grid > .owner-tile:not(:first-child) { padding: 12px 14px; }
  
  #home-team-now .owner-grid > .owner-tile:first-child > .owner-row > span:first-child {
    display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: center; width: 100%;
  }
  #home-team-now .owner-grid > .owner-tile:first-child > .owner-row > span:first-child > .avatar { grid-row: 1 / span 2; margin: 0; }
  #home-team-now .owner-grid > .owner-tile:first-child > .owner-row > span:first-child > b { font-size: var(--fs-sm); line-height: 1.2; overflow-wrap: anywhere; }
  #home-team-now .owner-grid > .owner-tile:first-child > .owner-row > span:first-child > .muted { font-size: var(--fs-2xs); }

  

  .owner-head .home-section-title { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
  .owner-asof { flex: 0 0 auto; white-space: nowrap; }
  .owner-asof .btn { min-height: 40px; padding: 4px 12px; font-size: var(--fs-xs); white-space: nowrap; }

  
  .modal-overlay.open .modal { animation: sheetUp 300ms cubic-bezier(0.05, 0.7, 0.1, 1) both; }
}
@keyframes sheetUp { from { opacity: 0; transform: translateY(28px); } }
@media (prefers-reduced-motion: reduce) { .modal-overlay.open .modal { animation: none; } }






:root {
  --badge-ink: rgb(255, 255, 255);   
}
.notif-bell-top { display: none; }
@media (max-width: 768px) {
  .topbar .notif-bell-top {
    flex: 0 0 auto; position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-inline-start: auto; padding: 0;
    border: 0; border-radius: 999px; cursor: pointer;
    background: var(--surface-3); color: var(--text); box-shadow: inset 0 1px 0 var(--lit-edge);
  }
  .topbar .notif-bell-top:active { transform: scale(0.94); }
  
  .topbar .notif-bell-top:not([hidden]) ~ .hc-btn,
  .topbar .notif-bell-top:not([hidden]) ~ .update-pill { margin-inline-start: 0; }
  

  body.authed.has-tabbar:not(.kiosk-mode) .topbar:has(.notif-bell-top:not([hidden])) .hamburger { display: none; }
  .topbar .topbar-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  
  .sidebar-footer .notif-bell { display: none; }
}
.notif-badge-top {
  position: absolute; top: 1px; inset-inline-end: -2px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: var(--badge-ink);
  font-size: var(--fs-2xs); font-weight: 800; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px rgba(var(--chrome-rgb), 1);   
  pointer-events: none;
}

.notif-badge-top.is-pop { animation: badgePop 420ms cubic-bezier(0.2, 0.9, 0.3, 1.3); }
@keyframes badgePop { 0% { transform: scale(0.5); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .notif-badge-top.is-pop { animation: none; } .topbar .notif-bell-top:active { transform: none; } }



.notif-item.unread:not(.is-new) { background: var(--sidebar-bg); border-color: var(--border); }
.notif-item.is-new { background: var(--accent-soft); border-color: var(--accent); }
.notif-item.is-new .notif-item-title { font-weight: 700; color: var(--text); }
.notif-item { text-align: start; }   







.notif-cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 10px 0 12px; }
.notif-cat {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 6px 4px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface-3); color: var(--text);
  font-size: var(--fs-2xs); font-weight: 700; line-height: 1.15; cursor: pointer; overflow-wrap: anywhere;
}
.notif-cat.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.notif-cat-n {
  position: absolute; top: -8px; inset-inline-end: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: var(--badge-ink);
  font-size: var(--fs-2xs); font-weight: 800; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px rgba(var(--glass-rgb), 1);
}
@media (max-width: 768px) {
  #notif-panel-overlay { padding: 12px; }
  
  #notif-panel-overlay { padding-block-start: max(12px, calc(env(safe-area-inset-top) + 8px)); }
  #notif-panel-overlay .notif-panel { padding: 18px 14px; }
}


#notif-read-all[aria-busy="true"] { opacity: 0.6; cursor: progress; }




#notif-panel-overlay .notif-panel { margin-block: 0 auto; }



#notif-read-all { white-space: nowrap; }
@media (max-width: 768px) {
  #notif-prefs-btn { min-width: 44px; }
  #notif-prefs-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}










@media (max-width: 768px) {
  .modal-overlay { padding-inline: 8px; }
  .modal { padding-inline: 16px; }
  .modal .form-section { padding-inline: 12px; }
}
.modal .field input, .modal .field select, .modal .field textarea { min-width: 0; max-width: 100%; }



select { max-width: 100%; }
.att-controls { min-width: 0; max-width: 100%; }
@media (hover: none) and (pointer: coarse) {
  input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; }
  input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: start; }
  
  input[type="datetime-local"]::-webkit-date-and-time-value, input[type="month"]::-webkit-date-and-time-value { text-align: start; }
}







.search-btn-top { display: none; }
@media (max-width: 768px) {
  .topbar .search-btn-top {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-inline-start: auto; padding: 0;
    border: 0; border-radius: 999px; cursor: pointer;
    background: var(--surface-3); color: var(--text); box-shadow: inset 0 1px 0 var(--lit-edge);
  }
  .topbar .search-btn-top:not([hidden]) ~ .notif-bell-top { margin-inline-start: 0; }
  .topbar .search-btn-top:active { transform: scale(0.94); }
  .sidebar .search-side { display: none; }   
}
.search-side {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 0 0 12px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-3); color: var(--muted);
  font: inherit; font-size: var(--fs-sm); cursor: pointer; text-align: start;
}
.search-side:hover { color: var(--text); border-color: var(--border-strong); }
.search-side .search-kbd { margin-inline-start: auto; font-size: var(--fs-xs); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); }

#search-overlay .search-panel { max-width: 640px; margin-block: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.search-head { display: flex; align-items: center; gap: 8px; }
.search-field { position: relative; flex: 1 1 auto; min-width: 0; }
.search-field svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
#search-input {
  width: 100%; min-height: 50px; padding-block: 0; padding-inline: 44px 14px; box-sizing: border-box;
  border: 1px solid var(--border-strong); border-radius: 14px; background: var(--input-bg); color: var(--text);
  font: inherit; font-size: 17px;
}
#search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-results { overflow-y: auto; max-height: calc(100dvh - 140px); display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; }
.search-group-head { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 4px 6px; }
.search-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px;
  border: 1px solid transparent; border-radius: 14px; background: var(--surface-2); color: var(--text);
  font: inherit; text-align: start; cursor: pointer;
}
.search-row + .search-row { margin-top: 6px; }
.search-row:hover, .search-row.is-active { border-color: var(--accent); background: var(--accent-soft); }
.search-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); font-size: var(--fs-lg); }
.search-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.search-title { font-weight: 650; font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-sub { font-size: var(--fs-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-row mark { background: transparent; color: var(--accent); font-weight: 800; }
.search-more { font-size: var(--fs-xs); color: var(--muted); margin: 6px 4px 0; }
.search-empty { color: var(--muted); font-size: var(--fs-sm); padding: 18px 6px; text-align: center; }
@media (max-width: 768px) { #search-overlay .search-panel { padding: 12px; } }




.print-choose-opts .print-choose-btn[aria-busy="true"] { opacity: 0.65; cursor: progress; }
.print-choose-opts .print-choose-btn[aria-disabled="true"]:not([aria-busy="true"]) { opacity: 0.65; cursor: not-allowed; white-space: normal; }






.pdf-stage-host { position: fixed; top: 0; left: 0; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.pdf-stage { position: absolute; top: 0; left: 0; width: 182mm; }
.pdf-stage.receipt-print { width: 80mm; }
.print-pdf-note { margin: 0 0 12px; font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }






:root {
  
  --font-chat: 'Inter', 'IBM Plex Sans Arabic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --chat-mine-bg: rgba(var(--accent-rgb), 0.16);
  --chat-mine-edge: rgba(var(--accent-rgb), 0.28);
  --chat-flash: rgba(var(--accent-rgb), 0.35);
  --chat-quote-bg: rgba(var(--scrim-rgb), 0.28);
  
  --chat-tick: var(--muted);
  --chat-tick-read: var(--info-text);   
  --chat-unread-bg: rgba(var(--accent-rgb), 0.10);
  
  --chat-up-scrim: rgba(var(--scrim-rgb), 0.45);
  --chat-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E");
}
.nav-link[data-view="chat"] { --icon: var(--chat-ico); }


#view-chat, #view-chat:not([hidden]) { animation: none; }

.chat-pane {
  position: relative; display: flex; flex-direction: column;
  height: calc(100dvh - 80px); max-width: 860px; margin: 0 auto; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--soft-edge); border-radius: 24px;
  font-family: var(--font-chat);
}

.chat-threads { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.chat-thread {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--soft-edge);
  background: none; color: var(--text); text-align: start; font: inherit; cursor: pointer;
}
.chat-thread:hover, .chat-thread:focus-visible { background: var(--surface-3); }
.chat-thread .chat-head-ico, .chat-thread .avatar { flex: 0 0 48px; width: 48px; height: 48px; font-size: var(--fs-lg); }
.chat-thread-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chat-thread-top, .chat-thread-bottom { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chat-thread-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 var(--fs-lg) var(--font-ui); }
.chat-thread-time { flex: 0 0 auto; font: var(--fs-xs) var(--font-ui); color: var(--muted); }
.chat-thread.has-unread .chat-thread-time { color: var(--accent); }
.chat-thread-last { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); color: var(--muted); }
.chat-thread-muted { flex: 0 0 auto; font-size: var(--fs-xs); }
.chat-thread-n { flex: 0 0 auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 var(--fs-2xs)/22px var(--font-ui); text-align: center; }
.chat-new { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 var(--fs-sm) var(--font-ui); cursor: pointer; }
.chat-back { flex: 0 0 40px; width: 40px; height: 44px; display: grid; place-items: center; margin-inline-start: -8px; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; }
[dir="rtl"] .chat-back svg { transform: scaleX(-1); }
.chat-head-face .avatar { width: 40px; height: 40px; }

.chat-people-q { width: 100%; margin: 4px 0 10px; }
.chat-people-list { max-height: 60dvh; overflow-y: auto; }
.chat-person { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 8px; border: 0; border-radius: 14px; background: none; color: var(--text); text-align: start; font: inherit; cursor: pointer; }
.chat-person:hover, .chat-person:focus-visible { background: var(--surface-3); }
.chat-person-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 var(--fs-md) var(--font-ui); }
.chat-person-has { flex: 0 0 auto; font: var(--fs-2xs) var(--font-ui); color: var(--accent); }
.chat-head { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface-3); border-bottom: 1px solid var(--border); }
.chat-head-ico { position: relative; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--tab-on-bg); }
.chat-head-ico::before {
  content: ''; position: absolute; inset: 10px; background-color: var(--accent);
  -webkit-mask: var(--chat-ico) no-repeat center / contain; mask: var(--chat-ico) no-repeat center / contain;
}
.chat-head-text { flex: 1 1 auto; min-width: 0; }

.chat-mute { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.chat-mute:hover, .chat-mute:focus-visible { background: var(--surface-2); color: var(--text); }
.chat-mute .chat-mute-off, .chat-mute.is-muted .chat-mute-on { display: none; }
.chat-mute.is-muted .chat-mute-off { display: block; }
.chat-mute.is-muted { color: var(--danger-text); }
.chat-title { margin: 0; font: 700 17px/1.2 var(--font-ui); color: var(--text); }
.chat-sub { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--muted); }

.chat-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; padding: 10px 12px 12px; }
.chat-list { display: flex; flex-direction: column; }
.chat-older { align-self: center; margin: 2px 0 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-3); color: var(--muted); font: 600 var(--fs-xs) var(--font-ui); cursor: pointer; }
.chat-empty { margin: auto; padding: 24px; text-align: center; color: var(--muted); }
.chat-error { margin: 8px auto 0; padding: 8px 14px; border-radius: 14px; background: var(--danger-bg); color: var(--danger-text); font-size: var(--fs-xs); text-align: center; }
.chat-day { align-self: center; margin: 14px 0 4px; }
.chat-day span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font: 600 var(--fs-xs) var(--font-ui); }

.chat-msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.chat-msg.is-run { margin-top: 3px; }
.chat-msg.is-mine { justify-content: flex-end; }
.chat-face, .chat-face-gap { flex: 0 0 30px; width: 30px; height: 30px; }
.chat-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: min(80%, 560px); }
.chat-msg.is-mine .chat-col { align-items: flex-end; }
.chat-name { margin: 0 12px 2px; font: 600 var(--fs-2xs) var(--font-ui); color: var(--accent); }
.chat-bubble {
  display: flex; flex-direction: column; gap: 2px; max-width: 100%; padding: 7px 12px 6px;
  border: 1px solid transparent; border-radius: 18px; background: var(--surface-3); color: var(--text);
  cursor: pointer; -webkit-user-select: text; user-select: text; -webkit-tap-highlight-color: transparent;
}
.chat-msg.is-theirs:not(.is-run) .chat-bubble { border-start-start-radius: 6px; }
.chat-msg.is-mine .chat-bubble { background: var(--chat-mine-bg); border-color: var(--chat-mine-edge); }
.chat-msg.is-mine:not(.is-run) .chat-bubble { border-start-end-radius: 6px; }
.chat-bubble:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat-msg.is-flash .chat-bubble { box-shadow: 0 0 0 3px var(--chat-flash); }
.chat-text { font-size: var(--fs-md); line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; }
[dir="rtl"] .chat-text { font-size: var(--fs-lg); }
.chat-text.is-jumbo { font-size: 40px; line-height: 1.15; }
.chat-time { align-self: flex-end; font: var(--fs-xs) var(--font-ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.chat-link { color: var(--accent); text-decoration: underline; overflow-wrap: anywhere; }
.chat-quote {
  display: flex; flex-direction: column; gap: 1px; margin-bottom: 3px; padding: 5px 9px; min-width: 0;
  border-inline-start: 3px solid var(--accent); border-radius: 8px; background: var(--chat-quote-bg); font-size: var(--fs-xs); cursor: pointer;
}
.chat-quote strong { font: 600 var(--fs-2xs) var(--font-ui); color: var(--accent); }
.chat-quote-text { color: var(--muted); white-space: pre-wrap; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; unicode-bidi: plaintext; }

.chat-msg.is-deleted .chat-bubble { background: transparent; border: 1px dashed var(--border); }
.chat-deleted-line { font-style: italic; color: var(--muted); }
.chat-deleted-text { opacity: 0.8; }
.chat-deleted-by { font: italic var(--fs-xs) var(--font-ui); color: var(--muted); }
.chat-msg.is-pending .chat-bubble { opacity: 0.72; }
.chat-msg.is-failed .chat-bubble { opacity: 1; border-color: var(--danger); }
.chat-msg.is-failed .chat-time { color: var(--danger-text); }
.chat-reacts { position: relative; display: flex; flex-wrap: wrap; gap: 4px; margin-top: -4px; padding: 0 8px; }
.chat-react-chip {
  display: inline-flex; align-items: center; gap: 3px; min-height: 28px; padding: 2px 8px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--text);
  font: var(--fs-sm)/1 var(--font-chat); cursor: pointer;
}
.chat-react-chip.is-mine { border-color: var(--accent); background: var(--tab-on-bg); }
.chat-react-n { font: 600 var(--fs-xs) var(--font-ui); color: var(--muted); }


.chat-jump {
  position: absolute; z-index: 2; inset-inline-end: 14px; bottom: 76px; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface-3); color: var(--muted);
  box-shadow: var(--float-drop); cursor: pointer;
}
.chat-jump[hidden] { display: none; }
.chat-jump-n {
  position: absolute; top: -6px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 var(--fs-2xs)/20px var(--font-ui); text-align: center;
}



.chat-time { display: inline-flex; align-items: center; gap: 3px; }
.chat-ticks { display: inline-flex; flex: 0 0 auto; color: var(--chat-tick); }
.chat-ticks.is-read { color: var(--chat-tick-read); }
.chat-ticks svg { display: block; }

.chat-unread-line { align-self: stretch; margin: 14px -12px 2px; padding: 5px 0; background: var(--chat-unread-bg); text-align: center; }
.chat-unread-line span { font: 600 var(--fs-2xs) var(--font-ui); color: var(--accent); }

.chat-thread-pin { flex: 0 0 auto; font-size: var(--fs-xs); }
.chat-thread-n.is-dot { min-width: 14px; width: 14px; height: 14px; padding: 0; }
.chat-archived-row { min-height: 56px; }
.chat-archived-ico { flex: 0 0 48px; width: 48px; height: 32px; display: grid; place-items: center; color: var(--accent); }
.chat-archived-row .chat-thread-name { font-weight: 600; }

.chat-sheet-title { margin: 0 0 6px; padding: 4px 14px; font: 700 var(--fs-lg) var(--font-ui); color: var(--text); overflow-wrap: anywhere; }
.chat-sheet-title:empty { display: none; }

.chat-msg { touch-action: pan-y; transition: transform .18s ease; }
.chat-msg.is-swiping { transition: none; }
.chat-msg.is-armed .chat-bubble { box-shadow: 0 0 0 2px var(--chat-flash); }

@media (pointer: coarse) {
  .chat-bubble, .chat-thread { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
}

.chat-info { padding: 14px; }
.chat-info-sec h3 { display: flex; align-items: center; gap: 6px; margin: 12px 0 6px; font: 600 var(--fs-sm) var(--font-ui); color: var(--text); }
.chat-info-person { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.chat-info-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 var(--fs-md) var(--font-ui); }
.chat-info-at { flex: 0 0 auto; font: var(--fs-xs) var(--font-ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.chat-info-none, .chat-info-waiting { margin: 4px 0; font-size: var(--fs-xs); color: var(--muted); }



.chat-forwarded { display: block; margin-bottom: 2px; font: italic var(--fs-xs) var(--font-ui); color: var(--muted); }
.chat-forwarded::before { content: '↪ '; }
[dir="rtl"] .chat-forwarded::before { content: '↩ '; }
.chat-star { margin-inline-end: 3px; font-size: var(--fs-xs); color: var(--muted); }
.chat-sub.is-typing, .chat-thread-last.is-typing { color: var(--accent); font-style: italic; }

.chat-voice { display: flex; align-items: center; gap: 8px; min-width: 210px; max-width: 290px; padding: 2px 0; }
.chat-voice-play {
  flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); cursor: pointer;
}
.chat-voice .chat-voice-ico-pause, .chat-voice.is-playing .chat-voice-ico-play { display: none; }
.chat-voice.is-playing .chat-voice-ico-pause { display: inline; }
.chat-voice-bar { position: relative; flex: 1 1 auto; height: 6px; border-radius: 999px; background: var(--border-strong); overflow: hidden; cursor: pointer; }
.chat-voice-fill { display: block; height: 100%; width: 0; background: var(--accent); }
.chat-voice-time { flex: 0 0 auto; min-width: 34px; font: var(--fs-xs) var(--font-ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.chat-voice-speed { flex: 0 0 auto; min-width: 36px; min-height: 28px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); font: 600 var(--fs-2xs) var(--font-ui); cursor: pointer; }
.chat-voice.is-pending .chat-voice-play { background: none; color: inherit; font-size: 18px; }

.chat-composer { position: relative; }
.chat-mic { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.chat-composer.is-recording .chat-mic { transform: scale(1.25); background: var(--danger); }
.chat-rec {
  flex: 1 1 auto; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 22px; background: var(--surface-3);
}
.chat-rec-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: chat-rec-blink 1s infinite; }
@keyframes chat-rec-blink { 50% { opacity: 0.25; } }
.chat-rec-time { flex: 0 0 auto; font: 600 var(--fs-sm) var(--font-ui); color: var(--text); font-variant-numeric: tabular-nums; }
.chat-rec-hint { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--muted); text-align: end; }
.chat-rec-del { color: var(--danger-text); }
.chat-rec-lock {
  position: absolute; inset-inline-end: 14px; bottom: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-3); color: var(--muted); box-shadow: var(--float-drop);
}
@media (prefers-reduced-motion: reduce) { .chat-rec-dot { animation: none; } }

.chat-found { max-height: 60dvh; overflow-y: auto; }
.chat-found-row {
  display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--soft-edge);
  background: none; color: var(--text); text-align: start; font: inherit; cursor: pointer;
}
.chat-found-row:hover, .chat-found-row:focus-visible { background: var(--surface-3); }
.chat-found-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.chat-found-top strong { font: 600 var(--fs-sm) var(--font-ui); }
.chat-found-chat { font-size: var(--fs-2xs); color: var(--accent); }
.chat-found-when { margin-inline-start: auto; font: var(--fs-xs) var(--font-ui); color: var(--muted); }
.chat-found-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); color: var(--muted); }

.chat-forward-note { margin: 0 0 8px; font-size: var(--fs-xs); color: var(--muted); }
.chat-forward-list { max-height: 50dvh; overflow-y: auto; }
.chat-forward-row.is-on { background: var(--tab-on-bg); }
.chat-forward-row:disabled { opacity: 0.45; cursor: default; }
.chat-forward-tick { margin-inline-start: auto; font-weight: 700; color: var(--accent); }
.chat-forward-send { width: 100%; margin-top: 12px; }
.chat-forward-send:disabled { opacity: 0.5; cursor: default; }

.chat-media { max-width: 720px; }
.chat-media-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.chat-media-tab { flex: 1 1 0; min-height: 40px; border: 1px solid var(--border); border-radius: 999px; background: none; color: var(--muted); font: 600 var(--fs-sm) var(--font-ui); cursor: pointer; }
.chat-media-tab.is-on { border-color: var(--accent); background: var(--tab-on-bg); color: var(--text); }
.chat-media-body { max-height: 60dvh; overflow-y: auto; }
.chat-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; }
.chat-media-img { display: block; aspect-ratio: 1; cursor: zoom-in; }
.chat-media-img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.chat-media-link { display: block; padding: 8px 4px; border-bottom: 1px solid var(--soft-edge); overflow-wrap: anywhere; }
.chat-replying { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; background: var(--surface-3); border-top: 1px solid var(--border); }
.chat-replying-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding-inline-start: 8px; border-inline-start: 3px solid var(--accent); font-size: var(--fs-xs); }
.chat-replying-text strong { font: 600 var(--fs-2xs) var(--font-ui); color: var(--accent); }
#chat-replying-body { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.chat-replying-x { flex: 0 0 44px; min-height: 44px; border: 0; background: none; color: var(--muted); font-size: 24px; cursor: pointer; }
.chat-composer { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px; background: var(--surface-2); border-top: 1px solid var(--border); }

.chat-tool { flex: 0 0 40px; width: 40px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.chat-tool:hover, .chat-tool:focus-visible { color: var(--text); background: var(--surface-3); }
.chat-staged { flex: 0 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 8px 10px 0; background: var(--surface-2); border-top: 1px solid var(--border); }
.chat-staged-item { position: relative; flex: 0 0 auto; }
.chat-staged-item img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.chat-staged-file { display: flex; align-items: center; gap: 6px; max-width: 180px; height: 64px; padding: 0 12px; border-radius: 12px; background: var(--surface-3); font-size: var(--fs-xs); }
.chat-staged-file span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-staged-x { position: absolute; top: -6px; inset-inline-end: -6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; box-shadow: var(--float-drop); }
.chat-img { display: block; margin: 2px 0 4px; cursor: zoom-in; }
.chat-img img { display: block; max-width: min(260px, 100%); max-height: 320px; border-radius: 12px; object-fit: cover; }


.chat-img img.is-wait { width: 200px; height: 200px; background: var(--surface-2); }
.chat-img.is-sending { position: relative; width: fit-content; cursor: default; }
.chat-img-wait { display: block; width: 200px; height: 200px; border-radius: 12px; background: var(--surface-2); }
.chat-staged-wait { display: block; width: 64px; height: 64px; border-radius: 12px; background: var(--surface-3); }
.chat-staged-wait, .chat-img-wait { animation: chatWaitPulse 1.1s ease-in-out infinite alternate; }
@keyframes chatWaitPulse { from { opacity: 0.5; } to { opacity: 1; } }
.chat-up { flex: 0 0 auto; width: 24px; height: 24px; color: var(--accent); transform: rotate(-90deg); }
.chat-img .chat-up { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; padding: 4px; border-radius: 50%; background: var(--chat-up-scrim); }
.chat-up-track, .chat-up-bar { fill: none; stroke-width: 4; }
.chat-up-track { stroke: var(--border); }
.chat-up-bar { stroke: currentColor; stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset 0.2s linear; }
@media (prefers-reduced-motion: reduce) { .chat-up-bar { transition: none; } .chat-staged-wait, .chat-img-wait { animation: none; } }


.chat-group-face {
  position: relative; flex: 0 0 40px; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--tab-on-bg); font: 22px/1 var(--font-chat);
}
.chat-group-face.avatar-sm { flex-basis: 30px; width: 30px; height: 30px; font-size: 17px; }
.chat-thread .chat-group-face, .chat-head .chat-group-face { flex-basis: 40px; width: 40px; height: 40px; font-size: 22px; }
.chat-group-ico {
  position: absolute; inset: 24%; background-color: var(--accent);
  -webkit-mask: var(--chat-ico) no-repeat center / contain; mask: var(--chat-ico) no-repeat center / contain;
}
.chat-ginfo-face.chat-group-face { flex-basis: 64px; width: 64px; height: 64px; font-size: 34px; }
.chat-head-text.is-group { cursor: pointer; border-radius: 10px; }
.chat-head-text.is-group:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat-event {
  align-self: center; max-width: 86%; margin: 10px 0 2px; padding: 4px 12px; border-radius: 12px;
  background: var(--surface-3); color: var(--muted); font: 600 var(--fs-xs)/1.4 var(--font-ui); text-align: center; overflow-wrap: anywhere;
}
.chat-left-note {
  flex: 0 0 auto; margin: 0; padding: 14px 16px; background: var(--surface-2); border-top: 1px solid var(--border);
  color: var(--muted); font-size: var(--fs-sm); text-align: center;
}
.chat-new-group .chat-person-name { color: var(--accent); }
.chat-group-label { display: block; margin: 0 0 6px; font: 600 var(--fs-xs) var(--font-ui); color: var(--muted); }
.chat-group-name { width: 100%; }
.chat-group-faces { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.chat-face-pick {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-2); font: 22px/1 var(--font-chat); cursor: pointer;
}
.chat-face-pick.is-on { border-color: var(--accent); background: var(--chat-unread-bg); box-shadow: inset 0 0 0 2px var(--accent); }
.chat-group-fill { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.chat-fill { min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-3); color: var(--text); font: 600 var(--fs-xs) var(--font-ui); cursor: pointer; }
.chat-pick { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 8px; border-radius: 12px; cursor: pointer; }
.chat-pick input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.chat-pick-role { flex: 0 0 auto; font: var(--fs-xs) var(--font-ui); color: var(--muted); }
.chat-group-count { margin-inline-end: auto; align-self: center; color: var(--muted); font: 600 var(--fs-xs) var(--font-ui); }
.chat-ginfo-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.chat-ginfo-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-ginfo-name strong { font: 700 18px/1.25 var(--font-ui); overflow-wrap: anywhere; }
.chat-ginfo-name span { font-size: var(--fs-xs); color: var(--muted); }
.chat-ginfo-edit { display: flex; flex-direction: column; gap: 6px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 14px; }
.chat-ginfo-save { align-self: flex-end; }
.chat-ginfo-add {
  width: 100%; min-height: 44px; margin-bottom: 8px; border: 1px dashed var(--border); border-radius: 12px; background: none;
  color: var(--accent); font: 600 var(--fs-sm) var(--font-ui); cursor: pointer;
}
.chat-ginfo-member { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px; }
.chat-ginfo-member.is-disabled { opacity: 0.55; }
.chat-tag { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font: 600 var(--fs-xs) var(--font-ui); }
.chat-tag.is-off { color: var(--danger-text); }
.chat-ginfo-remove { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--danger-text); font: 600 var(--fs-xs) var(--font-ui); cursor: pointer; }
.chat-ginfo .modal-actions { flex-wrap: wrap; }
.chat-file {
  display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; padding: 8px 10px; max-width: 280px;
  border-radius: 12px; background: var(--chat-quote-bg); color: var(--text); text-decoration: none;
}
.chat-file-ico { font-size: 22px; }
.chat-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }
.chat-file-size { flex: 0 0 auto; font: var(--fs-xs) var(--font-ui); color: var(--muted); }
.chat-input {
  flex: 1 1 auto; min-width: 0; min-height: 44px; max-height: 140px; padding: 11px 16px; resize: none;
  border: 1px solid var(--border); border-radius: 22px; background: var(--surface-3); color: var(--text);
  font: var(--fs-md)/1.35 var(--font-chat);
}
.chat-input:focus { outline: none; border-color: var(--accent); }
.chat-send { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.chat-send:active { transform: scale(.94); }
[dir="rtl"] .chat-send svg { transform: scaleX(-1); }
.chat-toast {
  position: absolute; z-index: 3; left: 50%; bottom: 80px; transform: translateX(-50%); padding: 8px 14px;
  border-radius: 999px; background: var(--surface-3); color: var(--text); font: 600 var(--fs-xs) var(--font-ui); box-shadow: var(--float-drop);
}


.chat-actions { padding: 14px; }
.chat-react-row { display: flex; gap: 4px; margin-bottom: 10px; padding: 6px; border-radius: 999px; background: var(--surface-3); }
.chat-react-pick { flex: 1 1 0; min-width: 0; min-height: 48px; border: 0; border-radius: 999px; background: none; font: 26px/1 var(--font-chat); cursor: pointer; }
.chat-react-pick.is-on { background: var(--tab-on-bg); box-shadow: inset 0 0 0 2px var(--accent); }
.chat-action-list { display: flex; flex-direction: column; }
.chat-action { min-height: 52px; padding: 0 14px; border: 0; border-radius: 14px; background: none; color: var(--text); font: 600 var(--fs-lg) var(--font-ui); text-align: start; cursor: pointer; }
.chat-action:hover, .chat-action:focus-visible { background: var(--surface-3); }
.chat-action-danger { color: var(--danger-text); }


@media (max-width: 768px) {
  body.authed #view-chat .chat-pane {
    position: fixed; z-index: 5; inset-inline: 0; top: var(--topbar-h); bottom: 0;
    height: auto; max-width: none; margin: 0; border: 0; border-radius: 0; background: var(--bg);
  }
  body.authed.has-tabbar:not(.kiosk-mode) #view-chat .chat-pane { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .chat-head { padding: 8px 12px; }
  .chat-head-ico { flex-basis: 36px; width: 36px; height: 36px; }
  
  body.authed.has-tabbar.chat-typing:not(.kiosk-mode) .tabbar { display: none; }
  body.authed.chat-typing #view-chat .chat-screen,
  body.authed.has-tabbar.chat-typing:not(.kiosk-mode) #view-chat .chat-screen {
    z-index: 31; top: var(--chat-vv-top, 0px); bottom: auto; height: var(--chat-vv-h, 100dvh);
  }
}






.ask-chat-face { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--accent-rgb), 0.14); color: var(--accent); font-size: 24px; }
.chat-head .ask-chat-face { flex-basis: 40px; width: 40px; height: 40px; font-size: 21px; }
.ask-chat-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.ask-chat-row { display: flex; min-width: 0; }
.ask-chat-row.is-me { justify-content: flex-end; }
.ask-chat-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: min(85%, 560px); padding: 8px 12px; border: 1px solid transparent; border-radius: 18px; background: var(--surface-3); color: var(--text); overflow-wrap: anywhere; }
.ask-chat-row.is-them .ask-chat-b { border-start-start-radius: 6px; }
.ask-chat-row.is-me .ask-chat-b { background: var(--chat-mine-bg); border-color: var(--chat-mine-edge); border-start-end-radius: 6px; }
.ask-chat-b.is-answer { max-width: min(96%, 720px); }
.ask-chat-text { margin: 0; font-size: var(--fs-md); line-height: 1.45; white-space: pre-wrap; }
.ask-chat-understood { margin: 0; font-size: var(--fs-md); font-weight: 600; }
.ask-chat-how { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.ask-chat-label { font-weight: 600; }
.ask-chat-meta { font-size: var(--fs-xs); color: var(--muted); }
.ask-chat-refused { margin: 0; font-size: var(--fs-md); color: var(--muted); }
.ask-chat-tablewrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.ask-chat-table { min-width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ask-chat-table th, .ask-chat-table td { padding: 6px 10px; white-space: nowrap; text-align: start; border-bottom: 1px solid var(--soft-edge); }
.ask-chat-table th { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.ask-chat-table tbody tr:last-child td { border-bottom: 0; }
.ask-chat-table td.num { text-align: end; font-variant-numeric: tabular-nums; }
.ask-chat-b .ask-sql pre { max-height: 220px; }
.ask-chat-foot { margin: 0; }
.ask-chat-wrong, .ask-chat-again { align-self: flex-start; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--accent); font: 600 var(--fs-xs) var(--font-ui); cursor: pointer; }
.ask-chat-wrong:disabled { color: var(--muted); cursor: default; }
.ask-chat-row.is-me .ask-chat-again { align-self: flex-end; }
.ask-chat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ask-chat-chips .ask-chip { font-size: var(--fs-xs); min-height: 44px; }   
.ask-chat-day { align-self: center; margin: 10px 0 2px; text-align: center; }
.ask-chat-day span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font: 600 var(--fs-xs) var(--font-ui); }
.ask-chat-dots { display: inline-flex; gap: 4px; }
.ask-chat-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: askChatDot 1s infinite ease-in-out; }
.ask-chat-dots i:nth-child(2) { animation-delay: .15s; }
.ask-chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes askChatDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ask-chat-dots i { animation: none; } }
.ask-chat-composer { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px; background: var(--surface-2); border-top: 1px solid var(--border); }
.ask-chat-input { flex: 1 1 auto; font-size: 16px; resize: none; max-height: 140px; }
@media (max-width: 768px) {
  
  body.authed.chat-typing #view-chat .chat-ask-screen,
  body.authed.has-tabbar.chat-typing:not(.kiosk-mode) #view-chat .chat-ask-screen {
    z-index: 31; top: var(--chat-vv-top, 0px); bottom: auto; height: var(--chat-vv-h, 100dvh);
  }
}




.ask-hint { flex: 0 0 auto; margin: 0; padding: 6px 12px 0; font-size: var(--fs-xs); color: var(--muted); background: var(--surface-2); border-top: 1px solid var(--border); }
.ask-hint:not([hidden]) + .ask-chat-composer { border-top: 0; }
.ask-offer-row { display: flex; flex-wrap: wrap; gap: 6px; }   
.ask-hint[hidden] { display: none; }
.ask-mic { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--accent); cursor: pointer; }
.ask-mic[hidden] { display: none; }
.ask-mic.listening { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); animation: askMicPulse 1.2s infinite ease-in-out; }
@keyframes askMicPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .35); } 50% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); } }
@media (prefers-reduced-motion: reduce) { .ask-mic.listening { animation: none; } }
.ask-todo-bubble { gap: 8px; }
.ask-todo-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.ask-todo-row { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.ask-todo-k { flex: 0 0 auto; min-width: 3.5em; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.ask-todo-v { flex: 1 1 auto; min-width: 0; font-size: var(--fs-md); overflow-wrap: anywhere; }
.ask-todo-kind { display: inline-block; margin-inline-start: 6px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-2xs); font-weight: 600; }
.ask-todo-muted { color: var(--muted); }
.ask-todo-code { white-space: nowrap; }   
.ask-todo-note, .ask-todo-refusal { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.ask-todo-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ask-todo-btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 var(--fs-sm) var(--font-ui); cursor: pointer; }
.ask-todo-btn.is-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ask-todo-btn.is-quiet { background: transparent; color: var(--muted); }
.ask-todo-btn:disabled { opacity: .6; cursor: default; }
.ask-todo-state { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.ask-todo-state.is-saved { color: var(--success); font-weight: 600; }
.ask-todo-card.is-cancelled { opacity: .6; }
.ask-todo-card.is-cancelled .ask-todo-v strong { text-decoration: line-through; }

.ask-attach { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--accent); cursor: pointer; }
.ask-doc-bubble { gap: 6px; }
.ask-doc-client, .ask-doc-row { margin: 0; font-size: var(--fs-sm); }
.ask-doc-files { overflow-wrap: anywhere; }
.ask-doc-unsure { margin-inline-start: 2px; color: var(--amber-text); font-weight: 700; cursor: help; }

.ask-act-kind { margin: 0; color: var(--accent); font-size: var(--fs-2xs); font-weight: 700; }
.ask-act-what { margin: 0 0 2px; font-size: var(--fs-md); overflow-wrap: anywhere; }
.ask-act-card.is-stale, .ask-act-card.is-gone { border-color: var(--amber-text); }

.ask-act-tier { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.ask-act-tier.is-amber { color: var(--amber-text); font-weight: 700; }

.ask-act-tier.is-red { color: var(--danger-text); font-weight: 700; }
.ask-todo-btn.is-danger { color: var(--danger-text); border-color: var(--danger); }



.ask-talk-btn { min-height: 44px; flex: 0 0 44px; width: 44px; height: 44px; margin-inline-start: auto; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--accent); cursor: pointer; }
.ask-talk-btn[hidden] { display: none; }
.talk-bar { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--surface-2); border-top: 1px solid var(--border); }
.talk-bar[hidden] { display: none; }
.talk-top { display: flex; align-items: center; gap: 10px; }
.talk-dot { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.talk-bar[data-phase="listening"] .talk-dot { background: var(--accent); animation: talkBreathe 1.4s infinite ease-in-out; }
.talk-bar[data-phase="speaking"] .talk-dot { background: var(--accent); }
@keyframes talkBreathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .35); } 50% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); } }
@media (prefers-reduced-motion: reduce) { .talk-bar[data-phase="listening"] .talk-dot { animation: none; } }
.talk-state { flex: 1 1 auto; margin: 0; font-weight: 600; font-size: var(--fs-md); }
.talk-gear { min-height: 44px; flex: 0 0 44px; width: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; }
.talk-heard { margin: 0; min-height: 1.4em; font-size: var(--fs-md); color: var(--muted); overflow-wrap: anywhere; }




.voice-why { display: block; color: var(--label); font-size: var(--fs-xs); font-weight: 500; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; text-align: start; }
.ask-hint.voice-why { padding-block: 8px 2px; padding-inline: 12px; }
.talk-heard .voice-why { display: inline; font-size: var(--fs-sm); }
.voice-code { unicode-bidi: isolate; direction: ltr; margin-inline-start: 2px; color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
.talk-settings { display: flex; flex-direction: column; gap: 8px; }
.talk-settings[hidden] { display: none; }
.talk-row { display: flex; flex-wrap: wrap; gap: 6px; }
.talk-opt { min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 var(--fs-sm) var(--font-ui); cursor: pointer; }
.talk-opt.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.talk-note { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.talk-actions { display: flex; gap: 8px; }
.talk-tap { min-height: 44px; flex: 1 1 auto; padding: 0 16px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 var(--fs-md) var(--font-ui); cursor: pointer; }
.talk-tap[hidden] { display: none; }
.talk-end { min-height: 44px; flex: 0 0 auto; margin-inline-start: auto; padding: 0 20px; border: 1px solid var(--danger); border-radius: 999px; background: var(--danger); color: var(--surface); font: 600 var(--fs-md) var(--font-ui); cursor: pointer; }








.topbar .topbar-title { background: none; border: 0; padding: 0; margin: 0; color: var(--text); cursor: pointer; line-height: inherit; }
@media (max-width: 768px) {
  .topbar {
    direction: ltr; gap: 8px;
    --tb-l1: 0; --tb-l2: 1; --tb-r1: 0; --tb-r2: 0; --tb-r3: 0;
  }
  .topbar:has(.search-btn-top:not([hidden])) { --tb-l1: 1; }
  body.authed.has-tabbar:not(.kiosk-mode) .topbar:has(.notif-bell-top:not([hidden])) { --tb-l2: 0; }   
  .topbar:has(.notif-bell-top:not([hidden])) { --tb-r1: 1; }
  .topbar:has(#hc-btn-top:not([hidden])) { --tb-r2: 1; }
  .topbar:has(.update-pill) { --tb-r3: 1; }
  .topbar .hamburger { order: 1; }
  .topbar .search-btn-top { order: 2; margin-inline-start: 0; }
  
  .topbar::before, .topbar::after { content: ''; height: 1px; min-width: 0; flex-grow: 0; flex-shrink: 1; }
  

  .topbar::before { order: 3; margin-inline-end: -8px; flex-basis: calc(max(0, var(--tb-r1) + var(--tb-r2) + var(--tb-r3) - var(--tb-l1) - var(--tb-l2)) * 52px); }
  .topbar .topbar-title {
    order: 4; flex: 1 0 auto; min-width: 0; min-height: 44px; text-align: center; border-radius: 12px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  
  .topbar:has(.update-pill) .topbar-title { flex-shrink: 1; }
  .topbar .topbar-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .topbar .topbar-title:active { opacity: 0.7; }
  .topbar::after { order: 5; margin-inline-start: -8px; flex-basis: calc(max(0, var(--tb-l1) + var(--tb-l2) - var(--tb-r1) - var(--tb-r2) - var(--tb-r3)) * 52px); }
  .topbar .notif-bell-top { order: 6; margin-inline-start: 0; }
  .topbar .hc-btn { order: 7; margin-inline-start: 0; }
  .topbar .update-pill { order: 8; margin-inline-start: 0; }
}


@media (max-width: 359px) {
  .topbar .topbar-title { font-size: 12px; letter-spacing: 0.1em; }
}






.order-item-head .ready-tag, .review-item-head .ready-tag { margin-inline-start: auto; margin-inline-end: 10px; }





.client-name-ar { font-size: var(--fs-xs); color: var(--muted); margin-block-start: 2px; unicode-bidi: plaintext; text-align: start; }






.client-contact { min-width: 0; }
.client-ig-line { font-size: var(--fs-xs); margin-block-start: 2px; }
.client-ig { color: var(--accent); text-decoration: none; unicode-bidi: isolate; }
.client-ig:hover { color: var(--accent-hover); text-decoration: underline; }
@media (max-width: 768px) {
  .data-table .client-contact { text-align: end; }
}
.ar-preview { margin-block: 10px 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.ar-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ar-preview p { margin-block: 6px 10px; }
.ar-preview-list { margin: 0; padding-inline-start: 1.4em; display: grid; gap: 6px; }
.ar-preview-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.ar-preview-arrow { color: var(--muted); }
html[dir="rtl"] .ar-preview-arrow { display: inline-block; transform: scaleX(-1); }
.ar-preview-ar { font-size: var(--fs-lg); font-weight: 600; }






.hc-status.hc-status-ringing.hc-status-unreached { background: var(--amber-bright); color: var(--accent-ink); }






.js-item-name, .prod-item-name { unicode-bidi: plaintext; text-align: start; }








.app-splash {
  position: fixed; inset: 0; z-index: 10050; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--bg);
  transition: opacity 0.45s ease, visibility 0.45s;
  animation: appSplashAway 0.45s ease 10s forwards;
}
.app-splash.is-gone { opacity: 0; visibility: hidden; }
@keyframes appSplashAway { to { opacity: 0; visibility: hidden; } }


.app-splash-logo, .view-loading-logo {
  display: block; height: auto;
  animation: logoBreathe 1.6s ease-in-out infinite;
}
.app-splash-logo { width: 240px; }
.app-splash-bar { width: 132px; height: 3px; border-radius: 999px; overflow: hidden; background: var(--lit-edge); }
.app-splash-bar span { display: block; width: 40%; height: 100%; border-radius: 999px; background: var(--accent); animation: splashBar 1.1s ease-in-out infinite; }
@keyframes splashBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes logoBreathe { 0%, 100% { transform: scale(0.96); opacity: 0.88; } 50% { transform: scale(1); opacity: 1; } }

.view-loading {
  position: fixed; top: 0; bottom: 0; inset-inline-start: var(--sidebar-w); inset-inline-end: 0; z-index: 25;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--bg); opacity: 0; transition: opacity 0.18s ease;
}
.view-loading.is-on { opacity: 1; }
.view-loading[hidden] { display: none; }
.view-loading-logo { width: 150px; }
.view-loading-word { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.04em; }
@media (max-width: 768px) {
  .view-loading { top: var(--topbar-h); inset-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .app-splash-logo, .view-loading-logo, .app-splash-bar span { animation: none; }
}






.brand-logo { display: block; height: auto; max-width: 100%; }
.login-brand .brand-logo { width: 220px; margin-inline: auto; }
.sidebar .brand .brand-logo { width: 150px; }
.topbar .topbar-title { display: flex; align-items: center; justify-content: center; }
.topbar-logo { display: block; height: 30px; width: auto; }

.po-brand.po-brand-logo { flex-direction: column; align-items: flex-start; gap: 4px; }
.po-logo-img { display: block; width: 150px; height: auto; }
@media print {
  .po-receipt .rcpt-logo-img { display: block; width: 48mm; height: auto; margin: 0 auto 3px; }
}







@media (max-width: 768px) {
  body.has-tabbar .sidebar {
    inset-inline-start: auto; inset-inline-end: 0;
    border-inline-end: none; border-inline-start: 1px solid var(--border);
    box-shadow: var(--float-drop);
    transform: translateX(100%);
  }
  [dir="rtl"] body.has-tabbar .sidebar { transform: translateX(-100%); }
  body.has-tabbar .sidebar.open, [dir="rtl"] body.has-tabbar .sidebar.open { transform: translateX(0); }
}





.owner-brief { position: relative; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px 10px; margin: 0 0 10px; background: var(--card); overflow: hidden; animation: briefIn .42s cubic-bezier(.2,.7,.2,1) backwards; }
.owner-brief::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--accent); opacity: .9; }
.owner-brief-head { display: flex; align-items: center; gap: 8px; margin-block-end: 6px; }
.owner-brief-mark { display: inline-flex; width: 18px; height: 18px; color: var(--accent); }
.owner-brief-mark svg { width: 18px; height: 18px; fill: currentColor; }
.owner-brief-title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .owner-brief-title { letter-spacing: 0; }
.owner-brief-line { margin: 0 0 6px; font-size: var(--fs-md); line-height: 1.45; font-weight: 500; }
.owner-brief-line:last-of-type { margin-block-end: 8px; }
.owner-brief-src { font-size: var(--fs-xs); line-height: 1.3; }
@keyframes briefIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .owner-brief { animation: none; } }





.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn .ico, .dn-chip .ico, .dl-when .ico, .mycl-run-line .ico, .mytime-helping-badge .ico { margin-inline-end: 2px; }
.todo-pin-flag .ico { vertical-align: -0.1em; }
.hc-ring-bell .ico { width: 1.1em; height: 1.1em; stroke-width: 1.75; vertical-align: 0; }
.welcome-toast-emoji .ico { width: 1.2em; height: 1.2em; vertical-align: -0.2em; }


[dir="rtl"] .ico-undo, [dir="rtl"] .ico-redo, [dir="rtl"] .ico-out { transform: scaleX(-1); }
.notif-badge-type .ico, .search-ico .ico { vertical-align: -0.12em; }
.search-ico .ico { width: 1.15em; height: 1.15em; }
.home-sched-icon .ico, .hrb-icon .ico, .hbb-icon .ico, .atrisk-icon .ico, .home-strip-icon .ico { vertical-align: -0.12em; }
.mistakes-thumb-none .ico { width: 1.4em; height: 1.4em; opacity: .55; }
.chat-file-ico .ico, .chat-voice-play .ico { width: 1.2em; height: 1.2em; }
.hc-choice .ico { width: 1.2em; height: 1.2em; vertical-align: -0.2em; margin-inline-end: 4px; }





.cal-orders { display: flex; flex-direction: column; gap: 4px; }
.ao-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 2px 10px; }
.ao-top .btn { margin-inline-start: auto; }
.ao-group-head { display: flex; align-items: center; gap: 8px; margin: 10px 2px 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .ao-group-head { letter-spacing: 0; }
.ao-group-n { font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0 8px; font-size: var(--fs-2xs); line-height: 20px; }
.ao-row { padding: 0; overflow: hidden; }
.ao-head { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 11px 13px; background: none; border: 0; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.ao-date { flex: none; font-size: var(--fs-xs); font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--text); white-space: nowrap; }
.ao-date.is-promised { background: var(--surface-3); }
.ao-date.is-none { background: none; border: 1px dashed var(--warn); color: var(--warn); }
.ao-date.is-late { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn); }
.ao-warn { color: var(--warn); font-weight: 600; }
.ao-body { padding: 0 13px 12px; display: flex; flex-direction: column; gap: 8px; border-block-start: 1px solid var(--border); padding-block-start: 10px; }
.ao-items { font-size: var(--fs-sm); line-height: 1.4; }
.ao-work { font-size: var(--fs-xs); color: var(--muted); }
.ao-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ao-group-late .ao-row { border-color: var(--warn); }




.notif-reviews { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 14px; background: var(--accent-soft); color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.notif-reviews-n { flex: none; min-width: 28px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink, var(--bg)); font-weight: 800; text-align: center; }
.notif-reviews-text { flex: 1 1 auto; font-weight: 600; }
.notif-reviews-go { flex: none; color: var(--muted); }
[dir="rtl"] .notif-reviews-go { transform: scaleX(-1); }



.owner-big.owner-moved-head { font-size: var(--fs-lg); margin-block-start: 10px; }
.owner-row.owner-month-line { border-block-start: 1px solid var(--border); margin-block-start: 6px; padding-block-start: 8px; }






.sched-daypop-client, .dr-pay-client, .agenda-job-client, .js-client-name, .dn-client, .sj-job-client { unicode-bidi: plaintext; }





.internal-history { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-block-start: 14px; }
.internal-history-btn, .internal-history-more { align-self: flex-start; }
.internal-history-list { display: flex; flex-direction: column; gap: 4px; }
.ih-day { margin: 10px 2px 4px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.ih-row { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.ih-title { font-weight: 600; }
.ih-meta { font-size: var(--fs-xs); }






.md-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 3px; }
.md-label { color: var(--muted); min-width: 0; }
.md-val { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }





.onsite-fix { display: flex; flex-direction: column; gap: 8px; padding-block-start: 10px; border-block-start: 1px dashed var(--border); }
.onsite-fix-btn, .onsite-tgt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding-block: 8px; padding-inline: 14px; font-size: 16px; text-align: start; }
.onsite-fix-btn { justify-content: flex-start; }
.onsite-tgt { justify-content: space-between; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-family: inherit; cursor: pointer; }
.onsite-tgt:hover, .onsite-tgt:focus-visible { border-color: var(--accent); }
.onsite-tgt:disabled { opacity: 0.6; cursor: default; }
.onsite-tgt-what { min-width: 0; }
.onsite-tgt-when { flex: none; font-size: var(--fs-sm); }
.onsite-pick { display: flex; flex-direction: column; gap: 6px; }
.onsite-pick-head { margin-block-start: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }







body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) { gap: 12px; }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > .mytime-card { order: 1; }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > #mytime-board { order: 2; margin-block-start: 0; }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > #mytime-helping { order: 3; }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > #mytime-flags { order: 4; }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > #mytime-checklist { order: 5; }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > .fold[data-fold="shmore"] { order: 9; }


body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle.checkout) > .mytime-card {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-block: 8px; padding-inline: 14px 8px;
  border: 0; border-radius: 16px; background: var(--accent-soft); box-shadow: none; text-align: start;
}
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle.checkout) > .mytime-card > #mytime-status { flex: 1 1 auto; margin: 0; font-size: var(--fs-md); font-weight: 600; color: var(--accent); }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle.checkout) > .mytime-card > #mytime-timer { margin: 0; font-size: var(--fs-md); font-weight: 700; letter-spacing: 0; color: var(--accent); }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle.checkout) > .mytime-card > #mytime-toggle { width: auto; min-width: 0; min-height: 40px; margin: 0; padding-block: 6px; padding-inline: 16px; font-size: var(--fs-md); }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle.checkout) > .mytime-card > :is(#mytime-clblock, #mytime-taskblock, #mytime-stale-hint, #mytime-notupdated) { flex-basis: 100%; }


body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle):not(:has(#mytime-toggle.checkout)) > .mytime-card > #mytime-toggle { width: 100%; min-height: 72px; font-size: 22px; }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle):not(:has(#mytime-toggle.checkout)) > :is(#mytime-board, #mytime-helping, #mytime-checklist) { display: none; }
body.simple-home #mytime-notin:not([hidden]) { margin-block-start: 8px; font-size: var(--fs-md); text-align: center; }


body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > #mytime-board > .mytime-sec-title { display: none; }
body.simple-home .tb-all { display: block; padding: 8px; font-size: var(--fs-md); text-align: center; color: var(--muted); text-decoration: underline; }


body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > #mytime-helping:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > #mytime-helping > .mytime-helping-btn { width: 100%; min-height: 56px; margin: 0; border-radius: 999px; font-size: 17px; font-weight: 700; }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > #mytime-helping > [data-quick-todo] { grid-column: 1 / -1; border-color: var(--accent); color: var(--accent); }

body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > #mytime-helping > [data-pause-open] { display: none; }
body.simple-home #view-my-time .mytime-wrap:not(:has(#mytime-helping [data-pause-open])) #mytime-more-pause { display: none; }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > #mytime-helping > #mytime-job-btn { grid-column: 1 / -1; }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > #mytime-helping > #mytime-job-btn.sh-nojob { display: none; }


body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle):has(.mytime-helping-on) > #mytime-helping { order: 2; }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle):has(.mytime-helping-on) > #mytime-board { order: 3; }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > #mytime-helping > .mytime-helping-on {
  grid-column: 1 / -1; padding: 16px; border: 2px solid var(--warn-border); border-radius: 22px;
}
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > #mytime-helping .mytime-helping-timer { flex-basis: 100%; font-size: 40px; font-weight: 800; color: var(--warn-text); }
body.simple-home #view-my-time .mytime-wrap:has(#mytime-toggle) > #mytime-helping .mytime-helping-on [data-pause-leave] { flex-basis: 100%; min-height: 60px; font-size: 19px; }


body.simple-home #mytime-more:not([hidden]) { display: flex; flex-direction: column; gap: 14px; }
body.simple-home .mytime-more-job:not([hidden]) { width: 100%; min-height: 48px; }
body.simple-home .mytime-more-pause { width: 100%; min-height: 48px; }





.qu-f { border: 1px solid var(--border-strong); border-radius: 10px; padding-block: 9px; padding-inline: 11px;
  background: var(--input-bg); color: var(--text); font: inherit; line-height: 1.35; }
.qu-f::placeholder { color: var(--muted); opacity: 0.8; }
.qu-f:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow-soft); }

.qu-f.qu-f-unsure { border-color: var(--warning, var(--accent)); }
.qu-f-grow { display: block; resize: none; overflow: hidden; min-height: 44px; }












.modal-overlay.ask-sheet-overlay { z-index: 1300; }
body.kiosk-mode #kiosk-idle.on { z-index: 1400; }
.modal.ask-sheet { max-width: 420px; background: var(--surface-2); }
.ask-sheet-title {
  margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.3;
  color: var(--text); overflow-wrap: anywhere; text-align: start; text-wrap: balance;
}
.ask-sheet-text {
  margin-block: 10px 0; margin-inline: 0; font-size: var(--fs-md); line-height: 1.5;
  color: var(--label); white-space: pre-line; overflow-wrap: anywhere; text-align: start;
}
.ask-sheet .ask-sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 22px; }
.ask-sheet .ask-sheet-actions .ask-sheet-btn {
  flex: 1 1 0; min-height: 48px; padding-block: 10px; padding-inline: 16px; font-size: var(--fs-lg); font-weight: 600;
}
@media (max-width: 768px) {
  .modal-overlay.ask-sheet-overlay { align-items: flex-end; }
  .modal-overlay.ask-sheet-overlay .modal.ask-sheet { margin-block: auto 0; }
}








.ask-sheet .ask-sheet-input {
  --field-bg: var(--field-fill); --field-edge: var(--no-line);
  display: block; box-sizing: border-box; inline-size: 100%; min-height: 48px; margin-block: 16px 0; margin-inline: 0;
  padding-block: 10px; padding-inline: 14px; border: 1px solid var(--field-edge); border-radius: var(--r-14);
  background: var(--field-bg); color: var(--text); font: inherit; font-size: var(--fs-lg); line-height: 1.4; text-align: start;
}
.ask-sheet .ask-sheet-input::placeholder { color: var(--muted); opacity: 0.8; }
.ask-sheet .ask-sheet-input:focus {
  outline: none; --field-edge: var(--accent); --field-bg: var(--field-fill-focus);
  box-shadow: var(--focus-ring), var(--glow-soft);
}
@media (max-width: 768px) {
  .modal-overlay.ask-sheet-overlay.ask-sheet-has-field { align-items: flex-start; }
  .modal-overlay.ask-sheet-overlay.ask-sheet-has-field .modal.ask-sheet { margin-block: 0 auto; }
}









.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-block: 0 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--sidebar-bg); }
.cal-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-xs); color: var(--label); }
.cal-legend-item b { color: var(--text); font-weight: 700; }
.cal-legend-item.is-none { opacity: 0.55; }
.cal-empty-month { margin-block: 0 12px; }

.cal-dot[data-type="Installation"], .calendar-grid .task-chip[data-type="Installation"] { --cal-dot: var(--info-text); }
.cal-dot[data-type="Delivery"], .calendar-grid .task-chip[data-type="Delivery"] { --cal-dot: var(--success-text); }
.cal-dot[data-type="Maintenance"], .calendar-grid .task-chip[data-type="Maintenance"] { --cal-dot: var(--warn-text); }
.cal-dot[data-type="Site Survey"], .calendar-grid .task-chip[data-type="Site Survey"] { --cal-dot: var(--purple-text); }
.cal-dot[data-type="Pickup"], .calendar-grid .task-chip[data-type="Pickup"] { --cal-dot: var(--pickup-text); }
.cal-dot { flex: 0 0 auto; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--cal-dot, var(--neutral-text)); }
.cal-dot.cal-dot-visit { inline-size: 8px; block-size: 8px; border-radius: 2px; background: none; border: 2px solid var(--purple-text); transform: rotate(45deg); }




.calendar-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; background: none; border: 0; border-radius: 0; overflow: visible; }
.cal-weekday { background: none; padding: 2px 4px; }
.cal-day { min-width: 0; min-height: 112px; padding: 8px; gap: 4px; border: 1px solid var(--border); border-radius: 14px; }
.cal-day.cal-empty { visibility: hidden; }
.cal-day.has-items { background: var(--surface-2); }
.cal-day.cal-today { border-color: var(--accent); background: var(--accent-soft); }
.cal-day-num { font-size: var(--fs-sm); color: var(--label); }

.calendar-grid .task-chip { padding: 2px 4px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: var(--fs-2xs); }
.calendar-grid .task-chip::before { content: ''; display: inline-block; inline-size: 8px; block-size: 8px; margin-inline-end: 6px; border-radius: 50%; background: var(--cal-dot, var(--neutral-text)); }
.calendar-grid .task-chip:hover { background: var(--surface-3); filter: none; transform: none; }
.calendar-grid .task-chip.is-done::before { background: none; box-shadow: inset 0 0 0 2px var(--cal-dot, var(--neutral-text)); }
.calendar-grid .task-chip.is-progress { box-shadow: none; }
.calendar-grid .task-chip.is-progress::before { box-shadow: 0 0 0 3px var(--accent-soft); }
.calendar-grid .task-chip.needs-review { box-shadow: none; }
.calendar-grid .task-chip.needs-review::before { box-shadow: 0 0 0 2px var(--danger); }
.calendar-grid .task-chip.over-lines { display: none; }

.cal-day-more { padding-inline-start: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); direction: ltr; unicode-bidi: isolate; }
.cal-day-more.more-dots { display: none; }

@media (max-width: 768px) {
  .cal-legend { padding: 8px 10px; gap: 4px 12px; }
  .calendar-grid { gap: 4px; }
  
  .cal-day { min-height: 60px; padding: 5px 4px; flex-direction: row; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 4px; border-radius: 12px; overflow: hidden; }
  .cal-day-num { flex: 0 0 100%; }
  .calendar-grid .task-chip { flex: 0 0 auto; inline-size: 9px; block-size: 9px; min-width: 0; padding: 0; border-radius: 50%; background: var(--cal-dot, var(--neutral-text)); text-indent: 200%; white-space: nowrap; overflow: hidden; }
  .calendar-grid .task-chip::before { content: none; }
  .calendar-grid .task-chip.is-done { box-shadow: inset 0 0 0 2px var(--cal-dot, var(--neutral-text)); }
  .calendar-grid .task-chip.is-progress { box-shadow: 0 0 0 2px var(--accent-soft); }
  .calendar-grid .task-chip.needs-review { box-shadow: 0 0 0 2px var(--danger); }
  .calendar-grid .task-chip.over-lines { display: block; }
  .calendar-grid .task-chip.over-dots { display: none; }
  .cal-day-more.more-lines { display: none; }
  .cal-day-more.more-dots { display: inline; padding-inline-start: 0; }
  
  .calendar-grid .visit-chip { flex: 0 0 auto; inline-size: 8px; block-size: 8px; margin: 1px; padding: 0; border: 2px solid var(--purple-text); border-radius: 2px; background: none; transform: rotate(45deg); text-indent: 200%; white-space: nowrap; overflow: hidden; }
}







.clients-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block: 0 12px; }
.clients-seg { display: inline-flex; }
.clients-seg .btn-sm { border-radius: 0; }
.clients-seg .btn-sm + .btn-sm { border-inline-start: 0; }
.clients-seg .btn-sm:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.clients-seg .btn-sm:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }

.client-avatar { float: inline-start; display: inline-flex; align-items: center; justify-content: center; inline-size: 34px; block-size: 34px; margin-inline-end: 10px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.3px; }

.client-quick { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 10px; vertical-align: middle; }
.client-act { position: relative; display: inline-flex; flex: 0 0 auto; inline-size: 34px; block-size: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--accent); transition: border-color var(--speed) ease, background var(--speed) ease; }
.client-act::before { content: ""; position: absolute; inset: 9px; background: currentColor; -webkit-mask: var(--icon) no-repeat center / contain; mask: var(--icon) no-repeat center / contain; }
.client-act:hover { border-color: var(--accent); background: var(--surface-3); }
.client-act-wa { color: var(--success-text); }

#clients-active .client-name-ar { inline-size: fit-content; }


html[dir="rtl"] #clients-active .data-table tbody td:nth-child(3) { direction: ltr; text-align: end; }

.client-act-ig { color: var(--purple-text); }
.client-act-call { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.client-act-wa { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E"); }
.client-act-ig { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E"); }

@media (max-width: 768px) {
  
  #view-clients .view-header-actions .btn { flex: 1 1 auto; min-height: 44px; padding-block: 8px; padding-inline: 12px; font-size: var(--fs-sm); white-space: nowrap; }
  .clients-seg { flex: 1 1 auto; }
  .clients-seg .btn-sm { flex: 1 1 auto; min-height: 40px; }
  
  #clients-active .data-table tbody tr[data-id] { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; padding: 12px 14px; }
  #clients-active .data-table tbody tr[data-id] td { display: block; min-width: 0; padding: 0; }
  #clients-active .data-table tbody tr[data-id] td::before { content: none; }
  #clients-active .data-table tbody tr[data-id] td:nth-child(2) { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 0; }
  #clients-active .data-table .client-avatar { grid-row: 1 / span 2; inline-size: 44px; block-size: 44px; margin-inline-end: 12px; font-size: var(--fs-sm); }
  #clients-active .data-table .client-name-link { justify-self: start; align-self: end; padding: 0; font-size: var(--fs-md); font-weight: 700; text-align: start; }
  #clients-active .data-table .client-name-link:last-child { grid-row: 1 / span 2; align-self: center; }
  #clients-active .data-table .client-name-ar { grid-column: 2; align-self: start; justify-self: start; margin-block-start: 0; }
  #clients-active .data-table tbody tr[data-id] td.check-col { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; }
  #clients-active .data-table tbody tr[data-id] td:nth-child(3) { grid-column: 1; padding-inline-start: 56px; color: var(--label); font-size: var(--fs-sm); }
  #clients-active .data-table tbody tr[data-id] td:nth-child(4) { grid-column: 2; justify-self: end; align-self: start; color: var(--label); font-size: var(--fs-sm); }
  html[dir="rtl"] #clients-active .data-table tbody tr[data-id] td:nth-child(3) { padding-inline: 0 56px; }
  #clients-active .data-table tbody tr[data-id] td:nth-child(4):empty,
  #clients-active .data-table tbody tr[data-id] td:nth-child(5) { display: none; }
  #clients-active .data-table .client-contact { text-align: start; }
  #clients-active .data-table tbody tr[data-id] td.actions-col { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 8px; padding-block-start: 8px; border-block-start: 1px solid var(--border); }
  #clients-active .data-table .client-quick { margin-inline-end: auto; gap: 10px; }
  #clients-active .data-table .client-act { inline-size: 44px; block-size: 44px; }
  #clients-active .data-table .client-act::before { inset: 12px; }
  #clients-active .data-table td.actions-col [data-action="profile"] { display: none; }
}




.fin-ads { margin-block-start: 22px; scroll-margin-block-start: calc(var(--topbar-h, 56px) + 8px); }   
.fin-ads-jump { align-self: flex-start; }
.fin-ads-note { margin-block: 0 10px; color: var(--label); font-size: var(--fs-sm); }
.fin-ads-cover { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block: 0 12px; font-size: var(--fs-sm); color: var(--text); }
.fin-ads-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.fin-ads-month { display: flex; flex-direction: column; gap: 6px; padding: 14px 15px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); }
.fin-ads-month-title { margin-block: 0 4px; font-size: var(--fs-md); font-weight: 700; color: var(--text); }
.fin-ads-now { margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px; background: var(--info-bg); color: var(--info-text); font-size: var(--fs-xs); font-weight: 600; }
.fin-ads-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); }
.fin-ads-k { flex: 1 1 0; min-inline-size: 0; color: var(--label); }


.fin-ads-v { flex: 0 1 auto; font-weight: 600; color: var(--text); text-align: end; }
.fin-ads-fig { white-space: nowrap; direction: ltr; unicode-bidi: isolate; }

.fin-ads-key { padding-block: 6px; border-block: 1px solid var(--border); }
.fin-ads-key .fin-ads-v { color: var(--accent); }




.fin-bal { margin-block-start: 16px; scroll-margin-block-start: calc(var(--topbar-h, 56px) + 8px); }
.fin-bal-check { margin-block: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--warn-bg); color: var(--warn-text); font-size: var(--fs-sm); }
.fin-bal-cur { margin-block-start: 12px; }
.fin-bal-cur-title { margin-block: 8px; font-size: var(--fs-md); }
.fin-bal-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding-block: 10px; border-block-start: 1px solid var(--border); }
.fin-bal-main { min-inline-size: 0; }
.fin-bal-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.fin-bal-code { min-block-size: 32px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.fin-bal-status { font-size: var(--fs-sm); }
.fin-bal-client { overflow-wrap: anywhere; }
.fin-bal-amt { white-space: nowrap; direction: ltr; unicode-bidi: isolate; text-align: end; }
.fin-bal-since { color: var(--muted); font-size: var(--fs-sm); }
.fin-bal-wa { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.fin-bal-wa .btn { min-block-size: 40px; }








@media (min-width: 769px) {
  
  #clients-active .table-wrap { border: 0; border-radius: 0; overflow: visible; background: none; box-shadow: none; }
  #clients-active .data-table, #clients-active .data-table thead { display: block; }
  
  #clients-active .data-table thead tr { display: flex; align-items: center; margin-block-end: 10px; }
  #clients-active .data-table thead th { display: none; }
  #clients-active .data-table thead th.check-col { display: block; inline-size: auto; padding: 0; border: 0; background: none; text-transform: none; letter-spacing: 0; }
  .clients-all { display: inline-flex; align-items: center; gap: 8px; padding-inline: 4px; color: var(--label); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; }
  
  #clients-active .data-table tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
  
  #clients-active .data-table tbody tr { display: block; grid-column: 1 / -1; }
  #clients-active .data-table tbody tr td { display: block; border: 0; }
  
  #clients-active .data-table tbody tr[data-id] { grid-column: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto 1fr; align-content: start; column-gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--sidebar-bg); box-shadow: var(--shadow-sm); transition: border-color var(--speed) ease; text-align: start; }
  #clients-active .data-table tbody tr[data-id]:hover { border-color: var(--border-strong); background: var(--sidebar-bg); }
  #clients-active .data-table tbody tr[data-id] td { min-inline-size: 0; padding: 0; text-align: start; overflow-wrap: anywhere; }
  #clients-active .data-table tbody tr[data-id] td.check-col { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; inline-size: auto; }
  #clients-active .data-table tbody tr[data-id] td:nth-child(2) { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; }
  #clients-active .data-table .client-avatar { grid-row: 1 / span 2; inline-size: 42px; block-size: 42px; margin-inline-end: 12px; font-size: var(--fs-sm); }
  #clients-active .data-table .client-name-link { justify-self: start; align-self: end; font-size: var(--fs-md); font-weight: 700; text-align: start; }
  #clients-active .data-table .client-name-link:last-child { grid-row: 1 / span 2; align-self: center; }
  #clients-active .data-table .client-name-ar { grid-column: 2; align-self: start; justify-self: start; margin-block-start: 0; }
  
  #clients-active .data-table tbody tr[data-id] td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; margin-block-start: 8px; padding-inline-start: 54px; font-size: var(--fs-sm); }
  #clients-active .data-table .client-contact { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
  #clients-active .data-table .client-ig-line { margin-block-start: 0; font-size: var(--fs-sm); }
  
  #clients-active .data-table tbody tr[data-id] td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; margin-block-start: 4px; padding-inline-start: 54px; color: var(--label); font-size: var(--fs-sm); }
  #clients-active .data-table tbody tr[data-id] td:nth-child(5) { grid-column: 1 / -1; grid-row: 4; margin-block-start: 2px; padding-inline-start: 54px; color: var(--muted); font-size: var(--fs-sm); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  #clients-active .data-table tbody tr[data-id] td:nth-child(4):empty,
  #clients-active .data-table tbody tr[data-id] td:nth-child(5):empty { display: none; }
  



  #clients-active .data-table tbody tr[data-id] td:nth-child(4), #clients-active .data-table tbody tr[data-id] td:nth-child(5) { unicode-bidi: plaintext; text-align: -webkit-match-parent; text-align: match-parent; }
  
  #clients-active .data-table tbody tr[data-id] td.actions-col { grid-column: 1 / -1; grid-row: 5; align-self: end; inline-size: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 12px; padding-block-start: 10px; border-block-start: 1px solid var(--border); }
  #clients-active .data-table .client-quick { margin-inline-end: auto; gap: 8px; }
  #clients-active .data-table .client-act { inline-size: 36px; block-size: 36px; }
  #clients-active .data-table .client-act::before { inset: 10px; }
  #clients-active .data-table td.actions-col [data-action="profile"] { display: none; }
  
  html[dir="rtl"] #clients-active .data-table tbody tr[data-id] td:nth-child(3) { padding-inline: 0 54px; }
  html[dir="rtl"] #clients-active .data-table .client-contact { justify-content: flex-end; }
}
