/* ==========================================================
   CALL CENTER HIS — CLEAN STYLESHEET
   Consolidated 2026-10-12
   Replaces the old layered/override-heavy style.css
========================================================== */

:root {
  --app-bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;

  --ink: #172033;
  --ink-2: #344054;
  --ink-soft: #667085;
  --muted: #98a2b3;

  --brand: #176f84;
  --brand-soft: #eef8fa;
  --brand-line: #cfe6ea;

  --violet: #6657c8;
  --violet-soft: #faf9fe;
  --violet-line: #ddd7f6;

  --success: #20a27c;
  --success-soft: #eaf8f3;

  --warning: #e7a441;
  --warning-soft: #fff5e5;

  --danger: #c94f4f;
  --danger-soft: #fceeee;

  --ended: #9aa7b7;

  --line: #e1e7ee;
  --line-soft: #edf1f4;

  --sidebar: #111d34;

  --radius: 12px;
  --shadow: 0 2px 10px rgba(16, 24, 40, .025);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--app-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  direction: rtl;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--app-bg);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

/* ==========================================================
   APP SHELL
========================================================== */

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  direction: ltr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  direction: rtl;
  padding: 22px 16px;
  background: var(--sidebar);
  color: #fff;
  box-shadow: 8px 0 30px rgba(17, 29, 52, .08);
  z-index: 10;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #42c0c7, #287d9c);
  font-size: 18px;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 650;
}

.brand-copy span {
  margin-top: 3px;
  color: #8fa0b8;
  font-size: 10px;
}

.sidebar-nav {
  padding-top: 22px;
}

.sidebar-section-label {
  padding: 0 10px 9px;
  color: #667991;
  font-size: 10px;
  font-weight: 500;
}

.nav-item {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #98a8bb;
  text-align: right;
  cursor: pointer;
}

.nav-item.active {
  background: rgba(58, 177, 190, .14);
  color: #fff;
}

.nav-item:disabled {
  opacity: .55;
  cursor: default;
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 14px;
}

.nav-item.active .nav-icon {
  background: rgba(79, 195, 206, .16);
  color: #5cd1d8;
}

.sidebar-footer {
  margin-top: auto;
}

.sidebar .connection {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}

.connection-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(32,162,124,.12);
}

.connection-dot.offline {
  background: #df6262;
  box-shadow: 0 0 0 4px rgba(223,98,98,.12);
}

.sidebar .connection > div {
  display: flex;
  flex-direction: column;
}

.sidebar .connection strong,
#connectionText {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.sidebar .connection span:last-child {
  margin-top: 2px;
  color: #778aa4;
  font-size: 9px;
}

/* ==========================================================
   WORKSPACE
========================================================== */

.workspace {
  min-width: 0;
  direction: rtl;
  padding: 25px 28px 42px;
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.workspace-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -.35px;
}

.workspace-header p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.header-actions {
  display: flex;
  align-items: center;
}

/* Legacy wrappers kept compatible */
.page {
  width: 100%;
}

.topbar,
.toolbar {
  display: contents;
}

/* ==========================================================
   DATE FILTER
========================================================== */

.date-filter {
  height: 39px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 5px 0 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(16,24,40,.02);
}

.date-filter-label {
  padding: 0 8px;
  color: var(--muted);
  font-size: 10px;
}

.date-filter input[type="date"],
.date-filter input {
  height: 30px;
  min-width: 145px;
  padding: 0 7px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #475467;
  direction: ltr;
  font-size: 11px;
}

.today-button {
  height: 29px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: #17233d;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================
   SUMMARY
========================================================== */

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 210px));
  gap: 10px;
  margin: 0 0 18px;
}

.summary-card,
.summary-item {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.015),
              0 4px 10px rgba(16,24,40,.018);
}

.summary-card {
  justify-content: flex-start;
}

.summary-item {
  justify-content: space-between;
}

.summary-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 35px;
  border-radius: 9px;
  font-size: 15px;
}

.active-icon {
  color: #15866a;
  background: #e9f8f3;
}

.total-icon {
  color: #5a54c8;
  background: #f0efff;
}

.time-icon {
  color: #a16916;
  background: #fff5e6;
}

.summary-label {
  color: #8c98a8;
  font-size: 10px;
  font-weight: 400;
}

.summary-card strong,
.summary-item strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  direction: ltr;
}

/* ==========================================================
   CONTENT PANEL
========================================================== */

.content-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
}

.content-panel-head {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.content-panel-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.content-panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef8f4;
  color: #258168;
  font-size: 9px;
  font-weight: 600;
}

.live-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #31a780;
}

/* ==========================================================
   CALL LIST + ROW
========================================================== */

.calls {
  display: grid;
  gap: 0;
}

.call-card {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  box-shadow: none;
}

.call-card:last-child {
  border-bottom: 0;
}

.call-card::before {
  display: none;
}

.call-head {
  min-height: 76px;
  display: grid;

  /*
   * ثابت بصريًا من اليسار إلى اليمين:
   * actions | patient | phone | status
   *
   * نجعل الـ grid نفسه LTR حتى لا يقلب RTL ترتيب الأعمدة،
   * ثم نعيد كل محتوى عربي إلى RTL.
   */
  direction: ltr;
  grid-template-columns:
    250px
    minmax(300px, 1fr)
    190px
    145px;

  align-items: center;
  gap: 18px;
  padding: 12px 30px;
  background: #fff;
  transition: background .15s ease;
}

/* Explicit positions — no auto-placement */
.call-head > .call-state {
  grid-column: 4;
  direction: rtl;
}

.call-head > div:nth-child(2) {
  grid-column: 3;
  direction: rtl;
}

.call-head > .patient-main,
.call-head > .unmatched-copy,
.call-head > .unmatched-patient {
  grid-column: 2;
  direction: rtl;
  justify-self: center;
}

.call-head > .call-row-actions,
.call-head > .unmatched-actions {
  grid-column: 1;
  direction: rtl;
  justify-self: center;
}

/*
 * في النسخة التي ما زال فيها unmatched-patient
 * مغلف النص والأزرار، نخفي الغلاف بصريًا فقط
 * حتى يدخل النص والأزرار كعناصر مباشرة في نفس Grid.
 */
.call-head > .unmatched-patient {
  display: contents;
}

.call-head > .unmatched-patient > .unmatched-copy {
  grid-column: 2;
  direction: rtl;
  justify-self: center;
}

.call-head > .unmatched-patient > .unmatched-actions {
  grid-column: 1;
  direction: rtl;
  justify-self: center;
}

.call-card:hover > .call-head {
  background: #fcfdfe;
}

.call-state {
  display: flex;
  align-items: center;
  gap: 10px;
}

.state-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
}

.state-ring {
  background: var(--warning);
  box-shadow: 0 0 0 5px var(--warning-soft);
}

.state-answer {
  background: var(--success);
  box-shadow: 0 0 0 5px var(--success-soft);
}

.state-bye {
  background: var(--ended);
  box-shadow: 0 0 0 5px #f0f2f5;
}

.state-missed {
  background: var(--warning);
  box-shadow: 0 0 0 5px rgba(231,164,65,.12);
}

.status-text {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 650;
}

.call-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

.phone {
  direction: ltr;
  text-align: right;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .25px;
}

/* ==========================================================
   PATIENT HEADLINE + SMALL CIRCLE ARROW
========================================================== */

.patient-main {
  min-width: 0;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  position: relative;
  background: transparent;
  cursor: pointer;
}

.patient-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.patient-main .patient-sub {
  display: none;
}

.patient-toggle::after {
  content: none;
}

.patient-toggle::before {
  content: "";
  position: static;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 17px 17px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%237A78BF' stroke-width='1.65'/%3E%3Cpath d='M7.5 12H16M12.5 8.5L16 12L12.5 15.5' stroke='%237A78BF' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: .88;
  transition: transform .18s ease, opacity .18s ease;
}

.patient-toggle.open::before {
  transform: rotate(90deg);
}

.patient-toggle:hover::before {
  opacity: 1;
}

/* Old arrow elements, if still present */
.patient-arrow,
.toggle-arrow,
.call-arrow,
.call-card .arrow {
  display: none !important;
}

.call-extra {
  display: none;
}

/* ==========================================================
   UNKNOWN CALLER
========================================================== */

.unmatched-patient {
  min-width: 0;
}

.unmatched-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.unmatched-copy strong {
  color: #475467;
  font-size: 11px;
  font-weight: 600;
}

.unmatched-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
}

/* ==========================================================
   CALL ACTIONS — ONE STANDARD
========================================================== */

.call-row-actions,
.unmatched-actions,
.patient-quick-actions {
  width: 250px;
  display: grid;
  grid-template-columns: repeat(2, 112px);
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.patient-action-btn,
.link-patient-button {
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0 10px;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.patient-action-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1;
}

.appointment-action-btn {
  border: 1px solid var(--brand-line);
  background: #f4fbfc;
  color: var(--brand);
}

.appointment-action-btn .patient-action-icon {
  background: #e2f3f5;
  color: var(--brand);
}

.ticket-action-btn {
  border: 1px solid var(--violet-line);
  background: var(--violet-soft);
  color: var(--violet);
}

.ticket-action-btn .patient-action-icon {
  background: #efecfb;
  color: var(--violet);
}

.link-patient-button {
  border: 1px solid var(--brand-line);
  background: #f4fbfc;
  color: var(--brand);
}

/* ==========================================================
   EXPANDED PATIENT AREA
========================================================== */

.patient-list {
  background: #f9fafb;
  border-top: 1px solid var(--line-soft);
}

.patient-list.collapsed {
  display: none;
}

.patient-row {
  padding: 15px 17px 17px;
  background: #fafbfc;
  border-bottom: 1px solid var(--line-soft);
}

.patient-row:last-child {
  border-bottom: 0;
}

/* Family */
.family-list {
  display: grid;
  gap: 0;
}

.family-strip,
.family-patient-header {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line-soft);
}

.family-patient-name,
.family-strip-copy strong {
  color: #213247;
  font-size: 12.5px;
  font-weight: 650;
}

.family-patient-mr,
.family-strip-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.family-member-number {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: #f2f4f7;
  color: #708094;
  font-size: 9.5px;
  font-weight: 500;
}

/* Patient profile */
.patient-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.patient-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 11px;
  background: #e4f2f4;
  color: var(--brand);
  font-weight: 700;
}

.patient-identity {
  min-width: 0;
}

.patient-identity strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.patient-identity span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

/* Patient facts */
.patient-details,
.profile-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 0;
  margin: 0 0 12px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.detail,
.profile-fact {
  min-width: 0;
  min-height: 58px;
  padding: 10px 13px;
  border-left: 1px solid var(--line-soft);
}

.detail:last-child,
.profile-fact:last-child {
  border-left: 0;
}

.detail-label,
.profile-fact span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
}

