@font-face {
      font-family: "Anticva";
      src: url("../../fonts/Anticva-Regular.otf") format("opentype");
      font-display: swap;
    }

    html, body {
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      scroll-behavior: smooth;
    }

    :root {
      --glow-primary: rgba(99, 102, 241, 0.5);
      --glow-secondary: rgba(56, 189, 248, 0.4);
      --glow-accent: rgba(168, 85, 247, 0.3);
      --glass-border: rgba(255, 255, 255, 0.08);
      --glass-bg: rgba(15, 23, 42, 0.6);
      --card-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
      --card-shadow-hover: 0 35px 70px -30px var(--glow-primary), 0 0 0 1px rgba(255, 255, 255, 0.1);
      --header-h: 56px;
    }

    body {
      position: relative;
      overflow-x: hidden;
      background: #020617;
      background-image:
        radial-gradient(900px 500px at 15% 10%, rgba(99, 102, 241, 0.18), transparent 60%),
        radial-gradient(700px 420px at 85% 20%, rgba(56, 189, 248, 0.15), transparent 60%),
        radial-gradient(900px 520px at 50% 90%, rgba(168, 85, 247, 0.12), transparent 60%);
    }

    body::before {
      content: "";
      position: fixed;
      inset: -25%;
      pointer-events: none;
      z-index: 0;
      background:
        radial-gradient(circle at 20% 25%, rgba(99, 102, 241, 0.4), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(56, 189, 248, 0.3), transparent 45%),
        radial-gradient(circle at 55% 85%, rgba(168, 85, 247, 0.2), transparent 45%);
      filter: blur(70px);
      opacity: 0.6;
      animation: bgFloat 18s ease-in-out infinite alternate;
    }

    body::after {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background-image: radial-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px);
      background-size: 28px 28px;
      opacity: 0.2;
      mask-image: radial-gradient(circle at 50% 20%, #000 30%, transparent 80%);
    }

    @keyframes bgFloat {
      0% { transform: translate3d(-2%, -2%, 0) scale(1); }
      100% { transform: translate3d(3%, 3%, 0) scale(1.08); }
    }

    .reveal {
      opacity: 0;
      transform: translateY(24px);
      filter: blur(8px);
      transition: opacity 800ms cubic-bezier(0.2, 0.9, 0.3, 1),
                  transform 800ms cubic-bezier(0.2, 0.9, 0.3, 1),
                  filter 800ms cubic-bezier(0.2, 0.9, 0.3, 1);
      will-change: opacity, transform, filter;
    }
    body.is-loaded .reveal {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
    .reveal:nth-child(1) { transition-delay: 0.05s; }
    .reveal:nth-child(2) { transition-delay: 0.15s; }
    .reveal:nth-child(3) { transition-delay: 0.25s; }

    .glass-card {
      position: relative;
      overflow: hidden;
      backdrop-filter: blur(16px) saturate(180%);
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      box-shadow: var(--card-shadow);
      transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    }
    .glass-card::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0;
      background:
        radial-gradient(600px 200px at 20% 0%, rgba(99, 102, 241, 0.3), transparent 60%),
        radial-gradient(500px 220px at 80% 10%, rgba(56, 189, 248, 0.25), transparent 60%);
      transition: opacity 0.5s ease;
    }
    .glass-card:hover { border-color: rgba(99, 102, 241, 0.3); box-shadow: var(--card-shadow-hover); }
    .glass-card:hover::before { opacity: 1; }

    .hover-lift {
      transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.4, 1), box-shadow 0.3s ease;
    }
    .hover-lift:hover { transform: translateY(-6px); }

    .input-glass {
      background: rgba(2, 6, 23, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(8px);
      transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
    }
    .input-glass:hover { background: rgba(2, 6, 23, 0.7); border-color: rgba(99, 102, 241, 0.3); }
    .input-glass:focus {
      outline: none;
      border-color: rgba(99, 102, 241, 0.8);
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 10px 30px -20px rgba(99, 102, 241, 0.6);
      background: rgba(2, 6, 23, 0.8);
      transform: translateY(-2px);
    }

    select.ui-select {
      appearance: none;
      -webkit-appearance: none;
      background-color: rgba(2, 6, 23, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: rgba(226, 232, 240, 0.95);
      border-radius: 1rem;
      padding: 8px 36px 8px 16px;
      font-size: 0.9rem;
      line-height: 1.2;
      outline: none;
      backdrop-filter: blur(8px);
      transition: all 0.2s;
    }
    select.ui-select:hover { background-color: rgba(2, 6, 23, 0.8); border-color: rgba(99, 102, 241, 0.4); }
    select.ui-select:focus { border-color: rgba(99, 102, 241, 0.8); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
    select.ui-select option { background-color: #0b1220; color: rgba(226, 232, 240, 0.95); }

    .select-wrap { position: relative; display: inline-flex; align-items: center; }
    .select-wrap::after {
      content: "▾";
      position: absolute;
      right: 14px;
      color: rgba(148, 163, 184, 0.9);
      pointer-events: none;
      font-size: 14px;
      transform: translateY(1px);
    }

    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track { background: #111519; border-radius: 5px; }
    ::-webkit-scrollbar-thumb { background: #7a1638; border-radius: 5px; border: 2px solid #111519; }
    ::-webkit-scrollbar-thumb:hover { background: #a62a52; }
    * { scrollbar-width: thin; scrollbar-color: #7a1638 #111519; }

    .nav-link {
      position: relative;
      transition: color 0.2s;
      white-space: nowrap;
    }
    .nav-link::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 1rem;
      right: 1rem;
      height: 2px;
      background: linear-gradient(90deg, #6366f1, #38bdf8);
      border-radius: 2px;
      opacity: 0;
      transform: scaleX(0.7);
      transition: opacity 0.2s, transform 0.2s;
    }
    .nav-link.active::after,
    .nav-link:hover::after { opacity: 1; transform: scaleX(1); }

   .mobile-top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.125rem;
}

.mobile-top-nav a {
  white-space: nowrap;
}


@media (max-width: 640px) {
  .mobile-top-nav {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: calc(100vw - 92px);
    white-space: nowrap;
    touch-action: pan-x;
  }

  .mobile-top-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-top-nav a {
    flex: 0 0 auto;
    font-size: 0.72rem !important;
    padding: 5px 7px !important;
  }
}

    .scrollable {
      overflow-x: auto;
      border-radius: 1rem;
      margin-bottom: 1.25rem;
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
    }

    .timesheet-table {
      border-collapse: collapse;
      width: 100%;
      min-width: 720px;
      background: rgba(30, 41, 59, 0.5);
      backdrop-filter: blur(8px);
      border-radius: 1rem;
      overflow: hidden;
      box-shadow: 0 20px 60px -40px rgba(99,102,241,0.6);
    }
    .timesheet-table th {
      background: rgba(15, 23, 42, 0.8);
      padding: 10px 4px 8px;
      font-weight: 600;
      font-size: 0.88rem;
      color: #94a3b8;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      user-select: none;
      line-height: 1.2;
      text-align: center;
    }
    .timesheet-table td {
      padding: 10px 2px;
      text-align: center;
      border-right: 1px solid rgba(255,255,255,0.05);
      border-bottom: 1px solid rgba(255,255,255,0.05);
      transition: background 0.2s;
    }
    .timesheet-table td:last-child { border-right: none; }
    .timesheet-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

    .th-dow {
      display: block;
      font-size: 9px;
      font-weight: 400;
      opacity: 0.5;
      margin-top: 2px;
      letter-spacing: 0;
    }

    .timesheet-table .label-cell {
      position: sticky;
      left: 0;
      z-index: 3;
      background: rgba(12, 20, 44, 0.97);
      backdrop-filter: blur(12px);
      min-width: 46px;
      padding-left: 8px;
      padding-right: 6px;
      border-right: 1px solid rgba(255,255,255,0.10) !important;
      font-weight: 600;
      color: #cbd5e1;
      white-space: nowrap;
    }
    .timesheet-table thead .label-cell {
      z-index: 4;
      background: rgba(12, 20, 44, 0.97);
    }

    .weekend-col { background-color: rgba(239, 68, 68, 0.15) !important; }
    .holiday-col { background-color: rgba(245, 158, 11, 0.2) !important; }
    .transferred-col { background-color: rgba(59, 130, 246, 0.18) !important; }
    .timesheet-table th.weekend-col { background-color: rgba(239, 68, 68, 0.2) !important; }
    .timesheet-table th.holiday-col { background-color: rgba(245, 158, 11, 0.25) !important; }
    .timesheet-table th.transferred-col { background-color: rgba(59, 130, 246, 0.24) !important; color: rgba(191, 219, 254, 0.98) !important; }

    .input-hour {
      width: 54px;
      padding: 8px 4px;
      background: rgba(0,0,0,0.4);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 12px;
      color: white;
      text-align: center;
      font-size: max(16px, 0.9rem);
      text-transform: uppercase;
      transition: all 0.2s;
      backdrop-filter: blur(4px);
    }
    .input-hour:focus {
      outline: none;
      border-color: rgba(99,102,241,0.8);
      box-shadow: 0 0 0 2px rgba(99,102,241,0.3);
      background: rgba(0,0,0,0.6);
      transform: scale(1.02);
    }
    td.night-cell .input-hour { color: rgba(254,202,202,0.95); }

    td.shift-comment-cell { position: relative; }
    td.shift-comment-cell.has-shift-comment::after {
      content: ""; position: absolute; top: 2px; right: 2px; width: 0; height: 0;
      border-top: 10px solid rgb(56 189 248); border-left: 10px solid transparent;
      filter: drop-shadow(0 0 4px rgba(56,189,248,.55)); pointer-events: none; z-index: 3;
    }
    .shift-comment-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(2,6,23,.42); }
    .shift-comment-dialog { position: fixed; width: min(340px, calc(100vw - 24px)); border: 1px solid rgba(148,163,184,.22); border-radius: 16px; background: rgba(8,15,35,.98); box-shadow: 0 24px 70px rgba(0,0,0,.5); padding: 16px; color: #e2e8f0; }
    .shift-comment-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
    .shift-comment-message { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #cbd5e1; line-height: 1.55; }
    .shift-comment-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
    .shift-comment-button { border: 0; border-radius: 10px; padding: 8px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
    .shift-comment-button-secondary { background: rgba(255,255,255,.07); color: #cbd5e1; }
    @media (max-width: 700px) { .shift-comment-dialog { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; } }

    @media (max-width: 767px) {
      .input-hour { width: 50px; min-height: 44px; padding: 10px 2px; border-radius: 10px; }
      .timesheet-table th { padding: 8px 3px 6px; font-size: 0.8rem; }
      .timesheet-table td { padding: 8px 2px; }
    }

    @media (max-width: 640px) {
      .select-wrap::after { right: 10px; }
      select.ui-select { padding: 6px 30px 6px 12px; }
      .pt-safe { padding-top: 7rem; }
    }
    @media (min-width: 768px) { .pt-safe { padding-top: 6rem; } }

    #errorBox:not(.hidden) { animation: shake 0.3s ease-in-out; }
    @keyframes shake {
      0%,100% { transform: translateX(0); }
      20% { transform: translateX(-5px); }
      40% { transform: translateX(5px); }
      60% { transform: translateX(-3px); }
      80% { transform: translateX(3px); }
    }

    @media (prefers-reduced-motion: reduce) {
      * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    }

    #mobileBar {
      display: none;
    }
    @media (max-width: 767px) {
      #mobileBar {
        display: flex;
        flex-direction: column;
        gap: 6px;
        position: -webkit-sticky;
        position: sticky;
        top: calc(env(safe-area-inset-top, 0px) + 72px);
        z-index: 40;
        background: rgba(2, 6, 23, 0.96);
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: 16px;
        padding: 8px 10px;
        margin-bottom: 12px;
      }
    }

    .mbar-row {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: nowrap;
    }

    #mHolidayBtn.is-active {
      background: rgba(245, 158, 11, 0.22) !important;
      color: rgba(253, 186, 64, 1) !important;
      border-color: rgba(245, 158, 11, 0.45) !important;
    }
    #mTransferredBtn.is-active {
      background: rgba(59, 130, 246, 0.22) !important;
      color: rgba(147, 197, 253, 1) !important;
      border-color: rgba(59, 130, 246, 0.45) !important;
    }
    #mShortBtn.is-active {
      background: rgba(16, 185, 129, 0.2) !important;
      color: rgba(52, 211, 153, 1) !important;
      border-color: rgba(16, 185, 129, 0.45) !important;
    }

    .pay-results-wrap { position: relative; }
    .pay-results-wrap.is-hidden .pay-results-content {
      filter: blur(10px);
      user-select: none;
      pointer-events: none;
    }
    .pay-results-wrap .pay-results-mask {
      display: none;
      position: absolute;
      inset: 0;
      border-radius: 8px;
      background: rgba(11, 13, 15, 0.82);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(241, 238, 232, 0.14);
      align-items: center;
      justify-content: center;
      z-index: 5;
    }
    .pay-results-wrap.is-hidden .pay-results-mask { display: flex; }
    .pay-results-mask .mask-pill {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border-radius: 6px;
      background: #191e23;
      border: 1px solid rgba(198, 161, 91, 0.32);
      color: #f1eee8;
      font-size: 12px;
      font-weight: 600;
    }

    .payment-countdown {
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(56, 189, 248, 0.18);
      background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.13), rgba(99, 102, 241, 0.09)),
        rgba(15, 23, 42, 0.58);
    }

    .payment-countdown::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 1;
      background:
        radial-gradient(240px 120px at 15% 20%, rgba(56, 189, 248, 0.18), transparent 65%),
        radial-gradient(220px 130px at 85% 30%, rgba(99, 102, 241, 0.14), transparent 65%);
    }

    .payment-countdown > * {
      position: relative;
      z-index: 1;
    }

    .payment-countdown-value {
      font-variant-numeric: tabular-nums;
      color: rgba(224, 242, 254, 0.98);
    }

    .payment-countdown.is-today {
      border-color: rgba(52, 211, 153, 0.32);
      background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(14, 165, 233, 0.08)),
        rgba(15, 23, 42, 0.58);
    }

    #driver-page-overlay { background: rgba(2, 6, 23, 0.58) !important; backdrop-filter: blur(4px) !important; }
    #driver-highlighted-element-stage { background: transparent !important; box-shadow: none !important; }
    .driver-highlighted-element {
      background: transparent !important;
      border-radius: 18px !important;
      box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.95), 0 0 0 6px rgba(99, 102, 241, 0.18), 0 14px 34px rgba(15, 23, 42, 0.35) !important;
    }
    #driver-popover-item.alvisa-tour {
      background: linear-gradient(135deg, rgba(10, 19, 52, 0.96) 0%, rgba(20, 32, 74, 0.92) 55%, rgba(35, 24, 78, 0.90) 100%) !important;
      color: #eef2ff !important;
      border: 1px solid rgba(255, 255, 255, 0.10) !important;
      border-radius: 22px !important;
      padding: 18px !important;
      min-width: 280px !important;
      max-width: 360px !important;
      box-shadow: 0 24px 60px rgba(2, 6, 23, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(99, 102, 241, 0.14) !important;
    }
    #driver-popover-item.alvisa-tour .driver-popover-tip { display: none !important; }
    #driver-popover-item.alvisa-tour .driver-popover-title {
      color: #f8fbff !important; font-size: 1.06rem !important; font-weight: 700 !important;
      line-height: 1.35 !important; margin: 0 0 10px 0 !important; letter-spacing: -0.01em !important;
      font-family: Inter, system-ui, -apple-system, sans-serif !important;
    }
    #driver-popover-item.alvisa-tour .driver-popover-description {
      color: rgba(226, 232, 240, 0.92) !important; font-size: 0.94rem !important;
      line-height: 1.58 !important; font-weight: 400 !important; margin: 0 !important;
      font-family: Inter, system-ui, -apple-system, sans-serif !important;
    }
    #driver-popover-item.alvisa-tour .driver-popover-footer { display: block !important; margin-top: 18px !important; }
    #driver-popover-item.alvisa-tour .driver-popover-footer .driver-close-btn { float: left !important; }
    #driver-popover-item.alvisa-tour .driver-popover-footer .driver-btn-group,
    #driver-popover-item.alvisa-tour .driver-popover-footer .driver-close-only-btn { float: right !important; display: flex !important; gap: 10px !important; }
    #driver-popover-item.alvisa-tour .driver-popover-footer button {
      appearance: none !important; border: none !important; border-radius: 14px !important; min-height: 42px !important;
      padding: 8px 16px !important; font-size: 0.9rem !important; font-weight: 600 !important;
      font-family: Inter, system-ui, -apple-system, sans-serif !important; text-shadow: none !important;
      box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22) !important;
      transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease !important; cursor: pointer !important;
    }
    #driver-popover-item.alvisa-tour .driver-close-btn,
    #driver-popover-item.alvisa-tour .driver-prev-btn { background: rgba(255, 255, 255, 0.08) !important; color: #dbeafe !important; border: 1px solid rgba(255, 255, 255, 0.10) !important; }
    #driver-popover-item.alvisa-tour .driver-next-btn { background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%) !important; color: #ffffff !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; }
    #driver-popover-item.alvisa-tour .driver-close-btn:hover,
    #driver-popover-item.alvisa-tour .driver-prev-btn:hover { background: rgba(255, 255, 255, 0.12) !important; transform: translateY(-1px) !important; }
    #driver-popover-item.alvisa-tour .driver-next-btn:hover { background: linear-gradient(135deg, #7074ff 0%, #8b5cf6 100%) !important; transform: translateY(-1px) !important; box-shadow: 0 12px 28px rgba(99, 102, 241, 0.34) !important; }
    #driver-popover-item.alvisa-tour .driver-next-btn:active,
    #driver-popover-item.alvisa-tour .driver-prev-btn:active,
    #driver-popover-item.alvisa-tour .driver-close-btn:active { transform: translateY(0) !important; }

    .help-toggle {
      border-radius: 1.5rem;
    }

    .help-toggle summary {
      list-style: none;
    }

    .help-toggle summary::-webkit-details-marker {
      display: none;
    }

    .help-toggle-arrow {
      transition: transform 0.2s ease;
    }

    .help-toggle[open] .help-toggle-arrow {
      transform: rotate(180deg);
    }

    /* Premium timesheet workspace */
    :root {
      --alvisa-ink: #0b0d0f;
      --alvisa-graphite: #15191d;
      --alvisa-panel: #1a1f24;
      --alvisa-line: rgba(241, 238, 232, 0.11);
      --alvisa-muted: #9ca3ab;
      --alvisa-porcelain: #f1eee8;
      --alvisa-wine: #7a1638;
      --alvisa-steel: #6ea8e8;
      --alvisa-gold: #c6a15b;
    }

    body.timesheet-page {
      background: var(--alvisa-ink);
      background-image: none;
      color: var(--alvisa-porcelain);
    }

    body.timesheet-page::before,
    body.timesheet-page::after {
      display: none;
    }

    .timesheet-shell {
      max-width: 1440px;
    }

    .timesheet-heading {
      font-family: "Anticva", Georgia, serif;
      font-weight: 400;
      letter-spacing: 0;
      color: var(--alvisa-porcelain);
    }

    .timesheet-header {
      margin-bottom: 22px;
      padding-bottom: 22px;
      border-bottom: 1px solid var(--alvisa-line);
    }

    .timesheet-header-actions {
      align-items: stretch;
    }

    .timesheet-period-control {
      min-height: 44px;
      border: 1px solid var(--alvisa-line);
      border-radius: 8px;
      background: #111519;
      padding: 5px 7px 5px 12px;
      backdrop-filter: none;
    }

    select.ui-select {
      min-height: 32px;
      border: 0;
      border-radius: 6px;
      background-color: #1c2228;
      padding-top: 6px;
      padding-bottom: 6px;
      color: var(--alvisa-porcelain);
      backdrop-filter: none;
    }

    select.ui-select:hover,
    select.ui-select:focus {
      border-color: transparent;
      background-color: #252c33;
      box-shadow: none;
    }

    .timesheet-save-line {
      margin-top: 10px;
    }

    .timesheet-save-line #saveStatus {
      border: 0;
      border-radius: 0;
      background: transparent;
      padding: 0;
      color: var(--alvisa-muted);
      backdrop-filter: none;
    }

    .glass-card {
      overflow: visible;
      border: 1px solid var(--alvisa-line);
      border-radius: 10px !important;
      background: var(--alvisa-graphite);
      box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      transition: border-color 180ms ease, background-color 180ms ease;
    }

    .glass-card::before {
      display: none;
    }

    .glass-card:hover {
      border-color: rgba(241, 238, 232, 0.17);
      box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
    }

    .hover-lift:hover {
      transform: none;
    }

    .timesheet-guide-grid {
      gap: 14px;
      margin-bottom: 16px;
    }

    .timesheet-guide-grid > * {
      padding: 18px !important;
    }

    .timesheet-guide-grid summary {
      min-height: 46px;
      border: 0;
      border-radius: 7px;
      background: #111519;
      box-shadow: inset 3px 0 0 rgba(110, 168, 232, 0.72);
    }

    .timesheet-guide-grid h2 {
      background: none !important;
      color: var(--alvisa-porcelain) !important;
      -webkit-text-fill-color: currentColor;
    }

    .timesheet-guide-heading {
      font-family: "Anticva", Georgia, serif;
      font-size: 20px !important;
      font-weight: 400 !important;
      line-height: 1.15;
      letter-spacing: 0;
    }

    .timesheet-guide-copy {
      font-family: Inter, system-ui, -apple-system, sans-serif;
      font-size: 14px;
      line-height: 1.6;
      letter-spacing: 0;
      color: #c8c5bf;
    }

    .timesheet-guide-copy strong {
      font-family: inherit;
      font-size: inherit;
    }

    #leaveCodesHint > .grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 5px 14px;
    }

    #leaveCodesHint a,
    #helpPanel a {
      border-radius: 6px;
    }

    .input-glass {
      border: 1px solid rgba(241, 238, 232, 0.12);
      border-radius: 7px !important;
      background: #0e1215;
      backdrop-filter: none;
    }

    .input-glass:hover {
      border-color: rgba(110, 168, 232, 0.32);
      background: #11161a;
    }

    .input-glass:focus {
      border-color: rgba(110, 168, 232, 0.8);
      background: #11161a;
      box-shadow: 0 0 0 3px rgba(110, 168, 232, 0.12);
      transform: none;
    }

    .timesheet-grid-wrap {
      position: relative;
      margin-bottom: 16px;
      border: 1px solid rgba(110, 168, 232, 0.18);
      border-radius: 10px;
      background: #101418;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    }

    .timesheet-grid-wrap::before {
      content: "РАБОЧИЙ МЕСЯЦ";
      display: block;
      padding: 11px 14px;
      border-bottom: 1px solid var(--alvisa-line);
      color: #77818b;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.14em;
    }

    .scrollable {
      border-radius: 0 0 9px 9px;
      margin-bottom: 0;
      scrollbar-color: #7a1638 #111519;
    }

    .timesheet-table {
      min-width: 860px;
      border-radius: 0;
      background: #111519;
      box-shadow: none;
      backdrop-filter: none;
    }

    .timesheet-table th {
      height: 48px;
      border-color: var(--alvisa-line);
      background: #191e23;
      color: #b8c0c8;
      font-variant-numeric: tabular-nums;
    }

    .timesheet-table td {
      height: 58px;
      border-color: rgba(241, 238, 232, 0.07);
      background: #12171b;
    }

    .timesheet-table tbody tr:hover td {
      background: #151b20;
    }

    .timesheet-table .label-cell,
    .timesheet-table thead .label-cell {
      min-width: 62px;
      border-right-color: rgba(110, 168, 232, 0.22) !important;
      background: #191e23;
      color: var(--alvisa-porcelain);
    }

    .input-hour {
      width: 52px;
      min-height: 38px;
      border-radius: 6px !important;
      background: #0b0f12;
      font-variant-numeric: tabular-nums;
    }

    .input-hour:focus {
      border-color: var(--alvisa-steel);
      background: #10171d;
      box-shadow: 0 0 0 3px rgba(110, 168, 232, 0.15);
      transform: none;
    }

    td.night-cell .input-hour {
      color: #bcd8f6;
    }

    .weekend-col { background-color: rgba(122, 22, 56, 0.18) !important; }
    .holiday-col { background-color: rgba(198, 161, 91, 0.18) !important; }
    .transferred-col { background-color: rgba(110, 168, 232, 0.15) !important; }
    .timesheet-table th.weekend-col { background-color: rgba(122, 22, 56, 0.28) !important; }
    .timesheet-table th.holiday-col { background-color: rgba(198, 161, 91, 0.24) !important; }
    .timesheet-table th.transferred-col { background-color: rgba(110, 168, 232, 0.22) !important; }

    .timesheet-summary {
      display: grid;
      gap: 0 !important;
      padding: 0 !important;
      overflow: hidden;
      background: #15191d;
    }

    .timesheet-summary > div {
      min-width: 0;
      padding: 18px;
      border-right: 1px solid var(--alvisa-line);
      border-bottom: 1px solid var(--alvisa-line);
    }

    .timesheet-summary > div:last-child {
      border-right: 0;
    }

    .timesheet-summary > div > div:first-child {
      min-height: 34px;
      color: var(--alvisa-muted);
      font-size: 12px;
      line-height: 1.4;
    }

    .timesheet-summary > div > div:last-child {
      margin-top: 7px;
      color: var(--alvisa-porcelain);
      font-size: 24px;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
    }

    .timesheet-payments {
      padding: 22px !important;
      border-top: 2px solid rgba(198, 161, 91, 0.55);
    }

    .timesheet-payments > div:first-child > div:first-child {
      font-family: "Anticva", Georgia, serif;
      color: var(--alvisa-porcelain);
      font-size: 25px;
    }

    #payPeekBtn {
      border-radius: 7px;
      background: #101418;
    }

    #netPay {
      font-family: "Anticva", Georgia, serif;
      color: #ead3a5;
      font-variant-numeric: tabular-nums;
    }

    .pay-results-wrap.is-hidden {
      max-height: 180px;
      overflow: hidden;
      border-radius: 8px;
    }

    .pay-results-wrap:not(.is-hidden) {
      max-height: none;
      overflow: visible;
    }

    .pay-metrics-grid > .glass-card,
    #paymentCountdownCard {
      min-height: 104px;
      padding: 16px !important;
      border-radius: 8px !important;
      background: #111519 !important;
      box-shadow: none;
    }

    .pay-metrics-grid > .glass-card:nth-child(9),
    .pay-metrics-grid > .glass-card:nth-child(10) {
      border-color: rgba(198, 161, 91, 0.3);
    }

    .payment-countdown::before {
      display: none;
    }

    .actual-payments-panel {
      border: 1px solid var(--alvisa-line) !important;
      border-radius: 8px !important;
      background: #101418 !important;
    }

    .actual-payments-panel button {
      border-radius: 6px !important;
    }

    #mobileBar {
      border-radius: 8px;
      background: rgba(11, 13, 15, 0.96);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
      backdrop-filter: blur(12px);
    }

    #mobileBar button {
      border-radius: 6px;
    }

    @media (min-width: 1280px) {
      .timesheet-summary {
        grid-template-columns: repeat(7, minmax(0, 1fr));
      }
      .timesheet-summary > div {
        border-bottom: 0;
      }
    }

    @media (max-width: 1023px) {
      .timesheet-header-actions {
        width: 100%;
      }

      .timesheet-period-control {
        flex: 1 1 100%;
        justify-content: center;
      }
    }

    @media (max-width: 767px) {
      .timesheet-shell {
        padding-left: 12px;
        padding-right: 12px;
      }

      .timesheet-header {
        margin-bottom: 14px;
        padding-bottom: 16px;
      }

      .timesheet-heading {
        font-size: 29px !important;
      }

      .timesheet-header-actions > a,
      .timesheet-header-actions > button {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        text-align: center;
      }

      .timesheet-guide-grid > * {
        padding: 12px !important;
      }

      #leaveCodesHint > .grid {
        grid-template-columns: 1fr;
      }

      .timesheet-grid-wrap::before {
        padding: 9px 11px;
      }

      .timesheet-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .timesheet-summary > div:nth-child(2n) {
        border-right: 0;
      }

      .timesheet-summary > div:last-child {
        grid-column: span 2;
      }

      .timesheet-summary > div > div:first-child {
        min-height: 31px;
        font-size: 11px;
      }

      .timesheet-summary > div > div:last-child {
        font-size: 20px;
      }

      .timesheet-payments {
        padding: 16px !important;
      }

      .timesheet-payments > div:first-child > div:first-child {
        font-size: 22px;
      }

      #netPay {
        font-size: 36px !important;
      }

      .pay-metrics-grid > .glass-card,
      #paymentCountdownCard {
        min-height: 94px;
      }
    }

    .timesheet-view-toolbar {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 16px;
      margin-bottom: 12px;
      padding: 12px 14px;
      border: 1px solid var(--alvisa-line);
      border-radius: 9px;
      background: #111519;
    }

    .timesheet-view-switcher {
      display: inline-grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 3px;
      padding: 3px;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 7px;
      background: #090c0f;
    }

    .timesheet-work-filter {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      min-height: 42px;
      padding: 0 12px;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 7px;
      background: #0b0f12;
      color: #aeb6bd;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      user-select: none;
    }

    .timesheet-work-filter input {
      width: 17px;
      height: 17px;
      margin: 0;
      accent-color: #6ea8e8;
      cursor: pointer;
    }

    .timesheet-classic-day-hidden { display: none !important; }
    body.timesheet-classic-filtered #mobileBar { display: none !important; }

    .timesheet-view-button {
      min-height: 36px;
      border: 0;
      border-radius: 5px;
      padding: 7px 13px;
      background: transparent;
      color: #89939d;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      transition: background .18s ease, color .18s ease, box-shadow .18s ease;
    }

    .timesheet-view-button:hover { color: var(--alvisa-porcelain); }
    .timesheet-view-button.is-active {
      background: #20272d;
      color: #f1eee8;
      box-shadow: inset 0 0 0 1px rgba(110,168,232,.2);
    }

    .timesheet-alt-view[hidden],
    #classicTimesheetView[hidden],
    #timesheetDayEditor[hidden] { display: none !important; }

    .timesheet-calendar-shell,
    .timesheet-agenda-shell {
      margin-bottom: 20px;
      overflow: hidden;
      border: 1px solid var(--alvisa-line);
      border-radius: 9px;
      background: #111519;
    }

    .timesheet-calendar-weekdays {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      border-bottom: 1px solid var(--alvisa-line);
      background: #191e23;
    }

    .timesheet-calendar-weekdays span {
      padding: 10px 4px;
      color: #77818b;
      font-size: 10px;
      font-weight: 700;
      text-align: center;
      text-transform: uppercase;
    }

    .timesheet-calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .timesheet-calendar-spacer {
      min-height: 96px;
      border-right: 1px solid rgba(241,238,232,.06);
      border-bottom: 1px solid rgba(241,238,232,.06);
      background: #0d1114;
    }

    .timesheet-calendar-day {
      position: relative;
      min-width: 0;
      min-height: 96px;
      border: 0;
      border-right: 1px solid rgba(241,238,232,.07);
      border-bottom: 1px solid rgba(241,238,232,.07);
      padding: 10px;
      background: #12171b;
      color: #e8e6e0;
      text-align: left;
      cursor: pointer;
      transition: background .16s ease, box-shadow .16s ease;
    }

    .timesheet-calendar-day:hover { background: #182027; }
    .timesheet-calendar-day.is-weekend { background: rgba(122,22,56,.13); }
    .timesheet-calendar-day.is-holiday { background: rgba(198,161,91,.16); }
    .timesheet-calendar-day.is-transferred { background: rgba(110,168,232,.14); }
    .timesheet-calendar-day.is-short { box-shadow: inset 0 3px 0 rgba(99,190,151,.75); }
    .timesheet-calendar-day.is-today { box-shadow: inset 0 0 0 2px rgba(110,168,232,.75); z-index: 1; }
    .timesheet-calendar-day.is-rest { background: rgba(122,22,56,.14); }
    .timesheet-calendar-shell.is-work-filtered .timesheet-calendar-day.is-not-departure {
      opacity: .16;
      filter: grayscale(.9) saturate(.25);
    }
    .timesheet-calendar-shell.is-work-filtered .timesheet-calendar-day.is-not-departure:hover,
    .timesheet-calendar-shell.is-work-filtered .timesheet-calendar-day.is-not-departure:focus-visible {
      opacity: .48;
    }
    .timesheet-calendar-day.has-comment::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      width: 0;
      height: 0;
      border-top: 13px solid #6ea8e8;
      border-left: 13px solid transparent;
    }

    .timesheet-calendar-number {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 4px;
      color: #9da7b0;
      font-size: 12px;
      font-weight: 700;
    }

    .timesheet-calendar-value {
      display: grid;
      gap: 3px;
      margin-top: 10px;
      color: #f1eee8;
      font-size: 13px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      line-height: 1.2;
    }

    .timesheet-calendar-value .night { color: #bcd8f6; }
    .timesheet-calendar-value .leave { color: #ead3a5; }
    .timesheet-calendar-value .rest { color: #e3a8b8; }
    .timesheet-calendar-empty { color: #59636c; font-weight: 500; }

    .timesheet-agenda-list { display: grid; }
    .timesheet-agenda-day {
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr) auto;
      align-items: center;
      gap: 16px;
      min-width: 0;
      border: 0;
      border-bottom: 1px solid var(--alvisa-line);
      padding: 14px 16px;
      background: #111519;
      color: #f1eee8;
      text-align: left;
      cursor: pointer;
      transition: background .16s ease;
    }

    .timesheet-agenda-day:last-child { border-bottom: 0; }
    .timesheet-agenda-day:hover { background: #182027; }
    .timesheet-agenda-day.is-today { box-shadow: inset 3px 0 0 #6ea8e8; }
    .timesheet-agenda-day.is-holiday { background: rgba(198,161,91,.11); }
    .timesheet-agenda-day.is-transferred { background: rgba(110,168,232,.1); }
    .timesheet-agenda-day.is-rest { background: rgba(122,22,56,.12); }
    .timesheet-agenda-day.is-rest .timesheet-agenda-shift strong { color: #e3a8b8; }
    .timesheet-agenda-date strong { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
    .timesheet-agenda-date span { color: #77818b; font-size: 11px; }
    .timesheet-agenda-shift { min-width: 0; }
    .timesheet-agenda-shift strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
    .timesheet-agenda-shift span { display: block; margin-top: 3px; overflow: hidden; color: #89939d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
    .timesheet-agenda-status { color: #6ea8e8; font-size: 11px; font-weight: 700; text-align: right; }

    .timesheet-filter-empty {
      grid-column: 1 / -1;
      padding: 36px 18px;
      background: #111519;
      color: #77818b;
      font-size: 13px;
      text-align: center;
    }

    .timesheet-day-editor-backdrop {
      position: fixed;
      inset: 0;
      z-index: 1200;
      display: grid;
      place-items: center;
      padding: 16px;
      background: rgba(4,6,8,.76);
      backdrop-filter: blur(8px);
    }

    .timesheet-day-editor-dialog {
      width: min(460px, 100%);
      overflow: hidden;
      border: 1px solid rgba(110,168,232,.24);
      border-radius: 10px;
      background: #111519;
      box-shadow: 0 28px 90px rgba(0,0,0,.58);
    }

    .timesheet-day-editor-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 16px 18px;
      border-bottom: 1px solid var(--alvisa-line);
      background: #191e23;
    }

    .timesheet-day-editor-head h2 { margin: 0; font-family: "Anticva", Georgia, serif; font-size: 23px; font-weight: 400; }
    .timesheet-day-editor-close { border: 0; background: transparent; color: #9da7b0; font-size: 25px; cursor: pointer; }
    .timesheet-day-editor-body { display: grid; gap: 16px; padding: 18px; }
    .timesheet-day-editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .timesheet-day-editor-field { display: grid; gap: 7px; color: #89939d; font-size: 11px; font-weight: 700; text-transform: uppercase; }
    .timesheet-day-editor-input { width: 100%; min-width: 0; border: 1px solid rgba(255,255,255,.11); border-radius: 7px; padding: 12px; background: #090c0f; color: #f1eee8; font-size: 17px; text-align: center; text-transform: uppercase; outline: none; }
    .timesheet-day-editor-input:focus { border-color: #6ea8e8; box-shadow: 0 0 0 3px rgba(110,168,232,.13); }
    .timesheet-day-editor-marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .timesheet-day-editor-mark { min-height: 40px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; background: #151a1f; color: #9da7b0; font-size: 11px; font-weight: 700; cursor: pointer; }
    .timesheet-day-editor-mark.is-active { border-color: rgba(110,168,232,.5); background: rgba(110,168,232,.15); color: #d9ebff; }
    .timesheet-day-editor-comment { padding: 12px; border-left: 2px solid #6ea8e8; background: #0d1114; color: #c3cad0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
    .timesheet-day-editor-unavailable { min-height: 42px; border: 1px solid rgba(190,55,91,.42); border-radius: 6px; background: rgba(122,22,56,.17); color: #f0b7c6; font-size: 12px; font-weight: 750; cursor: pointer; }
    .timesheet-day-editor-unavailable:hover { border-color: rgba(221,91,126,.65); background: rgba(122,22,56,.28); color: #ffe6ed; }
    .timesheet-day-editor-unavailable:disabled { cursor: wait; opacity: .58; }
    .timesheet-day-editor-replacement { min-height: 42px; border: 1px solid rgba(91,168,148,.42); border-radius: 6px; background: rgba(31,112,91,.14); color: #aee4d4; font-size: 12px; font-weight: 750; cursor: pointer; }
    .timesheet-day-editor-replacement:hover { border-color: rgba(111,204,179,.62); background: rgba(31,112,91,.24); color: #dcfff5; }
    .timesheet-day-editor-replacement:disabled { cursor: wait; opacity: .58; }
    .timesheet-day-editor-hint { color: #77818b; font-size: 11px; line-height: 1.5; }

    .timesheet-icon-action {
      position: relative;
      display: inline-grid;
      flex: 0 0 42px;
      width: 42px;
      height: 42px;
      place-items: center;
      border: 1px solid rgba(241,238,232,.14);
      border-radius: 7px;
      background: #111519;
      color: #c8c3bc;
      cursor: pointer;
      transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
    }
    .timesheet-icon-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .timesheet-icon-action:hover { border-color: rgba(241,238,232,.3); background: #1a2025; color: #f1eee8; }
    .timesheet-icon-action:active { transform: scale(.96); }
    .timesheet-icon-action:disabled { cursor: not-allowed; opacity: .42; }
    .timesheet-icon-action-department { border-color: rgba(152,115,194,.35); color: #c9abe8; }
    .timesheet-icon-action-save { border-color: rgba(198,161,91,.38); color: #e2c785; }
    .timesheet-icon-action-calendar { border-color: rgba(110,168,232,.36); color: #9ac4f2; }
    .timesheet-icon-action-replacement { border-color: rgba(91,168,148,.4); color: #9bdcca; }
    .timesheet-icon-action-unavailable { border-color: rgba(190,55,91,.42); color: #efa9bd; }
    .timesheet-icon-action::after {
      content: attr(data-tooltip);
      position: absolute;
      z-index: 80;
      top: calc(100% + 8px);
      left: 50%;
      width: max-content;
      max-width: 210px;
      padding: 7px 9px;
      border: 1px solid rgba(241,238,232,.14);
      border-radius: 5px;
      background: #080a0b;
      color: #f1eee8;
      font-size: 11px;
      font-weight: 700;
      line-height: 1.2;
      opacity: 0;
      pointer-events: none;
      transform: translate(-50%, -3px);
      transition: opacity .14s ease, transform .14s ease;
    }
    .timesheet-icon-action:hover::after,
    .timesheet-icon-action:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
    .timesheet-icon-action.hidden { display: none; }

    .shift-replacement-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; background: rgba(4,6,8,.78); backdrop-filter: blur(8px); }
    .shift-replacement-overlay[hidden] { display: none; }
    .shift-replacement-dialog { width: min(520px,100%); max-height: min(720px,calc(100dvh - 36px)); overflow: hidden; border: 1px solid rgba(241,238,232,.16); border-radius: 9px; background: #13171a; box-shadow: 0 28px 90px rgba(0,0,0,.58); color: #f1eee8; }
    .shift-replacement-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 20px 16px; border-bottom: 1px solid rgba(241,238,232,.1); }
    .shift-replacement-head h2 { margin: 4px 0 0; font-family: "Anticva",Georgia,serif; font-size: 25px; font-weight: 400; }
    .shift-replacement-kicker { color: #9bdcca; font-size: 10px; font-weight: 800; text-transform: uppercase; }
    .shift-replacement-close { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(241,238,232,.14); border-radius: 6px; background: transparent; color: #aeb5ba; font-size: 22px; cursor: pointer; }
    .shift-replacement-close:hover { border-color: rgba(241,238,232,.28); color: #fff; }
    .shift-replacement-intro { margin: 0; padding: 15px 20px; color: #aeb5ba; font-size: 12px; line-height: 1.55; }
    .shift-replacement-list { display: grid; gap: 8px; max-height: min(430px,50dvh); overflow: auto; padding: 0 20px 16px; }
    .shift-replacement-person { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 13px 14px; border: 1px solid rgba(241,238,232,.1); border-radius: 7px; background: #0e1215; }
    .shift-replacement-name { min-width: 0; color: #f1eee8; font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
    .shift-replacement-badge { flex: 0 0 auto; border: 1px solid rgba(91,168,148,.32); border-radius: 4px; padding: 5px 7px; background: rgba(31,112,91,.13); color: #aee4d4; font-size: 10px; font-weight: 800; }
    .shift-replacement-badge.is-recovery { border-color: rgba(198,161,91,.34); background: rgba(198,161,91,.1); color: #dec58f; }
    .shift-replacement-empty { padding: 18px; border: 1px dashed rgba(241,238,232,.14); border-radius: 7px; color: #949ca2; font-size: 12px; line-height: 1.55; text-align: center; }
    .shift-replacement-note { margin: 0; padding: 13px 20px 17px; border-top: 1px solid rgba(241,238,232,.08); color: #737c83; font-size: 10px; line-height: 1.5; }

    body:not([data-timesheet-view="classic"]) #mobileBar { display: none !important; }

    @media (max-width: 767px) {
      .timesheet-header-actions { justify-content: center; }
      .timesheet-header-actions > .timesheet-icon-action { flex: 0 0 44px; width: 44px; }
      .timesheet-icon-action::after { display: none; }
      .timesheet-view-toolbar { align-items: stretch; flex-direction: column; gap: 9px; padding: 10px; }
      .timesheet-view-switcher { width: 100%; }
      .timesheet-work-filter { justify-content: center; width: 100%; }
      .timesheet-view-button { min-width: 0; padding: 7px 5px; }
      .timesheet-calendar-spacer, .timesheet-calendar-day { min-height: 72px; }
      .timesheet-calendar-day { padding: 7px 5px; }
      .timesheet-calendar-number { font-size: 11px; }
      .timesheet-calendar-value { gap: 2px; margin-top: 7px; font-size: 11px; }
      .timesheet-calendar-empty { font-size: 0; }
      .timesheet-agenda-day { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; padding: 13px 12px; }
      .timesheet-agenda-date strong { font-size: 16px; }
      .timesheet-agenda-status { max-width: 70px; }
      .timesheet-day-editor-backdrop { align-items: end; padding: 0; }
      .timesheet-day-editor-dialog { width: 100%; border-radius: 12px 12px 0 0; padding-bottom: env(safe-area-inset-bottom); }
    }
.payment-explained { position: relative; padding-right: 48px !important; }
.payment-help { position: absolute; right: 9px; top: 9px; width: 30px; height: 30px; border: 1px solid rgba(241,238,232,.18); border-radius: 50%; background: transparent; color: #f1eee8; opacity: .5; font: 600 15px/1 Inter,system-ui,sans-serif; cursor: pointer; }
.payment-help:hover, .payment-help:focus-visible { opacity: 1; border-color: #c6a15b; }
.payment-explanation-dialog { box-sizing: border-box; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: auto; padding: 0; overflow: hidden; border: 1px solid rgba(241,238,232,.18); border-radius: 8px; color: #f1eee8; background: #15191d; box-shadow: 0 24px 80px #0008; }
.payment-explanation-dialog::backdrop { background: #050607cc; backdrop-filter: blur(5px); }
.payment-explanation-dialog[open] { display: flex; flex-direction: column; }
.payment-explanation-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #ffffff18; flex-shrink: 0; }
.payment-explanation-dialog h2 { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.payment-explanation-dialog header button { flex-shrink: 0; width: 40px; height: 40px; border-radius: 6px; background: #ffffff0a; color: #f1eee8; font-size: 25px; cursor: pointer; }
.payment-explanation-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px; font-size: 14px; line-height: 1.7; }
.payment-explanation-body p + p { margin-top: 16px; color: #dfc48d; }
