:root {
  --wac-blue: #2f8fc4;
  --wac-blue-dark: #126896;
  --wac-blue-deep: #0a4f7a;
  --wac-blue-soft: #eaf6fc;
  --ink: #172033;
  --muted: #718096;
  --line: #e6eef7;
  --bg: #f4f8fc;
  --card: #ffffff;
  --shadow: 0 16px 42px rgba(18, 104, 150, 0.12);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: linear-gradient(135deg, #f6fbff 0%, #eef6fb 45%, #f7fbff 100%);
  font-family:
    Inter,
    Segoe UI,
    Arial,
    Helvetica,
    sans-serif;
  color: var(--ink);
}
a {
  text-decoration: none;
}
.layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 286px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--line);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow: auto;
  z-index: 1050;
  box-shadow: 12px 0 36px rgba(18, 104, 150, 0.08);
  transition: 0.25s ease;
}

.sidebar:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 45%, #eef8fd 100%);
  pointer-events: none;
  z-index: -1;
}

.brand {
  position: relative;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fcff 100%);
}

.brand-logo {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #dbeef8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(47, 143, 196, 0.14);
  overflow: hidden;
}

.brand-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-text b {
  font-size: 16px;
  letter-spacing: 0.13em;
  color: var(--wac-blue-dark);
}

.brand-text small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-weight: 800;
}

.sidebar nav {
  position: relative;
  padding: 16px 13px 22px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #4b5b70;
  padding: 10px 12px;
  border-radius: 15px;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 14px;
  transition: 0.18s ease;
  border: 1px solid transparent;
}

.sidebar a:hover {
  background: var(--wac-blue-soft);
  color: var(--wac-blue-dark);
  transform: translateX(2px);
}

.sidebar a.active {
  background: linear-gradient(135deg, var(--wac-blue), #67b7dc);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 143, 196, 0.26);
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #eef8fd;
  color: var(--wac-blue-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  flex: 0 0 32px;
  border: 1px solid #d8edf8;
}

.nav-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.sidebar a.active .nav-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.sidebar a.logout {
  margin-top: 6px;
  background: #fff1f2 !important;
  color: #be123c !important;
}

.sidebar a.logout .nav-icon {
  background: #ffe4e6;
  color: #be123c;
  border-color: #fecdd3;
}

.sidebar a.logout:hover {
  background: #ffe4e6 !important;
  color: #9f1239 !important;
}

.nav-title {
  font-size: 10px;
  color: #8aa0b5;
  text-transform: uppercase;
  margin: 20px 13px 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.content {
  margin-left: 286px;
  width: calc(100% - 286px);
  padding: 24px;
}
.content {
  margin-left: 286px;
  width: calc(100% - 286px);
  padding: 24px;
}
.topbar {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  padding: 16px 18px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  backdrop-filter: blur(14px);
}
.topbar-title {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mobile-menu {
  display: none;
  border: 0;
  background: var(--wac-blue);
  color: #fff;
  border-radius: 14px;
  padding: 10px 13px;
  font-weight: 900;
}
.page-title b {
  font-size: 18px;
}
.page-title small {
  color: var(--muted);
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--wac-blue-soft);
  border: 1px solid #d4edf8;
  border-radius: 999px;
  padding: 8px 12px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wac-blue), #76c2e2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.cardx {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.cardx h4,
.cardx h5 {
  font-weight: 900;
  color: #153d5d;
  margin-bottom: 14px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-title {
  margin: 0;
  font-weight: 900;
  color: #153d5d;
}
.section-subtitle {
  font-size: 13px;
  color: var(--muted);
}
.stat {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 116px;
}
.stat:after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(47, 143, 196, 0.12);
}
.stat .label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}
.stat .value {
  font-size: 32px;
  font-weight: 950;
  color: var(--wac-blue-dark);
  line-height: 1.15;
  margin-top: 8px;
}
.stat .hint {
  font-size: 12px;
  color: #8aa0b5;
  margin-top: 6px;
}
.stat.blue {
  background: linear-gradient(135deg, #2f8fc4, #6fc0e2);
  color: #fff;
}
.stat.blue .label,
.stat.blue .value,
.stat.blue .hint {
  color: #fff;
}
.table-responsive {
  border-radius: 18px;
}
.table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}
.table thead th,
.table tr:first-child th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #66829a;
  background: #f3f8fc !important;
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  white-space: nowrap;
}
.table tbody td,
.table tr td {
  padding: 13px 12px;
  border-color: #eef4fa;
  vertical-align: middle;
}
.table-bordered {
  border: 1px solid #edf3f8;
}
.table-bordered > :not(caption) > * {
  border-width: 0;
}
.table-bordered > :not(caption) > * > * {
  border-width: 0 0 1px;
}
.table tbody tr {
  transition: 0.15s ease;
}
.table tbody tr:hover {
  background: #f8fcff;
}
.dashboard-table .table thead th {
  background: #f6fbff !important;
}
.badge {
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  font-weight: 800;
}
.btn,
.form-control,
.form-select {
  border-radius: 13px;
}
.btn-primary {
  background: var(--wac-blue);
  border-color: var(--wac-blue);
}
.btn-primary:hover {
  background: var(--wac-blue-dark);
  border-color: var(--wac-blue-dark);
}
.btn-info {
  background: #dff4ff;
  border-color: #cbeffc;
  color: #0c5f91;
  font-weight: 800;
}
.btn-secondary {
  background: #eef2f7;
  border-color: #e5eaf1;
  color: #46576a;
  font-weight: 800;
}
.form-control,
.form-select {
  border: 1px solid #dbe7f2;
  padding: 0.68rem 0.85rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--wac-blue);
  box-shadow: 0 0 0 0.2rem rgba(47, 143, 196, 0.16);
}
.filter-box {
  background: #f8fcff;
  border: 1px solid #e7f1f8;
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 16px;
}
.text-mini {
  font-size: 12px;
  color: var(--muted);
}
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(47, 143, 196, 0.22),
      transparent 32%
    ),
    linear-gradient(135deg, #f7fcff, #e9f5fb 55%, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(18, 104, 150, 0.18);
  overflow: hidden;
}
.login-hero {
  position: relative;
  background: linear-gradient(135deg, #2f8fc4, #67b7dc);
  padding: 42px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
}
.login-hero:after {
  content: "WAC";
  position: absolute;
  right: -20px;
  bottom: 20px;
  font-size: 120px;
  font-weight: 950;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.1);
}
.login-logo{
    width:150px;
    height:150px;
    background:#fff;
    border-radius:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 20px 46px rgba(0,0,0,.14);
    position:relative;
    z-index:1;
}