.detail-value,
.profile-fact strong {
  display: block;
  overflow: hidden;
  color: #26384c;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ==========================================================
   PATIENT TABS / SECTION CONTROLS
========================================================== */

.patient-tabbar,
.patient-actions-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.patient-tab,
.appointments-title,
.visits-title {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #e4e9ef;
  border-radius: 9px;
  background: #fff;
  color: #596a7d;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

.patient-tab.open,
.appointments-title.open,
.visits-title.open {
  border-color: #cfe3e7;
  background: #f6fbfc;
  color: var(--brand);
}

.patient-tab small {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f4f7;
  color: #748396;
  font-size: 9px;
}

.patient-tab.open small {
  background: #e8f5f7;
  color: var(--brand);
}

.section-toggle-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.appointment-section-icon {
  background: #eaf6f8;
  color: #247c90;
}

.visit-section-icon {
  background: #f1efff;
  color: #675ccc;
}

.section-toggle-main strong {
  display: block;
  color: #25364a;
  font-size: 11.5px;
  font-weight: 600;
}

.section-toggle-main span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.appointments-arrow,
.visits-arrow,
.section-arrow {
  display: none;
}

/* ==========================================================
   APPOINTMENTS
========================================================== */

.appointments-section {
  margin-top: 4px;
}

.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 7px;
  padding: 0;
  background: transparent;
}

.appointments-list.appointments-collapsed,
.appointments-collapsed {
  display: none !important;
}

.appointment-item {
  width: fit-content;
  min-width: 620px;
  max-width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 12px;
  border: 1px solid #e7ebf0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.02);
}

.appointment-top {
  display: contents;
}

.appointment-top strong {
  color: #24364a;
  font-size: 10.5px;
  font-weight: 600;
}

.appointment-date {
  flex: 0 0 190px;
  margin: 0;
  direction: ltr;
  color: #475467;
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}

.appointment-doctor {
  min-width: 170px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.appointment-doctor-name {
  color: #344054;
  font-size: 10.5px;
  font-weight: 550;
  line-height: 1.35;
}

.appointment-branch {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 8px;
  border-radius: 6px;
  background: #f2f4f7;
  color: #667085;
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
}

.appointment-line {
  margin: 0;
  color: #66788b;
  font-size: 10.5px;
}

.appointment-item > .appointment-line:last-child {
  display: none;
}

.appointment-status {
  min-width: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.appointment-upcoming {
  background: #eaf6f6;
  color: #166474;
}

.appointment-completed {
  background: #eef3f7;
  color: #506477;
}

.appointment-cancelled {
  background: #fceeee;
  color: #a84747;
}

.appointment-noshow {
  background: #fff3df;
  color: #9b681d;
}

.appointments-loading,
.appointments-empty {
  padding: 12px;
  border-radius: 9px;
  background: #f7f8fa;
  color: var(--ink-soft);
  font-size: 10.5px;
}

/* ==========================================================
   VISITS
========================================================== */

.visits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid #e8edf1;
  border-radius: 9px;
  background: #fff;
}

.visits.visits-collapsed {
  display: none !important;
}

.visit {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 170px minmax(260px, 1fr);
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: #fff;
  color: inherit;
  text-align: right;
  cursor: pointer;
}

.visit:last-child {
  border-bottom: 0;
}

.visit:hover {
  background: #fafcfd;
}

.visit-date {
  grid-column: 1;
  direction: ltr;
  color: #8392a3;
  font-size: 10.5px;
}

.visit-doctor {
  grid-column: 2;
  color: #31455b;
  font-size: 11px;
  font-weight: 600;
}

.visit-info {
  color: #8392a3;
  font-size: 10px;
}

.visit-department {
  display: none;
}

/* ==========================================================
   EMPTY STATES
========================================================== */

.empty {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  color: var(--muted);
  font-size: 11px;
}

.patient-not-found,
.modal-empty {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 7px;
  background: #fafbfc;
  color: var(--muted);
  font-size: 11px;
}

/* ==========================================================
   VISIT MODAL
========================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(19,35,50,.28);
  backdrop-filter: blur(3px);
}

.modal-overlay.show {
  display: flex;
}

.visit-modal {
  width: min(760px, 100%);
  max-height: 84vh;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(22,42,60,.16);
}

.visit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.visit-modal-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.visit-modal-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 20px;
  cursor: pointer;
}

.visit-modal-body {
  max-height: calc(84vh - 70px);
  overflow-y: auto;
  padding: 18px;
}

.simple-visit-summary {
  display: grid;
  gap: 14px;
}

.visit-summary-main {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fbfc;
}

.visit-type-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.visit-summary-doctor {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.visit-summary-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.visit-summary-section {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.visit-summary-label {
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.visit-summary-value {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.visit-summary-value.muted {
  color: var(--muted);
  font-weight: 500;
}

.procedure-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.procedure-badge {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #cfe5ea;
  border-radius: 8px;
  background: #f1fafb;
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 650;
}

/* ==========================================================
   PHONE LINK MODAL
========================================================== */

.phone-link-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.phone-link-modal.open {
  display: flex;
}

.phone-link-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.28);
  backdrop-filter: blur(3px);
}

.phone-link-dialog {
  position: relative;
  width: min(430px, calc(100vw - 30px));
  overflow: hidden;
  direction: rtl;
  border: 1px solid #e5e9ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(15,23,42,.16);
}

.phone-link-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.phone-link-head h3 {
  margin: 0;
  color: #25364a;
  font-size: 14px;
  font-weight: 650;
}

.phone-link-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.phone-link-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #f5f6f8;
  color: #667085;
  font-size: 18px;
  cursor: pointer;
}

.phone-link-body {
  padding: 16px 18px;
}

.phone-link-field + .phone-link-field {
  margin-top: 13px;
}

.phone-link-field label {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 9.5px;
  font-weight: 550;
}

.phone-link-field input {
  width: 100%;
  height: 39px;
  padding: 0 11px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #344054;
  font-size: 11px;
}

.phone-link-field input:focus {
  border-color: #91c8d1;
  box-shadow: 0 0 0 3px rgba(43,132,150,.08);
}

.phone-link-field input[readonly] {
  background: #f7f8fa;
  color: #7b8794;
}

.phone-link-message {
  min-height: 20px;
  margin-top: 11px;
  font-size: 9.5px;
}

.phone-link-message.error {
  color: #b54747;
}

.phone-link-message.success {
  color: #18785f;
}

.phone-link-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--line-soft);
  background: #fafbfc;
}

