


:root {
    --green: #1e8e5a;
    --green-dark: #17714a;

    --text-dark: #1a1f2b;
    --text-muted: #6b7280;

    --border: #d9dde3;
    --border-focus: #1e8e5a;

    --bg: #f4f5f7;
    --card-bg: #ffffff;

    --error: #d93025;

    --shadow: 0 10px 30px rgba(20, 30, 40, 0.08);

    --radius: 10px;
}



* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    background: var(--bg);

    color: var(--text-dark);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}




#authPage {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}



#authPage .card {
    width: 100%;
    max-width: 460px;

    margin: 0 auto;

    padding: 40px 44px 36px;

    background: var(--card-bg);

    border-radius: 16px;

    box-shadow: var(--shadow);

    animation: fadeIn 0.25s ease;
}



#authPage .card.hidden {
    display: none !important;
}



#authPage .logo {
    width: 56px;
    height: 56px;

    border-radius: 50%;

    background: var(--green);

    color: #fff;

    font-size: 24px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;
}



#authPage h1 {
    text-align: center;

    font-size: 26px;
    font-weight: 800;

    color: var(--text-dark);

    margin: 0 0 6px;
}



#authPage .subtitle {
    text-align: center;

    color: var(--text-muted);

    font-size: 15px;

    margin: 0 0 28px;
}



#authPage .field {
    margin-bottom: 20px;
}

#authPage .field-pair {
    display: flex;
    gap: 16px;
}

#authPage .field-pair .field {
    flex: 1;
    min-width: 0;
}

#authPage .field-row {
    display: flex;

    align-items: center;

    justify-content: space-between;
}

#authPage label {
    display: block;

    font-size: 14px;
    font-weight: 600;

    color: var(--text-dark);

    margin-bottom: 8px;
}



#authPage input[type="text"],
#authPage input[type="email"],
#authPage input[type="password"],
#authPage input[type="number"],
#authPage select {

    width: 100%;
    max-width: 100%;

    padding: 12px 14px;

    font-size: 15px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: #fff;

    color: var(--text-dark);

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

#authPage input::placeholder {
    color: #a3a9b3;
}

#authPage input:focus,
#authPage select:focus {

    border-color: var(--border-focus);

    box-shadow:
        0 0 0 3px
        rgba(30, 142, 90, 0.15);
}



#authPage input.invalid,
#authPage select.invalid {
    border-color: var(--error);
}

#authPage input.invalid:focus,
#authPage select.invalid:focus {

    box-shadow:
        0 0 0 3px
        rgba(217, 48, 37, 0.15);
}



#authPage select {

    appearance: none;

    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'><path fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 1.04l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/></svg>");

    background-repeat: no-repeat;

    background-position: right 14px center;

    background-size: 16px;

    padding-right: 36px;
}



.error-message {
    display: block;

    min-height: 16px;

    color: var(--error);

    font-size: 12.5px;

    margin-top: 6px;
}



.link,
.link-inline {
    color: var(--green);

    text-decoration: none;

    font-weight: 700;
}

.link-inline {
    font-size: 13.5px;
}

.link:hover,
.link-inline:hover {
    text-decoration: underline;
}



.btn-primary {

    width: 100%;

    padding: 14px 18px;

    background: var(--green);

    color: #fff;

    border: none;

    border-radius: 8px;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 0.01em;

    cursor: pointer;

    margin-top: 10px;

    box-shadow: none;

    transition:
        background 0.15s ease,
        transform 0.05s ease,
        box-shadow 0.15s ease;
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-primary:active {
    transform: scale(0.99);
}

.btn-primary:disabled {
    opacity: 0.7;

    cursor: not-allowed;
}

.btn-secondary {
    background: #eef3f0;
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #e5eee9;
}

.btn-inline {
    width: auto;
    margin-top: 0;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
}

.btn-compact {
    width: auto;
    min-width: 110px;
    margin-top: 0;
    padding: 11px 16px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.announcement-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.announcement-modal-card {
  width: min(900px, 100%);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(30, 142, 90, 0.12);
  padding: 26px 28px 22px;
}

.announcement-modal-card .modal-close {
  position: absolute;
  right: 20px;
  top: 18px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
}

.announcement-modal-card { position: relative; }

.announcement-modal-card .panel-subtitle {
  font-size: 24px;
  margin-bottom: 18px;
}

#announcementForm .field {
  margin-bottom: 18px;
}

#announcementForm label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

#announcementForm input,
#announcementForm textarea,
#accountForm input,
#accountForm select {
  width: 100%;
  border: 1px solid #d3d8de;
  background: #f8faf9;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#announcementForm input:focus,
#announcementForm textarea:focus,
#accountForm input:focus,
#accountForm select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 142, 90, 0.12);
}

