@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ============ RESET & BASE ============ */
* {
  box-sizing: border-box
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5
}

body.centered-page {
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0;
}

/* ============ GLASS & BUTTONS ============ */
.glass {
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .2)
}

.glass-card {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, .1)
}

.btn-primary {
  background: #FFD700;
  transition: all .3s ease;
  position: relative;
  overflow: hidden
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 215, 0, .4)
}

/* ============ FORMS ============ */
.form-input {
  transition: all .3s ease;
  border: 2px solid #d1d5db;
  background: #fff
}

.form-input:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 20px rgba(255, 215, 0, .2);
  transform: translateY(-2px)
}

.booking-form {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
  padding: 20px;
  width: 100%;
  max-width: 400px
}

.booking-form h2 {
  text-align: center;
  margin-bottom: 20px
}

.form-group {
  margin-bottom: 15px
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px
}

.form-group input:disabled {
  background-color: #f5f5f5;
  color: #777
}

.form-group textarea {
  resize: none
}

.submit-btn {
  background-color: #4CAF50;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 5px;
  width: 100%;
  cursor: pointer;
  font-size: 16px;
  transition: background-color .3s ease
}

.submit-btn:hover {
  background-color: #45a049
}

/* ============ MISC UI ============ */
.arrow-btn {
  transition: color .3s ease
}

.arrow-btn:hover {
  color: #d4af37
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #000;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px
}

::-webkit-scrollbar-track {
  background: #f1f1f1
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, .1);
  border-radius: 4px
}

@keyframes scaleFade {
  0% {
    opacity: 0;
    transform: scale(.5)
  }

  100% {
    opacity: 1;
    transform: scale(1)
  }
}

.animate-scaleFade {
  animation: scaleFade .5s ease-out forwards
}

@media (max-width:768px) {
  .main-container {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .intro-section {
    text-align: center
  }
}

.hero .container {
  max-width: 100%
}

/* ============ DASHBOARD ============ */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

.profile-header {
  background: linear-gradient(180deg, #d6d3c9 0%, #8e8e7d 100%);
  border-radius: 20px;
  padding: 40px;
  color: #000;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1)
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap
}

.profile-avatar {
  position: relative
}

.avatar-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .1);
  object-fit: cover;
  background: rgba(0, 0, 0, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(50, 50, 50, .8)
}

.default-avatar {
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(0, 0, 0, .8);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(0, 0, 0, .3)
}

.profile-details {
  flex: 1;
  min-width: 200px
}

.profile-name {
  font-size: 2.2em;
  font-weight: 600;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .1)
}

.profile-email {
  font-size: 1.1em;
  opacity: .9;
  margin: 0 0 15px 0
}

.profile-meta {
  display: flex;
  gap: 30px;
  margin: 20px 0
}

.meta-item {
  text-align: center
}

.meta-number {
  font-size: 1.5em;
  font-weight: 600;
  display: block
}

.meta-label {
  font-size: .9em;
  opacity: .8
}

.edit-profile-btn {
  background: rgba(255, 255, 255, .2);
  border: 2px solid rgba(0, 0, 0, .3);
  color: #000;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  transition: all .3s ease;
  text-decoration: none;
  display: inline-block
}

.edit-profile-btn:hover {
  background: rgba(0, 0, 0, .3);
  border-color: rgba(255, 255, 255, .5);
  transform: translateY(-2px);
  text-decoration: none;
  color: #d6d3c9
}

.section {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
  border: 1px solid #f0f0f0
}

.section-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #d6d3c9 0%, #8e8e7d 100%);
  border-radius: 2px
}

.booking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px
}

.booking-table th,
.booking-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee
}

.booking-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #555;
  font-size: .9em;
  text-transform: uppercase;
  letter-spacing: .5px
}

.booking-table tr:hover {
  background: #f8f9fa
}

.status-badge {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: .8em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px
}

.status-pending {
  background: #fff3cd;
  color: #856404
}

.status-confirmed {
  background: #d4edda;
  color: #155724
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: black
}

.empty-state-icon {
  font-size: 4em;
  margin-bottom: 20px;
  opacity: .3
}

.empty-state-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: black
}

.empty-state-text {
  font-size: 1em;
  margin-bottom: 30px;
  opacity: .8
}