.phone-link-cancel,
.phone-link-save {
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.phone-link-cancel {
  border: 1px solid #dde3ea;
  background: #fff;
  color: #667085;
}

.phone-link-save {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

.phone-link-save:disabled {
  opacity: .55;
  cursor: wait;
}

/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #ccd6de;
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b9c6d0;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1250px) {
  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }

  .workspace {
    padding-left: 20px;
    padding-right: 20px;
  }

  .call-head {
    grid-template-columns:
      230px
      minmax(220px, 1fr)
      165px
      130px;
    gap: 12px;
  }

  .call-row-actions,
  .unmatched-actions,
  .patient-quick-actions {
    width: 230px;
    grid-template-columns: repeat(2, 108px);
    gap: 8px;
  }

  .patient-action-btn,
  .link-patient-button {
    width: 108px;
    min-width: 108px;
    max-width: 108px;
  }

  .patient-details,
  .profile-facts {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .sidebar-nav,
  .sidebar-footer {
    display: none;
  }

  .workspace {
    padding: 18px 14px 30px;
  }

  .workspace-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    overflow-x: auto;
  }

  .call-head {
    direction: rtl;
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
    padding: 14px 16px;
  }

  .call-head > .call-state,
  .call-head > div:nth-child(2),
  .call-head > .patient-main,
  .call-head > .unmatched-copy,
  .call-head > .call-row-actions,
  .call-head > .unmatched-actions,
  .call-head > .unmatched-patient > .unmatched-copy,
  .call-head > .unmatched-patient > .unmatched-actions {
    grid-column: auto;
    justify-self: stretch;
  }

  .patient-main,
  .unmatched-patient,
  .unmatched-copy,
  .call-row-actions,
  .unmatched-actions {
    grid-column: 1 / -1;
  }

  .call-row-actions,
  .unmatched-actions,
  .patient-quick-actions {
    width: auto;
    justify-content: start;
  }

  .patient-details,
  .profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appointment-item {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .appointment-date {
    flex: 1 1 160px;
  }

  .appointment-doctor {
    flex: 1 1 180px;
  }
}

@media (max-width: 620px) {
  .workspace {
    padding: 14px 10px 24px;
  }

  .workspace-header h1 {
    font-size: 20px;
  }

  .date-filter {
    width: 100%;
  }

  .date-filter input {
    min-width: 0;
    flex: 1;
  }

  .summary {
    grid-template-columns: repeat(3, 155px);
  }

  .call-head {
    grid-template-columns: 1fr;
  }

  .call-state,
  .phone,
  .patient-main,
  .unmatched-patient,
  .unmatched-copy,
  .call-row-actions,
  .unmatched-actions {
    grid-column: 1;
  }

  .call-row-actions,
  .unmatched-actions,
  .patient-quick-actions {
    grid-template-columns: repeat(2, 105px);
    gap: 8px;
  }

  .patient-action-btn,
  .link-patient-button {
    width: 105px;
    min-width: 105px;
    max-width: 105px;
  }

  .patient-details,
  .profile-facts {
    grid-template-columns: 1fr;
  }

  .detail,
  .profile-fact {
    border-left: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .detail:last-child,
  .profile-fact:last-child {
    border-bottom: 0;
  }

  .visit {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .visit-date,
  .visit-doctor {
    grid-column: 1;
  }
}

/* ==========================================================
   CALL SLOT HEIGHT — COMPACT
========================================================== */

.call-head {
  min-height: 70px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* keep content vertically centered */
.call-state,
.call-head > div:nth-child(2),
.patient-main,
.unmatched-copy,
.call-row-actions,
.unmatched-actions {
  align-self: center !important;
}


/* ==========================================================
   CALL ROW — KEEP EVERYTHING ON ONE ROW
========================================================== */

.call-head > .call-state {
  grid-row: 1 !important;
}

.call-head > div:nth-child(2) {
  grid-row: 1 !important;
}

.call-head > .patient-main,
.call-head > .unmatched-copy {
  grid-row: 1 !important;
}

.call-head > .call-row-actions,
.call-head > .unmatched-actions {
  grid-row: 1 !important;
}

/* Unregistered caller structure */
.call-head > .unmatched-patient > .unmatched-copy,
.call-head > .unmatched-patient > .unmatched-actions {
  grid-row: 1 !important;
}

/* Now the slot can actually stay compact */
.call-head {
  min-height: 70px !important;
  height: auto !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}


/* ==========================================================
   SMALL ACTION BUTTONS — NO ICONS
========================================================== */

/* Hide all action icons */
.patient-action-icon {
  display: none !important;
}


/* Make all action buttons smaller and identical */
.patient-action-btn,
.link-patient-button {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;

  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;

  padding: 0 9px !important;

  border-radius: 7px !important;

  gap: 0 !important;

  font-size: 9.5px !important;
  font-weight: 600 !important;

  line-height: 1 !important;

  box-shadow: none !important;
}


/* Keep action groups compact */
.call-row-actions,
.unmatched-actions,
.patient-quick-actions {
  width: 194px !important;

  grid-template-columns:
    repeat(2, 92px) !important;

  gap: 10px !important;
}


/* Same exact size inside call rows */
.call-row-actions .patient-action-btn,
.call-row-actions .link-patient-button,
.unmatched-actions .patient-action-btn,
.unmatched-actions .link-patient-button {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;

  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
}



/* ==========================================================
   SMALL PATIENT NAME + CALLER MOBILE + HISTORY TAGS
========================================================== */

.phone {
  font-size: 14px !important;
  font-weight: 650 !important;
}

.patient-name {
  font-size: 10.5px !important;
  font-weight: 600 !important;
}

.patient-name-history {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.patient-name-value {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}


/* small history badges */

.history-badges {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

.history-badge {
  height: 16px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 5px !important;

  border-radius: 5px !important;

  font-size: 7px !important;
  font-weight: 700 !important;

  line-height: 1 !important;
  white-space: nowrap !important;
}


/* INJ */
.history-badge-inj {
  color: #2563eb !important;
  background: #eff6ff !important;
  border: 1px solid #dbeafe !important;
}


/* LASIK */
.history-badge-lasik {
  color: #087f5b !important;
  background: #ecfdf5 !important;
  border: 1px solid #d1fae5 !important;
}


/* LASER */
.history-badge-laser {
  color: #7c3aed !important;
  background: #f5f3ff !important;
  border: 1px solid #ede9fe !important;
}



/* ==========================================================
   CALL LIST PAGINATION
========================================================== */

.calls-pagination {
  min-height: 54px;

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

  gap: 10px;

  padding: 11px 16px;

  background: #fff;

  border-top:
    1px solid #edf1f4;
}


.calls-pagination[hidden] {
  display: none !important;
}


.pagination-button {
  width: 72px;
  height: 30px;

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

  padding: 0;

  border:
    1px solid #dce4ea;

  border-radius: 7px;

  background: #fff;

  color: #355064;

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

  cursor: pointer;
}


.pagination-button:hover:not(:disabled) {
  background: #f5fafb;
  border-color: #bfdde2;
}


.pagination-button:disabled {
  opacity: .35;
  cursor: default;
}


.pagination-info {
  min-width: 105px;
  height: 30px;

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

  gap: 5px;

  padding: 0 10px;

  border-radius: 7px;

  background: #f5f7f9;

  color: #7b8795;

  font-size: 9.5px;
}


.pagination-info strong {
  color: #24374a;
  font-size: 10px;
  font-weight: 700;
}


/* ==========================================================
   PAGINATION — TOP / SMALL
========================================================== */

.calls-pagination {
  min-height: 38px !important;

  justify-content: flex-start !important;

  gap: 6px !important;

  padding: 6px 14px !important;

  background: transparent !important;

  border-top: 0 !important;
  border-bottom: 1px solid #edf1f4 !important;
}


.pagination-button {
  width: 54px !important;
  min-width: 54px !important;

  height: 24px !important;
  min-height: 24px !important;

  padding: 0 8px !important;

  border-radius: 6px !important;

  font-size: 8.5px !important;
}


.pagination-info {
  min-width: 82px !important;

  height: 24px !important;

  padding: 0 8px !important;

  border-radius: 6px !important;

  font-size: 8px !important;

  gap: 4px !important;
}


.pagination-info strong {
  font-size: 8.5px !important;
}


/* ==========================================================
   FAMILY FILE HEADER — COMPACT
========================================================== */

.family-index {
  font-size: 12px !important;
  font-weight: 600 !important;

  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 7px !important;
}


.family-counter {
  font-size: 10px !important;
  font-weight: 500 !important;

  line-height: 1.2 !important;

  color: #8b98aa !important;
}


.family-strip-copy strong {
  font-size: 12px !important;
  font-weight: 600 !important;
}


.family-strip {
  min-height: 46px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}


/* ==========================================================
   SMALLER ACTION BUTTONS
========================================================== */

.call-row-actions {
  gap: 10px !important;
  align-items: center !important;
}

.call-row-actions .patient-action-btn,
.patient-quick-actions .patient-action-btn {
  min-width: 120px !important;
  width: 120px !important;
  height: 38px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.call-row-actions .patient-action-btn span,
.patient-quick-actions .patient-action-btn span {
  font-size: 14px !important;
  line-height: 1 !important;
}

.call-row-actions .patient-action-btn .patient-action-icon,
.patient-quick-actions .patient-action-btn .patient-action-icon {
  display: none !important;
}

/* ==========================================================
   ACTION BUTTONS — FINAL COMPACT SIZE
========================================================== */

/* containers: no stretching */
.call-row-actions,
.unmatched-actions,
.patient-quick-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  width: auto !important;
  min-width: 0 !important;

  gap: 8px !important;

  grid-template-columns: none !important;
}


/* Appointment / Ticket / Link file = SAME SIZE */
.call-row-actions .patient-action-btn,
.call-row-actions .link-patient-button,
.unmatched-actions .patient-action-btn,
.unmatched-actions .link-patient-button,
.patient-quick-actions .patient-action-btn,
.patient-quick-actions .link-patient-button {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;

  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;

  padding: 0 8px !important;

  border-radius: 8px !important;

  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  gap: 0 !important;

  box-shadow: none !important;
}


/* text inside buttons */
.call-row-actions .patient-action-btn span,
.unmatched-actions .patient-action-btn span,
.patient-quick-actions .patient-action-btn span {
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}


/* no icons */
.patient-action-icon {
  display: none !important;
}


/* ==========================================================
   ACTION BUTTONS — EXTRA SMALL
========================================================== */

.call-row-actions .patient-action-btn,
.call-row-actions .link-patient-button,
.unmatched-actions .patient-action-btn,
.unmatched-actions .link-patient-button,
.patient-quick-actions .patient-action-btn,
.patient-quick-actions .link-patient-button {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;

  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;

  padding: 0 6px !important;

  border-radius: 7px !important;

  font-size: 9px !important;
  font-weight: 600 !important;

  line-height: 1 !important;
}

.call-row-actions .patient-action-btn span,
.unmatched-actions .patient-action-btn span,
.patient-quick-actions .patient-action-btn span {
  font-size: 9px !important;
  line-height: 1 !important;
}

.call-row-actions,
.unmatched-actions,
.patient-quick-actions {
  gap: 6px !important;
}



/* ==========================================================
   CALL CENTER — TEAL CRM THEME
   Scoped to actual system classes only
========================================================== */

:root {
  --cc-900: #04222B;
  --cc-800: #0A3D4A;
  --cc-700: #10606F;
  --cc-600: #1D8B94;
  --cc-500: #4FB8B4;
  --cc-300: #98D8D0;
  --cc-100: #E2F4F0;

  --cc-bg: #F4FAF9;
  --cc-bg-soft: #EDF7F5;
  --cc-white: #FFFFFF;

  --cc-text: #17313A;
  --cc-muted: #8799A1;

  --cc-border: #DFECEA;
  --cc-border-strong: #CDE3DF;

  --cc-shadow:
    0 8px 24px rgba(4, 34, 43, .055);

  --cc-shadow-soft:
    0 4px 14px rgba(4, 34, 43, .04);
}


/* ==========================================================
   APP SHELL
========================================================== */

.app-shell {
  background:
    linear-gradient(
      135deg,
      #F7FCFB 0%,
      #EFF8F6 100%
    ) !important;
}


/* ==========================================================
   SIDEBAR
========================================================== */

.app-shell > .sidebar {
  background:
    linear-gradient(
      180deg,
      var(--cc-800) 0%,
      var(--cc-900) 100%
    ) !important;

  border: 0 !important;
  box-shadow:
    8px 0 30px rgba(4, 34, 43, .08) !important;
}


.sidebar-brand {
  border-bottom:
    1px solid rgba(255,255,255,.08) !important;
}


.brand-mark {
  background:
    linear-gradient(
      135deg,
      var(--cc-500),
      var(--cc-600)
    ) !important;

  color: #fff !important;

  border-radius: 14px !important;

  box-shadow:
    0 8px 20px rgba(79,184,180,.20) !important;
}


.brand-copy strong {
  color: #fff !important;
}


.brand-copy span {
  color:
    rgba(255,255,255,.58) !important;
}


.sidebar-section-label {
  color:
    rgba(255,255,255,.38) !important;
}


.sidebar-nav .nav-item {
  background: transparent !important;

  color:
    rgba(255,255,255,.60) !important;

  border: 0 !important;

  border-radius: 12px !important;

  box-shadow: none !important;
}


.sidebar-nav .nav-item.active {
  background:
    rgba(79,184,180,.16) !important;

  color: #fff !important;

  box-shadow:
    inset 0 0 0 1px
    rgba(152,216,208,.08) !important;
}


.sidebar-nav .nav-item.active .nav-icon {
  color: var(--cc-300) !important;
}


.sidebar-nav .nav-item:not(.active):hover {
  background:
    rgba(255,255,255,.045) !important;
}


.sidebar-footer {
  border-top:
    1px solid rgba(255,255,255,.08) !important;
}


.sidebar .connection {
  background:
    rgba(255,255,255,.055) !important;

  border:
    1px solid rgba(255,255,255,.08) !important;

  border-radius: 14px !important;

  box-shadow: none !important;
}


.sidebar .connection strong {
  color: #fff !important;
}


.sidebar .connection span:last-child {
  color:
    rgba(255,255,255,.48) !important;
}


/* ==========================================================
   WORKSPACE
========================================================== */

.workspace {
  background: transparent !important;
}


/* ==========================================================
   HEADER
========================================================== */

.workspace-header {
  background: transparent !important;

  border: 0 !important;

  padding-bottom: 20px !important;
}


.workspace-header .eyebrow {
  color: var(--cc-600) !important;

  font-size: 10px !important;

  font-weight: 800 !important;

  letter-spacing: 2.2px !important;
}


.workspace-header h1 {
  color: var(--cc-900) !important;

  font-size: 30px !important;

  font-weight: 800 !important;

  letter-spacing: -.6px !important;
}


.workspace-header p {
  color: var(--cc-muted) !important;

  font-size: 13px !important;
}


/* ==========================================================
   DATE FILTER
========================================================== */

.header-actions .date-filter {
  background:
    rgba(255,255,255,.88) !important;

  border:
    1px solid var(--cc-border) !important;

  border-radius: 14px !important;

  box-shadow:
    var(--cc-shadow-soft) !important;

  padding: 5px !important;
}


.date-filter-label {
  color: #98A7AD !important;

  font-size: 10px !important;
}


.date-filter input[type="date"] {
  background: transparent !important;

  color: var(--cc-text) !important;

  border: 0 !important;

  box-shadow: none !important;

  font-size: 11px !important;
}


.date-filter .today-button {
  background:
    var(--cc-800) !important;

  color: #fff !important;

  border: 0 !important;

  border-radius: 9px !important;

  height: 32px !important;

  padding: 0 14px !important;

  font-size: 10px !important;

  box-shadow: none !important;
}


/* ==========================================================
   SUMMARY CARDS
========================================================== */

.summary {
  gap: 14px !important;
}


.summary .summary-card {
  background:
    rgba(255,255,255,.96) !important;

  border:
    1px solid var(--cc-border) !important;

  border-radius: 18px !important;

  box-shadow:
    var(--cc-shadow) !important;

  min-height: 88px !important;

  padding:
    16px 18px !important;
}


.summary-card .summary-icon {
  width: 42px !important;
  height: 42px !important;

  border-radius: 13px !important;

  font-size: 16px !important;
}


.summary-card .active-icon {
  background:
    var(--cc-100) !important;

  color:
    var(--cc-600) !important;
}


.summary-card .total-icon {
  background:
    #E9F5F3 !important;

  color:
    var(--cc-700) !important;
}


.summary-card .time-icon {
  background:
    #F1F7F6 !important;

  color:
    var(--cc-600) !important;
}


.summary-label {
  color:
    #95A5AB !important;

  font-size:
    10px !important;

  font-weight:
    600 !important;
}


.summary-card strong {
  color:
    var(--cc-900) !important;

  font-size:
    19px !important;

  font-weight:
    800 !important;
}


/* ==========================================================
   MAIN CALL PANEL
========================================================== */

.content-panel {
  background:
    rgba(255,255,255,.97) !important;

  border:
    1px solid var(--cc-border) !important;

  border-radius:
    20px !important;

  box-shadow:
    var(--cc-shadow) !important;

  overflow:
    hidden !important;
}


.content-panel-head {
  background:
    #fff !important;

  border-bottom:
    1px solid var(--cc-border) !important;

  padding:
    17px 20px !important;
}


.content-panel-head h2 {
  color:
    var(--cc-900) !important;

  font-size:
    17px !important;

  font-weight:
    800 !important;
}


.content-panel-head p {
  color:
    #9AA9AF !important;

  font-size:
    10px !important;
}


.content-panel-head .live-indicator {
  background:
    #EDF9F5 !important;

  color:
    #168C76 !important;

  border:
    0 !important;

  border-radius:
    999px !important;

  padding:
    6px 10px !important;

  font-size:
    9px !important;

  font-weight:
    700 !important;
}


.content-panel-head .live-indicator > span {
  background:
    #26AB8A !important;
}


/* ==========================================================
   CALL LIST
========================================================== */

.calls {
  background:
    #fff !important;
}


.calls .call-card {
  background:
    #fff !important;

  border: 0 !important;

  border-bottom:
    1px solid var(--cc-border) !important;

  border-radius:
    0 !important;

  box-shadow:
    none !important;
}


.calls .call-card:last-child {
  border-bottom:
    0 !important;
}


.calls .call-card:hover {
  background:
    #FAFDFC !important;
}


/* ==========================================================
   CALL ROW
========================================================== */

.call-card > .call-head {
  background:
    transparent !important;

  min-height:
    76px !important;

  padding:
    10px 16px !important;

  border:
    0 !important;
}


.call-head .status-text {
  color:
    var(--cc-text) !important;

  font-size:
    11px !important;

  font-weight:
    700 !important;
}


.call-head .call-meta {
  color:
    #9AAAB0 !important;

  font-size:
    9px !important;
}


.call-head .phone {
  color:
    var(--cc-900) !important;

  font-size:
    17px !important;

  font-weight:
    800 !important;

  letter-spacing:
    .2px !important;
}


.call-head .patient-name,
.call-head .patient-name-value {
  color:
    var(--cc-text) !important;

  font-size:
    13px !important;

  font-weight:
    650 !important;
}


.call-head .unmatched-copy {
  color:
    var(--cc-text) !important;

  font-size:
    11px !important;
}


.call-head .unmatched-copy small {
  color:
    #9AAAB0 !important;

  font-size:
    9px !important;
}


/* ==========================================================
   STATUS DOTS
========================================================== */

.state-dot {
  width:
    9px !important;

  height:
    9px !important;
}


.state-answer {
  background:
    #20A985 !important;

  box-shadow:
    0 0 0 5px
    rgba(32,169,133,.10) !important;
}


.state-bye {
  background:
    #A9B7BE !important;

  box-shadow:
    0 0 0 5px
    rgba(169,183,190,.12) !important;
}


.state-missed {
  background:
    #E2A13B !important;

  box-shadow:
    0 0 0 5px
    rgba(226,161,59,.12) !important;
}


/* ==========================================================
   CALL ARROW
========================================================== */

.call-card .arrow {
  color:
    var(--cc-600) !important;

  width:
    22px !important;

  height:
    22px !important;

  font-size:
    13px !important;
}


/* ==========================================================
   ACTION BUTTONS
========================================================== */

.call-head .patient-action-btn,
.call-head .link-patient-button,
.call-row-actions .patient-action-btn,
.call-row-actions .link-patient-button,
.unmatched-actions .patient-action-btn,
.unmatched-actions .link-patient-button {

  width:
    76px !important;

  min-width:
    76px !important;

  max-width:
    76px !important;

  height:
    27px !important;

  min-height:
    27px !important;

  padding:
    0 7px !important;

  border-radius:
    8px !important;

  font-size:
    9px !important;

  font-weight:
    650 !important;

  box-shadow:
    none !important;
}


.call-head .appointment-action-btn,
.call-row-actions .appointment-action-btn,
.unmatched-actions .appointment-action-btn {
  background:
    #EFF9F7 !important;

  border:
    1px solid #CBE7E3 !important;

  color:
    var(--cc-700) !important;
}


.call-head .ticket-action-btn,
.call-row-actions .ticket-action-btn {
  background:
    #F7F5FC !important;

  border:
    1px solid #E3DDF7 !important;

  color:
    #6557C9 !important;
}


.call-head .link-patient-button,
.unmatched-actions .link-patient-button {
  background:
    #F3FAF9 !important;

  border:
    1px solid #CCE6E2 !important;

  color:
    var(--cc-700) !important;
}


.call-row-actions,
.unmatched-actions {
  gap:
    6px !important;
}


/* ==========================================================
   PATIENT DETAILS
========================================================== */

.patient-row {
  background:
    #FBFDFC !important;

  border-top:
    1px solid var(--cc-border) !important;

  padding:
    16px !important;
}


.patient-details {
  background:
    #fff !important;

  border:
    1px solid var(--cc-border) !important;

  border-radius:
    14px !important;

  box-shadow:
    none !important;
}


.patient-details > div {
  border-color:
    var(--cc-border) !important;
}


.patient-details .label {
  color:
    #9BAAB0 !important;

  font-size:
    9px !important;
}


.patient-details .value {
  color:
    var(--cc-text) !important;

  font-size:
    12px !important;

  font-weight:
    700 !important;
}


/* ==========================================================
   PATIENT TABS
========================================================== */

.patient-tabs {
  gap:
    7px !important;
}


.patient-tab {
  background:
    #fff !important;

  border:
    1px solid var(--cc-border) !important;

  color:
    #71868F !important;

  border-radius:
    10px !important;

  min-height:
    38px !important;

  padding:
    0 13px !important;

  font-size:
    10px !important;

  box-shadow:
    none !important;
}


.patient-tab.open {
  background:
    #F1FAF8 !important;

  color:
    var(--cc-700) !important;

  border-color:
    #BFDCD8 !important;
}


.patient-tab small {
  background:
    #EEF4F4 !important;

  color:
    #71868F !important;

  width:
    27px !important;

  height:
    27px !important;

  font-size:
    9px !important;
}


/* ==========================================================
   APPOINTMENTS
========================================================== */

.appointments-list {
  gap:
    8px !important;
}


.appointment-item {
  background:
    #fff !important;

  border:
    1px solid var(--cc-border) !important;

  border-radius:
    12px !important;

  box-shadow:
    none !important;

  min-height:
    58px !important;

  padding:
    8px 12px !important;
}


.appointment-date {
  color:
    var(--cc-text) !important;

  font-size:
    11px !important;

  font-weight:
    600 !important;
}


.appointment-doctor-name {
  color:
    var(--cc-text) !important;

  font-size:
    11px !important;

  font-weight:
    650 !important;
}


.appointment-branch {
  background:
    #F2F6F6 !important;

  color:
    #71858D !important;

  border-radius:
    8px !important;

  min-height:
    26px !important;

  padding:
    0 9px !important;

  font-size:
    9px !important;
}


.appointment-status {
  min-width:
    76px !important;

  min-height:
    27px !important;

  border-radius:
    8px !important;

  padding:
    0 9px !important;

  font-size:
    9px !important;
}


/* ==========================================================
   VISITS
========================================================== */

.visits-list {
  background:
    #fff !important;

  border:
    1px solid var(--cc-border) !important;

  border-radius:
    12px !important;

  overflow:
    hidden !important;
}


.visit-row,
.visit-item {
  background:
    #fff !important;

  border-bottom:
    1px solid var(--cc-border) !important;

  min-height:
    52px !important;
}


.visit-row:last-child,
.visit-item:last-child {
  border-bottom:
    0 !important;
}


/* ==========================================================
   PROCEDURE BADGES
========================================================== */

.history-badge {
  height:
    20px !important;

  padding:
    0 7px !important;

  border-radius:
    7px !important;

  font-size:
    8px !important;

  font-weight:
    800 !important;
}


.history-badge-inj {
  background:
    #EEF4FF !important;

  color:
    #4778D4 !important;

  border-color:
    #DCE7FF !important;
}


.history-badge-lasik {
  background:
    #EAF9F3 !important;

  color:
    #14896F !important;

  border-color:
    #CBEBDD !important;
}


.history-badge-laser {
  background:
    #F4F0FF !important;

  color:
    #715ADF !important;

  border-color:
    #E1D8FF !important;
}


/* ==========================================================
   PAGINATION
========================================================== */

.calls-pagination {
  background:
    #F9FCFB !important;

  border-bottom:
    1px solid var(--cc-border) !important;

  min-height:
    34px !important;

  padding:
    4px 12px !important;

  gap:
    5px !important;
}


.calls-pagination .pagination-button {
  width:
    48px !important;

  min-width:
    48px !important;

  height:
    23px !important;

  border:
    1px solid var(--cc-border) !important;

  border-radius:
    7px !important;

  background:
    #fff !important;

  color:
    var(--cc-700) !important;

  font-size:
    8px !important;
}


.calls-pagination .pagination-info {
  min-width:
    72px !important;

  height:
    23px !important;

  border-radius:
    7px !important;

  background:
    #EEF5F4 !important;

  color:
    #81939A !important;

  font-size:
    8px !important;
}


/* ==========================================================
   MODALS
========================================================== */

.visit-modal-dialog,
.phone-link-dialog {
  background:
    #fff !important;

  border:
    1px solid var(--cc-border) !important;

  border-radius:
    20px !important;

  box-shadow:
    0 30px 80px
    rgba(4,34,43,.17) !important;
}


.visit-modal-head,
.phone-link-head {
  border-bottom:
    1px solid var(--cc-border) !important;

  background:
    #FBFDFC !important;
}


/* ==========================================================
   SCROLLBAR
========================================================== */

.app-shell ::-webkit-scrollbar {
  width:
    7px;
}


.app-shell ::-webkit-scrollbar-track {
  background:
    transparent;
}


.app-shell ::-webkit-scrollbar-thumb {
  background:
    #BED5D1;

  border-radius:
    999px;
}


.app-shell ::-webkit-scrollbar-thumb:hover {
  background:
    #9FC8C2;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1100px) {

  .workspace-header h1 {
    font-size:
      25px !important;
  }

  .summary {
    gap:
      9px !important;
  }

  .summary .summary-card {
    padding:
      13px !important;
  }
}


@media (max-width: 760px) {

  .summary {
    grid-template-columns:
      1fr !important;
  }

  .workspace-header {
    gap:
      12px !important;
  }

}

/* ==========================================================
   CRM LIGHT MINT — CLOSE TO REFERENCE
========================================================== */

:root {
  --crm-bg: #eef8f6;
  --crm-bg-2: #f7fbfa;
  --crm-card: #ffffff;

  --crm-text: #17313a;
  --crm-text-soft: #7f9299;

  --crm-dark: #0a3d4a;
  --crm-teal: #1d8b94;
  --crm-mint: #4fb8b4;
  --crm-mint-2: #98d8d0;
  --crm-mint-3: #e2f4f0;

  --crm-border: #dfecea;
  --crm-shadow: 0 8px 20px rgba(4,34,43,.05);

  --crm-radius: 16px;
}


/* ==========================================================
   PAGE
========================================================== */

.app-shell {
  background:
    linear-gradient(
      180deg,
      #f7fbfa 0%,
      #edf8f6 100%
    ) !important;
}


/* ==========================================================
   SIDEBAR — LIGHT LIKE REFERENCE
========================================================== */

.app-shell > .sidebar {
  background:
    rgba(255,255,255,.72) !important;

  border-left:
    1px solid var(--crm-border) !important;

  box-shadow:
    6px 0 18px rgba(4,34,43,.035) !important;

  color:
    var(--crm-text) !important;
}


.sidebar-brand {
  border-bottom:
    1px solid var(--crm-border) !important;

  padding-bottom:
    18px !important;
}


.brand-mark {
  background:
    linear-gradient(
      135deg,
      var(--crm-mint),
      var(--crm-teal)
    ) !important;

  color:
    #fff !important;

  border-radius:
    14px !important;

  box-shadow:
    0 8px 18px rgba(79,184,180,.18) !important;
}


.brand-copy strong {
  color:
    var(--crm-dark) !important;

  font-size:
    15px !important;
}


.brand-copy span {
  color:
    #8a9da4 !important;

  font-size:
    10px !important;
}


.sidebar-section-label {
  color:
    #a3b1b6 !important;

  font-size:
    9px !important;

  margin-bottom:
    8px !important;
}


.sidebar-nav .nav-item {
  background:
    transparent !important;

  color:
    #748990 !important;

  border:
    0 !important;

  border-radius:
    12px !important;

  min-height:
    40px !important;

  font-size:
    11px !important;

  box-shadow:
    none !important;
}


.sidebar-nav .nav-item.active {
  background:
    linear-gradient(
      90deg,
      #dff4ef,
      #ccece6
    ) !important;

  color:
    var(--crm-dark) !important;

  box-shadow:
    0 6px 14px rgba(79,184,180,.11) !important;
}


.sidebar-nav .nav-item.active .nav-icon {
  color:
    var(--crm-teal) !important;
}


.sidebar-footer {
  border-top:
    1px solid var(--crm-border) !important;
}


.sidebar .connection {
  background:
    rgba(255,255,255,.78) !important;

  border:
    1px solid var(--crm-border) !important;

  border-radius:
    14px !important;

  color:
    var(--crm-text) !important;
}


.sidebar .connection strong {
  color:
    var(--crm-text) !important;
}


.sidebar .connection span:last-child {
  color:
    #91a2a8 !important;
}


/* ==========================================================
   WORKSPACE
========================================================== */

.workspace {
  background:
    transparent !important;

  padding:
    22px 26px !important;
}


/* ==========================================================
   HEADER — SMALLER LIKE REFERENCE
========================================================== */

.workspace-header {
  align-items:
    flex-start !important;

  margin-bottom:
    14px !important;

  padding:
    0 !important;
}


.workspace-header .eyebrow {
  color:
    var(--crm-teal) !important;

  font-size:
    9px !important;

  letter-spacing:
    1.8px !important;

  font-weight:
    800 !important;
}


.workspace-header h1 {
  color:
    var(--crm-dark) !important;

  font-size:
    24px !important;

  line-height:
    1.05 !important;

  margin:
    4px 0 3px !important;

  font-weight:
    800 !important;
}


.workspace-header p {
  color:
    #8ba0a7 !important;

  font-size:
    11px !important;

  margin:
    0 !important;
}


/* ==========================================================
   DATE FILTER
========================================================== */

.date-filter {
  background:
    rgba(255,255,255,.92) !important;

  border:
    1px solid var(--crm-border) !important;

  border-radius:
    14px !important;

  box-shadow:
    var(--crm-shadow) !important;

  min-height:
    38px !important;

  padding:
    4px !important;
}


.date-filter-label {
  font-size:
    9px !important;

  color:
    #9aa9af !important;
}


.date-filter input {
  border:
    0 !important;

  background:
    transparent !important;

  box-shadow:
    none !important;

  font-size:
    10px !important;

  color:
    var(--crm-text) !important;
}


.today-button {
  height:
    30px !important;

  padding:
    0 12px !important;

  border:
    0 !important;

  border-radius:
    9px !important;

  background:
    var(--crm-dark) !important;

  color:
    #fff !important;

  font-size:
    9px !important;
}


/* ==========================================================
   SUMMARY — SMALLER + TIGHTER
========================================================== */

.summary {
  gap:
    10px !important;

  margin-bottom:
    14px !important;
}


.summary-card {
  min-height:
    78px !important;

  padding:
    12px 14px !important;

  border:
    1px solid var(--crm-border) !important;

  border-radius:
    15px !important;

  background:
    rgba(255,255,255,.94) !important;

  box-shadow:
    var(--crm-shadow) !important;
}


.summary-icon {
  width:
    38px !important;

  height:
    38px !important;

  border-radius:
    12px !important;

  background:
    #e9f7f4 !important;

  color:
    var(--crm-teal) !important;

  font-size:
    14px !important;
}


.summary-label {
  color:
    #95a5ab !important;

  font-size:
    9px !important;

  font-weight:
    600 !important;
}


.summary-card strong {
  color:
    var(--crm-dark) !important;

  font-size:
    18px !important;

  font-weight:
    800 !important;
}


/* ==========================================================
   MAIN PANEL
========================================================== */

.content-panel {
  background:
    rgba(255,255,255,.94) !important;

  border:
    1px solid var(--crm-border) !important;

  border-radius:
    18px !important;

  box-shadow:
    var(--crm-shadow) !important;

  overflow:
    hidden !important;
}


.content-panel-head {
  min-height:
    58px !important;

  padding:
    13px 16px !important;

  border-bottom:
    1px solid var(--crm-border) !important;

  background:
    rgba(255,255,255,.96) !important;
}


.content-panel-head h2 {
  font-size:
    15px !important;

  color:
    var(--crm-dark) !important;

  margin:
    0 !important;
}


.content-panel-head p {
  font-size:
    9px !important;

  color:
    #9aa9af !important;
}


.live-indicator {
  font-size:
    8px !important;

  padding:
    5px 9px !important;

  border-radius:
    999px !important;

  background:
    #eaf8f4 !important;

  color:
    #198b74 !important;
}


/* ==========================================================
   CALL ROWS — COMPACT
========================================================== */

.call-card {
  background:
    #fff !important;

  border:
    0 !important;

  border-bottom:
    1px solid var(--crm-border) !important;

  border-radius:
    0 !important;

  box-shadow:
    none !important;
}


.call-head {
  min-height:
    66px !important;

  padding:
    7px 12px !important;

  background:
    transparent !important;
}


.call-head:hover {
  background:
    #fbfdfc !important;
}


.call-head .phone {
  font-size:
    15px !important;

  color:
    var(--crm-dark) !important;

  font-weight:
    800 !important;
}


.call-head .patient-name,
.call-head .patient-name-value {
  font-size:
    12px !important;

  color:
    var(--crm-text) !important;

  font-weight:
    650 !important;
}


.call-head .status-text {
  font-size:
    10px !important;

  color:
    var(--crm-text) !important;
}


.call-head .call-meta {
  font-size:
    8px !important;

  color:
    #99a9af !important;
}


.call-head .unmatched-copy {
  font-size:
    10px !important;

  color:
    var(--crm-text) !important;
}


.call-head .unmatched-copy small {
  font-size:
    8px !important;

  color:
    #9cabaf !important;
}


/* ==========================================================
   ACTION BUTTONS — CRM STYLE
========================================================== */

.call-head .patient-action-btn,
.call-head .link-patient-button,
.call-row-actions .patient-action-btn,
.call-row-actions .link-patient-button,
.unmatched-actions .patient-action-btn,
.unmatched-actions .link-patient-button {

  width:
    70px !important;

  min-width:
    70px !important;

  max-width:
    70px !important;

  height:
    24px !important;

  min-height:
    24px !important;

  padding:
    0 6px !important;

  border-radius:
    7px !important;

  font-size:
    8px !important;

  font-weight:
    650 !important;
}


.appointment-action-btn {
  background:
    #eef8f6 !important;

  border:
    1px solid #c7e5df !important;

  color:
    var(--crm-teal) !important;
}


.ticket-action-btn {
  background:
    #f4f2fb !important;

  border:
    1px solid #ddd7f3 !important;

  color:
    #6859c9 !important;
}


.link-patient-button {
  background:
    #f4faf9 !important;

  border:
    1px solid #cfe6e2 !important;

  color:
    var(--crm-teal) !important;
}


/* ==========================================================
   PATIENT DETAILS
========================================================== */

.patient-row {
  background:
    #f9fcfb !important;

  padding:
    12px !important;
}


.patient-details {
  border:
    1px solid var(--crm-border) !important;

  background:
    #fff !important;

  border-radius:
    12px !important;

  box-shadow:
    none !important;
}


.patient-details .label {
  font-size:
    8px !important;

  color:
    #9aa9ae !important;
}


.patient-details .value {
  font-size:
    11px !important;

  color:
    var(--crm-text) !important;
}


/* ==========================================================
   TABS
========================================================== */

.patient-tab {
  min-height:
    34px !important;

  padding:
    0 10px !important;

  border-radius:
    9px !important;

  border:
    1px solid var(--crm-border) !important;

  background:
    #fff !important;

  color:
    #758991 !important;

  font-size:
    9px !important;
}


.patient-tab.open {
  background:
    #edf8f5 !important;

  border-color:
    #bcded7 !important;

  color:
    var(--crm-teal) !important;
}


.patient-tab small {
  width:
    24px !important;

  height:
    24px !important;

  font-size:
    8px !important;

  background:
    #edf3f2 !important;
}


/* ==========================================================
   APPOINTMENTS
========================================================== */

.appointment-item {
  min-height:
    52px !important;

  padding:
    7px 10px !important;

  border:
    1px solid var(--crm-border) !important;

  border-radius:
    11px !important;

  box-shadow:
    none !important;

  background:
    #fff !important;
}


.appointment-date,
.appointment-doctor-name {
  font-size:
    10px !important;

  color:
    var(--crm-text) !important;
}


.appointment-branch {
  min-height:
    23px !important;

  padding:
    0 8px !important;

  border-radius:
    7px !important;

  background:
    #f1f5f5 !important;

  color:
    #768b92 !important;

  font-size:
    8px !important;
}


.appointment-status {
  min-width:
    68px !important;

  min-height:
    24px !important;

  border-radius:
    7px !important;

  font-size:
    8px !important;
}


/* ==========================================================
   PAGINATION
========================================================== */

.calls-pagination {
  min-height:
    30px !important;

  padding:
    3px 8px !important;

  gap:
    4px !important;

  background:
    #f7fbfa !important;

  border-bottom:
    1px solid var(--crm-border) !important;
}


.pagination-button {
  width:
    44px !important;

  min-width:
    44px !important;

  height:
    21px !important;

  border-radius:
    6px !important;

  font-size:
    7px !important;

  border:
    1px solid var(--crm-border) !important;

  background:
    #fff !important;

  color:
    var(--crm-teal) !important;
}


.pagination-info {
  min-width:
    66px !important;

  height:
    21px !important;

  border-radius:
    6px !important;

  font-size:
    7px !important;

  background:
    #edf4f3 !important;

  color:
    #85979d !important;
}


/* ==========================================================
   PROCEDURE BADGES
========================================================== */

.history-badge {
  height:
    18px !important;

  padding:
    0 6px !important;

  border-radius:
    6px !important;

  font-size:
    7px !important;
}


/* ==========================================================
   SOFT HOVER
========================================================== */

.nav-item,
.summary-card,
.call-card,
.patient-tab,
.appointment-item {
  transition:
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease !important;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1100px) {
  .workspace {
    padding:
      16px !important;
  }

  .workspace-header h1 {
    font-size:
      21px !important;
  }
}
/* ==========================================================
   GLASS CRM POLISH — FINAL VISUAL LAYER
========================================================== */

:root {
  --glass-dark: #04222B;
  --glass-dark-2: #0A3D4A;
  --glass-teal: #10606F;
  --glass-teal-2: #1D8B94;
  --glass-mint: #4FB8B4;
  --glass-mint-soft: #98D8D0;
  --glass-mint-pale: #E2F4F0;

  --glass-bg:
    rgba(255, 255, 255, .66);

  --glass-bg-strong:
    rgba(255, 255, 255, .82);

  --glass-line:
    rgba(16, 96, 111, .10);

  --glass-shadow:
    0 10px 30px rgba(4, 34, 43, .07);

  --glass-shadow-soft:
    0 6px 18px rgba(4, 34, 43, .045);

  --glass-radius:
    18px;
}


/* ==========================================================
   BACKGROUND
========================================================== */

.app-shell {
  background:
    radial-gradient(
      circle at 82% 4%,
      rgba(152,216,208,.24),
      transparent 24%
    ),
    radial-gradient(
      circle at 40% 18%,
      rgba(226,244,240,.72),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #f8fcfb 0%,
      #eef8f6 100%
    ) !important;
}


/* ==========================================================
   GLASS SIDEBAR
========================================================== */

.app-shell > .sidebar {
  background:
    rgba(255,255,255,.68) !important;

  backdrop-filter:
    blur(24px) saturate(135%) !important;

  -webkit-backdrop-filter:
    blur(24px) saturate(135%) !important;

  border-inline-end:
    1px solid rgba(16,96,111,.08) !important;

  box-shadow:
    8px 0 32px rgba(4,34,43,.05) !important;
}


.sidebar-brand {
  border-bottom:
    1px solid rgba(16,96,111,.08) !important;
}


.brand-mark {
  background:
    linear-gradient(
      145deg,
      #66cec4,
      #1d8b94
    ) !important;

  color:
    white !important;

  border-radius:
    15px !important;

  box-shadow:
    0 8px 18px rgba(29,139,148,.18) !important;
}


.brand-copy strong {
  color:
    var(--glass-dark) !important;
}


.brand-copy span {
  color:
    #8da1a7 !important;
}


/* ==========================================================
   NAVIGATION + REAL ICON TILES
========================================================== */

.sidebar-nav .nav-item {
  position:
    relative !important;

  min-height:
    42px !important;

  border-radius:
    13px !important;

  padding:
    0 12px !important;

  color:
    #81969c !important;

  background:
    transparent !important;

  box-shadow:
    none !important;

  border:
    0 !important;
}


.sidebar-nav .nav-item.active {
  background:
    linear-gradient(
      90deg,
      rgba(226,244,240,.95),
      rgba(152,216,208,.42)
    ) !important;

  color:
    var(--glass-dark-2) !important;

  box-shadow:
    0 7px 18px rgba(79,184,180,.12) !important;
}


.sidebar-nav .nav-icon {
  width:
    28px !important;

  height:
    28px !important;

  display:
    inline-flex !important;

  align-items:
    center !important;

  justify-content:
    center !important;

  border-radius:
    9px !important;

  background:
    rgba(226,244,240,.88) !important;

  color:
    var(--glass-teal-2) !important;

  font-size:
    13px !important;

  box-shadow:
    inset 0 0 0 1px
    rgba(79,184,180,.10) !important;
}


.sidebar-nav .nav-item.active .nav-icon {
  background:
    rgba(79,184,180,.17) !important;

  color:
    var(--glass-teal) !important;
}


/* ==========================================================
   SIDEBAR CONNECTION GLASS CARD
========================================================== */

.sidebar .connection {
  background:
    rgba(255,255,255,.58) !important;

  backdrop-filter:
    blur(16px) !important;

  border:
    1px solid rgba(16,96,111,.10) !important;

  border-radius:
    16px !important;

  box-shadow:
    var(--glass-shadow-soft) !important;
}


.sidebar .connection strong {
  color:
    var(--glass-dark) !important;
}


/* ==========================================================
   HEADER
========================================================== */

.workspace-header {
  padding-top:
    6px !important;

  margin-bottom:
    16px !important;
}


.workspace-header h1 {
  font-size:
    27px !important;

  color:
    var(--glass-dark) !important;

  font-weight:
    800 !important;

  letter-spacing:
    -.5px !important;
}


.workspace-header .eyebrow {
  color:
    var(--glass-teal-2) !important;

  font-size:
    9px !important;

  font-weight:
    800 !important;

  letter-spacing:
    2.2px !important;
}


.workspace-header p {
  color:
    #91a3aa !important;

  font-size:
    11px !important;
}


/* ==========================================================
   DATE FILTER — FLOATING GLASS PILL
========================================================== */

.header-actions .date-filter {
  background:
    rgba(255,255,255,.70) !important;

  backdrop-filter:
    blur(18px) saturate(130%) !important;

  -webkit-backdrop-filter:
    blur(18px) saturate(130%) !important;

  border:
    1px solid rgba(16,96,111,.09) !important;

  border-radius:
    15px !important;

  box-shadow:
    var(--glass-shadow) !important;

  padding:
    4px 5px !important;
}


.date-filter input {
  background:
    transparent !important;

  border:
    0 !important;

  box-shadow:
    none !important;
}


.today-button {
  background:
    linear-gradient(
      145deg,
      #0A3D4A,
      #10606F
    ) !important;

  color:
    #fff !important;

  border:
    0 !important;

  border-radius:
    10px !important;

  box-shadow:
    0 6px 14px rgba(10,61,74,.14) !important;
}


/* ==========================================================
   KPI GLASS CARDS
========================================================== */

.summary {
  gap:
    12px !important;
}


.summary-card {
  position:
    relative !important;

  overflow:
    hidden !important;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.88),
      rgba(247,252,251,.64)
    ) !important;

  backdrop-filter:
    blur(18px) saturate(135%) !important;

  -webkit-backdrop-filter:
    blur(18px) saturate(135%) !important;

  border:
    1px solid rgba(255,255,255,.80) !important;

  border-radius:
    17px !important;

  box-shadow:
    0 10px 26px rgba(4,34,43,.065) !important;

  min-height:
    82px !important;

  padding:
    13px 15px !important;
}


.summary-card::after {
  content:
    "";

  position:
    absolute;

  width:
    80px;

  height:
    80px;

  border-radius:
    50%;

  inset-inline-end:
    -34px;

  top:
    -38px;

  background:
    rgba(152,216,208,.18);

  pointer-events:
    none;
}


.summary-icon {
  width:
    39px !important;

  height:
    39px !important;

  border-radius:
    12px !important;

  background:
    linear-gradient(
      145deg,
      rgba(226,244,240,.98),
      rgba(152,216,208,.34)
    ) !important;

  color:
    var(--glass-teal-2) !important;

  border:
    1px solid rgba(79,184,180,.10) !important;

  box-shadow:
    0 5px 12px rgba(79,184,180,.08) !important;

  font-size:
    14px !important;
}


.summary-label {
  font-size:
    9px !important;

  color:
    #96a6ac !important;
}


.summary-card strong {
  font-size:
    18px !important;

  color:
    var(--glass-dark) !important;
}


/* ==========================================================
   CALL PANEL — GLASS WHITE CARD
========================================================== */

.content-panel {
  background:
    rgba(255,255,255,.76) !important;

  backdrop-filter:
    blur(22px) saturate(130%) !important;

  -webkit-backdrop-filter:
    blur(22px) saturate(130%) !important;

  border:
    1px solid rgba(255,255,255,.80) !important;

  border-radius:
    20px !important;

  box-shadow:
    0 12px 34px rgba(4,34,43,.065) !important;

  overflow:
    hidden !important;
}


.content-panel-head {
  background:
    rgba(255,255,255,.48) !important;

  border-bottom:
    1px solid rgba(16,96,111,.08) !important;

  padding:
    15px 18px !important;
}


.content-panel-head h2 {
  color:
    var(--glass-dark) !important;

  font-size:
    15px !important;

  font-weight:
    800 !important;
}


.content-panel-head p {
  color:
    #98a8ad !important;

  font-size:
    9px !important;
}


/* ==========================================================
   LIVE CHIP
========================================================== */

.live-indicator {
  background:
    linear-gradient(
      145deg,
      #edf9f5,
      #e1f4ee
    ) !important;

  color:
    #14886f !important;

  border:
    1px solid rgba(79,184,180,.12) !important;

  border-radius:
    999px !important;

  padding:
    5px 9px !important;

  box-shadow:
    0 5px 12px rgba(79,184,180,.06) !important;
}


/* ==========================================================
   CALL ROW
========================================================== */

.call-card {
  background:
    rgba(255,255,255,.42) !important;

  border-bottom:
    1px solid rgba(16,96,111,.075) !important;
}


.call-card:hover {
  background:
    rgba(226,244,240,.24) !important;
}


.call-head {
  min-height:
    68px !important;

  padding:
    8px 14px !important;
}


.call-head .phone {
  color:
    var(--glass-dark) !important;

  font-size:
    15px !important;

  font-weight:
    800 !important;
}


.call-head .patient-name,
.call-head .patient-name-value {
  font-size:
    12px !important;

  color:
    #26414a !important;

  font-weight:
    650 !important;
}


.call-head .call-meta {
  font-size:
    8px !important;

  color:
    #9aabb1 !important;
}


/* ==========================================================
   SMALL ACTION BUTTONS — CONSISTENT
========================================================== */

.call-head .patient-action-btn,
.call-head .link-patient-button,
.call-row-actions .patient-action-btn,
.call-row-actions .link-patient-button,
.unmatched-actions .patient-action-btn,
.unmatched-actions .link-patient-button {

  width:
    68px !important;

  min-width:
    68px !important;

  max-width:
    68px !important;

  height:
    24px !important;

  min-height:
    24px !important;

  max-height:
    24px !important;

  padding:
    0 6px !important;

  border-radius:
    7px !important;

  font-size:
    8px !important;

  font-weight:
    650 !important;

  box-shadow:
    none !important;
}


.appointment-action-btn {
  background:
    rgba(226,244,240,.66) !important;

  border:
    1px solid rgba(79,184,180,.22) !important;

  color:
    var(--glass-teal) !important;
}


.ticket-action-btn {
  background:
    rgba(246,243,255,.70) !important;

  border:
    1px solid rgba(112,91,216,.16) !important;

  color:
    #6959ca !important;
}


.link-patient-button {
  background:
    rgba(240,249,247,.70) !important;

  border:
    1px solid rgba(79,184,180,.20) !important;

  color:
    var(--glass-teal) !important;
}


/* ==========================================================
   PATIENT DETAILS — GLASS PANEL
========================================================== */

.patient-row {
  background:
    rgba(244,250,249,.64) !important;

  border-top:
    1px solid rgba(16,96,111,.07) !important;

  padding:
    12px !important;
}


.patient-details {
  background:
    rgba(255,255,255,.72) !important;

  backdrop-filter:
    blur(12px) !important;

  border:
    1px solid rgba(16,96,111,.09) !important;

  border-radius:
    13px !important;

  box-shadow:
    0 6px 16px rgba(4,34,43,.035) !important;
}


/* ==========================================================
   PATIENT TABS
========================================================== */

.patient-tab {
  background:
    rgba(255,255,255,.70) !important;

  border:
    1px solid rgba(16,96,111,.09) !important;

  border-radius:
    10px !important;

  min-height:
    34px !important;

  color:
    #788e95 !important;

  box-shadow:
    0 4px 10px rgba(4,34,43,.025) !important;
}


.patient-tab.open {
  background:
    linear-gradient(
      145deg,
      rgba(226,244,240,.90),
      rgba(152,216,208,.24)
    ) !important;

  border-color:
    rgba(79,184,180,.20) !important;

  color:
    var(--glass-teal) !important;
}


/* ==========================================================
   APPOINTMENTS GLASS CARDS
========================================================== */

.appointment-item {
  background:
    rgba(255,255,255,.72) !important;

  backdrop-filter:
    blur(10px) !important;

  border:
    1px solid rgba(16,96,111,.085) !important;

  border-radius:
    12px !important;

  box-shadow:
    0 5px 14px rgba(4,34,43,.03) !important;

  min-height:
    52px !important;

  padding:
    7px 10px !important;
}


/* ==========================================================
   PILLS
========================================================== */

.appointment-branch,
.appointment-status,
.history-badge {
  box-shadow:
    none !important;
}


.appointment-branch {
  background:
    rgba(240,245,245,.86) !important;

  color:
    #758991 !important;
}


.appointment-upcoming {
  background:
    rgba(226,244,240,.82) !important;

  color:
    var(--glass-teal) !important;
}


/* ==========================================================
   PROCEDURE BADGES
========================================================== */

.history-badge {
  height:
    18px !important;

  padding:
    0 6px !important;

  border-radius:
    6px !important;

  font-size:
    7px !important;

  font-weight:
    800 !important;
}


.history-badge-lasik {
  background:
    #e8f8f2 !important;

  color:
    #12856e !important;
}


.history-badge-inj {
  background:
    #edf4ff !important;

  color:
    #5279c9 !important;
}


.history-badge-laser {
  background:
    #f4f0ff !important;

  color:
    #705bd3 !important;
}


/* ==========================================================
   PAGINATION — GLASS CHIPS
========================================================== */

.calls-pagination {
  background:
    rgba(248,252,251,.70) !important;

  border-bottom:
    1px solid rgba(16,96,111,.07) !important;

  min-height:
    30px !important;

  padding:
    3px 9px !important;
}


.calls-pagination .pagination-button {
  background:
    rgba(255,255,255,.76) !important;

  border:
    1px solid rgba(16,96,111,.09) !important;

  border-radius:
    7px !important;

  color:
    var(--glass-teal) !important;

  width:
    44px !important;

  min-width:
    44px !important;

  height:
    21px !important;

  font-size:
    7px !important;

  box-shadow:
    0 3px 8px rgba(4,34,43,.025) !important;
}


.calls-pagination .pagination-info {
  background:
    rgba(236,245,243,.78) !important;

  border:
    0 !important;

  border-radius:
    7px !important;

  min-width:
    66px !important;

  height:
    21px !important;

  font-size:
    7px !important;
}


/* ==========================================================
   SUBTLE MOTION
========================================================== */

.summary-card,
.nav-item,
.patient-tab,
.appointment-item,
.patient-action-btn,
.link-patient-button {
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease,
    border-color .16s ease !important;
}


.summary-card:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 14px 30px rgba(4,34,43,.08) !important;
}


.patient-action-btn:hover,
.link-patient-button:hover {
  transform:
    translateY(-1px);
}



/* REMOVE DECORATIVE KPI CIRCLES */

.summary-card::before,
.summary-card::after {
  content: none !important;
  display: none !important;
}

.summary-card {
  overflow: visible !important;
}

/* ==========================================================
   PROFESSIONAL SVG LINE ICONS
========================================================== */

.nav-icon svg,
.summary-icon svg,
.date-calendar-icon svg {
  display: block !important;

  width: 16px !important;
  height: 16px !important;

  fill: none !important;

  stroke: currentColor !important;
  stroke-width: 1.8 !important;

  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}


/* Sidebar icons */

.sidebar-nav .nav-icon {
  width: 28px !important;
  height: 28px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex: 0 0 28px !important;

  border-radius: 9px !important;

  background:
    rgba(226,244,240,.68) !important;

  color:
    #1D8B94 !important;
}


.sidebar-nav .nav-item.active .nav-icon {
  background:
    rgba(79,184,180,.20) !important;

  color:
    #10606F !important;
}


.sidebar-nav .nav-icon svg {
  width: 14px !important;
  height: 14px !important;

  stroke-width: 1.9 !important;
}


/* KPI icons */

.summary-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}


.summary-icon svg {
  width: 17px !important;
  height: 17px !important;

  color:
    #1D8B94 !important;

  stroke-width: 1.8 !important;
}


/* Date calendar */

.date-filter-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}


.date-calendar-icon {
  width: 18px !important;
  height: 18px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  color:
    #1D8B94 !important;
}


.date-calendar-icon svg {
  width: 12px !important;
  height: 12px !important;

  stroke-width: 1.8 !important;
}


/* Remove old emoji-like visual behavior */

.nav-icon,
.summary-icon {
  font-family: inherit !important;
  line-height: 1 !important;
}


/* Soft SaaS interaction */

.sidebar-nav .nav-icon,
.summary-icon {
  transition:
    background .16s ease,
    color .16s ease,
    transform .16s ease !important;
}


.sidebar-nav .nav-item:hover .nav-icon {
  transform:
    translateY(-1px);
}


/* ==========================================================
   INSURANCE ACTION BUTTON
========================================================== */

.call-row-actions .insurance-action-btn {
  background:
    rgba(226, 244, 240, .85) !important;

  border:
    1px solid rgba(29, 139, 148, .24) !important;

  color:
    #10606F !important;

  width:
    92px !important;

  min-width:
    92px !important;

  max-width:
    92px !important;

  height:
    24px !important;

  min-height:
    24px !important;

  max-height:
    24px !important;

  padding:
    0 7px !important;

  border-radius:
    7px !important;

  font-size:
    8px !important;

  font-weight:
    700 !important;

  white-space:
    nowrap !important;
}

.call-row-actions .insurance-action-btn:hover {
  background:
    #DDF2EE !important;

  border-color:
    rgba(29, 139, 148, .36) !important;
}



.call-row-actions .insurance-action-btn {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;

  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;

  padding: 0 5px !important;

  border-radius: 6px !important;

  font-size: 7.5px !important;
  font-weight: 700 !important;

  white-space: nowrap !important;
}
/* ==========================================================
   INSURANCE ELIGIBILITY MODAL
========================================================== */

.insurance-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;
}

