:root {
  --diald-primary: #00695c;
  --diald-secondary: #b2dfdb;
  --diald-accent: #ff7043;
  --diald-text: #263238;
  --diald-muted: #607d8b;
  --diald-border: #e5e7eb;
}
body {
  background: #ffffff;
  color: var(--diald-text);
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}
@supports (height: 100svh) {
  body {
    min-height: 100svh;
  }
}
.title-font {
  font-family: "Exo 2", "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 600;
}
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-header {
  background: #ffffff;
  border-bottom: 1px solid #eef1f6;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.brand-text {
  font-size: 1.4rem;
}
.checkin-card {
  max-width: 520px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.form-shell {
  margin: 0 auto;
  width: 100%;
  max-width: 520px;
}
.form-shell-wide {
  max-width: 1200px;
  width: 100%;
}
.form-shell-spaced {
  padding: 1.5rem;
}
.form-shell-compact {
  padding-top: 0;
}
@media (min-width: 768px) {
  .form-shell {
    max-width: 640px;
  }
  .form-shell-spaced {
    padding: 2rem;
  }
  .form-shell-wide {
    max-width: 100%;
  }
}
.filter-select {
  padding: 0;
  min-height: 2.1rem;
  line-height: 2.1rem;
  height: 2.1rem;
  background-color: transparent;
}
.filter-field {
  max-width: 320px;
}
.filter-panel .filter-field {
  max-width: none;
}
.filter-card {
  padding: 0;
  background: transparent;
}
.filter-wrapper {
  border: 1px solid #dfe5ec;
  border-radius: 10px;
  padding: 0.25rem 0.6rem;
  background: #ffffff;
}
.filter-wrapper:focus-within {
  border-color: var(--diald-primary);
  box-shadow: 0 0 0 0.15rem rgba(0, 105, 92, 0.18);
}
.filter-wrapper .form-control[type="date"] {
  height: 2.1rem;
  line-height: 2.1rem;
  padding: 0;
}
.filter-panel .form-card.compact .form-control[type="date"] {
  height: 2.1rem;
  line-height: 2.1rem;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.filter-select:required:invalid {
  color: #dc3545;
}
.filter-card .filter-select {
  width: 100%;
}
.filter-card .filter-select:focus,
.filter-card .filter-select:focus-visible {
  box-shadow: none;
  outline: none;
}
.filter-wrapper .filter-select:focus,
.filter-wrapper .filter-select:focus-visible {
  box-shadow: none;
  outline: none;
}
.filter-wrapper .filter-select {
  font-size: 0.95rem;
}
.doctor-placeholder:required:invalid {
  color: #dc3545;
}
@media (max-width: 767.98px) {
  .filter-field {
    max-width: 100%;
  }
}
.form-card {
  background: #ffffff;
  border: 1px solid #dfe5ec;
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.form-card.compact {
  padding: 0.65rem 0.85rem;
}
.date-card {
  padding: 0.4rem 0.75rem;
}
.date-card .form-control[type="date"] {
  height: 1.8rem;
  line-height: 1.8rem;
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
}
.form-card .form-control {
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  min-height: 1.5rem;
  color: var(--diald-text);
}
.form-card .form-control:focus {
  outline: none;
  box-shadow: none;
}
.form-card .form-control::placeholder {
  color: #9aa7b2;
}
.form-card .form-select {
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  color: var(--diald-text);
  height: 100%;
}
.form-card .form-select.native-select {
  background-color: #ffffff;
  padding-right: 1.5rem;
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
}
.form-card .form-select:focus,
.form-card .form-select:focus-visible {
  box-shadow: none;
  outline: none;
}
.form-card:focus-within {
  border-color: var(--diald-primary);
  box-shadow: 0 0 0 0.15rem rgba(0, 105, 92, 0.18);
}
.form-check-input {
  border-radius: 12px;
  border-color: #d6dbe5;
  accent-color: var(--diald-primary);
}
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 105, 92, 0.2);
  border-color: var(--diald-primary);
}
.form-check-input:checked {
  background-color: var(--diald-primary);
  border-color: var(--diald-primary);
}
.gender-option {
  border: 1px solid #e3e7ef;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
}
.gender-option input[type="radio"] {
  accent-color: var(--diald-primary);
}
.btn-primary {
  background: var(--diald-primary);
  border-color: var(--diald-primary);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  box-shadow: none;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #00544b;
  border-color: #00544b;
}
.btn-primary:active,
.btn-primary:focus:active,
.btn-primary:focus-visible {
  background: #004b43;
  border-color: #004b43;
}
.btn-primary:active:focus {
  background: #004b43;
  border-color: #004b43;
}
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
  background: #004b43;
  border-color: #004b43;
}
.btn-primary:disabled,
.btn-primary.disabled {
  background: rgba(0, 105, 92, 0.35);
  border-color: rgba(0, 105, 92, 0.35);
  color: #ffffff;
  opacity: 1;
}
.btn-compact {
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  font-family: "Exo 2", "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 600;
}
.btn-reject {
  background: #f1f3f5;
  border-color: #f1f3f5;
  color: #52606d;
}
.btn-reject:hover,
.btn-reject:focus,
.btn-reject:active {
  background: #e6eaee;
  border-color: #e6eaee;
  color: #46525d;
}
.fee-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
}
.fee-group .input-group-text,
.fee-group .form-control,
.fee-group .btn {
  border-radius: 10px;
}
.fee-group .form-control {
  min-width: 0;
  flex: 1 1 0%;
}
.fee-group .btn {
  white-space: nowrap;
  flex: 0 0 auto;
}
.fee-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--diald-accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}
.fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eef1f6;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  color: #6b7280;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fee-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--diald-text);
  letter-spacing: 0;
  text-transform: none;
}
.total-collection {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  background: #f7f9fb;
  border: 1px solid #e5e7eb;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}
.total-collection strong {
  color: var(--diald-primary);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}
.filter-toggle {
  border: 1px solid #e5e7eb;
  background: #f1f3f5;
  border-radius: 12px;
  padding: 0.45rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #4b5563;
  font-weight: 600;
  font-family: "Exo 2", "Inter", system-ui, -apple-system, sans-serif;
}
@media (max-width: 767.98px) {
  .header-actions {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }
  .header-actions .filter-toggle,
  .header-actions .btn {
    flex: 1 1 0%;
    justify-content: center;
  }
}
.filter-panel {
  display: none;
}
.filter-panel.is-open {
  display: flex;
  flex-wrap: wrap;
}
.filter-panel.boxed {
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 0.75rem 1rem;
  background: #fcfdfd;
  margin: 0 0.5rem;
}
@media (max-width: 767.98px) {
  .total-collection {
    width: 100%;
    justify-content: space-between;
  }
}
.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.page-loader.is-visible {
  display: flex;
}
.rejected-card {
  opacity: 0.7;
}
.doctor-change {
  display: inline-block;
}
.doctor-change summary {
  list-style: none;
  cursor: pointer;
  color: var(--diald-accent);
  font-weight: 600;
}
.doctor-change[open] summary {
  display: none;
}
.doctor-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}
.doctor-label {
  font-weight: 600;
  color: var(--diald-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}
.doctor-change-link {
  pointer-events: auto;
  color: var(--diald-accent);
  font-weight: 600;
  flex: 0 0 auto;
}
.doctor-slot {
  margin-bottom: 0.6rem;
}
.doctor-slot .form-card {
  margin-top: 0;
}
.doctor-display {
  display: flex;
  align-items: center;
  height: 100%;
}
.doctor-static {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.doctor-assign {
  display: none;
}
.doctor-change[open] .doctor-static {
  display: none;
}
.doctor-change[open] .doctor-assign {
  display: block;
}
.doctor-change,
.doctor-assign,
.doctor-change .filter-wrapper {
  width: 100%;
}
.doctor-change summary::-webkit-details-marker {
  display: none;
}
.loader-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #dfe5ec;
  border-top-color: var(--diald-primary);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.page-footer {
  border-top: 1px solid #eef1f6;
  padding: 0.6rem 0;
  color: var(--diald-muted);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.alert {
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.pin-input {
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.2rem;
}
.title-sub {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--diald-muted);
}