.booking-btn {
  background: linear-gradient(135deg, #d6d3c9 0%, #8e8e7d 100%);
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 500;
  transition: all .3s ease;
  text-decoration: none;
  display: inline-block
}

.booking-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, .3);
  text-decoration: none;
  color: #fff
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px
}

.stat-card {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
  border: 1px solid #f0f0f0;
  text-align: center
}

.stat-number {
  font-size: 2em;
  font-weight: 700;
  color: #f4f5fb;
  margin-bottom: 5px
}

.stat-label {
  color: #666;
  font-size: .9em;
  text-transform: uppercase;
  letter-spacing: .5px
}

@media (max-width:768px) {
  .profile-info {
    flex-direction: column;
    text-align: center
  }

  .profile-meta {
    justify-content: center
  }

  .booking-table {
    font-size: .9em
  }

  .booking-table th,
  .booking-table td {
    padding: 10px 8px
  }
}

#debug-icon {
  display: none !important
}

/* ============ ADMIN LAYOUT ============ */
:root {
  --navbar-h: 72px;
  --page-pad-x: 24px
}

.admin-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px var(--page-pad-x);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px
}

.admin-layout .admin-sidebar {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
  padding: 18px;
  position: sticky;
  top: calc(var(--navbar-h) + 8px);
  align-self: start;
  height: calc(100vh - var(--navbar-h) - 24px);
  overflow: auto
}

.admin-layout .admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333
}

.admin-layout .admin-brand i {
  background: linear-gradient(135deg, #d6d3c9 0%, #8e8e7d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.admin-layout .admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.admin-layout .admin-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .2s
}

.admin-layout .admin-nav__link i {
  width: 18px;
  text-align: center
}

.admin-layout .admin-nav__link:hover {
  background: #f8f9fa;
  border-color: #f0f0f0
}

.admin-layout .admin-nav__link.is-active {
  background: linear-gradient(135deg, #d6d3c9 0%, #8e8e7d 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .12)
}

.admin-layout .admin-main {
  min-height: calc(100vh - var(--navbar-h));
  min-width: 0
}

.admin-layout .admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px
}

.admin-layout .block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0
}

.admin-layout .card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 15px;
  padding: 16px;
  margin-bottom: 16px
}

.admin-layout .card-title {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px
}

.admin-layout .stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px
}

.admin-layout .stat-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 15px;
  padding: 18px;
  text-align: center
}

.admin-layout .stat-num {
  font-size: 28px;
  font-weight: 700
}

.admin-layout .stat-lbl {
  color: #6B7280
}

.admin-layout .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff
}

.admin-layout .table th,
.admin-layout .table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f7f7f7;
  text-align: left
}

.admin-layout .table th {
  background: #FAFAFA;
  color: #374151;
  font-weight: 600
}

.admin-layout .table.flat {
  border: 0;
  border-radius: 12px
}

.admin-layout .table .empty {
  text-align: center;
  color: #6B7280;
  padding: 24px
}

.admin-layout .badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px
}

.admin-layout .badge.pending {
  background: #FEF3C7;
  color: #92400E
}

.admin-layout .badge.confirmed {
  background: #D1FAE5;
  color: #065F46
}

.admin-layout .badge.completed {
  background: #DBEAFE;
  color: #1E40AF
}

.admin-layout .badge.cancelled {
  background: #FEE2E2;
  color: #991B1B
}

.admin-layout .btn {
  background: #EEE;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.admin-layout .btn.small {
  padding: 6px 10px;
  font-size: 13px
}

.admin-layout .btn.success {
  background: #10B981;
  color: #fff;
  border-color: transparent
}

.admin-layout .btn.danger {
  background: #EF4444;
  color: #fff;
  border-color: transparent
}

.admin-layout .btn.warn {
  background: #F59E0B;
  color: #fff;
  border-color: transparent
}