.insurance-modal.open {
  display: flex;
}

.insurance-modal-backdrop {
  position: absolute;
  inset: 0;

  background:
    rgba(4, 34, 43, .28);

  backdrop-filter:
    blur(4px);
}

.insurance-modal-dialog {
  position: relative;

  width: min(
    390px,
    calc(100vw - 32px)
  );

  background:
    rgba(255,255,255,.96);

  border:
    1px solid
    rgba(16,96,111,.12);

  border-radius:
    18px;

  box-shadow:
    0 24px 70px
    rgba(4,34,43,.18);

  overflow: hidden;
}

.insurance-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 16px;

  border-bottom:
    1px solid
    rgba(16,96,111,.09);
}

.insurance-modal-head h3 {
  margin: 0;

  font-size: 14px;
  color: #04222B;
}

.insurance-modal-head p {
  margin: 3px 0 0;

  font-size: 8px;
  color: #92A4AA;
}

.insurance-modal-close {
  width: 27px;
  height: 27px;

  border: 0;
  border-radius: 8px;

  background: #F1F6F5;
  color: #6F858C;

  font-size: 17px;

  cursor: pointer;
}

.insurance-modal-body {
  padding: 22px;
}


/* Loading */

.insurance-loading {
  min-height: 125px;

  display: flex;
  flex-direction: column;

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

  gap: 8px;

  text-align: center;
}