#announcementForm textarea {
  min-height: 140px;
  resize: vertical;
}

#accountForm .field {
  margin-bottom: 18px;
}

#accountForm .field-pair,
#accountForm .field-trio {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

#accountForm .field-pair > .field,
#accountForm .field-trio > .field {
  flex: 1;
}

#accountForm input,
#accountForm select {
  background: #f9fbfa;
}



.switch-text {

    text-align: center;

    font-size: 14.5px;

    color: var(--text-muted);

    margin-top: 22px;

    margin-bottom: 0;
}



.toast {

    position: fixed;

    bottom: 28px;

    left: 50%;

    transform:
        translateX(-50%)
        translateY(20px);

    background: var(--text-dark);

    color: #fff;

    padding: 12px 22px;

    border-radius: 8px;

    font-size: 14.5px;

    font-weight: 500;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

    z-index: 9999;
}

.toast.show {

    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0);
}

.toast.success {
    background: var(--green-dark);
}

.toast.error {
    background: var(--error);
}



.dashboard-page {
  min-height: 100vh;

  background: var(--bg);
}



.app-header {
  background: var(--green);

  color: #fff;

  position: sticky;

  top: 0;

  z-index: 50;

  box-shadow:
    0 2px 10px
    rgba(20, 30, 40, 0.12);
}


.app-header-inner {
  max-width: 100%;

  margin: 0;

  padding: 12px 22px 12px 18px;

  display: flex;

  align-items: center;

  justify-content: space-between;
}



.brand {
  display: flex;

  align-items: center;

  gap: 12px;
}


.brand-name {
  font-size: 22px;

  font-weight: 700;

  letter-spacing: 0.2px;
}



.user-menu {
  position: relative;
}


.user-menu-trigger {
  display: flex;

  align-items: center;

  gap: 8px;

  background: transparent;

  border: none;

  color: #fff;

  font-size: 14.5px;

  font-weight: 600;

  padding: 6px 8px;

  border-radius: 8px;

  cursor: pointer;

  transition:
    background 0.15s ease;
}


.user-menu-trigger:hover {
  background:
    rgba(255, 255, 255, 0.12);
}


.icon {
  width: 18px;

  height: 18px;

  flex-shrink: 0;
}


.icon-invert {
  color: #fff;
}


.icon-chevron {
  width: 15px;

  height: 15px;

  transition:
    transform 0.15s ease;
}


.user-menu.open .icon-chevron {
  transform: rotate(180deg);
}



.user-dropdown {
  position: absolute;

  top: calc(100% + 10px);

  right: 0;

  width: 250px;

  background: var(--card-bg);

  border-radius: 12px;

  box-shadow: var(--shadow);

  padding: 8px;

  animation:
    fadeIn 0.15s ease;

  z-index: 100;
}


.user-dropdown-header {
  padding: 10px 12px 12px;
}


.user-dropdown-name {
  font-size: 15px;

  font-weight: 700;

  color: var(--text-dark);
}


.user-dropdown-email {
  font-size: 13px;

  color: var(--text-muted);

  margin-top: 2px;

  word-break: break-word;
}


.user-dropdown-divider {
  height: 1px;

  background: var(--border);

  margin: 4px 0;
}


.user-dropdown-item {
  width: 100%;

  display: flex;

  align-items: center;

  gap: 10px;

  background: none;

  border: none;

  text-align: left;

  font-family: inherit;

  font-size: 14.5px;

  font-weight: 600;

  color: var(--text-dark);

  padding: 10px 12px;

  border-radius: 8px;

  cursor: pointer;

  transition:
    background 0.12s ease;
}


.user-dropdown-item .icon {
  color: var(--text-muted);
}


.user-dropdown-item:hover {
  background: #eef6f1;
}


.user-dropdown-item.active {
  background: #eef6f1;

  color: var(--green-dark);
}


.user-dropdown-item.active .icon {
  color: var(--green-dark);
}


.item-danger {
  color: var(--error);
}


.item-danger .icon {
  color: var(--error);
}


.item-danger:hover {
  background: #fdecea;
}



.app-content {
  width: 100%;

  max-width: 100%;

  margin: 0;

  padding: 28px 18px 40px;
}