.admin-layout .btn-grad {
  background: linear-gradient(135deg, #d6d3c9 0%, #8e8e7d 100%);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 8px 14px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08)
}

.admin-layout .row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.admin-layout .subtext {
  font-size: 12px;
  color: #6B7280
}

.admin-layout .muted {
  color: #6B7280
}

.admin-layout .form-inline.card {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap
}

.admin-layout .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.admin-layout .form-row>label {
  font-size: 13px;
  color: #6B7280
}

.admin-layout .form-row>input,
.admin-layout .inline-form select {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 8px 10px
}

.admin-layout .file-list {
  list-style: none;
  padding-left: 16px
}

.admin-layout .file-list li {
  margin: 6px 0
}

@media (max-width:992px) {
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px var(--page-pad-x)
  }

  .admin-layout .admin-sidebar {
    position: static;
    height: auto
  }

  .admin-layout .stat-grid {
    grid-template-columns: 1fr
  }
}

/* Sidebar (legacy selectors — biarkan agar tak bentrok) */
.admin-sidebar {
  width: 260px;
  padding: 16px;
  background: #fff;
  border-right: 1px solid #eef2f7
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1f2937;
  margin: 6px 6px 12px
}

.admin-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 6px;
  border-radius: 12px;
  text-decoration: none;
  color: #1f2937;
  transition: background-color .15s
}

.admin-nav__link:hover {
  background: #f3f4f6
}

.admin-nav__link.is-active {
  background: #eef2ff;
  font-weight: 600
}

.nav-group {
  margin: 6px 0
}

.nav-group__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 6px;
  border-radius: 12px;
  color: #1f2937
}

.nav-group__summary:hover {
  background: #f3f4f6
}

.nav-group[open] .nav-group__summary {
  background: #eef2ff
}

.nav-group .caret {
  margin-left: auto;
  transition: transform .2s
}

.nav-group[open] .caret {
  transform: rotate(180deg)
}

.nav-group__items {
  padding: 4px 0 8px
}

.admin-nav__sublink {
  display: block;
  padding: 8px 14px 8px 38px;
  margin: 2px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #334155;
  transition: .15s
}

.admin-nav__sublink:hover {
  background: #f1f5f9
}

.admin-nav__sublink.is-active {
  background: #e2e8f0;
  font-weight: 600
}

/* === TAMBAHAN UNTUK HALAMAN REKAP =================== */
.table .file-name {
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

/* ============ PREVIEW MODAL — REVISED (tanpa duplikasi) ============ */
/* Overlay container */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.preview-modal.is-open {
  display: flex
}

/* Backdrop */
.pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55)
}

/* Dialog */
.pm-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: clamp(360px, 92vw, 1100px);
  max-height: 90vh;
  margin: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* Header & Footer */
.pm-header,
.pm-footer {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.pm-footer {
  border-bottom: 0;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  z-index: 2
}

/* Title & close */
.pm-title {
  font-weight: 600;
  font-size: 15px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.pm-close {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer
}

/* Body */
.pm-body {
  padding: 0;
  overflow: auto;
  background: #f5f5f5;
}

.pm-frame {
  display: block;
  width: 100%;
  height: calc(90vh - 120px);
  /* kira-kira: 90vh - (header+footer) */
  border: 0;
  background: #fff;
}

/* Image preview */
.pm-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(90vh - 120px);
  background: #222;
}

.pm-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain
}

/* Footer buttons (optional styling, non-intrusive) */
.pm-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer
}

.pm-btn.primary {
  background: #ffb100
}

.pm-btn.neutral {
  background: #e9eef5
}

.pm-btn.danger {
  background: #ff5a5a;
  color: #fff;
  margin-left: auto
}

.pm-btn a {
  color: inherit;
  text-decoration: none;
  display: block
}

/* Responsive tweak */
@media (max-width:640px) {
  .pm-dialog {
    width: 96vw;
    border-radius: 12px
  }

  .pm-frame,
  .pm-img-wrap {
    height: calc(90vh - 140px)
  }
}

/* ===================================================== */
/* ============= SLOT PAGE (TABLE VARIANT) ============= */
/* ===================================================== */
.slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px
}

.slot-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px
}

/* Alerts / Cards */
.slot-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px
}

.slot-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px
}

.slot-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px
}

.slot-alert.info {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0
}

.slot-alert.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #d1fae5
}

.slot-alert.warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a
}

.slot-alert.danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca
}

/* Form */
.slot-form .slot-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
  gap: 12px
}