.insurance-loading strong {
  font-size: 12px;
  color: #17313A;
}

.insurance-loading > span:last-child {
  font-size: 9px;
  color: #8A9EA5;
}

.insurance-spinner {
  width: 24px;
  height: 24px;

  border:
    2px solid #D8ECE8;

  border-top-color:
    #1D8B94;

  border-radius: 50%;

  animation:
    insurance-spin .75s linear infinite;
}

@keyframes insurance-spin {
  to {
    transform:
      rotate(360deg);
  }
}


/* Result */

.insurance-result {
  min-height: 145px;

  display: flex;
  flex-direction: column;

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

  text-align: center;

  gap: 7px;
}

.insurance-result-mark {
  width: 36px;
  height: 36px;

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

  border-radius: 50%;

  font-size: 19px;
  font-weight: 800;
}

.insurance-result strong {
  font-size: 16px;
}

.insurance-result > span {
  font-size: 11px;
  font-weight: 600;
}

.insurance-result-yes {
  color: #128268;
}

.insurance-result-yes
.insurance-result-mark {
  background: #E8F8F2;
  color: #128268;
}

.insurance-result-no {
  color: #B64E57;
}

.insurance-result-no
.insurance-result-mark {
  background: #FFF0F1;
  color: #B64E57;
}