.view-title-row,
.calendar-header-row,
.panel-header-row,
.calendar-nav,
.tab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-header-row .view-title {
  font-size: 18px;
  margin: 0;
}

.view-title {
  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 21px;

  font-weight: 800;

  color: var(--text-dark);

  margin: 0 0 22px;
}

.panel-subtitle {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}

#announcementForm,
#accountForm {
  width: 100%;
}

#announcementFormPanel {
  margin-bottom: 22px;
}

#announcementForm textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}

#announcementForm textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(30, 142, 90, 0.15);
}

.card-delete-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f2f5f2;
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}

.card-delete-btn:hover {
  background: #e8efea;
  color: var(--error);
}

.announcement-card {
  position: relative;
}


.icon-title {
  color: var(--green);
}



.announcement-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(280px, 1fr)
    );

  gap: 20px;
}


.announcement-card {
  background: var(--card-bg);

  border-left:
    4px solid var(--green);

  border-radius: 10px;

  box-shadow: var(--shadow);

  padding: 20px 22px;
}

.calendar-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  min-height: 40px;
}

.stat-pending {
  background: #f6e9c9;
  color: #a3670a;
}

.stat-accepted {
  background: #d7efeb;
  color: #1f7a54;
}

.stat-pill .stat-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.48);
  border-radius: 8px;
  color: inherit;
  font-size: 15px;
  font-weight: 800;
  padding: 0 6px;
}

.calendar-hint {
  margin-top: 0;
}

.calendar-nav {
  margin: 18px 0 14px;
}

.calendar-month-label {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
}

.cal-nav-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #d6d8d8;
  border-radius: 50%;
  background: #f8faf9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.cal-nav-btn:hover {
  background: #edf6f1;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #4b4f57;
  text-align: center;
  letter-spacing: 0.06em;
}

.calendar-grid {
  margin-bottom: 14px;
}

.calendar-cell {
  min-height: 84px;
  border: 1px solid #dfe2e6;
  border-radius: 10px;
  background: #fbfbfb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 8px 6px;
  text-align: center;
}

.calendar-cell:hover {
  border-color: var(--green);
}

.calendar-cell-empty {
  background: transparent;
  border: none;
  min-height: 82px;
}

.calendar-cell-today {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(30, 142, 90, 0.2);
}

.calendar-cell-selected {
  background: #f3fbf7;
  border: 2px solid rgba(30, 142, 90, 0.9);
  box-shadow: inset 0 0 0 1px rgba(30, 142, 90, 0.2);
  border-radius: 10px;
}

.calendar-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.calendar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-pending {
  background: #f4b740;
}

.dot-accepted {
  background: var(--green);
}

.calendar-day-detail {
  margin-top: 0px;
  padding-top: 0;
  border-top: none;
}

#calendarDayList {
  display: grid;
  gap: 10px;
}

.calendar-day-detail .panel-subtitle {
  margin-bottom: 12px;
  font-size: 16px;
}

.calendar-day-detail .empty-state {
  padding: 28px 12px;
  text-align: left;
}

.day-patient-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
}

.day-patient-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.day-patient-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
}

.day-patient-type {
  font-weight: 700;
  color: var(--text-dark);
}

.report-attachment-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.report-files {
  margin-top: 10px;
  font-size: 13px;
}

.day-patient-time {
  font-size: 13px;
  color: var(--text-muted);
}

.appointment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-accepted-tag,
.status-rejected-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.status-accepted-tag {
  background: #eaf8f2;
  color: var(--green-dark);
}

.status-rejected-tag {
  background: #fdecea;
  color: var(--error);
}

.btn-accept,
.btn-reject {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-accept {
  background: var(--green);
  color: #fff;
}

.btn-reject {
  background: #f3f4f6;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.tab-row {
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid var(--border);
  background: #f3f5f4;
  color: var(--text-dark);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.role-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f8faf9;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 18px;
}

.role-card-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.role-card-value {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
}

.status-approved {
  background: #eaf8f2;
  color: var(--green-dark);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8faf9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 230px;
}

.search-box input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 14px;
}

.dashed-panel {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 16px;
}

#reportSearch {
  width: 100%;
}


.announcement-date {
  font-size: 12.5px;

  color: var(--text-muted);

  font-weight: 600;

  margin-bottom: 8px;
}


.announcement-card h3 {
  margin: 0 0 8px;

  font-size: 16.5px;

  color: var(--text-dark);
}