.slot-form .slot-field {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.slot-form .slot-field label {
  font-size: 13px;
  color: #374151
}

.slot-form .slot-field input {
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff
}

.slot-form .slot-field.note {
  grid-column: 1 / span 4;
  display: flex;
  align-items: center
}

.slot-actions-right {
  display: flex;
  justify-content: flex-end;
  align-items: end
}

/* Table */
.table-wrap {
  overflow: auto
}

.slot-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden
}

.slot-table thead th {
  background: #f8fafc;
  color: #475569;
  text-align: left;
  padding: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb
}

.slot-table tbody td {
  padding: 12px;
  border-top: 1px solid #f1f5f9;
  vertical-align: top
}

.slot-table tbody tr:first-child td {
  border-top: 1px solid #e5e7eb
}

.slot-table .empty {
  text-align: center;
  color: #6b7280;
  padding: 18px
}

/* Badges untuk status slot */
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600
}

.badge-booked {
  background: #e6f0ff;
  color: #1e40af
}

.badge-available {
  background: #f0fdf4;
  color: #065f46
}

/* Actions */
.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.btn-gray {
  background: #f3f4f6;
  border: 1px solid #e5e7eb
}

.btn-primary-soft {
  background: #ede9fe;
  color: #3730a3;
  border: 1px solid #ddd6fe
}

.btn-success {
  background: #10b981;
  color: #fff;
  border: 1px solid #059669
}

.btn-danger {
  background: #ef4444;
  color: #fff;
  border: 1px solid #dc2626
}

/* Small elements */
.cell-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px
}

.muted {
  color: #9ca3af
}

/* Responsive */
@media (max-width: 900px) {
  .slot-form .slot-form-grid {
    grid-template-columns: 1fr 1fr
  }

  .slot-form .slot-field.note {
    grid-column: 1/-1
  }
}

dan ini css untuk halaman kontaknya

/* Tailwind tetap di-load via CDN di view. Ini hanya custom styles kecil biar rapi dipisah. */
body {
  background: #f9fafc;
  font-family: 'Inter', sans-serif;
  color: #222222;
}

/* focus ring untuk input */
.input-focus:focus {
  outline: none !important;
  border-color: #d97706;
  /* amber-600 */
  box-shadow: 0 0 0 3px rgb(253 186 116 / 0.5);
}

/* tombol utama */
.btn-primary {
  background-color: #fbbf24;
  /* amber-400 */
  color: #202020;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #d97706;
  /* amber-600 */
  color: #fff;
}

/* ikon bulat di atas form */
.icon-bg {
  background-color: #fbbf24;
}

/* textarea interaktif */
textarea {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
  background-color: #fffbea;
  box-shadow: 0 0 8px 2px rgba(251, 191, 36, 0.5);
}

/* tombol submit dengan panah animasi */
.btn-submit {
  position: relative;
  overflow: hidden;
}