.insurance-result-unknown {
  color: #7A8790;
}

.insurance-result-unknown
.insurance-result-mark {
  background: #F1F4F5;
  color: #7A8790;
}

.insurance-payer {
  margin-top: 3px;

  padding: 5px 9px;

  border-radius: 7px;

  background: #F3F8F7;

  color: #71858C;

  font-size: 8px;
}


/* ==========================================================
   INSURANCE STATUS BADGE
========================================================== */

.insurance-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  margin-inline-start: 7px;
  padding: 3px 7px;

  border-radius: 999px;

  font-size: 8px;
  font-weight: 700;
  line-height: 1;

  white-space: nowrap;
  vertical-align: middle;
}

.insurance-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.insurance-status-covered {
  color: #16785f;
  background: #e8f7f1;
  border: 1px solid rgba(22, 120, 95, .14);
}

.insurance-status-covered .insurance-status-dot {
  background: #21a77e;
}

.insurance-status-not-covered {
  color: #b64e57;
  background: #fff0f1;
  border: 1px solid rgba(182, 78, 87, .14);
}

.insurance-status-not-covered .insurance-status-dot {
  background: #d65b65;
}


/* ==========================================================
   APPOINTMENT BOOKING MODAL
========================================================== */

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;

  display: none;
  align-items: center;
  justify-content: center;
}

