    /* Reset & global styles */
    html, body {
      height: 100%;
      margin: 0;
    }

    * {
      box-sizing: border-box;
      font-family: Arial, sans-serif;
    }

    body {
      background: #f0f0f0;
    }

    /* Full-screen app container */
    .app {
      min-height: 100vh;
      width: 100%;
      background: white;
      display: flex;
      flex-direction: column;
    }

    /* Topbar */
    .topbar {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 52px;
      border-bottom: 3px solid #000;
      position: sticky;
      top: 0;
      background: #fff;
      z-index: 1000;
    }

    .topbar .logo {
      position: absolute;
      left: 16px;
      font-weight: bold;
      font-size: 20px;
    }

    .topbar .logo img {
      height: 36px;
      width: auto;
      display: block;
    }

    .nav {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
    }

    .nav button, .drop-btn {
      background: none;
      border: none;
      font-size: 16px;
      cursor: pointer;
    }

    .nav button:hover,
    .drop-btn:hover {
      background-color: #eaeaea;
      border-radius: 2px;
    }

    .dropdown {
      position: relative;
    }

    .drop-menu {
      position: absolute;
      top: 35px;
      left: 0;
      border: 2px solid #000;
      background: #fff;
      display: none;
      flex-direction: column;
      min-width: 160px;
      z-index: 100;
    }

    .drop-menu.right {
      left: auto;
      right: 0;
    }

    .drop-menu div {
      padding: 8px 12px;
      border-bottom: 1px solid #000;
      cursor: pointer;
    }

    .drop-menu a {
      padding: 8px 12px;
      border-bottom: 1px solid #000;
      cursor: pointer;
      text-decoration: none;
      color: inherit;
      display: block;
    }

    .drop-menu div:last-child,
    .drop-menu a:last-child {
      border-bottom: none;
    }

    .dropdown:hover .drop-menu {
      display: flex;
    }

    .drop-menu div:hover,
    .drop-menu a:hover {
      background-color: #f0f0f0;
    }

    .nav-link {
      text-decoration: none;
      color: inherit;
      font-size: 16px;
      cursor: pointer;
    }

    .nav-link:hover {
      background-color: #eaeaea;
      border-radius: 2px;
    }

    .spacer {
      display: none;
    }

    /* Filters section - perfectly centered */
    .filters {
      display: flex;
      justify-content: center;
      align-items: flex-end;
      gap: 20px;
      margin: 40px 0;
      width: 100%;
    }

    .filters-inner {
      display: flex;
      align-items: flex-end;
      gap: 20px;
    }

    .field {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .field label {
      text-align: center;
      margin-bottom: 5px;
    }

    .field input {
      width: 200px;
      padding: 5px;
    }

    .select-btn {
      padding: 6px 14px;
      height: 32px;
    }

    /* Optional content placeholders */
    .content {
      flex: 1;
      padding: 20px;
    }
  


.menu-item-btn {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #000;
  cursor: pointer;
  font-size: 14px;
}

.menu-item-btn:hover {
  background-color: #f0f0f0;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup {
  background: #fff;
  padding: 20px;
  width: 600px;
  max-height: 90%;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
}

.name-filter-popup {
  width: min(460px, 92vw);
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: none;
  padding: 16px;
}

.name-filter-popup h3 {
  margin: 0 0 12px;
}

.name-filter-fields {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
}

.name-filter-fields label {
  font-weight: 600;
}

.name-filter-fields input,
.name-filter-fields select {
  width: 100%;
  border: 1px solid #000;
  padding: 6px;
  margin: 0;
}

.name-filter-results {
  min-height: 120px;
}

.name-filter-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.name-filter-actions button {
  min-width: 88px;
  height: 32px;
  border: 1px solid #000;
  background: #ececec;
  cursor: pointer;
}

.name-ledger-popup {
  width: min(920px, 95vw);
  max-height: 92vh;
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: none;
  overflow: auto;
}

.name-ledger-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.name-ledger-logo {
  font-size: 42px;
  font-weight: 700;
}

.name-ledger-title {
  text-align: center;
  flex: 1;
  margin-right: 42px;
}

.name-ledger-title h3 {
  margin: 0;
  color: #8b0000;
}

.name-ledger-title h4 {
  margin: 2px 0 0;
  color: #003399;
}

.name-ledger-info {
  margin: 0 0 10px;
  font-size: 13px;
}

.name-ledger-popup .dispatch-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.name-ledger-popup .dispatch-table th,
.name-ledger-popup .dispatch-table td {
  border: 1px solid #000;
  padding: 6px;
  font-size: 13px;
  text-align: center;
}

.name-ledger-popup .dispatch-table th {
  background: #eee;
}

.name-ledger-total-row td {
  color: #d00000;
  font-weight: 700;
  background: #fff5f5;
}

.employee-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 24px;
}