.btn-submit:after {
  content: "→";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-submit:hover:after {
  opacity: 1;
  transform: translateY(-50%) translateX(5px);
}

.alert {
  padding: 10px 16px;
  margin: 10px 0;
  border-radius: 6px;
  font-weight: 500
}

.alert.success {
  background: #d1fae5;
  color: #065f46
}

.alert.error {
  background: #fee2e2;
  color: #991b1b
}

.alert.warn {
  background: #fef3c7;
  color: #92400e
}

.service-card {
  border: 1px solid #eaeaea;
  border-radius: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.service-badge {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .25rem .5rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.service-feats li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  margin-bottom: .35rem;
}

.service-feats svg {
  flex: 0 0 auto;
  margin-top: .15rem;
}

.service-cta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

/* ====== Roles Page Layout ====== */
.roles-page {
  padding: 20px clamp(8px, 2.2vw, 24px);
  background: #f7f8fa;
  min-height: 65vh;
}

.roles-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.roles-head__title h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  display: flex;
  gap: 10px;
  align-items: center;
}

.roles-head__muted {
  margin: 2px 0 0;
  color: #6b7280;
  /* gray-500 */
  font-size: 13px;
}

/* ====== Filter ====== */
.roles-filter {
  display: flex;
  gap: 10px;
  align-items: center;
}

.roles-filter__input {
  flex: 1 1 320px;
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.roles-filter__input:focus {
  border-color: #a3d3ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .15);
}

/* ====== Card ====== */
.card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.roles-card {
  padding: 12px;
}

.card__title {
  font-weight: 600;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #f1f2f5;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ====== Table ====== */
.table-wrap {
  overflow: auto;
  width: 100%;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  text-align: left;
  font-weight: 600;
  color: #6b7280;
  font-size: 13px;
  background: #fafbfc;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f3;
}

.table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  font-size: 14px;
}

.table--flat tbody tr:hover {
  background: #fafcff;
}

.col-no {
  width: 56px;
}

.col-role {
  width: 160px;
}

.col-quick {
  width: 420px;
}

.col-manual {
  width: 280px;
}

/* ====== User cell ====== */
.user-name {
  font-weight: 600;
}

.user-id {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

.user-email {
  word-break: break-all;
}

/* ====== Badges ====== */
.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.badge--admin {
  color: #1f2937;
  background: #fde68a;
  border: 1px solid #fcd34d;
}

.badge--user {
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
}

.badge--multiuser,
.badge--multi-user {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

/* ====== Buttons / Inputs ====== */
.btn {
  --bg: #e5e7eb;
  --fg: #111827;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid #e5e7eb;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform .05s ease, filter .15s ease, background .15s ease;
}

.btn:hover {
  filter: brightness(0.98);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  --bg: #d97706;
  --fg: #fff;
  border-color: #ffffff;
}

.btn--warn {
  --bg: #f59e0b;
  --fg: #1f2937;
  border-color: #f59e0b;
}

.btn--sm {
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 8px;
}

/* ====== Select ====== */
.select {
  min-width: 160px;
  padding: 9px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

/* ====== Actions ====== */
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.actions__form {
  display: inline-flex;
}

/* ====== Empty ====== */
.empty {
  text-align: center;
  color: #9ca3af;
  padding: 20px 10px;
  font-style: italic;
}

/* ====== Utilities ====== */
.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;
}

/* ====== Responsive tweaks ====== */
@media (max-width: 1024px) {
  .col-quick {
    width: 360px;
  }

  .col-manual {
    width: 240px;
  }
}

@media (max-width: 820px) {
  .roles-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .roles-filter {
    flex-wrap: wrap;
  }

  .roles-filter__input {
    flex: 1 1 100%;
  }
}

@media (max-width: 640px) {
  .btn span {
    display: none;
  }

  /* hemat ruang, simpan ikon saja */
  .table thead {
    display: none;
  }

  /* stack cards */
  .table tr {
    display: grid;
    gap: 8px;
    border-bottom: 1px solid #eef0f3;
    padding: 12px 10px;
  }

  .table td {
    border: 0;
    padding: 6px 0;
  }

  .col-no {
    order: -1;
    color: #9ca3af;
  }
}

/* ========== Layout & Header ========== */
.employees-page {
  padding: 20px clamp(8px, 2vw, 24px);
  background: #f7f8fa;
  min-height: 65vh;
}

.emp-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.emp-head h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  display: flex;
  gap: 10px;
  align-items: center;
}

.emp-head__actions {
  display: flex;
  gap: 8px;
}

/* ========== Card ========== */
.card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.emp-card {
  padding: 12px;
}

.card__title {
  font-weight: 600;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #f1f2f5;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ========== Table ========== */
.table-wrap {
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  text-align: left;
  font-weight: 600;
  color: #6b7280;
  font-size: 13px;
  background: #fafbfc;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f3;
}

.table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  font-size: 14px;
}

.table--flat tbody tr:hover {
  background: #fafcff;
}

.col-no {
  width: 56px;
}

.col-foto {
  width: 64px;
}

.col-status {
  width: 110px;
}

.col-aksi {
  width: 280px;
}

/* ========== Avatar ========== */
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar__placeholder {
  color: #9ca3af;
  font-size: 18px;
}

/* ========== Text helpers ========== */
.emp-name {
  font-weight: 600;
}

.emp-jabatan,
.emp-email,
.emp-spec {
  color: #374151;
}

.emp-email {
  word-break: break-all;
}

/* ========== Badges ========== */
.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.badge--active {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

.badge--inactive {
  color: #7c2d12;
  background: #ffedd5;
  border: 1px solid #fed7aa;
}

/* ========== Buttons ========== */
.btn {
  --bg: #e5e7eb;
  --fg: #111827;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid #e5e7eb;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform .05s ease, filter .15s ease;
}

.btn:hover {
  filter: brightness(.98);
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 8px;
}

.btn--success {
  --bg: #10b981;
  --fg: #ffffff;
  border-color: #10b981;
}

.btn--danger {
  --bg: #ef4444;
  --fg: #ffffff;
  border-color: #ef4444;
}

.btn--dim {
  --bg: #e5e7eb;
  --fg: #111827;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline {
  display: inline-block;
}

/* ========== Empty & Pager ========== */
.empty {
  text-align: center;
  color: #9ca3af;
  padding: 20px 10px;
  font-style: italic;
}

.pager-wrap {
  padding: 12px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .col-aksi {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .emp-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .table thead {
    display: none;
  }

  .table tr {
    display: grid;
    gap: 8px;
    border-bottom: 1px solid #eef0f3;
    padding: 12px 10px;
  }

  .table td {
    border: 0;
    padding: 6px 0;
  }

  .col-no {
    order: -1;
    color: #9ca3af;
  }

  .btn span {
    display: none;
  }

  /* hemat ruang, ikon saja */
}

.employee-form-page {
  padding: 20px;
  background: #f7f8fa;
  min-height: 65vh;
}

.ef-head h2 {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.ef-card {
  padding: 16px;
}

.ef-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ef-panel {
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
  padding: 16px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  color: #374151;
  font-weight: 600;
  font-size: 14px;
}

.input,
.textarea,
.select,
.file {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.input:focus,
.textarea:focus,
.select:focus,
.file:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
  outline: none;
}

.textarea {
  resize: vertical;
}

.hint {
  margin: 2px 0 0;
  color: #6b7280;
  font-size: 12px;
}

.ef-photo {
  margin-top: 10px;
}

.ef-photo img {
  max-height: 140px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.ef-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(.97);
}

.btn--primary {
  background: #d97706;
  border-color: #ffffff;
  color: #fff;
}

@media (max-width:900px) {
  .ef-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Employees page (ADMIN) ===== */
.employees-page {
  padding: 20px clamp(8px, 2vw, 24px);
  background: #f7f8fa;
  min-height: 65vh
}

.emp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px
}

.emp-head h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  display: flex;
  gap: 10px;
  align-items: center
}

.alert {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600
}

.alert.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0
}

.alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca
}

.btn {
  --bg: #e5e7eb;
  --fg: #111827;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid #e5e7eb;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer
}

.btn:hover {
  filter: brightness(.98)
}

.btn--primary {
  --bg: #d97706;
  --fg: #fff;
  border-color: #ffffff
}

.btn--success {
  --bg: #10b981;
  --fg: #fff;
  border-color: #10b981
}

.btn--danger {
  --bg: #ef4444;
  --fg: #fff;
  border-color: #ef4444
}

.btn--dim {
  --bg: #e5e7eb;
  --fg: #111827
}

.btn--sm {
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 8px
}

.card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04)
}

.card__title {
  font-weight: 600;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #f1f2f5;
  display: flex;
  gap: 10px;
  align-items: center
}

.emp-card {
  padding: 12px
}

.table-wrap {
  overflow: auto
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0
}

.table thead th {
  text-align: left;
  font-weight: 600;
  color: #6b7280;
  font-size: 13px;
  background: #fafbfc;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f3
}

.table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  font-size: 14px
}