.booking-modal.open {
  display: flex;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;

  background:
    rgba(4, 34, 43, .28);

  backdrop-filter:
    blur(4px);
}

.booking-modal-dialog {
  position: relative;

  width: min(
    520px,
    calc(100vw - 30px)
  );

  max-height:
    calc(100vh - 40px);

  overflow-y: auto;

  background:
    rgba(255, 255, 255, .98);

  border:
    1px solid
    rgba(16, 96, 111, .12);

  border-radius:
    18px;

  box-shadow:
    0 24px 70px
    rgba(4, 34, 43, .18);
}

.booking-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding:
    15px 17px;

  border-bottom:
    1px solid
    rgba(16, 96, 111, .08);
}

.booking-modal-head h3 {
  margin: 0;

  font-size: 15px;
  color: #04222b;
}

.booking-modal-head p {
  margin:
    3px 0 0;

  font-size: 8px;
  color: #91a3a8;
}

.booking-modal-close {
  width: 29px;
  height: 29px;

  border: 0;
  border-radius: 8px;

  background:
    #f1f6f5;

  color:
    #668087;

  font-size: 18px;

  cursor: pointer;
}

.booking-form {
  padding: 18px;
}

.booking-field {
  margin-bottom: 14px;
}

.booking-field label {
  display: flex;
  align-items: center;
  gap: 5px;

  margin-bottom: 6px;

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

  color: #38545c;
}