.login-logo img{
    width:126px;
    height:126px;
    object-fit:contain;

}
.login-hero h1 {
  font-size: 34px;
  font-weight: 950;
  line-height: 1.1;
  margin: 28px 0 10px;
  position: relative;
  z-index: 1;
}
.login-hero p {
  font-size: 15px;
  opacity: 0.92;
  max-width: 380px;
  position: relative;
  z-index: 1;
}
.login-form {
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-form h3 {
  font-weight: 900;
  color: var(--wac-blue-dark);
}
.print-paper {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  background: #fff;
  padding: 17mm;
  position: relative;
}
.watermark {
  position: absolute;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  font-size: 150px;
  color: rgba(0, 150, 220, 0.06);
  font-weight: 900;
  z-index: 0;
}
.watermark-logo {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 125mm;
  opacity: 0.055;
  z-index: 0;
}
.print-content {
  position: relative;
  z-index: 1;
}
.form-title {
  text-align: center;
  font-weight: 800;
}
.print-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.print-logo {
  width: 130px;
}
.print-logo img {
  width: 74px;
  height: auto;
  object-fit: contain;
}
.print-code {
  width: 130px;
  text-align: right;
  font-size: 10px;
}
.signatures {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin-top: 70px;
}
.sign {
  width: 30%;
}
.sign .line {
  margin-top: 70px;
  border-bottom: 1px solid #111;
}
.sidebar-backdrop {
  display: none;
}
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-105%);
    width: 286px;
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 35, 55, 0.42);
    z-index: 1040;
  }
  .layout {
    display: block;
  }
  .content {
    margin-left: 0;
    width: 100%;
    padding: 14px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    border-radius: 20px;
  }
  .page-title small {
    display: none;
  }
  .user-pill {
    padding: 6px 9px;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-hero {
    min-height: auto;
    padding: 28px;
  }
  .login-hero h1 {
    font-size: 26px;
  }
  .login-logo {
    width: 86px;
    height: 86px;
    border-radius: 24px;
  }
  .login-logo img {
    width: 70px;
    height: 70px;
  }
  .login-form {
    padding: 28px;
  }
  .table-responsive {
    font-size: 13px;
  }
}
@media (max-width: 576px) {
  .content {
    padding: 10px;
  }
  .topbar {
    padding: 12px;
  }
  .page-title b {
    font-size: 15px;
  }
  .user-pill .user-meta {
    display: none;
  }
  .stat {
    padding: 16px;
    min-height: 96px;
  }
  .stat .value {
    font-size: 26px;
  }
  .cardx {
    padding: 15px;
    border-radius: 20px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .login-page {
    padding: 12px;
  }
  .login-shell {
    border-radius: 24px;
  }
  .login-hero {
    padding: 24px;
  }
  .login-form {
    padding: 24px;
  }
  .print-paper {
    width: 100%;
    padding: 10mm;
  }
  .signatures {
    gap: 12px;
    font-size: 12px;
  }
  .sign {
    width: 33%;
  }
}
@media print {
  .sidebar,
  .topbar,
  .no-print,
  .sidebar-backdrop {
    display: none !important;
  }
  .content {
    margin: 0;
    width: 100%;
    padding: 0;
  }
  .print-paper {
    box-shadow: none;
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 12mm;
  }
  .cardx {
    box-shadow: none;
  }
}