.announcement-card p {
  margin: 0;

  font-size: 14px;

  color: var(--text-muted);

  line-height: 1.55;
}



.appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(220px, 0.8fr);

  gap: 22px;

  align-items: start;
}

.panel-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 560px;
  padding: 20px 22px;
  background: #f5f5f3;
  border: 1px solid #d9d9d7;
  border-radius: 16px;
  box-shadow: none;
}

.calendar-header-row .calendar-stats {
  align-items: center;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.stat-pill .stat-label {
  opacity: 0.9;
  font-weight: 700;
}

.stat-pill .stat-value {
  background: rgba(255,255,255,0.9);
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 900;
  color: var(--text-dark);
}


.panel {
  background: #f6f7f5;

  border-radius: 18px;

  border: 1px solid #e2e7e2;

  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);

  padding: 22px 22px 18px;
}


.panel-wide {
  max-width: 720px;

  margin: 0 auto;
}


#appointmentForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#appointmentForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#appointmentForm .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#appointmentForm label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

#appointmentForm input,
#appointmentForm select,
#appointmentForm textarea {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #cfcfcf;
  background: #f7f7f5;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#appointmentForm textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

#appointmentForm input:focus,
#appointmentForm select:focus,
#appointmentForm textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 142, 90, 0.10);
  background: #fff;
}

#appointmentForm input::placeholder,
#appointmentForm textarea::placeholder {
  color: #8b9097;
}

#apptProvider {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.appointment-requirements {
  padding: 14px 16px;
  border: 1px solid #d9e7dd;
  border-radius: 8px;
  background: #f1f8f3;
  color: var(--text-dark);
}

.appointment-requirements h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.appointment-requirements ul {
  margin: 0;
  padding-left: 20px;
}

.appointment-requirements li {
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.45;
}

.field-hint {
  font-size: 12.5px;

  color: var(--text-muted);

  margin: -2px 0 0;
}

.receipt-page {
  min-height: 100vh;
  padding: 32px 16px;
  display: grid;
  place-items: center;
}

.receipt-card {
  width: min(620px, 100%);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.receipt-brand {
  margin-bottom: 24px;
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
}

.receipt-card h1 {
  margin: 12px 0 6px;
  font-size: 25px;
}

.receipt-intro,
.receipt-private-note,
.receipt-message,
#receiptError p {
  color: var(--text-muted);
  line-height: 1.55;
}

.receipt-verified-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7f5ec;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.receipt-details {
  margin: 24px 0;
}

.receipt-details > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) 1.2fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.receipt-details dt {
  color: var(--text-muted);
  font-weight: 600;
}

.receipt-details dd {
  margin: 0;
  color: var(--text-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.receipt-private-note {
  padding: 12px;
  border-radius: 8px;
  background: #f4f5f7;
  font-size: 13px;
}

#medicalReportFormPanel {
  background: rgba(15, 23, 42, 0.28);
  z-index: 1100;
}

.medical-report-modal-card {
  position: relative;
  width: min(1000px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 26px 28px 22px;
  border: 1px solid #dce4ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 30, 40, 0.14);
}

.medical-report-modal-card .panel-subtitle {
  margin: 0 0 16px;
  font-size: 22px;
}

.medical-report-modal-card .modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 21px;
}

.report-source-context {
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #f7f9fb;
  color: #334155;
}

.report-source-context > p:first-child {
  margin: 0 0 6px;
  font-size: 12px;
}

.report-source-context > strong {
  display: block;
  font-size: 15px;
}

.report-source-context .report-source-files {
  margin: 8px 0 0;
  color: var(--green);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.report-source-context .field-hint {
  margin: 8px 0 0;
}

#medicalReportForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#medicalReportForm .field-pair {
  display: flex;
  gap: 18px;
  margin: 0;
}

#medicalReportForm .field-pair > .field {
  flex: 1;
  min-width: 0;
}

#medicalReportForm .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

#medicalReportForm label,
#medicalReportForm legend {
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

#medicalReportForm input:not([type="checkbox"]),
#medicalReportForm select,
#medicalReportForm textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: var(--text-dark);
  font: inherit;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

#medicalReportForm textarea {
  min-height: 120px;
  resize: vertical;
}

#medicalReportForm input:focus,
#medicalReportForm select:focus,
#medicalReportForm textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 142, 90, 0.12);
}

.follow-up-option {
  margin: 0;
  padding: 14px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #f9fbfa;
}

.follow-up-option legend {
  padding: 0 5px;
}