.employee-popup-shell {
  width: min(980px, 96vw);
  height: min(88vh, 760px);
  border: 2px solid #111827;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.employee-popup-header {
  height: 46px;
  padding: 8px 14px;
  background: #f3f4f6;
  border-bottom: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.employee-popup-close {
  border: 1px solid #9ca3af;
  border-radius: 6px;
  background: #ffffff;
  min-width: 70px;
  padding: 4px 10px;
  cursor: pointer;
}

.employee-popup-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.entry-data-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6100;
  padding: 20px;
}

.entry-data-popup-shell {
  width: min(480px, 94vw);
  max-height: min(80vh, 700px);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.entry-data-popup-header {
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.entry-data-popup-header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
}

.entry-data-popup-close {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 6px 12px;
}

.entry-data-popup-body {
  padding: 14px 18px 18px;
}

.entry-data-popup-title {
  margin: 0 0 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.entry-data-popup-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #f8fafc;
  max-height: min(54vh, 480px);
  overflow: auto;
}

.entry-data-popup-item {
  padding: 10px 12px;
  border-bottom: 1px solid #e5eaf1;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #0f172a;
  font-weight: 600;
}

.entry-data-popup-item:last-child {
  border-bottom: none;
}

.entry-data-popup-index {
  color: #1d4ed8;
  min-width: 24px;
  font-weight: 700;
}

.entry-data-popup-empty {
  padding: 14px 12px;
  color: #64748b;
  font-weight: 500;
}

.nav-data-btn {
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  padding: 4px 12px !important;
  background: #f9fafb !important;
  font-weight: 600;
}

.nav-data-btn:hover {
  background: #eef2ff !important;
}

.data-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6000;
  padding: 20px;
}

.data-popup-shell {
  width: min(780px, 96vw);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.data-popup-header {
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.data-popup-header h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}

.data-popup-close {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 6px 12px;
}

.data-popup-body {
  padding: 16px 18px 20px;
}

.data-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.data-card {
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
}

.data-card.danger {
  border-color: #fecaca;
  background: #fff7f7;
}

.data-card h4 {
  margin: 0 0 8px;
  color: #111827;
}

.data-card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #4b5563;
}

.data-btn {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  padding: 7px 12px;
  cursor: pointer;
  margin: 0 8px 8px 0;
  font-weight: 600;
}

.data-btn.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.data-btn.danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.data-btn.danger-outline {
  border-color: #fca5a5;
  color: #b91c1c;
  background: #fff1f2;
}

.data-btn:hover {
  filter: brightness(0.98);
}

.data-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 980px) {
  .data-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .data-actions-grid {
    grid-template-columns: 1fr;
  }
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 35px;
  width: auto;
}

.brand-contact-card {
  border: 2px solid #000;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  margin-bottom: 12px;
  background: #fff;
}

.brand-contact-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-contact-text h4 {
  margin: 0 0 4px;
  font-size: 22px;
  color: #8b0000;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.brand-contact-text p {
  margin: 2px 0;
  font-size: 12px;
  line-height: 1.35;
}