:root {
  --bg: #F4F6F8;
  --ink: #141414;
  --line: #D1D1CF;
  --form-muted: rgb(91, 91, 93);
  --form-hint: rgb(115, 115, 117);
  --sidebar-bg: #121926;
  --sidebar-bg-2: #0f1623;
  --sidebar-text: #94a3b8;
  --sidebar-text-strong: #f1f5f9;
  --sidebar-border: rgba(148, 163, 184, 0.12);
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-active: #0d6b63;
  --sidebar-active-soft: rgba(13, 107, 99, 0.22);
  --sidebar-accent: #10b981;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.data-grid-header {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
}

.data-row {
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, color 0.2s ease;
}

.data-row:hover {
  background: var(--ink);
  color: var(--bg);
}
.data-row:hover .expense-tax-code,
.data-row:hover .expense-category-badge {
  color: var(--ink);
}
.data-value {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.section-divider {
  background-color: #EBEBE9;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.border-bottom {
  border-bottom: 1px solid var(--line);
}

/* Form labels & inputs (modal muted text) */
.form-label-muted {
  color: var(--form-muted);
}
.form-input-muted {
  color: var(--form-muted);
}
.form-hint {
  color: var(--form-hint);
}

/* Lucide icon sizes (replace inline width/height) */
.nav-group-chevron {
  transition: transform 0.2s ease;
}
.nav-group-chevron.rotate-180 {
  transform: rotate(180deg);
}
.nav-submenu {
  overflow: hidden;
}

/* Shared Flatpickr look (matches period / range pickers) */
.flatpickr-calendar {
  border: 1px solid #e4e4e7;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  font-weight: 600;
  color: #3f3f46;
}
.flatpickr-weekdays,
span.flatpickr-weekday {
  color: #71717a;
  font-weight: 600;
}
.flatpickr-day {
  border-radius: 999px;
  color: #3f3f46;
}
.flatpickr-day.today {
  border-color: #a1a1aa;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: #18181b;
  border-color: #18181b;
  color: #fff;
}
.flatpickr-day.inRange {
  background: #f4f4f5;
  border-color: #f4f4f5;
  box-shadow: none;
  color: #3f3f46;
}
.office-datepicker-alt,
input.office-datepicker-alt {
  cursor: pointer !important;
  background: #fff !important;
}

.lucide-icon-16 {
  width: 16px;
  height: 16px;
}
.lucide-icon-18 {
  width: 18px;
  height: 18px;
}
.lucide-icon-20 {
  width: 20px;
  height: 20px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-in.fade-in {
  animation: fadeIn 0.2s ease-out;
}

.animate-in.zoom-in-95 {
  animation: zoomIn 0.2s ease-out;
}
.w-200{
  width: 200px;
}

/* Հարկային հաշվետվություն — թաբերի կոնտեյներ */
.taxes-tabs {
  background-color: #eee;
  display: inline-flex;
  border-radius: 1rem;
  padding: 0.375rem;
  gap: 0;
  margin-top: 1rem;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.salary-sheet-wrap {
  max-height: calc(100vh - 260px);
}

.salary-sheet-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1320px;
  width: 100%;
  font-family: Arial, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  color: #111827;
}

.salary-sheet-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f3f4f6;
  border-right: 1px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
  color: #4b5563;
  font-weight: 600;
  height: 28px;
  min-width: 110px;
  text-align: center;
}

.salary-sheet-corner,
.salary-sheet-row-num {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 44px;
  min-width: 44px !important;
  background: #f3f4f6;
  color: #6b7280;
  text-align: center;
  font-weight: 600;
  border-right: 1px solid #d1d5db;
}

.salary-sheet-row-num {
  z-index: 2;
  border-bottom: 1px solid #e5e7eb;
}

.salary-sheet-cell {
  height: 32px;
  min-width: 110px;
  padding: 6px 8px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  text-align: right;
  white-space: nowrap;
}

.salary-sheet-cell:first-of-type {
  min-width: 220px;
  text-align: left;
}

.salary-sheet-header-row .salary-sheet-cell {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
  text-align: center;
}

.salary-sheet-expense-row .salary-sheet-cell {
  background: #fff7ed;
}

.salary-sheet-total-row .salary-sheet-cell,
.salary-sheet-summary-row .salary-sheet-cell {
  background: #f9fafb;
  font-weight: 700;
}

.salary-sheet-formula {
  color: #1d4ed8;
}

.salary-sheet-total {
  color: #047857;
}

/* ===== Scheduled module (shifts dashboard) ===== */
.sched-page-head {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.sched-pill-live,
.sched-pill-period {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  line-height: 1;
}

.sched-pill-live {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.sched-pill-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.sched-pill-period {
  color: #52525b;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
}

.sched-payroll-month-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 14.5rem;
  max-width: 18rem;
  flex: 0 1 18rem;
}

.sched-payroll-month-icon {
  position: absolute;
  left: 0.75rem;
  color: #a1a1aa;
  pointer-events: none;
  z-index: 1;
}

.sched-payroll-month-input,
.sched-payroll-month-field .office-datepicker-alt {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.85rem 0.5rem 2.35rem;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  background: #fff;
  color: #27272a;
  font-size: 0.875rem;
  font-weight: 500;
}

.sched-payroll-month-input:focus,
.sched-payroll-month-field .office-datepicker-alt:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.sched-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0d9488;
  color: #fff;
  padding: 0.65rem 1.05rem;
  border-radius: 0.8rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.28);
  transition: background 0.15s ease;
}
.sched-btn-primary:hover { background: #0f766e; }

.sched-icon-btn {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.8rem;
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #52525b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sched-icon-btn:hover { background: #f4f4f5; color: #18181b; }

.sched-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.sched-search-wrap {
  position: relative;
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 36rem;
}
.sched-search-wrap-sm {
  max-width: 20rem;
}
.sched-search-wrap-md {
  max-width: 28rem;
}
.sched-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a1a1aa;
  pointer-events: none;
  z-index: 1;
}
.sched-search-input {
  width: 100%;
  padding: 0.7rem 0.9rem 0.7rem 2.55rem;
  border: 1px solid #e4e4e7;
  border-radius: 0.85rem;
  font-size: 0.875rem;
  background: #fff;
  outline: none;
}
.sched-search-input:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.sched-filter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e4e4e7;
  border-radius: 0.85rem;
  background: #fff;
  min-width: 11rem;
}

