* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(204, 31, 31, 0.08),
      transparent 24%
    ),
    radial-gradient(
      circle at top right,
      rgba(17, 17, 19, 0.06),
      transparent 20%
    ),
    linear-gradient(180deg, #fbfbfd 0%, #f4f6fb 100%);
  color: #0f172a;
}
.card {
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.glass {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.88rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.84rem;
}
.nav-chip {
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  transition: 0.18s ease;
  border: 1px solid transparent;
}
.nav-chip.active {
  background: linear-gradient(
    135deg,
    rgba(204, 31, 31, 0.14),
    rgba(204, 31, 31, 0.05)
  );
  color: var(--brand-red);
  border-color: rgba(204, 31, 31, 0.18);
}
.nav-chip:hover {
  background: rgba(255, 255, 255, 0.76);
}
.dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.field {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 16px;
  outline: none;
  transition: 0.18s ease;
}
.field:focus {
  border-color: rgba(204, 31, 31, 0.45);
  box-shadow: 0 0 0 4px rgba(204, 31, 31, 0.1);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-black), #252830);
  color: white;
  box-shadow: 0 12px 24px rgba(17, 17, 19, 0.18);
  transition: 0.18s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
}
.btn-secondary {
  background: linear-gradient(135deg, #fff, #edf1f8);
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.btn-danger {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: white;
}
.hidden-section {
  display: none !important;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}
th {
  color: var(--text-soft);
  font-weight: 700;
}
.muted {
  color: var(--text-soft);
}
.metric-card {
  border-radius: 26px;
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}
.status-paid {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}
.status-pending {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}
.status-future {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}
.status-scheduled {
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
}
.logo-login {
  max-width: 190px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.logo-header {
  height: 82px;
  width: auto;
  object-fit: contain;
}
.logo-report {
  height: 82px;
  width: auto;
  object-fit: contain;
}

.calendar-day {
  min-height: 86px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.68);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: 0.18s ease;
}
.calendar-day:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}
.calendar-day.muted-day {
  opacity: 0.42;
}
.calendar-day.has-trip {
  background: linear-gradient(
    135deg,
    rgba(204, 31, 31, 0.18),
    rgba(204, 31, 31, 0.08)
  );
  border-color: rgba(204, 31, 31, 0.22);
}
.calendar-day.selected-day {
  outline: 2px solid rgba(17, 17, 19, 0.2);
}
.calendar-day__count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-red);
}
.proposal-doc {
  max-width: 840px;
  margin: 0 auto;
  background: #fff;
  color: #111;
  padding: 24px 18px 28px;
  border: 1px solid #d7dce5;
  border-radius: 18px;
}
.proposal-doc img {
  display: block;
  margin: 0 auto 14px;
  height: 118px;
  width: auto;
}
.proposal-doc h1 {
  text-align: center;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  margin: 6px 0 18px;
}
.proposal-doc p {
  margin: 2px 0;
  font-size: 15px;
  line-height: 1.5;
}
.proposal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 18px;
}
.proposal-doc th,
.proposal-doc td {
  border: 1px solid #555;
  padding: 6px 8px;
  font-size: 14px;
}
.proposal-doc .highlight-cell {
  background: #fff176;
  font-weight: 800;
}
.proposal-doc .signature {
  margin-top: 24px;
  font-size: 14px;
}
.status-cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}
.modal-backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}
.fade-in {
  animation: fade 0.22s ease;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .logo-login {
    max-width: 150px;
  }
  .logo-header {
    height: 48px;
  }
  .logo-report {
    height: 84px;
  }
  #dashboardScreen > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 10px 12px;
  }
  #dashboardScreen > header > div {
    border-radius: 22px;
    padding: 12px;
    gap: 12px;
  }
  #dashboardScreen main {
    padding-top: 168px;
  }
  .dashboard-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    padding-bottom: 2px;
  }
  .dashboard-nav::-webkit-scrollbar {
    display: none;
  }
  .dashboard-nav .nav-chip,
  .dashboard-nav #logoutBtn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: white;
  }
}