.table--flat tbody tr:hover {
  background: #fafcff
}

.col-foto {
  width: 64px
}

.col-status {
  width: 110px
}

.col-aksi {
  width: 280px
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.avatar__placeholder {
  color: #9ca3af;
  font-size: 18px
}

.emp-name {
  font-weight: 700
}

.emp-meta {
  color: #6b7280;
  font-size: 12px;
  margin-top: 2px
}

.emp-jabatan,
.emp-spec,
.emp-email {
  color: #374151
}

.emp-email {
  word-break: break-all
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  line-height: 1
}

.badge--active {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0
}

.badge--inactive {
  color: #7c2d12;
  background: #ffedd5;
  border: 1px solid #fed7aa
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center
}

.actions--end {
  justify-content: flex-end
}

.inline {
  display: inline-block
}

.emp-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0
}

.emp-tools__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px
}

.emp-tools__search i {
  color: #6b7280
}

.emp-tools__search input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 14px;
  background: transparent
}

.emp-tools__select {
  min-width: 160px
}

.empty-state {
  display: grid;
  place-items: center;
  padding: 24px 10px;
  color: #6b7280
}

.empty-state i {
  font-size: 20px;
  margin-bottom: 6px
}

@media (max-width:930px) {
  .col-aksi {
    width: 240px
  }
}