.sched-filter-select {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  color: #3f3f46;
  outline: none;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.sched-showing-count {
  font-size: 0.8rem;
  color: #71717a;
  white-space: nowrap;
}

.sched-view-toggle {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 0.85rem;
  background: #f4f4f5;
  gap: 0.15rem;
}
.sched-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  border-radius: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #71717a;
}
.sched-view-btn.active {
  background: #ccfbf1;
  color: #0f766e;
  box-shadow: none;
}

.sched-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 1100px) {
  .sched-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.sched-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid #e4e4e7;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  min-height: 0;
}
@media (min-width: 640px) {
  .sched-stat-card {
    padding: 1.15rem 1.2rem;
    min-height: 9.5rem;
  }
}
.sched-stat-card.tone-emerald-dark {
  background: linear-gradient(145deg, #0f3d38 0%, #0d6b63 55%, #0f766e 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(13, 107, 99, 0.28);
}
.sched-stat-card.tone-slate-dark {
  background: linear-gradient(145deg, #0f172a 0%, #111827 60%, #1e293b 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
}
.sched-stat-card.tone-slate-dark .sched-stat-label { color: #5eead4; }
.sched-stat-card.tone-slate-dark .sched-stat-value { color: #fff; }
.sched-stat-card.tone-slate-dark .sched-stat-amd { color: #94a3b8; }
.sched-stat-card.tone-slate-dark .sched-stat-icon {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-radius: 999px;
}
.sched-stat-card.tone-slate-dark .sched-stat-foot { color: #94a3b8; }
.sched-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.sched-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #71717a;
}
@media (max-width: 639px) {
  .sched-stat-label {
    font-size: 0.68rem;
    line-height: 1.25;
  }
  .sched-stat-foot {
    font-size: 0.68rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .sched-stat-icon {
    width: 1.85rem;
    height: 1.85rem;
  }
}
.sched-stat-card.tone-emerald-dark .sched-stat-label { color: rgba(255,255,255,0.78); }
.sched-stat-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  color: #0d9488;
  flex-shrink: 0;
}
.sched-stat-icon.tone-green { background: #ecfdf5; color: #0d9488; }
.sched-stat-icon.tone-violet { background: #f5f3ff; color: #7c3aed; }
.sched-stat-icon.tone-mint { background: #ecfdf5; color: #059669; }
.sched-stat-card.tone-emerald-dark .sched-stat-icon {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-radius: 999px;
}
.sched-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #18181b;
  line-height: 1.15;
  margin-top: 0.15rem;
  word-break: break-word;
}
@media (min-width: 640px) {
  .sched-stat-value {
    font-size: 1.55rem;
  }
}
.sched-stat-card.tone-emerald-dark .sched-stat-value { color: #fff; }
.sched-stat-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.sched-stat-split {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.sched-stat-split .tone-day { color: #ea580c; }
.sched-stat-split .tone-night { color: #7c3aed; }
.sched-stat-amd {
  font-size: 0.9rem;
  font-weight: 600;
  color: #99f6e4;
}
.sched-stat-coverage {
  font-size: 0.85rem;
  font-weight: 700;
  color: #059669;
}
.sched-stat-foot {
  margin-top: auto;
  font-size: 0.75rem;
  color: #a1a1aa;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.sched-stat-card.tone-emerald-dark .sched-stat-foot { color: rgba(204, 251, 241, 0.85); }

.lucide-icon-14 {
  width: 14px;
  height: 14px;
}

.sched-gantt-hours {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.25rem;
  color: #a1a1aa;
  font-size: 0.7rem;
  font-family: ui-monospace, monospace;
  margin-bottom: 0.5rem;
}

.sched-shift-block {
  border: 1px solid #e4e4e7;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}
.sched-shift-block.tone-night { background: #f5f3ff; border-color: #ddd6fe; }
.sched-shift-block.tone-morning { background: #fffbeb; border-color: #fde68a; }
.sched-shift-block.tone-day { background: #ecfdf5; border-color: #a7f3d0; }
.sched-shift-block.tone-evening { background: #fdf2f8; border-color: #fbcfe8; }

.sched-shift-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem 0.35rem;
}
.sched-shift-time {
  font-weight: 700;
  font-size: 0.95rem;
  color: #18181b;
}
.sched-shift-name {
  font-size: 0.85rem;
  color: #52525b;
  margin-left: 0.35rem;
}

.sched-gantt-track {
  position: relative;
  height: 0.55rem;
  margin: 0.35rem 1rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  overflow: hidden;
}
.sched-gantt-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.28);
}
.tone-night .sched-gantt-bar { background: #8b5cf6; }
.tone-morning .sched-gantt-bar { background: #f59e0b; }
.tone-day .sched-gantt-bar { background: #10b981; }
.tone-evening .sched-gantt-bar { background: #ec4899; }

.sched-emp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.sched-emp-card {
  background: #fff;
  border: 1px solid rgba(24, 24, 27, 0.06);
  border-radius: 0.9rem;
  padding: 0.8rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.sched-emp-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.sched-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tone-night .sched-avatar { background: #ede9fe; color: #6d28d9; }
.tone-morning .sched-avatar { background: #fef3c7; color: #b45309; }
.tone-evening .sched-avatar { background: #fce7f3; color: #be185d; }

.sched-card-action {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  color: #a1a1aa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sched-card-action:hover { background: #f4f4f5; color: #18181b; }
.sched-card-action.danger:hover { background: #fef2f2; color: #dc2626; }

.sched-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}
.sched-tag {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #f4f4f5;
  color: #52525b;
}

.sched-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  display: inline-block;
}
.sched-dot.tone-night { background: #8b5cf6; }
.sched-dot.tone-morning { background: #f59e0b; }
.sched-dot.tone-day { background: #10b981; }
.sched-dot.tone-evening { background: #ec4899; }

/* ===== App shell (fullscreen) ===== */
.app-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.app-sidebar-wrap {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .app-sidebar-wrap {
    width: 17.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
  }
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(16, 185, 129, 0.12), transparent 55%),
    linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: var(--sidebar-text);
  border-right: 1px solid var(--sidebar-border);
}

.app-sidebar-top {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0.9rem 0.75rem;
  overflow: hidden;
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.15rem 0.35rem 1.1rem;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 0.85rem;
}

.app-sidebar-logo {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0d6b63, #10b981);
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.app-sidebar-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sidebar-text-strong);
  line-height: 1.15;
}

.app-sidebar-subtitle {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar-lang {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sidebar-border);
  border-radius: 0.45rem;
  padding: 0.28rem 0.45rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-sidebar-lang:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
  padding-right: 0.15rem;
  flex: 1;
  min-height: 0;
}

.app-sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.app-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
}

.nav-item,
.nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  padding: 0.62rem 0.75rem;
  border-radius: 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link {
  color: var(--sidebar-text);
}

.nav-link:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-strong);
}

.nav-link-active {
  background: var(--sidebar-active);
  color: #fff;
  box-shadow: 0 8px 18px rgba(13, 107, 99, 0.28);
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-group-chevron {
  color: #64748b;
  transition: transform 0.2s ease;
}

.nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0.15rem 0 0.35rem 0.55rem;
  padding-left: 0.7rem;
  border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-subitem {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  font-size: 0.82rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-sublink {
  color: #94a3b8;
}

.nav-sublink:hover {
  background: var(--sidebar-hover);
  color: #e2e8f0;
}

.sched-nav-active {
  background: var(--sidebar-active-soft) !important;
  color: #6ee7b7 !important;
  font-weight: 600;
}

.sched-nav-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  white-space: nowrap;
}

.app-sidebar-bottom {
  padding: 0.75rem 0.9rem 1rem;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.12);
}

.app-sidebar-rate {
  border-radius: 0.75rem;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--sidebar-border);
}

.app-sidebar-rate-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.app-sidebar-rate-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sidebar-text-strong);
  letter-spacing: -0.01em;
}

.app-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.15rem 0.1rem;
}

.app-sidebar-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ecfdf5;
  background: linear-gradient(145deg, #0d6b63, #059669);
  flex-shrink: 0;
}

.app-sidebar-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sidebar-text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar-user-role {
  font-size: 0.7rem;
  color: #64748b;
}

.app-sidebar-logout {
  margin-left: auto;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  color: #94a3b8;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-sidebar-logout:hover {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

.app-main {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
}

/* ===== Schedule staff modal ===== */
.sched-staff-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}
.sched-staff-modal-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ccfbf1;
  color: #0d9488;
  flex-shrink: 0;
}
.sched-staff-close {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  color: #94a3b8;
  transition: background 0.15s ease, color 0.15s ease;
}
.sched-staff-close:hover {
  background: #f4f4f5;
  color: #3f3f46;
}
.sched-staff-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #3f3f46;
  margin-bottom: 0.15rem;
}
.sched-label-ico {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
}
.sched-label-ico.day { color: #ea580c; }
.sched-label-ico.night { color: #7c3aed; }
.sched-label-ico.mint { color: #059669; }
.sched-staff-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #e4e4e7;
  border-radius: 0.8rem;
  font-size: 0.875rem;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sched-staff-input:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.sched-staff-select-wrap {
  position: relative;
}
.sched-staff-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  cursor: pointer;
}
.sched-staff-select-chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a1a1aa;
  pointer-events: none;
}
.sched-staff-hours-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.85rem;
}
.sched-staff-hours-grid .sched-staff-label {
  font-size: 0.72rem;
  line-height: 1.25;
  min-height: 1.7rem;
  align-items: flex-start;
}
.sched-shift-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .sched-shift-pills {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.sched-shift-pill {
  padding: 0.65rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #52525b;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.sched-shift-pill:hover {
  border-color: #99f6e4;
  color: #0f766e;
}
.sched-shift-pill.active {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.28);
}
.sched-market-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.sched-market-chip {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #52525b;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.sched-market-chip:hover {
  border-color: #99f6e4;
}
.sched-market-chip.active {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}
.sched-market-add {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
}
.sched-market-add .sched-staff-input {
  flex: 1;
}
.sched-market-add-btn {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.8rem;
  background: #0d9488;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.25);
}
.sched-market-add-btn:hover { background: #0f766e; }
.sched-earn-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.05rem;
  border-radius: 1rem;
  background: #111827;
  border: 2px solid #0d9488;
}
.sched-earn-ico {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: rgba(13, 148, 136, 0.2);
  color: #2dd4bf;
  flex-shrink: 0;
}
.sched-earn-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2dd4bf;
}
.sched-earn-formula {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}
.sched-earn-total {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2dd4bf;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.sched-staff-modal-foot {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}
.sched-staff-btn-cancel {
  padding: 0.7rem 1.1rem;
  border-radius: 0.8rem;
  background: #f4f4f5;
  color: #3f3f46;
  font-size: 0.875rem;
  font-weight: 600;
}
.sched-staff-btn-cancel:hover { background: #e4e4e7; }
.sched-staff-btn-save {
  padding: 0.7rem 1.15rem;
  border-radius: 0.8rem;
  background: #0d9488;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.28);
}
.sched-staff-btn-save:hover { background: #0f766e; }

/* ===== Extra hours page ===== */
.sched-stat-icon.tone-day {
  background: #fff7ed;
  color: #ea580c;
}
.sched-extra-log-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.sched-extra-log-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}
.sched-extra-log-ico {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #059669;
}
.sched-extra-filter {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 0.75rem;
  background: #f4f4f5;
  gap: 0.15rem;
}
.sched-extra-filter-btn {
  padding: 0.45rem 0.75rem;
  border-radius: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #71717a;
}
.sched-extra-filter-btn.active {
  background: #059669;
  color: #fff;
}
.sched-hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.sched-hours-badge.tone-day {
  background: #fff7ed;
  color: #c2410c;
}
.sched-hours-badge.tone-night {
  background: #ede9fe;
  color: #6d28d9;
}
.sched-hours-zero {
  color: #a1a1aa;
  font-size: 0.85rem;
  font-weight: 600;
}
.sched-pay-chip {
  display: inline-flex;
  min-width: 4.5rem;
  justify-content: center;
  padding: 0.3rem 0.55rem;
  border-radius: 0.55rem;
  background: #f4f4f5;
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: #18181b;
}
.sched-avatar.sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.65rem;
}
.sched-extra-row:hover {
  background: #fafafa;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Payroll summary ===== */
.sched-payroll-export {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem;
  border-radius: 0.8rem;
  background: #3f3f46;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}
.sched-payroll-export:hover { background: #27272a; }
.sched-stat-card.tone-teal-solid {
  background: linear-gradient(145deg, #0f766e, #0d9488);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.28);
}
.sched-stat-card.tone-teal-solid .sched-stat-label { color: rgba(204, 251, 241, 0.9); }
.sched-stat-card.tone-teal-solid .sched-stat-value { color: #fff; }
.sched-stat-card.tone-teal-solid .sched-stat-amd { color: rgba(204, 251, 241, 0.85); }
.sched-stat-icon.tone-slate {
  background: #f4f4f5;
  color: #52525b;
}
.sched-stat-icon.tone-red {
  background: #fef2f2;
  color: #dc2626;
}
.sched-amt-pos {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.sched-amt-neg {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.sched-total-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 0.7rem;
  background: #18181b;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.15;
  white-space: nowrap;
}
.sched-total-chip.solid {
  background: #0d9488;
}
.sched-payroll-toggle {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: inline-grid;
  place-items: center;
  color: #71717a;
  border: 1px solid #e4e4e7;
  background: #fff;
}
.sched-payroll-toggle:hover {
  background: #f4f4f5;
  color: #18181b;
}
.sched-payroll-row:nth-child(4n+3) {
  background: #fafafa;
}
.sched-payroll-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
}
@media (min-width: 768px) {
  .sched-payroll-detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.sched-payroll-detail-grid .label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}
.sched-payroll-detail-grid .val {
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}
.sched-payroll-foot {
  background: #f4f4f5;
  border-top: 1px solid #e4e4e7;
}
.sched-payroll-foot td {
  font-size: 0.85rem;
}

/* ===== Schedule settings ===== */
.sched-settings-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.sched-settings-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}
.sched-settings-hero-ico {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #0d9488;
  flex-shrink: 0;
}
.sched-settings-hero-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #18181b;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.sched-settings-hero-desc {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  color: #71717a;
  line-height: 1.45;
  max-width: 42rem;
}
.sched-settings-restore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid #e4e4e7;
  background: #f4f4f5;
  color: #3f3f46;
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
}
.sched-settings-restore:hover { background: #e4e4e7; }
.sched-settings-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 1100px) {
  .sched-settings-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
}
.sched-settings-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 1rem;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.sched-settings-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.05rem;
}
.sched-settings-card-ico {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #0d9488;
  flex-shrink: 0;
}
.sched-settings-card-ico.tone-euro {
  background: #eff6ff;
  color: #2563eb;
}
.sched-settings-card-head h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #18181b;
}
.sched-settings-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .sched-settings-fields {
    grid-template-columns: 1fr 1fr;
  }
}
.sched-settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sched-field-help {
  font-size: 0.74rem;
  color: #a1a1aa;
  line-height: 1.35;
}
.sched-rate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .sched-rate-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.sched-rate-box {
  border-radius: 0.95rem;
  padding: 1rem;
  border: 1px solid transparent;
}
.sched-rate-box.day {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 55%);
  border-color: #fde68a;
}
.sched-rate-box.night {
  background: linear-gradient(180deg, #f5f3ff 0%, #fff 55%);
  border-color: #ddd6fe;
}
.sched-rate-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.sched-rate-box.day .sched-rate-label { color: #c2410c; }
.sched-rate-box.night .sched-rate-label { color: #6d28d9; }
.sched-rate-ico {
  display: inline-grid;
  place-items: center;
}
.sched-rate-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sched-rate-input {
  width: 100%;
  border: 1px solid #e4e4e7;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.8rem 5.2rem 0.8rem 0.9rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #18181b;
  outline: none;
}
.sched-rate-input:focus {
  border-color: #99f6e4;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.sched-rate-unit {
  position: absolute;
  right: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #a1a1aa;
  pointer-events: none;
}
.sched-rate-hint {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.sched-rate-box.day .sched-rate-hint { color: #ea580c; }
.sched-rate-box.night .sched-rate-hint { color: #7c3aed; }
.sched-settings-preview {
  background: linear-gradient(165deg, #0b1220 0%, #111827 55%, #0f172a 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.28);
}
.sched-settings-preview-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
  color: #5eead4;
}
.sched-settings-preview-head h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f8fafc;
}
.sched-preview-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.sched-preview-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.sched-preview-row .label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}
.sched-preview-row .sub {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #94a3b8;
}
.sched-preview-row .value {
  text-align: right;
}
.sched-preview-row .value strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #34d399;
}
.sched-preview-row .value .amd {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: #94a3b8;
}
.sched-preview-row.diff .value strong {
  color: #6ee7b7;
}
.sched-settings-tips {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.sched-settings-tips-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.sched-settings-tips-ico {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: #2563eb;
}
.sched-settings-tips h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #18181b;
}
.sched-settings-tips ol {
  list-style: decimal;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #71717a;
  line-height: 1.45;
}
/* ===== Mobile shell, drawer, card tables ===== */
.mobile-topbar-wrap,
.mobile-topbar {
  display: none;
}

.mobile-nav-backdrop {
  display: none;
}

.sidebar-close-btn {
  display: none;
}

body.mobile-nav-locked {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 767px) {
  .mobile-topbar-wrap {
    display: block;
    position: sticky;
    top: 0;
    z-index: 45;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.5rem;
    padding: 0.55rem 0.75rem;
    padding-top: calc(0.55rem + env(safe-area-inset-top, 0px));
    background:
      radial-gradient(120% 120% at 0% 0%, rgba(16, 185, 129, 0.16), transparent 55%),
      linear-gradient(180deg, #121926 0%, #0f1623 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    color: #f1f5f9;
  }

  .mobile-topbar-btn,
  .sidebar-close-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.7rem;
    display: grid;
    place-items: center;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.12);
    flex-shrink: 0;
  }

  .mobile-topbar-btn:active,
  .sidebar-close-btn:active {
    background: rgba(255, 255, 255, 0.12);
  }

  .mobile-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    flex: 1;
  }

  .mobile-topbar-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #0d6b63, #10b981);
    color: #fff;
    flex-shrink: 0;
  }

  .mobile-topbar-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
  }

  .mobile-topbar-page {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
  }

  .mobile-topbar-lang {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0.45rem;
    padding: 0.35rem 0.5rem;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 48;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .app-shell.nav-open .mobile-nav-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .app-sidebar-wrap {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(20rem, 88vw);
    z-index: 50;
    height: 100vh;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: none;
  }

  .app-shell.nav-open .app-sidebar-wrap {
    transform: translateX(0);
    box-shadow: 16px 0 40px rgba(15, 23, 42, 0.28);
  }

  .app-sidebar {
    min-height: 100%;
    height: 100%;
    border-right: none;
  }

  .app-sidebar-brand {
    padding-top: calc(0.15rem + env(safe-area-inset-top, 0px));
  }

  .app-sidebar-lang {
    display: none;
  }

  .sidebar-close-btn {
    display: grid;
    margin-left: 0.35rem;
  }

  .app-main {
    min-height: calc(100vh - 3.5rem);
    min-height: calc(100dvh - 3.5rem);
  }

  .nav-item,
  .nav-group-toggle,
  .nav-subitem {
    min-height: 2.75rem;
  }

  /* Card-style tables on phones */
  .mobile-card-list {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  .mobile-card-table thead {
    display: none;
  }

  .mobile-card-table,
  .mobile-card-table tbody,
  .mobile-card-table tfoot {
    display: block;
    width: 100%;
  }

  .mobile-card-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.15rem 0 0.35rem;
  }

  .mobile-card-table tr.mobile-card-row,
  .mobile-card-table tbody > tr:not(.mobile-card-empty) {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 0.35rem 0.85rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  }

  .mobile-card-table tr.mobile-card-row:hover,
  .mobile-card-table .data-row:hover,
  .mobile-card-table .time-entry-row:hover,
  .mobile-card-table .my-hours-entry-row:hover {
    background: #fff;
    color: inherit;
  }

  .mobile-card-table tr.mobile-card-row:hover .expense-tax-code,
  .mobile-card-table tr.mobile-card-row:hover .expense-category-badge {
    color: inherit;
  }

  .mobile-card-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.55rem 0 !important;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    text-align: right;
  }

  .mobile-card-table td:last-child {
    border-bottom: none;
  }

  .mobile-card-table td::before {
    content: attr(data-label);
    flex: 0 1 auto;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    max-width: 45%;
  }

  .mobile-card-table td:not([data-label])::before,
  .mobile-card-table td[data-label=""]::before {
    display: none;
  }

  .mobile-card-table td.mobile-card-actions {
    justify-content: flex-end;
  }

  .mobile-card-table td.mobile-card-actions::before {
    margin-right: auto;
  }

  .mobile-card-table .hourly-salary-input {
    width: 7.5rem;
  }

  .mobile-card-table tr.mobile-card-empty,
  .mobile-card-table tr#my-hours-empty-row {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 0.5rem;
  }

  .mobile-card-table tr.mobile-card-empty td,
  .mobile-card-table tr#my-hours-empty-row td {
    display: block;
    text-align: center;
    border: none;
  }

  .mobile-card-table tr.mobile-card-empty td::before,
  .mobile-card-table tr#my-hours-empty-row td::before {
    display: none;
  }

  .mobile-card-table tfoot {
    margin-top: 0.75rem;
  }

  .mobile-card-table tfoot tr.mobile-card-foot {
    display: block;
    border-radius: 1rem;
    padding: 0.35rem 0.85rem;
    overflow: hidden;
  }

  .mobile-card-table tfoot td {
    border-bottom-color: rgba(255, 255, 255, 0.12);
    color: inherit;
  }

  .mobile-card-table tfoot td::before {
    color: #a1a1aa;
  }

  .mobile-toolbar-controls {
    width: 100%;
  }

  .taxes-tabs {
    display: flex;
    width: 100%;
  }

  .taxes-tab {
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }

  .sched-page-head h3 {
    font-size: 1.35rem !important;
  }

  .sched-toolbar {
    align-items: stretch;
  }

  .sched-view-toggle {
    width: 100%;
    margin-left: 0 !important;
  }

  .sched-view-btn {
    flex: 1;
    justify-content: center;
  }

  .sched-view-btn span {
    display: none;
  }

  .sched-btn-primary:not(.sched-btn-add-staff) {
    width: 100%;
    justify-content: center;
  }

  .sched-shifts-actions {
    width: 100%;
  }

  .sched-btn-add-staff {
    width: auto;
    margin-left: auto;
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .flatpickr-calendar {
    max-width: calc(100vw - 1.5rem);
  }

  .modal-inner {
    max-width: calc(100vw - 1.5rem);
  }
}

@media (min-width: 768px) {
  .mobile-topbar-wrap,
  .mobile-topbar,
  .mobile-nav-backdrop,
  .sidebar-close-btn {
    display: none !important;
  }
}

/* ===== Toast notifications ===== */
.office-toast-root {
  position: fixed;
  top: calc(0.85rem + env(safe-area-inset-top, 0px));
  right: calc(0.85rem + env(safe-area-inset-right, 0px));
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  width: min(22rem, calc(100vw - 1.5rem));
  pointer-events: none;
}

.office-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  padding: 0.8rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
  animation: officeToastIn 0.22s ease;
}

.office-toast-leave {
  animation: officeToastOut 0.2s ease forwards;
}

.office-toast-icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.office-toast-message {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.35;
  color: #18181b;
}

.office-toast-close {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.45rem;
  display: grid;
  place-items: center;
  color: #a1a1aa;
  flex-shrink: 0;
}

.office-toast-close:hover {
  background: rgba(24, 24, 27, 0.06);
  color: #52525b;
}

.office-toast-success {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 55%);
}
.office-toast-success .office-toast-icon {
  background: #d1fae5;
  color: #047857;
}

.office-toast-error {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fef2f2 0%, #fff 55%);
}
.office-toast-error .office-toast-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.office-toast-info {
  border-color: #e4e4e7;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 55%);
}
.office-toast-info .office-toast-icon {
  background: #e2e8f0;
  color: #334155;
}

.office-toast-warning {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 55%);
}
.office-toast-warning .office-toast-icon {
  background: #fef3c7;
  color: #b45309;
}

@keyframes officeToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes officeToastOut {
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

@media (max-width: 767px) {
  .office-toast-root {
    top: calc(4.1rem + env(safe-area-inset-top, 0px));
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    align-items: stretch;
  }
}
