* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f3f5fa;
  color: #22334d;
  font:
    14px system-ui,
    -apple-system,
    sans-serif;
}
header {
  background: #102f59;
  border-bottom: 4px solid #d4ac46;
  color: #fff;
  padding: 20px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: white;
  text-decoration: none;
}
.brand-icon {
  height: 48px;
  width: 48px;
  background: #ffffff15;
  border: 1px solid #ffffff30;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 1px;
}
.brand strong {
  font-size: 22px;
  display: block;
}
.brand div > span {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #bccde5;
  display: block;
  margin-top: 5px;
}
.header-right {
  display: flex;
  gap: 25px;
  align-items: center;
}
nav {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
nav a {
  color: #c4d5ed;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}
nav a:hover,
.nav-active {
  background: #ffffff15;
  color: white;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
main {
  max-width: 1340px;
  margin: 32px auto;
  padding: 0 25px;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.7px;
  margin: 4px 0 10px;
}
h2 {
  font-size: 19px;
  margin: 0 0 16px;
}
h3 {
  font-size: 16px;
  margin: 15px 0 10px;
}
p {
  line-height: 1.65;
  margin: 7px 0 17px;
}
.eyebrow {
  color: #587395;
  letter-spacing: 1.8px;
  font-size: 10px;
  font-weight: 800;
}
.heading {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 19px;
  margin-bottom: 27px;
}
.heading > .eyebrow {
  position: absolute;
  top: 0;
}
.heading form {
  display: flex;
  gap: 10px;
  align-items: end;
}
.heading label {
  margin: 0;
}
.heading p,
.page-title p {
  color: #718097;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.stat {
  border: 1px solid #e4e9f1;
  border-radius: 14px;
  padding: 20px 23px;
  background: white;
  box-shadow: 0 3px 12px #163b5c03;
}
.stat > span {
  font-size: 12px;
  color: #718097;
  display: block;
}
.stat strong {
  display: block;
  font-size: 25px;
  color: #153d6c;
  margin: 9px 0;
  font-weight: 750;
}
.stat small {
  font-size: 11px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(310px, 1fr);
  gap: 23px;
}
.card {
  background: white;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 23px;
  box-shadow: 0 8px 28px #15345605;
}
aside {
  align-self: start;
  border-top: 4px solid #153d6c !important;
}
aside > p {
  font-size: 12px;
  color: #6d7d92;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 17px;
  font-size: 12px;
}
input,
select {
  display: block;
  width: 100%;
  border: 1px solid #d5dfea;
  border-radius: 9px;
  padding: 12px;
  font: 14px system-ui;
  background: #fbfcfe;
  color: #233c58;
  margin-top: 7px;
}
input:focus,
select:focus {
  outline: 2px solid #b4c9e7;
  border-color: #3d6395;
}
button {
  border: 0;
  border-radius: 9px;
  background: #17487f;
  color: white;
  padding: 12px 17px;
  font: 600 13px system-ui;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover {
  background: #0c315d;
}
button.secondary {
  background: #eaf0f8;
  color: #17487f;
}
button.danger {
  background: #b43d4c;
}
button.danger:hover {
  background: #902c39;
}
.notice {
  padding: 17px 20px;
  border: 1px solid #ead799;
  background: #fff6d9;
  border-radius: 11px;
  margin-bottom: 24px;
  color: #705712;
}
.monthnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.monthnav h2 {
  margin: 0;
}
.monthnav a {
  font-size: 12px;
  text-decoration: none;
  background: #f2f5fa;
  padding: 8px 10px;
  border-radius: 8px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin-top: 25px;
}
.weekday {
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  color: #8391a5;
  padding: 0 0 10px;
}
.day {
  min-height: 87px;
  padding: 12px;
  border-radius: 11px;
  background: #f7f9fc;
  border: 1px solid #edf0f6;
  text-decoration: none;
  color: #213e61;
}
.day:hover {
  background: #eaf0f8;
}
.day strong {
  font-size: 16px;
}
.day small {
  display: block;
  font-size: 10px;
  margin-top: 15px;
  color: #7a8ca4;
}
.day.selected {
  background: #16467b;
  color: white;
  outline: 2px solid #d6b453;
  border-color: #16467b;
}
.day.selected small {
  color: #c8daee;
}
.muted,
small {
  color: #7b899b;
}
.muted {
  font-size: 12px;
}
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.slot {
  background: #e9f6ef;
  color: #25724d;
  border: 1px solid #d3ebde;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
}
.reservation {
  border-top: 1px solid #edf0f5;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 17px;
}
.reservation p {
  margin: 7px 0;
  font-size: 12px;
  color: #738298;
}
.reservation form {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 170px;
}
.reservation form button {
  font-size: 11px;
  padding: 9px 12px;
}
.auth {
  max-width: 470px;
  margin: 65px auto;
  padding: 35px;
}
.auth button,
aside button {
  width: 100%;
  margin-bottom: 13px;
}
.auth > p {
  color: #728197;
}
.auth label {
  font-size: 13px;
}
a {
  color: #17487f;
}
footer {
  text-align: center;
  color: #8a96a6;
  padding: 22px;
  font-size: 11px;
  border-top: 1px solid #e3e8f0;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 20px;
  background: #edf1f7;
  color: #5b6f8a;
  font-size: 11px;
  font-weight: 600;
}
.badge.pending {
  background: #fff3d4;
  color: #9c7316;
}
.badge.active {
  background: #e6f5ed;
  color: #25734d;
}
.badge.disabled {
  background: #fce8ec;
  color: #a13e50;
}
.account-list p {
  overflow-wrap: anywhere;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.section-head h2 {
  margin: 0;
}
.empty {
  padding: 40px 15px;
  text-align: center;
  background: #f8fafd;
  border-radius: 12px;
  color: #7890a9;
}
.empty strong {
  color: #3f5978;
}
.empty p {
  margin-bottom: 0;
}
.request-card {
  padding: 22px 0;
  border-top: 1px solid #e9eef5;
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
}
.request-content {
  flex: 1;
}
.request-card h3 {
  font-size: 18px;
  margin: 12px 0 5px;
}
.request-card p {
  font-size: 12px;
  color: #7e8a9c;
}
.request-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.request-details small {
  display: block;
  font-size: 10px;
  margin-bottom: 7px;
}
.request-details strong {
  font-size: 12px;
  font-weight: 600;
}
.page-title {
  margin-bottom: 22px;
}
@media (max-width: 1050px) {
  header {
    align-items: start;
  }
  .header-right {
    flex-direction: column;
    align-items: end;
    gap: 10px;
  }
  .layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr);
  }
  .day {
    padding: 8px;
  }
  .request-card {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .heading {
    display: block;
  }
  .heading form {
    margin-top: 20px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 20px;
  }
  .card {
    padding: 19px;
  }
  .calendar {
    gap: 4px;
  }
  .day {
    padding: 9px;
    min-height: 73px;
  }
  .monthnav h2 {
    font-size: 17px;
  }
  .request-details {
    gap: 12px;
  }
  header {
    padding: 17px;
  }
  .brand strong {
    font-size: 18px;
  }
  .brand div > span {
    font-size: 8px;
  }
  .brand-icon {
    width: 38px;
    height: 38px;
  }
  main {
    padding: 0 15px;
    margin-top: 24px;
  }
}
@media (max-width: 560px) {
  header {
    flex-direction: column;
    gap: 15px;
  }
  .header-right {
    align-items: start;
    width: 100%;
  }
  nav {
    width: 100%;
    gap: 2px;
  }
  nav a {
    font-size: 11px;
    padding: 9px;
  }
  .account {
    justify-content: space-between;
    width: 100%;
  }
  h1 {
    font-size: 25px;
  }
  .stat {
    padding: 13px;
  }
  .stat > span {
    font-size: 10px;
  }
  .stat strong {
    font-size: 17px;
  }
  .stat small {
    font-size: 9px;
  }
  .stats {
    gap: 7px;
  }
  .calendar {
    gap: 3px;
  }
  .day {
    min-height: 65px;
    padding: 7px;
  }
  .day small {
    font-size: 8px;
  }
  .day strong {
    font-size: 13px;
  }
  .weekday {
    font-size: 10px;
  }
  .monthnav a {
    font-size: 10px;
    padding: 7px;
  }
  .monthnav h2 {
    font-size: 15px;
  }
  .reservation,
  .account-list .reservation {
    flex-direction: column;
    align-items: start;
  }
  .reservation form {
    max-width: none;
  }
  .request-details {
    grid-template-columns: 1fr;
  }
  .auth {
    padding: 24px;
    margin-top: 35px;
  }
  .card {
    padding: 16px;
  }
  .request-card {
    gap: 18px;
  }
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.admin-main {
  min-width: 0;
}
.table-scroll {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.admin-table th {
  background: #f4f7fb;
  color: #526b87;
  padding: 13px 12px;
  font-size: 11px;
  white-space: nowrap;
}
.admin-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #e8edf5;
  vertical-align: top;
  min-width: 100px;
}
.admin-table td small {
  display: block;
  margin-top: 6px;
}
.admin-table td:first-child {
  min-width: 175px;
  overflow-wrap: anywhere;
}
.admin-table button {
  padding: 8px 10px;
  font-size: 11px;
}
.mini-calendar {
  padding: 17px !important;
  border-top: none !important;
}
.mini-calendar .calendar {
  gap: 3px;
  margin-top: 16px;
}
.mini-calendar .day {
  min-height: 34px;
  padding: 6px 2px;
  text-align: center;
  font-size: 12px;
  position: relative;
}
.mini-calendar .monthnav h2 {
  font-size: 14px;
}
.mini-calendar .weekday {
  font-size: 10px;
  padding-bottom: 4px;
}
.booking-dot {
  display: block;
  width: 4px;
  height: 4px;
  background: #d2a641;
  border-radius: 50%;
  margin: 3px auto 0;
}
.mini-event {
  border-top: 1px solid #e6ecf4;
  padding: 13px 0;
  font-size: 12px;
}
.mini-event small {
  display: block;
  margin: 6px 0;
}
.mini-event form {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.mini-event button {
  font-size: 10px;
  padding: 7px 9px;
}
.badge.approved {
  background: #e6f5ed;
  color: #25734d;
}
.availability-message {
  font-size: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f0f5fb;
  color: #476487;
  margin-bottom: 14px;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#date-availability {
  margin-bottom: 18px;
  font-size: 12px;
}
#date-availability summary {
  cursor: pointer;
  color: #17487f;
  font-weight: 600;
  padding: 8px 0;
}
#date-slots {
  max-height: 300px;
  overflow-y: auto;
}
.date-slot-row {
  border-top: 1px solid #e5eaf2;
  padding: 12px 0;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.date-slot-row strong {
  width: 100%;
  font-size: 11px;
  margin-bottom: 5px;
}
.slot-choice {
  background: #e9f6ef;
  color: #25724d;
  padding: 6px 8px;
  font-size: 10px;
}
.slot-choice:hover {
  background: #d4ebde;
}
.mini-calendar .day.selected {
  outline-width: 1px;
}
@media (max-width: 1050px) {
  .admin-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}
@media (max-width: 800px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .mini-calendar {
    width: 100%;
    max-width: 340px;
  }
  .mini-calendar .day {
    min-height: 34px;
  }
  .admin-table {
    min-width: 600px;
  }
}

select option:disabled {
  color: #98a1b0;
  background: #f0f2f5;
}
.swal2-popup {
  font-family: system-ui, sans-serif;
  border-radius: 16px !important;
}

.duration-fields {
  border: 0;
  padding: 0;
  margin: 0 0 17px;
}
.duration-fields legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
.duration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.duration-grid label {
  margin-bottom: 8px;
}
.duration-fields small {
  font-size: 11px;
}

.public-hero {
  background: linear-gradient(115deg, #112f55, #235787);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  gap: 20px;
  margin-bottom: 24px;
}
.public-hero h1 {
  font-size: 32px;
}
.public-hero .eyebrow {
  color: #cdddb5;
}
.public-hero p {
  color: #c4d6e9;
  font-size: 14px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-tags span {
  background: #ffffff12;
  border: 1px solid #ffffff20;
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 10px;
}
.hero-cta {
  background: #efd58a;
  color: #203652;
  padding: 13px 17px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.public-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  gap: 24px;
}
.public-layout .stats {
  margin-top: 0;
}
.request-panel {
  position: sticky;
  top: 18px;
  align-self: start;
  scroll-margin-top: 20px;
}
.request-heading h2 {
  font-size: 21px;
  margin: 6px 0 12px;
}
.request-heading p {
  font-size: 12px;
}
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.calendar-toolbar h2 {
  font-size: 22px;
  margin: 0;
}
.calendar-toolbar p {
  margin: 8px 0;
}
.calendar-controls {
  display: flex;
  gap: 5px;
}
.calendar-controls a {
  background: #edf2f8;
  padding: 8px 13px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
}
.calendar-jump {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 14px 0;
}
.calendar-jump label {
  margin: 0;
  max-width: 220px;
}
.calendar-jump input {
  padding: 8px;
}
.calendar-jump button {
  padding: 10px 13px;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  font-size: 10px;
  color: #6c7d93;
}
.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #477dab;
}
.legend-dot.free {
  background: #3d9a74;
}
.legend-dot.busy {
  background: #477dab;
}
.legend-dot.pending {
  background: #d7a642;
}
.legend-dot.selected {
  background: #173f73;
}
.public-grid .day {
  min-height: 107px;
  position: relative;
}
.public-grid .free-day {
  background: #f1faf6;
  border-color: #e0efe7;
}
.public-grid .has-bookings {
  background: #f3f6fc;
}
.public-grid .day.selected {
  background: #17487f;
  color: white;
  box-shadow: 0 3px 12px #17487f20;
}
.public-grid .day small {
  font-size: 9px;
}
.day-indicators {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.day-indicators span {
  font-size: 8px;
  border-radius: 5px;
  padding: 3px 5px;
  background: #e5edf8;
  color: #315c8a;
}
.day-indicators .pending-dot {
  background: #fff2d3;
  color: #9b741f;
}
.today-mark {
  position: absolute;
  right: 7px;
  top: 12px;
  font-size: 8px;
  color: #3c9270;
}
.selected .today-mark {
  color: white;
}
.past-day {
  opacity: 0.6;
}
.day-agenda h2 {
  margin-top: 6px;
}
.quick-time {
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
}
.quick-time:hover {
  background: #d8efdf;
  color: #21593e;
}
.quick-time span {
  font-size: 10px;
  opacity: 0.75;
}
.agenda-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid #e8edf5;
}
.agenda-time {
  flex: 0 0 76px;
  font-size: 12px;
  font-weight: 700;
  color: #244d77;
}
.agenda-time small {
  display: block;
  font-weight: 400;
  margin-top: 5px;
}
.agenda-content {
  flex: 1;
}
.agenda-content p {
  font-size: 12px;
  margin: 7px 0;
}
.agenda-content form {
  margin-top: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.agenda-content form button {
  font-size: 10px;
  padding: 7px 9px;
}
.form-step {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 23px 0 15px;
}
.form-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7eff9;
  color: #244e7b;
  font-size: 10px;
  font-weight: 700;
}
.form-step h3 {
  font-size: 13px;
  margin: 0;
}
.booking-mode {
  display: flex;
  background: #f1f4f9;
  padding: 4px;
  border-radius: 9px;
  gap: 4px;
  margin-bottom: 15px;
}
.booking-mode button {
  width: 50%;
  margin: 0 !important;
  padding: 9px 5px;
  background: transparent;
  color: #718298;
  font-size: 11px;
}
.booking-mode button.mode-active {
  background: white;
  color: #17487f;
  box-shadow: 0 2px 6px #102f5910;
}
.booking-review {
  font-size: 12px;
  padding: 14px;
  border-radius: 9px;
  background: #eef5ff;
  color: #345d87;
  margin: 16px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
#calendar-browser[aria-busy="true"] {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.15s;
}
:focus-visible {
  outline: 3px solid #d4ac46;
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  .public-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .public-grid .day {
    padding: 7px;
    min-height: 100px;
  }
  .today-mark {
    position: static;
    display: block;
    margin-top: 3px;
  }
  .day-indicators span {
    font-size: 7px;
    padding: 2px;
  }
  .public-hero h1 {
    font-size: 28px;
  }
}
@media (max-width: 900px) {
  .public-layout {
    grid-template-columns: 1fr;
  }
  .request-panel {
    position: static;
  }
  .public-hero {
    padding: 24px;
  }
  .public-grid .day {
    min-height: 95px;
  }
  .public-grid .day small {
    font-size: 10px;
  }
}
@media (max-width: 560px) {
  .public-hero {
    flex-direction: column;
    align-items: start;
    padding: 23px;
  }
  .public-hero h1 {
    font-size: 26px;
  }
  .hero-cta {
    width: 100%;
    text-align: center;
  }
  .public-grid .day {
    min-height: 83px;
    padding: 6px;
  }
  .public-grid .day small {
    font-size: 8px;
    margin-top: 8px;
  }
  .day-indicators span {
    font-size: 7px;
  }
  .calendar-toolbar h2 {
    font-size: 18px;
  }
  .calendar-controls a {
    padding: 7px 10px;
  }
  .calendar-toolbar p {
    font-size: 10px;
  }
  .agenda-item {
    gap: 12px;
  }
  .agenda-time {
    flex-basis: 65px;
  }
  .today-mark {
    font-size: 7px;
  }
  .public-layout .stats .stat strong {
    font-size: 17px;
  }
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  border-radius: 18px;
  background: linear-gradient(115deg, #142f50, #2b547b);
  padding: 28px 30px;
  color: white;
  margin-bottom: 22px;
}
.admin-hero .eyebrow {
  color: #d6ba6e;
}
.admin-hero h1 {
  font-size: 29px;
}
.admin-hero p {
  color: #cbd9e8;
  font-size: 13px;
  margin-bottom: 0;
}
.admin-hero-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.admin-hero-links a {
  color: white;
  background: #ffffff13;
  border: 1px solid #ffffff20;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 11px;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.dashboard-stat {
  background: white;
  border: 1px solid #e3e9f2;
  border-top: 3px solid #8099b5;
  border-radius: 13px;
  padding: 21px;
}
.dashboard-stat.pending {
  border-top-color: #d4ad4a;
}
.dashboard-stat.approved {
  border-top-color: #399670;
}
.dashboard-stat.rejected {
  border-top-color: #bf5c6a;
}
.dashboard-stat.cancelled {
  border-top-color: #9b9ba6;
}
.dashboard-stat span {
  color: #728297;
  font-size: 11px;
}
.dashboard-stat strong {
  font-size: 30px;
  display: block;
  margin: 8px 0;
  color: #1d446d;
}
.dashboard-stat small {
  font-size: 10px;
}
.table-tools {
  display: flex;
  gap: 14px;
  align-items: end;
  margin: 20px 0;
}
.table-tools label {
  margin: 0;
  flex: 1;
}
.table-tools label:last-child:not(:first-child) {
  max-width: 175px;
}
.table-tools input,
.table-tools select {
  font-size: 12px;
  padding: 10px;
}
.table-link {
  display: inline-block;
  text-decoration: none;
  font-size: 11px;
  margin: 0 0 9px;
  color: #235b8c;
  font-weight: 600;
}
.admin-table tbody tr:hover {
  background: #fafcff;
}
.admin-table .badge {
  margin: 0 3px 4px 0;
}
.badge.rejected {
  background: #fbe8ec;
  color: #a6475b;
}
.badge.cancelled {
  background: #edf0f4;
  color: #788497;
}
.admin-table td:last-child {
  min-width: 140px;
}
.admin-main .card {
  padding: 24px;
}
.mini-calendar {
  position: sticky;
  top: 20px;
}
.admin-table th {
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.filter-empty td {
  padding: 25px;
}
@media (max-width: 900px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-hero {
    padding: 24px;
  }
  .mini-calendar {
    position: static;
  }
}
@media (max-width: 560px) {
  .admin-hero {
    flex-direction: column;
    align-items: start;
  }
  .admin-hero h1 {
    font-size: 25px;
  }
  .admin-hero-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .dashboard-stats {
    gap: 9px;
  }
  .dashboard-stat {
    padding: 16px;
  }
  .dashboard-stat strong {
    font-size: 25px;
  }
  .table-tools {
    flex-direction: column;
    align-items: stretch;
  }
  .table-tools label:last-child:not(:first-child) {
    max-width: none;
  }
  .admin-main .card {
    padding: 16px;
  }
}

.day-date {
  display: block;
  color: inherit;
  text-decoration: none;
}
.calendar-activities {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 9px;
}
.calendar-activity {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  border-radius: 5px;
  padding: 5px 6px;
  font-size: 8px;
  background: #e1ecf8;
  color: #345c86;
  font-weight: 500;
}
.calendar-activity.pending {
  background: #fff0ce;
  color: #94701b;
}
.calendar-activity:hover {
  background: #d1e2f5;
  color: #163d68;
}
.activity-details-button {
  background: transparent;
  color: #24486b;
  text-align: left;
  padding: 0;
  font-size: 14px;
}
.activity-details-button span {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: #6286ac;
  font-weight: 400;
}
.activity-details-button:hover {
  background: transparent;
  color: #17487f;
  text-decoration: underline;
}
.booking-modal-details {
  margin: 15px 0 0;
  text-align: left;
}
.booking-modal-details > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  padding: 12px 0;
  border-top: 1px solid #e4ebf4;
  gap: 15px;
}
.booking-modal-details dt {
  font-size: 12px;
  color: #7c8ca1;
}
.booking-modal-details dd {
  margin: 0;
  font-size: 13px;
  color: #28496e;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .calendar-activity {
    font-size: 7px;
    padding: 4px;
  }
  .booking-modal-details > div {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 8px;
  }
}

/* Sidebar shell: all navigation lives here; the public header is branding only. */
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  background: #132f51;
  color: #d9e5f4;
  z-index: 100;
  padding: 26px 17px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  text-decoration: none;
  margin-bottom: 34px;
}
.sidebar-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #ffffff17;
  border-radius: 11px;
  font-weight: 800;
  font-size: 13px;
}
.sidebar-brand strong {
  font-size: 15px;
  display: block;
}
.sidebar-brand small {
  font-size: 10px;
  color: #a9c0db;
  display: block;
  margin-top: 5px;
}
.sidebar-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #8ea9c7;
  margin: 0 12px 15px;
}
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sidebar-menu a {
  padding: 13px 14px;
  font-size: 12px;
  border-radius: 9px;
  display: block;
  color: #c3d3e7;
  text-decoration: none;
}
.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: #ffffff14;
  color: white;
}
.sidebar-menu a.active {
  border-left: 3px solid #d8b957;
}
.sidebar-account {
  border-top: 1px solid #ffffff18;
  margin-top: 30px;
  padding: 20px 12px;
}
.sidebar-account strong {
  display: block;
  font-size: 12px;
  margin: 7px 0 15px;
  overflow-wrap: anywhere;
}
.sidebar-account small {
  color: #98b0cc;
  font-size: 10px;
}
.sidebar-account button {
  background: #ffffff13;
  font-size: 11px;
  width: 100%;
}
.sidebar-footer {
  font-size: 10px;
  line-height: 1.8;
  color: #86a1bf;
  margin: auto 12px 0;
  padding-top: 35px;
}
.has-sidebar .portal-header {
  margin-left: 230px;
  background: white;
  border-bottom: 1px solid #e2e8f1;
  color: #25456b;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.portal-brand strong {
  display: block;
  font-size: 20px;
}
.portal-brand span {
  display: block;
  font-size: 11px;
  color: #8090a5;
  margin-top: 6px;
}
.dole-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.portal-brand .header-logo-fallback {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #eaf0f7;
  color: #244c79;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}
.has-sidebar main {
  margin: 28px 26px 28px 256px;
  width: calc(100% - 282px);
  max-width: 1340px;
  padding: 0;
}
.has-sidebar footer {
  margin-left: 230px;
}
.sidebar-toggle {
  display: none;
}
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: #10223a80;
  border-radius: 0;
  z-index: 90;
}
.sidebar-overlay:hover {
  background: #10223a80;
}
.auth > small,
.auth form > small {
  display: block;
  margin-bottom: 15px;
  font-size: 11px;
}
.has-sidebar .public-hero h1 {
  font-size: 28px;
}
@media (max-width: 1200px) {
  .has-sidebar .public-layout {
    grid-template-columns: 1fr;
  }
  .has-sidebar .request-panel {
    position: static;
  }
}
@media (max-width: 1000px) {
  .has-sidebar .admin-layout {
    grid-template-columns: 1fr;
  }
  .has-sidebar .mini-calendar {
    max-width: 340px;
    position: static;
  }
}
@media (max-width: 800px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar-open .app-sidebar {
    transform: translateX(0);
  }
  .sidebar-toggle {
    display: block;
    background: #eef2f8;
    color: #244d79;
    font-size: 11px;
    padding: 10px 12px;
    flex-shrink: 0;
  }
  .has-sidebar .portal-header {
    margin-left: 0;
    padding: 16px;
  }
  .portal-brand strong {
    font-size: 16px;
  }
  .portal-brand span {
    font-size: 10px;
  }
  .dole-logo {
    width: 42px;
    height: 42px;
  }
  .has-sidebar main {
    margin: 22px 15px;
    width: calc(100% - 30px);
  }
  .has-sidebar footer {
    margin-left: 0;
  }
  .sidebar-open {
    overflow: hidden;
  }
}

/* Explicit viewport sizing overrides the shared aside layout. */
.app-sidebar {
  position: fixed;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  align-self: stretch;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: max(26px, env(safe-area-inset-bottom));
}
.public-page .portal-header {
  background: white;
  color: #25456b;
  border-bottom: 1px solid #e2e8f1;
  padding: 22px max(24px, calc((100% - 1290px) / 2));
  display: flex;
  align-items: center;
}
.public-page main {
  max-width: 1340px;
  margin: 28px auto;
  padding: 0 25px;
}
.public-page footer {
  margin-left: 0;
}
.public-admin-link {
  display: inline-block;
  margin-left: 16px;
  font-size: 11px;
}
.sidebar-menu {
  flex: 0 0 auto;
}
.sidebar-account {
  flex: 0 0 auto;
}
.sidebar-footer {
  flex: 0 0 auto;
  margin-top: auto;
}
@media (max-width: 800px) {
  .app-sidebar {
    width: min(280px, 85vw);
    visibility: hidden;
    box-shadow: 10px 0 35px #10223a30;
  }
  .sidebar-open .app-sidebar {
    visibility: visible;
  }
  .public-page .portal-header {
    padding: 16px;
  }
  .public-page main {
    margin: 22px auto;
    padding: 0 15px;
  }
  .public-page .public-layout {
    grid-template-columns: 1fr;
  }
}

/* Mobile navigation stays within thumb reach, outside the header. */
@media (max-width: 800px) {
  .sidebar-toggle {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 110;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 28px;
    background: #17487f;
    color: white;
    box-shadow: 0 6px 22px #10223a40;
    font-size: 14px;
  }
  .sidebar-toggle:hover {
    background: #103963;
  }
  .sidebar-toggle:focus-visible {
    outline: 3px solid #dba73d;
    outline-offset: 4px;
  }
  .has-sidebar footer {
    padding-bottom: 90px;
  }
  #calendar-browser,
  .public-layout > *,
  .admin-layout > *,
  .mini-calendar {
    min-width: 0;
  }
}
/* Keep all seven weekdays visible without horizontal scrolling. */
@media (max-width: 560px) {
  .public-page main {
    padding: 0 10px;
  }
  #calendar-browser .card {
    padding: 12px 8px;
  }
  .calendar {
    width: 100%;
    gap: 3px;
    margin-top: 16px;
  }
  .calendar .day {
    min-width: 0;
    padding: 5px 2px;
    border-radius: 6px;
  }
  .public-grid .day {
    min-height: 90px;
  }
  .calendar .weekday {
    font-size: 9px;
    padding-bottom: 4px;
  }
  .day-date {
    text-align: center;
    min-height: 38px;
  }
  .public-grid .day small {
    font-size: 8px;
    line-height: 1.25;
    margin-top: 4px;
    overflow-wrap: anywhere;
  }
  .today-mark {
    position: static;
    display: block;
    font-size: 7px;
  }
  .calendar-activities {
    margin-top: 5px;
    gap: 3px;
  }
  .calendar-activity {
    min-height: 32px;
    padding: 4px 1px;
    font-size: 8px;
    text-align: center;
    white-space: normal;
  }
  .booking-time {
    display: block;
    overflow-wrap: anywhere;
  }
  .booking-title {
    display: none;
  }
  .calendar-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .calendar-controls {
    flex-shrink: 0;
  }
  .calendar-jump {
    flex-wrap: wrap;
    gap: 8px;
  }
  .calendar-jump input {
    flex: 1 1 140px;
    min-width: 0;
    max-width: 100%;
  }
  .calendar-legend {
    flex-wrap: wrap;
    gap: 8px;
  }
  .mini-calendar {
    width: 100%;
    max-width: 340px;
    box-sizing: border-box;
  }
}