@media (max-width:760px) {
  .table thead {
    display: none
  }

  .table tr {
    display: grid;
    gap: 8px;
    border-bottom: 1px solid #eef0f3;
    padding: 12px 10px
  }

  .table td {
    border: 0;
    padding: 6px 0
  }

  .hide-md {
    display: none
  }
}

/* ============ Page & Header ============ */
.slot-page {
  padding: 20px clamp(8px, 2vw, 24px);
  background: #f7f8fa;
  min-height: 65vh
}

.slot-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px
}

.slot-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px)
}

/* ============ Cards ============ */
.slot-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  padding: 14px;
  margin-top: 12px
}

.slot-card-head {
  padding: 6px 2px 10px
}

.slot-card-head h3 {
  margin: 0;
  font-weight: 700;
  font-size: 16px
}

/* ============ Alerts ============ */
.slot-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600
}

.slot-alert.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0
}

.slot-alert.danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca
}

.slot-alert.warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a
}

.slot-alert.info {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe
}

/* ============ Form ============ */
.slot-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) 1fr;
  gap: 12px;
  align-items: end
}

.slot-field {
  display: grid;
  gap: 6px
}

.slot-field label {
  font-size: 13px;
  font-weight: 700;
  color: #374151
}

.slot-field input[type="date"],
.slot-field input[type="time"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s
}

.slot-field input:focus {
  border-color: #a3d3ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .15)
}

.slot-field.note {
  align-self: center
}

.slot-field small {
  color: #6b7280
}

.slot-actions-right {
  display: flex;
  justify-content: flex-end;
  align-items: center
}

/* ============ Buttons ============ */
.btn {
  --bg: #e5e7eb;
  --fg: #111827;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid #e5e7eb;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none
}

.btn:hover {
  filter: brightness(.98)
}

.btn:active {
  transform: translateY(1px)
}

.btn--primary-soft {
  --bg: #eef2ff;
  --fg: #3730a3;
  border-color: #c7d2fe
}

.btn--gray {
  --bg: #f3f4f6;
  --fg: #111827;
  border-color: #e5e7eb
}

.btn--success {
  --bg: #10b981;
  --fg: #fff;
  border-color: #10b981
}

.btn--danger {
  --bg: #ef4444;
  --fg: #fff;
  border-color: #ef4444
}

/* ============ Table ============ */
.table-wrap {
  overflow: auto
}

.slot-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0
}

.slot-table thead th {
  text-align: left;
  font-weight: 700;
  color: #6b7280;
  font-size: 13px;
  background: #fafbfc;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f3
}

.slot-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  font-size: 14px
}

.slot-table tbody tr:hover {
  background: #fafcff
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.inline {
  display: inline-block
}

.empty {
  text-align: center;
  color: #9ca3af;
  padding: 18px 10px;
  font-style: italic
}

/* ============ Badges ============ */
.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  line-height: 1
}

.badge-available {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0
}

.badge-booked {
  color: #1e3a8a;
  background: #e0e7ff;
  border: 1px solid #c7d2fe
}

.badge-completed {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0
}

/* ============ Cell extras ============ */
.cell-note {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px
}

.cell-note i {
  font-size: 12px
}

.muted {
  color: #9ca3af
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .slot-form-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr)) 1fr
  }
}

@media (max-width: 860px) {
  .slot-form-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto
  }

  .slot-actions-right {
    justify-content: flex-start
  }
}

@media (max-width: 680px) {
  .slot-table thead {
    display: none
  }

  .slot-table tr {
    display: grid;
    gap: 8px;
    border-bottom: 1px solid #eef0f3;
    padding: 12px 10px
  }

  .slot-table td {
    border: 0;
    padding: 6px 0
  }
}