.booking-field label span {
  font-size: 8px;
  font-weight: 500;

  color: #9aabb0;
}

.booking-field select,
.booking-field input {
  width: 100%;
  height: 38px;

  box-sizing: border-box;

  padding: 0 11px;

  border:
    1px solid
    #dce9e7;

  border-radius: 9px;

  outline: none;

  background: #fff;

  color: #18363e;

  font-size: 10px;
}

.booking-field select:focus,
.booking-field input:focus {
  border-color:
    #4fb8b4;

  box-shadow:
    0 0 0 3px
    rgba(79, 184, 180, .09);
}

.booking-slots-section {
  margin:
    2px 0 15px;
}

.booking-slots-title {
  margin-bottom: 7px;

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

  color: #38545c;
}

.booking-slots {
  min-height: 60px;

  display: flex;
  flex-wrap: wrap;

  gap: 7px;

  padding: 10px;

  border:
    1px solid
    #e0ecea;

  border-radius: 10px;

  background:
    #f9fcfb;
}

.booking-slot {
  position: relative;

  cursor: pointer;
}

.booking-slot input {
  position: absolute;

  opacity: 0;
  pointer-events: none;
}

.booking-slot span {
  min-width: 68px;
  height: 30px;

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

  padding:
    0 10px;

  border:
    1px solid
    #d7e8e5;

  border-radius: 8px;

  background: #fff;

  color: #35565d;

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

  transition:
    .15s ease;
}

.booking-slot:hover span {
  border-color:
    #98d8d0;

  background:
    #f1faf8;
}

.booking-slot input:checked + span {
  border-color:
    #1d8b94;

  background:
    #e7f6f3;

  color:
    #10606f;

  box-shadow:
    0 0 0 2px
    rgba(29, 139, 148, .08);
}

.booking-slots-empty,
.booking-slots-loading,
.booking-slots-error {
  width: 100%;

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

  min-height: 40px;

  text-align: center;

  font-size: 9px;
  color: #8ca0a5;
}

.booking-slots-error {
  color: #b64e57;
}

.booking-actions {
  display: flex;
  justify-content: flex-end;

  gap: 7px;

  margin-top: 16px;
}

.booking-actions button {
  height: 33px;

  padding:
    0 15px;

  border-radius: 8px;

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

  cursor: pointer;
}

.booking-cancel {
  border:
    1px solid
    #dfeae8;

  background: #fff;

  color: #6c8187;
}

.booking-submit {
  border:
    1px solid
    #10606f;

  background:
    #10606f;

  color: #fff;
}

.booking-submit:disabled {
  opacity: .55;
  cursor: default;
}

.booking-message {
  margin-top: 8px;
}

.booking-warning,
.booking-error,
.booking-processing,
.booking-success {
  padding: 9px 11px;

  border-radius: 8px;

  font-size: 9px;
}

.booking-warning {
  background: #fff8e8;
  color: #8b6a19;
}

.booking-processing {
  background: #edf7f5;
  color: #10606f;
}

.booking-error {
  background: #fff0f1;
  color: #b64e57;
}

.booking-success {
  display: flex;
  flex-direction: column;
  gap: 3px;

  background: #e9f8f2;
  color: #15785f;
}

.booking-success strong {
  font-size: 11px;
}

.booking-success span {
  font-size: 9px;
}






/* ==========================================
   SIDEBAR BRAND LOGO
========================================== */

.brand-logo-mark {
  overflow: hidden;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ==========================================
   SIDEBAR MAIN LOGO - FINAL
========================================== */

.sidebar-brand-logo-only {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 18px 10px 22px !important;
}

.sidebar-main-logo {
  display: block;
  width: 220px;
  max-width: 90%;
  height: auto;
  object-fit: contain;
}

/* ==========================================
   TICKET BUTTON - MATCH OTHER ACTION BUTTONS
========================================== */

.ticket-action-btn {
  background: #eefafa !important;
  border: 1px solid #b9dddd !important;
  color: #0b6170 !important;
  box-shadow: none !important;
}

.ticket-action-btn:hover {
  background: #e7f7f7 !important;
  border-color: #a8d3d3 !important;
  color: #084f5c !important;
}


/* ==========================================
   TICKET BUTTON - FINAL OVERRIDE
========================================== */

.call-row-actions button.patient-action-btn.ticket-action-btn,
.patient-quick-actions button.patient-action-btn.ticket-action-btn,
button.patient-action-btn.ticket-action-btn {
  background: #eefafa !important;
  border: 1px solid #b9dddd !important;
  color: #0b6170 !important;
  box-shadow: none !important;
}

.call-row-actions button.patient-action-btn.ticket-action-btn:hover,
.patient-quick-actions button.patient-action-btn.ticket-action-btn:hover,
button.patient-action-btn.ticket-action-btn:hover {
  background: #e7f7f7 !important;
  border-color: #a8d3d3 !important;
  color: #084f5c !important;
}


/* ==========================================
   UNIFIED PATIENT ACTION BUTTONS
========================================== */

.appointment-action-btn,
.ticket-action-btn,
.insurance-action-btn {
  background: #eefafa !important;
  border: 1px solid #b9dddd !important;
  color: #0b6170 !important;
  box-shadow: none !important;
}

.appointment-action-btn:hover,
.ticket-action-btn:hover,
.insurance-action-btn:hover {
  background: #e7f7f7 !important;
  border-color: #a8d3d3 !important;
  color: #084f5c !important;
}



/* ==========================================
   UNIFIED ACTION BUTTONS - FINAL
========================================== */

.call-row-actions .appointment-action-btn,
.call-row-actions .ticket-action-btn,
.call-row-actions .insurance-action-btn,
.patient-quick-actions .appointment-action-btn,
.patient-quick-actions .ticket-action-btn,
.patient-quick-actions .insurance-action-btn,
button.appointment-action-btn,
button.ticket-action-btn,
button.insurance-action-btn {
  background: #eef8f8 !important;
  background-color: #eef8f8 !important;
  background-image: none !important;

  border: 1px solid #b8dede !important;
  border-color: #b8dede !important;

  color: #075e6b !important;

  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.call-row-actions .appointment-action-btn:hover,
.call-row-actions .ticket-action-btn:hover,
.call-row-actions .insurance-action-btn:hover,
.patient-quick-actions .appointment-action-btn:hover,
.patient-quick-actions .ticket-action-btn:hover,
.patient-quick-actions .insurance-action-btn:hover,
button.appointment-action-btn:hover,
button.ticket-action-btn:hover,
button.insurance-action-btn:hover {
  background: #e6f5f5 !important;
  background-color: #e6f5f5 !important;
  background-image: none !important;

  border-color: #a8d3d3 !important;
  color: #07515c !important;
}


/* ==========================================
   FAMILY MEMBER ACTIONS
========================================== */

.family-member-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}




/* ==========================================
   FAMILY ACTION BUTTONS - EXACT NORMAL SIZE
========================================== */

.family-member-actions .appointment-action-btn,
.family-member-actions .ticket-action-btn,
.family-member-actions .insurance-action-btn {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;

  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;

  padding: 0 5px !important;

  border-radius: 6px !important;

  font-size: 7.5px !important;
  font-weight: 700 !important;

  white-space: nowrap !important;
}







/* ==========================================
   UNMATCHED APPOINTMENT - USE EXISTING TAB STYLE
========================================== */

.unmatched-appointment-count {
  cursor: default !important;
  pointer-events: none !important;
}



/* ==========================================
   UNMATCHED APPOINTMENT TOGGLE
========================================== */

.unmatched-appointment-count {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.unmatched-appointment-list {
  margin-top: 8px;
  width: 100%;
}

.unmatched-appointment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;

  padding: 10px 12px;
  margin-top: 6px;

  border: 1px solid #dfeaea;
  border-radius: 10px;

  background: #fff;
}

.unmatched-appointment-item strong {
  color: #233e49;
  font-size: 12px;
}

.unmatched-appointment-item span,
.unmatched-appointment-item small {
  color: #718392;
  font-size: 11px;
}



/* ==========================================
   CALL CENTER EXTENSION FILTER
========================================== */

.extension-filter {
  display: flex;
  align-items: center;
  gap: 10px;

  min-height: 48px;
  padding: 6px 10px;

  background: rgba(255,255,255,.78);
  border: 1px solid rgba(26,126,138,.12);
  border-radius: 16px;
}

.extension-filter-label {
  color: #8b9ba5;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.extension-filter select {
  min-width: 145px;
  height: 38px;

  padding: 0 12px;

  border: 1px solid #d9e8e8;
  border-radius: 11px;

  background: #fff;

  color: #174b58;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;

  outline: none;
  cursor: pointer;
}

.extension-filter select:focus {
  border-color: #9bd2d4;
}


/* ==========================================
   EXTENSION FILTER - COMPACT
========================================== */

.extension-filter {
  min-height: 40px !important;
  padding: 4px 7px !important;
  gap: 7px !important;
  border-radius: 13px !important;
}

.extension-filter-label {
  font-size: 10px !important;
}

.extension-filter select {
  min-width: 118px !important;
  width: 118px !important;
  height: 32px !important;

  padding: 0 9px !important;

  border-radius: 9px !important;

  font-size: 10px !important;
  font-weight: 700 !important;
}



/* ==========================================
   MANUAL INSURANCE CHECK
========================================== */



.manual-insurance-form {
  display: flex;
  flex-direction: column;
  gap: 14px;

  padding: 28px;
  direction: rtl;
}

.manual-insurance-form label {
  color: #334c59;
  font-size: 14px;
  font-weight: 700;
}

.manual-insurance-form input {
  width: 100%;
  height: 52px;

  padding: 0 16px;

  border: 1px solid #d3e3e4;
  border-radius: 12px;

  background: #fff;
  color: #183b47;

  font-family: inherit;
  font-size: 16px;

  outline: none;
}

.manual-insurance-form input:focus {
  border-color: #80c7cc;

  box-shadow:
    0 0 0 3px rgba(43, 160, 170, .08);
}

.manual-insurance-message {
  min-height: 18px;

  color: #c65b5b;
  font-size: 12px;
  font-weight: 600;
}

.manual-insurance-submit {
  align-self: flex-start;

  min-width: 110px;
  height: 42px;

  padding: 0 20px;

  border: 0;
  border-radius: 10px;

  background: #117181;
  color: #fff;

  font-family: inherit;
  font-weight: 700;

  cursor: pointer;
}

.manual-insurance-submit:disabled {
  opacity: .65;
  cursor: wait;
}



/* ==========================================
   MANUAL INSURANCE FORM - COMPACT
========================================== */

.manual-insurance-form {
  gap: 10px !important;
  padding: 18px 20px 20px !important;
}

.manual-insurance-form label {
  margin: 0 0 2px !important;
  font-size: 11px !important;
  font-weight: 650 !important;
}

.manual-insurance-form input {
  height: 38px !important;
  min-height: 38px !important;

  padding: 0 11px !important;

  border-radius: 8px !important;

  font-size: 11px !important;
}

.manual-insurance-message {
  min-height: 14px !important;
  font-size: 9px !important;
}

.manual-insurance-submit {
  min-width: 82px !important;
  width: 82px !important;

  height: 32px !important;
  min-height: 32px !important;

  padding: 0 12px !important;

  border-radius: 8px !important;

  font-size: 10px !important;
  font-weight: 650 !important;
}

.insurance-modal-body:has(.manual-insurance-form) {
  padding: 14px !important;
}

.insurance-modal-dialog:has(.manual-insurance-form) {
  width: min(
    340px,
    calc(100vw - 32px)
  ) !important;
}