.follow-up-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px !important;
}

.follow-up-toggle input {
  accent-color: var(--green);
}

.follow-up-option > .field-hint {
  margin: 6px 0 12px;
  line-height: 1.45;
}

#reportFollowUpFields.hidden {
  display: none;
}

#medicalReportForm .form-actions {
  margin-top: 4px;
}

#medicalReportForm .form-actions .btn-primary {
  width: auto;
  min-width: 190px;
  margin-top: 0;
}

@media (max-width: 600px) {
  .medical-report-modal-card {
    padding: 22px 18px 18px;
  }

  #medicalReportForm .field-pair {
    flex-direction: column;
    gap: 14px;
  }

  #medicalReportForm .form-actions {
    flex-direction: column-reverse;
  }

  #medicalReportForm .form-actions button {
    width: 100%;
  }
}

.field-trio {
  display: flex;

  gap: 16px;
}

.field-trio .field {
  flex: 1;
}



.radio-row {
  display: flex;

  gap: 22px;
}


.radio-option {
  display: flex;

  align-items: center;

  gap: 9px;

  font-size: 14.5px;

  font-weight: 500;

  color: var(--text-dark);

  cursor: pointer;
}


.radio-option input {
  position: absolute;

  opacity: 0;

  width: 0;

  height: 0;
}


.radio-dot {
  width: 18px;

  height: 18px;

  border-radius: 50%;

  border:
    2px solid var(--border);

  position: relative;

  transition:
    border-color 0.15s ease;

  flex-shrink: 0;
}


.radio-option input:checked + .radio-dot {
  border-color: var(--green);
}


.radio-option
input:checked
+ .radio-dot::after {

  content: "";

  position: absolute;

  inset: 3px;

  border-radius: 50%;

  background: var(--green);
}


.radio-option
input:focus-visible
+ .radio-dot {

  box-shadow:
    0 0 0 3px
    rgba(30, 142, 90, 0.2);
}



.upload-drop {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 8px;

  border:
    1px dashed #cfcfcf;

  border-radius: 10px;

  padding: 22px 18px 18px;

  cursor: pointer;

  color: var(--green);

  font-size: 13.5px;

  font-weight: 600;

  text-align: center;

  background: transparent;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}


.upload-drop:hover {
  border-color: var(--green);

  background: #f3faf6;
}


.icon-upload {
  width: 24px;

  height: 24px;

  color: var(--text-muted);
}



.empty-state {
  text-align: center;

  color: var(--text-muted);

  font-size: 14.5px;

  padding: 40px 10px;

  margin: 0;
}


.appointment-item {
  border:
    1px solid #e1e6e8;

  border-radius: 12px;

  padding: 16px 18px;

  margin-bottom: 12px;
  background: #ffffff;
}


.appointment-item:last-child {
  margin-bottom: 0;
}


.appointment-item-top {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  margin-bottom: 6px;
}


.appointment-item-type {
  font-weight: 700;

  font-size: 14.5px;

  color: var(--text-dark);
}


.status-pill {
  font-size: 11.5px;

  font-weight: 700;

  padding: 3px 10px;

  border-radius: 999px;

  background: #fff4e0;

  color: #a3670a;

  white-space: nowrap;
}


.appointment-item-detail {
  font-size: 13.5px;

  color: var(--text-muted);
}



.divider {
  border: none;

  border-top:
    1px solid var(--border);

  margin: 6px 0 22px;
}



@media (max-width: 860px) {

  .appointment-layout {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 560px) {

  .auth-page {
    padding: 20px 12px;
  }


  .card {
    padding:
      32px 24px 28px;
  }


  .field-pair {
    flex-direction: column;

    gap: 0;
  }


  .app-header-inner {
    padding:
      12px 18px;
  }


  .brand-name {
    font-size: 16px;
  }


  .app-content {
    padding:
      26px 16px 50px;
  }


  .field-trio {
    flex-direction: column;

    gap: 0;
  }


  .panel {
    padding:
      22px 20px;
  }


  .user-dropdown {
    right: -8px;

    width: 230px;
  }


  .appointment-item-top {
    align-items: flex-start;

    flex-direction: column;
  }


  .radio-row {
    flex-direction: column;

    gap: 12px;
  }

  .view-title-row,
  .calendar-header-row,
  .panel-header-row,
  .role-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-nav,
  .tab-row {
    align-items: flex-start;
    justify-content: space-between;
  }

  .search-box {
    width: 100%;
    min-width: 0;
  }

}