@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap";
.admin-reports-page-header {
  min-height: auto;
  padding: 8px 16px;
}
.admin-reports-page-header > div:first-child > p {
  margin: 0 0 1px;
  font-size: 8px;
  letter-spacing: 0.08em;
}
.admin-reports-page-header > div:first-child > h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}
.admin-reports-page-header > div:first-child > span {
  display: block;
  margin-top: 2px;
  color: #6b7d77;
  font-size: 9px;
}
.admin-reports-page-header .user-copy strong {
  font-size: 10px;
}
.admin-reports-page-header .user-copy span,
.admin-reports-page-header .role-pill {
  font-size: 8px;
}
.admin-reports-workspace {
  padding: 9px 12px 18px;
  background: #f5f8f7;
  min-height: calc(100vh - 80px);
}
.admin-report-tabs {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 7px;
}
.admin-report-tabs button,
.admin-report-tabs > div {
  min-width: 180px;
  padding: 7px 10px;
  border: 1px solid #d8e3df;
  border-radius: 7px;
  background: #fff;
  text-align: left;
}
.admin-report-tabs button {
  cursor: pointer;
}
.admin-report-tabs button.active {
  border-color: #1c765d;
  box-shadow: inset 0 0 0 1px #1c765d;
  background: #edf8f4;
}
.admin-report-tabs b,
.admin-report-tabs strong,
.admin-report-tabs span {
  display: block;
}
.admin-report-tabs b,
.admin-report-tabs strong {
  color: #1b4438;
  font-size: 11px;
}
.admin-report-tabs span {
  margin-top: 1px;
  color: #75857f;
  font-size: 9px;
}
.admin-report-tabs > div {
  opacity: 0.62;
}
.admin-billing-filters {
  display: grid;
  grid-template-columns: 135px 135px minmax(160px, 190px) minmax(
      220px,
      1fr
    ) 95px;
  gap: 6px;
  align-items: end;
  margin-bottom: 7px;
  padding: 7px 8px;
  border: 1px solid #dbe5e1;
  border-radius: 8px;
  background: #fff;
}
.admin-billing-filters label span {
  display: block;
  margin-bottom: 3px;
  color: #4f665f;
  font-size: 9px;
  font-weight: 800;
}
.admin-billing-filters input,
.admin-billing-filters select {
  width: 100%;
  height: 30px;
  padding: 0 7px;
  border: 1px solid #ccd9d4;
  border-radius: 5px;
  background: #fff;
  color: #203b33;
  font-size: 10px;
}
.admin-billing-filters input:focus,
.admin-billing-filters select:focus {
  outline: 2px solid rgba(22, 115, 88, 0.17);
  border-color: #167358;
}
.admin-billing-filters.service-report-filters {
  grid-template-columns: 125px 125px 145px 160px 145px 145px 110px minmax(
      220px,
      1fr
    ) 95px;
}
.admin-report-go {
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: #176f57;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.admin-billing-table-card {
  overflow: hidden;
  border: 1px solid #dbe5e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px #1746380a;
}
.admin-billing-table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 9px;
  border-bottom: 1px solid #e1e9e6;
}
.admin-billing-table-tools > div:first-child strong,
.admin-billing-table-tools > div:first-child span {
  display: block;
}
.admin-billing-table-tools > div:first-child strong {
  font-size: 11px;
}
.admin-billing-table-tools > div:first-child span {
  margin-top: 1px;
  color: #778782;
  font-size: 9px;
}
.admin-billing-table-tools > div:last-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
.admin-billing-table-tools label {
  color: #65766f;
  font-size: 9px;
}
.admin-billing-table-tools select,
.admin-billing-table-tools button {
  height: 28px;
  border: 1px solid #ccd9d4;
  border-radius: 5px;
  background: #fff;
  color: #28483f;
  font-size: 9px;
  font-weight: 800;
}
.admin-billing-table-tools button {
  padding: 0 8px;
  cursor: pointer;
}
.admin-billing-table-tools button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.admin-billing-table-wrap {
  overflow: auto;
}
.admin-billing-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.admin-billing-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 32px;
  padding: 0 7px;
  border-right: 1px solid #c7e4ee;
  border-bottom: 1px solid #b7dce8;
  background: #d8f2fb;
  color: #0870be;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
}
.admin-billing-table th:first-child {
  border-top-left-radius: 12px;
}
.admin-billing-table th:last-child {
  border-top-right-radius: 12px;
  border-right: 0;
}
.admin-billing-table td {
  height: 28px;
  padding: 3px 7px;
  border-right: 1px solid #e3e9e7;
  border-bottom: 1px solid #e5ebe9;
  color: #263b35;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
}
.admin-billing-table td:last-child {
  border-right: 0;
}
.admin-billing-table tbody tr:nth-child(2n) td {
  background: #fafcfb;
}
.admin-billing-table tbody tr:hover td {
  background: #f0f8f5;
}
.admin-billing-table td.patient-name {
  min-width: 210px;
  text-align: left;
  white-space: normal;
}
.admin-billing-table td.has-balance {
  color: #b73d2e;
  font-weight: 900;
}
.admin-billing-table.collection-report-table {
  min-width: 1960px;
}
.admin-billing-table.services-report-table {
  min-width: 1740px;
}
.admin-billing-table td.report-source span {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: #edf1ef;
  color: #1f3931;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.admin-billing-table td.report-remarks {
  min-width: 130px;
  max-width: 190px;
  white-space: normal;
  line-height: 1.25;
}
.admin-billing-table td.service-name {
  min-width: 210px;
  max-width: 280px;
  white-space: normal;
  line-height: 1.25;
}
.admin-billing-table tfoot td {
  position: sticky;
  bottom: 0;
  background: #eaf4f0;
  color: #173f34;
  font-weight: 900;
}
.admin-report-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 90px;
  color: #6a7d76;
  font-size: 10px;
}
.admin-report-error {
  margin: 6px 9px;
  padding: 6px 8px;
  border: 1px solid #f0c9c3;
  border-radius: 6px;
  background: #fff2f0;
  color: #a3392b;
  font-size: 10px;
}
.admin-report-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  color: #65766f;
  font-size: 9px;
}
.admin-report-pagination div {
  display: flex;
  gap: 4px;
}
.admin-report-pagination button {
  height: 27px;
  padding: 0 9px;
  border: 1px solid #ccd9d4;
  border-radius: 5px;
  background: #fff;
  color: #28483f;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.admin-report-pagination button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
@media (max-width: 1050px) {
  .admin-billing-filters,
  .admin-billing-filters.service-report-filters {
    grid-template-columns: 1fr 1fr;
  }
  .billing-search,
  .admin-report-go {
    grid-column: 1/-1;
  }
  .admin-report-tabs {
    overflow: auto;
  }
  .admin-reports-workspace {
    padding: 10px;
  }
}
@media (max-width: 620px) {
  .admin-billing-filters {
    grid-template-columns: 1fr;
  }
  .billing-search,
  .admin-report-go {
    grid-column: auto;
  }
  .admin-billing-table-tools {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-billing-table-tools > div:last-child {
    flex-wrap: wrap;
  }
}
.admin-report-tabs button.active {
  color: #075564 !important;
  border-color: #00afc1 !important;
  background: #e5f8fa !important;
  box-shadow: inset 0 -3px #d94fa4 !important;
}
.admin-report-go {
  color: #fff !important;
  border-color: #008495 !important;
  background: linear-gradient(135deg, #008495, #073f49) !important;
}
.admin-billing-table th {
  color: #075b69 !important;
  border-color: #c8e5e9 !important;
  background: #e4f6f9 !important;
}
.admin-billing-table tfoot td {
  background: #edf8fa !important;
}
:root {
  font-family:
    DM Sans,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    sans-serif;
  color: #153b37;
  background: #f4f7f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
.financial-control-workspace {
  min-width: 0;
  padding: 12px 14px 28px;
  color: #173f38;
}
.financial-control-filters {
  display: grid;
  grid-template-columns: 150px 150px minmax(170px, 1fr) minmax(
      150px,
      1fr
    ) auto auto;
  gap: 9px;
  align-items: end;
  padding: 11px;
  border: 1px solid #d5e4e1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px #11443b0a;
}
.financial-control-filters label,
.financial-control-cashier form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.financial-control-filters label > span,
.financial-control-cashier form label > span {
  color: #718a84;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.financial-control-filters input,
.financial-control-filters select,
.financial-control-cashier form input {
  min-width: 0;
  height: 38px;
  border: 1px solid #c9ddd8;
  border-radius: 9px;
  padding: 0 11px;
  color: #173f38;
  background: #fbfdfd;
  font: inherit;
  font-size: 11px;
}
.financial-control-filters > button,
.financial-control-cashier form button {
  height: 38px;
  border: 1px solid #177b6d;
  border-radius: 9px;
  padding: 0 15px;
  color: #fff;
  background: #177b6d;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.financial-control-filters > button:last-child {
  color: #315e55;
  border-color: #c9ddd8;
  background: #fff;
}
.financial-control-error {
  margin-top: 10px;
  border: 1px solid #f0b8b8;
  border-radius: 10px;
  padding: 10px 12px;
  color: #a73535;
  background: #fff0f0;
  font-size: 10px;
  font-weight: 700;
}
.financial-control-state {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #718a84;
  font-size: 11px;
}
.financial-control-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}
.financial-control-kpis article {
  min-width: 0;
  border: 1px solid #d5e4e1;
  border-radius: 13px;
  padding: 12px 13px;
  background: #fff;
}
.financial-control-kpis article.success {
  background: #ebfaf5;
}
.financial-control-kpis article.warning {
  background: #fff8df;
}
.financial-control-kpis article.danger {
  background: #fff0f1;
}
.financial-control-kpis span,
.financial-control-kpis small {
  display: block;
  overflow: hidden;
  color: #78908a;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.financial-control-kpis span {
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.financial-control-kpis strong {
  display: block;
  overflow: hidden;
  margin: 5px 0 3px;
  color: #153f37;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.financial-control-kpis article.success strong {
  color: #08745f;
}
.financial-control-kpis article.warning strong {
  color: #916300;
}
.financial-control-kpis article.danger strong {
  color: #bf3548;
}
.financial-control-cashier {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.financial-control-cashier > article,
.financial-control-cashier > form {
  border: 1px solid #d5e4e1;
  border-radius: 14px;
  padding: 13px;
  background: #fff;
}
.financial-control-cashier article > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.financial-control-cashier article > header span {
  display: block;
  color: #17806f;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.financial-control-cashier article > header strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}
.financial-control-cashier article > header b,
.cashier-status {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 8px;
  letter-spacing: 0.05em;
}
.financial-control-cashier article > header b.open,
.cashier-status.open {
  color: #08745f;
  background: #dff6ef;
}
.financial-control-cashier article > header b.closed,
.cashier-status.closed {
  color: #6b7f7b;
  background: #edf2f1;
}
.financial-control-cashier article > p {
  margin: 15px 0 0;
  color: #718a84;
  font-size: 10px;
}
.financial-control-cashier dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}
.financial-control-cashier dl div {
  min-width: 0;
  border-radius: 9px;
  padding: 8px 9px;
  background: #f4f9f8;
}
.financial-control-cashier dt {
  color: #78908a;
  font-size: 8px;
}
.financial-control-cashier dd {
  overflow: hidden;
  margin: 3px 0 0;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.financial-control-cashier form {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 9px;
  align-items: end;
}
.financial-control-cashier form > strong {
  grid-column: 1 / -1;
  font-size: 11px;
}
.financial-control-tabs {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  border: 1px solid #d5e4e1;
  border-radius: 12px;
  padding: 5px;
  background: #fff;
}
.financial-control-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  color: #637c76;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.financial-control-tabs button.active {
  color: #fff;
  background: #177b6d;
}
.financial-control-tabs button b {
  min-width: 19px;
  border-radius: 999px;
  padding: 2px 5px;
  color: inherit;
  background: #809b9529;
  font-size: 8px;
}
.financial-control-table {
  overflow: auto;
  margin-top: 8px;
  border: 1px solid #d5e4e1;
  border-radius: 14px;
  background: #fff;
}
.financial-control-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}
.financial-control-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 10px;
  color: #617a74;
  background: #f2f7f6;
  font-size: 8px;
  letter-spacing: 0.03em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.financial-control-table td {
  border-top: 1px solid #e4eeeb;
  padding: 9px 10px;
  color: #4e6a64;
  white-space: nowrap;
}
.financial-control-table td strong {
  color: #173f38;
}
.financial-control-table td.difference {
  color: #ba2e40;
  font-weight: 800;
}
.financial-control-table td > button {
  border: 1px solid #bcd8d2;
  border-radius: 7px;
  padding: 5px 9px;
  color: #126f62;
  background: #f2faf8;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.financial-severity {
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.financial-severity.critical {
  color: #b52e41;
  background: #ffe3e7;
}
.financial-severity.warning {
  color: #8b6200;
  background: #fff1bf;
}
.financial-control-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  color: #718a84;
  font-size: 10px;
}
@media (max-width: 1100px) {
  .financial-control-filters,
  .financial-control-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
  .financial-control-cashier {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .financial-control-workspace {
    padding: 8px;
  }
  .financial-control-filters,
  .financial-control-kpis,
  .financial-control-cashier form,
  .financial-control-cashier dl {
    grid-template-columns: 1fr;
  }
  .financial-control-tabs {
    overflow-x: auto;
  }
  .financial-control-tabs button {
    flex: 0 0 auto;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.ui-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(520px, 1.08fr);
  background: #f7f9f8;
}
.story-panel {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(155deg, #082926fa, #145c52f0),
    radial-gradient(circle at 20% 10%, #4fbca9 0, transparent 45%);
}
.story-panel:after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.story-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: clamp(36px, 5vw, 72px);
  display: flex;
  flex-direction: column;
}
.story-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.28;
}
.story-glow-one {
  width: 380px;
  height: 380px;
  background: #61d2bc;
  right: -170px;
  top: 18%;
}
.story-glow-two {
  width: 270px;
  height: 270px;
  border: 1px solid #a6eadc;
  left: -130px;
  bottom: 2%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand > div:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand strong {
  font:
    700 22px/1 Manrope,
    sans-serif;
  letter-spacing: -0.04em;
}
.brand span {
  margin-top: 6px;
  color: #6c8580;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand-light span {
  color: #ffffffa6;
}
.brand-mark {
  width: 43px;
  height: 43px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e5faf5;
  box-shadow: 0 8px 30px #05221e24;
}
.brand-mark span:first-child,
.brand-mark span:last-child {
  position: absolute;
  border-radius: 4px;
  background: #177567;
}
.brand-mark span:first-child {
  width: 21px;
  height: 7px;
}
.brand-mark span:last-child {
  width: 7px;
  height: 21px;
}
.story-copy {
  margin: auto 0;
  max-width: 560px;
}
.eyebrow {
  margin: 0 0 16px;
  color: #2e8d7e;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.story-copy .eyebrow {
  color: #8ee1d2;
}
.story-copy h1 {
  margin: 0;
  max-width: 520px;
  font:
    600 clamp(42px, 5vw, 72px) / 1.04 "Manrope",
    sans-serif;
  letter-spacing: -0.055em;
}
.story-copy > p:last-child {
  max-width: 520px;
  margin: 28px 0 0;
  color: #ffffffb3;
  font-size: 17px;
  line-height: 1.75;
}
.security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffffb8;
  font-size: 13px;
}
.security-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ce4d0;
  box-shadow: 0 0 0 6px #7ce4d01f;
}
.form-panel {
  display: grid;
  place-items: center;
  padding: 48px;
  position: relative;
}
.mobile-brand {
  display: none;
}
.login-card {
  width: min(100%, 440px);
}
.login-card header {
  margin-bottom: 34px;
}
.login-card h2 {
  margin: 0;
  font:
    700 34px/1.15 Manrope,
    sans-serif;
  color: #102f2c;
  letter-spacing: -0.04em;
}
.login-card header > p:last-child {
  color: #72847f;
  margin: 13px 0 0;
  line-height: 1.6;
}
.login-card label:not(.checkbox) {
  display: block;
  margin: 19px 0 9px;
  color: #284b46;
  font-weight: 600;
  font-size: 13px;
}
.field {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #d7e1de;
  border-radius: 14px;
  background: #fff;
  transition:
    border 0.2s,
    box-shadow 0.2s;
}
.field:focus-within {
  border-color: #279887;
  box-shadow: 0 0 0 4px #2798871a;
}
.field svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: #7d918c;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #183d38;
  background: transparent;
}
.field input::placeholder {
  color: #a7b4b1;
}
.show-password {
  border: 0;
  padding: 7px;
  color: #2c8174;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}
.form-options {
  margin: 17px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #647a75;
  font-size: 13px;
  cursor: pointer;
}
.checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checkbox span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #bdcbc7;
  border-radius: 5px;
  background: #fff;
}
.checkbox input:checked + span {
  border-color: #197b6c;
  background: #197b6c;
}
.checkbox input:checked + span:after {
  content: "";
  width: 7px;
  height: 4px;
  border: solid white;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translateY(-1px);
}
.submit-button,
.secondary-button {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  transition:
    transform 0.16s,
    box-shadow 0.16s,
    opacity 0.16s;
}
.submit-button {
  color: #fff;
  background: linear-gradient(135deg, #1e806f, #145d53);
  box-shadow: 0 13px 28px #145d5333;
}
.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px #145d5345;
}
.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}
.secondary-button {
  margin-top: 28px;
  color: #185f55;
  border: 1px solid #c8d9d5;
  background: #fff;
}
.login-card footer {
  margin-top: 28px;
  color: #93a29e;
  text-align: center;
  font-size: 12px;
}
.error-message {
  margin: -7px 0 16px;
  padding: 11px 13px;
  color: #9d302c;
  border: 1px solid #efcdca;
  border-radius: 10px;
  background: #fff3f2;
  font-size: 13px;
}
.spinner {
  display: inline-block;
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner.dark {
  border-color: #17756733;
  border-top-color: #177567;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.app-loader,
.session-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: radial-gradient(circle at top, #e0f3ed, #f5f8f7 55%);
}
.session-card {
  width: min(100%, 560px);
  padding: 42px;
  text-align: center;
  border: 1px solid #dbe6e3;
  border-radius: 26px;
  background: #ffffffe6;
  box-shadow: 0 30px 70px #123f3a1a;
}
.centered-brand {
  justify-content: center;
  margin-bottom: 34px;
}
.success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  color: #fff;
  border-radius: 20px;
  background: #1b806f;
  font-size: 28px;
}
.session-card h1 {
  margin: 0;
  font:
    700 32px/1.2 Manrope,
    sans-serif;
  letter-spacing: -0.04em;
}
.session-description {
  max-width: 420px;
  margin: 14px auto 26px;
  color: #748681;
  line-height: 1.6;
}
.identity-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: left;
}
.identity-grid > div {
  min-height: 76px;
  padding: 15px;
  border: 1px solid #e2eae8;
  border-radius: 14px;
  background: #f8faf9;
}
.identity-grid dt {
  color: #83938f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.identity-grid dd {
  margin: 8px 0 0;
  color: #20433e;
  font-weight: 700;
}
.role-badge {
  display: inline-flex;
  padding: 4px 9px;
  color: #146a5e;
  border-radius: 999px;
  background: #dff4ee;
  font-size: 12px;
}
.access-denied-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top, #e0f3ed, #f5f8f7 55%);
}
.access-denied-card {
  width: min(100%, 510px);
  padding: 42px;
  text-align: center;
  border: 1px solid #dbe6e3;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 28px 65px #123f3a1a;
}
.access-denied-card .brand-mark {
  margin: 0 auto 28px;
}
.access-denied-card h1 {
  margin: 0;
  font:
    700 31px/1.2 Manrope,
    sans-serif;
  letter-spacing: -0.04em;
}
.access-denied-card > p:not(.eyebrow) {
  margin: 15px auto 0;
  color: #718580;
  line-height: 1.7;
}
.access-denied-card .secondary-button {
  max-width: 190px;
}
@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .story-panel {
    display: none;
  }
  .form-panel {
    min-height: 100vh;
    padding: 32px 22px;
    align-content: center;
  }
  .mobile-brand {
    display: flex;
    position: absolute;
    top: 28px;
    left: 28px;
  }
}
@media (max-width: 520px) {
  .form-panel {
    padding: 100px 20px 30px;
  }
  .login-card h2 {
    font-size: 28px;
  }
  .identity-grid {
    grid-template-columns: 1fr;
  }
  .session-card {
    padding: 30px 20px;
  }
}
.module-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: flex-end;
}
.module-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: #09221f7a;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.medical-drawer {
  position: relative;
  z-index: 1;
  width: min(96vw, 1540px);
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  background: #f4f7f6;
  box-shadow: -24px 0 70px #051f1c33;
  animation: module-in 0.2s ease-out;
}
@keyframes module-in {
  0% {
    transform: translate(24px);
    opacity: 0.7;
  }
}
.medical-drawer-header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 12px 8px 16px;
  color: #fff;
  background: linear-gradient(115deg, #103f39, #176c60);
}
.medical-drawer-header span {
  color: #a9d8cf;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.medical-drawer-header h2 {
  margin: 3px 0 0;
  font:
    700 20px/1.1 Manrope,
    sans-serif;
  letter-spacing: -0.035em;
}
.module-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: #ffffff14;
}
.module-tabs {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-bottom: 1px solid #dce6e3;
  background: #fff;
}
.module-tabs button {
  height: 35px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  color: #64817b;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}
.module-tabs button.active {
  color: #126b5e;
  background: #e5f6f1;
}
.medical-drawer-body {
  position: relative;
  min-height: 0;
  overflow: auto;
  padding: 8px;
}
.module-patient-banner {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid #dbe6e3;
  border-radius: 11px;
  background: #fff;
}
.module-star {
  font-size: 25px;
}
.module-star.green {
  color: #20a174;
}
.module-star.yellow {
  color: #e4b62c;
}
.module-star.black {
  color: #24332f;
}
.module-star.gray {
  color: #c8d2cf;
}
.module-patient-banner > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.module-patient-banner > div strong {
  overflow: hidden;
  color: #193f39;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.module-patient-banner > div span {
  margin-top: 3px;
  color: #7a8e89;
  font-size: 10px;
}
.module-patient-banner dl {
  display: flex;
  gap: 5px;
  margin: 0;
}
.module-patient-banner dl div {
  min-width: 92px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f3f7f6;
}
.module-patient-banner dt {
  color: #8b9b97;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.module-patient-banner dd {
  margin: 3px 0 0;
  color: #294e48;
  font-size: 10px;
  font-weight: 700;
}
.module-toolbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 5px;
  border: 1px solid #dce6e3;
  border-radius: 10px;
  background: #fff;
}
.module-toolbar > input {
  width: min(420px, 100%);
  height: 32px;
  padding: 0 10px;
  color: #284f48;
  border: 1px solid #d7e2df;
  border-radius: 8px;
  outline: 0;
  font-size: 11px;
}
.module-primary,
.module-danger {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: #176f62;
  font-size: 11px;
  font-weight: 800;
}
.module-primary.compact {
  min-height: 29px;
  padding: 0 8px;
  font-size: 10px;
}
.module-primary:disabled,
.module-danger:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.module-danger {
  background: #b63d38;
}
.module-state {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #778b86;
  border: 1px dashed #d5e0dd;
  border-radius: 11px;
  background: #ffffffb3;
  font-size: 12px;
}
.module-state.compact {
  min-height: 55px;
  border: 0;
  background: transparent;
}
.module-error,
.module-notice {
  margin: 7px 0;
  padding: 8px 10px;
  color: #9c342f;
  border: 1px solid #efc7c4;
  border-radius: 8px;
  background: #fff1f0;
  font-size: 11px;
}
.module-notice {
  color: #775b19;
  border-color: #eadcae;
  background: #fff9e7;
}
.module-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #dbe5e2;
  border-radius: 10px;
  background: #fff;
}
.module-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}
.module-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 6px;
  color: #6e837d;
  border-bottom: 1px solid #dfe8e5;
  background: #f5f8f7;
  text-align: left;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.module-table td {
  padding: 7px 6px;
  color: #385a54;
  border-bottom: 1px solid #edf2f0;
  vertical-align: top;
  font-size: 10.5px;
}
.module-table tbody tr:last-child td {
  border-bottom: 0;
}
.module-table tbody tr:hover:not(.usage-row) {
  background: #fbfdfc;
}
.module-table td > strong,
.module-table td > small {
  display: block;
}
.module-table td > strong {
  color: #214740;
  font-size: 10.5px;
}
.module-table td > small {
  margin-top: 3px;
  color: #859692;
  font-size: 9px;
  line-height: 1.35;
}
.history-table {
  min-width: 1400px;
}
.package-table {
  min-width: 1370px;
}
.bill-table {
  min-width: 1200px;
}
.module-table details {
  max-width: 230px;
}
.module-table summary {
  overflow: hidden;
  color: #216f63;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-list {
  display: grid;
  grid-template-columns: 75px minmax(120px, 1fr);
  gap: 4px;
  width: 360px;
  margin: 8px 0 0;
  padding: 8px;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px #133d371a;
}
.detail-list dt {
  color: #80928d;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.detail-list dd {
  margin: 0;
  white-space: normal;
}
.module-status {
  display: inline-flex;
  padding: 4px 6px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 800;
  white-space: nowrap;
}
.module-status.success {
  color: #146c5e;
  background: #e0f4ee;
}
.module-status.danger {
  color: #a03d38;
  background: #fde9e7;
}
.module-status.warning {
  color: #83631b;
  background: #fff3cb;
}
.module-status.neutral {
  color: #647b76;
  background: #edf2f1;
}
.module-icon-button {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #236f64;
  border: 1px solid #d3e1dd;
  border-radius: 7px;
  background: #fff;
}
.usage-button,
.text-link {
  padding: 0;
  color: #177668;
  border: 0;
  background: transparent;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.usage-row td {
  padding: 0 8px 8px;
  background: #f7fbfa;
}
.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px;
  padding: 7px;
}
.usage-grid > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid #dce6e3;
  border-radius: 8px;
  background: #fff;
}
.usage-grid strong {
  overflow: hidden;
  color: #254b45;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
}
.usage-grid span {
  margin-top: 3px;
  color: #607b75;
  font-size: 9.5px;
}
.usage-grid small {
  margin-top: 3px;
  color: #8b9a96;
  font-size: 8.5px;
}
.money-danger {
  color: #b13d37 !important;
}
.bill-watermark {
  position: fixed;
  top: 40%;
  right: 18%;
  z-index: 0;
  pointer-events: none;
  font-size: 105px;
  font-weight: 900;
  transform: rotate(-25deg);
  opacity: 0.045;
}
.bill-watermark.paid {
  color: green;
}
.bill-watermark.unpaid {
  color: red;
}
.bill-summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.bill-summary-grid > div {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 9px;
  border: 1px solid #dce6e3;
  border-radius: 9px;
  background: #fff;
}
.bill-summary-grid span {
  color: #81938e;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.bill-summary-grid strong {
  margin-top: 5px;
  color: #244a44;
  font-size: 12px;
}
.bill-summary-grid .outstanding {
  border-color: #e8c4c1;
  background: #fff4f3;
}
.bill-summary-grid .outstanding strong {
  color: #ae3d38;
}
.module-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr);
  gap: 8px;
  margin-bottom: 8px;
}
.module-panel {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid #dce6e3;
  border-radius: 10px;
  background: #fff;
}
.module-panel h3 {
  margin: 0 0 7px;
  color: #244b45;
  font:
    700 12px/1.2 Manrope,
    sans-serif;
}
.compact-table {
  min-width: 720px;
}
.payment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.payment-form label,
.appointment-grid label,
.appointment-notes label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #6d827c;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}
.payment-form input,
.appointment-grid input,
.appointment-grid select,
.appointment-notes textarea {
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  color: #294d47;
  border: 1px solid #d6e1de;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: none;
}
.payment-calculation {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding: 8px;
  border-radius: 7px;
  background: #f2f7f5;
  color: #6d827d;
  font-size: 10px;
}
.payment-calculation b {
  margin-left: 5px;
  color: #1c5d53;
}
.payment-form .module-error,
.payment-form .module-primary {
  grid-column: 1 / -1;
}
.module-danger-link {
  margin-top: 9px;
  padding: 0;
  color: #a93732;
  border: 0;
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  text-decoration: underline;
}
.bill-actions > span {
  padding-left: 5px;
  color: #426a63;
  font-size: 11px;
  font-weight: 800;
}
.appointment-form,
.appointment-timing-panel {
  margin-bottom: 8px;
  padding: 9px;
  border: 1px solid #dce6e3;
  border-radius: 10px;
  background: #fff;
}
.appointment-timing-events,
.appointment-duration-grid {
  display: grid;
  gap: 6px;
}
.appointment-timing-events {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  margin-bottom: 6px;
}
.appointment-duration-grid {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}
.appointment-timing-events > div,
.appointment-duration-grid > div {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 9px;
  border: 1px solid #dce6e3;
  border-radius: 8px;
  background: #f7faf9;
}
.appointment-timing-events span,
.appointment-duration-grid span {
  color: #82938f;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.appointment-timing-events strong,
.appointment-duration-grid strong {
  margin-top: 5px;
  color: #244a44;
  font-size: 10px;
}
.appointment-duration-grid > div {
  border-color: #cfe2dc;
  background: #edf7f4;
}
.module-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.module-section-heading h3 {
  margin: 0;
  color: #204740;
  font:
    700 14px/1.2 Manrope,
    sans-serif;
}
.module-section-heading p {
  margin: 3px 0 0;
  color: #869792;
  font-size: 9px;
}
.appointment-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 7px;
}
.appointment-grid input:disabled,
.appointment-grid select:disabled,
.appointment-notes textarea:disabled {
  color: #60736f;
  background: #f2f5f4;
}
.appointment-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}
.appointment-notes textarea {
  height: 66px;
  padding: 7px;
  resize: vertical;
}
.appointment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.module-three-sections {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 8px;
}
.status-timeline {
  margin: 0;
  padding: 0 0 0 18px;
}
.status-timeline li {
  padding: 0 0 9px 4px;
  color: #2d5b53;
}
.status-timeline strong,
.status-timeline span {
  display: block;
}
.status-timeline strong {
  font-size: 10px;
}
.status-timeline span {
  margin-top: 2px;
  color: #899995;
  font-size: 8.5px;
}
@media (max-width: 1050px) {
  .medical-drawer {
    width: 100vw;
  }
  .module-patient-banner {
    grid-template-columns: auto 1fr;
  }
  .module-patient-banner dl {
    grid-column: 1 / -1;
  }
  .bill-summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .module-two-column,
  .module-three-sections {
    grid-template-columns: 1fr;
  }
  .appointment-grid,
  .appointment-timing-events {
    grid-template-columns: repeat(3, 1fr);
  }
  .appointment-duration-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .medical-drawer-body {
    padding: 5px;
  }
  .module-tabs,
  .module-patient-banner dl {
    overflow-x: auto;
  }
  .module-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .module-toolbar > input {
    width: 100%;
  }
  .bill-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .appointment-grid,
  .appointment-notes,
  .appointment-timing-events,
  .appointment-duration-grid,
  .payment-form {
    grid-template-columns: 1fr;
  }
  .payment-form > * {
    grid-column: 1 !important;
  }
}
@media print {
  body * {
    visibility: hidden;
  }
  .module-layer,
  .module-layer * {
    visibility: visible;
  }
  .module-layer {
    position: absolute;
    inset: 0;
    display: block;
  }
  .module-backdrop,
  .medical-drawer-header,
  .module-tabs,
  .payment-form,
  .module-danger-link,
  .bill-actions button {
    display: none !important;
  }
  .medical-drawer {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
    box-shadow: none;
  }
  .medical-drawer-body,
  .module-table-wrap {
    overflow: visible;
  }
  .module-two-column,
  .module-three-sections {
    display: block;
  }
  .module-panel {
    break-inside: avoid;
  }
}
.clinical-page-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  min-width: 0;
  overflow: hidden;
  background: #eef3f1;
}
.clinical-page-layer,
.clinical-page-layer * {
  box-sizing: border-box;
}
.clinical-workspace {
  width: 100%;
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr);
  color: #173b35;
  background: #eef3f1;
  font-size: 14px;
}
.clinical-workspace > *,
.clinical-patient-card > *,
.clinical-command-layout > *,
.clinical-overview > * {
  min-width: 0;
}
.clinical-boot {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
  padding: 0 24px;
  background: #f4f7f6;
}
.clinical-boot > button {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: #176e60;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}
.clinical-loading {
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #52716b;
  background: #f4f7f6;
  font-size: 15px;
}
.clinical-boot > .clinical-error {
  align-self: start;
}
.clinical-page-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(18px, 2.4vw, 42px);
  color: #fff;
  background: linear-gradient(115deg, #0b3c35, #105c50 58%, #0b443c);
  box-shadow: 0 7px 24px #072f292e;
}
.clinical-page-brand,
.clinical-page-navigation,
.clinical-page-back,
.clinical-doctor-context {
  display: flex;
  align-items: center;
}
.clinical-page-brand {
  gap: 11px;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.clinical-page-brand > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #134f45;
  border-radius: 10px;
  background: #fff;
  font:
    900 25px/1 Manrope,
    sans-serif;
}
.clinical-page-brand strong,
.clinical-page-brand small,
.clinical-page-title span,
.clinical-page-title strong,
.clinical-doctor-context strong,
.clinical-doctor-context span {
  display: block;
}
.clinical-page-brand strong {
  font:
    800 15px/1.15 Manrope,
    sans-serif;
}
.clinical-page-brand small {
  margin-top: 3px;
  color: #acd3cb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.clinical-page-back {
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: #e9f6f2;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: #ffffff14;
  font-size: 12px;
  font-weight: 800;
}
.clinical-page-back:hover {
  background: #ffffff26;
}
.clinical-page-navigation {
  gap: 6px;
}
.clinical-page-current {
  min-height: 40px;
  padding: 0 12px;
  color: #123f37;
  border: 0;
  border-radius: 10px;
  background: #dff4ee;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.clinical-page-current:hover {
  background: #fff;
}
.clinical-page-title {
  justify-self: center;
  text-align: center;
}
.clinical-page-title span {
  color: #9fcfc5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.clinical-page-title strong {
  margin-top: 4px;
  font:
    800 17px/1.15 Manrope,
    sans-serif;
}
.clinical-doctor-context {
  gap: 10px;
  justify-self: end;
}
.clinical-doctor-context > b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #0d574b;
  border-radius: 50%;
  background: #dff4ee;
  font-size: 15px;
}
.clinical-doctor-context strong {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.clinical-doctor-context span {
  margin-top: 3px;
  color: #afd3cc;
  font-size: 10px;
}
.clinical-page-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px clamp(8px, 1vw, 16px) 10px;
}
.clinical-notice,
.clinical-error {
  margin-bottom: 5px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}
.clinical-notice {
  color: #146447;
  border: 1px solid #b9e3d1;
  background: #eaf8f2;
}
.clinical-error {
  color: #9b2538;
  border: 1px solid #efbdc5;
  background: #fff0f2;
}
.clinical-patient-card {
  display: grid;
  grid-template-columns: minmax(390px, 1fr) minmax(0, 1.65fr);
  gap: 8px 10px;
  align-items: center;
  margin-bottom: 5px;
  padding: 8px 12px 0;
  border: 1px solid #d7e4e0;
  border-left: 6px solid #23927f;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px #103d360f;
}
.clinical-patient-card.status-1,
.clinical-patient-card.status-5 {
  border-left-color: #9b3244;
  background: #fffbfc;
}
.clinical-patient-card.status-9 {
  border-left-color: #db60a7;
  background: #fffafd;
}
.clinical-patient-main {
  display: flex;
  align-items: center;
  gap: 13px;
}
.clinical-patient-main .patient-star {
  flex: 0 0 auto;
  font-size: 24px;
}
.clinical-patient-main p,
.clinical-patient-main h2,
.clinical-patient-main span {
  margin: 0;
}
.clinical-patient-main p {
  color: #7a928c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.clinical-patient-main h2 {
  margin: 3px 0;
  overflow: hidden;
  color: #0e3f36;
  text-overflow: ellipsis;
  white-space: nowrap;
  font:
    800 20px/1.15 Manrope,
    sans-serif;
}
.clinical-patient-main span {
  display: block;
  overflow: hidden;
  color: #5c756f;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.clinical-patient-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(86px, 1fr));
  gap: 6px;
}
.clinical-patient-facts > div {
  min-width: 0;
  min-height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 8px;
  border: 1px solid #e4ece9;
  border-radius: 9px;
  background: #f7faf9;
}
.clinical-patient-facts span,
.clinical-patient-facts strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clinical-patient-facts span {
  margin-bottom: 5px;
  color: #7b918b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.clinical-patient-facts strong {
  color: #244a43;
  font-size: 11.5px;
}
.clinical-status {
  display: inline-flex !important;
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px !important;
}
.clinical-command-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
}
.clinical-summary-rail {
  position: sticky;
  top: 0;
  display: grid;
  gap: 3px;
}
.clinical-rail-heading {
  padding: 1px 3px 2px;
}
.clinical-rail-heading.actions {
  margin-top: 1px;
}
.clinical-rail-heading span,
.clinical-rail-heading strong {
  display: block;
}
.clinical-rail-heading span {
  color: #1b8a76;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.clinical-rail-heading strong {
  margin-top: 3px;
  color: #21463f;
  font:
    800 14px/1.2 Manrope,
    sans-serif;
}
.clinical-overview {
  display: grid;
  gap: 4px;
}
.clinical-overview article {
  min-height: 84px;
  padding: 12px 13px;
  border: 1px solid #d8e4e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px #123b340a;
}
.clinical-overview article > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.clinical-overview article > span,
.clinical-overview article > strong,
.clinical-overview article > small,
.clinical-overview article > p {
  display: block;
}
.clinical-overview article > span,
.clinical-overview article > div:first-child span {
  color: #718781;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.clinical-overview article > strong {
  margin-top: 7px;
  color: #173f37;
  font-size: 12px;
}
.clinical-overview article > small {
  margin-top: 5px;
  color: #607a74;
  font-size: 10px;
  line-height: 1.45;
}
.clinical-overview article > p {
  margin: 6px 0 0;
  color: #415f59;
  font-size: 10px;
  line-height: 1.4;
}
.clinical-chips {
  display: flex !important;
  justify-content: flex-start !important;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.clinical-chips > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 7px;
  color: #35534e;
  border: 1px solid #dae5e2;
  border-radius: 999px;
  background: #f6f9f8;
  font-size: 9.5px;
}
.clinical-chips > span.active {
  border-color: #58ad9c;
  background: #e8f7f3;
}
.clinical-chips b,
.clinical-chips em {
  padding: 2px 5px;
  border-radius: 999px;
  color: #fff;
  background: #214a42;
  font-size: 8.5px;
  font-style: normal;
}
.clinical-chips em {
  background: #168f7c;
}
.clinical-next-row {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #edf1f0;
}
.clinical-next-row strong,
.clinical-next-row small {
  display: block;
  font-size: 10px;
  line-height: 1.35;
}
.clinical-next-row small {
  color: #758a85;
  margin-top: 3px;
}
.clinical-next-row button {
  padding: 0;
  border: 0;
  color: #147767;
  background: transparent;
  font-size: 10px;
  font-weight: 900;
}
.clinical-next-appointment-card.has-next {
  border-color: #8bc8bb;
  background: linear-gradient(135deg, #f0fbf7, #fff);
}
.clinical-next-appointment-card.no-next {
  border-color: #e5b566;
  background: linear-gradient(135deg, #fff8e8, #fff);
}
.clinical-no-next {
  display: grid !important;
  gap: 8px;
  margin-top: 7px;
}
.clinical-no-next strong {
  color: #9b5a16;
  font-size: 13px;
}
.clinical-no-next button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: #b87919;
  font-size: 10px;
  font-weight: 900;
}
.clinical-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.clinical-quick-actions > button {
  min-width: 0;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 4px;
  color: #214d45;
  text-align: center;
  border: 1px solid #d6e3df;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 14px #123b340a;
}
.clinical-quick-actions > button:hover:not(:disabled) {
  border-color: #70b8a8;
  background: #fbfefd;
  transform: translateY(-1px);
}
.clinical-quick-actions > button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
.clinical-quick-actions svg {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 7px;
  color: #fff;
  border-radius: 9px;
  background: #178b78;
}
.clinical-quick-actions strong,
.clinical-quick-actions small {
  display: block;
}
.clinical-quick-actions strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}
.clinical-quick-actions small {
  margin-top: 4px;
  color: #718781;
  font-size: 9.5px;
  line-height: 1.35;
}
.clinical-lock {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 4px;
  padding: 11px 12px;
  color: #71501b;
  border: 1px solid #ecd598;
  border-radius: 10px;
  background: #fff8e7;
}
.clinical-lock strong,
.clinical-lock span {
  display: block;
}
.clinical-lock strong {
  font-size: 11px;
}
.clinical-lock span {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.4;
}
.clinical-record-area {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
}
.clinical-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid #d8e4e1;
  border-radius: 9px;
  background: #fffffff7;
  box-shadow: 0 3px 12px #1139320d;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  scrollbar-width: thin;
}
.clinical-tabs button {
  flex: 0 0 auto;
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: #54746d;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}
.clinical-tabs button:hover {
  color: #165e52;
  background: #edf6f3;
}
.clinical-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, #176e60, #118471);
  box-shadow: 0 5px 12px #12766533;
}
.clinical-tabs b {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  color: inherit;
  background: #80969129;
  font-size: 9px;
}
.clinical-patient-tabs {
  position: static;
  grid-column: 1 / -1;
  margin: 0 -12px;
  padding: 4px 10px;
  border-width: 1px 0 0;
  border-radius: 0 0 11px 7px;
  background: #f8fbfa;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.clinical-consultation,
.clinical-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8e4e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 15px #103a330a;
}
.clinical-tab-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-bottom: 8px;
}
.clinical-treatment-gate {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  color: #74531e;
  border: 1px solid #e7cc8e;
  border-radius: 9px;
  background: #fff8e8;
  font-size: 10px;
  font-weight: 800;
}
.clinical-treatment-gate svg {
  flex: 0 0 auto;
}
.clinical-treatment-gate span {
  margin-right: auto;
}
.clinical-treatment-gate button {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #176e60;
  border: 1px solid #b9d8d1;
  border-radius: 7px;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
}
.clinical-section-heading {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.clinical-section-heading > div:last-child {
  display: flex;
  gap: 7px;
}
.clinical-section-heading span,
.clinical-section-heading h3,
.clinical-section-heading p {
  margin: 0;
}
.clinical-section-heading span {
  color: #188e79;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.clinical-section-heading h3 {
  margin-top: 4px;
  color: #123e35;
  font:
    800 21px/1.2 Manrope,
    sans-serif;
}
.clinical-section-heading p {
  margin-top: 4px;
  color: #6b837d;
  font-size: 11px;
}
.clinical-primary,
.clinical-secondary,
.clinical-bill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.clinical-primary {
  color: #fff;
  background: #177b6b;
}
.clinical-secondary {
  color: #146c5e;
  border: 1px solid #9fd2c7;
  background: #edf8f5;
}
.clinical-bill {
  color: #fff;
  background: linear-gradient(135deg, #b67a1c, #9e6310);
}
.clinical-primary:hover:not(:disabled),
.clinical-bill:hover:not(:disabled) {
  filter: brightness(1.05);
}
.clinical-primary:disabled,
.clinical-secondary:disabled,
.clinical-bill:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.clinical-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.clinical-editor-grid label {
  min-width: 0;
}
.clinical-editor-grid label.wide {
  grid-column: 1 / -1;
}
.clinical-editor-grid label > span {
  display: block;
  margin-bottom: 7px;
  color: #35574f;
  font-size: 12px;
  font-weight: 900;
}
.clinical-editor-grid label > span b {
  color: #b62e46;
}
.clinical-editor-grid textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  padding: 12px 13px;
  color: #1d3a35;
  border: 1px solid #cfddd9;
  border-radius: 10px;
  background: #fbfcfc;
  font: 14px/1.55 inherit;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.clinical-editor-grid textarea:focus {
  outline: 0;
  border-color: #54a999;
  box-shadow: 0 0 0 3px #1b917d1f;
  background: #fff;
}
.clinical-editor-grid textarea:disabled {
  color: #536863;
  background: #f1f4f3;
}
.clinical-file-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px dashed #a9c8c1;
  border-radius: 10px;
  background: #f7fbfa;
}
.clinical-file-field > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}
.clinical-file-field strong,
.clinical-file-field small {
  display: block;
}
.clinical-file-field strong {
  font-size: 11px;
}
.clinical-file-field small {
  margin-top: 2px;
  color: #7f938e;
  font-size: 9px;
}
.clinical-file-field a {
  color: #147563;
  font-size: 10px;
  font-weight: 900;
}
.clinical-file-field label {
  padding: 8px 11px;
  color: #fff;
  border-radius: 8px;
  background: #52786f;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.clinical-file-field label.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.clinical-file-field input {
  display: none;
}
.clinical-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e4ece9;
}
.clinical-form-footer > span {
  color: #748b85;
  font-size: 10px;
}
.clinical-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  border: 1px solid #dbe6e3;
  border-radius: 10px;
  scrollbar-width: thin;
}
.clinical-table-wrap table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
  background: #fff;
  font-size: 12px;
  line-height: 1.45;
}
.clinical-table-wrap.history table {
  min-width: 1080px;
  table-layout: fixed;
}
.clinical-history-table th:nth-child(1) {
  width: 52px;
}
.clinical-history-table th:nth-child(2) {
  width: 145px;
}
.clinical-history-table th:nth-child(3) {
  width: 175px;
}
.clinical-history-table th:nth-child(4) {
  width: 130px;
}
.clinical-history-table th:nth-child(5) {
  width: 220px;
}
.clinical-history-table th:nth-child(6) {
  width: 180px;
}
.clinical-history-table th:nth-child(7) {
  width: 180px;
}
.clinical-history-table th:nth-child(8) {
  width: 150px;
}
.clinical-history-table td > strong,
.clinical-history-table td > b,
.clinical-history-table td > p,
.clinical-history-table td > span {
  display: block;
}
.clinical-history-table td > strong,
.clinical-history-table td > b {
  margin-top: 5px;
  color: #244a43;
  font-size: 11px;
}
.clinical-history-table td > p {
  max-height: 6.2em;
  margin: 4px 0 8px;
  overflow: auto;
  color: #385850;
  line-height: 1.45;
}
.clinical-history-table .clinical-status {
  margin-top: 7px;
}
.clinical-history-label {
  margin-top: 8px;
  color: #78908a;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.clinical-history-label:first-child {
  margin-top: 0;
}
.clinical-history-number {
  padding: 0 !important;
  color: #116f60 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.clinical-history-action-heading,
.clinical-history-action-cell {
  text-align: center !important;
}
.clinical-history-action-cell {
  padding-right: 7px !important;
  padding-left: 7px !important;
}
.clinical-history-open {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #177b6b !important;
}
.clinical-history-open:disabled {
  color: #56736c !important;
  background: #e3ece9 !important;
  opacity: 1;
}
.clinical-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 11px 10px;
  color: #fff;
  text-align: left;
  white-space: nowrap;
  background: #174f47;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.clinical-table-wrap td {
  max-width: 300px;
  padding: 11px 10px;
  vertical-align: top;
  color: #344f49;
  border-top: 1px solid #e8eeec;
  overflow-wrap: anywhere;
}
.clinical-table-wrap tbody tr:hover td {
  background: #f7fbfa;
}
.clinical-table-wrap tbody tr.current td {
  background: #fff7d9;
}
.clinical-table-wrap td strong,
.clinical-table-wrap td small {
  display: block;
}
.clinical-table-wrap td small {
  margin-top: 4px;
  color: #718781;
  font-size: 10px;
}
.clinical-table-wrap tfoot td {
  color: #173e37;
  background: #eef6f3;
  font-weight: 900;
}
.clinical-table-wrap a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #137564;
  font-weight: 900;
}
.clinical-table-wrap button {
  padding: 5px 8px;
  color: #176e60;
  border: 1px solid #c7dcd7;
  border-radius: 6px;
  background: #f5fbf9;
  font-size: 10px;
}
.clinical-icon-danger {
  color: #b2253d !important;
  border-color: #efc0c8 !important;
  background: #fff4f6 !important;
}
.clinical-tax {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 900;
}
.clinical-tax.yes {
  color: #176344;
  background: #dff5e9;
}
.clinical-tax.no {
  color: #a33145;
  background: #fbe6e9;
}
.clinical-department {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  color: #176e60;
  background: #e4f5f1;
  font-weight: 900;
}
.clinical-empty {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #718781;
  font-size: 12px;
}
.clinical-lab-value {
  min-height: 150px;
  padding: 15px;
  white-space: pre-wrap;
  color: #294a43;
  border: 1px solid #dce6e3;
  border-radius: 10px;
  background: #f8fbfa;
  font-size: 13px;
  line-height: 1.55;
}
.clinical-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 10px;
}
.clinical-card-grid article {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid #dce6e3;
  border-radius: 10px;
  background: #fbfcfc;
}
.clinical-card-grid article > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.clinical-card-grid article strong,
.clinical-card-grid article small {
  display: block;
}
.clinical-card-grid article small {
  margin-top: 3px;
  color: #80928e;
  font-size: 9px;
}
.clinical-card-grid article > b {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
}
.clinical-card-grid article > b.done {
  color: #176344;
  background: #ddf4e7;
}
.clinical-card-grid article > b.pending {
  color: #875714;
  background: #fff0cd;
}
.clinical-signature {
  width: 100%;
  height: 100px;
  object-fit: contain;
  padding: 7px;
  border: 1px solid #e0e8e6;
  border-radius: 8px;
  background: #fff;
}
.clinical-card-grid dl {
  display: grid;
  gap: 6px;
  margin: 0;
}
.clinical-card-grid dl div {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  font-size: 10px;
}
.clinical-card-grid dt {
  color: #80928e;
}
.clinical-card-grid dd {
  margin: 0;
  color: #2f4d47;
  font-weight: 700;
}
.clinical-card-grid article > button {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  color: #176e60;
  border: 1px solid #bad8d1;
  border-radius: 7px;
  background: #fff;
  font-size: 10px;
}
.clinical-files {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}
.clinical-files > a,
.clinical-files > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 12px;
  color: #234b43;
  border: 1px solid #dce6e3;
  border-radius: 10px;
  background: #f8fbfa;
  text-decoration: none;
}
.clinical-files strong,
.clinical-files small {
  display: block;
}
.clinical-files strong {
  font-size: 11px;
}
.clinical-files small {
  margin-top: 3px;
  color: #81938f;
  font-size: 9px;
}
.clinical-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
}
.clinical-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: #061f1b99;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.clinical-modal {
  position: relative;
  z-index: 1;
  width: min(96vw, 720px);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 26px 90px #03191557;
}
.clinical-modal > header,
.clinical-modal > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
}
.clinical-modal > header {
  color: #fff;
  background: #164f46;
}
.clinical-modal > header h3,
.clinical-modal > header p {
  margin: 0;
}
.clinical-modal > header h3 {
  font-size: 19px;
}
.clinical-modal > header p {
  margin-top: 4px;
  color: #c4e4dd;
  font-size: 11px;
}
.clinical-modal > header button {
  color: #fff;
  border: 0;
  background: transparent;
  font-size: 24px;
}
.clinical-modal-body {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 16px;
}
.clinical-modal-body label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #35574f;
  font-size: 12px;
  font-weight: 900;
}
.clinical-modal-body input,
.clinical-modal-body select,
.clinical-modal-body textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: #203e38;
  border: 1px solid #cfddd9;
  border-radius: 9px;
  background: #fbfcfc;
  font: 14px inherit;
  color-scheme: light;
}
.clinical-modal-body textarea {
  min-height: 100px;
  resize: vertical;
}
.clinical-field-help {
  color: #708781;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}
.clinical-package-empty {
  padding: 10px 12px;
  color: #6e571f;
  border: 1px solid #ead8a7;
  border-radius: 9px;
  background: #fff9e9;
  font-size: 11px;
  font-weight: 750;
}
.clinical-package-details {
  display: grid;
  gap: 11px;
  padding: 13px;
  border: 1px solid #a9d5ca;
  border-radius: 11px;
  background: #f1faf7;
}
.clinical-package-details > div span,
.clinical-package-details > div strong,
.clinical-package-details > div small {
  display: block;
}
.clinical-package-details > div span {
  color: #178371;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.clinical-package-details > div strong {
  margin-top: 3px;
  color: #154c42;
  font-size: 14px;
}
.clinical-package-details > div small {
  margin-top: 2px;
  color: #607a73;
  font-size: 10px;
}
.clinical-package-details dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}
.clinical-package-details dl div {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}
.clinical-package-details dt {
  color: #76908a;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.clinical-package-details dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: #234b43;
  font-size: 10px;
  font-weight: 800;
}
.clinical-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.clinical-modal > footer {
  border-top: 1px solid #e1e9e7;
  background: #f8faf9;
}
.clinical-modal > footer > button:not(.clinical-primary) {
  min-height: 42px;
  padding: 0 15px;
  color: #57716b;
  border: 1px solid #cedbd8;
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}
.clinical-treatment-picker {
  position: relative;
  min-width: 0;
}
.clinical-picker-toggle {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  color: #254a42;
  text-align: left;
  border: 1px solid #c9dad5;
  border-radius: 9px;
  background: #fbfcfc;
  cursor: pointer;
}
.clinical-picker-toggle > span,
.clinical-picker-toggle strong,
.clinical-picker-toggle small {
  min-width: 0;
  display: block;
}
.clinical-picker-toggle strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.clinical-picker-toggle small {
  margin-top: 3px;
  color: #758a84;
  font-size: 10px;
}
.clinical-picker-toggle > b {
  flex: 0 0 auto;
  color: #4e756d;
  font-size: 20px;
}
.clinical-picker-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  padding: 9px;
  border: 1px solid #bcd4ce;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 18px 42px #072d2633;
}
.clinical-picker-menu > input {
  min-height: 42px;
  margin-bottom: 8px;
  background: #fff;
}
.clinical-picker-options {
  max-height: min(330px, 48vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e1e9e7;
  border-radius: 9px;
}
.clinical-picker-options > button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  color: #31554d;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #edf2f0;
  background: #fff;
  cursor: pointer;
}
.clinical-picker-options > button:last-child {
  border-bottom: 0;
}
.clinical-picker-options > button:hover,
.clinical-picker-options > button.selected {
  background: #eaf7f3;
}
.clinical-picker-options > button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.clinical-picker-options > button strong {
  color: #126f5f;
  white-space: nowrap;
  font-size: 12px;
}
.clinical-picker-options > p,
.clinical-picker-limit {
  display: block;
  margin: 0;
  padding: 13px;
  color: #718781;
  font-size: 11px;
  font-weight: 600;
}
.clinical-picker-limit {
  padding: 8px 2px 0;
}
.clinical-treatment-picker.open .clinical-picker-menu {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  margin-top: 6px;
  box-shadow: 0 10px 26px #072d2624;
}
.clinical-treatment-picker.open .clinical-picker-options {
  max-height: min(300px, 36vh);
}
.clinical-day-schedule {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #c6dbd6;
  border-radius: 11px;
  background: #f5faf8;
}
.clinical-day-schedule > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.clinical-day-schedule > header span,
.clinical-day-schedule > header strong {
  display: block;
}
.clinical-day-schedule > header span {
  color: #718b85;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.clinical-day-schedule > header strong {
  margin-top: 2px;
  color: #21483f;
  font-size: 13px;
}
.clinical-day-schedule > header > b {
  padding: 5px 9px;
  color: #fff;
  border-radius: 999px;
  background: #166f60;
  font-size: 10px;
}
.clinical-day-summary {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px;
}
.clinical-day-summary article {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #d7e5e1;
  border-radius: 9px;
  background: #fff;
}
.clinical-day-summary article > span,
.clinical-day-summary article > strong,
.clinical-day-summary article > small {
  display: block;
}
.clinical-day-summary article > span {
  color: #78908a;
  font-size: 9px;
  font-weight: 900;
}
.clinical-day-summary article > strong {
  margin-top: 4px;
  color: #164f46;
  font-size: 20px;
}
.clinical-day-summary article > small {
  margin-top: 3px;
  color: #718781;
  font-size: 9px;
}
.clinical-day-summary article.busy {
  border-color: #e6b36a;
  background: #fff8e9;
}
.clinical-day-summary article.busy > strong {
  color: #a95a17;
}
.clinical-schedule-loading {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #55736c;
  font-size: 10px;
}
.clinical-schedule-error {
  padding: 8px 10px;
  color: #a33245;
  border-radius: 8px;
  background: #fff0f2;
  font-size: 10px;
  font-weight: 800;
}
.clinical-booked-times > span {
  display: block;
  margin-bottom: 6px;
  color: #6c8780;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.clinical-booked-times > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.clinical-booked-times > div > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: #31564e;
  border: 1px solid #cee0dc;
  border-radius: 8px;
  background: #fff;
}
.clinical-booked-times > div > span.selected {
  color: #984d12;
  border-color: #e2a558;
  background: #fff2da;
}
.clinical-booked-times strong {
  font-size: 10px;
}
.clinical-booked-times b {
  color: #7a918b;
  font-size: 8px;
}
.clinical-booked-times em {
  color: #718781;
  font-size: 10px;
  font-style: normal;
}
@media (max-width: 1280px) {
  .clinical-page-header {
    grid-template-columns: auto auto minmax(130px, 1fr) auto;
    gap: 12px;
  }
  .clinical-page-title {
    text-align: left;
  }
  .clinical-patient-card {
    grid-template-columns: 1fr;
  }
  .clinical-patient-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .clinical-command-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .clinical-workspace {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .clinical-page-header {
    grid-template-columns: 1fr auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .clinical-page-brand {
    border-right: 0;
  }
  .clinical-page-title {
    display: none;
  }
  .clinical-page-navigation,
  .clinical-doctor-context {
    grid-row: 2;
  }
  .clinical-command-layout {
    grid-template-columns: 1fr;
  }
  .clinical-summary-rail {
    position: static;
  }
  .clinical-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clinical-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .clinical-page-brand > div,
  .clinical-doctor-context > div {
    display: none;
  }
  .clinical-page-scroll {
    padding: 5px;
  }
  .clinical-patient-card {
    padding: 14px;
  }
  .clinical-patient-facts,
  .clinical-overview,
  .clinical-editor-grid,
  .clinical-modal-grid {
    grid-template-columns: 1fr;
  }
  .clinical-editor-grid label.wide {
    grid-column: auto;
  }
  .clinical-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .clinical-section-heading > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }
  .clinical-primary,
  .clinical-secondary,
  .clinical-bill {
    flex: 1 1 auto;
  }
  .clinical-file-field,
  .clinical-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .clinical-day-summary {
    grid-template-columns: 1fr;
  }
  .clinical-package-details dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media print {
  .clinical-page-layer {
    position: static;
    overflow: visible;
  }
  .clinical-workspace {
    height: auto;
    display: block;
  }
  .clinical-page-header,
  .clinical-summary-rail,
  .clinical-tabs,
  .clinical-form-footer,
  .clinical-file-field label,
  .clinical-section-heading button,
  .clinical-modal-layer,
  .clinical-icon-danger {
    display: none !important;
  }
  .clinical-page-scroll {
    overflow: visible;
    padding: 0;
  }
  .clinical-command-layout {
    display: block;
  }
  .clinical-consultation,
  .clinical-panel,
  .clinical-patient-card,
  .clinical-overview article {
    break-inside: avoid;
    box-shadow: none;
  }
  .clinical-table-wrap {
    overflow: visible;
  }
  .clinical-table-wrap table {
    min-width: 0;
    font-size: 7pt;
  }
}
.workspace-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  color: #173c37;
  background: #f3f6f5;
}
.workspace-sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  color: #d8eee9;
  background: #103f39;
  box-shadow: 8px 0 30px #0f3f3914;
}
.mini-brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  position: relative;
  border-radius: 14px;
  color: #174f47;
  background: #e8fbf7;
}
.mini-brand strong {
  font-size: 12px;
  letter-spacing: -0.04em;
}
.mini-cross {
  position: absolute;
  top: 2px;
  right: 6px;
  color: #20a28e;
  font-size: 15px;
  font-weight: 700;
}
.workspace-sidebar nav {
  width: 100%;
  display: grid;
  gap: 6px;
  margin-top: 42px;
}
.workspace-sidebar nav button,
.sidebar-logout {
  width: 52px;
  min-height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 8px 4px;
  color: #a9cbc4;
  border: 0;
  border-radius: 15px;
  background: transparent;
}
.workspace-sidebar nav button {
  height: 52px;
  grid-template-rows: 20px 10px;
  align-content: center;
  row-gap: 3px;
  overflow: hidden;
  background: #ffffff09;
}
.workspace-sidebar nav button .ui-icon {
  width: 20px;
  height: 20px;
}
.workspace-sidebar nav button span {
  width: 48px;
  margin: 0;
  overflow: hidden;
  font-size: 7.5px;
  font-weight: 700;
  line-height: 10px;
  letter-spacing: -0.035em;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}
.workspace-sidebar nav button.active {
  color: #fff;
  background: #ffffff1f;
}
.sidebar-logout {
  margin-top: auto;
}
.workspace-sidebar button:hover {
  color: #fff;
  background: #ffffff14;
}
.workspace-main {
  min-width: 0;
}
.workspace-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
  border-bottom: 1px solid #e0e8e6;
  background: #ffffffd1;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.workspace-header p {
  margin: 0 0 3px;
  color: #82958f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.workspace-header h1 {
  margin: 0;
  font:
    700 25px/1.1 Manrope,
    sans-serif;
  letter-spacing: -0.045em;
}
.user-context {
  display: flex;
  align-items: center;
  gap: 13px;
}
.user-copy {
  display: flex;
  flex-direction: column;
  text-align: right;
}
.user-copy strong {
  color: #173d38;
  font-size: 13px;
}
.user-copy span {
  margin-top: 4px;
  color: #80928d;
  font-size: 11px;
}
.role-pill {
  padding: 8px 11px;
  color: #146a5e;
  border: 1px solid #c5e8df;
  border-radius: 10px;
  background: #e8f8f4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
}
.patients-content {
  padding: 10px 10px 20px;
}
.patient-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.patient-toolbar.search-only {
  max-width: 900px;
  margin: 18px auto 12px;
}
.patient-toolbar.search-only .patient-search {
  height: 52px;
  padding: 0 16px;
  border-color: #c9ded9;
  box-shadow: 0 12px 32px #18413b14;
}
.patient-toolbar.search-only .patient-search input {
  font-size: 14px;
}
.patient-search {
  min-width: 260px;
  height: 42px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  color: #80938e;
  border: 1px solid #d8e3e0;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 7px 22px #18413b0a;
}
.patient-search:focus-within {
  border-color: #339b8b;
  box-shadow: 0 0 0 4px #339b8b1a;
}
.patient-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #1d423d;
  background: transparent;
}
.patient-search input::placeholder {
  color: #95a6a2;
}
.patient-search kbd {
  padding: 4px 7px;
  color: #8b9b97;
  border: 1px solid #dce5e3;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #f7f9f8;
  font-size: 10px;
}
.new-patient-button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: #fff;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #218574, #155d53);
  box-shadow: 0 8px 20px #155d532e;
  font-size: 12px;
  font-weight: 700;
}
.new-patient-button:hover {
  transform: translateY(-1px);
}
.patient-search-gate {
  max-width: 900px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto;
  padding: 34px;
  color: #718782;
  border: 1px dashed #c9dbd7;
  border-radius: 16px;
  background: linear-gradient(145deg, #fbfdfc, #f3f8f6);
  text-align: left;
}
.patient-search-gate-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #1c7b6d;
  border: 1px solid #cce4de;
  border-radius: 18px;
  background: #e9f7f3;
}
.patient-search-gate p {
  margin: 0 0 5px;
  color: #1c7b6d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.patient-search-gate h2 {
  margin: 0 0 8px;
  color: #1d453f;
  font-size: 21px;
}
.patient-search-gate div > span {
  max-width: 580px;
  display: block;
  font-size: 12px;
  line-height: 1.7;
}
.admin-filters {
  min-height: 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
  padding: 6px 8px;
  border: 1px solid #dbe6e3;
  border-radius: 11px;
  background: #eaf3f0;
}
.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 5px;
  color: #41736b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-filters select,
.date-filter {
  height: 36px;
  color: #31564f;
  border: 1px solid #d3dfdc;
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
}
.admin-filters select {
  max-width: 170px;
  padding: 0 28px 0 10px;
}
.date-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
}
.date-filter input {
  width: 117px;
  padding: 0;
  color: #365c55;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
}
.date-filter span {
  color: #9aaba7;
  font-size: 10px;
}
.day-buttons {
  display: flex;
  overflow: hidden;
  border: 1px solid #d3dfdc;
  border-radius: 9px;
}
.day-buttons button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #4a766e;
  border: 0;
  border-right: 1px solid #d3dfdc;
  background: #fff;
}
.day-buttons button:last-child {
  border-right: 0;
}
.clear-filters {
  height: 35px;
  padding: 0 11px;
  color: #567b74;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}
.table-card {
  overflow: hidden;
  border: 1px solid #dce6e3;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 25px #153b360d;
}
.table-card-header {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #e6ecea;
}
.table-card-header > div {
  display: flex;
  flex-direction: column;
}
.table-card-header strong {
  color: #214b45;
  font-size: 14px;
}
.table-card-header span {
  margin-top: 4px;
  color: #879791;
  font-size: 11px;
}
.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #52776f;
  border: 1px solid #dce6e3;
  border-radius: 11px;
  background: #fff;
}
.icon-button:hover {
  color: #176e61;
  border-color: #bad9d2;
  background: #f0faf7;
}
.table-error,
.form-error {
  margin: 14px;
  padding: 11px 13px;
  color: #9b312e;
  border: 1px solid #efcac7;
  border-radius: 10px;
  background: #fff1f0;
  font-size: 12px;
}
.patient-table-wrap {
  overflow-x: auto;
}
.patient-table {
  width: 100%;
  min-width: 1780px;
  table-layout: fixed;
  border-collapse: collapse;
}
.patient-table th {
  padding: 9px 6px;
  color: #718680;
  border-bottom: 1px solid #e6ecea;
  background: #f8faf9;
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  white-space: nowrap;
}
.patient-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #edf1f0;
  vertical-align: middle;
  font-size: 12px;
}
.patient-table th:nth-child(1) {
  width: 94px;
}
.patient-table th:nth-child(2) {
  width: 270px;
}
.patient-table th:nth-child(3) {
  width: 165px;
}
.patient-table th:nth-child(4) {
  width: 145px;
}
.patient-table th:nth-child(5) {
  width: 205px;
}
.patient-table th:nth-child(6) {
  width: 92px;
}
.patient-table th:nth-child(7),
.patient-table th:nth-child(8),
.patient-table th:nth-child(9) {
  width: 96px;
}
.patient-table th:nth-child(n + 10) {
  width: 150px;
}
.patient-table tbody tr:hover {
  background: #fbfdfc;
}
.patient-table tbody tr:last-child td {
  border-bottom: 0;
}
.patient-actions-column {
  text-align: left;
}
.patient-actions-column .row-actions {
  justify-content: flex-start;
}
.patient-cell {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
}
.file-number {
  min-width: 43px;
  padding: 5px 6px;
  color: #167466;
  border: 1px solid #c9e2dd;
  border-radius: 6px;
  background: #edfaf6;
  font-size: 10.5px;
  font-weight: 800;
}
.patient-cell > div,
.stacked-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.patient-cell strong,
.stacked-cell strong {
  max-width: 100%;
  overflow: hidden;
  color: #1e443e;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.patient-cell span:not(.patient-star),
.stacked-cell span {
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: #778c86;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}
.patient-star {
  font-size: 16px;
}
.patient-star.green,
.rating-star.green {
  color: #20a174;
}
.patient-star.yellow,
.rating-star.yellow {
  color: #e4b62c;
}
.patient-star.black,
.rating-star.black {
  color: #24332f;
}
.patient-star.gray {
  color: #c8d2cf;
}
.metric-cell {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 2px;
  min-width: 0;
}
.metric-cell strong {
  color: #175f55;
  font-size: 15px;
}
.metric-cell span {
  color: #748a84;
  font-size: 9.5px;
}
.metric-cell small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #879994;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}
.status-badge {
  display: inline-flex;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
}
.status-badge.success {
  color: #14715f;
  background: #e2f6ef;
}
.status-badge.danger {
  color: #a33c36;
  background: #ffe8e5;
}
.status-badge.neutral {
  color: #687b76;
  background: #edf1f0;
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
}
.row-actions button,
.row-actions a {
  width: 25px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #5f7e77;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
}
.row-actions .ui-icon {
  width: 15px;
  height: 15px;
}
.row-actions button:hover,
.row-actions a:hover {
  color: #176e61;
  background: #eaf7f3;
}
.table-loading,
.empty-state {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #82948f;
}
.table-pagination {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-top: 1px solid #e6ecea;
  color: #7e918c;
  font-size: 10px;
}
.table-pagination > div {
  display: flex;
  gap: 7px;
}
.table-pagination button {
  height: 35px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  color: #346159;
  border: 1px solid #d5e1de;
  border-radius: 9px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}
.table-pagination button:disabled {
  cursor: default;
  opacity: 0.42;
}
.appointments-content {
  padding: 8px 8px 18px;
}
.appointment-list-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
  padding: 6px;
  border: 1px solid #dbe6e3;
  border-radius: 10px;
  background: #eaf3f0;
}
.appointment-patient-search {
  min-width: 225px;
  height: 34px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  color: #78908a;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
}
.appointment-patient-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #254b45;
  background: transparent;
  font-size: 10.5px;
}
.appointment-list-filters select {
  max-width: 155px;
  height: 34px;
  padding: 0 26px 0 8px;
  color: #31564f;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
  font-size: 10.5px;
}
.appointment-list-filters select:disabled {
  color: #58736d;
  background: #f3f6f5;
}
.appointment-page-size-filter {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 5px 0 9px;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
  color: #55716a;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}
.appointment-page-size-filter select {
  width: 68px;
  max-width: 68px;
  height: 28px;
  padding-left: 7px;
  border: 0;
  background-color: #f5faf8;
  font-weight: 850;
}
.appointment-date-range {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  color: #53776f;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
}
.appointment-date-range input {
  width: 108px;
  padding: 0;
  color: #31564f;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 9.5px;
}
.appointment-date-range span {
  color: #91a29e;
  font-size: 9px;
}
.appointment-day-actions {
  height: 34px;
  display: flex;
  overflow: hidden;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
}
.appointment-day-actions button {
  min-width: 31px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  color: #456e66;
  border: 0;
  border-right: 1px solid #dbe4e2;
  background: #fff;
  font-size: 9.5px;
  font-weight: 750;
}
.appointment-day-actions button:last-child {
  border-right: 0;
}
.appointment-status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
  gap: 6px;
  width: 100%;
  max-width: none;
  margin-bottom: 7px;
  padding: 1px 1px 4px;
}
.appointment-status-strip button {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  color: #536d67;
  border: 1px solid rgba(18, 27, 45, 0.04);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 14px #121b2d12;
}
.appointment-status-strip button span {
  max-width: 94px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 850;
}
.appointment-status-strip button strong {
  margin-top: 3px;
  font-size: 19px;
  line-height: 1;
}
.appointment-status-strip button.active {
  border: 2px solid #121b2d;
  box-shadow: 0 0 0 2px #121b2d14;
}
.appointment-status-strip button.all {
  color: #fff;
  background: #1d69f6;
}
.appointment-status-1,
.appointment-status-waiting {
  color: #111318 !important;
  background: #fff5b8 !important;
}
.appointment-status-2,
.appointment-status-unavailable {
  color: #a43b1d !important;
  background: #ffecd2 !important;
}
.appointment-status-3,
.appointment-status-scheduled {
  color: #166b3d !important;
  background: #d6f8e3 !important;
}
.appointment-status-4,
.appointment-status-rescheduled {
  color: #5d27c7 !important;
  background: #ece8ff !important;
}
.appointment-status-5,
.appointment-status-procedure {
  color: #ab102a !important;
  background: #ffdfe5 !important;
}
.appointment-status-6,
.appointment-status-missed {
  color: #1a6079 !important;
  background: #c9f5fa !important;
}
.appointment-status-7,
.appointment-status-completed {
  color: #176b3c !important;
  background: #b6f1cd !important;
}
.appointment-status-8,
.appointment-status-cancelled {
  color: #c5103a !important;
  background: #ffe0e5 !important;
}
.appointment-status-9,
.appointment-status-billing {
  color: #9a079f !important;
  background: #f7dcfb !important;
}
.appointment-status-10,
.appointment-status-partially-paid {
  color: #00705d !important;
  background: #c9f5df !important;
}
.dynamic-appointment-status-color {
  color: var(--dynamic-status-color, #64748b) !important;
  border-color: var(--dynamic-status-border, #64748b66) !important;
  background: var(--dynamic-status-background, #64748b18) !important;
}
.appointment-hourly-workload {
  margin-bottom: 7px;
  overflow: hidden;
  border: 1px solid #d8e5e2;
  border-radius: 11px;
  background: #fff;
}
.appointment-hourly-workload > header {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 9px;
  border-bottom: 1px solid #e4edeb;
  background: #f7fbfa;
}
.appointment-hourly-workload > header strong,
.appointment-hourly-workload > header span {
  display: block;
}
.appointment-hourly-workload > header strong {
  color: #194940;
  font-size: 10.5px;
}
.appointment-hourly-workload > header span,
.appointment-hourly-workload > header small {
  color: #78908a;
  font-size: 8.5px;
}
.appointment-hourly-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.appointment-hourly-actions button {
  height: 25px;
  padding: 0 9px;
  border: 1px solid #c9deda;
  border-radius: 7px;
  color: #37675e;
  background: #fff;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.appointment-hourly-actions button.active {
  border-color: #167868;
  color: #fff;
  background: #167868;
}
.appointment-hourly-workload > div {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.appointment-hourly-workload > div > button {
  min-width: 0;
  padding: 7px 4px;
  border: 0;
  border-right: 1px solid #e6efec;
  color: #6f8580;
  text-align: center;
  background: #fbfdfc;
  cursor: pointer;
}
.appointment-hourly-workload > div > button:last-child {
  border-right: 0;
}
.appointment-hourly-workload > div > button span,
.appointment-hourly-workload > div > button strong,
.appointment-hourly-workload > div > button small {
  display: block;
}
.appointment-hourly-workload > div > button span {
  overflow: hidden;
  font-size: 8.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-hourly-workload > div > button strong {
  margin-top: 2px;
  color: #345e56;
  font-size: 15px;
  line-height: 1;
}
.appointment-hourly-workload > div > button small {
  margin-top: 2px;
  overflow: hidden;
  color: #93a39f;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-hourly-workload > div > button:hover {
  box-shadow: inset 0 0 0 2px #93c9bf;
}
.appointment-hourly-workload > div > button.booked {
  background: #ecf8f4;
}
.appointment-hourly-workload > div > button.booked strong {
  color: #117665;
}
.appointment-hourly-workload > div > button.high {
  background: #fff0ed;
}
.appointment-hourly-workload > div > button.high strong {
  color: #c24336;
}
.appointment-hourly-workload > div > button.active {
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 0 2px #116f61;
}
@media (max-width: 1200px) {
  .appointment-hourly-workload > div {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .appointment-hourly-workload > div > button:nth-child(6) {
    border-right: 0;
  }
  .appointment-hourly-workload > div > button:nth-child(-n + 6) {
    border-bottom: 1px solid #e6efec;
  }
}
@media (max-width: 700px) {
  .appointment-hourly-workload > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }
  .appointment-hourly-workload > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .appointment-hourly-workload > div > button:nth-child(3n) {
    border-right: 0;
  }
  .appointment-hourly-workload > div > button:nth-child(-n + 9) {
    border-bottom: 1px solid #e6efec;
  }
}
.appointment-table-card {
  overflow: hidden;
  border: 1px solid #dce6e3;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 22px #153b360b;
}
.appointment-table-wrap {
  overflow: auto;
}
.appointment-list-table {
  width: 100%;
  min-width: 1540px;
  table-layout: fixed;
  border-collapse: collapse;
}
.appointment-list-table th {
  padding: 8px 6px;
  color: #617a74;
  border-bottom: 1px solid #e6ecea;
  background: #f8faf9;
  text-align: left;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.appointment-list-table td {
  padding: 8px 6px;
  color: #294e48;
  border-bottom: 1px solid #edf1f0;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.25;
}
.appointment-list-table th:nth-child(1) {
  width: 132px;
}
.appointment-list-table th:nth-child(2) {
  width: 320px;
}
.appointment-list-table th:nth-child(3) {
  width: 180px;
}
.appointment-list-table th:nth-child(4) {
  width: 170px;
}
.appointment-list-table th:nth-child(5) {
  width: 185px;
}
.appointment-list-table th:nth-child(6) {
  width: 118px;
}
.appointment-list-table th:nth-child(7) {
  width: 128px;
}
.appointment-list-table th:nth-child(8) {
  width: 190px;
}
.appointment-list-table th:nth-child(9) {
  width: 160px;
}
.appointment-list-table td > strong,
.appointment-list-table td > span,
.appointment-list-table td > small {
  max-width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-list-table td > strong {
  color: #214840;
  font-size: 12.5px;
}
.appointment-list-table td > span {
  margin-top: 4px;
  color: #657d77;
  font-size: 11.5px;
}
.appointment-list-table td > small {
  margin-top: 4px;
  color: #7d928c;
  font-size: 10.5px;
}
.appointment-list-table tbody tr:hover {
  background: #fbfdfc;
}
.appointment-patient-cell {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
}
.appointment-patient-cell > button {
  min-width: 52px;
  padding: 6px;
  color: #167466;
  border: 1px solid #c9e2dd;
  border-radius: 6px;
  background: #edfaf6;
  font-size: 11.5px;
  font-weight: 850;
}
.appointment-patient-summary {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.appointment-patient-summary strong,
.appointment-patient-summary span,
.appointment-patient-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-patient-summary strong {
  color: #193f39;
  font-size: 13px;
}
.appointment-patient-summary span {
  margin-top: 3px;
  color: #617d76;
  font-size: 11px;
}
.appointment-patient-summary small {
  margin-top: 3px;
  color: #78908a;
  font-size: 10.5px;
}
.appointment-patient-summary .appointment-patient-profile {
  color: #486e66;
}
.appointment-patient-profile b {
  color: #176f62;
  font-weight: 800;
}
.appointment-list-status {
  width: fit-content;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 999px;
  font-weight: 800;
}
.appointment-package-cell .status-badge,
.appointment-billing-cell .status-badge {
  max-width: 100%;
  padding: 4px 6px;
  overflow: hidden;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-action-list {
  width: 100%;
  height: 34px;
  padding: 0 22px 0 7px;
  color: #1d665b;
  border: 1px solid #cddfdb;
  border-radius: 8px;
  outline: 0;
  background-color: #f2faf8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.appointment-action-list:hover,
.appointment-action-list:focus {
  border-color: #64a99d;
  box-shadow: 0 0 0 3px #30988617;
}
.doctor-action-content {
  padding: 8px 8px 18px;
}
.doctor-action-filters {
  min-height: 46px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
  padding: 6px;
  border: 1px solid #dbe6e3;
  border-radius: 10px;
  background: #eaf3f0;
}
.doctor-action-search {
  min-width: 270px;
  height: 34px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  color: #78908a;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
}
.doctor-action-search input {
  min-width: 0;
  flex: 1;
  color: #254b45;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10.5px;
}
.doctor-action-filters select {
  max-width: 190px;
  height: 34px;
  padding: 0 26px 0 8px;
  color: #31564f;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
  font-size: 10.5px;
}
.doctor-action-filters select:disabled {
  color: #58736d;
  background: #f3f6f5;
}
.doctor-action-refresh {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: #52776f;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
}
.doctor-action-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 6px;
  margin-bottom: 7px;
}
.doctor-action-kpis button {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(18, 27, 45, 0.05);
  border-radius: 12px;
  box-shadow: 0 5px 14px #121b2d0e;
  text-align: left;
}
.doctor-action-kpis button.active {
  border: 2px solid #121b2d;
  box-shadow: 0 0 0 2px #121b2d14;
}
.doctor-action-kpis span {
  font-size: 10.5px;
  font-weight: 850;
}
.doctor-action-kpis strong {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1;
}
.doctor-action-kpis small {
  margin-top: 4px;
  opacity: 0.72;
  font-size: 9px;
}
.doctor-complete-kpis {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}
.doctor-action-table-card {
  overflow: hidden;
  border: 1px solid #dce6e3;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 22px #153b360b;
}
.doctor-action-table-heading {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-bottom: 1px solid #e6ecea;
}
.doctor-action-table-heading > div {
  display: flex;
  flex-direction: column;
}
.doctor-action-table-heading strong {
  color: #214b45;
  font-size: 13px;
}
.doctor-action-table-heading span {
  margin-top: 3px;
  color: #879791;
  font-size: 9.5px;
}
.doctor-action-table-heading > button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #52776f;
  border: 1px solid #dce6e3;
  border-radius: 8px;
  background: #fff;
}
.doctor-action-table-wrap {
  width: 100%;
  overflow-x: hidden;
}
.doctor-action-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}
.doctor-action-table th {
  padding: 8px 6px;
  color: #617a74;
  border-bottom: 1px solid #e6ecea;
  background: #f8faf9;
  text-align: left;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}
.doctor-action-table td {
  padding: 8px 6px;
  color: #294e48;
  border-bottom: 1px solid #edf1f0;
  vertical-align: middle;
  font-size: 11px;
  line-height: 1.3;
}
.doctor-action-table th:nth-child(1) {
  width: 7%;
}
.doctor-action-table th:nth-child(2) {
  width: 20%;
}
.doctor-action-table th:nth-child(3) {
  width: 13%;
}
.doctor-action-table th:nth-child(4) {
  width: 11%;
}
.doctor-action-table th:nth-child(5) {
  width: 12%;
}
.doctor-action-table th:nth-child(6) {
  width: 16%;
}
.doctor-action-table th:nth-child(7) {
  width: 11%;
}
.doctor-action-table th:nth-child(8) {
  width: 10%;
}
.doctor-action-table .doctor-action-list-column {
  padding-left: 5px;
  padding-right: 5px;
}
.doctor-action-table .doctor-action-list-column .appointment-action-list {
  height: 31px;
  padding: 0 20px 0 6px;
  font-size: 9px;
}
.doctor-action-table tbody tr:hover {
  background: #fbfdfc;
}
.doctor-action-table td > strong,
.doctor-action-table td > span,
.doctor-action-table td > small {
  max-width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doctor-action-table td > strong {
  color: #214840;
  font-size: 11.5px;
}
.doctor-action-table td > span {
  margin-top: 4px;
  color: #657d77;
  font-size: 10.5px;
}
.doctor-action-table td > small {
  margin-top: 4px;
  color: #7d928c;
  font-size: 9.5px;
}
.doctor-action-patient {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}
.doctor-action-patient > button {
  min-width: 58px;
  padding: 6px;
  color: #167466;
  border: 1px solid #c9e2dd;
  border-radius: 6px;
  background: #edfaf6;
  font-size: 11px;
  font-weight: 850;
}
.doctor-action-patient > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.doctor-action-patient strong,
.doctor-action-patient span,
.doctor-action-patient small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doctor-action-patient strong {
  color: #193f39;
  font-size: 12.5px;
}
.doctor-action-patient span {
  margin-top: 3px;
  color: #617d76;
  font-size: 10.5px;
}
.doctor-action-patient small {
  margin-top: 3px;
  color: #78908a;
  font-size: 9.5px;
}
.doctor-action-status {
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
}
.doctor-action-note {
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: clip !important;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}
.appointment-list-table .appointment-notes-cell > strong,
.appointment-list-table .appointment-notes-cell > span,
.appointment-list-table .appointment-notes-cell > small {
  max-height: none !important;
  overflow: visible !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: clip !important;
}
.partially-paid-content {
  padding: 8px 8px 18px;
}
.partially-paid-filters {
  min-height: 46px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
  padding: 6px;
  border: 1px solid #dbe6e3;
  border-radius: 10px;
  background: #eaf3f0;
}
.partially-paid-search {
  min-width: 255px;
  height: 34px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  color: #78908a;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
}
.partially-paid-search input {
  min-width: 0;
  flex: 1;
  color: #254b45;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10.5px;
}
.partially-paid-filters select {
  max-width: 170px;
  height: 34px;
  padding: 0 26px 0 8px;
  color: #31564f;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
  font-size: 10.5px;
}
.partially-paid-date-range {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  color: #53776f;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
}
.partially-paid-date-range input {
  width: 108px;
  padding: 0;
  color: #31564f;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 9.5px;
}
.partially-paid-date-range span {
  color: #91a29e;
  font-size: 9px;
}
.partially-paid-clear {
  height: 32px;
  padding: 0 9px;
  color: #4e736c;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  font-size: 9.5px;
  font-weight: 800;
}
.partially-paid-refresh {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #52776f;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
}
.partially-paid-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 6px;
  margin-bottom: 7px;
}
.partially-paid-summary > div {
  min-height: 59px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #dce6e3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 14px #133d3709;
}
.partially-paid-summary span {
  color: #7c918b;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.partially-paid-summary strong {
  margin-top: 5px;
  color: #234a44;
  font-size: 14px;
}
.partially-paid-summary small {
  font-size: 8px;
  font-weight: 800;
}
.partially-paid-summary .paid {
  border-color: #cce8de;
  background: #effaf6;
}
.partially-paid-summary .paid strong {
  color: #14715f;
}
.partially-paid-summary .outstanding {
  border-color: #edd99b;
  background: #fff8dc;
}
.partially-paid-summary .outstanding strong {
  color: #8c6814;
}
.partially-paid-table-card {
  overflow: hidden;
  border: 1px solid #dce6e3;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 22px #153b360b;
}
.partially-paid-table-heading {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-bottom: 1px solid #e6ecea;
}
.partially-paid-table-heading > div {
  display: flex;
  flex-direction: column;
}
.partially-paid-table-heading strong {
  color: #214b45;
  font-size: 13px;
}
.partially-paid-table-heading span {
  margin-top: 3px;
  color: #879791;
  font-size: 9.5px;
}
.partially-paid-table-heading > button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #52776f;
  border: 1px solid #dce6e3;
  border-radius: 8px;
  background: #fff;
}
.partially-paid-table-wrap {
  overflow: auto;
}
.partially-paid-table {
  width: 100%;
  min-width: 2140px;
  table-layout: fixed;
  border-collapse: collapse;
}
.partially-paid-table th {
  padding: 8px 6px;
  color: #617a74;
  border-bottom: 1px solid #e6ecea;
  background: #f8faf9;
  text-align: left;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}
.partially-paid-table td {
  padding: 8px 6px;
  color: #294e48;
  border-bottom: 1px solid #edf1f0;
  vertical-align: middle;
  font-size: 11.5px;
  line-height: 1.25;
}
.partially-paid-table th:nth-child(1),
.partially-paid-table th:nth-child(2) {
  width: 90px;
}
.partially-paid-table th:nth-child(3) {
  width: 245px;
}
.partially-paid-table th:nth-child(4) {
  width: 165px;
}
.partially-paid-table th:nth-child(5) {
  width: 115px;
}
.partially-paid-table th:nth-child(6) {
  width: 56px;
}
.partially-paid-table th:nth-child(7) {
  width: 120px;
}
.partially-paid-table th:nth-child(8),
.partially-paid-table th:nth-child(9) {
  width: 190px;
}
.partially-paid-table th:nth-child(10) {
  width: 125px;
}
.partially-paid-table th:nth-child(11) {
  width: 145px;
}
.partially-paid-table th:nth-child(12) {
  width: 170px;
}
.partially-paid-table th:nth-child(13),
.partially-paid-table th:nth-child(14),
.partially-paid-table th:nth-child(15) {
  width: 115px;
}
.partially-paid-table th:nth-child(16) {
  width: 110px;
}
.partially-paid-table tbody tr:hover {
  background: #fbfdfc;
}
.partially-paid-table td > strong,
.partially-paid-table td > small {
  max-width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.partially-paid-table td > strong {
  color: #214840;
  font-size: 12px;
}
.partially-paid-table td > small {
  margin-top: 4px;
  color: #7d928c;
  font-size: 9.5px;
}
.partially-paid-id,
.partially-paid-patient > button {
  padding: 5px 6px;
  color: #167466;
  border: 1px solid #c9e2dd;
  border-radius: 6px;
  background: #edfaf6;
  font-size: 10.5px;
  font-weight: 850;
}
.partially-paid-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.partially-paid-name strong,
.partially-paid-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.partially-paid-name small {
  margin-top: 4px;
  color: #7d928c;
  font-size: 9.5px;
}
.partially-paid-patient {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}
.partially-paid-patient > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.partially-paid-patient strong,
.partially-paid-patient span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.partially-paid-patient strong {
  color: #193f39;
  font-size: 12px;
}
.partially-paid-patient span {
  margin-top: 3px;
  color: #718781;
  font-size: 9.5px;
}
.partially-paid-status {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.partially-paid-note {
  display: -webkit-box;
  overflow: hidden;
  color: #526f68;
  font-size: 10.5px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.partially-paid-money {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.partially-paid-money.paid strong {
  color: #14715f;
}
.partially-paid-money.outstanding {
  background: #fff8dc;
}
.partially-paid-money.outstanding strong {
  color: #8c6814;
}
.partially-paid-table tfoot td {
  padding: 10px 6px;
  color: #1e443e;
  border-top: 2px solid #dbe5e2;
  border-bottom: 0;
  background: #f6f9f8;
  font-size: 11px;
  font-weight: 850;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.partially-paid-table tfoot td:first-child {
  text-align: left;
}
.drawer-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #071f1c75;
}
.patient-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(860px, 94vw);
  height: 100%;
  overflow-y: auto;
  background: #f8faf9;
  box-shadow: -20px 0 45px #071f1c29;
  animation: drawer-in 0.16s ease-out;
  contain: layout paint style;
  will-change: transform;
}
@keyframes drawer-in {
  0% {
    transform: translate(35px);
    opacity: 0.6;
  }
}
.drawer-header {
  position: sticky;
  z-index: 3;
  top: 0;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  border-bottom: 1px solid #dfe8e5;
  background: #fff;
}
.drawer-kicker {
  color: #338779;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.drawer-header h2 {
  margin: 4px 0 0;
  font:
    700 25px/1.15 Manrope,
    sans-serif;
  letter-spacing: -0.04em;
}
.drawer-loading {
  min-height: 75vh;
  display: grid;
  place-items: center;
}
.patient-form {
  padding: 21px 26px 0;
}
.form-section {
  margin-bottom: 17px;
  padding: 20px;
  border: 1px solid #dfe8e5;
  border-radius: 16px;
  background: #fff;
}
.form-section.admin-section {
  border-color: #c7ddd8;
  background: #f1f8f6;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 17px;
}
.section-heading > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #197365;
  border-radius: 9px;
  background: #e3f4ef;
  font-size: 10px;
  font-weight: 800;
}
.section-heading h3 {
  margin: 0;
  color: #1d443e;
  font:
    700 14px/1.2 Manrope,
    sans-serif;
}
.section-heading p {
  margin: 3px 0 0;
  color: #8b9a96;
  font-size: 10px;
}
.form-grid {
  display: grid;
  gap: 13px;
  margin-top: 13px;
}
.four-columns {
  grid-template-columns: repeat(4, 1fr);
}
.three-columns {
  grid-template-columns: repeat(3, 1fr);
}
.two-columns {
  grid-template-columns: repeat(2, 1fr);
}
.form-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #45655f;
  font-size: 11px;
  font-weight: 700;
}
.form-field b,
.field-caption b {
  color: #c34a43;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  color: #1e443e;
  border: 1px solid #d5e1de;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  font-weight: 500;
}
.form-field input,
.form-field select {
  height: 42px;
  padding: 0 11px;
}
.form-field textarea {
  min-height: 104px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.5;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #309886;
  box-shadow: 0 0 0 3px #3098861a;
}
.inline-choice-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}
.field-caption {
  color: #45655f;
  font-size: 11px;
  font-weight: 700;
}
.segmented-control {
  display: inline-flex;
  overflow: hidden;
  padding: 3px;
  border: 1px solid #d5e1de;
  border-radius: 11px;
  background: #f5f8f7;
}
.segmented-control label {
  min-width: 78px;
  padding: 7px 12px;
  color: #728984;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.segmented-control input,
.rating-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented-control label.selected {
  color: #14695d;
  background: #fff;
  box-shadow: 0 2px 8px #1a4c4417;
}
.phone-warning {
  margin-top: 11px;
  padding: 10px 12px;
  color: #8b651b;
  border: 1px solid #f0d798;
  border-radius: 9px;
  background: #fff9e9;
  font-size: 11px;
  line-height: 1.5;
}
.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
}
.rating-option {
  min-width: 105px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: #607a74;
  border: 1px solid #d4e1de;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.rating-option.selected {
  color: #1a6157;
  border-color: #85bbae;
  box-shadow: 0 0 0 3px #30988614;
}
.rating-star {
  font-size: 17px;
}
.drawer-footer {
  position: sticky;
  z-index: 2;
  bottom: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 24px -26px 0;
  padding: 14px 26px;
  border-top: 1px solid #dfe8e5;
  background: #fff;
}
.drawer-footer > div {
  display: flex;
  gap: 9px;
}
.cancel-button,
.save-button,
.danger-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}
.cancel-button {
  color: #5f7973;
  border: 1px solid #d5e1de;
  background: #fff;
}
.save-button {
  min-width: 135px;
  color: #fff;
  border: 0;
  background: #176f62;
}
.danger-button {
  color: #aa3934;
  border: 1px solid #efc5c2;
  background: #fff4f3;
}
.cancel-button:disabled,
.save-button:disabled,
.danger-button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.workspace-toast {
  position: fixed;
  z-index: 150;
  right: 24px;
  bottom: 24px;
  max-width: 390px;
  padding: 13px 16px;
  color: #fff;
  border-radius: 11px;
  background: #173f39;
  box-shadow: 0 15px 35px #0827223d;
  font-size: 12px;
  animation: toast-in 0.2s ease-out;
}
@keyframes toast-in {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
}
@media (max-width: 1100px) {
  .four-columns,
  .three-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-filters {
    align-items: stretch;
  }
  .appointment-patient-search,
  .doctor-action-search,
  .partially-paid-search {
    min-width: 100%;
  }
}
@media (max-width: 720px) {
  .workspace-shell {
    grid-template-columns: 1fr;
    padding-bottom: 64px;
  }
  .workspace-sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 64px;
    flex-direction: row;
    padding: 8px 16px;
  }
  .mini-brand {
    display: none;
  }
  .workspace-sidebar nav {
    width: auto;
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0;
  }
  .workspace-sidebar nav button {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .sidebar-logout {
    width: 40px;
    min-height: 44px;
    margin: 0 0 0 auto;
  }
  .workspace-header {
    min-height: 80px;
    padding: 16px 18px;
  }
  .workspace-header h1 {
    font-size: 25px;
  }
  .user-copy {
    display: none;
  }
  .patients-content {
    padding: 18px 12px 32px;
  }
  .appointments-content,
  .doctor-action-content,
  .partially-paid-content {
    padding: 8px 4px 20px;
  }
  .appointment-list-filters select,
  .doctor-action-filters select {
    max-width: none;
    flex: 1;
  }
  .doctor-action-kpis {
    grid-template-columns: repeat(3, minmax(105px, 1fr));
  }
  .doctor-complete-kpis {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .doctor-action-kpis button {
    padding: 7px 8px;
  }
  .doctor-action-kpis small {
    display: none;
  }
  .appointment-date-range {
    width: 100%;
    justify-content: space-between;
  }
  .appointment-date-range input {
    width: 42%;
  }
  .partially-paid-filters select {
    max-width: none;
    flex: 1;
  }
  .partially-paid-date-range {
    width: 100%;
    justify-content: space-between;
  }
  .partially-paid-date-range input {
    width: 42%;
  }
  .partially-paid-summary {
    grid-template-columns: 1fr 1fr;
  }
  .patient-toolbar {
    align-items: stretch;
  }
  .patient-search {
    min-width: 0;
  }
  .patient-search kbd {
    display: none;
  }
  .new-patient-button {
    padding: 0 14px;
  }
  .new-patient-button {
    font-size: 0;
  }
  .new-patient-button .ui-icon {
    width: 20px;
    height: 20px;
  }
  .admin-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .filter-label,
  .date-filter {
    grid-column: 1 / -1;
  }
  .admin-filters select {
    max-width: none;
    width: 100%;
  }
  .date-filter {
    justify-content: space-between;
  }
  .date-filter input {
    width: 42%;
  }
  .patient-drawer {
    width: 100vw;
  }
  .drawer-header,
  .patient-form {
    padding-left: 16px;
    padding-right: 16px;
  }
  .form-section {
    padding: 15px;
  }
  .four-columns,
  .three-columns,
  .two-columns {
    grid-template-columns: 1fr;
  }
  .drawer-footer {
    margin-left: -16px;
    margin-right: -16px;
    padding: 12px 16px;
  }
  .danger-button {
    padding: 0 11px;
  }
}
.no-show-content {
  padding: 8px 8px 20px;
}
.no-show-callout {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  padding: 8px 11px;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(115deg, #702d26, #a34335);
  box-shadow: 0 7px 18px #702d2629;
}
.no-show-callout > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.no-show-callout > div > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.no-show-callout strong {
  font-size: 11.5px;
}
.no-show-callout span {
  margin-top: 3px;
  overflow: hidden;
  color: #f0d3cf;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}
.no-show-callout > b {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 8px;
  background: #ffffff1f;
  font-size: 9.5px;
}
.no-show-filters {
  background: #f4ebe9;
  border-color: #ead7d3;
}
.no-show-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr));
  gap: 6px;
  margin-bottom: 7px;
}
.no-show-kpis > div {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #e2e8e6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 14px #121b2d0a;
}
.no-show-kpis span {
  color: #778b85;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.no-show-kpis strong {
  margin-top: 3px;
  color: #243f3a;
  font-size: 18px;
  line-height: 1;
}
.no-show-kpis small {
  margin-top: 4px;
  color: #8b9b97;
  font-size: 8.5px;
}
.no-show-kpis .total {
  border-color: #e6c4bd;
  background: #fff5f3;
}
.no-show-kpis .total strong {
  color: #a13b30;
}
.no-show-kpis .unpaid {
  border-color: #efd7c7;
  background: #fff8f1;
}
.no-show-kpis .unpaid strong {
  color: #a84b29;
}
.no-show-kpis .package {
  border-color: #cce7dd;
  background: #f1faf7;
}
.no-show-kpis .package strong,
.no-show-kpis .admission strong {
  color: #14715f;
}
.no-show-table-card {
  border-color: #e1d8d6;
}
.no-show-table {
  width: 100%;
  min-width: 1580px;
  table-layout: fixed;
  border-collapse: collapse;
}
.no-show-table th {
  padding: 8px 6px;
  color: #6c7774;
  border-bottom: 1px solid #e6ecea;
  background: #faf8f7;
  text-align: left;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.no-show-table td {
  padding: 8px 6px;
  color: #294e48;
  border-bottom: 1px solid #edf1f0;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.25;
}
.no-show-table th:nth-child(1) {
  width: 320px;
}
.no-show-table th:nth-child(2) {
  width: 175px;
}
.no-show-table th:nth-child(3) {
  width: 190px;
}
.no-show-table th:nth-child(4) {
  width: 190px;
}
.no-show-table th:nth-child(5) {
  width: 200px;
}
.no-show-table th:nth-child(6) {
  width: 220px;
}
.no-show-table th:nth-child(7) {
  width: 150px;
}
.no-show-table th:nth-child(8) {
  width: 135px;
}
.no-show-table td > strong,
.no-show-table td > span,
.no-show-table td > small {
  max-width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.no-show-table td > strong {
  color: #214840;
  font-size: 12.5px;
}
.no-show-table td > span {
  margin-top: 4px;
  color: #657d77;
  font-size: 11px;
}
.no-show-table td > small {
  margin-top: 4px;
  color: #7d928c;
  font-size: 10px;
}
.no-show-table tbody tr:hover {
  background: snow;
}
.no-show-overdue {
  width: fit-content;
  padding: 4px 6px;
  color: #a2382f !important;
  border-radius: 999px;
  background: #ffe7e3;
  font-size: 9.5px !important;
  font-weight: 850;
}
.no-show-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.no-show-indicators span {
  padding: 4px 6px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 850;
  white-space: nowrap;
}
.no-show-indicators .success {
  color: #14715f;
  background: #e0f5ee;
}
.no-show-indicators .danger {
  color: #aa3d34;
  background: #ffe7e4;
}
.no-show-indicators .neutral {
  color: #687d77;
  background: #edf2f0;
}
@media (max-width: 900px) {
  .no-show-kpis {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .no-show-content {
    padding: 6px 4px 20px;
  }
  .no-show-callout {
    align-items: flex-start;
    flex-direction: column;
  }
  .no-show-callout span {
    white-space: normal;
  }
  .no-show-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .no-show-kpis strong {
    font-size: 16px;
  }
}
.packages-content {
  padding: 8px 8px 20px;
}
.package-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.package-search {
  min-width: 250px;
  height: 40px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: #7f928d;
  border: 1px solid #d8e3e0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px #18413b0a;
}
.package-search:focus-within {
  border-color: #339b8b;
  box-shadow: 0 0 0 4px #339b8b1a;
}
.package-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #1d423d;
  background: transparent;
  font-size: 11.5px;
}
.package-new-button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: #fff;
  border: 0;
  border-radius: 10px;
  background: #176f62;
  box-shadow: 0 8px 20px #155d532b;
  font-size: 11.5px;
  font-weight: 800;
}
.package-filters {
  min-height: 45px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
  padding: 5px 6px;
  border: 1px solid #dbe6e3;
  border-radius: 10px;
  background: #eaf3f0;
}
.package-filters select,
.package-date-filter {
  height: 34px;
  color: #31564f;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
  font-size: 10.5px;
}
.package-filters select {
  max-width: 175px;
  padding: 0 26px 0 8px;
}
.package-filters select:disabled {
  color: #607a74;
  background: #f3f6f5;
}
.package-date-filter {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
}
.package-date-filter input {
  width: 108px;
  padding: 0;
  color: #31564f;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 9.5px;
}
.package-date-filter span {
  color: #91a29e;
  font-size: 9px;
}
.package-filters > button {
  height: 32px;
  padding: 0 9px;
  color: #4e736c;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  font-size: 9.5px;
  font-weight: 800;
}
.package-filters > button.active {
  color: #12695d;
  border-color: #bfded7;
  background: #fff;
}
.package-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 6px;
  margin-bottom: 7px;
}
.package-kpis > div {
  min-height: 59px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #dce6e3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 14px #133d3709;
}
.package-kpis span {
  color: #7c918b;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.package-kpis strong {
  margin-top: 5px;
  color: #234a44;
  font-size: 14px;
}
.package-kpis .paid {
  border-color: #cce8de;
  background: #effaf6;
}
.package-kpis .paid strong {
  color: #14715f;
}
.package-kpis .due {
  border-color: #f0d3c6;
  background: #fff6f1;
}
.package-kpis .due strong {
  color: #a74628;
}
.package-table-card {
  overflow: hidden;
  border: 1px solid #dce6e3;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 22px #153b360b;
}
.package-table-heading {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-bottom: 1px solid #e6ecea;
}
.package-table-heading > div {
  display: flex;
  flex-direction: column;
}
.package-table-heading strong {
  color: #214b45;
  font-size: 13px;
}
.package-table-heading span {
  margin-top: 3px;
  color: #879791;
  font-size: 9.5px;
}
.package-table-heading > button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #52776f;
  border: 1px solid #dce6e3;
  border-radius: 8px;
  background: #fff;
}
.package-table-wrap {
  overflow: auto;
}
.package-list-table {
  width: 100%;
  min-width: 1420px;
  table-layout: fixed;
  border-collapse: collapse;
}
.package-list-table th {
  padding: 8px 6px;
  color: #617a74;
  border-bottom: 1px solid #e6ecea;
  background: #f8faf9;
  text-align: left;
  font-size: 10.5px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}
.package-list-table td {
  padding: 8px 6px;
  color: #294e48;
  border-bottom: 1px solid #edf1f0;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.25;
}
.package-list-table th:nth-child(1) {
  width: 285px;
}
.package-list-table th:nth-child(2) {
  width: 230px;
}
.package-list-table th:nth-child(3) {
  width: 180px;
}
.package-list-table th:nth-child(4) {
  width: 175px;
}
.package-list-table th:nth-child(5) {
  width: 160px;
}
.package-list-table th:nth-child(6) {
  width: 165px;
}
.package-list-table th:nth-child(7) {
  width: 145px;
}
.package-list-table th:nth-child(8) {
  width: 150px;
}
.package-list-table td > strong,
.package-list-table td > span,
.package-list-table td > small {
  max-width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.package-list-table td > strong {
  color: #214840;
  font-size: 12.5px;
}
.package-list-table td > span {
  margin-top: 4px;
  color: #657d77;
  font-size: 11px;
}
.package-list-table td > small {
  margin-top: 4px;
  color: #7d928c;
  font-size: 10px;
}
.package-list-table tbody tr:hover {
  background: #fbfdfc;
}
.package-patient-cell {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}
.package-patient-cell > button {
  min-width: 55px;
  padding: 6px;
  color: #167466;
  border: 1px solid #c9e2dd;
  border-radius: 6px;
  background: #edfaf6;
  font-size: 11.5px;
  font-weight: 850;
}
.package-patient-cell > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.package-patient-cell strong,
.package-patient-cell span:not(.patient-star),
.package-patient-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.package-patient-cell strong {
  color: #193f39;
  font-size: 12.5px;
}
.package-patient-cell span:not(.patient-star) {
  margin-top: 3px;
  color: #617d76;
  font-size: 10.5px;
}
.package-patient-cell small {
  margin-top: 3px;
  color: #78908a;
  font-size: 9.5px;
}
.package-row-progress {
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2eae8;
}
.package-row-progress i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #238d7b;
}
.text-danger {
  color: #b2482f !important;
}
.package-status {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 7px;
  overflow: hidden;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.package-status-active,
.package-status-completed {
  color: #14715f;
  background: #e0f5ee;
}
.package-status-partially_paid,
.package-status-not_paid {
  color: #86631a;
  background: #fff1c8;
}
.package-status-expired,
.package-status-completed_due {
  color: #ad3c32;
  background: #ffe7e4;
}
.package-status-withdrawn {
  color: #293d39;
  background: #e4e9e7;
}
.package-status-unknown {
  color: #687d77;
  background: #edf2f0;
}
.package-action-list {
  width: 100%;
  height: 34px;
  padding: 0 22px 0 7px;
  color: #1d665b;
  border: 1px solid #cddfdb;
  border-radius: 8px;
  outline: 0;
  background: #f2faf8;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}
.package-action-list:focus {
  border-color: #64a99d;
  box-shadow: 0 0 0 3px #30988617;
}
.package-loading {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #80938e;
  font-size: 11.5px;
}
.package-message {
  margin: 8px 0;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 11px;
}
.package-message.error {
  color: #9d342f;
  border: 1px solid #efc9c6;
  background: #fff2f1;
}
.package-drawer-layer {
  position: fixed;
  z-index: 125;
  inset: 0;
}
.package-drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #071f1c7a;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.package-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(720px, 96vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #f5f8f7;
  box-shadow: -28px 0 70px #071f1c33;
  animation: drawer-in 0.22s ease-out;
}
.package-drawer.wide {
  width: min(1180px, 98vw);
}
.package-drawer-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(115deg, #103f39, #176c60);
}
.package-drawer-header span {
  color: #a9d8cf;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.package-drawer-header h2 {
  margin: 4px 0 0;
  font:
    700 22px/1.1 Manrope,
    sans-serif;
  letter-spacing: -0.04em;
}
.package-drawer-header button {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #ffffff14;
}
.package-drawer-body {
  min-height: 0;
  overflow: auto;
  padding: 12px;
}
.package-drawer-footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid #dce6e3;
  background: #fffffff5;
}
.package-drawer-footer > div {
  display: flex;
  gap: 7px;
}
.package-primary-button,
.package-secondary-button,
.package-danger-button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 850;
}
.package-primary-button {
  min-width: 120px;
  color: #fff;
  border: 0;
  background: #176f62;
}
.package-secondary-button {
  color: #55736d;
  border: 1px solid #d5e1de;
  background: #fff;
}
.package-danger-button {
  color: #a93d36;
  border: 1px solid #edc6c2;
  background: #fff3f2;
}
.package-primary-button:disabled,
.package-secondary-button:disabled,
.package-danger-button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.package-form {
  display: grid;
  gap: 10px;
}
.package-form > section,
.package-payment-history,
.package-detail-grid > section {
  padding: 14px;
  border: 1px solid #dce6e3;
  border-radius: 11px;
  background: #fff;
}
.package-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.package-section-title > b {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #197365;
  border-radius: 8px;
  background: #e3f4ef;
  font-size: 9px;
}
.package-section-title h3 {
  margin: 0;
  color: #1d443e;
  font:
    700 13px/1.2 Manrope,
    sans-serif;
}
.package-section-title p {
  margin: 3px 0 0;
  color: #8b9a96;
  font-size: 9.5px;
}
.package-form-grid {
  display: grid;
  gap: 9px;
}
.package-form-grid.two {
  grid-template-columns: 1fr 1fr;
}
.package-form label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #47675f;
  font-size: 10px;
  font-weight: 800;
}
.package-form input,
.package-form select,
.package-form textarea {
  width: 100%;
  color: #1e443e;
  border: 1px solid #d5e1de;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
}
.package-form input,
.package-form select {
  height: 40px;
  padding: 0 10px;
}
.package-form textarea {
  min-height: 86px;
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.5;
}
.package-form input:focus,
.package-form select:focus,
.package-form textarea:focus {
  border-color: #309886;
  box-shadow: 0 0 0 3px #3098861a;
}
.package-form input:disabled,
.package-form select:disabled {
  color: #637a74;
  background: #f1f5f4;
}
.package-full-field {
  margin-top: 9px;
}
.package-selection-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: 8px;
  padding: 9px;
  color: #71857f;
  border-radius: 8px;
  background: #f2f7f5;
  font-size: 9.5px;
}
.package-selection-note strong {
  color: #176c60;
  font-size: 11px;
}
.package-payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0;
}
.package-payment-methods label {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 7px;
  color: #637b75;
  border: 1px solid #d5e1de;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.package-payment-methods label.selected {
  color: #156a5e;
  border-color: #79b8ac;
  background: #ecf8f4;
  box-shadow: 0 0 0 2px #30988612;
}
.package-payment-methods input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.package-detail-heading {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #dce6e3;
  border-radius: 11px;
  background: #fff;
}
.package-detail-heading > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.package-detail-heading > div > div {
  min-width: 0;
}
.package-detail-heading h3 {
  margin: 0;
  overflow: hidden;
  color: #193f39;
  text-overflow: ellipsis;
  white-space: nowrap;
  font:
    700 16px/1.2 Manrope,
    sans-serif;
}
.package-detail-heading p,
.package-detail-heading small {
  display: block;
  margin: 4px 0 0;
  color: #768b85;
  font-size: 10px;
}
.package-summary-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(105px, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.package-summary-cards > div {
  min-height: 59px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 9px;
  border: 1px solid #dce6e3;
  border-radius: 9px;
  background: #fff;
}
.package-summary-cards span {
  color: #81938e;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.package-summary-cards strong {
  margin-top: 5px;
  color: #244a44;
  font-size: 11.5px;
}
.package-summary-cards .paid {
  border-color: #cce8de;
  background: #effaf6;
}
.package-summary-cards .paid strong {
  color: #14715f;
}
.package-summary-cards .due {
  border-color: #edc9c2;
  background: #fff3f1;
}
.package-summary-cards .due strong {
  color: #ae3d38;
}
.package-progress {
  margin-bottom: 8px;
  padding: 9px 11px;
  border: 1px solid #dce6e3;
  border-radius: 9px;
  background: #fff;
}
.package-progress > div {
  display: flex;
  justify-content: space-between;
  color: #668079;
  font-size: 9.5px;
}
.package-progress > div strong {
  color: #1a685c;
}
.package-progress > i {
  height: 6px;
  display: block;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e0e9e6;
}
.package-progress > i b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #248d7b;
}
.package-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  padding: 7px;
  border: 1px solid #dce6e3;
  border-radius: 9px;
  background: #fff;
}
.package-detail-actions button,
.package-panel-title button {
  min-height: 33px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  color: #276d62;
  border: 1px solid #cfe0dc;
  border-radius: 7px;
  background: #fff;
  font-size: 9.5px;
  font-weight: 800;
}
.package-detail-actions button.primary {
  color: #fff;
  border-color: #176f62;
  background: #176f62;
}
.package-detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 8px;
  margin-bottom: 8px;
}
.package-detail-grid h3,
.package-payment-history h3 {
  margin: 0 0 8px;
  color: #244b45;
  font:
    700 12px/1.2 Manrope,
    sans-serif;
}
.package-detail-grid dl {
  margin: 0;
  display: grid;
  gap: 1px;
}
.package-detail-grid dl > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  padding: 6px;
  border-bottom: 1px solid #edf2f0;
}
.package-detail-grid dt {
  color: #80928d;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.package-detail-grid dd {
  margin: 0;
  color: #2e544d;
  font-size: 10.5px;
  line-height: 1.45;
}
.package-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.package-panel-title h3 {
  margin: 0;
}
.package-panel-title p {
  margin: 3px 0 0;
  color: #849691;
  font-size: 9px;
}
.package-inner-table {
  overflow: auto;
  border: 1px solid #e0e8e6;
  border-radius: 8px;
}
.package-inner-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.package-inner-table.wide table {
  min-width: 1350px;
}
.package-inner-table th {
  padding: 7px 6px;
  color: #6e837d;
  border-bottom: 1px solid #dfe8e5;
  background: #f5f8f7;
  text-align: left;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.package-inner-table td {
  padding: 7px 6px;
  color: #385a54;
  border-bottom: 1px solid #edf2f0;
  vertical-align: top;
  font-size: 10px;
}
.package-inner-table td strong,
.package-inner-table td small {
  display: block;
}
.package-inner-table td small {
  margin-top: 3px;
  color: #859692;
}
.package-table-delete {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #a83c36;
  border: 1px solid #ecc9c5;
  border-radius: 7px;
  background: #fff6f5;
}
.package-receipt {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px;
  color: #252f2d;
  border: 1px solid #bccbc7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px #133d3714;
  font-family:
    Segoe UI,
    Tahoma,
    sans-serif;
}
.package-receipt > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #1c6f63;
}
.package-receipt h1 {
  margin: 0;
  color: #174f47;
  font-size: 25px;
}
.package-receipt header p {
  margin: 7px 0 0;
  color: #5f6e6a;
  font-size: 12px;
  line-height: 1.8;
}
.receipt-brand {
  width: 105px;
  height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 18px;
  background: #176f62;
  font-size: 24px;
  font-weight: 900;
}
.receipt-brand span {
  margin-top: 4px;
  color: #bce8df;
  font-size: 8px;
  letter-spacing: 0.04em;
}
.package-receipt > h2 {
  margin: 22px 0;
  color: #253c38;
  text-align: center;
  font-size: 22px;
}
.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.receipt-grid > div {
  min-height: 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9px 11px;
  border: 1px solid #dee7e4;
  border-radius: 8px;
  background: #f8faf9;
}
.receipt-grid span,
.receipt-summary span {
  color: #778680;
  font-size: 10px;
}
.receipt-grid strong,
.receipt-summary strong {
  margin-top: 5px;
  color: #244b45;
  font-size: 13px;
}
.receipt-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}
.receipt-summary > div {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9px;
  border: 1px solid #cde2dc;
  border-radius: 8px;
  background: #edf8f5;
}
.receipt-visits {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin-top: 12px;
  padding: 13px;
  border-radius: 8px;
  background: #173f39;
  color: #d9ede8;
  font-size: 11px;
}
.receipt-visits b {
  margin-right: 5px;
  color: #fff;
  font-size: 15px;
}
.package-receipt section {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #dbe5e2;
}
.package-receipt section h3 {
  margin: 0 0 8px;
  font-size: 13px;
}
.package-receipt ol {
  margin: 0;
  padding-right: 20px;
  color: #50615d;
  font-size: 11px;
  line-height: 1.85;
}
.package-receipt > footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 10px;
  color: #7c8985;
  border-top: 1px solid #dbe5e2;
  font-size: 9px;
}
@media (max-width: 900px) {
  .package-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .package-summary-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .package-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .packages-content {
    padding: 6px 4px 20px;
  }
  .package-toolbar {
    align-items: stretch;
  }
  .package-new-button {
    font-size: 0;
    padding: 0 11px;
  }
  .package-filters select {
    max-width: none;
    flex: 1;
  }
  .package-date-filter {
    width: 100%;
    justify-content: space-between;
  }
  .package-date-filter input {
    width: 42%;
  }
  .package-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .package-kpis strong {
    font-size: 12px;
  }
  .package-drawer,
  .package-drawer.wide {
    width: 100vw;
  }
  .package-drawer-body {
    padding: 6px;
  }
  .package-form-grid.two,
  .package-payment-methods {
    grid-template-columns: 1fr;
  }
  .package-summary-cards {
    grid-template-columns: 1fr 1fr;
  }
  .package-detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .receipt-grid,
  .receipt-summary {
    grid-template-columns: 1fr;
  }
  .package-receipt {
    padding: 15px;
  }
  .package-receipt > header {
    align-items: flex-start;
  }
  .receipt-brand {
    width: 72px;
    height: 62px;
    font-size: 17px;
  }
  .receipt-visits {
    flex-direction: column;
  }
}
@media print {
  body.printing-package-receipt * {
    visibility: hidden;
  }
  .package-drawer-layer:has(.package-receipt),
  .package-drawer-layer:has(.package-receipt) * {
    visibility: visible;
  }
  .package-drawer-layer:has(.package-receipt) {
    position: absolute;
    inset: 0;
    display: block;
  }
  .package-drawer-layer:has(.package-receipt) .package-drawer-backdrop,
  .package-drawer-layer:has(.package-receipt) .package-drawer-header,
  .package-drawer-layer:has(.package-receipt) .package-drawer-footer {
    display: none !important;
  }
  .package-drawer-layer:has(.package-receipt) .package-drawer {
    position: static;
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
    box-shadow: none;
    background: #fff;
  }
  .package-drawer-layer:has(.package-receipt) .package-drawer-body {
    overflow: visible;
    padding: 0;
  }
  .package-receipt {
    max-width: none;
    border: 0;
    box-shadow: none;
  }
}
.sales-workspace {
  padding: 8px 8px 22px;
}
.sales-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 7px;
  padding: 4px;
  border: 1px solid #dfe8e5;
  border-radius: 12px;
  background: #edf3f1;
}
.sales-tabs button {
  min-height: 52px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 8px 13px;
  color: #60756f;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.sales-tabs button b {
  font-size: 12.5px;
}
.sales-tabs button span {
  margin-top: 3px;
  font-size: 9px;
}
.sales-tabs button.active {
  color: #133e36;
  background: #fff;
  box-shadow: 0 4px 12px #19443a14;
}
.sales-tabs button.active b {
  color: #11725f;
}
.sales-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.sales-search {
  min-height: 39px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #dfe8e5;
  border-radius: 10px;
  background: #fff;
}
.sales-search .ui-icon {
  color: #7b918b;
}
.sales-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #244a43;
  font: inherit;
  font-size: 11.5px;
}
.sales-new {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  color: #fff;
  border: 0;
  border-radius: 10px;
  background: #14715f;
  box-shadow: 0 5px 13px #14715f2e;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.sales-filters {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  padding: 5px 7px;
  overflow-x: auto;
  border: 1px solid #e1e8e6;
  border-radius: 10px;
  background: #f6f9f8;
}
.sales-filters select,
.sales-filters input,
.sales-filters button {
  min-height: 30px;
  padding: 0 8px;
  color: #49665f;
  border: 1px solid #dce6e3;
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: 9px;
  white-space: nowrap;
}
.sales-filters select {
  min-width: 128px;
}
.sales-filters button {
  cursor: pointer;
  font-weight: 800;
}
.sales-date-filter {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sales-date-filter span {
  color: #889994;
  font-size: 8px;
}
.sales-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(128px, 1fr));
  gap: 6px;
  margin-bottom: 7px;
}
.sales-kpis > div {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #e1e8e6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px #17342d09;
}
.sales-kpis span {
  color: #788b86;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.sales-kpis strong {
  margin-top: 4px;
  color: #234d44;
  font-size: 15px;
  line-height: 1;
}
.sales-kpis small {
  margin-top: 4px;
  color: #93a19d;
  font-size: 8px;
}
.sales-kpis .collected {
  border-color: #cae6dd;
  background: #f2faf7;
}
.sales-kpis .collected strong {
  color: #14715f;
}
.sales-kpis .due {
  border-color: #efd7c7;
  background: #fff8f2;
}
.sales-kpis .due strong {
  color: #a64b2d;
}
.sales-table-card {
  overflow: hidden;
  border: 1px solid #dfe6e4;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 6px 17px #122b250a;
}
.sales-table-heading {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid #e5ebe9;
}
.sales-table-heading > div {
  display: flex;
  flex-direction: column;
}
.sales-table-heading strong {
  color: #274c44;
  font-size: 11px;
}
.sales-table-heading span {
  margin-top: 3px;
  color: #879893;
  font-size: 8.5px;
}
.sales-table-heading > button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #55716a;
  border: 1px solid #dbe5e2;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.sales-table-wrap {
  overflow-x: auto;
}
.sales-list-table {
  width: 100%;
  min-width: 1510px;
  table-layout: fixed;
  border-collapse: collapse;
}
.sales-list-table th {
  padding: 7px 6px;
  color: #687b76;
  border-bottom: 1px solid #e4ebe9;
  background: #f8faf9;
  text-align: left;
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
.sales-list-table td {
  padding: 8px 6px;
  color: #34554e;
  border-bottom: 1px solid #edf1f0;
  vertical-align: middle;
  font-size: 10.5px;
  line-height: 1.2;
}
.sales-list-table tbody tr:hover {
  background: #fbfdfc;
}
.sales-list-table th:nth-child(1) {
  width: 210px;
}
.sales-list-table th:nth-child(2) {
  width: 205px;
}
.sales-list-table th:nth-child(3) {
  width: 150px;
}
.sales-list-table th:nth-child(4) {
  width: 200px;
}
.sales-list-table th:nth-child(5),
.sales-list-table th:nth-child(6) {
  width: 170px;
}
.sales-list-table th:nth-child(7) {
  width: 120px;
}
.sales-list-table th:nth-child(8) {
  width: 145px;
}
.sales-list-table th:nth-child(9) {
  width: 140px;
}
.sales-list-table td > strong,
.sales-list-table td > span,
.sales-list-table td > small {
  max-width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sales-list-table td > strong {
  color: #234a42;
  font-size: 11px;
}
.sales-list-table td > span {
  margin-top: 3px;
  color: #687e78;
  font-size: 9.5px;
}
.sales-list-table td > small {
  margin-top: 3px;
  color: #899a95;
  font-size: 8.5px;
}
.sales-id-link {
  margin-bottom: 4px;
  padding: 3px 6px;
  color: #0f705c;
  border: 0;
  border-radius: 6px;
  background: #e8f6f1;
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
}
.sales-action-list {
  width: 100%;
  min-height: 29px;
  padding: 0 6px;
  color: #31594f;
  border: 1px solid #dce5e2;
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: 9px;
}
.sales-status {
  width: fit-content;
  display: inline-flex;
  padding: 4px 7px;
  color: #61736e;
  border-radius: 999px;
  background: #edf1f0;
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}
.sales-status.pending,
.sales-status.payment-partially_paid {
  color: #8d5818;
  background: #fff0d8;
}
.sales-status.billed {
  color: #1f5da1;
  background: #e7f1ff;
}
.sales-status.completed,
.sales-status.payment-paid {
  color: #126b57;
  background: #dff4ed;
}
.sales-status.payment-unpaid {
  color: #a43d31;
  background: #ffe7e3;
}
.sales-status.payment-overpaid {
  color: #6b35a3;
  background: #eee4fb;
}
.sales-message {
  margin: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 10px;
}
.sales-message.error {
  color: #9b362e;
  border: 1px solid #ecc7c3;
  background: #fff1ef;
}
.sales-loading {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #70857f;
  font-size: 10px;
}
.sales-drawer-layer {
  position: fixed;
  z-index: 130;
  inset: 0;
  display: flex;
  justify-content: flex-end;
}
.sales-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: #0c1d196b;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.sales-drawer {
  position: relative;
  width: min(620px, 96vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #dfe7e5;
  background: #f7faf9;
  box-shadow: -20px 0 55px #0d231d2e;
}
.sales-drawer.wide {
  width: min(1040px, 96vw);
}
.sales-drawer > header {
  min-height: 64px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  color: #fff;
  background: linear-gradient(115deg, #183d35, #116552);
}
.sales-drawer > header span {
  color: #b9ddd4;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sales-drawer > header h2 {
  margin: 4px 0 0;
  font-size: 16px;
}
.sales-drawer > header button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #ffffff14;
  cursor: pointer;
}
.sales-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 11px;
}
.sales-drawer > footer {
  min-height: 62px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  border-top: 1px solid #dfe7e5;
  background: #fff;
}
.sales-drawer > footer > div {
  display: flex;
  gap: 7px;
}
.sales-primary,
.sales-secondary,
.sales-danger {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
  border-radius: 8px;
  font: inherit;
  font-size: 9.5px;
  font-weight: 850;
  cursor: pointer;
}
.sales-primary {
  color: #fff;
  border: 1px solid #14715f;
  background: #14715f;
}
.sales-secondary {
  color: #4a655e;
  border: 1px solid #d8e3e0;
  background: #fff;
}
.sales-danger {
  color: #a23c32;
  border: 1px solid #efc8c4;
  background: #fff1ef;
}
.sales-form {
  display: grid;
  gap: 9px;
}
.sales-form > section {
  padding: 11px;
  border: 1px solid #dfe8e5;
  border-radius: 10px;
  background: #fff;
}
.sales-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.sales-section-title > b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #14715f;
  border-radius: 8px;
  background: #e4f3ee;
  font-size: 9px;
}
.sales-section-title h3 {
  margin: 0;
  color: #244a42;
  font-size: 11.5px;
}
.sales-section-title p {
  margin: 3px 0 0;
  color: #869690;
  font-size: 8.5px;
}
.sales-form-grid {
  display: grid;
  gap: 7px;
}
.sales-form-grid.two {
  grid-template-columns: 1fr 1fr;
}
.sales-form-grid.three {
  grid-template-columns: 1fr 1fr 1fr;
}
.sales-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sales-form label > span {
  color: #657c76;
  font-size: 8.5px;
  font-weight: 850;
}
.sales-form input,
.sales-form select,
.sales-form textarea {
  width: 100%;
  min-height: 35px;
  padding: 0 8px;
  color: #294d45;
  border: 1px solid #dae5e2;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  font: inherit;
  font-size: 10px;
}
.sales-form textarea {
  padding: 8px;
  resize: vertical;
}
.sales-full-field {
  margin-top: 8px;
}
.sales-line-editor {
  overflow-x: auto;
}
.sales-line-head,
.sales-line {
  min-width: 850px;
  display: grid;
  grid-template-columns: minmax(190px, 2fr) 70px 95px 90px 70px 115px 34px;
  gap: 5px;
  align-items: center;
}
.sales-line-head {
  margin-bottom: 5px;
  color: #758983;
  font-size: 8px;
  font-weight: 850;
}
.sales-line {
  margin-bottom: 5px;
}
.sales-line input,
.sales-line select {
  min-width: 0;
}
.sales-line > strong {
  color: #1c5d4e;
  font-size: 9.5px;
  white-space: nowrap;
}
.sales-line > button,
.sales-table-delete {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #a34339;
  border: 1px solid #edd2cf;
  border-radius: 7px;
  background: #fff4f2;
  cursor: pointer;
}
.sales-line-note {
  grid-column: 1/7;
  min-height: 30px !important;
}
.sales-add-line {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  padding: 0 9px;
  color: #126c59;
  border: 1px dashed #9ecfc2;
  border-radius: 7px;
  background: #eff9f6;
  font-size: 8.5px;
  font-weight: 850;
  cursor: pointer;
}
.sales-live-totals {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.sales-live-totals span {
  padding: 6px 8px;
  color: #6c7e79;
  border-radius: 7px;
  background: #f1f6f4;
  font-size: 8.5px;
}
.sales-live-totals b {
  margin-left: 4px;
  color: #215548;
}
.sales-payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 9px 0;
}
.sales-payment-methods label {
  min-height: 38px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #526e67;
  border: 1px solid #dce6e3;
  border-radius: 8px;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.sales-payment-methods label.selected {
  color: #126c59;
  border-color: #7dbdac;
  background: #ebf7f3;
}
.sales-payment-methods input {
  width: auto;
  min-height: 0;
}
.sales-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  padding: 11px;
  border: 1px solid #dce7e4;
  border-radius: 10px;
  background: #fff;
}
.sales-detail-heading > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sales-detail-heading h3 {
  margin: 0;
  color: #234b42;
  font-size: 13px;
}
.sales-detail-heading p {
  margin: 4px 0 0;
  color: #798d87;
  font-size: 9px;
}
.sales-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 9px;
}
.sales-summary-cards > div {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #dde7e4;
  border-radius: 9px;
  background: #fff;
}
.sales-summary-cards span {
  color: #788c86;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}
.sales-summary-cards strong {
  margin-top: 5px;
  color: #264e45;
  font-size: 14px;
}
.sales-summary-cards .collected {
  border-color: #cbe6de;
  background: #f0faf6;
}
.sales-summary-cards .collected strong {
  color: #14715f;
}
.sales-summary-cards .due {
  border-color: #efd2ca;
  background: #fff5f2;
}
.sales-summary-cards .due strong {
  color: #a54b35;
}
.sales-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}
.sales-detail-actions button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  color: #3e625a;
  border: 1px solid #d8e4e1;
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: 8.5px;
  font-weight: 850;
  cursor: pointer;
}
.sales-detail-actions button.primary {
  color: #fff;
  border-color: #14715f;
  background: #14715f;
}
.sales-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 9px;
}
.sales-meta-grid section,
.sales-detail-table {
  padding: 10px;
  border: 1px solid #dfe7e5;
  border-radius: 9px;
  background: #fff;
}
.sales-meta-grid h3,
.sales-detail-table h3 {
  margin: 0 0 8px;
  color: #285047;
  font-size: 10.5px;
}
.sales-meta-grid dl {
  margin: 0;
}
.sales-meta-grid dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #eef2f1;
  font-size: 9px;
}
.sales-meta-grid dt {
  color: #82938e;
}
.sales-meta-grid dd {
  margin: 0;
  color: #365850;
  text-align: right;
}
.sales-detail-table {
  margin-bottom: 9px;
}
.sales-detail-table > div:first-child p {
  margin: -4px 0 8px;
  color: #859791;
  font-size: 8px;
}
.sales-inner-table {
  overflow-x: auto;
}
.sales-inner-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.sales-inner-table th,
.sales-inner-table td {
  padding: 6px;
  border-bottom: 1px solid #e8eeec;
  text-align: left;
  font-size: 8.5px;
}
.sales-inner-table th {
  color: #71857f;
  background: #f7faf9;
  font-weight: 900;
}
.sales-inner-table td {
  color: #3b5d55;
}
.sales-inner-table td strong,
.sales-inner-table td small {
  display: block;
}
.sales-inner-table td small {
  margin-top: 2px;
  color: #8c9b97;
}
.sales-source-card {
  display: grid;
  grid-template-columns: 1fr auto;
  margin-top: 8px;
  padding: 9px;
  border-radius: 8px;
  background: #eef8f5;
}
.sales-source-card strong,
.sales-source-card span {
  grid-column: 1;
}
.sales-source-card strong {
  color: #215248;
  font-size: 10px;
}
.sales-source-card span {
  margin-top: 3px;
  color: #718680;
  font-size: 8.5px;
}
.sales-source-card b {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  color: #14715f;
  font-size: 11px;
}
.sales-return-lines {
  overflow-x: auto;
}
.sales-return-lines > div {
  min-width: 680px;
  display: grid;
  grid-template-columns: 2fr 80px 110px 120px 130px;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border-bottom: 1px solid #e9eeed;
  color: #49675f;
  font-size: 9px;
}
.sales-return-lines > div:first-child {
  color: #72857f;
  background: #f7faf9;
  font-size: 8px;
  font-weight: 900;
}
.sales-return-lines input {
  min-height: 30px;
}
.sales-return-lines > p {
  color: #81928d;
  font-size: 9px;
}
.sales-receipt {
  max-width: 900px;
  margin: auto;
  padding: 24px;
  color: #263f39;
  border: 1px solid #ced9d6;
  border-radius: 10px;
  background: #fff;
  font-family: Arial, sans-serif;
}
.sales-receipt > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid #294f46;
}
.sales-receipt h1 {
  margin: 0;
  color: #1b493e;
  font-size: 22px;
}
.sales-receipt header p {
  margin: 6px 0 0;
  color: #58716b;
  font-size: 11px;
  line-height: 1.6;
}
.sales-receipt .receipt-brand {
  min-width: 95px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 12px;
  color: #fff;
  border-radius: 12px;
  background: #183f36;
  font-size: 24px;
  font-weight: 900;
  direction: ltr;
}
.sales-receipt .receipt-brand span {
  margin-top: 3px;
  font-size: 7px;
}
.sales-receipt > h2 {
  margin: 18px 0;
  color: #14715f;
  text-align: center;
  font-size: 20px;
}
.sales-receipt-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
  margin-bottom: 15px;
}
.sales-receipt-meta > div {
  padding: 8px;
  border-radius: 7px;
  background: #f2f6f5;
}
.sales-receipt-meta span,
.sales-receipt-meta b {
  display: block;
}
.sales-receipt-meta span {
  color: #748782;
  font-size: 9px;
}
.sales-receipt-meta b {
  margin-top: 4px;
  font-size: 10.5px;
}
.sales-receipt table {
  width: 100%;
  border-collapse: collapse;
}
.sales-receipt th,
.sales-receipt td {
  padding: 7px 5px;
  border: 1px solid #dce5e2;
  text-align: right;
  font-size: 9px;
}
.sales-receipt th {
  color: #fff;
  background: #285249;
}
.sales-receipt-summary {
  width: min(410px, 100%);
  margin: 15px 0 0 auto;
}
.sales-receipt-summary div {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  border-bottom: 1px solid #e4ebe9;
  font-size: 10px;
}
.sales-receipt-summary .due {
  color: #a13f33;
  background: #fff0ed;
}
.sales-receipt section {
  margin-top: 14px;
  padding: 9px;
  border-radius: 7px;
  background: #fff8e8;
}
.sales-receipt section h3 {
  margin: 0 0 4px;
  font-size: 10px;
}
.sales-receipt section p {
  margin: 0;
  font-size: 9px;
}
.sales-receipt > footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 8px;
  color: #758883;
  border-top: 1px solid #dce5e2;
  font-size: 8.5px;
}
@media (max-width: 980px) {
  .sales-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .sales-form-grid.three {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .sales-workspace {
    padding: 6px 4px 76px;
  }
  .sales-tabs button {
    padding: 7px 8px;
  }
  .sales-tabs button span {
    display: none;
  }
  .sales-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .sales-new {
    justify-content: center;
  }
  .sales-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .sales-form-grid.two,
  .sales-form-grid.three,
  .sales-meta-grid,
  .sales-receipt-meta,
  .sales-payment-methods,
  .sales-summary-cards {
    grid-template-columns: 1fr;
  }
  .sales-drawer,
  .sales-drawer.wide {
    width: 100vw;
  }
  .sales-drawer-body {
    padding: 7px;
  }
  .sales-receipt {
    padding: 13px;
  }
  .sales-receipt > header {
    align-items: stretch;
    flex-direction: column;
  }
  .sales-receipt .receipt-brand {
    align-self: flex-end;
  }
}
@media print {
  .sales-drawer > header,
  .sales-drawer > footer,
  .sales-drawer-backdrop,
  .sales-drawer-body > :not(.sales-receipt) {
    display: none !important;
  }
  .sales-drawer-layer,
  .sales-drawer,
  .sales-drawer-body {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
  }
  .sales-receipt {
    max-width: none;
    border: 0;
  }
}
.price-list-workspace {
  padding: 8px 8px 22px;
}
.price-list-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 7px;
  padding: 4px;
  border: 1px solid #dfe8e5;
  border-radius: 12px;
  background: #edf3f1;
}
.price-list-tabs button {
  min-height: 52px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 8px 13px;
  color: #60756f;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.price-list-tabs button b {
  font-size: 12.5px;
}
.price-list-tabs button span {
  margin-top: 3px;
  font-size: 9px;
}
.price-list-tabs button.active {
  color: #133e36;
  background: #fff;
  box-shadow: 0 4px 12px #19443a14;
}
.price-list-tabs button.active b {
  color: #11725f;
}
.price-list-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.price-list-search {
  min-height: 39px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #dfe8e5;
  border-radius: 10px;
  background: #fff;
}
.price-list-search .ui-icon {
  flex: 0 0 auto;
  color: #7b918b;
}
.price-list-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #244a43;
  background: transparent;
  font: inherit;
  font-size: 11.5px;
}
.price-list-refresh {
  width: 39px;
  height: 39px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #42685f;
  border: 1px solid #dbe5e2;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.price-list-filters {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  padding: 5px 7px;
  overflow-x: auto;
  border: 1px solid #e1e8e6;
  border-radius: 10px;
  background: #f6f9f8;
}
.price-list-filters select,
.price-list-filters button {
  min-width: 150px;
  min-height: 30px;
  padding: 0 8px;
  color: #49665f;
  border: 1px solid #dce6e3;
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: 9px;
  white-space: nowrap;
}
.price-list-filters button {
  min-width: auto;
  cursor: pointer;
  font-weight: 800;
}
.price-list-filters select:disabled {
  color: #365a53;
  background: #eef4f2;
  cursor: default;
  opacity: 1;
}
.price-list-card {
  overflow: hidden;
  border: 1px solid #dfe6e4;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 6px 17px #122b250a;
}
.price-list-heading {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid #e5ebe9;
}
.price-list-heading > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.price-list-heading strong {
  color: #274c44;
  font-size: 11px;
}
.price-list-heading > div span {
  margin-top: 3px;
  overflow: hidden;
  color: #879893;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8.5px;
}
.read-only-pill {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: #4e6b64;
  border-radius: 999px;
  background: #edf3f1;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.price-list-error {
  margin: 7px;
  padding: 8px 10px;
  color: #9b362e;
  border: 1px solid #ecc7c3;
  border-radius: 8px;
  background: #fff1ef;
  font-size: 10px;
}
.price-list-table-wrap {
  overflow-x: auto;
}
.price-list-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.treatment-prices-table {
  min-width: 1420px;
}
.package-prices-table {
  min-width: 1570px;
}
.price-list-table th {
  padding: 8px 7px;
  color: #687b76;
  border-bottom: 1px solid #e4ebe9;
  background: #f8faf9;
  text-align: left;
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
.price-list-table td {
  padding: 8px 7px;
  color: #34554e;
  border-bottom: 1px solid #edf1f0;
  vertical-align: middle;
  font-size: 10.5px;
  line-height: 1.25;
}
.price-list-table tbody tr:hover {
  background: #fbfdfc;
}
.price-list-table td > strong,
.price-list-table td > span,
.price-list-table td > small {
  max-width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.price-list-table td > strong {
  color: #234a42;
  font-size: 11px;
}
.price-list-table td > small {
  margin-top: 3px;
  color: #899a95;
  font-size: 8.5px;
}
.treatment-prices-table th:nth-child(1) {
  width: 105px;
}
.treatment-prices-table th:nth-child(2) {
  width: 125px;
}
.treatment-prices-table th:nth-child(3),
.treatment-prices-table th:nth-child(4) {
  width: 210px;
}
.treatment-prices-table th:nth-child(5),
.treatment-prices-table th:nth-child(6) {
  width: 170px;
}
.treatment-prices-table th:nth-child(7) {
  width: 145px;
}
.treatment-prices-table th:nth-child(8) {
  width: 130px;
}
.treatment-prices-table th:nth-child(9) {
  width: 175px;
}
.package-prices-table th:nth-child(1) {
  width: 100px;
}
.package-prices-table th:nth-child(2),
.package-prices-table th:nth-child(3) {
  width: 155px;
}
.package-prices-table th:nth-child(4) {
  width: 190px;
}
.package-prices-table th:nth-child(5) {
  width: 300px;
}
.package-prices-table th:nth-child(6) {
  width: 145px;
}
.package-prices-table th:nth-child(7) {
  width: 190px;
}
.package-prices-table th:nth-child(8) {
  width: 180px;
}
.package-prices-table th:nth-child(9),
.package-prices-table th:nth-child(10) {
  width: 125px;
}
.price-list-id {
  width: fit-content;
  padding: 4px 7px;
  color: #0f705c;
  border-radius: 6px;
  background: #e8f6f1;
  font-weight: 900;
}
.arabic-value {
  text-align: right;
}
.price-list-tag {
  width: fit-content;
  padding: 4px 7px;
  color: #526c66;
  border-radius: 999px;
  background: #edf3f1;
  font-size: 8.5px;
  font-weight: 850;
}
.price-value {
  color: #126f5d !important;
  font-variant-numeric: tabular-nums;
}
.offer-badge {
  width: fit-content;
  padding: 5px 7px;
  color: #805e13;
  border-radius: 7px;
  background: #fff2c9;
  font-size: 8.5px;
  font-weight: 900;
}
.muted-value {
  color: #9aa8a4;
}
.time-value {
  width: fit-content;
  padding: 4px 6px;
  color: #315d54;
  border-radius: 6px;
  background: #f0f5f3;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.service-names {
  white-space: normal !important;
  line-height: 1.4;
}
.price-list-state {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #70857f;
  font-size: 10px;
}
@media (max-width: 650px) {
  .price-list-workspace {
    padding: 6px 4px 76px;
  }
  .price-list-tabs button {
    padding: 7px 8px;
  }
  .price-list-tabs button span {
    display: none;
  }
  .price-list-toolbar {
    align-items: stretch;
  }
  .price-list-filters select {
    min-width: 135px;
  }
  .price-list-heading > div span {
    display: none;
  }
}
.revenue-content {
  padding: 8px 8px 22px;
}
.revenue-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 6px;
  margin-bottom: 7px;
}
.revenue-kpis article {
  min-height: 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #dce6e3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 14px #133d3709;
}
.revenue-kpis article span {
  color: #7c918b;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.revenue-kpis article strong {
  margin-top: 5px;
  color: #166b5b;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.revenue-kpis article small {
  margin-top: 3px;
  color: #8a9a95;
  font-size: 8px;
}
.revenue-kpis article.attention {
  border-color: #ecd796;
  background: #fff8dd;
}
.revenue-kpis article.attention strong {
  color: #8d6715;
}
.revenue-report-card {
  overflow: hidden;
  border: 1px solid #dce6e3;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 22px #153b360b;
}
.revenue-report-heading {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-bottom: 1px solid #e6ecea;
}
.revenue-report-heading > div:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.revenue-report-heading > div:first-child strong {
  color: #214b45;
  font-size: 13px;
}
.revenue-report-heading > div:first-child span {
  margin-top: 3px;
  overflow: hidden;
  color: #879791;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
}
.revenue-statuses {
  display: flex;
  align-items: center;
  gap: 5px;
}
.revenue-statuses > button {
  min-height: 33px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid rgba(20, 45, 39, 0.08);
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}
.revenue-statuses > button.active {
  box-shadow: inset 0 0 0 2px #203e38;
}
.revenue-statuses button span {
  font-size: 8.5px;
  font-weight: 850;
}
.revenue-statuses button strong {
  font-size: 12px;
}
.revenue-statuses .revenue-reload {
  width: 33px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #52776f;
  border-color: #dce6e3;
  background: #fff;
}
.revenue-table-wrap {
  overflow: auto;
}
.revenue-table {
  width: 100%;
  min-width: 1740px;
  table-layout: fixed;
  border-collapse: collapse;
}
.revenue-table th {
  padding: 8px 6px;
  color: #617a74;
  border-bottom: 1px solid #e6ecea;
  background: #f8faf9;
  text-align: left;
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
.revenue-table td {
  padding: 8px 6px;
  color: #294e48;
  border-bottom: 1px solid #edf1f0;
  vertical-align: middle;
  font-size: 10.5px;
  line-height: 1.25;
}
.revenue-table th:nth-child(1) {
  width: 315px;
}
.revenue-table th:nth-child(2) {
  width: 205px;
}
.revenue-table th:nth-child(3) {
  width: 95px;
}
.revenue-table th:nth-child(4),
.revenue-table th:nth-child(5) {
  width: 145px;
}
.revenue-table th:nth-child(6),
.revenue-table th:nth-child(7),
.revenue-table th:nth-child(8),
.revenue-table th:nth-child(9),
.revenue-table th:nth-child(10) {
  width: 125px;
}
.revenue-table th:nth-child(11) {
  width: 225px;
}
.revenue-table tbody tr:hover {
  background: #fbfdfc;
}
.revenue-table td > strong,
.revenue-table td > span,
.revenue-table td > small {
  max-width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.revenue-table td > strong {
  color: #214840;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.revenue-table td > span {
  margin-top: 4px;
  color: #70847f;
  font-size: 9px;
}
.revenue-table td > small {
  margin-top: 4px;
  color: #859690;
  font-size: 8.5px;
}
.revenue-patient {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}
.revenue-patient > button {
  min-width: 57px;
  padding: 6px;
  color: #167466;
  border: 1px solid #c9e2dd;
  border-radius: 6px;
  background: #edfaf6;
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
}
.revenue-patient > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.revenue-patient strong,
.revenue-patient span,
.revenue-patient small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.revenue-patient strong {
  color: #193f39;
  font-size: 12px;
}
.revenue-patient span {
  margin-top: 3px;
  color: #617d76;
  font-size: 9.5px;
}
.revenue-patient small {
  margin-top: 3px;
  color: #78908a;
  font-size: 8.5px;
}
.revenue-patient small button {
  padding: 0;
  color: #14715f;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.revenue-bill-no {
  width: fit-content;
  padding: 4px 7px;
  color: #0f705c !important;
  border-radius: 6px;
  background: #e8f6f1;
}
.revenue-outstanding {
  color: #a54b35 !important;
}
.revenue-remark {
  white-space: normal !important;
  line-height: 1.35;
}
.revenue-table tfoot td {
  color: #31564f;
  border-top: 2px solid #c9dad5;
  border-bottom: 0;
  background: #f1f7f5;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}
.revenue-table tfoot span {
  display: block;
  margin-top: 3px;
  color: #7b8e89;
  font-size: 8.5px;
}
@media (max-width: 1050px) {
  .revenue-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 650px) {
  .revenue-content {
    padding: 6px 4px 76px;
  }
  .revenue-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .revenue-report-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .revenue-statuses {
    width: 100%;
    overflow-x: auto;
  }
  .revenue-statuses > button {
    flex: 0 0 auto;
  }
}
.monthly-content {
  padding: 8px 8px 22px;
}
.monthly-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  padding: 6px;
  border: 1px solid #dbe6e3;
  border-radius: 10px;
  background: #eaf3f0;
}
.monthly-period {
  min-width: 210px;
  height: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
}
.monthly-period span {
  color: #83958f;
  font-size: 7.5px;
  font-weight: 850;
  text-transform: uppercase;
}
.monthly-period strong {
  margin-top: 2px;
  color: #244c44;
  font-size: 10.5px;
}
.monthly-toolbar select {
  min-width: 155px;
  max-width: 210px;
  height: 34px;
  padding: 0 25px 0 8px;
  color: #31564f;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
  font-size: 9.5px;
}
.monthly-toolbar select:disabled {
  color: #58736d;
  background: #f3f6f5;
  opacity: 1;
}
.monthly-toolbar > button {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin-left: auto;
  color: #52776f;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.monthly-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 6px;
  margin-bottom: 7px;
}
.monthly-kpis article {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #dce6e3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 14px #133d3709;
}
.monthly-kpis span {
  color: #7c918b;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.monthly-kpis strong {
  margin-top: 5px;
  color: #166b5b;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.monthly-kpis small {
  margin-top: 3px;
  color: #8a9a95;
  font-size: 8px;
}
.monthly-kpis article.attention {
  border-color: #ecd796;
  background: #fff8dd;
}
.monthly-kpis article.attention strong {
  color: #8d6715;
}
.monthly-report-card {
  overflow: hidden;
  border: 1px solid #dce6e3;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 22px #153b360b;
}
.monthly-report-heading {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-bottom: 1px solid #e6ecea;
}
.monthly-report-heading > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.monthly-report-heading strong {
  color: #214b45;
  font-size: 12.5px;
}
.monthly-report-heading span {
  margin-top: 3px;
  overflow: hidden;
  color: #879791;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}
.monthly-report-heading > button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #52776f;
  border: 1px solid #dce6e3;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.monthly-table-wrap {
  overflow: auto;
}
.monthly-table {
  width: 100%;
  min-width: 1500px;
  table-layout: fixed;
  border-collapse: collapse;
}
.monthly-table th {
  padding: 8px 6px;
  color: #617a74;
  border-bottom: 1px solid #e6ecea;
  background: #f8faf9;
  text-align: center;
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
.monthly-table td {
  padding: 9px 6px;
  color: #31564f;
  border-bottom: 1px solid #edf1f0;
  text-align: center;
  vertical-align: middle;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.monthly-table th:nth-child(1) {
  width: 115px;
}
.monthly-table th:nth-child(2) {
  width: 115px;
}
.monthly-table th:nth-child(3) {
  width: 100px;
}
.monthly-table th:nth-child(n + 4) {
  width: 125px;
}
.monthly-table tbody tr:nth-child(2n) {
  background: #fbfdfc;
}
.monthly-table tbody tr:hover {
  background: #f3f8f6;
}
.monthly-table td strong {
  color: #214840;
  font-size: 11px;
}
.monthly-outstanding {
  color: #a54b35 !important;
}
.monthly-table tfoot td {
  color: #244e45;
  border-top: 2px solid #c9dad5;
  border-bottom: 0;
  background: #f1f7f5;
  font-weight: 900;
}
@media (max-width: 1050px) {
  .monthly-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
  .monthly-toolbar {
    overflow-x: auto;
  }
  .monthly-toolbar > * {
    flex: 0 0 auto;
  }
}
@media (max-width: 650px) {
  .monthly-content {
    padding: 6px 4px 76px;
  }
  .monthly-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .monthly-period {
    min-width: 180px;
  }
  .monthly-toolbar select {
    min-width: 140px;
  }
  .monthly-report-heading span {
    display: none;
  }
}
.whatsapp-workspace {
  height: 100vh;
  min-height: 680px;
  display: grid;
  grid-template-rows: 74px 62px minmax(0, 1fr);
  overflow: hidden;
  padding: 0 8px 8px;
  color: #173e38;
  background: #eef3f1;
}
.wa-workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -8px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(112deg, #0d433b, #126558 58%, #157d6b);
  box-shadow: 0 8px 24px #0c403821;
}
.wa-workspace-header > div,
.wa-header-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-title-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #0d6557;
  border-radius: 13px;
  background: #dbfff5;
  box-shadow: 0 8px 22px #0000001f;
}
.wa-workspace-header p {
  margin: 0 0 2px;
  color: #8edccd;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wa-workspace-header h1 {
  margin: 0;
  font:
    700 20px/1.08 Manrope,
    sans-serif;
  letter-spacing: -0.035em;
}
.wa-workspace-header h1 + span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #ffffffad;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}
.wa-header-meta > button,
.wa-chat-actions a,
.wa-chat-footer a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  color: #f5fffc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: #ffffff14;
  font-size: 9.5px;
  font-weight: 800;
  text-decoration: none;
}
.wa-header-meta > div {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.wa-header-meta > div strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}
.wa-header-meta > div span {
  margin-top: 3px;
  color: #fff9;
  font-size: 8px;
}
.wa-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: #d8fff4;
  border-radius: 999px;
  background: #02251f47;
  font-size: 8.5px;
  font-weight: 800;
}
.wa-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72e6c4;
  box-shadow: 0 0 0 4px #72e6c41f;
}
.wa-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 6px;
  padding: 7px 0;
}
.wa-kpis button {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 7px 10px;
  color: #5f7872;
  border: 1px solid #dae5e2;
  border-radius: 10px;
  background: #ffffffdb;
  box-shadow: 0 4px 12px #14413a06;
}
.wa-kpis button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8.5px;
  font-weight: 800;
}
.wa-kpis button strong {
  color: #27564d;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.wa-kpis button.active {
  color: #0e6e5d;
  border-color: #75c8b8;
  background: #e6f8f3;
  box-shadow: inset 0 0 0 1px #16816f1f;
}
.wa-kpis button.active strong {
  color: #0e6e5d;
}
.wa-inbox-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(270px, 320px) minmax(400px, 1fr) minmax(
      290px,
      330px
    );
  overflow: hidden;
  border: 1px solid #d5e1de;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 32px #0e3a3312;
}
.wa-conversations-panel,
.wa-chat-panel,
.wa-context-panel {
  min-width: 0;
  min-height: 0;
}
.wa-conversations-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border-right: 1px solid #dfe8e5;
  background: #fff;
}
.wa-list-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 5px;
  padding: 8px;
  border-bottom: 1px solid #edf1f0;
}
.wa-list-toolbar label {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  color: #79908a;
  border: 1px solid #d9e4e1;
  border-radius: 8px;
  background: #f8faf9;
}
.wa-list-toolbar label:focus-within {
  border-color: #53aa9a;
  box-shadow: 0 0 0 3px #20897614;
}
.wa-list-toolbar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #234c45;
  background: transparent;
  font-size: 9.5px;
}
.wa-list-toolbar select,
.wa-chat-actions select {
  min-width: 0;
  padding: 0 7px;
  color: #365d55;
  border: 1px solid #d8e3e0;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  font-size: 9px;
  font-weight: 750;
}
.wa-list-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 6px 9px;
  color: #82958f;
  border-bottom: 1px solid #edf1f0;
  font-size: 7.5px;
}
.wa-list-caption strong {
  color: #496a63;
  font-size: 8.5px;
}
.wa-conversation-scroll {
  overflow: auto;
  overscroll-behavior: contain;
}
.wa-conversation-row {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 7px;
  padding: 8px;
  color: #244b44;
  border: 0;
  border-bottom: 1px solid #edf2f0;
  background: #fff;
  text-align: left;
}
.wa-conversation-row:hover {
  background: #f7fbf9;
}
.wa-conversation-row.active {
  background: linear-gradient(90deg, #e5f6f1, #f4fbf9);
  box-shadow: inset 3px 0 #168675;
}
.wa-avatar {
  width: 38px;
  height: 38px;
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #126a5c;
  border-radius: 50%;
  background: #dff3ed;
  font-size: 10px;
  font-weight: 900;
}
.wa-avatar.large {
  width: 40px;
  height: 40px;
}
.wa-avatar i {
  width: 9px;
  height: 9px;
  position: absolute;
  right: 0;
  bottom: 1px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #a6b6b2;
}
.wa-avatar i.online {
  background: #32b78e;
}
.wa-conversation-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.wa-conversation-title {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.wa-conversation-title strong {
  overflow: hidden;
  color: #1c443d;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
}
.wa-conversation-title time {
  flex: 0 0 auto;
  color: #91a19d;
  font-size: 7.5px;
}
.wa-conversation-phone,
.wa-conversation-preview {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wa-conversation-phone {
  margin-top: 3px;
  color: #709089;
  font-size: 8px;
}
.wa-conversation-preview {
  margin-top: 5px;
  color: #718680;
  font-size: 8.5px;
}
.wa-conversation-preview i {
  margin-right: 3px;
  color: #6e8e87;
  font-style: normal;
}
.wa-conversation-preview i.outbound {
  color: #15927c;
}
.wa-row-meta {
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
}
.wa-row-meta b {
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  border-radius: 999px;
  background: #168b75;
  font-size: 7.5px;
}
.wa-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aaba7;
}
.wa-status-dot.open {
  background: #25a37f;
}
.wa-status-dot.pending {
  background: #e5ac39;
}
.wa-status-dot.closed {
  background: #84938f;
}
.wa-status-dot.archived {
  background: #bdc8c5;
}
.wa-list-state {
  min-height: 150px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  color: #7e928d;
  text-align: center;
  font-size: 9px;
}
.wa-list-state strong {
  color: #496b63;
  font-size: 10px;
}
.wa-list-state.error {
  color: #a3443d;
}
.wa-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #e9f0ed;
}
.wa-chat-empty {
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 30px;
  color: #7a918b;
  text-align: center;
}
.wa-chat-empty > span:not(.spinner) {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: #16826f;
  border-radius: 24px;
  background: #dff4ee;
}
.wa-chat-empty h2 {
  margin: 5px 0 0;
  color: #2b514a;
  font:
    700 15px Manrope,
    sans-serif;
}
.wa-chat-empty p {
  max-width: 300px;
  margin: 0;
  font-size: 9px;
  line-height: 1.55;
}
.wa-chat-empty.error {
  color: #a3453f;
}
.wa-start-conversation-retry {
  margin-top: 6px;
  padding: 8px 15px;
  border: 1px solid #d99b96;
  border-radius: 9px;
  background: #fff7f6;
  color: #9d342e;
  font:
    700 10px Manrope,
    sans-serif;
  cursor: pointer;
}
.wa-chat-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-bottom: 1px solid #dae5e2;
  background: #fffffff0;
}
.wa-chat-contact {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-chat-contact > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.wa-chat-contact strong {
  overflow: hidden;
  color: #193f38;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.wa-chat-contact div span {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  overflow: hidden;
  color: #748c86;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
}
.wa-chat-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.wa-chat-actions select {
  height: 32px;
}
.wa-chat-actions a {
  color: #176f61;
  border-color: #c9ded9;
  background: #f6fbf9;
}
.wa-message-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 10px clamp(10px, 2.5vw, 30px);
  overscroll-behavior: contain;
  background-color: #e9f0ed;
  background-image: radial-gradient(
    rgba(38, 95, 82, 0.055) 0.7px,
    transparent 0.7px
  );
  background-size: 12px 12px;
}
.wa-load-older {
  display: block;
  margin: 0 auto 10px;
  padding: 6px 10px;
  color: #1a6d60;
  border: 1px solid #c9ddd8;
  border-radius: 999px;
  background: #ffffffe6;
  font-size: 8.5px;
  font-weight: 800;
}
.wa-day-divider {
  display: flex;
  justify-content: center;
  margin: 9px 0;
}
.wa-day-divider span {
  padding: 4px 8px;
  color: #668079;
  border-radius: 999px;
  background: #ffffffdb;
  box-shadow: 0 2px 7px #1c433b0f;
  font-size: 7.5px;
  font-weight: 750;
}
.wa-message-row {
  display: flex;
  margin: 3px 0;
}
.wa-message-row.outbound {
  justify-content: flex-end;
}
.wa-message-bubble {
  max-width: min(78%, 520px);
  padding: 7px 8px 5px;
  color: #274e47;
  border: 1px solid rgba(31, 80, 70, 0.08);
  border-radius: 4px 12px 12px;
  background: #fff;
  box-shadow: 0 2px 7px #163a330d;
}
.wa-message-row.outbound .wa-message-bubble {
  border-color: #bee2d8;
  border-radius: 12px 4px 12px 12px;
  background: #dff6ee;
}
.wa-message-bubble.deleted {
  color: #879691;
  font-style: italic;
}
.wa-message-bubble p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.45;
}
.wa-message-bubble p + p {
  margin-top: 4px;
}
.wa-message-bubble footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 4px;
  color: #8b9a96;
  font-size: 6.8px;
}
.wa-message-bubble footer span {
  display: flex;
  align-items: center;
  gap: 0;
  color: #6d837d;
}
.wa-message-bubble footer span.read {
  color: #1686a5;
}
.wa-message-bubble footer span .ui-icon + .ui-icon {
  margin-left: -7px;
}
.wa-message-attachment {
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  padding: 7px;
  color: #476962;
  border-radius: 8px;
  background: #ffffff8c;
}
.wa-message-attachment > span {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #147a69;
  border-radius: 8px;
  background: #e0f3ee;
}
.wa-message-attachment > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.wa-message-attachment strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8.5px;
}
.wa-message-attachment small {
  margin-top: 3px;
  color: #82948f;
  font-size: 7px;
}
.wa-message-type,
.wa-no-messages {
  color: #7d918b;
  font-style: italic;
}
.wa-no-messages {
  margin: 25px auto;
  text-align: center;
  font-size: 9px;
}
.wa-chat-footer {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  color: #728a84;
  border-top: 1px solid #d5e1de;
  background: #f9fbfa;
  font-size: 8.5px;
}
.wa-chat-footer > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wa-chat-footer a {
  min-height: 30px;
  color: #fff;
  border: 0;
  background: #16826f;
}
.wa-context-panel {
  overflow-y: auto;
  border-left: 1px solid #dfe8e5;
  background: #fbfcfc;
}
.wa-context-heading {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #e4ebe9;
  background: #fff;
}
.wa-context-heading span {
  color: #214b44;
  font-size: 11px;
  font-weight: 850;
}
.wa-context-heading strong,
.wa-context-heading b {
  padding: 4px 7px;
  color: #6c817b;
  border-radius: 999px;
  background: #edf2f1;
  font-size: 7px;
  text-transform: uppercase;
}
.wa-context-heading b {
  color: #0d705e;
  background: #e1f5ef;
}
.wa-context-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  color: #8a9b97;
  font-size: 9px;
}
.wa-context-notice {
  display: flex;
  gap: 7px;
  margin: 8px;
  padding: 8px;
  color: #42665e;
  border: 1px solid #cfe5df;
  border-radius: 9px;
  background: #edf8f5;
  font-size: 8px;
  line-height: 1.45;
}
.wa-context-notice .ui-icon {
  flex: 0 0 auto;
  color: #17806e;
}
.wa-context-notice.warning {
  color: #775818;
  border-color: #ecd899;
  background: #fff8dc;
}
.wa-linked-patient {
  margin: 8px;
  padding: 10px;
  text-align: center;
  border: 1px solid #dbe6e3;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 15px #16403909;
}
.wa-patient-avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  color: #116a5c;
  border-radius: 17px;
  background: linear-gradient(145deg, #dff5ef, #eefaf7);
  font-size: 13px;
  font-weight: 900;
}
.wa-linked-patient h3 {
  margin: 7px 0 0;
  color: #1d453e;
  font:
    700 12px Manrope,
    sans-serif;
}
.wa-linked-patient > p {
  margin: 3px 0 8px;
  color: #748a84;
  font-size: 8px;
}
.wa-linked-patient dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 0;
  text-align: left;
}
.wa-linked-patient dl div {
  min-width: 0;
  padding: 6px;
  border-radius: 7px;
  background: #f5f8f7;
}
.wa-linked-patient dt {
  color: #8a9995;
  font-size: 6.8px;
  font-weight: 850;
  text-transform: uppercase;
}
.wa-linked-patient dd {
  margin: 3px 0 0;
  overflow: hidden;
  color: #365a53;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 750;
}
.wa-patient-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 8px;
}
.wa-patient-actions button,
.wa-create-patient button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #176f61;
  border: 1px solid #cddfdb;
  border-radius: 8px;
  background: #f8fbfa;
  font-size: 8px;
  font-weight: 850;
}
.wa-patient-actions button.primary,
.wa-create-patient button {
  color: #fff;
  border-color: #147865;
  background: #16826f;
}
.wa-unlink {
  margin-top: 8px;
  padding: 0;
  color: #7c908b;
  border: 0;
  background: transparent;
  font-size: 7.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wa-appointments-panel {
  margin: 8px;
  overflow: hidden;
  border: 1px solid #dbe5e2;
  border-radius: 10px;
  background: #fff;
}
.wa-appointments-panel > header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-bottom: 1px solid #e6ecea;
}
.wa-appointments-panel > header div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wa-appointments-panel > header span {
  color: #345950;
  font-size: 9px;
  font-weight: 850;
}
.wa-appointments-panel > header strong {
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  color: #126b5d;
  border-radius: 999px;
  background: #e3f5f0;
  font-size: 8px;
}
.wa-appointments-panel > header .ui-icon {
  color: #6d8881;
}
.wa-appointments-panel > button,
.wa-appointments-panel > div {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  color: #284e47;
  border: 0;
  border-bottom: 1px solid #edf1f0;
  background: #fff;
  text-align: left;
}
.wa-appointments-panel > :last-child {
  border-bottom: 0;
}
.wa-appointments-panel > button.reminder-ready {
  cursor: pointer;
}
.wa-appointments-panel > button.reminder-ready:hover,
.wa-appointments-panel > button.reminder-ready:focus-visible {
  background: #eff9f6;
  outline: 2px solid #8ccfc1;
  outline-offset: -2px;
}
.wa-appointments-panel > .reminder-unavailable {
  grid-template-columns: 34px minmax(0, 1fr);
  cursor: default;
}
.wa-appointments-panel > button > span:nth-child(2),
.wa-appointments-panel > div > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.wa-appointments-panel > button strong,
.wa-appointments-panel > button small,
.wa-appointments-panel > div strong,
.wa-appointments-panel > div small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wa-appointments-panel > button strong,
.wa-appointments-panel > div strong {
  font-size: 8.5px;
}
.wa-appointments-panel > button small,
.wa-appointments-panel > div small {
  margin-top: 3px;
  color: #7d8f8a;
  font-size: 7px;
}
.wa-appointments-panel > button i,
.wa-appointments-panel > div i {
  width: fit-content;
  margin-top: 3px;
  padding: 2px 4px;
  color: #177061;
  border-radius: 4px;
  background: #e6f5f1;
  font-size: 6.5px;
  font-style: normal;
  font-weight: 800;
}
.wa-calendar-tile {
  height: 36px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: #126a5d;
  border-radius: 7px;
  background: #e6f5f1;
}
.wa-calendar-tile b {
  font-size: 11px;
}
.wa-calendar-tile small {
  margin: 0 !important;
  font-size: 6px !important;
  text-transform: uppercase;
}
.wa-patient-search {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px;
  color: #5f7972;
  font-size: 8px;
  font-weight: 850;
}
.wa-patient-search > div {
  height: 35px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  color: #78908a;
  border: 1px solid #d5e1de;
  border-radius: 8px;
  background: #fff;
}
.wa-patient-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #2d554d;
  background: transparent;
  font-size: 8.5px;
}
.wa-patient-search .spinner {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.wa-candidate-list {
  margin: 0 8px;
  overflow: hidden;
  border: 1px solid #dce6e3;
  border-radius: 9px;
  background: #fff;
}
.wa-patient-candidate {
  min-height: 61px;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-bottom: 1px solid #edf1f0;
}
.wa-patient-candidate:last-child {
  border-bottom: 0;
}
.wa-mini-avatar {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #176e61;
  border-radius: 9px;
  background: #e3f5f0;
  font-size: 7px;
  font-weight: 900;
}
.wa-patient-candidate > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.wa-patient-candidate strong,
.wa-patient-candidate span,
.wa-patient-candidate small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wa-patient-candidate strong {
  color: #294f47;
  font-size: 8.5px;
}
.wa-patient-candidate div span {
  margin-top: 3px;
  color: #718983;
  font-size: 7px;
}
.wa-patient-candidate small {
  margin-top: 2px;
  color: #92a09c;
  font-size: 6.5px;
}
.wa-patient-candidate button {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  color: #176e61;
  border: 1px solid #cde1dc;
  border-radius: 7px;
  background: #f4faf8;
  font-size: 7px;
  font-weight: 850;
}
.wa-small-empty {
  margin: 0;
  padding: 14px 9px;
  color: #879792;
  text-align: center;
  font-size: 8px;
  line-height: 1.45;
}
.wa-create-patient {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  margin: 9px 8px;
  padding: 9px;
  border: 1px dashed #bfd6d0;
  border-radius: 9px;
  background: #f5faf8;
}
.wa-create-patient > span {
  color: #6c827c;
  font-size: 8px;
}
.wa-create-patient button {
  width: 100%;
}
@media (max-width: 1180px) {
  .wa-inbox-layout {
    grid-template-columns: minmax(245px, 285px) minmax(370px, 1fr) minmax(
        260px,
        290px
      );
  }
  .wa-header-meta > div {
    display: none;
  }
}
@media (max-width: 980px) {
  .whatsapp-workspace {
    min-height: 760px;
    height: auto;
    grid-template-rows: auto auto auto;
    overflow: visible;
  }
  .wa-inbox-layout {
    min-height: 650px;
    grid-template-columns: 270px minmax(390px, 1fr);
    overflow: visible;
  }
  .wa-context-panel {
    grid-column: 1 / -1;
    min-height: 240px;
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
    border-top: 1px solid #dfe8e5;
    border-left: 0;
  }
  .wa-context-heading {
    grid-column: 1 / -1;
  }
  .wa-context-notice {
    align-self: start;
  }
  .wa-linked-patient {
    grid-row: 2 / span 2;
  }
  .wa-appointments-panel {
    grid-column: 2;
    grid-row: 2 / span 3;
  }
  .wa-patient-search,
  .wa-candidate-list,
  .wa-create-patient {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .whatsapp-workspace {
    min-height: 0;
    padding: 0 4px 72px;
  }
  .wa-workspace-header {
    margin: 0 -4px;
    padding: 8px;
  }
  .wa-workspace-header h1 {
    font-size: 17px;
  }
  .wa-workspace-header h1 + span,
  .wa-live,
  .wa-header-meta > button {
    display: none;
  }
  .wa-kpis {
    grid-template-columns: repeat(5, minmax(76px, 1fr));
    overflow-x: auto;
  }
  .wa-kpis button {
    min-width: 78px;
    padding: 6px;
  }
  .wa-kpis button span {
    font-size: 7px;
  }
  .wa-kpis button strong {
    font-size: 12px;
  }
  .wa-inbox-layout {
    min-height: 0;
    display: block;
    overflow: visible;
  }
  .wa-conversations-panel {
    height: 300px;
    border-right: 0;
    border-bottom: 1px solid #dfe8e5;
  }
  .wa-chat-panel {
    height: 560px;
  }
  .wa-context-panel {
    min-height: 400px;
    display: block;
    border-top: 1px solid #dfe8e5;
  }
  .wa-context-heading {
    display: flex;
  }
  .wa-message-bubble {
    max-width: 88%;
  }
  .wa-chat-actions a span {
    display: none;
  }
}
.whatsapp-workspace {
  font-family:
    Alexandria,
    Inter,
    Segoe UI,
    Tahoma,
    Arial,
    sans-serif !important;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.4;
  color: #173f37;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.whatsapp-workspace button,
.whatsapp-workspace input,
.whatsapp-workspace select,
.whatsapp-workspace textarea {
  font-family: inherit !important;
}
.workspace-sidebar nav button span {
  display: block;
  width: 58px;
  max-width: 58px;
  font-size: 9.5px !important;
  line-height: 1.18 !important;
  font-weight: 650 !important;
  white-space: normal;
  overflow-wrap: normal;
  text-align: center;
}
.workspace-sidebar nav button {
  min-height: 58px;
  padding-left: 4px;
  padding-right: 4px;
}
.wa-workspace-header {
  min-height: 72px;
}
.wa-workspace-header h1 {
  margin: 1px 0 2px;
  font-size: 23px !important;
  line-height: 1.08 !important;
  font-weight: 780 !important;
  letter-spacing: -0.35px;
}
.wa-workspace-header p {
  margin: 0;
  font-size: 10.5px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px;
}
.wa-workspace-header > div > div > span {
  font-size: 11.5px !important;
  line-height: 1.3 !important;
  font-weight: 450 !important;
}
.wa-header-meta strong {
  font-size: 12.5px !important;
  font-weight: 700 !important;
}
.wa-header-meta span {
  font-size: 10.5px !important;
}
.wa-header-meta button,
.wa-live {
  font-size: 11.5px !important;
  font-weight: 650 !important;
}
.wa-kpis button {
  min-height: 54px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.wa-kpis button > span {
  font-size: 11.5px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
}
.wa-kpis button > strong {
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}
.whatsapp-workspace input,
.whatsapp-workspace select {
  font-size: 11.5px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
}
.whatsapp-workspace input::placeholder {
  color: #718c86 !important;
  opacity: 1;
}
.wa-inbox-grid,
.wa-workspace-body,
.wa-main-grid {
  grid-template-columns: minmax(300px, 340px) minmax(480px, 1fr) minmax(
      290px,
      320px
    ) !important;
}
.wa-chat-panel,
.wa-conversation-panel,
.wa-context-panel {
  min-width: 0;
}
.wa-conversation-list strong,
.wa-conversation-item strong,
.wa-conversation-row strong {
  display: block;
  font-size: 13.5px !important;
  line-height: 1.25 !important;
  font-weight: 720 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-conversation-list span,
.wa-conversation-list small,
.wa-conversation-item span,
.wa-conversation-item small,
.wa-conversation-row span,
.wa-conversation-row small {
  font-size: 11px !important;
  line-height: 1.35 !important;
  font-weight: 450 !important;
}
.wa-conversation-item,
.wa-conversation-row {
  min-height: 76px !important;
}
.wa-conversation-item p,
.wa-conversation-row p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
[class*="wa-conversation"] {
  min-width: 0;
}
[class*="wa-conversation"] > strong {
  font-size: 13.5px !important;
  line-height: 1.25 !important;
  font-weight: 720 !important;
}
.wa-chat-header {
  min-height: 56px;
}
.wa-chat-contact strong {
  font-size: 13.5px !important;
  line-height: 1.25 !important;
  font-weight: 720 !important;
}
.wa-chat-contact span {
  font-size: 10.5px !important;
  line-height: 1.3 !important;
  font-weight: 450 !important;
}
.wa-chat-actions select,
.wa-chat-actions button,
.wa-chat-actions a {
  font-size: 11.5px !important;
  font-weight: 650 !important;
}
.wa-message-scroll {
  padding: 16px 24px !important;
}
.wa-message-row {
  width: 100%;
}
.wa-message-bubble {
  max-width: min(72%, 680px) !important;
  padding: 9px 12px !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  font-weight: 480 !important;
  overflow: hidden;
}
.wa-message-bubble p {
  margin: 0;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  font-weight: 480 !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}
.wa-message-bubble footer,
.wa-message-bubble footer time,
.wa-message-bubble footer span {
  margin-top: 4px;
  font-size: 9.5px !important;
  line-height: 1.2 !important;
  font-weight: 550 !important;
}
.wa-day-divider span {
  font-size: 9.5px !important;
  font-weight: 650 !important;
}
.wa-message-bubble p:not(:empty) {
  max-width: 100%;
}
.wa-message-bubble img,
.wa-message-bubble video,
.wa-message-bubble audio {
  max-width: 100%;
}
.wa-context-heading > span {
  font-size: 10.5px !important;
  font-weight: 650 !important;
}
.wa-context-heading > strong {
  font-size: 13.5px !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
}
.wa-context-notice,
.wa-context-notice span {
  font-size: 11px !important;
  line-height: 1.4 !important;
}
[class*="wa-patient"] strong {
  font-size: 13px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}
[class*="wa-patient"] span,
[class*="wa-patient"] small {
  font-size: 10.5px !important;
  line-height: 1.35 !important;
}
[class*="wa-patient"] dt {
  font-size: 8.5px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
}
[class*="wa-patient"] dd {
  font-size: 10.5px !important;
  line-height: 1.3 !important;
  font-weight: 650 !important;
}
[class*="wa-appointment"] strong {
  font-size: 11.5px !important;
  line-height: 1.3 !important;
  font-weight: 680 !important;
}
[class*="wa-appointment"] span,
[class*="wa-appointment"] small {
  font-size: 9.5px !important;
  line-height: 1.3 !important;
  font-weight: 450 !important;
}
[class*="wa-appointment"] button {
  font-size: 10px !important;
}
@media (max-width: 1500px) {
  .wa-inbox-grid,
  .wa-workspace-body,
  .wa-main-grid {
    grid-template-columns: minmax(270px, 310px) minmax(420px, 1fr) minmax(
        270px,
        300px
      ) !important;
  }
  .wa-workspace-header h1 {
    font-size: 21px !important;
  }
  .wa-message-bubble {
    max-width: 78% !important;
  }
}
.wa-message-bubble:has(.wa-inline-media) {
  width: auto;
  max-width: min(76%, 520px) !important;
}
.wa-inline-media {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #e9f3f0;
}
.wa-inline-image-wrap {
  max-width: 440px;
}
.wa-inline-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 460px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 12px;
  cursor: zoom-in;
}
.wa-inline-video-wrap {
  width: min(100%, 480px);
}
.wa-inline-video {
  display: block;
  width: 100%;
  max-height: 440px;
  border-radius: 12px;
  background: #071b18;
}
.wa-inline-audio-wrap {
  min-width: 280px;
  padding: 7px;
}
.wa-inline-audio {
  display: block;
  width: 100%;
  min-width: 270px;
  height: 42px;
}
.wa-inline-document {
  display: flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.wa-inline-document:hover {
  border-color: #15927c;
  background: #e5f5f1;
}
.wa-message-bubble > .wa-inline-media + p,
.wa-message-bubble > .wa-message-attachment + p {
  margin-top: 8px;
}
@media (max-width: 900px) {
  .wa-message-bubble:has(.wa-inline-media) {
    max-width: 88% !important;
  }
  .wa-inline-image {
    max-height: 360px;
  }
}
.wa-chat-composer-footer {
  min-height: 72px;
  padding: 8px 10px;
  align-items: stretch;
}
.wa-message-composer {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "attach message send" "attachment attachment send" "hint hint send";
  align-items: center;
  gap: 4px 8px;
}
.wa-composer-file-input {
  display: none;
}
.wa-message-composer .wa-composer-attach {
  grid-area: attach;
  width: 42px;
  min-width: 42px;
  padding: 0;
  color: #176f61;
  border: 1px solid #bfd5cf;
  background: #f5fbf9;
}
.wa-message-composer .wa-composer-attach:hover:not(:disabled) {
  color: #fff;
  background: #16826f;
}
.wa-composer-attachment {
  grid-area: attachment;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  color: #244d45;
  border: 1px solid #c8ddd7;
  border-radius: 9px;
  background: #eff9f6;
}
.wa-composer-attachment > span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.wa-composer-attachment strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
}
.wa-composer-attachment small {
  grid-area: auto;
  flex: 0 0 auto;
  padding: 0;
  font-size: 9px;
}
.wa-message-composer .wa-composer-attachment button {
  grid-area: auto;
  width: 24px;
  min-width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0;
  color: #8e2f2f;
  border: 1px solid #e7c6c6;
  border-radius: 7px;
  background: #fff5f5;
  font-size: 17px;
}
.wa-message-composer textarea {
  grid-area: message;
  width: 100%;
  min-height: 42px;
  max-height: 116px;
  resize: vertical;
  padding: 9px 11px;
  color: #173f37;
  border: 1px solid #c8d8d4;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}
.wa-message-composer textarea:focus {
  border-color: #16826f;
  box-shadow: 0 0 0 3px #16826f1f;
}
.wa-message-composer textarea:disabled {
  opacity: 0.65;
  cursor: wait;
}
.wa-message-composer button {
  grid-area: send;
  min-width: 86px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: #16826f;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.wa-message-composer button:hover:not(:disabled) {
  background: #116d5d;
}
.wa-message-composer button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.wa-message-composer small {
  grid-area: hint;
  padding-left: 3px;
  color: #718a84;
  font-size: 9.5px;
}
.wa-composer-locked {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #7c5a1b;
  border: 1px dashed #d7bd82;
  border-radius: 11px;
  background: #fff8e8;
  font-size: 11px;
  font-weight: 700;
}
@media (max-width: 760px) {
  .wa-message-composer {
    grid-template-columns: minmax(0, 1fr) 72px;
  }
  .wa-message-composer button {
    min-width: 72px;
    padding: 0 9px;
  }
  .wa-message-composer button span {
    display: none;
  }
}
.wa-audio-transcript {
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid #cfe1dc;
  border-radius: 11px;
  background: #f7fbfa;
}
.wa-audio-transcript > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #50746b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}
.wa-audio-transcript p {
  margin: 7px 0 4px !important;
  color: #173f37;
  font-size: 13px !important;
  line-height: 1.65 !important;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wa-audio-transcript small {
  color: #718a84;
  font-size: 9.5px;
}
.wa-audio-transcript.pending {
  background: #f3f7f6;
}
.wa-audio-transcript.failed {
  border-color: #e9c5c5;
  background: #fff4f4;
}
.wa-audio-transcript.failed > span {
  color: #9a3535;
}
.wa-audio-transcript .spinner {
  width: 13px;
  height: 13px;
}
.wa-packages-panel {
  margin: 8px;
  overflow: hidden;
  border: 1px solid #d9e5e1;
  border-radius: 10px;
  background: #fff;
}
.wa-packages-panel > header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-bottom: 1px solid #e6ecea;
}
.wa-packages-panel > header div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wa-packages-panel > header span {
  color: #345950;
  font-size: 9px;
  font-weight: 850;
}
.wa-packages-panel > header strong {
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  color: #8a5b08;
  border-radius: 999px;
  background: #fff0c9;
  font-size: 8px;
}
.wa-packages-panel > header .ui-icon {
  color: #9b6a12;
}
.wa-packages-panel > article {
  min-height: 66px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border-bottom: 1px solid #edf1f0;
}
.wa-packages-panel > article:last-child {
  border-bottom: 0;
}
.wa-package-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #8a5b08;
  border-radius: 9px;
  background: #fff4d8;
}
.wa-package-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.wa-package-copy strong,
.wa-package-copy small,
.wa-package-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wa-package-copy strong {
  color: #284e47;
  font-size: 8.7px;
}
.wa-package-copy small {
  margin-top: 3px;
  color: #7d8f8a;
  font-size: 7px;
}
.wa-package-copy em {
  margin-top: 3px;
  color: #94701f;
  font-size: 6.8px;
  font-style: normal;
  font-weight: 750;
}
.wa-package-balance {
  min-width: 58px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}
.wa-package-balance span {
  color: #8a9995;
  font-size: 6.5px;
  font-weight: 850;
  text-transform: uppercase;
}
.wa-package-balance strong {
  margin-top: 2px;
  color: #12806d;
  font-size: 14px;
  line-height: 1;
}
.wa-package-balance small {
  margin-top: 4px;
  color: #7c8d88;
  font-size: 6.5px;
  white-space: nowrap;
}
@media (max-width: 1180px) and (min-width: 761px) {
  .wa-packages-panel {
    grid-column: 2;
    grid-row: 2;
  }
  .wa-appointments-panel {
    grid-column: 2;
    grid-row: 3 / span 3;
  }
}
.whatsapp-workspace {
  grid-template-rows: 74px minmax(0, 1fr) !important;
}
.whatsapp-workspace > .wa-kpis {
  display: none !important;
}
.whatsapp-workspace > .wa-inbox-layout {
  grid-row: 2 !important;
}
@media (max-width: 980px) {
  .whatsapp-workspace {
    grid-template-rows: auto auto !important;
  }
  .whatsapp-workspace > .wa-inbox-layout {
    grid-row: 2 !important;
  }
}
.wa-ai-reply-launch {
  display: flex;
  justify-content: center;
  padding: 8px 14px 12px;
}
.wa-ai-reply-launch button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid #b9d8d0;
  border-radius: 999px;
  background: #f3faf8;
  color: #176c5c;
  font-family: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.wa-ai-reply-launch button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.wa-ai-suggestion-card {
  width: min(92%, 620px);
  align-self: center;
  margin: 8px auto 12px;
  padding: 12px;
  border: 1px solid #b9d9d1;
  border-radius: 15px;
  background: linear-gradient(135deg, #f4fbf9, #fff);
  box-shadow: 0 8px 24px #155b4c1a;
  direction: rtl;
  text-align: right;
}
.wa-ai-suggestion-card.review {
  border-color: #e5c987;
  background: linear-gradient(135deg, #fffaf0, #fff);
}
.wa-ai-suggestion-card > header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.wa-ai-suggestion-card > header > div {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.wa-ai-suggestion-card > header strong {
  color: #174f44;
  font-size: 12px;
}
.wa-ai-suggestion-card > header small {
  margin-top: 2px;
  color: #718b84;
  font-size: 9.5px;
}
.wa-ai-suggestion-card > header b {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff0c8;
  color: #8a6110;
  font-size: 8px;
  white-space: nowrap;
}
.wa-ai-spark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #dff3ee;
  color: #177563;
}
.wa-ai-suggestion-card > p {
  margin: 0;
  padding: 10px 11px;
  border: 1px solid #deebe7;
  border-radius: 11px;
  background: #fff;
  color: #173f37;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wa-ai-suggestion-card > textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 112px;
  padding: 10px 11px;
  border: 1px solid #86bcb0;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: #173f37;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  direction: rtl;
  text-align: right;
}
.wa-ai-suggestion-card details {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #f5f8f7;
  color: #55726b;
  font-size: 9.5px;
}
.wa-ai-suggestion-card summary {
  cursor: pointer;
  font-weight: 800;
}
.wa-ai-suggestion-card details > p {
  margin: 7px 0 0;
  color: #3f625a;
  font-size: 10.5px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.wa-ai-suggestion-card ul {
  margin: 7px 0 0;
  padding-right: 17px;
}
.wa-ai-suggestion-card li {
  margin: 3px 0;
}
.wa-ai-suggestion-card > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.wa-ai-suggestion-card > footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #c8d8d4;
  border-radius: 9px;
  background: #fff;
  color: #315c53;
  font-family: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.wa-ai-suggestion-card > footer button.primary {
  border-color: #14725f;
  background: #14725f;
  color: #fff;
}
.wa-ai-suggestion-card > footer button.ghost {
  margin-right: auto;
  border-color: transparent;
  background: transparent;
  color: #7b8e89;
}
.wa-ai-suggestion-card > footer button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}
.wa-ai-suggestion-card .spinner {
  width: 13px;
  height: 13px;
}
@media (max-width: 760px) {
  .wa-ai-suggestion-card {
    width: calc(100% - 18px);
    margin: 7px 9px 10px;
  }
  .wa-ai-suggestion-card > footer button {
    flex: 1;
  }
  .wa-ai-suggestion-card > footer button.ghost {
    margin-right: 0;
  }
}
.wa-ai-name-approval {
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid #e5c77c;
  border-radius: 12px;
  background: #fffaf0;
}
.wa-ai-name-heading {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}
.wa-ai-name-heading strong {
  color: #72500c;
  font-size: 11px;
}
.wa-ai-name-heading small {
  margin-top: 2px;
  color: #917c50;
  font-size: 8.5px;
}
.wa-ai-name-approval label {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}
.wa-ai-name-approval label > span {
  color: #6d6f63;
  font-size: 9px;
  font-weight: 800;
}
.wa-ai-name-approval label > em,
.wa-ai-name-approval input {
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #dfd3b5;
  border-radius: 8px;
  background: #fff;
  color: #263f39;
  font-family: inherit;
  font-size: 11px;
  font-style: normal;
}
.wa-ai-name-approval input {
  direction: rtl;
  text-align: right;
  outline: none;
}
.wa-ai-name-approval input:focus {
  border-color: #13806c;
  box-shadow: 0 0 0 3px #13806c1a;
}
.wa-ai-name-approval > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  margin-top: 9px;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: #8a6615;
  color: #fff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.wa-ai-name-approval > button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.wa-ai-approved-name {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 9px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #e9f7f2;
  color: #236153;
  font-size: 9.5px;
}
.wa-ai-approved-name strong {
  font-size: 10px;
}
@media (max-width: 760px) {
  .wa-ai-name-approval label {
    grid-template-columns: 1fr;
  }
  .wa-ai-name-approval > button {
    width: 100%;
  }
}
.wa-create-status-button {
  border-color: #0d806b !important;
  background: #0d806b !important;
  color: #fff !important;
  direction: ltr;
  text-align: left;
}
.wa-status-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #07231ea3;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.wa-status-modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px #0000004d;
  color: #173f37;
  direction: ltr;
  text-align: left;
}
.wa-status-modal > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #dfebe7;
}
.wa-status-modal h2,
.wa-status-modal h3,
.wa-status-modal p {
  margin: 0;
}
.wa-status-modal > header h2 {
  font-size: 20px;
}
.wa-status-modal > header p {
  margin-top: 4px;
  color: #6b837d;
  font-size: 11px;
}
.wa-status-modal > header > button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: #eef5f3;
  color: #355d54;
  font-size: 24px;
  cursor: pointer;
}
.wa-status-modal > nav {
  display: flex;
  gap: 6px;
  padding: 12px 20px 0;
}
.wa-status-modal > nav button {
  flex: 1;
  min-height: 38px;
  border: 1px solid #cfdfdb;
  border-radius: 9px;
  background: #fff;
  color: #40675e;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.wa-status-modal > nav button.active {
  border-color: #12806d;
  background: #e9f7f3;
  color: #086553;
}
.wa-status-modal > form {
  display: grid;
  gap: 10px;
  padding: 16px 20px;
}
.wa-status-modal label {
  display: grid;
  gap: 6px;
  color: #315d53;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}
.wa-status-modal textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 11px;
  border: 1px solid #bdd4ce;
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  resize: vertical;
  text-align: start;
}
.wa-status-modal textarea:focus {
  border-color: #12806d;
  box-shadow: 0 0 0 3px #12806d1a;
}
.wa-status-modal form > small {
  color: #6f8881;
}
.wa-status-colors {
  display: flex;
  gap: 8px;
}
.wa-status-colors button {
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cadbd7;
  cursor: pointer;
}
.wa-status-colors button.active {
  box-shadow: 0 0 0 3px #8cc8bb;
}
.wa-status-text-preview {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 24px;
  border-radius: 13px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wa-status-file {
  padding: 16px;
  border: 1px dashed #83b7ab;
  border-radius: 11px;
  background: #f4faf8;
}
.wa-status-file input {
  font-family: inherit;
}
.wa-status-media-preview {
  display: grid;
  max-height: 280px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #10201d;
}
.wa-status-media-preview img,
.wa-status-media-preview video {
  display: block;
  max-width: 100%;
  max-height: 280px;
}
.wa-status-file-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #617c75;
  font-size: 10px;
}
.wa-status-file-meta button {
  padding: 4px 8px;
  border: 1px solid #cadbd7;
  border-radius: 7px;
  background: #fff;
  color: #355e55;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.wa-status-color-label,
.wa-status-preview-label {
  margin-bottom: -4px;
}
.wa-status-error {
  padding: 9px 11px;
  border-radius: 8px;
  background: #fff0f0;
  color: #a12727;
  font-size: 11px;
}
.wa-status-modal form > footer {
  display: flex;
  gap: 8px;
}
.wa-status-modal form > footer button {
  min-height: 38px;
  padding: 8px 18px;
  border: 1px solid #cadbd7;
  border-radius: 9px;
  background: #fff;
  color: #355e55;
  font-family: inherit;
  font-weight: 850;
  cursor: pointer;
}
.wa-status-modal form > footer button.primary {
  border-color: #12806d;
  background: #12806d;
  color: #fff;
}
.wa-status-modal button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.wa-status-modal > aside {
  padding: 14px 20px 20px;
  border-top: 1px solid #e1ebe8;
  background: #f8fbfa;
  text-align: left;
}
.wa-status-modal > aside h3 {
  margin-bottom: 9px;
  font-size: 13px;
}
.wa-status-modal > aside article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 54px auto;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #e7efed;
  font-size: 10px;
}
.wa-status-modal > aside article span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wa-status-state {
  color: #08705d;
  font-weight: 800;
}
.wa-status-state.expired {
  color: #758b85;
}
.wa-status-modal > aside article time {
  color: #758b85;
}
.wa-status-modal > aside > p {
  color: #718780;
  font-size: 10px;
}
.wa-status-reply-card {
  margin-bottom: 8px;
  padding: 8px 9px;
  border-left: 4px solid #18a88e;
  border-radius: 8px;
  background: #e1f5efe6;
  direction: ltr;
  text-align: left;
}
.wa-status-reply-card strong {
  display: block;
  color: #08705d;
  font-size: 10px;
}
.wa-status-reply-card span {
  display: block;
  margin-top: 3px;
  color: #456d64;
  font-size: 9px;
}
.wa-status-reply-card p {
  margin: 4px 0 0 !important;
  color: #254c43 !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
}
@media (max-width: 760px) {
  .wa-status-modal-backdrop {
    padding: 0;
    align-items: end;
  }
  .wa-status-modal {
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
  }
  .wa-status-modal > header,
  .wa-status-modal > form,
  .wa-status-modal > aside {
    padding-left: 14px;
    padding-right: 14px;
  }
  .wa-status-modal > nav {
    padding-left: 14px;
    padding-right: 14px;
  }
  .wa-status-modal form > footer button {
    flex: 1;
  }
  .wa-status-modal > aside article {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .wa-status-modal > aside article .wa-status-state,
  .wa-status-modal > aside article time {
    grid-column: 2;
  }
  .wa-create-status-button {
    padding-inline: 9px !important;
  }
}
.appointment-table-wrap {
  position: relative;
  overflow-x: auto;
}
.appointment-list-table .appointment-actions-sticky-head,
.appointment-list-table .appointment-actions-sticky-cell {
  position: sticky;
  left: 0;
  min-width: 112px;
  width: 112px;
  max-width: 112px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
  background: #fff;
  box-shadow: 8px 0 14px -12px #122d288c;
}
.appointment-list-table .appointment-actions-sticky-head {
  z-index: 8;
  background: #f4f8f7;
  border-right: 1px solid #dce7e4;
}
.appointment-list-table .appointment-actions-sticky-cell {
  z-index: 4;
  border-right: 1px solid #e4ecea;
}
.appointment-list-table tbody tr:hover .appointment-actions-sticky-cell {
  background: #f6fbf9;
}
.appointment-action-list {
  display: block;
  width: 100%;
  min-width: 96px;
  max-width: 100%;
  margin: 0;
}
@media (max-width: 700px) {
  .appointment-list-table .appointment-actions-sticky-head,
  .appointment-list-table .appointment-actions-sticky-cell {
    min-width: 102px;
    width: 102px;
    max-width: 102px;
    padding-left: 5px;
    padding-right: 5px;
  }
  .appointment-action-list {
    min-width: 90px;
    font-size: 10px;
  }
}
.new-appointment-picker-layer {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: grid;
  place-items: center;
  padding: 24px;
  isolation: isolate;
}
.new-appointment-picker-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0f172aa8;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: default;
}
.new-appointment-picker-card {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto auto auto minmax(180px, 1fr);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px #0f172a57;
}
.new-appointment-picker-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid #e5ecea;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 62%), #fff;
}
.new-appointment-picker-card > header div {
  display: grid;
  gap: 3px;
}
.new-appointment-picker-card > header span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.new-appointment-picker-card > header strong {
  color: #0f172a;
  font-size: 22px;
  line-height: 1.15;
}
.new-appointment-picker-card > header button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe5e2;
  border-radius: 12px;
  background: #fff;
  color: #475569;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.new-appointment-picker-card > header button:hover {
  border-color: #0f766e;
  color: #0f766e;
  background: #f0fdfa;
}
.new-appointment-picker-search {
  margin: 18px 20px 10px;
  min-height: 50px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #cfdad7;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
}
.new-appointment-picker-search:focus-within {
  border-color: #0f766e;
  background: #fff;
  box-shadow: 0 0 0 3px #0f766e1f;
}
.new-appointment-picker-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
}
.new-appointment-picker-search kbd {
  padding: 3px 7px;
  border: 1px solid #d9e2e0;
  border-bottom-width: 2px;
  border-radius: 7px;
  background: #fff;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}
.new-appointment-picker-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 22px 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.new-appointment-picker-caption b {
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e6f4f1;
  color: #0f766e;
  text-align: center;
}
.new-appointment-picker-error {
  margin: 0 20px 10px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}
.new-appointment-patient-list {
  min-height: 0;
  overflow: auto;
  padding: 6px 14px 18px;
  overscroll-behavior: contain;
}
.new-appointment-patient-list > button {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #edf2f1;
  background: transparent;
  color: #334155;
  text-align: left;
  cursor: pointer;
}
.new-appointment-patient-list > button:hover,
.new-appointment-patient-list > button:focus-visible {
  outline: 0;
  background: #f0fdfa;
  box-shadow: inset 3px 0 #0f766e;
}
.new-appointment-patient-list > button > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.new-appointment-patient-list > button strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.new-appointment-patient-list > button small,
.new-appointment-patient-list > button em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}
.new-appointment-patient-list > button i {
  padding: 7px 10px;
  border-radius: 9px;
  background: #0f766e;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.new-appointment-picker-state {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}
.appointment-page-layer {
  position: fixed;
  inset: 0;
  z-index: 2200;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(
      circle at top right,
      rgba(13, 148, 136, 0.1),
      transparent 34%
    ),
    #f3f7f6;
  color: #0f172a;
}
.appointment-page-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.82);
  background: #fffffff0;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px #0f172a0f;
}
.appointment-page-topbar > div {
  display: grid;
  gap: 2px;
}
.appointment-page-topbar span {
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.appointment-page-topbar h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
}
.appointment-page-close {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #d8e2df;
  border-radius: 11px;
  background: #fff;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
}
.appointment-page-close:hover {
  border-color: #0f766e;
  background: #f0fdfa;
  color: #0f766e;
}
.appointment-page-content {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 20px 24px 34px;
}
.appointment-page-content > .module-state,
.appointment-page-content > .module-error {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.appointment-editor-layout.apex-editor-layout {
  display: grid;
  grid-template-columns: minmax(360px, 480px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.apex-appointment-left {
  min-width: 0;
  display: grid;
  gap: 14px;
}
.apex-appointment-patient.compact-patient-card {
  margin: 0;
  padding: 16px;
  border: 1px solid #dce6e3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px #0f172a0f;
}
.compact-patient-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid #edf2f1;
}
.compact-patient-main > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.compact-patient-main strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compact-patient-main span {
  color: #64748b;
  font-size: 12px;
}
.compact-patient-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  padding-top: 13px;
}
.compact-patient-facts > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: #334155;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.compact-patient-facts b {
  color: #94a3b8;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.appointment-form.apex-appointment-form {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce6e3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px #0f172a0f;
}
.apex-form-header {
  position: sticky;
  top: 84px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e6edeb;
  background: #fffffff5;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.apex-form-header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.apex-form-header > div > strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.apex-form-header > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.apex-save-button,
.apex-cancel-button,
.apex-delete-button {
  min-height: 38px;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.apex-save-button {
  padding: 0 18px;
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #fff;
}
.apex-save-button:hover:not(:disabled) {
  background: #0b625b;
}
.apex-cancel-button {
  padding: 0 14px;
  border: 1px solid #d8e2df;
  background: #fff;
  color: #475569;
}
.apex-cancel-button:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
}
.apex-save-button:disabled,
.apex-cancel-button:disabled,
.apex-delete-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.apex-form-fields {
  display: grid;
  gap: 13px;
  padding: 16px;
}
.apex-form-fields label,
.appointment-extra-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}
.apex-form-fields label > small {
  color: #94a3b8;
  font-weight: 650;
}
.apex-form-fields label > b {
  color: #dc2626;
}
.apex-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.apex-form-fields input,
.apex-form-fields select,
.apex-form-fields textarea,
.appointment-extra-grid input,
.appointment-extra-grid select,
.appointment-extra-grid textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cfdad7;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
}
.apex-form-fields textarea,
.appointment-extra-grid textarea {
  min-height: 92px;
  resize: vertical;
}
.apex-form-fields input:focus,
.apex-form-fields select:focus,
.apex-form-fields textarea:focus,
.appointment-extra-grid input:focus,
.appointment-extra-grid select:focus,
.appointment-extra-grid textarea:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px #0f766e1c;
}
.apex-form-fields input:disabled,
.apex-form-fields select:disabled,
.apex-form-fields textarea:disabled,
.appointment-extra-grid input:disabled,
.appointment-extra-grid select:disabled,
.appointment-extra-grid textarea:disabled {
  background: #f1f5f4;
  color: #64748b;
}
.apex-notes-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.appointment-more-details {
  margin: 0 16px 16px;
  overflow: hidden;
  border: 1px solid #dce6e3;
  border-radius: 12px;
  background: #f8faf9;
}
.appointment-more-details > summary {
  padding: 12px 14px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.appointment-more-details[open] > summary {
  border-bottom: 1px solid #e4ebe9;
  background: #f0f7f5;
  color: #0f766e;
}
.appointment-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}
.apex-delete-button {
  margin: 0 16px 16px;
  padding: 0 14px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}
.appointment-page-layer .apex-form-fields button {
  min-height: 38px;
  border: 1px solid #d8e2df;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  font: inherit;
  cursor: pointer;
}
.appointment-page-layer .apex-form-fields button:hover:not(:disabled),
.appointment-page-layer .apex-form-fields button.selected {
  border-color: #0f766e;
  background: #ecfdf8;
  color: #0f766e;
}
.appointment-page-layer .apex-form-fields button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
.appointment-editor-layout > :not(.apex-appointment-left) {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce6e3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px #0f172a0f;
}
.appointment-editor-layout > :not(.apex-appointment-left) button {
  font: inherit;
}
.appointment-editor-layout > :not(.apex-appointment-left) button.selected {
  border-color: #0f766e !important;
  background: #e6f4f1 !important;
  color: #0f766e !important;
  box-shadow: inset 0 0 0 1px #0f766e;
}
.compact-day-total {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}
.compact-availability-empty,
.availability-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 24px;
  color: #64748b;
  text-align: center;
}
.compact-availability-empty strong,
.availability-empty strong {
  color: #334155;
  font-size: 14px;
}
.compact-availability-empty span,
.availability-empty span {
  max-width: 360px;
  font-size: 12px;
  line-height: 1.5;
}
.availability-table-wrap {
  max-width: 100%;
  overflow: auto;
  border-top: 1px solid #e8eeec;
}
.availability-table-wrap.is-loading {
  opacity: 0.58;
  pointer-events: none;
}
.availability-table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.availability-table-wrap th,
.availability-table-wrap td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf2f1;
  text-align: center;
  white-space: nowrap;
}
.availability-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8faf9;
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
}
.availability-table-wrap tr.selected-day td {
  background: #f0fdfa;
}
.availability-table-wrap td button {
  min-width: 52px;
  min-height: 34px;
  border: 1px solid #dde6e4;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}
.availability-table-wrap td button:hover:not(:disabled) {
  border-color: #0f766e;
  color: #0f766e;
}
.appointment-history-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}
.appointment-history-list > button {
  width: 100%;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #e1e8e6;
  border-radius: 11px;
  background: #fff;
  color: #334155;
  text-align: left;
  cursor: pointer;
}
.appointment-history-list > button:hover {
  border-color: #0f766e;
  background: #f0fdfa;
}
.appointment-history-list .history-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.appointment-history-list .history-main strong,
.appointment-history-list .history-main small,
.appointment-history-list .history-main em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-history-list .history-main em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}
.appointment-page-layer .module-three-sections {
  margin-top: 18px;
}
@media (max-width: 1120px) {
  .appointment-editor-layout.apex-editor-layout {
    grid-template-columns: 1fr;
  }
  .apex-appointment-left {
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
  }
  .apex-appointment-patient.compact-patient-card {
    position: sticky;
    top: 88px;
  }
}
@media (max-width: 780px) {
  .new-appointment-picker-layer {
    padding: 10px;
  }
  .new-appointment-picker-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 16px;
  }
  .new-appointment-picker-card > header {
    padding: 15px 16px;
  }
  .new-appointment-picker-search {
    margin: 14px 14px 8px;
  }
  .new-appointment-picker-caption {
    padding-inline: 16px;
  }
  .new-appointment-patient-list {
    padding-inline: 8px;
  }
  .new-appointment-patient-list > button {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }
  .new-appointment-patient-list > button em {
    display: none;
  }
  .appointment-page-topbar {
    min-height: 64px;
    padding: 10px 12px;
  }
  .appointment-page-topbar h2 {
    font-size: 17px;
  }
  .appointment-page-close {
    min-height: 38px;
    padding-inline: 11px;
  }
  .appointment-page-content {
    padding: 12px 10px 24px;
  }
  .apex-appointment-left {
    grid-template-columns: 1fr;
  }
  .apex-appointment-patient.compact-patient-card {
    position: static;
  }
  .apex-form-header {
    top: 64px;
    align-items: flex-start;
    flex-direction: column;
  }
  .apex-form-header > span {
    width: 100%;
  }
  .apex-save-button,
  .apex-cancel-button {
    flex: 1;
  }
  .apex-field-row,
  .apex-notes-row,
  .appointment-extra-grid,
  .compact-patient-facts {
    grid-template-columns: 1fr;
  }
  .appointment-history-list > button {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .appointment-history-list > button > :last-child {
    grid-column: 1 / -1;
  }
}
.appointment-page-layer button > b,
.appointment-page-layer label button > b,
.appointment-page-layer [class*="day"] button > b,
.appointment-page-layer [class*="hour"] button > b,
.appointment-page-layer [class*="minute"] button > b,
.appointment-page-layer [class*="count"] button > b {
  flex: 0 0 auto !important;
  min-width: 23px !important;
  min-height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 7px !important;
  padding: 2px 6px !important;
  border-radius: 999px !important;
  background: #e8f1ef !important;
  color: #0f766e !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}
.appointment-form.apex-appointment-form {
  overflow: visible !important;
}
.apex-form-header {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
}
.apex-form-fields label > button,
.apex-form-fields [class*="date"] > button,
.apex-form-fields [class*="count"] > button,
.apex-form-fields [class*="time"] button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 43px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 8px 11px !important;
  border: 1px solid #cfdad7 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 13px !important;
  text-align: left !important;
  box-shadow: none !important;
}
.apex-form-fields label > button:hover:not(:disabled),
.apex-form-fields [class*="date"] > button:hover:not(:disabled),
.apex-form-fields [class*="count"] > button:hover:not(:disabled),
.apex-form-fields [class*="time"] button:hover:not(:disabled) {
  border-color: #0f766e !important;
  background: #f0fdfa !important;
}
.apex-form-fields label > button:disabled,
.apex-form-fields [class*="date"] > button:disabled,
.apex-form-fields [class*="count"] > button:disabled,
.apex-form-fields [class*="time"] button:disabled {
  border-color: #dbe4e2 !important;
  background: #f1f5f4 !important;
  color: #94a3b8 !important;
  opacity: 1 !important;
}
.apex-form-fields [class*="date-picker"],
.apex-form-fields [class*="calendar"],
.apex-form-fields [class*="count-select"],
.apex-form-fields [class*="time-select"] {
  position: relative;
  min-width: 0;
}
.apex-form-fields [class*="popover"],
.apex-form-fields [class*="calendar-panel"],
.apex-form-fields [class*="date-panel"],
.apex-form-fields [class*="count-menu"],
.apex-form-fields [class*="select-menu"] {
  z-index: 80 !important;
  overflow: hidden !important;
  border: 1px solid #d6e0de !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 18px 50px #0f172a33 !important;
}
.appointment-editor-layout.apex-editor-layout > :not(.apex-appointment-left) {
  min-height: 314px !important;
  display: block !important;
  padding: 16px 18px 18px !important;
  overflow: hidden !important;
}
.appointment-editor-layout.apex-editor-layout
  > :not(.apex-appointment-left)
  button {
  appearance: none !important;
  -webkit-appearance: none !important;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid #d5dfdd;
  border-radius: 9px;
  background: #fff;
  color: #475569;
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  vertical-align: middle;
}
.appointment-editor-layout.apex-editor-layout
  > :not(.apex-appointment-left)
  button:hover:not(:disabled) {
  border-color: #0f766e;
  background: #f0fdfa;
  color: #0f766e;
}
.appointment-editor-layout.apex-editor-layout
  > :not(.apex-appointment-left)
  button:disabled {
  cursor: not-allowed;
  border-color: #e2e8e6;
  background: #f4f6f6;
  color: #9aa7b4;
  opacity: 1;
}
.appointment-editor-layout.apex-editor-layout
  > :not(.apex-appointment-left)
  button.selected,
.appointment-editor-layout.apex-editor-layout
  > :not(.apex-appointment-left)
  button.active {
  border-color: #0f766e !important;
  background: #e6f4f1 !important;
  color: #0f766e !important;
  box-shadow: inset 0 0 0 1px #0f766e !important;
}
.appointment-availability-panel,
.compact-availability-panel,
.apex-availability-panel {
  min-width: 0;
}
.appointment-availability-tabs,
.compact-availability-tabs,
.availability-tabs,
.appointment-editor-layout.apex-editor-layout
  > :not(.apex-appointment-left)
  > nav,
.appointment-editor-layout.apex-editor-layout
  > :not(.apex-appointment-left)
  > div:first-child {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin: 0 0 13px !important;
}
.compact-availability-header,
.appointment-availability-header,
.availability-panel-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #e7edeb !important;
}
.compact-availability-header span,
.appointment-availability-header span,
.availability-panel-header span {
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compact-availability-header strong,
.appointment-availability-header strong,
.availability-panel-header strong {
  color: #0f172a;
  font-size: 16px;
}
.compact-upcoming-days,
.upcoming-days,
.availability-days,
[class*="upcoming-day"] {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(80px, 1fr)) !important;
  gap: 7px !important;
  margin: 10px 0 14px !important;
  overflow-x: auto !important;
  padding-bottom: 3px !important;
}
.compact-upcoming-days button,
.upcoming-days button,
.availability-days button,
[class*="upcoming-day"] button {
  min-width: 82px !important;
  display: grid !important;
  gap: 3px !important;
  padding: 8px 9px !important;
}
.compact-upcoming-days button span,
.upcoming-days button span,
.availability-days button span {
  white-space: nowrap;
}
.compact-hour-grid,
.availability-hour-grid,
[class*="hour-grid"] {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(90px, 1fr)) !important;
  gap: 8px !important;
  margin-top: 12px !important;
}
.compact-hour-grid button,
.availability-hour-grid button,
[class*="hour-grid"] button {
  min-height: 46px !important;
  justify-content: space-between !important;
}
.compact-availability-empty,
.availability-empty {
  min-height: 180px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 7px !important;
  padding: 28px 20px !important;
  color: #64748b !important;
  text-align: center !important;
}
.compact-availability-empty svg,
.availability-empty svg {
  color: #64748b;
}
.compact-availability-empty strong,
.availability-empty strong {
  color: #334155 !important;
  font-size: 14px !important;
}
.compact-availability-empty span,
.availability-empty span {
  color: #64748b !important;
  font-size: 12px !important;
}
.availability-legend,
.compact-availability-legend,
[class*="availability-legend"],
[class*="workload-legend"] {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 7px 12px !important;
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid #e7edeb !important;
  color: #64748b !important;
  font-size: 11px !important;
}
.availability-legend + button,
.compact-availability-legend + button,
[class*="availability-legend"] + button,
[class*="workload-legend"] + button {
  margin-top: 10px !important;
  border-color: #0f766e !important;
  color: #0f766e !important;
}
.appointment-page-layer button > span,
.appointment-page-layer button > strong,
.appointment-page-layer button > small {
  display: inline-block;
}
@media (max-width: 1120px) {
  .appointment-editor-layout.apex-editor-layout > :not(.apex-appointment-left) {
    padding: 14px !important;
  }
}
@media (max-width: 780px) {
  .appointment-editor-layout.apex-editor-layout > :not(.apex-appointment-left) {
    min-height: 260px !important;
    padding: 12px !important;
  }
  .compact-upcoming-days,
  .upcoming-days,
  .availability-days,
  [class*="upcoming-day"] {
    grid-template-columns: repeat(7, minmax(76px, 1fr)) !important;
  }
  .compact-hour-grid,
  .availability-hour-grid,
  [class*="hour-grid"] {
    grid-template-columns: repeat(2, minmax(90px, 1fr)) !important;
  }
}
.appointment-page-layer {
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(13, 148, 136, 0.09),
      transparent 30%
    ),
    #f4f7f6;
}
.appointment-page-content {
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 18px 22px 34px;
}
.appointment-v3-shell {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(430px, 560px) minmax(
      430px,
      1fr
    );
  align-items: start;
  gap: 16px;
}
.appointment-v3-sidebar,
.appointment-v3-main,
.appointment-v3-schedule {
  min-width: 0;
}
.appointment-v3-sidebar {
  display: grid;
  gap: 14px;
}
.appointment-v3-patient-card,
.appointment-v3-summary-card,
.appointment-v3-history-card,
.appointment-v3-form,
.appointment-v3-schedule {
  overflow: hidden;
  border: 1px solid #dce6e3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px #0f172a0e;
}
.appointment-v3-patient-card {
  padding: 16px;
}
.appointment-v3-patient-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f1;
}
.appointment-v3-patient-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.appointment-v3-patient-head strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-v3-patient-head span {
  color: #64748b;
  font-size: 12px;
}
.appointment-v3-patient-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding-top: 14px;
}
.appointment-v3-patient-facts div {
  min-width: 0;
}
.appointment-v3-patient-facts dt,
.appointment-v3-summary-card dt {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.appointment-v3-patient-facts dd,
.appointment-v3-summary-card dd {
  margin: 4px 0 0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.appointment-v3-summary-card > header,
.appointment-v3-history-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid #e8eeec;
  background: #f8faf9;
}
.appointment-v3-summary-card > header > span,
.appointment-v3-history-card > header > span {
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}
.appointment-v3-summary-card > dl {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 15px 12px;
}
.appointment-v3-summary-card > dl > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f1;
}
.appointment-v3-summary-card > dl > div:last-child {
  border-bottom: 0;
}
.appointment-v3-summary-card dd {
  max-width: 62%;
  margin-top: 0;
  text-align: right;
}
.appointment-v3-summary-card .appointment-v10-update-row {
  margin-inline: -15px;
  padding-inline: 15px;
  background: #f7fbfa;
}
.appointment-v3-summary-card .appointment-v10-update-row dt {
  color: #5f7f78;
}
.appointment-v3-summary-card .appointment-v10-update-row dd {
  color: #0f766e;
  font-weight: 800;
}
.appointment-v3-history-card > header b {
  min-width: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e6f4f1;
  color: #0f766e;
  font-size: 10px;
  text-align: center;
}
.appointment-v3-history-card > div {
  display: grid;
  padding: 7px;
}
.appointment-v3-history-card button {
  width: 100%;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid #edf2f1;
  border-radius: 9px;
  background: transparent;
  color: #334155;
  text-align: left;
  cursor: pointer;
}
.appointment-v3-history-card button:hover {
  background: #f0fdfa;
}
.appointment-v3-history-card button > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.appointment-v3-history-card button strong,
.appointment-v3-history-card button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-v3-history-card button strong {
  font-size: 11px;
}
.appointment-v3-history-card button small {
  color: #64748b;
  font-size: 10px;
}
.appointment-v3-form {
  overflow: hidden;
}
.appointment-v3-form-head {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #e6edeb;
  background: #fffffff7;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.appointment-v3-form-head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.appointment-v3-form-head span,
.appointment-v3-schedule > header span,
.appointment-v3-section-title span {
  color: #64748b;
  font-size: 10px;
}
.appointment-v3-form-head > div:first-child > span,
.appointment-v3-schedule > header > div > span {
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.appointment-v3-form-head h3,
.appointment-v3-schedule > header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
}
.appointment-v3-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.appointment-v3-actions button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.appointment-v3-actions .primary {
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #fff;
}
.appointment-v3-actions .secondary {
  border: 1px solid #d6e0de;
  background: #fff;
  color: #475569;
}
.appointment-v3-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.appointment-v3-section {
  padding: 16px;
  border-bottom: 1px solid #e9efed;
}
.appointment-v3-section-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.appointment-v3-section-title > b {
  min-width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e6f4f1;
  color: #0f766e;
  font-size: 10px;
}
.appointment-v3-section-title > div {
  display: grid;
  gap: 3px;
}
.appointment-v3-section-title strong {
  color: #0f172a;
  font-size: 13px;
}
.appointment-v3-grid {
  display: grid;
  gap: 12px;
}
.appointment-v3-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.appointment-v3-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.appointment-v3-grid .wide {
  grid-column: 1 / -1;
}
.appointment-v3-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}
.appointment-v3-grid input,
.appointment-v3-grid select,
.appointment-v3-grid textarea,
.appointment-v3-schedule input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cfdad7;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 12px;
}
.appointment-v3-grid textarea {
  min-height: 110px;
  resize: vertical;
}
.appointment-v3-grid input:focus,
.appointment-v3-grid select:focus,
.appointment-v3-grid textarea:focus,
.appointment-v3-schedule input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px #0f766e1a;
}
.appointment-v3-grid input:disabled,
.appointment-v3-grid select:disabled,
.appointment-v3-grid textarea:disabled {
  background: #f1f5f4;
  color: #64748b;
}
.appointment-v3-slot-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.appointment-v3-slot-summary > div {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid #dce6e3;
  border-radius: 11px;
  background: #f8faf9;
}
.appointment-v3-slot-summary span {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.appointment-v3-slot-summary strong {
  color: #0f172a;
  font-size: 13px;
}
.appointment-v3-slot-summary small {
  color: #64748b;
  font-size: 10px;
}
.appointment-v3-form > .module-error {
  margin: 0 16px 14px;
}
.appointment-v3-delete {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 16px 16px;
  padding: 0 13px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff1f2;
  color: #b91c1c;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.appointment-v3-schedule {
  position: sticky;
  top: 88px;
}
.appointment-v3-schedule > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid #e6edeb;
  background: #f8faf9;
}
.appointment-v3-schedule > header > div {
  display: grid;
  gap: 3px;
}
.appointment-v3-schedule-section {
  padding: 15px 16px;
  border-bottom: 1px solid #e9efed;
}
.appointment-v3-schedule-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.appointment-v3-schedule-title > div {
  display: grid;
  gap: 3px;
}
.appointment-v3-schedule-title strong {
  color: #0f172a;
  font-size: 12px;
}
.appointment-v3-schedule-title span {
  color: #64748b;
  font-size: 10px;
}
.appointment-v3-schedule-title input {
  width: 145px;
  min-height: 36px;
}
.appointment-v3-schedule-title > b {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e6f4f1;
  color: #0f766e;
  font-size: 10px;
}
.appointment-v3-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 3px;
}
.appointment-v3-days button,
.appointment-v3-hours button,
.appointment-v3-minutes button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d8e2df;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font: inherit;
  cursor: pointer;
}
.appointment-v3-days button {
  min-width: 76px;
  display: grid;
  gap: 3px;
  padding: 8px;
  text-align: center;
}
.appointment-v3-days button > span {
  color: #64748b;
  font-size: 10px;
}
.appointment-v3-days button > strong {
  color: #0f172a;
  font-size: 17px;
}
.appointment-v3-days button > small {
  color: #64748b;
  font-size: 9px;
}
.appointment-v3-days button.selected,
.appointment-v3-hours button.selected,
.appointment-v3-minutes button.selected {
  border-color: #0f766e;
  background: #e6f4f1;
  color: #0f766e;
  box-shadow: inset 0 0 0 1px #0f766e;
}
.appointment-v3-days button:disabled,
.appointment-v3-hours button:disabled,
.appointment-v3-minutes button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
.appointment-v3-hours {
  max-height: 280px;
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 7px;
  overflow: auto;
  padding-right: 2px;
}
.appointment-v3-hours button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 7px 9px;
}
.appointment-v3-hours button span {
  font-size: 10px;
  font-weight: 800;
}
.appointment-v3-hours button b {
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef3f2;
  color: #64748b;
  font-size: 9px;
}
.appointment-v3-minutes {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 7px;
}
.appointment-v3-minutes button {
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 7px;
}
.appointment-v3-minutes button span {
  color: #0f172a;
  font-size: 15px;
  font-weight: 850;
}
.appointment-v3-minutes button small {
  color: #64748b;
  font-size: 9px;
}
.appointment-v3-empty {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 30px;
  color: #64748b;
  text-align: center;
}
.appointment-v3-empty strong {
  color: #334155;
  font-size: 14px;
}
.appointment-v3-empty span {
  max-width: 320px;
  font-size: 11px;
  line-height: 1.5;
}
.appointment-v3-schedule > .module-error {
  margin: 14px 16px;
}
@media (max-width: 1380px) {
  .appointment-v3-shell {
    grid-template-columns: minmax(240px, 290px) minmax(420px, 1fr);
  }
  .appointment-v3-schedule {
    position: static;
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .appointment-page-content {
    padding: 12px 10px 24px;
  }
  .appointment-v3-shell {
    grid-template-columns: 1fr;
  }
  .appointment-v3-sidebar,
  .appointment-v3-main,
  .appointment-v3-schedule {
    grid-column: auto;
  }
  .appointment-v3-form-head {
    top: 64px;
  }
  .appointment-v3-days {
    grid-template-columns: repeat(14, minmax(76px, 1fr));
  }
}
@media (max-width: 620px) {
  .appointment-v3-form-head {
    align-items: stretch;
    flex-direction: column;
  }
  .appointment-v3-actions {
    width: 100%;
  }
  .appointment-v3-actions button {
    flex: 1;
  }
  .appointment-v3-grid.two,
  .appointment-v3-grid.three,
  .appointment-v3-slot-summary,
  .appointment-v3-patient-facts {
    grid-template-columns: 1fr;
  }
  .appointment-v3-hours {
    grid-template-columns: repeat(2, minmax(82px, 1fr));
  }
  .appointment-v3-minutes {
    grid-template-columns: repeat(2, minmax(70px, 1fr));
  }
  .appointment-v3-schedule-title {
    align-items: stretch;
    flex-direction: column;
  }
  .appointment-v3-schedule-title input {
    width: 100%;
  }
}
.appointment-page-content {
  padding-bottom: 104px !important;
}
.appointment-v3-form-head {
  position: fixed !important;
  z-index: 1200 !important;
  inset: auto 0 0 !important;
  width: 100% !important;
  min-height: 78px !important;
  margin: 0 !important;
  padding: 14px 26px !important;
  border-top: 1px solid #d7e2df !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: #fffffffa !important;
  box-shadow: 0 -12px 35px #0f172a1f !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
}
.appointment-v3-form-head > div:first-child {
  max-width: 760px;
}
.appointment-v3-actions .primary {
  min-width: 190px;
}
.appointment-v3-range-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.appointment-v3-range-button,
.appointment-v3-range-today {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid #cfdad7;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.appointment-v3-range-button.primary {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}
.appointment-v3-range-button:hover,
.appointment-v3-range-today:hover {
  border-color: #0f766e;
  background: #f0fdfa;
  color: #0f766e;
}
.appointment-v3-range-button.primary:hover {
  background: #0b665f;
  color: #fff;
}
.appointment-v3-heat-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.appointment-v3-heat-legend span {
  min-width: 38px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #334155;
  font-size: 8px;
  font-weight: 850;
  text-align: center;
}
.appointment-v3-days button.load-empty,
.appointment-v3-hours button.load-empty,
.appointment-v3-minutes button.load-empty,
.appointment-v3-heat-legend .load-empty {
  border-color: #d8e2df !important;
  background: #fff !important;
}
.appointment-v3-days button.load-low,
.appointment-v3-hours button.load-low,
.appointment-v3-minutes button.load-low,
.appointment-v3-heat-legend .load-low {
  border-color: #86d9b4 !important;
  background: #e9f9f1 !important;
}
.appointment-v3-days button.load-medium,
.appointment-v3-hours button.load-medium,
.appointment-v3-minutes button.load-medium,
.appointment-v3-heat-legend .load-medium {
  border-color: #e8c84f !important;
  background: #fff8cf !important;
}
.appointment-v3-days button.load-high,
.appointment-v3-hours button.load-high,
.appointment-v3-minutes button.load-high,
.appointment-v3-heat-legend .load-high {
  border-color: #f59a45 !important;
  background: #fff0dc !important;
}
.appointment-v3-days button.load-critical,
.appointment-v3-hours button.load-critical,
.appointment-v3-minutes button.load-critical,
.appointment-v3-heat-legend .load-critical {
  border-color: #e66a70 !important;
  background: #ffe6e8 !important;
}
.appointment-v3-days button.load-low small,
.appointment-v3-hours button.load-low b,
.appointment-v3-minutes button.load-low small {
  color: #13795b !important;
}
.appointment-v3-days button.load-medium small,
.appointment-v3-hours button.load-medium b,
.appointment-v3-minutes button.load-medium small {
  color: #9a6b00 !important;
}
.appointment-v3-days button.load-high small,
.appointment-v3-hours button.load-high b,
.appointment-v3-minutes button.load-high small {
  color: #b64b00 !important;
}
.appointment-v3-days button.load-critical small,
.appointment-v3-hours button.load-critical b,
.appointment-v3-minutes button.load-critical small {
  color: #b4232a !important;
}
@media (max-width: 760px) {
  .appointment-page-content {
    padding-bottom: 152px !important;
  }
  .appointment-v3-form-head {
    align-items: stretch !important;
    flex-direction: column !important;
    min-height: 134px !important;
    padding: 12px !important;
  }
  .appointment-v3-range-nav {
    justify-content: stretch;
  }
  .appointment-v3-range-button,
  .appointment-v3-range-today {
    flex: 1;
  }
}
.appointment-page-topbar {
  min-height: 50px !important;
  justify-content: flex-end !important;
  padding: 7px 20px !important;
}
.appointment-page-topbar > div {
  display: none !important;
}
.appointment-v3-form-head {
  position: fixed !important;
  z-index: 150 !important;
  inset: auto 0 0 !important;
  width: 100% !important;
  min-height: 76px !important;
  margin: 0 !important;
  padding: 12px 28px !important;
  border-top: 1px solid #d4dfdc !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: #fffffffa !important;
  box-shadow: 0 -10px 32px #0f172a1f !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
}
.appointment-page-content,
.appointment-v3-shell {
  padding-bottom: 94px !important;
}
.appointment-v3-form-head h3 {
  font-size: 18px !important;
}
.appointment-v3-actions .primary {
  min-width: 180px;
}
.appointment-v3-range-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}
.appointment-v3-range-nav button {
  min-height: 35px;
  padding: 7px 11px;
  border: 1px solid #d5dfdd;
  border-radius: 9px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.appointment-v3-range-nav button.today {
  border-color: #0f766e;
  background: #e6f4f1;
  color: #0f766e;
}
.appointment-v3-days button.heat-empty,
.appointment-v3-hours button.heat-empty,
.appointment-v3-minutes button.heat-empty {
  border-color: #d8e2df;
  background: #fff;
}
.appointment-v3-days button.heat-low,
.appointment-v3-hours button.heat-low,
.appointment-v3-minutes button.heat-low {
  border-color: #86efac;
  background: #ecfdf5;
  color: #166534;
}
.appointment-v3-days button.heat-medium,
.appointment-v3-hours button.heat-medium,
.appointment-v3-minutes button.heat-medium {
  border-color: #facc15;
  background: #fefce8;
  color: #854d0e;
}
.appointment-v3-days button.heat-high,
.appointment-v3-hours button.heat-high,
.appointment-v3-minutes button.heat-high {
  border-color: #fb923c;
  background: #fff7ed;
  color: #9a3412;
}
.appointment-v3-days button.heat-critical,
.appointment-v3-hours button.heat-critical,
.appointment-v3-minutes button.heat-critical {
  border-color: #f87171;
  background: #fef2f2;
  color: #991b1b;
}
.appointment-v3-days button.selected,
.appointment-v3-hours button.selected,
.appointment-v3-minutes button.selected {
  border-color: #0f766e !important;
  box-shadow: inset 0 0 0 2px #0f766e !important;
}
.appointment-v3-booked-section {
  background: #f8faf9;
}
.appointment-v3-booked-empty {
  padding: 22px;
  border: 1px dashed #cbd8d5;
  border-radius: 12px;
  background: #fff;
  color: #64748b;
  font-size: 11px;
  text-align: center;
}
.appointment-v3-booked-list {
  max-height: 430px;
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 3px;
}
.appointment-v3-booked-card {
  overflow: hidden;
  border: 1px solid #d8e2df;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 16px #0f172a0a;
}
.appointment-v3-booked-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #e7edeb;
  background: #f8faf9;
}
.appointment-v3-booked-card > header button {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0f766e !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-align: left;
}
.appointment-v3-booked-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  padding: 9px 12px;
  color: #64748b;
  font-size: 10px;
}
.appointment-v3-booked-meta strong {
  color: #0f172a;
  font-size: 12px;
}
.appointment-v3-booked-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}
.appointment-v3-booked-notes section {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e0e8e6;
  border-radius: 10px;
  background: #fbfcfc;
}
.appointment-v3-booked-notes span {
  display: block;
  margin-bottom: 6px;
  color: #0f766e;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.appointment-v3-booked-notes p {
  margin: 0;
  color: #334155;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .appointment-v3-form-head {
    min-height: 108px !important;
    align-items: stretch !important;
    padding: 10px 12px !important;
  }
  .appointment-page-content,
  .appointment-v3-shell {
    padding-bottom: 126px !important;
  }
  .appointment-v3-booked-notes {
    grid-template-columns: 1fr;
  }
  .appointment-v3-range-nav {
    justify-content: stretch;
  }
  .appointment-v3-range-nav button {
    flex: 1;
  }
}
.appointment-v3-booked-section {
  display: none !important;
}
.appointment-v3-schedule,
.appointment-v3-schedule-section,
.appointment-v3-hours-with-popovers {
  overflow: visible !important;
}
.appointment-v3-hours-with-popovers {
  max-height: none !important;
}
.appointment-v3-hour-slot {
  position: relative;
  min-width: 0;
}
.appointment-v3-hour-slot > button {
  width: 100%;
}
.appointment-v3-hour-popover {
  position: absolute;
  z-index: 500;
  top: calc(100% + 9px);
  left: 50%;
  width: min(590px, calc(100vw - 42px));
  max-height: 430px;
  overflow: hidden;
  border: 1px solid #cbd8d5;
  border-radius: 15px;
  background: #fff;
  color: #334155;
  box-shadow: 0 24px 65px #0f172a3d;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease,
    visibility 0.14s ease;
}
.appointment-v3-hour-slot:hover .appointment-v3-hour-popover,
.appointment-v3-hour-slot:focus-within .appointment-v3-hour-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%);
}
.appointment-v3-hour-popover:before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  border-top: 1px solid #cbd8d5;
  border-left: 1px solid #cbd8d5;
  background: #f8faf9;
  transform: translate(-50%) rotate(45deg);
}
.appointment-v3-hour-popover > header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid #e4ece9;
  background: #f8faf9;
}
.appointment-v3-hour-popover > header > div {
  display: grid;
  gap: 2px;
}
.appointment-v3-hour-popover > header strong {
  color: #0f172a;
  font-size: 13px;
}
.appointment-v3-hour-popover > header span {
  color: #64748b;
  font-size: 10px;
}
.appointment-v3-hour-popover > header > b {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6f4f1;
  color: #0f766e;
  font-size: 9px;
}
.appointment-v3-hour-popover-list {
  max-height: 370px;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 10px;
}
.appointment-v3-hover-appointment {
  overflow: hidden;
  border: 1px solid #dce6e3;
  border-radius: 11px;
  background: #fff;
}
.appointment-v3-hover-appointment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 9px 10px;
  border-bottom: 1px solid #edf2f1;
  background: #fbfcfc;
}
.appointment-v3-hover-appointment-head > button {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0f766e !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  text-align: left;
}
.appointment-v3-hover-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 11px;
  padding: 8px 10px;
  color: #64748b;
  font-size: 9px;
}
.appointment-v3-hover-meta strong {
  color: #0f172a;
  font-size: 11px;
}
.appointment-v3-hover-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}
.appointment-v3-hover-notes section {
  min-width: 0;
  padding: 9px;
  border: 1px solid #e2e9e7;
  border-radius: 9px;
  background: #f8faf9;
}
.appointment-v3-hover-notes span {
  display: block;
  margin-bottom: 5px;
  color: #0f766e;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.appointment-v3-hover-notes p {
  margin: 0;
  color: #334155;
  font-size: 10px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.appointment-v3-hour-slot:nth-child(4n + 1) .appointment-v3-hour-popover {
  left: 0;
  transform: translateY(-6px);
}
.appointment-v3-hour-slot:nth-child(4n + 1):hover .appointment-v3-hour-popover,
.appointment-v3-hour-slot:nth-child(4n + 1):focus-within
  .appointment-v3-hour-popover {
  transform: translate(0);
}
.appointment-v3-hour-slot:nth-child(4n) .appointment-v3-hour-popover {
  right: 0;
  left: auto;
  transform: translateY(-6px);
}
.appointment-v3-hour-slot:nth-child(4n):hover .appointment-v3-hour-popover,
.appointment-v3-hour-slot:nth-child(4n):focus-within
  .appointment-v3-hour-popover {
  transform: translate(0);
}
@media (max-width: 760px) {
  .appointment-v3-hour-popover {
    position: fixed;
    inset: auto 10px 120px;
    width: auto;
    max-height: min(62vh, 500px);
    transform: translateY(8px);
  }
  .appointment-v3-hour-slot:hover .appointment-v3-hour-popover,
  .appointment-v3-hour-slot:focus-within .appointment-v3-hour-popover,
  .appointment-v3-hour-slot:nth-child(4n + 1):hover
    .appointment-v3-hour-popover,
  .appointment-v3-hour-slot:nth-child(4n + 1):focus-within
    .appointment-v3-hour-popover,
  .appointment-v3-hour-slot:nth-child(4n):hover .appointment-v3-hour-popover,
  .appointment-v3-hour-slot:nth-child(4n):focus-within
    .appointment-v3-hour-popover {
    transform: translateY(0);
  }
  .appointment-v3-hour-popover:before {
    display: none;
  }
  .appointment-v3-hover-notes {
    grid-template-columns: 1fr;
  }
}
.appointment-v3-schedule {
  position: sticky !important;
  top: 88px !important;
  z-index: 2 !important;
  isolation: isolate !important;
}
.appointment-page-layer,
.appointment-page-content,
.appointment-v3-shell,
.appointment-v3-schedule-section,
.appointment-v3-hours-with-popovers {
  overflow: visible !important;
}
.appointment-v3-hour-slot {
  position: relative !important;
  z-index: 1 !important;
}
.appointment-v3-hour-slot:hover,
.appointment-v3-hour-slot:focus-within {
  z-index: 60 !important;
}
.appointment-v3-hour-popover {
  z-index: 80 !important;
  top: auto !important;
  bottom: calc(100% + 11px) !important;
  transform: translate(-50%, 7px) !important;
}
.appointment-v3-hour-slot:hover .appointment-v3-hour-popover,
.appointment-v3-hour-slot:focus-within .appointment-v3-hour-popover {
  transform: translate(-50%) !important;
}
.appointment-v3-hour-popover:before {
  top: auto !important;
  bottom: -7px !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 1px solid #cbd8d5 !important;
  border-bottom: 1px solid #cbd8d5 !important;
  background: #fff !important;
}
.appointment-v3-hour-slot:nth-child(4n + 1) .appointment-v3-hour-popover {
  left: 0 !important;
  right: auto !important;
  transform: translateY(7px) !important;
}
.appointment-v3-hour-slot:nth-child(4n + 1):hover .appointment-v3-hour-popover,
.appointment-v3-hour-slot:nth-child(4n + 1):focus-within
  .appointment-v3-hour-popover {
  transform: translate(0) !important;
}
.appointment-v3-hour-slot:nth-child(4n) .appointment-v3-hour-popover {
  right: 0 !important;
  left: auto !important;
  transform: translateY(7px) !important;
}
.appointment-v3-hour-slot:nth-child(4n):hover .appointment-v3-hour-popover,
.appointment-v3-hour-slot:nth-child(4n):focus-within
  .appointment-v3-hour-popover {
  transform: translate(0) !important;
}
.appointment-v3-form-head,
.appointment-v3-bottom-actions {
  z-index: 100 !important;
}
@media (max-width: 1380px) {
  .appointment-v3-schedule {
    position: static !important;
    top: auto !important;
    z-index: 1 !important;
  }
}
@media (max-width: 760px) {
  .appointment-v3-hour-popover {
    position: fixed !important;
    inset: 72px 10px auto !important;
    width: auto !important;
    max-height: calc(100vh - 185px) !important;
    transform: translateY(-8px) !important;
    z-index: 500 !important;
  }
  .appointment-v3-hour-slot:hover .appointment-v3-hour-popover,
  .appointment-v3-hour-slot:focus-within .appointment-v3-hour-popover,
  .appointment-v3-hour-slot:nth-child(4n + 1):hover
    .appointment-v3-hour-popover,
  .appointment-v3-hour-slot:nth-child(4n + 1):focus-within
    .appointment-v3-hour-popover,
  .appointment-v3-hour-slot:nth-child(4n):hover .appointment-v3-hour-popover,
  .appointment-v3-hour-slot:nth-child(4n):focus-within
    .appointment-v3-hour-popover {
    transform: translateY(0) !important;
  }
  .appointment-v3-hour-popover:before {
    display: none !important;
  }
}
.appointment-v3-schedule > header {
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 8px 14px !important;
  padding: 10px 14px !important;
}
.appointment-v3-schedule > header > div {
  min-width: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 4px 10px !important;
}
.appointment-v3-schedule > header h3 {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.15 !important;
}
.appointment-v3-schedule > header span {
  font-size: 9px !important;
  line-height: 1.1 !important;
}
.appointment-v3-schedule > header ul,
.appointment-v3-schedule > header [class*="legend"],
.appointment-v3-schedule > header [class*="heat"] {
  margin: 0 !important;
  padding: 0 !important;
}
.appointment-v3-schedule > header [class*="legend"] {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
}
.appointment-v3-schedule > header [class*="legend"] > *,
.appointment-v3-schedule > header [class*="heat"] > * {
  min-height: 22px !important;
  padding: 2px 8px !important;
  font-size: 9px !important;
  line-height: 1 !important;
}
.appointment-v3-schedule > .appointment-v3-schedule-section:first-of-type {
  padding: 10px 14px 12px !important;
}
.appointment-v3-schedule
  > .appointment-v3-schedule-section:first-of-type
  .appointment-v3-schedule-title {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) auto !important;
  align-items: center !important;
  gap: 8px 14px !important;
  margin: 0 0 9px !important;
}
.appointment-v3-schedule
  > .appointment-v3-schedule-section:first-of-type
  .appointment-v3-schedule-title
  > div:first-child {
  min-width: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 4px 9px !important;
}
.appointment-v3-schedule
  > .appointment-v3-schedule-section:first-of-type
  .appointment-v3-schedule-title
  strong {
  font-size: 12px !important;
  line-height: 1.15 !important;
}
.appointment-v3-schedule
  > .appointment-v3-schedule-section:first-of-type
  .appointment-v3-schedule-title
  span {
  font-size: 9px !important;
  line-height: 1.15 !important;
}
.appointment-v3-range-nav {
  width: auto !important;
  display: grid !important;
  grid-template-columns: repeat(3, max-content) !important;
  align-items: center !important;
  justify-content: end !important;
  gap: 5px !important;
  margin: 0 !important;
}
.appointment-v3-range-nav button {
  width: auto !important;
  min-width: 0 !important;
  min-height: 30px !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  font-size: 9px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.appointment-v3-days {
  margin-top: 0 !important;
}
@media (max-width: 760px) {
  .appointment-v3-schedule
    > .appointment-v3-schedule-section:first-of-type
    .appointment-v3-schedule-title {
    grid-template-columns: 1fr !important;
  }
  .appointment-v3-range-nav {
    width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .appointment-v3-range-nav button {
    width: 100% !important;
    padding-inline: 6px !important;
  }
}
.appointment-v3-package-status {
  overflow: hidden;
  border: 1px solid #dbe5e2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px #0f172a0b;
}
.appointment-v3-package-status > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e7eeec;
}
.appointment-v3-package-status.has-package > header {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}
.appointment-v3-package-status.no-package > header {
  background: #f8faf9;
}
.appointment-v3-package-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #0f766e;
}
.appointment-v3-package-title > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.appointment-v3-package-title span {
  color: #64748b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.appointment-v3-package-title strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-v3-package-status > header > b {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  font-size: 9px;
  letter-spacing: 0.06em;
}
.appointment-v3-package-status.has-package > header > b {
  background: #16a34a;
  color: #fff;
}
.appointment-v3-package-list {
  display: grid;
  gap: 0;
  padding: 5px 13px;
}
.appointment-v3-package-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #edf2f1;
}
.appointment-v3-package-row:last-of-type {
  border-bottom: 0;
}
.appointment-v3-package-row > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.appointment-v3-package-row strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-v3-package-row span {
  color: #64748b;
  font-size: 9px;
}
.appointment-v3-package-metrics {
  text-align: right;
}
.appointment-v3-package-metrics strong {
  color: #15803d;
}
.appointment-v3-package-more {
  padding: 7px 0;
  color: #64748b;
  font-size: 9px;
  text-align: center;
}
.appointment-v3-package-message {
  padding: 11px 14px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}
.appointment-v3-package-message.error {
  color: #b91c1c;
}
.appointment-v3-package-open {
  width: calc(100% - 26px);
  min-height: 34px;
  margin: 0 13px 12px;
  border: 1px solid #b7d8d2;
  border-radius: 9px;
  background: #f0fdfa;
  color: #0f766e;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.appointment-v3-package-open:hover {
  border-color: #0f766e;
  background: #e6f4f1;
}
@media (max-width: 620px) {
  .appointment-v3-package-row {
    grid-template-columns: 1fr;
  }
  .appointment-v3-package-metrics {
    text-align: left;
  }
}
.appointment-v9-package-session {
  padding: 13px 14px 15px;
  border-top: 1px solid #dce8e4;
  background: #fbfefd;
}
.appointment-v9-package-session-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.appointment-v9-package-session-head > div {
  display: grid;
  gap: 2px;
}
.appointment-v9-package-session-head span,
.appointment-v9-package-session label > span,
.appointment-v9-attached-sessions > span {
  color: #64748b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.appointment-v9-package-session-head strong {
  color: #0f172a;
  font-size: 11px;
}
.appointment-v9-package-session-head > b {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6f4f1;
  color: #0f766e;
  font-size: 9px;
}
.appointment-v9-package-session form,
.appointment-v9-package-session label {
  display: grid;
  gap: 6px;
}
.appointment-v9-package-session select,
.appointment-v9-package-session input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cfdcd8;
  border-radius: 9px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 11px;
}
.appointment-v9-package-session-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}
.appointment-v9-package-session-row button {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #0f766e;
  border-radius: 9px;
  background: #0f766e;
  color: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.appointment-v9-package-session-row button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.appointment-v9-package-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 9px;
  background: #eef8f5;
}
.appointment-v9-package-preview strong {
  color: #0f766e;
  font-size: 10px;
}
.appointment-v9-package-preview span {
  color: #475569;
  font-size: 9px;
}
.appointment-v9-package-empty,
.appointment-v9-package-result {
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1.45;
}
.appointment-v9-package-empty {
  background: #f1f5f4;
  color: #64748b;
}
.appointment-v9-package-result.error {
  margin-top: 9px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}
.appointment-v9-package-result.success {
  margin-top: 9px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}
.appointment-v9-attached-sessions {
  display: grid;
  gap: 6px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #e1ebe8;
}
.appointment-v9-attached-sessions > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  background: #fff;
}
.appointment-v9-attached-sessions strong {
  color: #334155;
  font-size: 10px;
}
.appointment-v9-attached-sessions small {
  color: #64748b;
  font-size: 9px;
  text-align: right;
}
@media (max-width: 620px) {
  .appointment-v9-package-session-row {
    grid-template-columns: 1fr;
  }
  .appointment-v9-package-session-head,
  .appointment-v9-package-preview,
  .appointment-v9-attached-sessions > div {
    align-items: stretch;
    flex-direction: column;
  }
  .appointment-v9-attached-sessions small {
    text-align: left;
  }
}
.ra-report-workspace {
  min-width: 0;
  padding: 16px 24px 48px;
  color: #15312d;
}
.ra-report-header {
  min-height: 96px;
  margin: 0 -24px 18px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #103f39, #176b62 60%, #1b7c70);
  color: #fff;
}
.ra-report-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}
.ra-report-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 15px;
  background: #ffffff1c;
  box-shadow: inset 0 1px #ffffff24;
}
.ra-report-heading p {
  margin: 0 0 3px;
  color: #9fe1d5;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.ra-report-heading h1 {
  margin: 0;
  font:
    750 24px/1.1 Manrope,
    sans-serif;
  letter-spacing: -0.04em;
}
.ra-report-heading span {
  display: block;
  margin-top: 4px;
  color: #ffffffad;
  font-size: 11px;
}
.ra-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ra-header-actions button {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #ffffff1a;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}
.ra-header-actions button:hover {
  background: #ffffff2e;
}
.ra-report-toolbar {
  min-height: 62px;
  margin-bottom: 14px;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #dce8e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px #143d360d;
}
.ra-report-toolbar > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.ra-report-toolbar > div:first-child strong {
  color: #173d37;
  font-size: 13px;
}
.ra-report-toolbar > div:first-child span {
  overflow: hidden;
  color: #718681;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ra-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.ra-toolbar-actions button {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #cfddda;
  border-radius: 9px;
  background: #fff;
  color: #31514b;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.ra-toolbar-actions button:hover {
  border-color: #8cb9b0;
  background: #f1f8f6;
  color: #176b62;
}
.ra-filter-panel {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #dce8e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px #143d360f;
  overflow: visible;
}
.ra-filter-primary {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 1px 5px;
  scrollbar-width: thin;
  scrollbar-color: #c6d8d4 transparent;
}
.ra-filter-primary::-webkit-scrollbar {
  height: 5px;
}
.ra-filter-primary::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c6d8d4;
}
.ra-filter-primary > label,
.ra-filter-more-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.ra-filter-primary label > span,
.ra-filter-more-grid label > span {
  color: #627873;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ra-filter-panel input,
.ra-filter-panel select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 9px;
  border: 1px solid #d4e1de;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: #183934;
  font:
    650 11px/1 Manrope,
    sans-serif;
}
.ra-filter-panel input:focus,
.ra-filter-panel select:focus {
  border-color: #1a7b6f;
  box-shadow: 0 0 0 3px #1a7b6f1c;
}
.ra-filter-panel input:disabled,
.ra-filter-panel select:disabled {
  background: #f1f5f4;
  color: #71817e;
  cursor: not-allowed;
}
.ra-filter-date {
  flex: 0 0 132px;
}
.ra-filter-branch {
  flex: 0 0 150px;
}
.ra-filter-department {
  flex: 0 0 170px;
}
.ra-filter-search {
  flex: 1 0 220px;
  min-width: 220px;
}
.ra-search-filter > div {
  position: relative;
}
.ra-search-filter svg {
  position: absolute;
  left: 10px;
  top: 11px;
  color: #718984;
}
.ra-search-filter input {
  padding-left: 34px;
}
.ra-filter-inline-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 1px;
  white-space: nowrap;
}
.ra-filter-inline-actions button {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #d1dfdc;
  border-radius: 9px;
  background: #fff;
  color: #31514b;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.ra-filter-inline-actions button:hover {
  border-color: #91bdb4;
  background: #f3f9f7;
  transform: translateY(-1px);
}
.ra-filter-inline-actions button.primary {
  min-width: 68px;
  border-color: #176b62;
  background: #176b62;
  color: #fff;
}
.ra-filter-inline-actions button.primary:hover {
  background: #10594f;
}
.ra-more-filter-button.active {
  border-color: #b9d7d1 !important;
  background: #eaf5f2 !important;
  color: #176b62 !important;
}
.ra-filter-more {
  margin-top: 8px;
  padding: 11px 1px 1px;
  border-top: 1px solid #e8efed;
  animation: ra-filter-expand 0.16s ease-out;
}
@keyframes ra-filter-expand {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ra-filter-more-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 9px;
}
.ra-filter-note {
  margin: 8px -12px -10px;
  padding: 8px 12px;
  border-top: 1px solid #edf2f1;
  border-radius: 0 0 15px 15px;
  background: #f8fbfa;
  color: #758783;
  font-size: 9.5px;
}
.ra-report-tabs {
  margin-bottom: 14px;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  border: 1px solid #dce8e5;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 20px #143d360a;
}
.ra-report-tabs button {
  min-height: 38px;
  padding: 0 17px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #657b76;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.ra-report-tabs button:hover {
  background: #eef6f4;
  color: #176b62;
}
.ra-report-tabs button.active {
  background: #176b62;
  color: #fff;
  box-shadow: 0 5px 13px #176b6233;
}
.ra-report-error {
  margin-bottom: 13px;
  padding: 11px 13px;
  border: 1px solid #f0c6c3;
  border-radius: 10px;
  background: #fff2f1;
  color: #a52a21;
  font-weight: 700;
}
.ra-kpi-grid {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}
.ra-kpi {
  min-height: 118px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #dce8e5;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px #143d360d;
}
.ra-kpi span {
  color: #6a7f7a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ra-kpi strong {
  margin: 7px 0 3px;
  color: #173d37;
  font:
    750 25px/1 Manrope,
    sans-serif;
  letter-spacing: -0.035em;
}
.ra-kpi small {
  color: #8a9a97;
  font-size: 10px;
}
.ra-kpi.positive {
  border-color: #bfe0d8;
  background: linear-gradient(145deg, #fff, #f0faf7);
}
.ra-kpi.positive strong {
  color: #157063;
}
.ra-kpi.negative {
  border-color: #efcbc8;
  background: linear-gradient(145deg, #fff, #fff4f3);
}
.ra-kpi.negative strong {
  color: #b33229;
}
.ra-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}
.ra-card {
  min-width: 0;
  border: 1px solid #dce8e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px #143d360e;
  overflow: hidden;
}
.ra-card > header {
  min-height: 62px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e7efed;
  background: #fbfdfc;
}
.ra-card > header strong {
  display: block;
  color: #173d37;
  font-size: 14px;
}
.ra-card > header span {
  display: block;
  margin-top: 3px;
  color: #82938f;
  font-size: 10px;
}
.ra-metric-list {
  padding: 4px 16px 12px;
}
.ra-metric-list > div {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eef3f2;
}
.ra-metric-list > div:last-child {
  border-bottom: 0;
}
.ra-metric-list span {
  color: #526b66;
  font-size: 11.5px;
  font-weight: 650;
}
.ra-metric-list b {
  min-width: 38px;
  height: 28px;
  padding: 0 9px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf4f1;
  color: #176b62;
  font-size: 12px;
}
.ra-metric-list .warning span {
  color: #a64f1b;
}
.ra-metric-list .warning b {
  background: #fff0e7;
  color: #b85115;
}
.ra-first-last {
  min-height: 280px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.ra-first-last > div {
  min-width: 0;
  padding: 15px;
  border: 1px solid #dce8e5;
  border-radius: 13px;
  background: #f8fbfa;
}
.ra-first-last > div > span {
  color: #728681;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ra-first-last strong {
  display: block;
  margin: 7px 0 4px;
  color: #176b62;
  font-size: 19px;
}
.ra-first-last small {
  display: block;
  overflow: hidden;
  color: #294b45;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ra-first-last p {
  margin: 10px 0 0;
  color: #768984;
  font-size: 9.5px;
  line-height: 1.45;
}
.ra-table-wrap {
  width: 100%;
  overflow: auto;
}
.ra-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.ra-table th {
  height: 42px;
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid #dce8e5;
  background: #f5f9f8;
  color: #60736f;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.ra-table td {
  min-height: 48px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f1;
  color: #36534e;
  font-size: 11px;
  vertical-align: middle;
  white-space: nowrap;
}
.ra-table tbody tr:hover {
  background: #f8fbfa;
}
.ra-table tfoot td {
  border-top: 2px solid #cbdcd8;
  border-bottom: 0;
  background: #f4f8f7;
  color: #173d37;
  font-weight: 850;
}
.ra-status-dot {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #1a7b6f;
  box-shadow: 0 0 0 3px #1a7b6f1f;
}
.ra-bill-table {
  min-width: 1720px;
}
.ra-primary-cell {
  min-width: 145px;
  display: grid;
  gap: 3px;
}
.ra-primary-cell strong {
  color: #213f39;
  font-size: 11px;
}
.ra-primary-cell span {
  color: #5f746f;
  font-size: 10px;
}
.ra-primary-cell small {
  color: #879793;
  font-size: 9px;
}
.ra-discount-pill {
  padding: 4px 7px;
  border-radius: 7px;
  background: #f0f4f3;
  color: #637773;
  font-weight: 800;
}
.ra-discount-pill.has {
  background: #f5ebff;
  color: #6f3291;
}
.ra-negative-number {
  color: #b52f27 !important;
  font-weight: 850;
}
.ra-row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ra-row-actions button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #d4e1de;
  border-radius: 8px;
  background: #fff;
  color: #176b62;
  cursor: pointer;
}
.ra-row-actions button:hover {
  border-color: #176b62;
  background: #ecf7f4;
}
.ra-table-state {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #768984;
  font-weight: 700;
}
.ra-table-state.error {
  color: #af3028;
}
.ra-pagination {
  min-height: 55px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e8efed;
  background: #fbfdfc;
}
.ra-pagination > span {
  color: #738681;
  font-size: 10px;
  font-weight: 750;
}
.ra-pagination > div {
  display: flex;
  gap: 7px;
}
.ra-pagination button {
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d2dfdc;
  border-radius: 8px;
  background: #fff;
  color: #31514b;
  font-weight: 750;
  cursor: pointer;
}
.ra-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 1350px) {
  .ra-filter-more-grid {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }
  .ra-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .ra-report-workspace {
    padding: 14px 14px 42px;
  }
  .ra-report-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .ra-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .ra-filter-more-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }
  .ra-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ra-overview-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .ra-toolbar-actions button {
    flex: 1 1 auto;
    font-size: 10px;
  }
  .ra-filter-panel {
    padding: 9px;
  }
  .ra-filter-primary {
    gap: 7px;
  }
  .ra-filter-date {
    flex-basis: 124px;
  }
  .ra-filter-branch {
    flex-basis: 140px;
  }
  .ra-filter-department {
    flex-basis: 155px;
  }
  .ra-filter-search {
    flex-basis: 190px;
    min-width: 190px;
  }
  .ra-filter-inline-actions button {
    padding: 0 10px;
  }
  .ra-filter-more-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
  .ra-filter-note {
    margin: 8px -9px -9px;
  }
  .ra-kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .ra-kpi {
    min-height: 100px;
    padding: 12px;
  }
  .ra-kpi strong {
    font-size: 19px;
  }
  .ra-first-last {
    grid-template-columns: 1fr;
  }
  .ra-report-tabs button {
    padding: 0 12px;
    font-size: 10px;
  }
}
@media (max-width: 430px) {
  .ra-filter-more-grid {
    grid-template-columns: 1fr;
  }
}
.workspace-shell {
  grid-template-columns: 92px minmax(0, 1fr);
}
.workspace-sidebar {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: 14px 8px;
}
.workspace-sidebar nav {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  padding: 2px 0 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 238, 233, 0.28) transparent;
}
.workspace-sidebar nav::-webkit-scrollbar {
  width: 5px;
}
.workspace-sidebar nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d8eee947;
}
.workspace-sidebar nav button {
  width: 70px;
  height: auto;
  min-height: 52px;
  flex: 0 0 auto;
  grid-template-rows: 20px auto;
  row-gap: 4px;
  padding: 6px 3px;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 13px;
}
.workspace-sidebar nav button span {
  width: 64px;
  max-width: 64px;
  margin: 0;
  overflow: hidden;
  font-size: 8.75px !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.015em;
  text-align: center;
  white-space: normal;
}
.workspace-sidebar nav button.active {
  border-color: #ffffff1f;
  background: #ffffff24;
  box-shadow: 0 6px 16px #00000014;
}
.workspace-sidebar-queue {
  width: 76px;
  flex: 0 0 auto;
  display: grid;
  gap: 5px;
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(216, 238, 233, 0.14);
}
.workspace-sidebar-queue > small {
  overflow: hidden;
  padding: 0 3px 2px;
  color: #8fb9b1;
  font-size: 7px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-sidebar-queue > div {
  min-height: 43px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: #ffffff0f;
}
.workspace-sidebar-queue > div span {
  overflow: hidden;
  color: #c3ddd7;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
}
.workspace-sidebar-queue > div strong {
  min-width: 23px;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  text-align: right;
}
.workspace-sidebar-queue > div.waiting {
  border-color: #facc1540;
  background: #facc1517;
}
.workspace-sidebar-queue > div.waiting strong {
  color: #fde68a;
}
.workspace-sidebar-queue > div.procedure {
  border-color: #2dd4bf40;
  background: #2dd4bf1a;
}
.workspace-sidebar-queue > div.procedure strong {
  color: #99f6e4;
}
.workspace-main {
  position: relative;
}
.workspace-topbar-logout {
  position: absolute;
  top: 15px;
  right: 16px;
  z-index: 35;
  min-width: 102px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  color: #983d38;
  border: 1px solid #ebcbc8;
  border-radius: 11px;
  background: #fff8f7f5;
  box-shadow: 0 7px 18px #54262314;
  font-size: 11px;
  font-weight: 800;
}
.workspace-topbar-logout:hover,
.workspace-topbar-logout:focus-visible {
  color: #7f2e2a;
  border-color: #dfaaa6;
  background: #fff1ef;
  outline: 0;
  transform: translateY(-1px);
}
.workspace-topbar-logout .ui-icon {
  width: 17px;
  height: 17px;
}
.workspace-header,
.wa-workspace-header {
  padding-right: 132px;
}
@media (max-width: 720px) {
  .workspace-shell {
    grid-template-columns: 1fr;
    padding-bottom: 72px;
  }
  .workspace-sidebar {
    width: 100%;
    height: 72px;
    padding: 8px 10px;
    overflow: hidden;
  }
  .workspace-sidebar-queue {
    display: none;
  }
  .workspace-sidebar nav {
    width: 100%;
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 5px;
    margin: 0;
    padding: 0 2px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .workspace-sidebar nav::-webkit-scrollbar {
    display: none;
  }
  .workspace-sidebar nav button {
    width: 62px;
    min-width: 62px;
    height: 54px;
    min-height: 54px;
    flex: 0 0 62px;
    scroll-snap-align: start;
    grid-template-rows: 19px auto;
    row-gap: 3px;
    padding: 5px 2px;
  }
  .workspace-sidebar nav button span {
    width: 58px;
    max-width: 58px;
    font-size: 7.5px !important;
    line-height: 1.05 !important;
  }
  .workspace-topbar-logout {
    top: 18px;
    right: 14px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
  }
  .workspace-topbar-logout span {
    display: none;
  }
  .workspace-header,
  .wa-workspace-header {
    padding-right: 66px;
  }
}
.workspace-main {
  position: relative;
  min-width: 0;
}
.workspace-topbar-logout {
  position: absolute !important;
  inset: 17px 16px auto auto !important;
  z-index: 120 !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 38px !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #9b3e38 !important;
  border: 1px solid #e8c9c6 !important;
  border-radius: 11px !important;
  background: #fff8f7 !important;
  box-shadow: 0 4px 12px #54262312 !important;
  transform: none !important;
  cursor: pointer;
}
.workspace-topbar-logout span {
  display: none !important;
}
.workspace-topbar-logout .ui-icon,
.workspace-topbar-logout svg {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px;
}
.workspace-topbar-logout:hover,
.workspace-topbar-logout:focus-visible {
  color: #7e2f2a !important;
  border-color: #dba9a5 !important;
  background: #fff0ee !important;
  box-shadow: 0 5px 15px #5426231a !important;
  transform: translateY(-1px) !important;
  outline: none;
}
.workspace-header {
  padding-right: 16px !important;
}
.workspace-header .user-context {
  margin-right: 52px !important;
}
.wa-workspace-header {
  padding-right: 14px !important;
}
.wa-header-meta {
  margin-right: 50px !important;
}
.whatsapp-workspace {
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 680px;
}
.workspace-main:has(.whatsapp-workspace) .workspace-topbar-logout {
  top: 18px !important;
  color: #eafff9 !important;
  border-color: #ffffff3d !important;
  background: #ffffff1a !important;
  box-shadow: none !important;
}
.workspace-main:has(.whatsapp-workspace) .workspace-topbar-logout:hover,
.workspace-main:has(.whatsapp-workspace)
  .workspace-topbar-logout:focus-visible {
  color: #fff !important;
  border-color: #ffffff61 !important;
  background: #ffffff2b !important;
}
@media (max-width: 720px) {
  .workspace-topbar-logout {
    top: 15px !important;
    right: 10px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    flex-basis: 36px !important;
  }
  .workspace-header {
    padding-right: 10px !important;
  }
  .workspace-header .user-context {
    margin-right: 44px !important;
  }
  .wa-workspace-header {
    padding-right: 8px !important;
  }
  .wa-header-meta {
    margin-right: 43px !important;
  }
  .workspace-main:has(.whatsapp-workspace) .workspace-topbar-logout {
    top: 13px !important;
    right: 8px !important;
  }
  .whatsapp-workspace {
    min-height: 0;
  }
}
.appointment-action-list:disabled {
  cursor: progress;
  opacity: 0.68;
}
.appointment-action-list optgroup {
  color: #1f4f46;
  font-weight: 800;
}
.appointment-edit-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: #edc7bd !important;
  background: #fff3ef !important;
  color: #8d3324 !important;
}
.appointment-edit-lock strong {
  flex: 0 0 auto;
}
.appointment-edit-lock span {
  text-align: right;
}
.appointment-action-toast {
  z-index: 12000;
  display: flex;
  align-items: center;
  gap: 10px;
}
.appointment-action-toast > span {
  flex: 1;
}
.appointment-action-toast > button {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  color: #fff;
  background: #ffffff1a;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.appointment-cancel-layer {
  position: fixed;
  inset: 0;
  z-index: 4300;
  display: grid;
  place-items: center;
  padding: 18px;
}
.appointment-cancel-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #0f172a7a;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.appointment-cancel-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px #0f172a47;
}
.appointment-cancel-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 15px;
  border-bottom: 1px solid #f0e6e5;
  background: #fff8f7;
}
.appointment-cancel-card > header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.appointment-cancel-card > header span {
  color: #b42318;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.appointment-cancel-card > header strong {
  color: #172033;
  font-size: 17px;
}
.appointment-cancel-card > header small {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-cancel-card > header > button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  color: #7f1d1d;
  border: 1px solid #f0c8c5;
  border-radius: 10px;
  background: #fff;
  font-size: 23px;
  line-height: 1;
}
.appointment-cancel-body {
  padding: 16px 18px;
}
.billing-closure-explanation {
  margin: 0 0 14px;
  padding: 10px 11px;
  color: #475569;
  border: 1px solid #dbe8e5;
  border-radius: 10px;
  background: #f5faf8;
  font-size: 11px;
  line-height: 1.6;
}
.billing-closure-reason {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 10px 11px;
  color: #172033;
  border: 1px solid #cfdad7;
  border-radius: 10px;
  background: #fff;
  font: 600 12px/1.55 Manrope, sans-serif;
  outline: 0;
}
.billing-closure-reason:focus {
  border-color: #218574;
  box-shadow: 0 0 0 3px #2185741f;
}
.billing-closure-counter {
  display: block;
  margin-top: 5px;
  color: #82918d;
  font-size: 10px;
  text-align: right;
}
.appointment-cancel-label {
  display: block;
  margin-bottom: 9px;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
}
.appointment-cancel-options {
  display: grid;
  gap: 7px;
}
.appointment-cancel-options label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  color: #334155;
  border: 1px solid #dce5e3;
  border-radius: 11px;
  background: #fbfdfc;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.appointment-cancel-options label:hover,
.appointment-cancel-options label.selected {
  color: #991b1b;
  border-color: #eab5b1;
  background: #fff7f6;
}
.appointment-cancel-options input {
  width: 16px;
  height: 16px;
  accent-color: #b42318;
}
.appointment-cancel-error {
  margin-top: 10px;
  padding: 9px 10px;
  color: #991b1b;
  border-radius: 9px;
  background: #fef2f2;
  font-size: 11px;
  font-weight: 750;
}
.appointment-cancel-card > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid #edf1f0;
  background: #fafcfc;
}
.appointment-cancel-card > footer button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #d5dfdd;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
}
.appointment-cancel-card > footer button.danger {
  color: #fff;
  border-color: #b42318;
  background: #b42318;
}
.appointment-cancel-card > footer button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
@media (max-width: 520px) {
  .appointment-cancel-layer {
    align-items: end;
    padding: 10px;
  }
  .appointment-cancel-card {
    width: 100%;
    border-radius: 16px;
  }
}
.appointment-day-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.appointment-toolbar-new-button {
  width: auto !important;
  min-width: 172px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #0f766e;
  border-radius: 11px;
  background: linear-gradient(135deg, #0f766e, #0b625c);
  color: #fff;
  box-shadow: 0 5px 15px #0f766e38;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}
.appointment-toolbar-new-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0d6d66, #09534e);
  box-shadow: 0 8px 19px #0f766e47;
}
.appointment-toolbar-new-button:active {
  transform: translateY(0);
}
.appointment-toolbar-new-button:focus-visible {
  outline: 3px solid rgba(20, 184, 166, 0.24);
  outline-offset: 2px;
}
.appointment-toolbar-new-button svg {
  width: 17px;
  height: 17px;
  color: currentColor;
  stroke: currentColor;
}
@media (max-width: 1350px) {
  .appointment-toolbar-new-button {
    min-width: 44px;
    width: 44px !important;
    padding: 0;
  }
  .appointment-toolbar-new-button span {
    display: none;
  }
}
.appointment-day-actions .appointment-toolbar-new-button {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border-radius: 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
}
.appointment-day-actions .appointment-toolbar-new-button span {
  display: none !important;
}
.appointment-day-actions .appointment-toolbar-new-button svg {
  width: 19px !important;
  height: 19px !important;
  margin: 0 !important;
}
.appointment-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 194px;
}
.appointment-contact-icon {
  position: relative;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #d4e3df;
  border-radius: 11px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.appointment-contact-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.appointment-contact-icon.whatsapp {
  border-color: #b8e4d2;
  background: #edfdf5;
  color: #07844d;
}
.appointment-contact-icon.whatsapp:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: #24b875;
  box-shadow: 0 6px 14px #07844d2e;
}
.appointment-contact-icon.call {
  border-color: #dde5e8;
  background: #f3f6f7;
  color: #91a0a5;
}
.appointment-contact-icon:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}
.appointment-contact-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 8px #dc262647;
}
.appointment-row-actions .appointment-action-list {
  flex: 1 1 112px;
  min-width: 112px;
}
@media (max-width: 1250px) {
  .appointment-row-actions {
    min-width: 136px;
  }
  .appointment-row-actions .appointment-action-list {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
  }
}
.appointment-table-wrap {
  position: relative;
}
.appointment-list-table .appointment-actions-sticky-head {
  position: sticky;
  right: 0;
  z-index: 18;
  width: 224px;
  min-width: 224px;
  background: #f4f8f7 !important;
  box-shadow: -12px 0 18px -18px #0f172ab3;
}
.appointment-list-table .appointment-actions-sticky-cell {
  position: sticky;
  right: 0;
  z-index: 9;
  width: 224px;
  min-width: 224px;
  background: #fff;
  box-shadow: -12px 0 18px -18px #0f172a8c;
}
.appointment-list-table tbody tr:hover .appointment-actions-sticky-cell {
  background: #f5fffb;
}
.appointment-list-table
  .appointment-actions-sticky-cell
  .appointment-row-actions {
  width: 100%;
  min-width: 0;
}
.appointment-single-wa-layer {
  position: fixed;
  inset: 0;
  z-index: 4100;
  display: grid;
  place-items: center;
  padding: 3vh 2vw;
}
.appointment-single-wa-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #071218a8;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.appointment-single-wa-card {
  position: relative;
  z-index: 1;
  width: min(90vw, 1180px);
  height: 94vh;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: #eef5f3;
  box-shadow: 0 28px 80px #03111061;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.appointment-single-wa-head {
  min-height: 78px;
  padding: 13px 17px 13px 20px;
  border-bottom: 1px solid #d9e6e2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.appointment-single-wa-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}
.appointment-single-wa-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  background: #e8f8f0;
  color: #128c62;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.appointment-single-wa-logo svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.appointment-single-wa-identity > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.appointment-single-wa-identity > div > span {
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.appointment-single-wa-identity strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-single-wa-identity small {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-single-wa-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.appointment-single-wa-call,
.appointment-single-wa-close {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #d6e2df;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.appointment-single-wa-call {
  background: #f4f7f6;
  color: #94a3b8;
  cursor: not-allowed;
}
.appointment-single-wa-call svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.appointment-single-wa-close {
  background: #fff;
  color: #334155;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.appointment-single-wa-close:hover {
  border-color: #efb2b2;
  background: #fff1f2;
  color: #b91c1c;
}
.appointment-single-wa-body {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #edf4f2;
}
.appointment-single-wa-body .whatsapp-workspace.wa-single-conversation-mode {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background: #edf4f2 !important;
}
.appointment-single-wa-body .wa-single-conversation-mode .wa-workspace-header,
.appointment-single-wa-body .wa-single-conversation-mode .wa-kpis,
.appointment-single-wa-body
  .wa-single-conversation-mode
  .wa-conversations-panel,
.appointment-single-wa-body .wa-single-conversation-mode .wa-context-panel {
  display: none !important;
}
.appointment-single-wa-body .wa-single-conversation-mode .wa-inbox-layout {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 0 !important;
}
.appointment-single-wa-body .wa-single-conversation-mode .wa-chat-panel {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.appointment-single-wa-body .wa-single-conversation-mode .wa-chat-header,
.appointment-single-wa-body
  .wa-single-conversation-mode
  .wa-chat-actions
  a[href*="wa.me"] {
  display: none !important;
}
@media (max-width: 900px) {
  .appointment-single-wa-layer {
    padding: 0;
  }
  .appointment-single-wa-card {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }
  .appointment-list-table .appointment-actions-sticky-head,
  .appointment-list-table .appointment-actions-sticky-cell {
    width: 186px;
    min-width: 186px;
  }
}
.workspace-main:has(.module-layer) > .workspace-topbar-logout,
.workspace-main:has(.clinical-page-layer) > .workspace-topbar-logout,
.workspace-main:has(.appointment-page-layer) > .workspace-topbar-logout,
.workspace-main:has(.new-appointment-picker-layer) > .workspace-topbar-logout,
.workspace-main:has([role="dialog"][aria-modal="true"])
  > .workspace-topbar-logout {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body:has(.module-layer) .workspace-topbar-logout,
body:has(.clinical-page-layer) .workspace-topbar-logout,
body:has(.appointment-page-layer) .workspace-topbar-logout,
body:has(.new-appointment-picker-layer) .workspace-topbar-logout,
body:has([role="dialog"][aria-modal="true"]) .workspace-topbar-logout {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.appointment-list-table .appointment-actions-sticky-head,
.appointment-list-table .appointment-actions-sticky-cell {
  left: 0 !important;
  right: auto !important;
  width: 148px !important;
  min-width: 148px !important;
  max-width: 148px !important;
  box-sizing: border-box !important;
  border-right: 1px solid #dce8e5 !important;
}
.appointment-list-table .appointment-actions-sticky-head {
  position: sticky !important;
  z-index: 35 !important;
  padding: 0 8px !important;
  background: #f3f8f6 !important;
  text-align: center !important;
  box-shadow: 10px 0 16px -18px #0f172ab8 !important;
}
.appointment-list-table .appointment-actions-sticky-cell {
  position: sticky !important;
  z-index: 24 !important;
  padding: 7px 8px !important;
  overflow: visible !important;
  background: #fff !important;
  vertical-align: middle !important;
  box-shadow: 10px 0 16px -18px #0f172a8c !important;
}
.appointment-list-table tbody tr:hover .appointment-actions-sticky-cell {
  background: #f6fffb !important;
}
.appointment-list-table
  .appointment-actions-sticky-cell
  .appointment-row-actions {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 0 !important;
}
.appointment-action-contact-row {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 30px !important;
}
.appointment-actions-contact-icon {
  position: relative;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  flex: 0 0 30px !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}
.appointment-actions-contact-icon svg {
  width: 15px !important;
  height: 15px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.appointment-actions-contact-icon.whatsapp {
  color: #078b61 !important;
  border: 1px solid #9edfc7 !important;
  background: #edfff7 !important;
  cursor: pointer;
}
.appointment-actions-contact-icon.whatsapp:not(:disabled):hover,
.appointment-actions-contact-icon.whatsapp:not(:disabled):focus-visible {
  color: #05694b !important;
  border-color: #62c39f !important;
  background: #dcf8ec !important;
  outline: none !important;
}
.appointment-actions-contact-icon.call {
  color: #9aa8b6 !important;
  border: 1px solid #dce4ea !important;
  background: #f5f7f9 !important;
  cursor: not-allowed !important;
}
.appointment-actions-contact-icon:disabled {
  opacity: 0.68;
}
.appointment-actions-contact-icon .appointment-contact-badge {
  position: absolute !important;
  top: -6px !important;
  right: -7px !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 4px !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: #dc2626 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 8px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 5px #7f1d1d38 !important;
}
.appointment-list-table
  .appointment-actions-sticky-cell
  .appointment-action-list {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 38px !important;
  margin: 0 !important;
  padding-left: 10px !important;
  padding-right: 25px !important;
  box-sizing: border-box !important;
}
.appointment-list-table .appointment-actions-sticky-cell:focus-within {
  z-index: 60 !important;
}
.appointment-patient-summary {
  min-width: 0 !important;
}
.appointment-list-table {
  min-width: 1720px !important;
}
@media (max-width: 1100px) {
  .appointment-list-table .appointment-actions-sticky-head,
  .appointment-list-table .appointment-actions-sticky-cell {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
  }
  .appointment-actions-contact-row {
    gap: 6px !important;
  }
  .appointment-actions-contact-icon {
    width: 29px !important;
    min-width: 29px !important;
    max-width: 29px !important;
    height: 29px !important;
    min-height: 29px !important;
    flex-basis: 29px !important;
  }
}
.appointment-list-table .appointment-actions-sticky-head,
.appointment-list-table .appointment-actions-sticky-cell {
  width: 104px !important;
  min-width: 104px !important;
  max-width: 104px !important;
}
.appointment-list-table .appointment-actions-sticky-cell {
  padding: 6px !important;
  vertical-align: middle !important;
}
.appointment-list-table
  .appointment-actions-sticky-cell
  .appointment-row-actions {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  height: 67px !important;
  min-height: 67px !important;
  max-height: 67px !important;
  display: grid !important;
  grid-template-columns: 92px !important;
  grid-template-rows: 27px 34px !important;
  align-items: center !important;
  align-content: center !important;
  justify-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  flex: 0 0 67px !important;
}
.appointment-list-table
  .appointment-actions-sticky-cell
  .appointment-action-contact-row {
  grid-row: 1 !important;
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  height: 27px !important;
  min-height: 27px !important;
  max-height: 27px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
  flex: 0 0 27px !important;
}
.appointment-list-table
  .appointment-actions-sticky-cell
  .appointment-actions-contact-icon {
  width: 27px !important;
  min-width: 27px !important;
  max-width: 27px !important;
  height: 27px !important;
  min-height: 27px !important;
  max-height: 27px !important;
  flex: 0 0 27px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 8px !important;
}
.appointment-list-table
  .appointment-actions-sticky-cell
  .appointment-actions-contact-icon
  svg {
  width: 14px !important;
  height: 14px !important;
}
.appointment-list-table
  .appointment-actions-sticky-cell
  select.appointment-action-list,
.appointment-list-table
  .appointment-actions-sticky-cell
  .appointment-action-list {
  grid-row: 2 !important;
  display: block !important;
  min-width: 92px !important;
  max-width: 92px !important;
  width: 92px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  block-size: 34px !important;
  min-block-size: 34px !important;
  max-block-size: 34px !important;
  flex: 0 0 34px !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  align-self: center !important;
  justify-self: center !important;
  margin: 0 !important;
  padding: 0 26px 0 10px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 32px !important;
  white-space: nowrap !important;
}
.appointment-list-table
  .appointment-actions-sticky-cell
  select.appointment-action-list
  option {
  font-size: 12px !important;
  line-height: normal !important;
}
@media (max-width: 1100px) {
  .appointment-list-table .appointment-actions-sticky-head,
  .appointment-list-table .appointment-actions-sticky-cell {
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
  }
  .appointment-list-table
    .appointment-actions-sticky-cell
    .appointment-row-actions,
  .appointment-list-table
    .appointment-actions-sticky-cell
    .appointment-action-contact-row,
  .appointment-list-table
    .appointment-actions-sticky-cell
    select.appointment-action-list,
  .appointment-list-table
    .appointment-actions-sticky-cell
    .appointment-action-list {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
  }
}
.appointments-content.my-schedule .appointment-status-strip {
  display: none !important;
}
.appointments-content.my-schedule .appointment-list-table {
  direction: ltr !important;
}
.appointments-content.my-schedule .appointment-actions-sticky-head,
.appointments-content.my-schedule .appointment-actions-sticky-cell {
  position: sticky !important;
  left: 0 !important;
  right: auto !important;
  text-align: left !important;
}
.appointments-content.my-schedule
  .appointment-actions-sticky-cell
  .appointment-row-actions {
  margin-left: 0 !important;
  margin-right: auto !important;
}
.waiting-package-review-layer {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 18px;
}
.waiting-package-review-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #08262294;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.waiting-package-review-card {
  position: relative;
  width: min(610px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid #e7b7bd;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px #460a143d;
}
.waiting-package-review-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  color: #fff;
  background: linear-gradient(135deg, #9f1f2d, #c83343);
}
.waiting-package-review-card > header div {
  display: grid;
  gap: 2px;
}
.waiting-package-review-card > header span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd9dd;
}
.waiting-package-review-card > header strong {
  font-size: 17px;
  line-height: 1.25;
}
.waiting-package-review-card > header small {
  color: #ffe9eb;
  font-size: 11px;
}
.waiting-package-review-card > header button {
  width: 30px;
  height: 30px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 10px;
  color: #fff;
  background: #ffffff1a;
  font-size: 19px;
}
.waiting-package-review-body {
  display: grid;
  gap: 9px;
  padding: 14px 16px;
}
.waiting-package-review-warning {
  padding: 10px 12px;
  border: 1px solid #ebaab2;
  border-radius: 9px;
  color: #9f1f2d;
  background: #fff0f2;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}
.waiting-package-review-state {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  color: #607772;
}
.waiting-package-review-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 9px;
}
.waiting-package-review-fields label {
  display: grid;
  gap: 6px;
}
.waiting-package-review-fields label > span {
  color: #38534e;
  font-size: 10px;
  font-weight: 800;
}
.waiting-package-review-fields select,
.waiting-package-review-fields input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #b9d2cd;
  border-radius: 8px;
  padding: 0 9px;
  color: #163d37;
  background: #fbfdfc;
  font-size: 11px;
}
.waiting-package-review-validity {
  color: #69807c;
  font-size: 10px;
}
.waiting-package-review-error {
  padding: 8px 10px;
  border-radius: 9px;
  color: #a62432;
  background: #fff0f2;
  font-size: 11px;
  font-weight: 700;
}
.waiting-package-review-card > footer {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 10px 16px;
  border-top: 1px solid #dce9e6;
  background: #f8fbfa;
}
.waiting-package-review-card > footer button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #b8d1cc;
  border-radius: 9px;
  color: #244b44;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}
.waiting-package-review-card > footer .continue {
  border-color: #dca4aa;
  color: #8e2632;
  background: #fff7f8;
}
.waiting-package-review-card > footer .primary {
  border-color: #b62535;
  color: #fff;
  background: #b62535;
}
@media (max-width: 640px) {
  .waiting-package-review-fields {
    grid-template-columns: 1fr;
  }
  .waiting-package-review-card > footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}
.nurses-action-workspace {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 18px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(33, 121, 103, 0.07), transparent 28rem),
    #f5f8f7;
}
.nurses-action-workspace *,
.nurses-action-workspace *:before,
.nurses-action-workspace *:after {
  box-sizing: border-box;
}
.workspace-header h1 {
  word-spacing: normal;
}
.nurses-action-workspace .doctor-action-filters {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(130px, 0.45fr) minmax(
      150px,
      0.55fr
    ) minmax(290px, 0.9fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid #dbe7e4;
  border-radius: 16px;
  box-shadow: 0 10px 28px #1340370f;
}
.nurses-action-workspace .doctor-action-search {
  min-width: 0;
}
.nurses-action-workspace .doctor-action-search input,
.nurses-action-workspace .doctor-action-filters > select,
.nurses-action-workspace .doctor-action-date input {
  width: 100%;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #cfdedb;
  border-radius: 10px;
  background: #fbfdfc;
  color: #173f37;
  font: inherit;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.nurses-action-workspace .doctor-action-search input:focus,
.nurses-action-workspace .doctor-action-filters > select:focus,
.nurses-action-workspace .doctor-action-date input:focus {
  border-color: #2a9887;
  background: #fff;
  box-shadow: 0 0 0 3px #2a98871f;
}
.nurses-action-workspace .doctor-action-filters > select:disabled {
  color: #607b75;
  background: #eef4f2;
  cursor: not-allowed;
  opacity: 1;
}
.nurses-action-workspace .doctor-action-date {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(125px, 1fr) auto minmax(125px, 1fr);
  gap: 7px;
  align-items: center;
}
.nurses-action-workspace .doctor-action-date > span {
  color: #6a817c;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.nurses-action-workspace .doctor-action-day-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}
.nurses-action-workspace .doctor-action-day-buttons button,
.nurses-action-workspace .doctor-action-table-heading > button {
  min-height: 40px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid #cfe0dc;
  border-radius: 10px;
  background: #fff;
  color: #245c50;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}
.nurses-action-workspace .doctor-action-day-buttons button:hover,
.nurses-action-workspace .doctor-action-table-heading > button:hover {
  border-color: #2a9887;
  background: #edf8f5;
  transform: translateY(-1px);
}
.nurses-action-workspace .nurses-action-statuses {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.nurses-action-workspace .nurses-action-statuses > article {
  position: relative;
  min-width: 0;
  min-height: 106px;
  margin: 0;
  padding: 16px 17px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 16px;
  box-shadow: 0 10px 26px #19463d12;
}
.nurses-action-workspace .nurses-action-statuses > article:after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 10px;
  height: 10px;
  border: 3px solid currentColor;
  border-radius: 50%;
  opacity: 0.45;
}
.nurses-action-workspace .nurses-action-statuses > article > span,
.nurses-action-workspace .nurses-action-statuses > article > strong,
.nurses-action-workspace .nurses-action-statuses > article > small {
  display: block;
  width: 100%;
  margin: 0;
}
.nurses-action-workspace .nurses-action-statuses > article > span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.nurses-action-workspace .nurses-action-statuses > article > strong {
  color: inherit;
  font-size: 30px;
  line-height: 1;
  font-weight: 850;
}
.nurses-action-workspace .nurses-action-statuses > article > small {
  color: inherit;
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.76;
}
.nurses-action-workspace
  .nurses-action-statuses
  > article.appointment-status-1 {
  color: #745900;
  background: linear-gradient(145deg, #fffaf0, #fff3c4);
  border-color: #f3dc82;
}
.nurses-action-workspace
  .nurses-action-statuses
  > article.appointment-status-5 {
  color: #9d1d55;
  background: linear-gradient(145deg, #fff5fa, #ffdce9);
  border-color: #f4b8cf;
}
.nurses-action-workspace
  .nurses-action-statuses
  > article.appointment-status-9 {
  color: #6d268b;
  background: linear-gradient(145deg, #fbf5ff, #efd9ff);
  border-color: #d9b7ee;
}
.nurses-action-workspace
  .nurses-action-statuses
  > article.appointment-status-total {
  color: #165f52;
  background: linear-gradient(145deg, #f0fbf8, #dcefe9);
  border-color: #b8ddd4;
}
.nurses-action-workspace .doctor-action-table-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe7e4;
  border-radius: 17px;
  box-shadow: 0 14px 34px #12403712;
}
.nurses-action-workspace .doctor-action-table-heading {
  min-height: 70px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e3ecea;
  background: linear-gradient(180deg, #fff, #fbfdfc);
}
.nurses-action-workspace .doctor-action-table-heading > div {
  min-width: 0;
}
.nurses-action-workspace .doctor-action-table-heading strong,
.nurses-action-workspace .doctor-action-table-heading span {
  display: block;
}
.nurses-action-workspace .doctor-action-table-heading strong {
  color: #163f37;
  font-size: 15px;
  line-height: 1.35;
}
.nurses-action-workspace .doctor-action-table-heading span {
  margin-top: 4px;
  color: #768b86;
  font-size: 11px;
}
.nurses-action-workspace .doctor-action-table-wrap {
  width: 100%;
  min-width: 0;
  overflow: auto;
}
.nurses-action-workspace .doctor-action-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.nurses-action-workspace .doctor-action-table th,
.nurses-action-workspace .doctor-action-table td {
  padding: 14px 13px;
  border-bottom: 1px solid #e7efed;
  text-align: left;
  vertical-align: middle;
}
.nurses-action-workspace .doctor-action-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #59736d;
  background: #f6faf9;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.nurses-action-workspace .doctor-action-table th:nth-child(1) {
  width: 26%;
}
.nurses-action-workspace .doctor-action-table th:nth-child(2) {
  width: 16%;
}
.nurses-action-workspace .doctor-action-table th:nth-child(4) {
  width: 15%;
}
.nurses-action-workspace .doctor-action-table th:nth-child(5) {
  width: 17%;
}
.nurses-action-workspace .doctor-action-table th:nth-child(6) {
  width: 10%;
}
.nurses-action-workspace .doctor-action-table tbody tr:last-child td {
  border-bottom: 0;
}
.nurses-action-workspace .doctor-action-table tbody tr:hover td {
  background: #fbfefd;
}
.nurses-action-workspace .doctor-action-table td > strong,
.nurses-action-workspace .doctor-action-table td > span,
.nurses-action-workspace .doctor-action-table td > small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.nurses-action-workspace .doctor-action-table td > strong {
  color: #1f4941;
  font-size: 12px;
  line-height: 1.35;
}
.nurses-action-workspace .doctor-action-table td > span {
  margin-top: 5px;
  color: #58736d;
  font-size: 11px;
  line-height: 1.35;
}
.nurses-action-workspace .doctor-action-table td > small {
  margin-top: 5px;
  color: #82938f;
  font-size: 10px;
  line-height: 1.4;
}
.nurses-action-workspace .doctor-action-patient {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.nurses-action-workspace .doctor-action-patient > button {
  min-width: 54px;
  min-height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #b9d9d2;
  border-radius: 10px;
  background: #edf8f5;
  color: #176b5c;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.nurses-action-workspace .doctor-action-patient > div {
  min-width: 0;
}
.nurses-action-workspace .doctor-action-patient strong,
.nurses-action-workspace .doctor-action-patient span,
.nurses-action-workspace .doctor-action-patient small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nurses-action-workspace .doctor-action-patient strong {
  color: #163f37;
  font-size: 13px;
}
.nurses-action-workspace .doctor-action-patient span {
  margin-top: 4px;
  color: #5f7772;
  font-size: 11px;
}
.nurses-action-workspace .doctor-action-patient small {
  margin-top: 4px;
  color: #869691;
  font-size: 10px;
}
.nurses-action-workspace .doctor-action-status {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
}
.nurses-action-workspace .doctor-action-status.appointment-status-1 {
  color: #795d00;
  background: #fff1ad;
}
.nurses-action-workspace .doctor-action-status.appointment-status-5 {
  color: #9b2457;
  background: #ffdcea;
}
.nurses-action-workspace .doctor-action-status.appointment-status-9 {
  color: #70258e;
  background: #efd9ff;
}
.nurses-action-workspace .patient-star {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef3f2;
  color: #91a29e;
  font-size: 15px;
}
.nurses-action-workspace .appointment-action-list {
  width: 100%;
  min-width: 120px;
  height: 38px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #cbdcd8;
  border-radius: 9px;
  background: #fff;
  color: #254e46;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}
.nurses-action-workspace .table-loading,
.nurses-action-workspace .empty-state {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #728783;
  font-size: 12px;
  text-align: center;
}
.nurses-action-workspace .module-error {
  margin: 13px 16px 0;
  padding: 12px 14px;
  border: 1px solid #efc5c5;
  border-radius: 10px;
  background: #fff3f3;
  color: #a73333;
  font-size: 12px;
}
.nurses-action-workspace .table-pagination {
  min-height: 58px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e3ecea;
  background: #fbfdfc;
  color: #718681;
  font-size: 11px;
}
.nurses-action-workspace .table-pagination > div {
  display: flex;
  gap: 8px;
}
.nurses-action-workspace .table-pagination button {
  min-height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #cfe0dc;
  border-radius: 9px;
  background: #fff;
  color: #245c50;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.nurses-action-workspace .table-pagination button:disabled {
  color: #a9b7b4;
  background: #f8faf9;
  cursor: not-allowed;
}
@media (max-width: 1380px) {
  .nurses-action-workspace .doctor-action-filters {
    grid-template-columns: minmax(260px, 1.5fr) minmax(125px, 0.45fr) minmax(
        145px,
        0.55fr
      ) minmax(280px, 0.9fr);
  }
  .nurses-action-workspace .doctor-action-day-buttons {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}
@media (max-width: 980px) {
  .nurses-action-workspace {
    padding: 14px;
  }
  .nurses-action-workspace .doctor-action-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nurses-action-workspace .doctor-action-search,
  .nurses-action-workspace .doctor-action-date,
  .nurses-action-workspace .doctor-action-day-buttons {
    grid-column: 1 / -1;
  }
  .nurses-action-workspace .nurses-action-statuses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .nurses-action-workspace {
    padding: 10px;
    gap: 12px;
  }
  .nurses-action-workspace .doctor-action-filters {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .nurses-action-workspace .doctor-action-search,
  .nurses-action-workspace .doctor-action-date,
  .nurses-action-workspace .doctor-action-day-buttons {
    grid-column: auto;
  }
  .nurses-action-workspace .doctor-action-date {
    grid-template-columns: 1fr;
  }
  .nurses-action-workspace .doctor-action-date > span {
    display: none;
  }
  .nurses-action-workspace .doctor-action-day-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nurses-action-workspace .doctor-action-day-buttons button {
    width: 100%;
  }
  .nurses-action-workspace .nurses-action-statuses {
    grid-template-columns: 1fr;
  }
  .nurses-action-workspace .doctor-action-table-heading {
    align-items: flex-start;
  }
  .nurses-action-workspace .doctor-action-table-heading > button {
    min-width: 82px;
  }
  .nurses-action-workspace .table-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}
.package-pdf-preview {
  min-height: 680px;
  height: calc(100vh - 180px);
  overflow: hidden;
  border: 1px solid #cedbd7;
  border-radius: 12px;
  background: #e7efed;
  box-shadow: inset 0 0 0 1px #ffffffb3;
}
.package-pdf-preview iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #fff;
}
.package-pdf-open {
  text-decoration: none;
}
@media (max-width: 650px) {
  .package-pdf-preview {
    min-height: 520px;
    height: calc(100vh - 155px);
    border-radius: 8px;
  }
}
.nurses-action-workspace {
  padding: 10px 12px 18px;
  gap: 10px;
}
.nurses-action-workspace .doctor-action-filters {
  grid-template-columns: minmax(240px, 1.65fr) minmax(110px, 0.42fr) minmax(
      135px,
      0.52fr
    ) minmax(250px, 0.82fr) auto;
  gap: 7px;
  padding: 8px 9px;
  border-radius: 12px;
  box-shadow: 0 6px 18px #1340370b;
}
.nurses-action-workspace .doctor-action-search input,
.nurses-action-workspace .doctor-action-filters > select,
.nurses-action-workspace .doctor-action-date input {
  height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 11px;
}
.nurses-action-workspace .doctor-action-date {
  grid-template-columns: minmax(108px, 1fr) auto minmax(108px, 1fr);
  gap: 5px;
}
.nurses-action-workspace .doctor-action-date > span {
  font-size: 10px;
}
.nurses-action-workspace .doctor-action-day-buttons {
  gap: 4px;
}
.nurses-action-workspace .doctor-action-day-buttons button,
.nurses-action-workspace .doctor-action-table-heading > button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
}
.nurses-action-workspace .nurses-action-statuses {
  gap: 8px;
}
.nurses-action-workspace .nurses-action-statuses > article {
  min-height: 72px;
  padding: 10px 12px;
  gap: 2px;
  border-radius: 12px;
  box-shadow: 0 6px 18px #19463d0b;
}
.nurses-action-workspace .nurses-action-statuses > article:after {
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-width: 2px;
}
.nurses-action-workspace .nurses-action-statuses > article > span {
  font-size: 10px;
}
.nurses-action-workspace .nurses-action-statuses > article > strong {
  font-size: 22px;
}
.nurses-action-workspace .nurses-action-statuses > article > small {
  font-size: 9px;
  line-height: 1.25;
}
.nurses-action-workspace .doctor-action-table-card {
  border-radius: 13px;
  box-shadow: 0 8px 24px #1240370d;
}
.nurses-action-workspace .doctor-action-table-heading {
  min-height: 50px;
  padding: 9px 11px;
  gap: 10px;
}
.nurses-action-workspace .doctor-action-table-heading strong {
  font-size: 12px;
}
.nurses-action-workspace .doctor-action-table-heading span {
  margin-top: 2px;
  font-size: 9px;
}
.nurses-action-workspace .doctor-action-table {
  min-width: 1040px;
}
.nurses-action-workspace .doctor-action-table th,
.nurses-action-workspace .doctor-action-table td {
  padding: 8px 9px;
}
.nurses-action-workspace .doctor-action-table th {
  font-size: 8.5px;
  line-height: 1.15;
}
.nurses-action-workspace .doctor-action-table td > strong {
  font-size: 10.5px;
  line-height: 1.25;
}
.nurses-action-workspace .doctor-action-table td > span {
  margin-top: 3px;
  font-size: 9.5px;
  line-height: 1.25;
}
.nurses-action-workspace .doctor-action-table td > small {
  margin-top: 3px;
  font-size: 8.5px;
  line-height: 1.25;
}
.nurses-action-workspace .doctor-action-patient {
  gap: 7px;
}
.nurses-action-workspace .doctor-action-patient > button {
  min-width: 44px;
  min-height: 29px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 10px;
}
.nurses-action-workspace .doctor-action-patient strong {
  font-size: 11px;
}
.nurses-action-workspace .doctor-action-patient span {
  margin-top: 2px;
  font-size: 9.5px;
}
.nurses-action-workspace .doctor-action-patient small {
  margin-top: 2px;
  font-size: 8.5px;
}
.nurses-action-workspace .doctor-action-status {
  margin-bottom: 4px;
  padding: 4px 7px;
  font-size: 8.5px;
}
.nurses-action-workspace .patient-star {
  width: 24px;
  height: 24px;
  font-size: 12px;
}
.nurses-action-workspace .status-badge {
  padding: 3px 6px;
  font-size: 8.5px;
}
.nurses-action-workspace .appointment-action-list {
  min-width: 105px;
  height: 31px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 9.5px;
}
.nurses-action-workspace .table-loading,
.nurses-action-workspace .empty-state {
  min-height: 185px;
  font-size: 10px;
}
.nurses-action-workspace .module-error {
  margin: 8px 10px 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 10px;
}
.nurses-action-workspace .table-pagination {
  min-height: 44px;
  padding: 7px 10px;
  font-size: 9.5px;
}
.nurses-action-workspace .table-pagination > div {
  gap: 5px;
}
.nurses-action-workspace .table-pagination button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 9.5px;
}
.workspace-header:has(+ .nurses-action-workspace) {
  min-height: 62px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.workspace-header:has(+ .nurses-action-workspace) p {
  margin-bottom: 2px;
  font-size: 9px;
  letter-spacing: 0.14em;
}
.workspace-header:has(+ .nurses-action-workspace) h1 {
  font-size: 21px;
  line-height: 1.1;
}
.workspace-header:has(+ .nurses-action-workspace) .user-context {
  gap: 8px;
}
.workspace-header:has(+ .nurses-action-workspace) .user-copy strong {
  font-size: 10px;
}
.workspace-header:has(+ .nurses-action-workspace) .user-copy span {
  font-size: 9px;
}
.workspace-header:has(+ .nurses-action-workspace) .role-pill {
  min-height: 28px;
  padding: 0 10px;
  font-size: 9px;
}
@media (max-width: 1380px) {
  .nurses-action-workspace .doctor-action-filters {
    grid-template-columns: minmax(230px, 1.45fr) minmax(105px, 0.4fr) minmax(
        125px,
        0.5fr
      ) minmax(235px, 0.8fr);
  }
}
@media (max-width: 980px) {
  .nurses-action-workspace {
    padding: 9px;
  }
  .nurses-action-workspace .doctor-action-filters,
  .nurses-action-workspace .nurses-action-statuses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .nurses-action-workspace {
    padding: 7px;
  }
  .nurses-action-workspace .doctor-action-filters {
    grid-template-columns: 1fr;
    padding: 7px;
  }
  .nurses-action-workspace .nurses-action-statuses {
    grid-template-columns: 1fr;
  }
  .nurses-action-workspace .nurses-action-statuses > article {
    min-height: 64px;
  }
  .workspace-header:has(+ .nurses-action-workspace) h1 {
    font-size: 18px;
  }
}
.nursing-process-layer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f4f8f7;
  color: #183f37;
}
.nursing-process-layer * {
  box-sizing: border-box;
}
.nursing-process-topbar {
  min-height: 56px;
  padding: 8px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #d9e7e3;
  background: #fff;
  box-shadow: 0 4px 16px #16463c0d;
}
.nursing-process-topbar > button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #c8ddd8;
  border-radius: 8px;
  background: #f2faf7;
  color: #176757;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.nursing-process-topbar span,
.nursing-process-topbar strong {
  display: block;
}
.nursing-process-topbar > div:nth-child(2) > span {
  color: #708681;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.nursing-process-topbar > div:nth-child(2) > strong {
  margin-top: 2px;
  overflow: hidden;
  color: #163f37;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nursing-process-user {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #55706a;
  font-size: 9px;
}
.nursing-process-user b {
  padding: 5px 8px;
  border: 1px solid #bee0d8;
  border-radius: 999px;
  background: #eaf8f4;
  color: #176757;
  font-size: 8.5px;
}
.nursing-process-content {
  width: 100%;
  min-width: 0;
  flex: 1;
  overflow: auto;
  padding: 10px 12px 18px;
}
.nursing-patient-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.8fr);
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #d8e7e3;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 22px #1441380b;
}
.nursing-patient-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.nursing-patient-identity .patient-star {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #edf5f3;
  color: #8ca19c;
}
.nursing-patient-identity p,
.nursing-patient-identity h1,
.nursing-patient-identity span {
  margin: 0;
}
.nursing-patient-identity p {
  color: #78908a;
  font-size: 8.5px;
  font-weight: 750;
}
.nursing-patient-identity h1 {
  margin-top: 2px;
  overflow: hidden;
  color: #173f37;
  font-size: 17px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nursing-patient-identity span {
  display: block;
  margin-top: 4px;
  color: #5f7771;
  font-size: 9px;
}
.nursing-patient-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}
.nursing-patient-facts > div {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #e0ebe8;
  border-radius: 9px;
  background: #f9fcfb;
}
.nursing-patient-facts span,
.nursing-patient-facts strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nursing-patient-facts span {
  color: #7c918c;
  font-size: 8px;
  font-weight: 750;
}
.nursing-patient-facts strong {
  margin-top: 3px;
  color: #244b43;
  font-size: 9.5px;
}
.nursing-status {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
}
.nursing-status.appointment-status-1 {
  color: #745800;
  background: #fff0a8;
}
.nursing-status.appointment-status-5 {
  color: #98244f;
  background: #ffdbe8;
}
.nursing-status.appointment-status-9 {
  color: #692783;
  background: #efdafe;
}
.nursing-process-toolbar {
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 0.65fr)) minmax(330px, 1.35fr);
  gap: 7px;
}
.nursing-process-toolbar > div {
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid #dbe8e5;
  border-radius: 10px;
  background: #fff;
}
.nursing-process-toolbar span,
.nursing-process-toolbar strong,
.nursing-process-toolbar small {
  display: block;
}
.nursing-process-toolbar span {
  color: #79908a;
  font-size: 8px;
  font-weight: 750;
}
.nursing-process-toolbar strong {
  margin-top: 2px;
  color: #20483f;
  font-size: 11px;
}
.nursing-process-toolbar small {
  margin-top: 2px;
  color: #8b9b97;
  font-size: 8px;
}
.nursing-process-toolbar .nursing-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.nursing-toolbar-actions button,
.nursing-form-card footer button,
.nursing-treatment-add button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #bfd8d2;
  border-radius: 8px;
  background: #fff;
  color: #245e52;
  font: inherit;
  font-size: 9.5px;
  font-weight: 800;
  cursor: pointer;
}
.nursing-toolbar-actions button.start {
  border-color: #f1cc75;
  background: #fff5ce;
  color: #755600;
}
.nursing-toolbar-actions button.billing,
.nursing-form-card footer button {
  border-color: #2a9887;
  background: #217968;
  color: #fff;
}
.nursing-toolbar-actions button:disabled,
.nursing-form-card footer button:disabled,
.nursing-treatment-add button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.nursing-process-lock,
.nursing-process-message {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 9.5px;
  font-weight: 700;
}
.nursing-process-lock {
  border: 1px solid #ddd6ec;
  background: #f8f5fc;
  color: #674d82;
}
.nursing-process-message.error {
  border: 1px solid #eccaca;
  background: #fff3f3;
  color: #9d3535;
}
.nursing-process-message.success {
  border: 1px solid #bfe0d4;
  background: #eefaf6;
  color: #176757;
}
.nursing-process-grid {
  margin-top: 9px;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.55fr);
  gap: 9px;
  align-items: start;
}
.nursing-form-card,
.nursing-treatments-card,
.nursing-history-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e7e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 20px #1441380a;
}
.nursing-form-card > header,
.nursing-treatments-card > header,
.nursing-history-card > header {
  min-height: 48px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border-bottom: 1px solid #e2ece9;
  background: #fbfdfc;
}
.nursing-form-card header span,
.nursing-treatments-card header span,
.nursing-history-card header span {
  display: block;
  color: #81938f;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.nursing-form-card header h2,
.nursing-treatments-card header h2,
.nursing-history-card header h2 {
  margin: 2px 0 0;
  color: #1d473f;
  font-size: 12px;
}
.nursing-form-card header b,
.nursing-treatments-card header b,
.nursing-history-card header b {
  color: #267969;
  font-size: 9px;
}
.nursing-form-card > label {
  display: block;
  padding: 7px 10px 0;
}
.nursing-form-card > label > span {
  display: block;
  margin-bottom: 4px;
  color: #49665f;
  font-size: 9px;
  font-weight: 800;
}
.nursing-form-card textarea,
.nursing-treatment-add select,
.nursing-treatment-add input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cddfdb;
  border-radius: 8px;
  background: #fbfdfc;
  color: #234a42;
  font: inherit;
  font-size: 9.5px;
  outline: none;
}
.nursing-form-card textarea {
  padding: 8px 9px;
  resize: vertical;
  line-height: 1.4;
}
.nursing-form-card textarea:focus,
.nursing-treatment-add select:focus,
.nursing-treatment-add input:focus {
  border-color: #2a9887;
  background: #fff;
  box-shadow: 0 0 0 3px #2a98871c;
}
.nursing-form-card textarea:disabled {
  background: #f1f5f4;
  color: #667b76;
}
.nursing-form-card > footer {
  margin-top: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border-top: 1px solid #e2ece9;
  background: #fbfdfc;
}
.nursing-form-card > footer span {
  color: #849590;
  font-size: 8px;
}
.nursing-process-side {
  min-width: 0;
  display: grid;
  gap: 9px;
}
.nursing-treatment-add {
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) 72px minmax(145px, 0.9fr) auto;
  gap: 6px;
  border-bottom: 1px solid #e4ecea;
}
.nursing-treatment-add select,
.nursing-treatment-add input {
  height: 33px;
  padding: 0 8px;
}
.nursing-treatment-add button {
  border-color: #2a9887;
  background: #eaf8f4;
}
.nursing-treatment-list {
  max-height: 320px;
  overflow: auto;
}
.nursing-treatment-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-bottom: 1px solid #e7efed;
}
.nursing-treatment-list article > div {
  min-width: 0;
}
.nursing-treatment-list strong,
.nursing-treatment-list span,
.nursing-treatment-list small {
  display: block;
}
.nursing-treatment-list strong {
  color: #20483f;
  font-size: 10px;
}
.nursing-treatment-list span {
  margin-top: 2px;
  color: #637b75;
  font-size: 8.5px;
}
.nursing-treatment-list small {
  margin-top: 2px;
  color: #8a9b97;
  font-size: 8px;
}
.nursing-treatment-list article > b {
  color: #1f6759;
  font-size: 9.5px;
  white-space: nowrap;
}
.nursing-treatment-list article > button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #ebc7c7;
  border-radius: 7px;
  background: #fff6f6;
  color: #9c3b3b;
  font: inherit;
  font-size: 8.5px;
  font-weight: 800;
  cursor: pointer;
}
.nursing-history-list {
  max-height: 230px;
  overflow: auto;
}
.nursing-history-list article {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid #e7efed;
}
.nursing-history-list article.current {
  background: #f1faf7;
}
.nursing-history-list article > div {
  min-width: 0;
}
.nursing-history-list strong,
.nursing-history-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nursing-history-list strong {
  color: #264d45;
  font-size: 9px;
}
.nursing-history-list span {
  margin-top: 2px;
  color: #7a8f8a;
  font-size: 8px;
}
.nursing-history-list article > b {
  padding: 4px 6px;
  border-radius: 999px;
  background: #edf4f2;
  color: #53716a;
  font-size: 8px;
}
.nursing-empty,
.nursing-process-state {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  color: #7c918c;
  font-size: 9.5px;
  text-align: center;
}
.nursing-process-state {
  flex: 1;
  min-height: 300px;
}
.nursing-process-state.error {
  color: #9d3535;
}
@media (max-width: 1180px) {
  .nursing-patient-card {
    grid-template-columns: 1fr;
  }
  .nursing-patient-facts,
  .nursing-process-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nursing-process-toolbar .nursing-toolbar-actions {
    grid-column: 1/-1;
  }
}
@media (max-width: 900px) {
  .nursing-process-grid {
    grid-template-columns: 1fr;
  }
  .nursing-treatment-add {
    grid-template-columns: 1fr 72px auto;
  }
}
@media (max-width: 620px) {
  .nursing-process-topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .nursing-process-user {
    display: none;
  }
  .nursing-process-content {
    padding: 7px;
  }
  .nursing-patient-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nursing-process-toolbar {
    grid-template-columns: 1fr;
  }
  .nursing-process-toolbar .nursing-toolbar-actions {
    grid-column: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .nursing-treatment-add {
    grid-template-columns: 1fr;
  }
  .nursing-history-list article {
    grid-template-columns: 85px minmax(0, 1fr);
  }
}
.medical-room-workspace,
.medical-room-workspace *,
.medical-room-drawer-layer,
.medical-room-drawer-layer * {
  box-sizing: border-box;
}
.medical-room-workspace {
  padding: 10px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: #f5f8f7;
  min-width: 0;
}
.medical-room-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(130px, 0.55fr) minmax(
      160px,
      0.7fr
    ) 120px auto auto;
  gap: 7px;
  padding: 8px;
  border: 1px solid #dbe7e4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px #1340370b;
}
.medical-room-toolbar input,
.medical-room-toolbar select,
.medical-room-toolbar button {
  width: 100%;
  min-width: 0;
  height: 34px;
  margin: 0;
  padding: 0 9px;
  border: 1px solid #cfdedb;
  border-radius: 8px;
  background: #fbfdfc;
  color: #254e46;
  font: inherit;
  font-size: 10px;
}
.medical-room-toolbar button {
  font-weight: 800;
  cursor: pointer;
}
.medical-room-toolbar button.primary {
  border-color: #217968;
  background: #217968;
  color: #fff;
}
.medical-room-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.medical-room-kpis article {
  min-height: 66px;
  padding: 9px 11px;
  border: 1px solid #dbe7e4;
  border-radius: 11px;
  background: #fff;
}
.medical-room-kpis article.active {
  border-color: #bde0d5;
  background: #effaf6;
}
.medical-room-kpis article.inactive {
  border-color: #ecd1d1;
  background: #fff7f7;
}
.medical-room-kpis span,
.medical-room-kpis strong {
  display: block;
}
.medical-room-kpis span {
  color: #78908a;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.medical-room-kpis strong {
  margin-top: 4px;
  color: #19443b;
  font-size: 21px;
  line-height: 1;
}
.medical-room-table-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe7e4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px #1240370d;
}
.medical-room-table-card > header {
  min-height: 50px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e3ecea;
  background: #fbfdfc;
}
.medical-room-table-card > header strong,
.medical-room-table-card > header span {
  display: block;
}
.medical-room-table-card > header strong {
  color: #173f37;
  font-size: 12px;
}
.medical-room-table-card > header span {
  margin-top: 2px;
  color: #7d918c;
  font-size: 8.5px;
}
.medical-room-table-card > header button {
  height: 31px;
  padding: 0 10px;
  border: 1px solid #cbded9;
  border-radius: 7px;
  background: #fff;
  color: #245e52;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.medical-room-table-wrap {
  width: 100%;
  overflow: auto;
}
.medical-room-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.medical-room-table th,
.medical-room-table td {
  padding: 8px 9px;
  border-bottom: 1px solid #e7efed;
  text-align: left;
  vertical-align: middle;
}
.medical-room-table th {
  background: #f6faf9;
  color: #607a74;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}
.medical-room-table th:nth-child(1) {
  width: 19%;
}
.medical-room-table th:nth-child(2) {
  width: 15%;
}
.medical-room-table th:nth-child(3) {
  width: 13%;
}
.medical-room-table th:nth-child(4) {
  width: 25%;
}
.medical-room-table th:nth-child(5) {
  width: 9%;
}
.medical-room-table th:nth-child(6) {
  width: 12%;
}
.medical-room-table th:nth-child(7) {
  width: 10%;
}
.medical-room-table td > strong,
.medical-room-table td > span,
.medical-room-table td > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.medical-room-table td > strong {
  color: #244c43;
  font-size: 10px;
}
.medical-room-table td > span {
  margin-top: 3px;
  color: #627b75;
  font-size: 8.5px;
}
.medical-room-table td > small {
  margin-top: 3px;
  color: #8a9b97;
  font-size: 8px;
}
.medical-room-table td select {
  width: 100%;
  height: 30px;
  padding: 0 7px;
  border: 1px solid #cbdcd8;
  border-radius: 7px;
  background: #fff;
  color: #294f47;
  font: inherit;
  font-size: 8.5px;
}
.medical-room-code {
  min-height: 27px;
  margin: 0 0 3px;
  padding: 0 7px;
  border: 1px solid #badbd3;
  border-radius: 7px;
  background: #edf8f5;
  color: #176757;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}
.medical-room-status {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
}
.medical-room-status.active {
  background: #dff4ec;
  color: #176757;
}
.medical-room-status.inactive {
  background: #f7e5e5;
  color: #9a3c3c;
}
.medical-room-state {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c918c;
  font-size: 9.5px;
}
.medical-room-table-card > footer {
  min-height: 43px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e3ecea;
  background: #fbfdfc;
  color: #788c87;
  font-size: 8.5px;
}
.medical-room-table-card > footer > div {
  display: flex;
  gap: 5px;
}
.medical-room-table-card > footer button {
  height: 29px;
  padding: 0 9px;
  border: 1px solid #cddfdb;
  border-radius: 7px;
  background: #fff;
  color: #245e52;
  font: inherit;
  font-size: 8.5px;
  font-weight: 800;
}
.medical-room-table-card > footer button:disabled {
  opacity: 0.45;
}
.medical-room-message {
  margin: 8px 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
}
.medical-room-message.error {
  border: 1px solid #edcccc;
  background: #fff3f3;
  color: #9c3636;
}
.medical-room-denied {
  margin: 20px;
  padding: 16px;
  border: 1px solid #edcccc;
  border-radius: 10px;
  background: #fff3f3;
  color: #9c3636;
}
.medical-room-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  justify-content: flex-end;
}
.medical-room-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: #10231f75;
  cursor: pointer;
}
.medical-room-drawer {
  position: relative;
  width: min(720px, 94vw);
  height: 100%;
  overflow: auto;
  background: #f6f9f8;
  box-shadow: -18px 0 50px #0c26202e;
}
.medical-room-drawer > header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 57px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dce8e5;
  background: #fff;
}
.medical-room-drawer > header span,
.medical-room-drawer > header h2 {
  display: block;
  margin: 0;
}
.medical-room-drawer > header span {
  color: #7d918c;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.medical-room-drawer > header h2 {
  margin-top: 2px;
  color: #193f37;
  font-size: 15px;
}
.medical-room-drawer > header button {
  width: 31px;
  height: 31px;
  border: 1px solid #d4e2df;
  border-radius: 8px;
  background: #fff;
  color: #48655f;
  font-size: 18px;
  cursor: pointer;
}
.medical-room-drawer form {
  padding: 9px;
  display: grid;
  gap: 8px;
}
.medical-room-drawer form > section {
  overflow: hidden;
  border: 1px solid #dbe7e4;
  border-radius: 11px;
  background: #fff;
}
.medical-room-section-title {
  min-height: 48px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #e4ecea;
  background: #fbfdfc;
}
.medical-room-section-title > b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #e8f6f2;
  color: #217968;
  font-size: 9px;
}
.medical-room-section-title h3,
.medical-room-section-title p {
  margin: 0;
}
.medical-room-section-title h3 {
  color: #20483f;
  font-size: 11px;
}
.medical-room-section-title p {
  margin-top: 2px;
  color: #81938f;
  font-size: 8px;
}
.medical-room-form-grid {
  padding: 9px;
  display: grid;
  gap: 7px;
}
.medical-room-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.medical-room-form-grid label.full {
  grid-column: 1/-1;
}
.medical-room-form-grid label > span {
  display: block;
  margin-bottom: 4px;
  color: #4e6a63;
  font-size: 8.5px;
  font-weight: 800;
}
.medical-room-form-grid input,
.medical-room-form-grid select,
.medical-room-form-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cedfdb;
  border-radius: 8px;
  background: #fbfdfc;
  color: #234a42;
  font: inherit;
  font-size: 9.5px;
  outline: none;
}
.medical-room-form-grid input,
.medical-room-form-grid select {
  height: 33px;
  padding: 0 8px;
}
.medical-room-form-grid textarea {
  padding: 8px;
  resize: vertical;
}
.medical-room-specialty-toolbar {
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e7efed;
  color: #647c76;
  font-size: 8.5px;
}
.medical-room-specialty-toolbar > div {
  display: flex;
  gap: 5px;
}
.medical-room-specialty-toolbar button {
  height: 27px;
  padding: 0 8px;
  border: 1px solid #ccded9;
  border-radius: 7px;
  background: #fff;
  color: #286456;
  font: inherit;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.medical-room-specialty-grid {
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.medical-room-specialty-grid > p {
  grid-column: 1/-1;
  margin: 20px;
  color: #81938f;
  text-align: center;
  font-size: 9px;
}
.medical-room-specialty-grid label {
  min-height: 34px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  background: #fbfdfc;
  color: #46635c;
  font-size: 9px;
  cursor: pointer;
}
.medical-room-specialty-grid label.selected {
  border-color: #8ccabe;
  background: #ebf8f4;
  color: #176757;
  font-weight: 800;
}
.medical-room-specialty-grid input {
  width: 14px;
  height: 14px;
  margin: 0;
}
.medical-room-drawer form > footer {
  position: sticky;
  bottom: 0;
  padding: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  border: 1px solid #dbe7e4;
  border-radius: 10px;
  background: #fff;
}
.medical-room-drawer form > footer button {
  height: 33px;
  padding: 0 12px;
  border: 1px solid #ccded9;
  border-radius: 8px;
  background: #fff;
  color: #2a5c51;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
}
.medical-room-drawer form > footer button.primary {
  border-color: #217968;
  background: #217968;
  color: #fff;
}
@media (max-width: 1200px) {
  .medical-room-toolbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .medical-room-toolbar input {
    grid-column: span 2;
  }
  .medical-room-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .medical-room-workspace {
    padding: 7px;
  }
  .medical-room-toolbar {
    grid-template-columns: 1fr;
  }
  .medical-room-toolbar input {
    grid-column: auto;
  }
  .medical-room-kpis,
  .medical-room-form-grid.two,
  .medical-room-specialty-grid {
    grid-template-columns: 1fr;
  }
}
.p78-page,
.p78-room-layer,
.p78-modal-layer {
  --p78-green-950: #082f2a;
  --p78-green-900: #0d4b3f;
  --p78-green-800: #176757;
  --p78-green-700: #217968;
  --p78-green-600: #2a9887;
  --p78-green-100: #dff4ee;
  --p78-green-050: #eff9f6;
  --p78-gold-500: #d6a428;
  --p78-gold-100: #fff3ca;
  --p78-red-600: #b42318;
  --p78-red-100: #fee4e2;
  --p78-blue-600: #1570ef;
  --p78-blue-100: #dbeafe;
  --p78-purple-600: #7f56d9;
  --p78-purple-100: #eee5ff;
  --p78-text: #153d35;
  --p78-muted: #627b75;
  --p78-border: #d7e5e1;
  --p78-surface: #ffffff;
  --p78-bg: #eef5f3;
  --p78-shadow: 0 12px 34px rgba(8, 47, 42, 0.08);
  --p78-shadow-strong: 0 22px 70px rgba(8, 47, 42, 0.18);
  --p78-radius: 15px;
  --p78-control: 42px;
  font-family:
    Alexandria,
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  text-rendering: optimizeLegibility;
}
.p78-page *,
.p78-room-layer *,
.p78-modal-layer * {
  box-sizing: border-box;
}
.p78-page button,
.p78-page input,
.p78-page select,
.p78-page textarea,
.p78-room-layer button,
.p78-room-layer input,
.p78-room-layer select,
.p78-modal-layer button,
.p78-modal-layer input,
.p78-modal-layer select,
.p78-modal-layer textarea {
  font-family: inherit;
}
.p78-page {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--p78-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  background:
    radial-gradient(circle at 0 0, rgba(42, 152, 135, 0.11), transparent 27%),
    radial-gradient(
      circle at 100% 0,
      rgba(214, 164, 40, 0.08),
      transparent 24%
    ),
    var(--p78-bg);
}
.p78-topbar {
  min-height: 68px;
  padding: 10px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(215, 229, 225, 0.9);
  background: #fffffff5;
  box-shadow: 0 5px 24px #082f2a12;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.p78-topbar > button,
.p78-top-actions > a {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8d5ce;
  border-radius: 10px;
  background: #fff;
  color: var(--p78-green-800);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s ease;
}
.p78-topbar > button:hover,
.p78-top-actions > a:hover {
  border-color: var(--p78-green-600);
  background: var(--p78-green-050);
  transform: translateY(-1px);
}
.p78-topbar > div:nth-child(2) {
  min-width: 0;
}
.p78-topbar > div:nth-child(2) > span {
  display: block;
  color: var(--p78-green-700);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.p78-topbar > div:nth-child(2) > strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--p78-green-950);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p78-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.p78-top-actions > span,
.p78-top-actions > b {
  min-height: 32px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.p78-top-actions > span {
  border: 1px solid #acd4ca;
  background: var(--p78-green-050);
  color: var(--p78-green-800);
}
.p78-top-actions > b {
  background: var(--p78-green-900);
  color: #fff;
}
.p78-content {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 16px 18px 28px;
  scrollbar-width: thin;
  scrollbar-color: #9bc7bd transparent;
}
.p78-patient-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid #cde0dc;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f1faf7f5);
  box-shadow: var(--p78-shadow);
}
.p78-patient-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--p78-green-600),
    var(--p78-green-900)
  );
}
.p78-patient-title {
  display: flex;
  align-items: center;
  gap: 13px;
}
.p78-patient-title .patient-star {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 13px;
  background: linear-gradient(
    145deg,
    var(--p78-green-600),
    var(--p78-green-900)
  );
  color: #fff;
  font-size: 19px;
  box-shadow: 0 8px 20px #2a98873d;
}
.p78-patient-title h1,
.p78-patient-title p {
  margin: 0;
}
.p78-patient-title h1 {
  color: var(--p78-green-950);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}
.p78-patient-title p {
  margin-top: 3px;
  color: var(--p78-muted);
  font-size: 11px;
  font-weight: 700;
}
.p78-patient-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.p78-patient-grid > div {
  min-width: 0;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #dce9e6;
  border-radius: 11px;
  background: #ffffffd1;
}
.p78-patient-grid span,
.p78-patient-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p78-patient-grid span {
  color: #6d827d;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.p78-patient-grid strong {
  margin-top: 5px;
  color: var(--p78-text);
  font-size: 12px;
  font-weight: 850;
}
.p78-patient-card > footer {
  margin-top: 13px;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  border-top: 1px dashed #cbdeda;
  color: #526d66;
  font-size: 10px;
  font-weight: 700;
}
.p78-patient-card > footer b {
  color: var(--p78-green-900);
  font-weight: 900;
}
.p78-quick-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.p78-quick-actions > button {
  position: relative;
  min-height: 100px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 13px;
  text-align: left;
  overflow: hidden;
  border: 1px solid var(--p78-border);
  border-radius: 16px;
  background: #fff;
  color: var(--p78-text);
  cursor: pointer;
  box-shadow: 0 7px 22px #082f2a0e;
  transition: 0.2s ease;
}
.p78-quick-actions > button:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--p78-green-600),
    var(--p78-green-900)
  );
}
.p78-quick-actions > button:nth-child(2):after {
  background: linear-gradient(90deg, var(--p78-blue-600), #0b4ec7);
}
.p78-quick-actions > button:nth-child(3):after {
  background: linear-gradient(90deg, var(--p78-gold-500), #9b6d00);
}
.p78-quick-actions > button:hover {
  border-color: #9fc9bf;
  transform: translateY(-3px);
  box-shadow: 0 15px 32px #082f2a1c;
}
.p78-quick-actions i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--p78-green-100);
  color: var(--p78-green-800);
  font-style: normal;
  font-size: 24px;
  font-weight: 900;
}
.p78-quick-actions > button:nth-child(2) i {
  background: var(--p78-blue-100);
  color: var(--p78-blue-600);
}
.p78-quick-actions > button:nth-child(3) i {
  background: var(--p78-gold-100);
  color: #8c6200;
}
.p78-quick-actions strong {
  align-self: end;
  color: var(--p78-green-950);
  font-size: 14px;
  font-weight: 900;
}
.p78-quick-actions span {
  margin-top: 4px;
  color: var(--p78-muted);
  font-size: 10px;
  font-weight: 650;
}
.p78-summary-cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.p78-summary-cards article {
  min-width: 0;
  min-height: 148px;
  padding: 15px;
  border: 1px solid var(--p78-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px #082f2a0d;
}
.p78-summary-cards article:nth-child(1) {
  background: linear-gradient(145deg, #fff, #f0faf7);
}
.p78-summary-cards article:nth-child(2) {
  background: linear-gradient(145deg, #fff, #f4f8ff);
}
.p78-summary-cards article:nth-child(3) {
  background: linear-gradient(145deg, #fff, #fff9e9);
}
.p78-summary-cards article:nth-child(4) {
  background: linear-gradient(145deg, #fff, #f8f4ff);
}
.p78-summary-cards header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.p78-summary-cards header > span {
  color: #415f57;
  font-size: 11px;
  font-weight: 900;
}
.p78-summary-cards header > b {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e8efed;
  color: #36564e;
  font-size: 9px;
  font-weight: 900;
}
.p78-summary-cards header > b.active {
  background: var(--p78-blue-600);
  color: #fff;
}
.p78-summary-cards header > b.zero {
  background: var(--p78-red-600);
  color: #fff;
}
.p78-summary-cards article > strong {
  display: block;
  margin-top: 12px;
  color: var(--p78-green-950);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}
.p78-summary-cards article > strong.empty {
  font-size: 12px;
  color: #6f8580;
  line-height: 1.45;
}
.p78-summary-cards article > small {
  display: block;
  margin-top: 6px;
  color: #637b75;
  font-size: 10px;
  font-weight: 750;
}
.p78-summary-cards article > p {
  margin: 8px 0 0;
  color: #4f6b64;
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.55;
}
.p78-chips {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.p78-chips > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid #d6e5e1;
  border-radius: 999px;
  background: #f5faf8;
  color: #3f5d55;
  font-size: 9px;
  font-weight: 750;
}
.p78-chips > span.selected {
  border-color: #84c4b5;
  background: var(--p78-green-100);
  color: var(--p78-green-900);
}
.p78-chips b,
.p78-chips i {
  padding: 3px 5px;
  border-radius: 999px;
  background: var(--p78-green-900);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}
.p78-chips > em {
  color: #7d918c;
  font-size: 10px;
  font-style: normal;
}
.p78-next-card {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--p78-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--p78-shadow);
}
.p78-next-card > header {
  padding: 14px 16px;
  border-bottom: 1px solid #e1ebe8;
  background: linear-gradient(90deg, var(--p78-green-050), #ffffff);
  color: var(--p78-green-950);
  font-size: 13px;
  font-weight: 900;
}
.p78-tabs {
  position: sticky;
  top: -1px;
  z-index: 5;
  margin-top: 14px;
  padding: 6px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border: 1px solid #cfe0dc;
  border-radius: 15px;
  background: #fffffff5;
  box-shadow: 0 8px 25px #082f2a12;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.p78-tabs button {
  min-height: 40px;
  padding: 0 16px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #516e66;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.18s ease;
}
.p78-tabs button:hover {
  background: #edf7f4;
  color: var(--p78-green-900);
}
.p78-tabs button.active {
  background: linear-gradient(
    135deg,
    var(--p78-green-600),
    var(--p78-green-900)
  );
  color: #fff;
  box-shadow: 0 7px 18px #2a98873d;
}
.p78-panel {
  position: relative;
  margin-top: 11px;
  overflow: hidden;
  border: 1px solid #cfe0dc;
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--p78-shadow);
}
.p78-panel-head {
  min-height: 66px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dce8e5;
  background: linear-gradient(90deg, #eff9f6f2, #fffffffa);
}
.p78-panel-head span,
.p78-panel-head h2 {
  display: block;
  margin: 0;
}
.p78-panel-head span {
  color: var(--p78-green-700);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.p78-panel-head h2 {
  margin-top: 3px;
  color: var(--p78-green-950);
  font-size: 17px;
  font-weight: 900;
}
.p78-panel-head > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.p78-panel-head button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #b8d5ce;
  border-radius: 9px;
  background: #fff;
  color: var(--p78-green-800);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.18s ease;
}
.p78-panel-head button:hover {
  border-color: var(--p78-green-600);
  background: var(--p78-green-050);
}
.p78-panel-head button.warning {
  border-color: #e7c35d;
  background: var(--p78-gold-100);
  color: #765300;
}
.p78-panel-head button.billing {
  border-color: var(--p78-green-900);
  background: linear-gradient(
    135deg,
    var(--p78-green-700),
    var(--p78-green-900)
  );
  color: #fff;
  box-shadow: 0 7px 18px #0d4b3f33;
}
.p78-panel-head button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.p78-remark-form {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.p78-remark-form label > span,
.p78-modal label > span {
  display: block;
  margin-bottom: 6px;
  color: #3e5d55;
  font-size: 11px;
  font-weight: 900;
}
.p78-remark-form input,
.p78-remark-form select,
.p78-remark-form textarea,
.p78-modal input,
.p78-modal select,
.p78-modal textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #bfd4ce;
  border-radius: 10px;
  background: #fbfdfc;
  color: var(--p78-text);
  font-size: 12px;
  font-weight: 650;
  outline: none;
  transition: 0.17s ease;
}
.p78-remark-form input,
.p78-remark-form select,
.p78-modal input,
.p78-modal select {
  min-height: var(--p78-control);
  padding: 0 11px;
}
.p78-remark-form textarea,
.p78-modal textarea {
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.6;
}
.p78-remark-form input:focus,
.p78-remark-form select:focus,
.p78-remark-form textarea:focus,
.p78-modal input:focus,
.p78-modal select:focus,
.p78-modal textarea:focus {
  border-color: var(--p78-green-600);
  background: #fff;
  box-shadow: 0 0 0 4px #2a988721;
}
.p78-remark-form label.full {
  grid-column: 1 / -1;
}
.p78-remark-form label a {
  display: inline-flex;
  margin-top: 7px;
  color: var(--p78-green-700);
  font-size: 10px;
  font-weight: 850;
}
.p78-watermark {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: #0d4b3f14;
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 950;
  transform: rotate(-17deg);
}
.p78-consents {
  margin: 0 16px 16px;
  overflow: hidden;
  border: 1px solid #d5e5e1;
  border-radius: 13px;
  background: #fbfdfc;
}
.p78-consents > header {
  min-height: 44px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0ebe8;
  background: #f1f8f6;
  font-size: 11px;
  font-weight: 900;
}
.p78-consents > header span {
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--p78-green-900);
  color: #fff;
  font-size: 9px;
}
.p78-consents > div {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.p78-consents article {
  padding: 12px;
  border: 1px solid #d9e7e4;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 15px #082f2a0b;
}
.p78-consents article strong,
.p78-consents article span {
  display: block;
}
.p78-consents article strong {
  color: var(--p78-green-950);
  font-size: 11px;
  font-weight: 900;
}
.p78-consents article span {
  margin-top: 4px;
  color: #718680;
  font-size: 9px;
}
.p78-consents article > b {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
}
.p78-consents article > b.done {
  background: var(--p78-green-100);
  color: var(--p78-green-900);
}
.p78-consents article > b.pending {
  background: var(--p78-gold-100);
  color: #765300;
}
.p78-consents img {
  display: block;
  width: 100%;
  height: 95px;
  margin-top: 9px;
  object-fit: contain;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  background: #fff;
}
.p78-consents button {
  min-height: 32px;
  margin-top: 8px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--p78-green-900);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}
.p78-treatment-total {
  min-height: 50px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0ebe8;
  background: #fbfdfc;
  color: #526d66;
  font-size: 11px;
  font-weight: 750;
}
.p78-treatment-total strong {
  color: var(--p78-green-900);
  font-size: 16px;
  font-weight: 950;
}
.p78-table-wrap {
  width: 100%;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #9bc7bd transparent;
}
.p78-table-wrap table {
  width: 100%;
  min-width: 1050px;
  border-collapse: separate;
  border-spacing: 0;
}
.p78-table-wrap th,
.p78-table-wrap td {
  padding: 11px 12px;
  border-bottom: 1px solid #e4ecea;
  text-align: left;
  vertical-align: middle;
}
.p78-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #edf6f3;
  color: #34564d;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.p78-table-wrap td {
  color: #304f47;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.45;
}
.p78-table-wrap tbody tr:nth-child(2n) td {
  background: #fbfdfc;
}
.p78-table-wrap tbody tr:hover td {
  background: #edf8f5;
}
.p78-table-wrap td strong {
  color: var(--p78-green-900);
  font-weight: 900;
}
.p78-table-wrap td a {
  color: var(--p78-blue-600);
  font-weight: 850;
}
.p78-table-wrap td button {
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid #efc1bd;
  border-radius: 8px;
  background: #fff5f4;
  color: var(--p78-red-600);
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}
.p78-files {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.p78-files > a,
.p78-files > div {
  min-height: 86px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #d5e5e1;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #f5faf8);
  text-decoration: none;
  transition: 0.18s ease;
}
.p78-files > a:hover {
  border-color: var(--p78-green-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 23px #082f2a17;
}
.p78-files strong,
.p78-files span {
  display: block;
}
.p78-files strong {
  color: var(--p78-green-950);
  font-size: 12px;
  font-weight: 900;
}
.p78-files span {
  margin-top: 5px;
  color: var(--p78-green-700);
  font-size: 10px;
  font-weight: 800;
}
.p78-message {
  margin: 11px 14px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
}
.p78-message.error {
  border: 1px solid #f2aaa4;
  background: var(--p78-red-100);
  color: var(--p78-red-600);
}
.p78-message.success {
  border: 1px solid #9ed0c3;
  background: var(--p78-green-100);
  color: var(--p78-green-900);
}
.p78-empty {
  min-height: 110px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718680;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.p78-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #607a74;
  font-size: 13px;
  font-weight: 800;
}
.p78-state.error {
  color: var(--p78-red-600);
}
.p78-room-layer,
.p78-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 1400;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p78-room-backdrop,
.p78-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: linear-gradient(#06221db8, #06221db8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.p78-room-picker {
  position: relative;
  width: min(820px, 97vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(191, 212, 206, 0.8);
  border-radius: 20px;
  background: #f4f8f7;
  box-shadow: var(--p78-shadow-strong);
}
.p78-room-picker > header,
.p78-modal > header {
  min-height: 78px;
  padding: 15px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #d7e5e1;
  background: linear-gradient(
    135deg,
    var(--p78-green-900),
    var(--p78-green-700)
  );
  color: #fff;
}
.p78-room-picker header span,
.p78-room-picker header h2,
.p78-room-picker header p,
.p78-modal header span,
.p78-modal header h2,
.p78-modal header p {
  display: block;
  margin: 0;
}
.p78-room-picker header span,
.p78-modal header span {
  color: #ffffffc2;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.p78-room-picker header h2,
.p78-modal header h2 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 950;
}
.p78-room-picker header p,
.p78-modal header p {
  margin-top: 4px;
  color: #ffffffd1;
  font-size: 10px;
  font-weight: 650;
}
.p78-room-picker header > button,
.p78-modal header > button {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: #ffffff21;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  cursor: pointer;
}
.p78-room-list {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.p78-room-list > button {
  position: relative;
  width: 100%;
  min-height: 108px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 12px;
  overflow: hidden;
  text-align: left;
  border: 2px solid #d6e5e1;
  border-radius: 14px;
  background: #fff;
  color: var(--p78-text);
  cursor: pointer;
  transition: 0.18s ease;
}
.p78-room-list > button:hover {
  border-color: #8bc3b5;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px #082f2a17;
}
.p78-room-list > button.selected {
  border-color: var(--p78-green-600);
  background: var(--p78-green-050);
  box-shadow: 0 0 0 4px #2a98871f;
}
.p78-room-list > button > b {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  min-width: 64px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--p78-green-100), #ffffff);
  color: var(--p78-green-900);
  font-size: 13px;
  font-weight: 950;
}
.p78-room-list strong,
.p78-room-list span,
.p78-room-list small {
  display: block;
}
.p78-room-list strong {
  color: var(--p78-green-950);
  font-size: 14px;
  font-weight: 900;
}
.p78-room-list span {
  margin-top: 3px;
  color: #526d66;
  font-size: 10px;
  font-weight: 750;
}
.p78-room-list small {
  margin-top: 3px;
  color: #738983;
  font-size: 9px;
  font-weight: 650;
}
.p78-room-list i {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 7px;
  border-radius: 999px;
  background: #edf3f1;
  color: #526d66;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}
.p78-room-list > button.selected i {
  background: var(--p78-green-900);
  color: #fff;
}
.p78-modal {
  position: relative;
  width: min(620px, 97vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(191, 212, 206, 0.8);
  border-radius: 20px;
  background: #f5f9f8;
  box-shadow: var(--p78-shadow-strong);
}
.p78-modal-body {
  padding: 16px;
  display: grid;
  gap: 13px;
}
.p78-modal label {
  display: block;
}
.p78-room-picker > footer,
.p78-modal > footer {
  min-height: 66px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid #d7e5e1;
  background: #fff;
}
.p78-room-picker > footer button,
.p78-modal > footer button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #bfd4ce;
  border-radius: 10px;
  background: #fff;
  color: var(--p78-green-800);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.p78-room-picker > footer button.primary,
.p78-modal > footer button.primary {
  border-color: var(--p78-green-900);
  background: linear-gradient(
    135deg,
    var(--p78-green-700),
    var(--p78-green-900)
  );
  color: #fff;
  box-shadow: 0 8px 20px #0d4b3f33;
}
.p78-room-picker > footer button:disabled,
.p78-modal > footer button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 1180px) {
  .p78-patient-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .p78-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 880px) {
  .p78-topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .p78-top-actions {
    grid-column: 1 / -1;
  }
  .p78-quick-actions {
    grid-template-columns: 1fr;
  }
  .p78-patient-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p78-consents > div,
  .p78-files,
  .p78-room-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .p78-content {
    padding: 9px 8px 20px;
  }
  .p78-topbar {
    min-height: 60px;
    padding: 8px;
    gap: 8px;
  }
  .p78-topbar > div:nth-child(2) > strong {
    font-size: 15px;
  }
  .p78-top-actions {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .p78-patient-card {
    padding: 13px;
  }
  .p78-patient-title h1 {
    font-size: 18px;
  }
  .p78-patient-grid,
  .p78-summary-cards,
  .p78-remark-form {
    grid-template-columns: 1fr;
  }
  .p78-remark-form label.full {
    grid-column: auto;
  }
  .p78-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .p78-panel-head > div:last-child {
    width: 100%;
    justify-content: flex-start;
  }
  .p78-panel-head button {
    flex: 1;
  }
  .p78-tabs {
    border-radius: 12px;
  }
  .p78-room-layer,
  .p78-modal-layer {
    padding: 7px;
  }
  .p78-room-picker,
  .p78-modal {
    width: 100%;
    max-height: 96vh;
    border-radius: 15px;
  }
}
.p78-page {
  --wb-ink: #102f29;
  --wb-muted: #59716b;
  --wb-line: #cbded9;
  --wb-soft: #eef7f4;
  --wb-green: #176757;
  --wb-green-dark: #0d4b3f;
  font-family:
    Alexandria,
    Segoe UI,
    Tahoma,
    Arial,
    sans-serif !important;
  color: var(--wb-ink);
  font-size: 13px;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.p78-page button,
.p78-page input,
.p78-page select,
.p78-page textarea {
  font-family: inherit !important;
}
.p78-page .p78-topbar {
  min-height: 60px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--wb-line);
}
.p78-page .p78-topbar > div:nth-child(2) > span {
  color: var(--wb-green);
  font-size: 9px;
  font-weight: 900;
}
.p78-page .p78-topbar > div:nth-child(2) > strong {
  color: var(--wb-ink);
  font-size: 17px;
  font-weight: 900;
}
.p78-page .p78-history-badge {
  border: 1px solid #c7b7ee !important;
  background: #f3efff !important;
  color: #6941c6 !important;
}
.p78-page .p78-content {
  padding: 10px 12px 20px;
  background: #edf4f2;
}
.p78-page .p78-patient-card {
  padding: 11px 13px;
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  box-shadow: 0 5px 16px #082f2a0e;
}
.p78-page .p78-patient-title h1 {
  font-size: 18px;
  font-weight: 900;
}
.p78-page .p78-patient-title p {
  font-size: 9.5px;
  font-weight: 750;
}
.p78-page .p78-patient-grid {
  margin-top: 8px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
}
.p78-page .p78-patient-grid > div {
  min-height: 49px;
  padding: 7px 8px;
  border-radius: 8px;
}
.p78-page .p78-patient-grid span {
  font-size: 8px;
  font-weight: 900;
}
.p78-page .p78-patient-grid strong {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 900;
}
.p78-page .p78-workbench {
  margin-top: 9px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.p78-page .p78-side-column {
  min-width: 0;
  display: grid;
  gap: 7px;
  position: sticky;
  top: 0;
  max-height: calc(100vh - 85px);
  overflow: auto;
  scrollbar-width: thin;
}
.p78-page .p78-main-column {
  min-width: 0;
}
.p78-page .p78-visit-navigator {
  overflow: hidden;
  border: 1px solid #bdd5cf;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 15px #082f2a0e;
}
.p78-page .p78-visit-navigator > header {
  min-height: 48px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d9e7e3;
  background: linear-gradient(90deg, #e9f6f2, #fff);
}
.p78-page .p78-visit-navigator header span,
.p78-page .p78-visit-navigator header strong {
  display: block;
}
.p78-page .p78-visit-navigator header span {
  color: var(--wb-green);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.p78-page .p78-visit-navigator header strong {
  margin-top: 1px;
  font-size: 12px;
  font-weight: 900;
}
.p78-page .p78-visit-navigator header > b {
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--wb-green-dark);
  color: #fff;
  font-size: 8px;
}
.p78-page .p78-visit-navigator > input {
  width: calc(100% - 16px);
  height: 34px;
  margin: 8px;
  padding: 0 9px;
  border: 1px solid #c7dcd6;
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--wb-ink);
  font-size: 9.5px;
  font-weight: 700;
  outline: none;
}
.p78-page .p78-visit-list {
  max-height: 260px;
  overflow: auto;
  padding: 0 8px 8px;
  display: grid;
  gap: 4px;
}
.p78-page .p78-visit-list > button {
  width: 100%;
  min-height: 52px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  text-align: left;
  border: 1px solid #d7e4e1;
  border-radius: 8px;
  background: #fff;
  color: var(--wb-ink);
  cursor: pointer;
}
.p78-page .p78-visit-list > button:hover {
  border-color: #8fc2b6;
  background: #f2faf7;
}
.p78-page .p78-visit-list > button.active {
  border-color: #3b9b87;
  background: #e9f7f3;
  box-shadow: inset 4px 0 #176757;
}
.p78-page .p78-visit-list > button.current {
  border-style: dashed;
}
.p78-page .p78-visit-list > button > span {
  color: #667e78;
  font-size: 7.5px;
  font-weight: 850;
}
.p78-page .p78-visit-list strong,
.p78-page .p78-visit-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p78-page .p78-visit-list strong {
  font-size: 9.5px;
  font-weight: 900;
}
.p78-page .p78-visit-list small {
  margin-top: 2px;
  color: var(--wb-muted);
  font-size: 7.5px;
  font-weight: 700;
}
.p78-page .p78-visit-list > button > b {
  max-width: 76px;
  overflow: hidden;
  padding: 4px 6px;
  border-radius: 999px;
  background: #edf3f1;
  color: #49665f;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p78-page .p78-quick-actions {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.p78-page .p78-quick-actions > button {
  min-height: 52px;
  padding: 7px 9px;
  column-gap: 8px;
  border-radius: 9px;
}
.p78-page .p78-quick-actions > button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.p78-page .p78-quick-actions strong {
  font-size: 10.5px;
  font-weight: 900;
}
.p78-page .p78-quick-actions span {
  font-size: 8px;
  font-weight: 700;
}
.p78-page .p78-summary-cards {
  margin: 0;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--wb-line);
  border-radius: 10px;
  background: #fff;
}
.p78-page .p78-summary-cards article {
  min-height: 0;
  padding: 8px 9px;
  border: 0;
  border-bottom: 1px solid #e0eae7;
  border-radius: 0;
  background: #fff !important;
  box-shadow: none;
}
.p78-page .p78-summary-cards article:last-child {
  border-bottom: 0;
}
.p78-page .p78-summary-cards header > span {
  font-size: 9px;
  font-weight: 900;
}
.p78-page .p78-summary-cards article > strong {
  margin-top: 4px;
  font-size: 18px;
}
.p78-page .p78-summary-cards article > p {
  margin: 3px 0 0;
  font-size: 8px;
}
.p78-page .p78-summary-cards article > p:not(:first-of-type) {
  display: none;
}
.p78-page .p78-historical-banner {
  min-height: 54px;
  margin-bottom: 7px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #c9b9ed;
  border-radius: 10px;
  background: linear-gradient(90deg, #f2edff, #fff);
}
.p78-page .p78-historical-banner span,
.p78-page .p78-historical-banner strong {
  display: block;
}
.p78-page .p78-historical-banner span {
  color: #6941c6;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.p78-page .p78-historical-banner strong {
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 900;
}
.p78-page .p78-historical-banner button {
  min-height: 33px;
  padding: 0 10px;
  border: 1px solid #a995dc;
  border-radius: 8px;
  background: #fff;
  color: #6941c6;
  font-size: 8.5px;
  font-weight: 900;
  cursor: pointer;
}
.p78-page .p78-main-column .p78-tabs {
  margin: 0;
  top: 0;
  padding: 5px;
  gap: 4px;
}
.p78-page .p78-main-column .p78-tabs button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 9.5px;
  font-weight: 900;
}
.p78-page .p78-main-column .p78-panel {
  margin-top: 7px;
  border-radius: 11px;
}
.p78-page .p78-main-column .p78-panel-head {
  min-height: 54px;
  padding: 9px 11px;
}
.p78-page .p78-main-column .p78-panel-head h2 {
  font-size: 14px;
  font-weight: 900;
}
.p78-page .p78-main-column .p78-panel-head button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 9px;
  font-weight: 900;
}
.p78-page .p78-main-column .p78-remark-form label > span {
  font-size: 9.5px;
  font-weight: 900;
}
.p78-page .p78-main-column .p78-remark-form input,
.p78-page .p78-main-column .p78-remark-form select {
  min-height: 37px;
  font-size: 10.5px;
}
.p78-page .p78-main-column .p78-remark-form textarea {
  font-size: 11px;
  line-height: 1.55;
}
.p78-page .p78-main-column .p78-table-wrap th {
  font-size: 8.5px;
  font-weight: 900;
}
.p78-page .p78-main-column .p78-table-wrap td {
  font-size: 9.5px;
  font-weight: 650;
}
@media (max-width: 1150px) {
  .p78-page .p78-workbench {
    grid-template-columns: 320px minmax(0, 1fr);
  }
  .p78-page .p78-patient-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .p78-page .p78-workbench {
    display: block;
  }
  .p78-page .p78-side-column {
    position: static;
    max-height: none;
  }
  .p78-page .p78-main-column {
    margin-top: 9px;
  }
  .p78-page .p78-patient-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.p78-page .p78-process-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
  align-items: stretch;
  gap: 8px 12px;
  padding: 9px 11px 8px;
}
.p78-page .p78-patient-overview {
  min-width: 0;
}
.p78-page .p78-process-header .p78-patient-title {
  min-height: 36px;
  gap: 9px;
}
.p78-page .p78-process-header .p78-patient-title .patient-star {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 10px;
  font-size: 18px;
}
.p78-page .p78-process-header .p78-patient-title h1 {
  font-size: 16px;
}
.p78-page .p78-process-header .p78-patient-grid {
  margin-top: 6px;
  gap: 4px;
}
.p78-page .p78-process-header .p78-patient-grid > div {
  min-height: 43px;
  padding: 6px 7px;
}
.p78-page .p78-package-overview {
  min-width: 0;
  max-height: 92px;
  overflow: hidden;
  border: 1px solid #bad8d1;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5fbf9, #e9f7f3);
}
.p78-page .p78-package-overview.no-package {
  border-color: #e2d7bd;
  background: linear-gradient(135deg, #fffdf8, #fff7e6);
}
.p78-page .p78-package-overview > header {
  min-height: 42px;
  padding: 6px 8px 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(23, 103, 87, 0.12);
}
.p78-page .p78-package-overview header span,
.p78-page .p78-package-overview header strong {
  display: block;
}
.p78-page .p78-package-overview header span {
  color: #607d76;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.p78-page .p78-package-overview header strong {
  margin-top: 2px;
  color: #154f44;
  font-size: 10.5px;
  font-weight: 900;
}
.p78-page .p78-package-overview.no-package header strong {
  color: #8a6118;
}
.p78-page .p78-package-overview header > b {
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #176757;
  color: #fff;
  font-size: 9px;
}
.p78-page .p78-package-overview.no-package header > b {
  background: #b3832a;
}
.p78-page .p78-package-list {
  max-height: 49px;
  overflow: auto;
  padding: 5px 7px;
  display: grid;
  gap: 4px;
  scrollbar-width: thin;
}
.p78-page .p78-package-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border: 1px solid #cfe2dd;
  border-radius: 7px;
  background: #ffffffe0;
}
.p78-page .p78-package-list > div.selected {
  border-color: #48a38f;
  box-shadow: inset 3px 0 #176757;
}
.p78-page .p78-package-list span {
  overflow: hidden;
  color: #244b43;
  font-size: 8px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p78-page .p78-package-list b,
.p78-page .p78-package-list i {
  padding: 3px 5px;
  border-radius: 999px;
  color: #176757;
  background: #e4f4ef;
  font-size: 7px;
  font-style: normal;
  white-space: nowrap;
}
.p78-page .p78-package-list i {
  color: #fff;
  background: #176757;
}
.p78-page .p78-package-list p {
  margin: 5px 3px;
  color: #876527;
  font-size: 8px;
  line-height: 1.35;
}
.p78-page .p78-process-header > footer {
  grid-column: 1 / -1;
  min-height: 26px;
  margin-top: 0;
  padding-top: 6px;
}
.p78-page .p78-workbench {
  grid-template-columns: 300px minmax(0, 1fr);
}
.p78-page .p78-visit-list {
  max-height: 176px;
}
.p78-page .p78-quick-actions > button {
  min-height: 44px;
}
.p78-page .p78-quick-actions i {
  width: 34px;
  height: 34px;
  font-size: 18px;
}
.p78-page .p78-summary-cards article {
  padding-top: 6px;
  padding-bottom: 6px;
}
.p78-page .p78-main-column .p78-remark-form {
  padding: 10px 12px;
  gap: 8px 10px;
}
.p78-page .p78-main-column .p78-remark-form textarea {
  min-height: 72px;
}
@media (max-width: 1150px) {
  .p78-page .p78-process-header {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .p78-page .p78-workbench {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .p78-page .p78-process-header {
    grid-template-columns: 1fr;
  }
  .p78-page .p78-package-overview {
    max-height: 108px;
  }
  .p78-page .p78-process-header > footer {
    grid-column: 1;
  }
}
.p78-page .p78-process-action-list {
  min-width: 150px;
  height: 36px;
  padding: 0 30px 0 11px;
  border: 1px solid #8fc7bb;
  border-radius: 9px;
  outline: 0;
  background: #f1faf7;
  color: #145f53;
  font-size: 9.5px;
  font-weight: 900;
  cursor: pointer;
}
.p78-page .p78-process-action-list:focus {
  border-color: #176757;
  box-shadow: 0 0 0 3px #1767571c;
}
.p78-page .p78-process-header {
  grid-template-columns: minmax(270px, 0.9fr) minmax(430px, 1.35fr) minmax(
      260px,
      0.8fr
    );
  align-items: center;
  gap: 8px 16px;
  padding: 10px 14px 8px;
  background: linear-gradient(115deg, #fff, #fbfefd 58%, #f1faf7);
}
.p78-page .p78-process-header:before {
  width: 6px;
}
.p78-page .p78-patient-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.p78-page .p78-patient-identity .patient-star {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 18px;
}
.p78-page .p78-patient-identity > div {
  min-width: 0;
}
.p78-page .p78-patient-identity h1 {
  overflow: hidden;
  margin: 0;
  color: #123b34;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p78-page .p78-patient-identity p {
  margin: 5px 0 0;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  color: #607a74;
  font-size: 8.5px;
  white-space: nowrap;
}
.p78-page .p78-patient-identity p > * {
  padding: 0 7px;
  border-right: 1px solid #d8e5e1;
}
.p78-page .p78-patient-identity p > *:first-child {
  padding-left: 0;
  color: #176757;
}
.p78-page .p78-patient-identity p > *:last-child {
  border-right: 0;
}
.p78-page .p78-header-facts {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-right: 1px solid #d8e5e1;
  border-left: 1px solid #d8e5e1;
}
.p78-page .p78-header-facts > div {
  min-width: 0;
  padding: 2px 10px;
  border-right: 1px solid #e1ebe8;
}
.p78-page .p78-header-facts > div:last-child {
  border-right: 0;
}
.p78-page .p78-header-facts span,
.p78-page .p78-header-facts strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p78-page .p78-header-facts span {
  color: #758b85;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.p78-page .p78-header-facts strong {
  margin-top: 4px;
  color: #1d463f;
  font-size: 10px;
  font-weight: 900;
}
.p78-page .p78-package-compact {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid #a9d4ca;
  border-radius: 10px;
  background: #ebf8f4e0;
}
.p78-page .p78-package-compact.no-package {
  border-color: #e1cf9e;
  background: #fff9e9;
}
.p78-page .p78-package-compact-title span,
.p78-page .p78-package-compact-title strong {
  display: block;
  white-space: nowrap;
}
.p78-page .p78-package-compact-title span {
  color: #6c847e;
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
}
.p78-page .p78-package-compact-title strong {
  margin-top: 3px;
  color: #176757;
  font-size: 10px;
}
.p78-page .p78-package-compact.no-package strong {
  color: #8c6419;
}
.p78-page .p78-package-compact-list {
  min-width: 0;
  max-height: 36px;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  scrollbar-width: thin;
}
.p78-page .p78-package-compact-list > span {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  padding: 4px 6px;
  border-radius: 7px;
  background: #fff;
  color: #44655e;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p78-page .p78-package-compact-list > span.selected {
  color: #fff;
  background: #176757;
}
.p78-page .p78-package-compact-list b {
  color: #176757;
  font-size: 7px;
}
.p78-page .p78-package-compact-list > span.selected b {
  color: #d9f4ec;
}
.p78-page .p78-process-header > footer {
  grid-column: 1 / -1;
  min-height: 27px;
  margin: 0;
  padding: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid #d9e6e2;
}
.p78-page .p78-process-header > footer > span {
  padding: 0 13px;
  border-right: 1px solid #dce8e4;
  color: #70857f;
  font-size: 8px;
  white-space: nowrap;
}
.p78-page .p78-process-header > footer > span:first-child {
  padding-left: 0;
}
.p78-page .p78-process-header > footer > span:last-child {
  border-right: 0;
}
.p78-page .p78-process-header > footer b {
  margin-left: 4px;
  color: #214a42;
}
.p78-page .p78-workbench {
  grid-template-columns: 310px minmax(0, 1fr);
}
.p78-page .p78-side-column {
  display: block;
  max-height: none;
  overflow: visible;
}
.p78-page .p78-visit-list {
  max-height: calc(100vh - 245px);
  min-height: 170px;
}
@media (max-width: 1300px) {
  .p78-page .p78-process-header {
    grid-template-columns: minmax(250px, 0.9fr) minmax(360px, 1.2fr);
  }
  .p78-page .p78-package-compact {
    grid-column: 1 / -1;
  }
}
@media (max-width: 800px) {
  .p78-page .p78-process-header {
    grid-template-columns: 1fr;
  }
  .p78-page .p78-header-facts,
  .p78-page .p78-package-compact {
    grid-column: 1;
  }
  .p78-page .p78-header-facts {
    border-right: 0;
    border-left: 0;
  }
  .p78-page .p78-process-header > footer {
    overflow-x: auto;
  }
  .p78-page .p78-process-action-list {
    min-width: 130px;
  }
  .p78-page .p78-visit-list {
    max-height: 300px;
  }
}
.p78-page .p78-next-date-time,
.p78-modal .p78-next-date-time {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.p78-next-schedule {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #c6dbd6;
  border-radius: 11px;
  background: #f5faf8;
}
.p78-next-schedule > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.p78-next-schedule > header span,
.p78-next-schedule > header strong {
  display: block;
}
.p78-next-schedule > header span {
  color: #708881;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.p78-next-schedule > header strong {
  margin-top: 2px;
  color: #21483f;
  font-size: 11px;
}
.p78-next-schedule > header > b {
  padding: 5px 8px;
  border-radius: 999px;
  background: #176757;
  color: #fff;
  font-size: 8px;
  white-space: nowrap;
}
.p78-next-schedule-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(140px, 0.65fr);
  gap: 7px;
}
.p78-next-schedule-summary article {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #d6e5e1;
  border-radius: 9px;
  background: #fff;
}
.p78-next-schedule-summary article.occupied {
  border-color: #ecc1b9;
  background: #fff3f1;
}
.p78-next-schedule-summary article.available {
  border-color: #bce0d5;
  background: #effaf6;
}
.p78-next-schedule-summary span,
.p78-next-schedule-summary strong,
.p78-next-schedule-summary small {
  display: block;
}
.p78-next-schedule-summary span {
  color: #748a84;
  font-size: 8px;
  font-weight: 900;
}
.p78-next-schedule-summary strong {
  margin-top: 4px;
  color: #174e44;
  font-size: 15px;
}
.p78-next-schedule-summary small {
  margin-top: 3px;
  color: #71847f;
  font-size: 8px;
  line-height: 1.35;
}
.p78-next-schedule-summary .occupied strong,
.p78-next-schedule-summary .occupied small {
  color: #aa3f32;
}
.p78-next-schedule-loading,
.p78-next-schedule-error {
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
}
.p78-next-schedule-loading {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #496c64;
  background: #fff;
}
.p78-next-schedule-error {
  color: #a0372f;
  background: #fff0ee;
}
.p78-next-booked-times > span {
  display: block;
  margin-bottom: 5px;
  color: #6d857e;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.p78-next-booked-times > div {
  max-height: 86px;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.p78-next-booked-times > div > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid #d3e2de;
  border-radius: 7px;
  background: #fff;
}
.p78-next-booked-times > div > span.selected {
  border-color: #d27a6d;
  background: #fff0ed;
}
.p78-next-booked-times strong {
  color: #31564e;
  font-size: 8.5px;
}
.p78-next-booked-times b {
  color: #8a443b;
  font-size: 7px;
}
.p78-next-booked-times em {
  color: #71847f;
  font-size: 9px;
  font-style: normal;
}
@media (max-width: 560px) {
  .p78-page .p78-next-date-time,
  .p78-modal .p78-next-date-time,
  .p78-next-schedule-summary {
    grid-template-columns: 1fr;
  }
}
.package-admin-button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #176f62;
  border: 1px solid #bcded6;
  border-radius: 10px;
  background: #f1faf7;
  font-size: 10.5px;
  font-weight: 850;
  white-space: nowrap;
}
.package-admin-button.reports {
  color: #8a5a1a;
  border-color: #ead7af;
  background: #fff9eb;
}
.package-admin-layer {
  position: fixed;
  z-index: 1250;
  inset: 0;
  padding: 12px;
  background: #09242080;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.package-admin-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cfe0dc;
  border-radius: 18px;
  background: #f5f9f8;
  box-shadow: 0 24px 70px #0a302b3d;
}
.package-admin-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #dce7e4;
  background: #fff;
}
.package-admin-header > div {
  min-width: 0;
}
.package-admin-header span {
  color: #7b918b;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.package-admin-header h2 {
  margin: 4px 0 0;
  color: #173f38;
  font-size: 22px;
}
.package-admin-header p {
  margin: 5px 0 0;
  color: #718781;
  font-size: 10px;
}
.package-admin-header > button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #526f69;
  border: 1px solid #d9e4e1;
  border-radius: 10px;
  background: #fff;
}
.package-admin-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 8px 10px 0;
}
.package-admin-tabs button {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 12px;
  color: #5d7771;
  border: 1px solid #d8e4e1;
  border-radius: 11px;
  background: #fff;
  text-align: left;
}
.package-admin-tabs button.active {
  color: #126b5d;
  border-color: #8fcbbf;
  background: #eaf8f4;
  box-shadow: inset 0 -3px #16816f;
}
.package-admin-tabs b {
  font-size: 12px;
}
.package-admin-tabs span {
  margin-top: 3px;
  font-size: 8.5px;
}
.package-admin-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 10px;
  padding: 6px;
  border: 1px solid #d8e5e1;
  border-radius: 11px;
  background: #eaf3f0;
}
.package-admin-toolbar > label {
  min-width: 250px;
  flex: 1;
}
.package-admin-toolbar input,
.package-admin-toolbar select,
.package-admin-toolbar button {
  height: 34px;
  color: #31564f;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
  font-size: 9.5px;
}
.package-admin-toolbar > label input {
  width: 100%;
  padding: 0 10px;
}
.package-admin-toolbar select {
  max-width: 175px;
  padding: 0 25px 0 8px;
}
.package-admin-toolbar > div {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
}
.package-admin-toolbar > div input {
  width: 112px;
  padding: 0;
  border: 0;
}
.package-admin-toolbar > div span {
  color: #8da09b;
  font-size: 8px;
}
.package-admin-toolbar > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  font-weight: 800;
}
.package-admin-toolbar > button.primary {
  color: #fff;
  border-color: #176f62;
  background: #176f62;
}
.package-admin-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(125px, 1fr));
  gap: 6px;
  margin: 0 10px 8px;
}
.package-admin-kpis article {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #dce6e3;
  border-radius: 10px;
  background: #fff;
}
.package-admin-kpis span {
  color: #778d87;
  font-size: 7.5px;
  font-weight: 900;
  text-transform: uppercase;
}
.package-admin-kpis strong {
  margin-top: 4px;
  color: #234a43;
  font-size: 13px;
}
.package-admin-kpis small {
  margin-top: 4px;
  color: #8d9c98;
  font-size: 7.5px;
}
.package-admin-kpis .collected {
  border-color: #c9e7dd;
  background: #effaf6;
}
.package-admin-kpis .collected strong {
  color: #14715f;
}
.package-admin-kpis .outstanding {
  border-color: #efd2c7;
  background: #fff6f2;
}
.package-admin-kpis .outstanding strong {
  color: #a44c31;
}
.package-admin-notice,
.package-admin-error {
  margin: 0 10px 7px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 10px;
}
.package-admin-notice {
  display: flex;
  justify-content: space-between;
  color: #176551;
  border: 1px solid #bee3d5;
  background: #ecfaf5;
}
.package-admin-notice button {
  border: 0;
  background: transparent;
}
.package-admin-error {
  color: #9c382e;
  border: 1px solid #efc3bc;
  background: #fff2f0;
}
.package-admin-table-wrap {
  min-height: 0;
  flex: 1;
  overflow: auto;
  margin: 0 10px;
  border: 1px solid #dce6e3;
  border-radius: 11px;
  background: #fff;
}
.package-admin-table-wrap table {
  width: 100%;
  min-width: 1440px;
  table-layout: fixed;
  border-collapse: collapse;
}
.package-admin-table-wrap.reports table {
  min-width: 2200px;
}
.package-admin-table-wrap th {
  padding: 8px 7px;
  color: #617a74;
  border-bottom: 1px solid #dfe8e5;
  background: #f7faf9;
  text-align: left;
  font-size: 8.5px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
.package-admin-table-wrap td {
  padding: 8px 7px;
  color: #31564f;
  border-bottom: 1px solid #edf2f0;
  vertical-align: middle;
  font-size: 10px;
}
.package-admin-table-wrap tbody tr:hover {
  background: #fbfdfc;
}
.package-admin-table-wrap td > strong,
.package-admin-table-wrap td > span,
.package-admin-table-wrap td > small {
  max-width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.package-admin-table-wrap td > strong {
  color: #214840;
  font-size: 10.5px;
}
.package-admin-table-wrap td > span {
  margin-top: 4px;
  color: #617b74;
  font-size: 9px;
}
.package-admin-table-wrap td > small {
  margin-top: 4px;
  color: #84958f;
  font-size: 8px;
}
.package-admin-table-wrap .danger {
  color: #aa4931 !important;
}
.package-admin-id {
  margin: 0 5px 4px 0;
  padding: 4px 6px;
  color: #137365;
  border: 1px solid #c6e3dc;
  border-radius: 6px;
  background: #ecf9f5;
  font-size: 9px;
  font-weight: 900;
}
.package-admin-table-wrap select {
  width: 100%;
  height: 31px;
  color: #31564f;
  border: 1px solid #d5e0dd;
  border-radius: 7px;
  background: #fff;
  font-size: 9px;
}
.package-admin-status {
  display: inline-flex !important;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 8px !important;
  font-weight: 900;
  text-transform: uppercase;
}
.package-admin-status.active {
  color: #14715f;
  background: #e2f6ef;
}
.package-admin-status.inactive {
  color: #596c67;
  background: #e9eeec;
}
.package-admin-status.expired {
  color: #a33f34;
  background: #ffe8e5;
}
.package-admin-status.scheduled {
  color: #86631a;
  background: #fff1c8;
}
.package-admin-loading {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6d817c;
}
.package-admin-pagination {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  color: #71847f;
  font-size: 9px;
}
.package-admin-pagination div {
  display: flex;
  gap: 5px;
}
.package-admin-pagination button {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
  color: #42675f;
  border: 1px solid #d5e1de;
  border-radius: 8px;
  background: #fff;
  font-size: 9px;
}
.package-admin-subdialog {
  position: fixed;
  z-index: 1270;
  inset: 0;
}
.package-admin-subbackdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #071f1c8c;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.package-admin-form-card {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: min(1080px, calc(100vw - 20px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cbded9;
  border-radius: 17px;
  background: #f7faf9;
  box-shadow: 0 20px 70px #05231f4d;
}
.package-admin-form-card > header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid #dce6e3;
  background: #fff;
}
.package-admin-form-card > header span {
  color: #798e88;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.package-admin-form-card > header h2 {
  margin: 4px 0 0;
  color: #1d463f;
  font-size: 18px;
}
.package-admin-form-card > header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e3e0;
  border-radius: 9px;
  background: #fff;
}
.package-admin-form-body {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 9px;
}
.package-admin-form-body form {
  display: grid;
  gap: 8px;
}
.package-admin-form-body section {
  padding: 10px;
  border: 1px solid #dce7e4;
  border-radius: 11px;
  background: #fff;
}
.package-admin-form-body section > h3,
.package-admin-section-head h3 {
  margin: 0 0 8px;
  color: #265149;
  font-size: 11px;
}
.package-admin-form-grid {
  display: grid;
  gap: 7px;
}
.package-admin-form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.package-admin-form-grid.four {
  grid-template-columns: repeat(4, 1fr);
}
.package-admin-form-grid label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.package-admin-form-grid label span {
  color: #6e847e;
  font-size: 8px;
  font-weight: 850;
}
.package-admin-form-grid input,
.package-admin-form-grid select {
  height: 36px;
  padding: 0 8px;
  color: #294f48;
  border: 1px solid #d4dfdc;
  border-radius: 8px;
  background: #fff;
  font-size: 10px;
}
.package-admin-live-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.package-admin-live-summary span {
  padding: 8px;
  color: #738782;
  border: 1px solid #dbe6e3;
  border-radius: 8px;
  background: #f7faf9;
  font-size: 8px;
}
.package-admin-live-summary b {
  display: block;
  margin-top: 4px;
  color: #176f62;
  font-size: 11px;
}
.package-admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.package-admin-section-head button {
  height: 31px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  color: #176f62;
  border: 1px solid #bfddd6;
  border-radius: 7px;
  background: #eff9f6;
  font-size: 9px;
  font-weight: 800;
}
.package-admin-service-editor {
  overflow: auto;
  border: 1px solid #dce6e3;
  border-radius: 9px;
}
.package-admin-service-editor .head,
.package-admin-service-editor .line {
  min-width: 900px;
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 0.7fr 1fr 38px;
  gap: 5px;
  align-items: center;
  padding: 6px;
}
.package-admin-service-editor .head {
  color: #687f79;
  border-bottom: 1px solid #dce6e3;
  background: #f6f9f8;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.package-admin-service-editor .line {
  border-bottom: 1px solid #edf2f0;
}
.package-admin-service-editor .line:last-child {
  border-bottom: 0;
}
.package-admin-service-editor select,
.package-admin-service-editor input {
  height: 34px;
  padding: 0 7px;
  color: #2d534c;
  border: 1px solid #d5e1de;
  border-radius: 7px;
  background: #fff;
  font-size: 9px;
}
.package-admin-service-editor .line span {
  color: #718780;
  font-size: 9px;
}
.package-admin-service-editor .line strong {
  color: #204b42;
  font-size: 9.5px;
}
.package-admin-service-editor .line button {
  width: 30px;
  height: 30px;
  color: #a74738;
  border: 1px solid #edc7c0;
  border-radius: 7px;
  background: #fff5f3;
}
.package-admin-warning {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px;
  color: #805e16;
  border: 1px solid #ead799;
  border-radius: 9px;
  background: #fff8dc;
  font-size: 9px;
}
.package-admin-form-card > footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-top: 1px solid #dae5e2;
  background: #fff;
}
.package-admin-form-card > footer div {
  display: flex;
  gap: 6px;
}
.package-admin-form-card > footer button {
  height: 36px;
  padding: 0 12px;
  color: #42675f;
  border: 1px solid #d4e0dd;
  border-radius: 8px;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}
.package-admin-form-card > footer button.primary {
  min-width: 120px;
  color: #fff;
  border-color: #176f62;
  background: #176f62;
}
@media (max-width: 900px) {
  .package-admin-layer {
    padding: 0;
  }
  .package-admin-shell {
    border-radius: 0;
  }
  .package-admin-header {
    min-height: 76px;
    padding: 10px;
  }
  .package-admin-header h2 {
    font-size: 17px;
  }
  .package-admin-header p {
    display: none;
  }
  .package-admin-tabs {
    padding: 6px 6px 0;
  }
  .package-admin-tabs button {
    min-height: 50px;
    padding: 6px;
  }
  .package-admin-toolbar {
    margin: 6px;
  }
  .package-admin-toolbar > label {
    min-width: 100%;
  }
  .package-admin-toolbar select {
    max-width: none;
    flex: 1;
  }
  .package-admin-toolbar > div {
    width: 100%;
    justify-content: space-between;
  }
  .package-admin-toolbar > div input {
    width: 44%;
  }
  .package-admin-kpis {
    grid-template-columns: 1fr 1fr;
    margin: 0 6px 6px;
  }
  .package-admin-table-wrap {
    margin: 0 6px;
  }
  .package-admin-form-card {
    inset: 0;
    width: 100%;
    border-radius: 0;
  }
  .package-admin-form-grid.three,
  .package-admin-form-grid.four {
    grid-template-columns: 1fr 1fr;
  }
  .package-admin-live-summary {
    grid-template-columns: 1fr;
  }
  .package-admin-button {
    font-size: 0;
    padding: 0 10px;
  }
}
@media (max-width: 520px) {
  .package-admin-form-grid.three,
  .package-admin-form-grid.four {
    grid-template-columns: 1fr;
  }
  .package-admin-header h2 {
    font-size: 14px;
  }
  .package-admin-tabs span {
    display: none;
  }
}
@media print {
  body > *:not(.workspace-shell) {
    visibility: hidden !important;
  }
  .package-admin-layer,
  .package-admin-layer * {
    visibility: visible !important;
  }
  .package-admin-layer {
    position: absolute;
    inset: 0;
    padding: 0;
    background: #fff;
  }
  .package-admin-shell {
    height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .package-admin-header > button,
  .package-admin-tabs,
  .package-admin-toolbar,
  .package-admin-pagination,
  .package-admin-notice,
  .package-admin-error {
    display: none !important;
  }
  .package-admin-table-wrap {
    overflow: visible;
    margin: 0;
    border: 0;
  }
  .package-admin-table-wrap table {
    min-width: 0;
    font-size: 7px;
  }
  .package-admin-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}
.package-report-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 7px 10px 0;
  scrollbar-width: thin;
}
.package-report-tabs button {
  min-width: 170px;
  min-height: 53px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 7px 10px;
  color: #607a74;
  border: 1px solid #d9e5e2;
  border-radius: 10px;
  background: #fff;
  text-align: left;
}
.package-report-tabs button.active {
  color: #0f6d60;
  border-color: #82cbbd;
  background: #e8f8f4;
  box-shadow: inset 0 -3px #16816f;
}
.package-report-tabs b {
  font-size: 10px;
}
.package-report-tabs span {
  max-width: 210px;
  margin-top: 3px;
  font-size: 7.5px;
  line-height: 1.35;
}
.package-admin-toolbar label.compact {
  min-width: auto;
  flex: 0 0 auto;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
}
.package-admin-toolbar label.compact > span {
  color: #6c817b;
  font-size: 8px;
  font-weight: 850;
}
.package-admin-toolbar label.compact select {
  height: 30px;
  border: 0;
}
.package-report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 10px 7px;
  padding: 9px 12px;
  border: 1px solid #d8e6e2;
  border-radius: 11px;
  background: linear-gradient(120deg, #fff, #eff9f6);
}
.package-report-heading > div {
  min-width: 0;
}
.package-report-heading span {
  color: #6d8982;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.package-report-heading h3 {
  margin: 3px 0;
  color: #17483f;
  font-size: 15px;
}
.package-report-heading p {
  margin: 0;
  color: #728781;
  font-size: 8.5px;
}
.package-report-heading > strong {
  padding: 7px 10px;
  color: #176f62;
  border: 1px solid #b9ddd5;
  border-radius: 8px;
  background: #fff;
  font-size: 10px;
  white-space: nowrap;
}
.package-report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 6px;
  margin: 0 10px 8px;
}
.package-report-summary article {
  min-height: 59px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #dce7e4;
  border-radius: 10px;
  background: #fff;
}
.package-report-summary article:nth-child(3n + 2) {
  background: #f0faf7;
}
.package-report-summary article:nth-child(3n) {
  background: #fff8f1;
}
.package-report-summary span {
  color: #748b84;
  font-size: 7.5px;
  font-weight: 900;
  text-transform: uppercase;
}
.package-report-summary strong {
  margin-top: 5px;
  color: #214b43;
  font-size: 12px;
}
.package-admin-table-wrap.reports table {
  min-width: 1500px;
  table-layout: auto;
}
.package-admin-table-wrap.report-performance table,
.package-admin-table-wrap.report-utilization table,
.package-admin-table-wrap.report-ledger table,
.package-admin-table-wrap.report-branches table {
  min-width: 2100px;
}
.package-admin-table-wrap.report-liability table,
.package-admin-table-wrap.report-collections table {
  min-width: 1100px;
}
.package-admin-table-wrap.report-expiring table,
.package-admin-table-wrap.report-services table {
  min-width: 1550px;
}
.package-admin-table-wrap.reports th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #0569c8;
  background: #d9f3ff;
  text-align: center;
}
.package-admin-table-wrap.reports td {
  text-align: center;
}
.package-admin-table-wrap.reports td > strong,
.package-admin-table-wrap.reports td > span,
.package-admin-table-wrap.reports td > small {
  white-space: normal;
}
.package-admin-table-wrap.reports td > span.negative {
  color: #b14136;
}
.package-admin-status.completed,
.package-admin-status.in_progress {
  color: #14715f;
  background: #e2f6ef;
}
.package-admin-status.not_started,
.package-admin-status.watch {
  color: #536d67;
  background: #edf2f0;
}
.package-admin-status.critical {
  color: #a3342e;
  background: #ffe5e2;
}
.package-admin-status.warning {
  color: #8b6210;
  background: #fff1c7;
}
.package-admin-status.withdrawn {
  color: #7c4a69;
  background: #f4e8f0;
}
.center-admin-shell {
  min-width: 0;
  padding: 0 0 28px;
  color: #173e37;
  font: inherit;
}
.center-admin-shell .workspace-header {
  margin-bottom: 0;
}
.center-admin-intro {
  margin: -1px 0 12px;
  padding: 0 14px 12px;
  border-bottom: 1px solid #dce9e5;
  color: #71857f;
  font-size: 11px;
}
.center-admin-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 12px;
  padding: 0 2px 2px;
  scrollbar-width: thin;
}
.center-admin-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #ccded8;
  border-radius: 10px;
  background: #fff;
  color: #375e56;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 2px 7px #1c494009;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}
.center-admin-tabs button:hover {
  border-color: #76aa9e;
  color: #176c5e;
}
.center-admin-tabs button.active {
  border-color: #1d7e6d;
  background: #1d7e6d;
  color: #fff;
  box-shadow: 0 7px 17px #1d7e6d2e;
}
.ca-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.ca-toolbar > label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(620px, 100%);
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #ccded8;
  border-radius: 10px;
  background: #fff;
}
.ca-toolbar > label > span {
  color: #55736c;
  font-size: 15px;
}
.ca-toolbar input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #234840;
  font: inherit;
}
.ca-primary,
.ca-secondary,
.ca-danger {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 9px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.ca-primary {
  border: 1px solid #1d7e6d;
  background: #1d7e6d;
  color: #fff;
  box-shadow: 0 6px 14px #1d7e6d29;
}
.ca-secondary {
  border: 1px solid #ccded8;
  background: #fff;
  color: #315c53;
}
.ca-danger {
  border: 1px solid #b94747;
  background: #b94747;
  color: #fff;
}
.ca-primary:disabled,
.ca-secondary:disabled,
.ca-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ca-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 13px;
}
.ca-kpis button {
  min-width: 0;
  min-height: 96px;
  padding: 13px 14px;
  border: 1px solid #d5e3df;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 16px #1b453d0b;
}
.ca-kpis button:disabled {
  cursor: default;
}
.ca-kpis span,
.ca-kpis small {
  display: block;
}
.ca-kpis span {
  color: #6d827c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.ca-kpis strong {
  display: block;
  margin: 8px 0 5px;
  color: #153f36;
  font-size: 24px;
  line-height: 1;
}
.ca-kpis small {
  color: #84948f;
  font-size: 9px;
}
.ca-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ca-overview-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 82px;
  padding: 15px 17px;
  border: 1px solid #d5e3df;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 16px #1b453d0a;
}
.ca-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #edf6f3;
  color: #1d695b;
  font-size: 13px;
  font-weight: 850;
}
.ca-overview-grid h3,
.ca-overview-grid p {
  margin: 0;
}
.ca-overview-grid h3 {
  color: #173f37;
  font-size: 13px;
}
.ca-overview-grid p {
  margin-top: 4px;
  color: #71857f;
  font-size: 10px;
  line-height: 1.45;
}
.ca-overview-grid article > button,
.ca-row-action {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #c6dad4;
  border-radius: 8px;
  background: #fff;
  color: #245d52;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.ca-table-card {
  overflow: hidden;
  border: 1px solid #d5e3df;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 16px #1b453d0a;
}
.ca-table-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2ece9;
}
.ca-table-card h2,
.ca-table-card p {
  margin: 0;
}
.ca-table-card h2 {
  color: #173f37;
  font-size: 13px;
}
.ca-table-card p {
  margin-top: 3px;
  color: #7a8d87;
  font-size: 9px;
}
.ca-table-wrap {
  overflow: auto;
}
.ca-table-wrap table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}
.ca-table-wrap th {
  padding: 10px 12px;
  border-bottom: 1px solid #dfeae6;
  background: #f4f9f7;
  color: #5e7770;
  text-align: left;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.ca-table-wrap td {
  padding: 12px;
  border-bottom: 1px solid #edf3f1;
  color: #395b53;
  vertical-align: top;
  font-size: 10px;
}
.ca-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}
.ca-table-wrap td strong,
.ca-table-wrap td span {
  display: block;
}
.ca-table-wrap td strong {
  color: #173f37;
  font-size: 10px;
}
.ca-table-wrap td span {
  margin-top: 3px;
  color: #788b85;
  font-size: 9px;
}
.ca-empty {
  padding: 34px !important;
  color: #7e918b !important;
  text-align: center !important;
}
.ca-badge {
  display: inline-flex !important;
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 8px !important;
  font-weight: 850;
}
.ca-badge.active {
  background: #ddf2ea;
  color: #16674f;
}
.ca-badge.inactive {
  background: #f9e6e6;
  color: #963d3d;
}
.ca-channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ca-channel-list b {
  padding: 4px 6px;
  border-radius: 6px;
  background: #edf6f3;
  color: #315f55;
  font-size: 8px;
}
.ca-template-preview {
  display: block;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ca-message {
  margin: 0 0 11px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 10px;
}
.ca-message.error {
  border: 1px solid #efc5c5;
  background: #fff2f2;
  color: #a13939;
}
.ca-loading {
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 1px solid #d5e3df;
  border-radius: 13px;
  background: #fff;
  color: #71857f;
  font-size: 11px;
}
.ca-rooms-host {
  margin: 0;
}
.ca-rooms-host .workspace-header {
  display: none;
}
.ca-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  justify-content: flex-end;
  background: #0c201b6b;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.ca-drawer {
  display: flex;
  flex-direction: column;
  width: min(760px, 95vw);
  height: 100%;
  background: #fff;
  box-shadow: -18px 0 45px #081f1933;
}
.ca-drawer > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 19px 21px;
  border-bottom: 1px solid #dce9e5;
  background: #f8fbfa;
}
.ca-drawer header small {
  color: #1d7e6d;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ca-drawer header h2,
.ca-drawer header p {
  margin: 0;
}
.ca-drawer header h2 {
  margin-top: 4px;
  color: #173f37;
  font-size: 18px;
}
.ca-drawer header p {
  margin-top: 4px;
  color: #71857f;
  font-size: 10px;
}
.ca-close {
  width: 34px;
  height: 34px;
  border: 1px solid #ccded8;
  border-radius: 9px;
  background: #fff;
  color: #496a62;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.ca-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 20px 21px;
}
.ca-drawer > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 21px;
  border-top: 1px solid #dce9e5;
}
.ca-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.ca-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ca-field.wide {
  grid-column: 1/-1;
}
.ca-field > span {
  color: #46675f;
  font-size: 9px;
  font-weight: 800;
}
.ca-field input,
.ca-field select,
.ca-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid #ccded8;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #234840;
  font: inherit;
  font-size: 10px;
}
.ca-field textarea {
  min-height: 82px;
  resize: vertical;
}
.ca-field textarea.ca-template {
  min-height: 180px;
}
.ca-field input:focus,
.ca-field select:focus,
.ca-field textarea:focus {
  border-color: #4c9b8c;
  box-shadow: 0 0 0 3px #4c9b8c1f;
}
.ca-toggle-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 38px;
}
.ca-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.ca-toggle input {
  display: none;
}
.ca-toggle > span {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: #c7d3cf;
}
.ca-toggle > span:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  transition: 0.16s;
}
.ca-toggle input:checked + span {
  background: #1d7e6d;
}
.ca-toggle input:checked + span:after {
  transform: translate(15px);
}
.ca-toggle b {
  color: #46675f;
  font-size: 9px;
}
@media (max-width: 1100px) {
  .ca-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .center-admin-intro {
    padding-left: 4px;
  }
  .ca-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .ca-toolbar > label {
    width: 100%;
    box-sizing: border-box;
  }
  .ca-toolbar > .ca-primary {
    width: 100%;
  }
  .ca-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ca-overview-grid {
    grid-template-columns: 1fr;
  }
  .ca-overview-grid article {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .ca-overview-grid article > button {
    grid-column: 2;
  }
  .ca-form-grid {
    grid-template-columns: 1fr;
  }
  .ca-field.wide {
    grid-column: auto;
  }
  .ca-drawer {
    width: 100vw;
  }
}
.ca-field-help {
  display: block;
  margin-top: 2px;
  color: #7b8e88;
  font-size: 8px;
  font-weight: 500;
}
.ca-field select[multiple] {
  min-height: 78px;
  padding: 5px;
}
.ca-field select[multiple] option {
  padding: 6px 7px;
  border-radius: 5px;
}
.ca-message.warning {
  color: #7a5a12;
  border: 1px solid #ead28d;
  background: #fff8dc;
}
.ca-badge.system {
  color: #5b45a4;
  background: #eee9ff;
}
.ca-badge.custom {
  color: #176a5b;
  background: #e4f5ef;
}
.ca-status-color-editor {
  display: grid;
  grid-template-columns: 48px 120px minmax(160px, 1fr);
  align-items: center;
  gap: 9px;
}
.ca-status-color-editor > input[type="color"] {
  height: 42px;
  padding: 3px;
  cursor: pointer;
}
.ca-status-color-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}
.ca-status-live-preview,
.ca-status-table-preview {
  width: max-content;
  max-width: 100%;
  display: inline-flex !important;
  align-items: center;
  min-height: 29px;
  margin: 0 !important;
  padding: 5px 10px;
  overflow: hidden;
  color: var(--appointment-status-color, #64748b) !important;
  border: 1px solid
    color-mix(in srgb, var(--appointment-status-color, #64748b) 42%, white);
  border-radius: 999px;
  background: color-mix(
    in srgb,
    var(--appointment-status-color, #64748b) 12%,
    white
  );
  font-size: 9px !important;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ca-status-color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}
.ca-status-color-presets button {
  width: 27px;
  height: 27px;
  padding: 0;
  border: 2px solid white;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #cadbd7;
  cursor: pointer;
}
.ca-status-color-presets button.active {
  box-shadow:
    0 0 0 2px #123f37,
    0 0 0 4px #fff;
}
@media (max-width: 700px) {
  .ca-status-color-editor {
    grid-template-columns: 45px minmax(0, 1fr);
  }
  .ca-status-live-preview {
    grid-column: 1/-1;
  }
}
.appointment-page-layer {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-padding-bottom: 150px;
}
.appointment-page-content {
  padding-bottom: 180px !important;
}
.appointment-v3-shell {
  padding-bottom: 100px !important;
}
.appointment-v3-grid textarea.appointment-reschedule-reason {
  min-height: 82px;
}
@media (max-width: 760px) {
  .appointment-page-content {
    padding-bottom: 210px !important;
  }
}
.appointment-timeline-layer {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 22px;
}
.appointment-timeline-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0a221f8f;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: default;
}
.appointment-timeline-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1040px, 96vw);
  max-height: min(90vh, 900px);
  overflow: hidden;
  border: 1px solid #c7ddd8;
  border-radius: 18px;
  background: #f7fbfa;
  box-shadow: 0 28px 80px #092a2547;
}
.appointment-timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 17px;
  color: #fff;
  background: linear-gradient(135deg, #0d5148, #168575);
}
.appointment-timeline-header span {
  display: block;
  color: #bce8de;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.appointment-timeline-header h2 {
  margin: 3px 0 2px;
  font-size: 20px;
  line-height: 1.15;
}
.appointment-timeline-header p {
  margin: 0;
  color: #e0f3ef;
  font-size: 10px;
}
.appointment-timeline-header > button {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 10px;
  color: #fff;
  background: #ffffff1f;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.appointment-timeline-summary {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 1.15fr 1.15fr 0.9fr 1fr;
  gap: 1px;
  border-bottom: 1px solid #d9e8e5;
  background: #d9e8e5;
}
.appointment-timeline-summary > div {
  min-width: 0;
  padding: 11px 14px;
  background: #fff;
}
.appointment-timeline-summary > div.primary {
  background: #e8f7f3;
}
.appointment-timeline-summary span,
.appointment-timeline-summary small {
  display: block;
  overflow: hidden;
  color: #78918c;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-timeline-summary strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #173f38;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-timeline-summary > div.primary strong {
  color: #087363;
  font-size: 12px;
}
.appointment-performance-panel {
  padding: 13px 22px 15px;
  border-bottom: 1px solid #d9e8e5;
  background: #f1f8f6;
}
.appointment-performance-panel > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.appointment-performance-panel > header span {
  display: block;
  color: #168575;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.appointment-performance-panel > header strong {
  display: block;
  margin-top: 2px;
  color: #173f38;
  font-size: 11px;
}
.appointment-performance-panel > header small {
  color: #78918c;
  font-size: 8px;
}
.appointment-performance-flow {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) minmax(70px, 0.65fr) minmax(
      105px,
      1fr
    ) minmax(70px, 0.65fr) minmax(105px, 1fr) minmax(70px, 0.65fr) minmax(
      105px,
      1fr
    );
  align-items: stretch;
  gap: 7px;
}
.appointment-performance-flow > div {
  position: relative;
  min-width: 0;
  padding: 10px 9px 9px 38px;
  border: 1px solid #d4e5e1;
  border-radius: 11px;
  background: #fff;
}
.appointment-performance-flow > div > i {
  position: absolute;
  top: 10px;
  left: 9px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #fff;
  background: #9aaca8;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}
.appointment-performance-flow > div.waiting > i {
  background: #d39f00;
}
.appointment-performance-flow > div.procedure > i {
  background: #e05b72;
}
.appointment-performance-flow > div.billing > i {
  background: #aa3cc1;
}
.appointment-performance-flow > div.completed > i {
  background: #1a9b66;
}
.appointment-performance-flow > div > span {
  display: block;
  color: #6e8781;
  font-size: 8px;
  font-weight: 700;
}
.appointment-performance-flow > div > strong {
  display: block;
  margin-top: 2px;
  color: #163e37;
  font-size: 12px;
}
.appointment-performance-flow > div > small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #89a09b;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appointment-performance-flow > div.pending {
  opacity: 0.62;
}
.appointment-performance-flow > b {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #315f56;
  font-size: 9px;
  text-align: center;
}
.appointment-performance-flow > b:before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(50% + 26px);
  left: calc(-50% + 34px);
  height: 1px;
  background: #bcd4cf;
}
.appointment-performance-flow > b span {
  display: block;
  color: #829994;
  font-size: 7px;
  font-weight: 600;
}
.appointment-timeline-body {
  min-height: 260px;
  overflow: auto;
  padding: 18px 22px 24px;
}
.appointment-timeline-state {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #69817c;
  font-size: 10px;
}
.appointment-timeline-state.error {
  color: #b23d36;
}
.appointment-audit-events {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.appointment-audit-events:before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 8px;
  width: 2px;
  background: #d7e7e3;
}
.appointment-audit-events > li {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 13px;
}
.appointment-audit-events > li:last-child {
  padding-bottom: 0;
}
.appointment-audit-events > li > i {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-top: 14px;
  border: 4px solid #e5f2ef;
  border-radius: 50%;
  background: #4f9185;
  box-shadow: 0 0 0 2px #fff;
}
.appointment-audit-events > li.created > i {
  background: #177568;
}
.appointment-audit-events > li.rescheduled > i {
  background: #7255c8;
}
.appointment-audit-events > li.cancelled > i {
  background: #db4b4b;
}
.appointment-audit-events > li.waiting > i {
  background: #d39f00;
}
.appointment-audit-events > li.procedure > i {
  background: #e05b72;
}
.appointment-audit-events > li.billing > i {
  background: #aa3cc1;
}
.appointment-audit-events > li.completed > i {
  background: #1a9b66;
}
.appointment-audit-events article {
  overflow: hidden;
  border: 1px solid #d8e7e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px #164b420d;
}
.appointment-audit-events article > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px 9px;
}
.appointment-audit-events article > header strong {
  display: block;
  color: #173e37;
  font-size: 11px;
}
.appointment-audit-events article > header span {
  display: block;
  margin-top: 2px;
  color: #58746e;
  font-size: 9px;
}
.appointment-audit-events article time {
  flex: 0 0 auto;
  color: #7e948f;
  font-size: 8px;
  font-weight: 700;
}
.appointment-timeline-details {
  padding: 8px 13px;
  border-top: 1px solid #edf3f1;
  background: #f8fbfa;
}
.appointment-timeline-details p {
  margin: 0 0 4px;
  color: #516d67;
  font-size: 9px;
  line-height: 1.45;
}
.appointment-timeline-details p:last-child {
  margin-bottom: 0;
}
.appointment-audit-events article > footer {
  display: flex;
  gap: 5px;
  padding: 7px 13px;
  border-top: 1px solid #edf3f1;
  color: #839691;
  font-size: 8px;
}
.appointment-audit-events article > footer strong {
  color: #315e55;
}
@media (max-width: 680px) {
  .appointment-timeline-layer {
    padding: 8px;
  }
  .appointment-timeline-card {
    width: 100%;
    max-height: 94vh;
    border-radius: 14px;
  }
  .appointment-timeline-summary {
    grid-template-columns: 1fr 1fr;
  }
  .appointment-performance-panel {
    padding: 12px 14px;
  }
  .appointment-performance-panel > header {
    align-items: flex-start;
  }
  .appointment-performance-flow {
    grid-template-columns: 1fr;
  }
  .appointment-performance-flow > b {
    min-height: 30px;
  }
  .appointment-performance-flow > b:before {
    inset: 0 50% 0 auto;
    width: 1px;
    height: auto;
  }
  .appointment-timeline-header {
    padding: 16px;
  }
  .appointment-timeline-body {
    padding: 14px;
  }
  .appointment-audit-events article > header {
    display: block;
  }
  .appointment-audit-events article time {
    display: block;
    margin-top: 5px;
  }
}
.ua-panel {
  display: grid;
  gap: 10px;
  padding: 0 14px 18px;
}
.ua-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.ua-summary article {
  padding: 13px 15px;
  border: 1px solid #d5e4e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px #1449400a;
}
.ua-summary span {
  display: block;
  color: #728b85;
  font-size: 9px;
  font-weight: 700;
}
.ua-summary strong {
  display: block;
  margin-top: 4px;
  color: #12483f;
  font-size: 20px;
}
.ua-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid #d5e4e1;
  border-radius: 11px;
  background: #fff;
}
.ua-tabs button {
  padding: 8px 15px;
  border: 0;
  border-radius: 8px;
  color: #57736d;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.ua-tabs button.active {
  color: #fff;
  background: #167868;
}
.ua-toolbar {
  display: flex;
  gap: 7px;
}
.ua-toolbar input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccdfda;
  border-radius: 9px;
  color: #173f38;
  background: #fff;
  font: inherit;
  font-size: 10px;
}
.ua-toolbar button,
.ua-section-title button,
.ua-password-reset button {
  padding: 9px 13px;
  border: 1px solid #bcd7d1;
  border-radius: 9px;
  color: #285e54;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.ua-toolbar button.primary,
.ua-drawer > footer button.primary {
  border-color: #147667;
  color: #fff;
  background: #147667;
}
.ua-table-wrap {
  overflow: auto;
  border: 1px solid #d4e4e0;
  border-radius: 12px;
  background: #fff;
}
.ua-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}
.ua-table-wrap th {
  padding: 9px 10px;
  color: #607b75;
  background: #f3f8f7;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.ua-table-wrap td {
  padding: 10px;
  border-top: 1px solid #e5efec;
  color: #375e56;
  vertical-align: middle;
}
.ua-table-wrap td strong,
.ua-table-wrap td span {
  display: block;
}
.ua-table-wrap td span {
  margin-top: 2px;
  color: #81958f;
  font-size: 8px;
}
.ua-table-wrap select {
  min-width: 132px;
  padding: 7px;
  border: 1px solid #c7ddd8;
  border-radius: 8px;
  color: #1a5d51;
  background: #f7fbfa;
  font: inherit;
  font-weight: 700;
}
.ua-role,
.ua-status {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 8px;
  line-height: 1;
}
.ua-role {
  color: #176b5e;
  background: #e2f4ef;
}
.ua-status.active {
  color: #087556;
  background: #dff5e9;
}
.ua-status.inactive {
  color: #a43d3d;
  background: #fde8e8;
}
.ua-empty,
.ua-loading {
  padding: 28px !important;
  color: #708780 !important;
  text-align: center;
}
.ua-message {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 700;
}
.ua-message.error {
  border: 1px solid #f0b4b4;
  color: #a13030;
  background: #fff0f0;
}
.ua-message.success {
  border: 1px solid #a9decb;
  color: #176c53;
  background: #eaf9f2;
}
.ua-layer {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  justify-content: flex-end;
  background: #08201d87;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.ua-drawer {
  display: flex;
  flex-direction: column;
  width: min(720px, 94vw);
  height: 100%;
  background: #f7fbfa;
  box-shadow: -20px 0 65px #08231e3d;
}
.ua-drawer > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 19px;
  color: #fff;
  background: linear-gradient(135deg, #0d5148, #168575);
}
.ua-drawer > header small {
  color: #bfe9df;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.ua-drawer > header h2 {
  margin: 3px 0 2px;
  font-size: 18px;
}
.ua-drawer > header p {
  margin: 0;
  color: #d9f2ed;
  font-size: 9px;
}
.ua-drawer > header button {
  width: 33px;
  height: 33px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9px;
  color: #fff;
  background: #ffffff1c;
  font-size: 20px;
  cursor: pointer;
}
.ua-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 16px;
}
.ua-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 13px;
  border: 1px solid #d4e4e0;
  border-radius: 12px;
  background: #fff;
}
.ua-form-grid label {
  display: grid;
  gap: 5px;
}
.ua-form-grid label.wide {
  grid-column: 1/-1;
}
.ua-form-grid label > span {
  color: #4f6e67;
  font-size: 8px;
  font-weight: 800;
}
.ua-form-grid input,
.ua-form-grid select,
.ua-password-reset input {
  box-sizing: border-box;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #c7ddd8;
  border-radius: 8px;
  color: #183f38;
  background: #fff;
  font: inherit;
  font-size: 9px;
}
.ua-form-grid label > small {
  color: #82948f;
  font-size: 7px;
}
.ua-permissions {
  margin-top: 11px;
  padding: 13px;
  border: 1px solid #d4e4e0;
  border-radius: 12px;
  background: #fff;
}
.ua-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ua-section-title h3,
.ua-password-reset h3 {
  margin: 0;
  color: #173f38;
  font-size: 11px;
}
.ua-section-title p,
.ua-password-reset p {
  margin: 2px 0 0;
  color: #78908a;
  font-size: 8px;
}
.ua-permission-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.ua-permission-groups article {
  padding: 10px;
  border: 1px solid #e0ebe8;
  border-radius: 9px;
  background: #f8fbfa;
}
.ua-permission-groups h4 {
  margin: 0 0 7px;
  color: #167868;
  font-size: 9px;
}
.ua-permission-groups label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 5px 0;
  border-top: 1px solid #eaf1ef;
  cursor: pointer;
}
.ua-permission-groups label:first-of-type {
  border-top: 0;
}
.ua-permission-groups input {
  margin-top: 1px;
  accent-color: #147667;
}
.ua-permission-groups b,
.ua-permission-groups small {
  display: block;
}
.ua-permission-groups b {
  color: #315e55;
  font-size: 8px;
}
.ua-permission-groups small {
  margin-top: 1px;
  color: #8ba09b;
  font-size: 7px;
}
.ua-password-reset {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 1.2fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 12px;
  border: 1px solid #efd2a3;
  border-radius: 11px;
  background: #fffaf0;
}
.ua-drawer > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #d7e6e2;
  background: #fff;
}
.ua-drawer > footer button {
  padding: 9px 15px;
  border: 1px solid #c6dcd7;
  border-radius: 9px;
  color: #315f56;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 760px) {
  .ua-summary {
    grid-template-columns: 1fr 1fr;
  }
  .ua-toolbar {
    flex-wrap: wrap;
  }
  .ua-toolbar input {
    flex-basis: 100%;
  }
  .ua-form-grid,
  .ua-permission-groups {
    grid-template-columns: 1fr;
  }
  .ua-form-grid label.wide {
    grid-column: auto;
  }
  .ua-password-reset {
    grid-template-columns: 1fr;
  }
}
.appointment-action-dialog.warning {
  border-color: #e8c66f;
  box-shadow: 0 22px 60px #5b3e0538;
}
.appointment-action-dialog.warning > header {
  color: #4f3700;
  background: linear-gradient(135deg, #f3c94f, #ffd970);
}
.appointment-action-dialog.warning > header span {
  color: #73520a;
}
.appointment-action-dialog.warning > header small {
  color: #674a0d;
}
.appointment-action-dialog.warning > header button {
  color: #5a4006;
  border-color: #5a400647;
  background: #ffffff57;
}
.appointment-action-dialog .waiting-package-review-warning.warning {
  color: #795609;
  border-color: #e8ca79;
  background: #fff8dc;
}
.appointment-action-dialog.warning > footer .primary {
  color: #4f3700;
  border-color: #e1b632;
  background: #f3c94f;
}
.appointment-action-dialog.danger {
  border-color: #e7b7bd;
  box-shadow: 0 22px 60px #460a143d;
}
.appointment-action-dialog .waiting-package-review-warning.danger {
  color: #9f1f2d;
  border-color: #ebaab2;
  background: #fff0f2;
}
.appointment-action-confirm-layer {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 18px;
}
.appointment-action-confirm-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #08262294;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.appointment-action-confirm-card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid #e8c66f;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px #5b3e0538;
}
.appointment-action-confirm-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  color: #4f3700;
  background: linear-gradient(135deg, #f3c94f, #ffd970);
}
.appointment-action-confirm-card > header div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.appointment-action-confirm-card > header span {
  color: #73520a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.appointment-action-confirm-card > header strong {
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.25;
}
.appointment-action-confirm-card > header small {
  overflow-wrap: anywhere;
  color: #674a0d;
  font-size: 11px;
}
.appointment-action-confirm-card > header button {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(90 64 6 / 28%);
  border-radius: 10px;
  color: #5a4006;
  background: #ffffff57;
  font-size: 19px;
}
.appointment-action-confirm-body {
  padding: 15px 16px;
}
.appointment-action-confirm-message {
  padding: 11px 12px;
  border: 1px solid #e8ca79;
  border-radius: 9px;
  color: #795609;
  background: #fff8dc;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.appointment-action-confirm-card > footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 0 16px 15px;
}
.appointment-action-confirm-card > footer button {
  min-width: 92px;
  min-height: 38px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #cddbd8;
  border-radius: 9px;
  color: #244c44;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}
.appointment-action-confirm-card > footer .primary {
  color: #4f3700;
  border-color: #e1b632;
  background: #f3c94f;
}
.appointment-action-confirm-card.danger {
  border-color: #e7b7bd;
  box-shadow: 0 22px 60px #460a143d;
}
.appointment-action-confirm-card.danger > header {
  color: #fff;
  background: linear-gradient(135deg, #9f1f2d, #c83343);
}
.appointment-action-confirm-card.danger > header span {
  color: #ffd9dd;
}
.appointment-action-confirm-card.danger > header small {
  color: #ffe9eb;
}
.appointment-action-confirm-card.danger > header button {
  color: #fff;
  border-color: #ffffff59;
  background: #ffffff1a;
}
.appointment-action-confirm-message.danger {
  color: #9f1f2d;
  border-color: #ebaab2;
  background: #fff0f2;
}
@media (max-width: 560px) {
  .appointment-action-confirm-card > footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}
.nurses-action-workspace .doctor-action-table th:nth-child(1) {
  width: 10%;
}
.nurses-action-workspace .doctor-action-table th:nth-child(2) {
  width: 26%;
}
.nurses-action-workspace .doctor-action-table th:nth-child(3) {
  width: 16%;
}
.nurses-action-workspace .doctor-action-table th:nth-child(4) {
  width: 16%;
}
.nurses-action-workspace .doctor-action-table th:nth-child(5) {
  width: 15%;
}
.nurses-action-workspace .doctor-action-table th:nth-child(6) {
  width: 17%;
}
.nurses-action-workspace .nurses-action-list-column {
  padding-right: 6px;
  padding-left: 6px;
  text-align: left;
}
.nurses-action-workspace .nurses-action-list-column .appointment-action-list {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 28px 0 10px;
  font-size: 11px;
}
.package-review-workspace-layer {
  padding: 22px;
}
.package-review-workspace-card {
  width: min(1040px, calc(100vw - 44px)) !important;
  max-width: 1040px !important;
  max-height: calc(100vh - 44px);
  overflow: hidden;
}
.package-review-workspace-card > header {
  min-height: 116px;
  padding: 22px 26px !important;
}
.package-review-workspace-card > header strong {
  font-size: 28px;
}
.package-review-workspace-card > header small {
  font-size: 14px;
}
.package-review-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.package-review-count {
  min-width: 154px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 9px;
  border: 1px solid rgba(83, 54, 0, 0.24);
  border-radius: 14px;
  background: #ffffff52;
}
.package-review-count b {
  grid-row: 1 / 3;
  font-size: 30px;
  line-height: 1;
}
.package-review-count span,
.package-review-count small {
  font-weight: 800;
  line-height: 1.25;
}
.package-review-count small {
  opacity: 0.75;
}
.package-review-workspace-body {
  min-height: 500px;
  overflow-y: auto;
  padding: 22px 26px 24px !important;
}
.package-review-selector {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
}
.package-review-selector label,
.package-review-quantity label {
  display: grid;
  gap: 7px;
}
.package-review-selector label > span,
.package-review-quantity label > span,
.package-review-section-title span {
  color: #31564f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.package-review-selector select,
.package-review-quantity input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #b9d2cd;
  border-radius: 12px;
  background: #fff;
  color: #173d37;
  font-size: 15px;
  font-weight: 750;
  padding: 0 14px;
}
.package-review-validity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid #d3e2df;
  border-radius: 12px;
  background: #f6faf9;
}
.package-review-validity span,
.package-review-validity small {
  color: #6b837e;
  font-size: 12px;
  font-weight: 800;
}
.package-review-validity b {
  color: #173d37;
  font-size: 16px;
}
.package-review-validity small.allowed {
  color: #137866;
}
.package-review-validity small.blocked {
  color: #b52535;
}
.package-review-metrics {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.package-review-metrics article {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid #d5e5e2;
  border-radius: 14px;
  background: #f7fbfa;
}
.package-review-metrics article.used {
  border-color: #ffd597;
  background: #fff9ec;
}
.package-review-metrics article.remaining {
  border-color: #9fddcf;
  background: #edfaf6;
}
.package-review-metrics span {
  color: #58736d;
  font-size: 13px;
  font-weight: 850;
}
.package-review-metrics b {
  grid-row: 1 / 3;
  grid-column: 2;
  color: #143f38;
  font-size: 30px;
}
.package-review-metrics small {
  color: #82948f;
  font-size: 11px;
}
.package-review-services {
  margin-top: 18px;
  border: 1px solid #d4e3e0;
  border-radius: 15px;
  overflow: hidden;
}
.package-review-section-title {
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: #f2f8f6;
  border-bottom: 1px solid #d4e3e0;
}
.package-review-section-title div {
  display: grid;
  gap: 3px;
}
.package-review-section-title strong {
  color: #173d37;
  font-size: 14px;
}
.package-review-section-title > small {
  padding: 5px 9px;
  color: #146c5e;
  font-weight: 900;
  border-radius: 999px;
  background: #dff4ee;
}
.package-review-service-list {
  max-height: 220px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  overflow-y: auto;
}
.package-review-service-list > button {
  min-width: 0;
  padding: 11px 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid #d1e1de;
  border-radius: 12px;
  background: #fff;
  color: #173d37;
}
.package-review-service-list > button:hover,
.package-review-service-list > button.selected {
  border-color: #178873;
  background: #edf9f6;
  box-shadow: inset 0 0 0 1px #178873;
}
.package-review-service-list > button div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.package-review-service-list > button strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.package-review-service-list > button span {
  color: #6b837e;
  font-size: 12px;
}
.package-review-service-list > button > b {
  min-width: 55px;
  display: grid;
  color: #08735f;
  font-size: 23px;
  text-align: center;
}
.package-review-service-list > button > b small {
  color: #69817c;
  font-size: 10px;
  text-transform: uppercase;
}
.package-review-quantity {
  margin-top: 14px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: end;
  gap: 16px;
  border: 1px solid #d4e3e0;
  border-radius: 14px;
  background: #f8fbfa;
}
.package-review-quantity > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.package-review-quantity > div span,
.package-review-quantity > div small {
  color: #6b837e;
  font-size: 12px;
  font-weight: 800;
}
.package-review-quantity > div b {
  overflow: hidden;
  color: #173d37;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.package-review-workspace-card > footer {
  padding: 15px 24px !important;
}
@media (max-width: 760px) {
  .package-review-workspace-layer {
    padding: 8px;
  }
  .package-review-workspace-card {
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px);
  }
  .package-review-workspace-card > header {
    min-height: auto;
    padding: 16px !important;
  }
  .package-review-workspace-card > header strong {
    font-size: 21px;
  }
  .package-review-count {
    display: none;
  }
  .package-review-workspace-body {
    min-height: 0;
    padding: 14px !important;
  }
  .package-review-selector,
  .package-review-metrics,
  .package-review-quantity,
  .package-review-service-list {
    grid-template-columns: 1fr;
  }
  .package-review-workspace-card > footer {
    padding: 12px !important;
    flex-wrap: wrap;
  }
}
.clinical-table-wrap.history .clinical-history-table-v2 {
  min-width: 1420px;
  table-layout: fixed;
}
.clinical-history-table-v2 th:nth-child(1) {
  width: 135px;
}
.clinical-history-table-v2 th:nth-child(2) {
  width: 170px;
}
.clinical-history-table-v2 th:nth-child(3) {
  width: 145px;
}
.clinical-history-table-v2 th:nth-child(4) {
  width: 180px;
}
.clinical-history-table-v2 th:nth-child(5) {
  width: 190px;
}
.clinical-history-table-v2 th:nth-child(6) {
  width: 185px;
}
.clinical-history-table-v2 th:nth-child(7) {
  width: 185px;
}
.clinical-history-table-v2 th:nth-child(8) {
  width: 145px;
}
.clinical-history-table-v2 th:nth-child(9) {
  width: 135px;
}
.clinical-history-table-v2 .clinical-history-procedure-by strong {
  margin-top: 0;
  color: #116f60;
  font-weight: 900;
}
.clinical-history-table-v2 .clinical-history-next-appointment strong {
  margin-top: 0;
}
.clinical-history-table-v2 td > p {
  margin-top: 0;
}
.p78-page {
  --p78-radius: 10px;
  --p78-shadow: 0 4px 15px rgba(16, 58, 51, 0.04);
  --p78-control: 42px;
  color: #173b35;
  background: #eef3f1;
  font-size: 14px;
}
.p78-page .p78-topbar {
  position: relative;
  z-index: 10;
  min-height: 72px;
  padding: 0 clamp(18px, 2.4vw, 42px);
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 20px;
  color: #fff;
  border-bottom: 0;
  background: linear-gradient(115deg, #0b3c35, #105c50 58%, #0b443c);
  box-shadow: 0 7px 24px #072f292e;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.p78-page .p78-topbar > button {
  min-height: 40px;
  padding: 0 14px;
  color: #e9f6f2;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: #ffffff14;
  font-size: 12px;
  font-weight: 800;
}
.p78-page .p78-topbar > button:hover {
  color: #fff;
  border-color: #ffffff59;
  background: #ffffff26;
  transform: none;
}
.p78-page .p78-topbar > div:nth-child(2) {
  justify-self: center;
  text-align: center;
}
.p78-page .p78-topbar > div:nth-child(2) > span {
  color: #9fcfc5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.p78-page .p78-topbar > div:nth-child(2) > strong {
  margin-top: 4px;
  color: #fff;
  font:
    800 17px/1.15 Manrope,
    sans-serif;
}
.p78-page .p78-top-actions {
  gap: 7px;
}
.p78-page .p78-top-actions > span,
.p78-page .p78-top-actions > b {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 10px;
}
.p78-page .p78-top-actions > span {
  color: #e9f6f2;
  border-color: #ffffff38;
  background: #ffffff14;
}
.p78-page .p78-top-actions > b {
  color: #0d574b;
  background: #dff4ee;
}
.p78-page .p78-content {
  padding: 7px clamp(8px, 1vw, 16px) 12px;
  scrollbar-color: #8dbbb1 transparent;
}
.p78-page .p78-patient-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 2fr);
  gap: 7px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #d7e4e0;
  border-left: 6px solid #23927f;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px #103d360f;
}
.p78-page .p78-patient-card:before {
  display: none;
}
.p78-page .p78-patient-title {
  gap: 13px;
}
.p78-page .p78-patient-title .patient-star {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  color: inherit;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 24px;
}
.p78-page .p78-patient-title h1 {
  margin: 5px 0 4px;
  overflow: hidden;
  color: #0e3f36;
  text-overflow: ellipsis;
  white-space: nowrap;
  font:
    800 23px/1.15 Manrope,
    sans-serif;
}
.p78-page .p78-patient-title p {
  color: #5c756f;
  font-size: 11px;
}
.p78-page .p78-patient-grid {
  margin: 0;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 7px;
}
.p78-page .p78-patient-grid > div {
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid #e4ece9;
  border-radius: 10px;
  background: #f7faf9;
}
.p78-page .p78-patient-grid span {
  margin-bottom: 5px;
  color: #7b918b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.p78-page .p78-patient-grid strong {
  margin-top: 0;
  color: #244a43;
  font-size: 11.5px;
}
.p78-page .p78-patient-card > footer {
  grid-column: 1 / -1;
  margin-top: 0;
  padding-top: 8px;
  gap: 7px 18px;
  border-top: 1px solid #e5ecea;
  color: #607a74;
  font-size: 10px;
}
.p78-page .p78-patient-card > footer b {
  color: #173f37;
}
.p78-page .p78-workbench {
  margin-top: 6px;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 6px;
}
.p78-page .p78-side-column {
  gap: 4px;
  max-height: calc(100vh - 86px);
}
.p78-page .p78-visit-navigator,
.p78-page .p78-summary-cards,
.p78-page .p78-quick-actions > button {
  border-color: #d8e4e1;
  border-radius: 11px;
  box-shadow: 0 4px 14px #123b340a;
}
.p78-page .p78-visit-navigator > header {
  min-height: 45px;
  padding: 7px 9px;
  background: #fff;
}
.p78-page .p78-visit-navigator header span {
  color: #1b8a76;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.p78-page .p78-visit-navigator header strong {
  margin-top: 3px;
  color: #21463f;
  font:
    800 14px/1.2 Manrope,
    sans-serif;
}
.p78-page .p78-visit-navigator > input {
  height: 36px;
  border-color: #d7e4e0;
  background: #f7faf9;
  font-size: 10px;
}
.p78-page .p78-visit-list {
  max-height: 285px;
}
.p78-page .p78-visit-list > button {
  border-color: #d8e4e1;
  background: #fff;
}
.p78-page .p78-visit-list > button.active {
  border-color: #70b8a8;
  background: #edf8f5;
  box-shadow: inset 4px 0 #178b78;
}
.p78-page .p78-quick-actions {
  gap: 4px;
}
.p78-page .p78-quick-actions > button {
  min-height: 62px;
  padding: 10px 12px;
}
.p78-page .p78-quick-actions > button:after {
  display: none;
}
.p78-page .p78-quick-actions i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: #178b78;
  font-size: 18px;
}
.p78-page .p78-quick-actions strong {
  color: #214d45;
  font-size: 11px;
}
.p78-page .p78-quick-actions span {
  color: #718781;
  font-size: 9.5px;
}
.p78-page .p78-summary-cards {
  border-radius: 12px;
}
.p78-page .p78-summary-cards article {
  padding: 12px 13px;
  background: #fff !important;
}
.p78-page .p78-summary-cards header > span {
  color: #718781;
  font-size: 10px;
  text-transform: uppercase;
}
.p78-page .p78-main-column .p78-tabs {
  margin: 0;
  padding: 4px;
  gap: 3px;
  border: 1px solid #d8e4e1;
  border-radius: 9px;
  background: #fffffff7;
  box-shadow: 0 3px 12px #1139320d;
}
.p78-page .p78-main-column .p78-tabs button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 9px;
  color: #54746d;
  font-size: 12px;
}
.p78-page .p78-main-column .p78-tabs button:hover {
  color: #165e52;
  background: #edf6f3;
}
.p78-page .p78-main-column .p78-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, #176e60, #118471);
  box-shadow: 0 5px 12px #12766533;
}
.p78-page .p78-main-column .p78-panel {
  margin-top: 4px;
  border: 1px solid #d8e4e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 15px #103a330a;
}
.p78-page .p78-main-column .p78-panel-head {
  min-height: 55px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2ebe8;
  background: #fff;
}
.p78-page .p78-main-column .p78-panel-head span {
  color: #188e79;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.p78-page .p78-main-column .p78-panel-head h2 {
  margin-top: 4px;
  color: #123e35;
  font:
    800 21px/1.2 Manrope,
    sans-serif;
}
.p78-page .p78-main-column .p78-panel-head button {
  min-height: 42px;
  padding: 0 16px;
  color: #146c5e;
  border: 1px solid #9fd2c7;
  border-radius: 9px;
  background: #edf8f5;
  font-size: 12px;
}
.p78-page .p78-main-column .p78-panel-head button.billing {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #b67a1c, #9e6310);
  box-shadow: none;
}
.p78-page .p78-main-column .p78-remark-form {
  padding: 12px;
  gap: 12px;
}
.p78-page .p78-main-column .p78-remark-form label > span {
  color: #47655f;
  font-size: 11px;
}
.p78-page .p78-main-column .p78-remark-form input,
.p78-page .p78-main-column .p78-remark-form select,
.p78-page .p78-main-column .p78-remark-form textarea {
  border-color: #c9d9d5;
  border-radius: 9px;
  background: #fbfdfc;
  font-size: 12px;
}
.p78-page .p78-main-column .p78-table-wrap {
  border-color: #dce6e3;
}
.p78-page .p78-main-column .p78-table-wrap th {
  color: #617a74;
  background: #f8faf9;
  font-size: 10px;
}
.p78-page .p78-main-column .p78-table-wrap td {
  color: #294e48;
  font-size: 11px;
}
.p78-page .p78-consents {
  border-color: #d8e4e1;
  border-radius: 10px;
}
.p78-page .p78-message {
  border-radius: 9px;
  font-size: 13px;
}
@media (max-width: 1180px) {
  .p78-page .p78-patient-card {
    grid-template-columns: 1fr;
  }
  .p78-page .p78-patient-card > footer {
    grid-column: auto;
  }
  .p78-page .p78-workbench {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}
@media (max-width: 800px) {
  .p78-page .p78-topbar {
    min-height: 64px;
    padding: 8px;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .p78-page .p78-top-actions {
    grid-column: 1 / -1;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .p78-page .p78-workbench {
    display: block;
  }
  .p78-page .p78-side-column {
    position: static;
    max-height: none;
  }
  .p78-page .p78-main-column {
    margin-top: 6px;
  }
}
@media (max-width: 620px) {
  .p78-page .p78-content {
    padding: 7px;
  }
  .p78-page .p78-patient-card {
    padding: 10px;
  }
  .p78-page .p78-patient-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p78-page .p78-main-column .p78-tabs button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 10px;
  }
  .p78-page .p78-main-column .p78-panel-head {
    align-items: flex-start;
  }
}
.p78-topbar,
.nursing-process-topbar {
  min-height: 72px !important;
  padding: 0 clamp(18px, 2.4vw, 42px) !important;
  display: grid !important;
  grid-template-columns: auto minmax(180px, 1fr) auto !important;
  align-items: center !important;
  gap: 20px !important;
  color: #fff !important;
  border-bottom: 0 !important;
  background: linear-gradient(115deg, #0b3c35, #105c50 58%, #0b443c) !important;
  box-shadow: 0 7px 24px #072f292e !important;
}
.p78-topbar > button,
.nursing-process-topbar > button {
  min-height: 40px !important;
  padding: 0 14px !important;
  color: #e9f6f2 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 10px !important;
  background: #ffffff14 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
.p78-topbar > div:nth-child(2),
.nursing-process-topbar > div:nth-child(2) {
  justify-self: center !important;
  text-align: center !important;
}
.p78-topbar > div:nth-child(2) > span,
.nursing-process-topbar > div:nth-child(2) > span {
  color: #9fcfc5 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}
.p78-topbar > div:nth-child(2) > strong,
.nursing-process-topbar > div:nth-child(2) > strong {
  margin-top: 4px !important;
  color: #fff !important;
  font:
    800 17px/1.15 Manrope,
    sans-serif !important;
}
.p78-top-actions > span,
.nursing-process-user {
  color: #e9f6f2 !important;
}
.p78-top-actions > span {
  border-color: #ffffff38 !important;
  background: #ffffff14 !important;
}
.p78-top-actions > b,
.nursing-process-user b {
  color: #0d574b !important;
  border-color: #dff4ee !important;
  background: #dff4ee !important;
}
.p78-content,
.nursing-process-content {
  padding: 7px clamp(8px, 1vw, 16px) 12px !important;
  background: #eef3f1 !important;
}
.p78-patient-card,
.nursing-patient-card {
  gap: 7px 12px !important;
  padding: 12px 14px !important;
  border: 1px solid #d7e4e0 !important;
  border-left: 6px solid #23927f !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px #103d360f !important;
}
.p78-patient-card {
  display: grid !important;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 2fr) !important;
}
.p78-patient-card:before {
  display: none !important;
}
.p78-patient-grid,
.nursing-patient-facts {
  gap: 7px !important;
}
.p78-patient-grid > div,
.nursing-patient-facts > div {
  min-height: 58px !important;
  padding: 8px 10px !important;
  border: 1px solid #e4ece9 !important;
  border-radius: 10px !important;
  background: #f7faf9 !important;
}
.p78-workbench,
.nursing-process-grid {
  margin-top: 6px !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 6px !important;
}
.p78-visit-navigator,
.nursing-form-card,
.nursing-treatments-card,
.nursing-history-card {
  border: 1px solid #d8e4e1 !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px #123b340a !important;
}
.p78-tabs {
  margin-top: 0 !important;
  padding: 4px !important;
  gap: 3px !important;
  border: 1px solid #d8e4e1 !important;
  border-radius: 9px !important;
  background: #fffffff7 !important;
  box-shadow: 0 3px 12px #1139320d !important;
}
.p78-tabs button {
  min-height: 42px !important;
  padding: 0 14px !important;
  border-radius: 9px !important;
  color: #54746d !important;
  background: transparent !important;
  font-size: 12px !important;
}
.p78-tabs button.active {
  color: #fff !important;
  background: linear-gradient(135deg, #176e60, #118471) !important;
  box-shadow: 0 5px 12px #12766533 !important;
}
.p78-panel {
  margin-top: 4px !important;
  border: 1px solid #d8e4e1 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 4px 15px #103a330a !important;
}
.p78-panel-head,
.nursing-form-card > header,
.nursing-treatments-card > header,
.nursing-history-card > header {
  min-height: 55px !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid #e2ebe8 !important;
  background: #fff !important;
}
.p78-panel-head h2,
.nursing-form-card header h2,
.nursing-treatments-card header h2,
.nursing-history-card header h2 {
  margin-top: 4px !important;
  color: #123e35 !important;
  font:
    800 21px/1.2 Manrope,
    sans-serif !important;
}
.p78-panel-head button,
.nursing-toolbar-actions button,
.nursing-form-card footer button,
.nursing-treatment-add button {
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}
.p78-panel-head button.billing,
.nursing-toolbar-actions button.billing {
  color: #fff !important;
  border: 0 !important;
  background: linear-gradient(135deg, #b67a1c, #9e6310) !important;
}
.p78-remark-form input,
.p78-remark-form select,
.p78-remark-form textarea,
.nursing-form-card textarea,
.nursing-treatment-add select,
.nursing-treatment-add input {
  border-color: #c9d9d5 !important;
  border-radius: 9px !important;
  background: #fbfdfc !important;
  font-size: 12px !important;
}
@media (max-width: 1180px) {
  .p78-patient-card,
  .nursing-patient-card {
    grid-template-columns: 1fr !important;
  }
  .p78-workbench,
  .nursing-process-grid {
    grid-template-columns: 280px minmax(0, 1fr) !important;
  }
}
@media (max-width: 800px) {
  .p78-workbench,
  .nursing-process-grid {
    display: block !important;
  }
}
.nursing-clinical-workspace .clinical-editor-grid select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  color: #203e38;
  border: 1px solid #cfddd9;
  border-radius: 9px;
  background: #fbfcfc;
  font: 13px inherit;
  color-scheme: light;
}
.nursing-clinical-workspace .clinical-editor-grid select:focus {
  outline: 0;
  border-color: #54a999;
  box-shadow: 0 0 0 3px #1b917d1f;
}
.nursing-clinical-history-search {
  width: min(360px, 38vw);
  min-height: 42px;
  padding: 9px 12px;
  color: #203e38;
  border: 1px solid #cfddd9;
  border-radius: 9px;
  background: #fbfcfc;
  font: 12px inherit;
}
.nursing-clinical-consents {
  margin-top: 12px;
}
.nursing-clinical-workspace .clinical-history-table {
  min-width: 1120px;
}
.nursing-clinical-workspace .clinical-history-table th:nth-child(1) {
  width: 150px;
}
.nursing-clinical-workspace .clinical-history-table th:nth-child(2) {
  width: 180px;
}
.nursing-clinical-workspace .clinical-history-table th:nth-child(3) {
  width: 150px;
}
.nursing-clinical-workspace .clinical-history-table th:nth-child(4),
.nursing-clinical-workspace .clinical-history-table th:nth-child(5) {
  width: 210px;
}
@media (max-width: 860px) {
  .nursing-clinical-history-search {
    width: 100%;
  }
}
.clinical-workspace.nursing-clinical-workspace {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1250 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  display: grid !important;
  grid-template-rows: 72px minmax(0, 1fr) 72px !important;
  overflow: hidden !important;
  margin: 0 !important;
  background: #eef3f1 !important;
  isolation: isolate;
}
.clinical-workspace.nursing-clinical-workspace > .clinical-page-scroll {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
body:has(.nursing-clinical-workspace) {
  overflow: hidden !important;
}
@media (max-width: 860px) {
  .clinical-workspace.nursing-clinical-workspace {
    grid-template-rows: auto minmax(0, 1fr) auto !important;
  }
}
.nursing-historical-watermark {
  position: fixed;
  z-index: 8;
  inset: 72px 0;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  overflow: hidden;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.nursing-historical-watermark span {
  width: 130vw;
  color: #11635413;
  text-align: center;
  white-space: nowrap;
  transform: rotate(-16deg);
  font:
    900 clamp(30px, 4.4vw, 72px) / 1 "Manrope",
    "Alexandria",
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nursing-clinical-workspace.is-historical .clinical-page-scroll {
  position: relative;
  z-index: 1;
}
@media (max-width: 860px) {
  .nursing-historical-watermark {
    inset: 104px 0 80px;
  }
  .nursing-historical-watermark span {
    font-size: clamp(24px, 7vw, 44px);
  }
}
.bill-line-discount-editor {
  display: grid;
  grid-template-columns: minmax(76px, 0.42fr) minmax(120px, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 300px;
}
.bill-line-discount-editor input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 6px 8px;
  border: 1px solid #bdd5d0;
  border-radius: 8px;
  color: #173f38;
  background: #fff;
  font: inherit;
  font-size: 12px;
}
.bill-line-discount-editor input:focus {
  border-color: #167f70;
  outline: 2px solid rgb(22 127 112 / 12%);
}
.bill-line-discount-editor .module-primary.compact {
  min-height: 34px;
  padding: 6px 10px;
  white-space: nowrap;
}
.bill-line-discount-editor small {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
}
.bill-line-discount-locked {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #677d78;
  background: #e9efed;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 1200px) {
  .bill-line-discount-editor {
    grid-template-columns: 1fr;
    min-width: 160px;
  }
}
.ca-calendar-card {
  display: grid;
  isolation: isolate;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px #0f172a0d;
}
.ca-calendar-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ca-calendar-card h2,
.ca-calendar-card p {
  margin: 0;
}
.ca-calendar-card h2 {
  font-size: 16px;
  color: #0f172a;
}
.ca-calendar-card p {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}
.ca-calendar-navigation {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ca-calendar-navigation button {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 11px;
}
.ca-calendar-header-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}
.ca-calendar-doctor {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  align-items: center;
  gap: 7px;
}
.ca-calendar-doctor > span {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.ca-calendar-doctor select {
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 5px 8px;
  color: #0f172a;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.ca-calendar-note {
  padding: 7px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 11px;
  font-weight: 700;
}
.ca-calendar-batch {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) 88px 92px 92px 92px minmax(
      140px,
      1fr
    ) auto;
  align-items: end;
  gap: 7px;
  padding: 9px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}
.ca-calendar-selection {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.ca-calendar-selection button {
  min-height: 31px;
  padding: 5px 8px;
  font-size: 11px;
}
.ca-calendar-selection strong {
  font-size: 12px;
  color: #0f172a;
}
.ca-calendar-selection span {
  width: 100%;
  font-size: 10px;
  color: #64748b;
}
.ca-calendar-batch > label {
  display: grid;
  gap: 3px;
}
.ca-calendar-batch > label > span {
  font-size: 9px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}
.ca-calendar-batch input,
.ca-calendar-batch select {
  width: 100%;
  min-height: 32px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  padding: 4px 7px;
  font: inherit;
  font-size: 11px;
  color: #0f172a;
}
.ca-calendar-batch > .ca-primary {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 11px;
  white-space: nowrap;
}
.ca-message.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.ca-calendar-grid {
  display: grid;
  gap: 3px;
}
.ca-calendar-grid-head,
.ca-calendar-grid article {
  display: grid;
  grid-template-columns: 30px 120px 76px 88px 88px 82px minmax(130px, 1fr) 56px;
  align-items: center;
  gap: 6px;
}
.ca-calendar-grid-head {
  min-height: 27px;
  padding: 0 7px;
  border-radius: 7px;
  background: #eaf0f6;
  color: #475569;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.ca-calendar-grid article {
  min-height: 42px;
  padding: 4px 7px;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}
.ca-calendar-grid article.open {
  border-left-color: #16a34a;
  background: #fbfefc;
}
.ca-calendar-grid article.dirty {
  box-shadow: inset 0 0 0 1px #60a5fa;
}
.ca-calendar-grid article.selected {
  background: #eff6ff;
  border-color: #93c5fd;
}
.ca-calendar-check {
  display: flex;
  justify-content: center;
}
.ca-calendar-check input,
.ca-calendar-grid-head input {
  width: 15px;
  height: 15px;
  accent-color: #2563eb;
}
.ca-calendar-date {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}
.ca-calendar-date strong {
  font-size: 11px;
  color: #0f172a;
}
.ca-calendar-date span {
  color: #334155;
  font-size: 10px;
  white-space: nowrap;
}
.ca-calendar-grid article > input,
.ca-calendar-grid article > select {
  width: 100%;
  min-height: 31px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  padding: 4px 6px;
  font: inherit;
  font-size: 11px;
}
.ca-calendar-status {
  font-weight: 800;
}
.ca-calendar-grid .ca-row-action {
  min-height: 30px;
  padding: 4px 7px;
  font-size: 10px;
}
.ca-calendar-grid .ca-row-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 1150px) {
  .ca-calendar-header-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .ca-calendar-batch {
    grid-template-columns: 1fr repeat(4, 80px) minmax(130px, 1fr);
  }
  .ca-calendar-batch > .ca-primary {
    grid-column: 1/-1;
    justify-self: end;
  }
  .ca-calendar-grid {
    overflow-x: auto;
  }
  .ca-calendar-grid-head,
  .ca-calendar-grid article {
    min-width: 870px;
  }
}
@media (max-width: 720px) {
  .ca-calendar-card > header {
    flex-direction: column;
  }
  .ca-calendar-header-actions {
    width: 100%;
    min-width: 0;
  }
  .ca-calendar-doctor {
    grid-template-columns: 1fr;
  }
  .ca-calendar-navigation {
    width: 100%;
    justify-content: flex-start;
  }
  .ca-calendar-batch {
    grid-template-columns: 1fr 1fr;
  }
  .ca-calendar-selection,
  .ca-calendar-batch .batch-note,
  .ca-calendar-batch > .ca-primary {
    grid-column: 1/-1;
  }
  .ca-calendar-batch > .ca-primary {
    width: 100%;
  }
}
.paid-tax-invoice-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: auto;
  background: #081d19b8;
  padding: 22px;
}
.paid-tax-invoice-actions {
  position: sticky;
  top: 0;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 28px #0003;
}
.paid-tax-invoice-actions button {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #cad8d4;
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.paid-tax-send-status {
  margin-right: auto;
  align-self: center;
  color: #08704f;
  font-size: 12px;
  font-weight: 800;
}
.paid-tax-invoice {
  position: relative;
  max-width: 900px;
  min-height: 1180px;
  margin: auto;
  padding: 34px 38px;
  color: #19372f;
  background: #fff;
  font-family:
    Arial,
    Noto Sans Arabic,
    sans-serif;
  box-shadow: 0 15px 50px #00000047;
}
.paid-tax-watermark {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
  color: #107d5c0e;
  font-size: 150px;
  font-weight: 900;
  letter-spacing: 12px;
  pointer-events: none;
}
.paid-tax-invoice > header {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr 180px;
  align-items: start;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 3px solid #12634f;
}
.paid-tax-brand {
  display: grid;
  place-items: center;
  padding: 15px 8px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(145deg, #103f35, #16735d);
}
.paid-tax-brand img {
  display: block;
  max-width: 100%;
  max-height: 86px;
  object-fit: contain;
}
.paid-tax-brand b {
  font-size: 34px;
}
.paid-tax-brand span {
  font-size: 9px;
  font-weight: 800;
}
.paid-tax-center h1 {
  margin: 0 0 7px;
  color: #113f34;
  font-size: 23px;
}
.paid-tax-center p {
  margin: 3px 0;
  color: #526d66;
  font-size: 10px;
  line-height: 1.5;
}
.paid-tax-title {
  text-align: right;
}
.paid-tax-title strong,
.paid-tax-title span,
.paid-tax-title em {
  display: block;
}
.paid-tax-title strong {
  font-size: 19px;
}
.paid-tax-title span {
  margin-top: 4px;
  font-size: 16px;
}
.paid-tax-title em {
  margin-top: 10px;
  padding: 6px 8px;
  color: #08704f;
  border: 1px solid #62b99d;
  border-radius: 6px;
  background: #e8f8f1;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}
.paid-tax-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0;
}
.paid-tax-meta > div {
  min-height: 51px;
  padding: 8px;
  border: 1px solid #dae6e2;
  border-radius: 7px;
  background: #f6f9f8;
}
.paid-tax-meta span,
.paid-tax-meta b {
  display: block;
}
.paid-tax-meta span {
  color: #6a817b;
  font-size: 8px;
}
.paid-tax-meta b {
  margin-top: 5px;
  font-size: 10.5px;
}
.paid-tax-invoice table {
  position: relative;
  width: 100%;
  border-collapse: collapse;
}
.paid-tax-invoice th,
.paid-tax-invoice td {
  padding: 8px 6px;
  border: 1px solid #d6e2de;
  font-size: 9px;
  text-align: center;
}
.paid-tax-invoice th {
  color: #fff;
  background: #235a4c;
  font-size: 8px;
}
.paid-tax-invoice td:nth-child(2) {
  text-align: left;
}
.paid-tax-invoice td small {
  display: block;
  margin-top: 3px;
  color: #688078;
  font-size: 7.5px;
}
.paid-tax-bottom {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 20px;
  margin-top: 17px;
}
.paid-tax-payment {
  padding: 12px;
  border: 1px solid #d9e5e1;
  border-radius: 8px;
}
.paid-tax-payment h3 {
  margin: 0 0 8px;
  font-size: 11px;
}
.paid-tax-payment dl {
  margin: 0;
}
.paid-tax-payment dl div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed #dae5e1;
  font-size: 9px;
}
.paid-tax-payment p {
  font-size: 9px;
}
.paid-tax-totals {
  border: 1px solid #cadbd5;
  border-radius: 8px;
  overflow: hidden;
}
.paid-tax-totals div {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  border-bottom: 1px solid #e0e9e6;
  font-size: 9px;
}
.paid-tax-totals .grand {
  color: #fff;
  background: #214f44;
  font-size: 11px;
}
.paid-tax-totals .settled {
  color: #08704f;
  background: #e7f7f0;
  font-size: 10px;
}
.paid-tax-invoice > footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px;
  margin-top: 35px;
  padding-top: 12px;
  color: #647a74;
  border-top: 1px solid #d5e1dd;
  font-size: 8px;
}
.paid-tax-invoice > footer p {
  width: 100%;
  margin: 0 0 5px;
  text-align: center;
}
@media (max-width: 720px) {
  .paid-tax-invoice-layer {
    padding: 4px;
  }
  .paid-tax-invoice,
  .paid-tax-invoice-actions {
    min-width: 760px;
  }
}
@media print {
  body * {
    visibility: hidden !important;
  }
  .paid-tax-invoice-layer,
  .paid-tax-invoice-layer * {
    visibility: visible !important;
  }
  .paid-tax-invoice-layer {
    position: absolute !important;
    inset: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    background: #fff !important;
  }
  .paid-tax-invoice-actions {
    display: none !important;
  }
  .paid-tax-invoice {
    width: 210mm !important;
    max-width: none !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 11mm 12mm !important;
    box-shadow: none !important;
  }
  @page {
    size: A4 portrait;
    margin: 0;
  }
}
.clinical-workspace {
  grid-template-rows: 88px minmax(0, 1fr);
}
.clinical-page-header.clinical-unified-header {
  grid-template-columns: auto auto minmax(280px, 0.9fr) minmax(
      600px,
      1.7fr
    ) auto;
  gap: 12px;
  padding: 7px 16px;
}
.clinical-unified-header .clinical-page-brand {
  padding-right: 12px;
}
.clinical-header-patient {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.clinical-header-patient .patient-star {
  flex: 0 0 auto;
  font-size: 23px;
}
.clinical-header-patient p,
.clinical-header-patient h2,
.clinical-header-patient span {
  margin: 0;
}
.clinical-header-patient p {
  color: #a8d4cb;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.clinical-header-patient h2 {
  margin: 3px 0;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font:
    800 17px/1.1 Manrope,
    sans-serif;
}
.clinical-header-patient > div > span {
  display: block;
  overflow: hidden;
  color: #c4dfd9;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}
.clinical-header-facts {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  gap: 5px;
}
.clinical-header-facts > div {
  min-width: 0;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: #ffffff12;
}
.clinical-header-facts span,
.clinical-header-facts strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clinical-header-facts span {
  margin-bottom: 4px;
  color: #9ecac1;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.clinical-header-facts strong {
  color: #fff;
  font-size: 9.5px;
}
.clinical-header-facts .clinical-status {
  padding: 4px 7px;
  color: #a81d38;
  background: #ffdce3;
  font-size: 8.5px !important;
}
.clinical-unified-tabs {
  position: sticky;
  top: -7px;
  margin-bottom: 5px;
}
.clinical-table-wrap.history .clinical-history-table-v2 {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
}
.clinical-history-table-v2 th:nth-child(1) {
  width: 48px;
}
.clinical-history-table-v2 th:nth-child(2) {
  width: 13%;
}
.clinical-history-table-v2 th:nth-child(3) {
  width: 20%;
}
.clinical-history-table-v2 th:nth-child(4) {
  width: 22%;
}
.clinical-history-table-v2 th:nth-child(5) {
  width: 16%;
}
.clinical-history-table-v2 th:nth-child(6) {
  width: 16%;
}
.clinical-history-table-v2 th:nth-child(7) {
  width: 13%;
}
.clinical-history-table-v2 .clinical-history-action-cell {
  padding-right: 4px !important;
  padding-left: 4px !important;
}
.clinical-history-table-v2 .clinical-history-open {
  width: 32px;
  height: 32px;
}
.clinical-history-department-doctor .clinical-history-label {
  margin-top: 5px;
}
.clinical-history-department-doctor .clinical-history-label:first-child {
  margin-top: 0;
}
.clinical-history-department-doctor > strong {
  margin-top: 2px !important;
}
.clinical-history-department-doctor > strong:last-child {
  color: #116f60;
  font-weight: 900;
}
.clinical-history-table-v2 td > p {
  max-height: none;
  overflow: visible;
}
@media (max-width: 1600px) {
  .clinical-page-header.clinical-unified-header {
    grid-template-columns: auto auto minmax(250px, 0.85fr) minmax(
        480px,
        1.5fr
      ) auto;
    gap: 8px;
  }
  .clinical-unified-header .clinical-page-brand > div,
  .clinical-unified-header .clinical-doctor-context > div {
    display: none;
  }
  .clinical-unified-header .clinical-page-brand {
    padding-right: 8px;
    border-right: 0;
  }
}
@media (max-width: 1050px) {
  .clinical-workspace {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .clinical-page-header.clinical-unified-header {
    grid-template-columns: auto 1fr auto;
    padding: 8px 10px;
  }
  .clinical-unified-header .clinical-page-navigation {
    grid-row: auto;
  }
  .clinical-header-patient {
    grid-column: 2;
    grid-row: 1;
  }
  .clinical-header-facts {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@media (max-width: 700px) {
  .clinical-header-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.appointments-unified-workspace {
  min-width: 0;
  width: 100%;
}
.appointments-unified-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 5px 12px;
  border-bottom: 1px solid #dfe6ee;
  background: #fff;
}
.appointments-unified-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #536273;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 640px) {
  .appointments-unified-tabs {
    padding: 5px 8px;
  }
  .appointments-unified-tabs button {
    flex: 1;
    padding-inline: 8px;
  }
}
.appointments-unified-workspace {
  width: 100%;
  min-width: 0;
}
.appointments-unified-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 5px 12px;
  overflow-x: auto;
  border-bottom: 1px solid #dfe6ee;
  background: #fff;
}
.appointments-unified-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #536273;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.appointments-unified-tabs button:hover {
  background: #f3f7fb;
  color: #174d72;
}
.appointments-unified-tabs button.active {
  border-color: #b9d1e3;
  background: #eaf4fb;
  color: #0b527c;
  box-shadow: inset 0 -2px #1673a5;
}
@media (max-width: 640px) {
  .appointments-unified-tabs {
    padding-inline: 8px;
  }
}
.package-liability-link {
  border: 0;
  background: transparent;
  color: #006dd7;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.package-liability-link:hover {
  color: #004f9d;
}
.package-liability-detail-layer {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #0e222c94;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.package-liability-detail-shell {
  width: min(1500px, 96vw);
  height: min(820px, 92vh);
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #cbded9;
  border-radius: 14px;
  background: #f7faf9;
  box-shadow: 0 24px 70px #061b2452;
}
.package-liability-detail-shell > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(120deg, #176f62, #225c84);
}
.package-liability-detail-shell > header span {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
  opacity: 0.78;
}
.package-liability-detail-shell > header h3 {
  margin: 3px 0 0;
  font-size: 15px;
}
.package-liability-detail-shell > header button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  background: #ffffff1a;
  font-size: 22px;
}
.package-liability-detail-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 6px;
  padding: 7px 10px;
}
.package-liability-detail-totals article {
  padding: 7px 9px;
  border: 1px solid #d8e5e1;
  border-radius: 8px;
  background: #fff;
}
.package-liability-detail-totals span {
  display: block;
  color: #71847f;
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
}
.package-liability-detail-totals strong {
  display: block;
  margin-top: 3px;
  color: #17483f;
  font-size: 11px;
}
.package-liability-detail-totals .matched {
  background: #eaf8f3;
}
.package-liability-detail-totals .warning {
  background: #fff3dc;
}
.package-liability-detail-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 7px;
}
.package-liability-detail-toolbar form {
  display: flex;
  flex: 1;
  max-width: 720px;
}
.package-liability-detail-toolbar input {
  min-width: 0;
  flex: 1;
  height: 31px;
  padding: 0 9px;
  border: 1px solid #cadbd6;
  border-radius: 7px 0 0 7px;
  font-size: 9px;
}
.package-liability-detail-toolbar button,
.package-liability-detail-shell > footer button {
  height: 31px;
  padding: 0 11px;
  border: 1px solid #bfd4ce;
  border-radius: 7px;
  color: #245d53;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}
.package-liability-detail-toolbar form button {
  border-radius: 0 7px 7px 0;
}
.package-liability-detail-error {
  margin: 0 10px 7px;
  padding: 7px 9px;
  border: 1px solid #f0beb8;
  border-radius: 7px;
  color: #a33931;
  background: #fff0ee;
  font-size: 9px;
}
.package-liability-detail-table-wrap {
  min-height: 0;
  overflow: auto;
  margin: 0 10px;
  border: 1px solid #d5e2df;
  border-radius: 9px;
  background: #fff;
}
.package-liability-detail-table-wrap table {
  width: 100%;
  min-width: 1380px;
  border-collapse: collapse;
  table-layout: auto;
}
.package-liability-detail-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 30px;
  padding: 4px 7px;
  color: #0569c8;
  background: #d9f3ff;
  border-bottom: 1px solid #bcdde9;
  font-size: 8px;
  white-space: nowrap;
}
.package-liability-detail-table-wrap td {
  height: 27px;
  padding: 3px 7px;
  border-bottom: 1px solid #edf1f0;
  color: #2e4540;
  font-size: 8px;
  text-align: center;
  white-space: nowrap;
}
.package-liability-detail-table-wrap td:nth-child(6),
.package-liability-detail-table-wrap td:nth-child(7) {
  max-width: 230px;
  white-space: normal;
}
.package-liability-detail-table-wrap td strong,
.package-liability-detail-table-wrap td small {
  display: block;
}
.package-liability-detail-table-wrap td small {
  margin-top: 2px;
  color: #7b8d89;
}
.package-liability-detail-table-wrap td.positive {
  color: #0a7562;
  font-weight: 800;
}
.package-liability-detail-table-wrap td.negative {
  color: #b13d35;
  font-weight: 800;
}
.package-liability-detail-table-wrap td.empty {
  height: 130px;
  color: #71847f;
}
.liability-event {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 6px;
  color: #176c5f;
  background: #e5f6f1;
  font-size: 7px;
  font-weight: 900;
}
.liability-event.service_provided {
  color: #8b6210;
  background: #fff1c7;
}
.liability-event.expired_unused {
  color: #a3342e;
  background: #ffe5e2;
}
.package-liability-detail-shell > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-top: 1px solid #d8e4e1;
  background: #fff;
}
.package-liability-detail-shell > footer span {
  color: #697f79;
  font-size: 8px;
}
.package-liability-detail-shell > footer div {
  display: flex;
  gap: 5px;
}
.package-liability-detail-shell > footer button.primary {
  color: #fff;
  border-color: #176f62;
  background: #176f62;
}
@media (max-width: 720px) {
  .package-liability-detail-layer {
    padding: 0;
  }
  .package-liability-detail-shell {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }
  .package-liability-detail-totals {
    grid-template-columns: repeat(2, 1fr);
  }
  .package-liability-detail-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .package-liability-detail-toolbar form {
    max-width: none;
  }
}
.monthly-month-picker {
  cursor: default;
}
.monthly-month-picker input[type="month"] {
  width: 100%;
  min-width: 150px;
  margin-top: 1px;
  padding: 0;
  color: #244c44;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}
.monthly-month-picker input[type="month"]:disabled {
  color: #58736d;
  cursor: default;
  opacity: 1;
}
.package-liability-detail-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 36px);
}
.package-liability-detail-shell > header,
.package-liability-detail-totals,
.package-liability-detail-toolbar,
.package-liability-detail-error,
.package-liability-detail-shell > footer {
  flex: 0 0 auto;
}
.package-liability-detail-table-wrap {
  flex: 1 1 auto;
  height: 0;
  min-height: 140px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.package-liability-detail-shell > footer {
  position: relative;
  z-index: 4;
  min-height: 44px;
  box-shadow: 0 -5px 14px #14373014;
}
.package-liability-detail-shell > footer span {
  font-size: 9px;
  font-weight: 800;
}
@media (max-width: 720px) {
  .package-liability-detail-shell {
    height: 100dvh;
    max-height: 100dvh;
  }
  .package-liability-detail-table-wrap {
    min-height: 100px;
  }
  .package-liability-detail-shell > footer {
    gap: 6px;
    align-items: flex-start;
    flex-direction: column;
  }
  .package-liability-detail-shell > footer div {
    width: 100%;
  }
  .package-liability-detail-shell > footer button {
    flex: 1;
  }
}
.ra-detailed-bill-wrap {
  position: relative;
  max-width: 100%;
  overflow: auto;
}
.ra-detailed-bill-table {
  width: max-content;
  min-width: 2720px;
  table-layout: auto;
}
.ra-detailed-bill-table th,
.ra-detailed-bill-table td {
  height: 38px;
  padding: 5px 7px;
  font-size: 9px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
.ra-detailed-bill-table th {
  min-width: 74px;
  vertical-align: bottom;
}
.ra-detailed-bill-table .ra-text-column {
  min-width: 130px;
  max-width: 180px;
  white-space: normal;
}
.ra-detailed-bill-table .ra-actions-column {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 82px;
  min-width: 82px;
  max-width: 82px;
  background: #fff;
  box-shadow: 5px 0 10px #143f3614;
}
.ra-detailed-bill-table thead .ra-actions-column {
  z-index: 5;
  background: #dff4fb;
}
.ra-bill-row-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.ra-bill-row-actions button {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #cdded9;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.ra-bill-row-actions .ra-action-billing {
  color: #0b6d5b;
  background: #ebf8f4;
}
.ra-bill-row-actions .ra-action-print {
  color: #176b9b;
  background: #edf7fc;
}
.ra-bill-row-actions button:hover:not(:disabled) {
  border-color: #71b6a5;
  transform: translateY(-1px);
}
.ra-bill-row-actions button:disabled {
  color: #a4b2ae;
  background: #f1f4f3;
  cursor: not-allowed;
  opacity: 0.7;
}
.ra-table-link {
  padding: 0;
  color: #0872c9;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.ra-table-link:hover {
  text-decoration: underline;
}
@media (max-width: 720px) {
  .ra-detailed-bill-table {
    min-width: 2600px;
  }
}
.package-liability-detail-table-wrap tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 3;
  height: 32px;
  color: #17483f;
  background: #e8f5f1;
  border-top: 2px solid #9fc8bd;
  border-bottom: 0;
  font-weight: 900;
  box-shadow: 0 -3px 8px #14463b14;
}
.package-liability-detail-table-wrap tfoot td:first-child {
  text-align: left;
  padding-left: 12px;
  color: #315f55;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.package-liability-detail-table-wrap tfoot td.positive {
  color: #087261;
}
.package-liability-detail-table-wrap tfoot td.negative {
  color: #b13d35;
}
.brand-logo {
  display: block;
  width: min(250px, 70vw);
  height: auto;
  object-fit: contain;
}
.story-panel .brand-logo {
  width: clamp(200px, 18vw, 270px);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.16));
}
.mobile-brand .brand-logo,
.brand-logo.compact {
  width: 190px;
}
.access-denied-card .brand-logo {
  width: min(230px, 70vw);
  margin: 0 auto 28px;
}
.mini-brand {
  overflow: hidden;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #fff;
  box-shadow: 0 8px 24px #03191633;
}
.mini-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mini-cross {
  display: none;
}
@media (max-width: 720px) {
  .mobile-brand .brand-logo {
    width: 175px;
  }
}
:root {
  --melanin-petrol-950: #052f38;
  --melanin-petrol-900: #073f49;
  --melanin-petrol-800: #075564;
  --melanin-cyan-600: #008495;
  --melanin-cyan-500: #00afc1;
  --melanin-cyan-400: #20c2d1;
  --melanin-pink-500: #d94fa4;
  --melanin-text: #173a3f;
  --melanin-muted: #647d82;
  --melanin-page: #f4f9fa;
  --melanin-surface: #ffffff;
  --melanin-soft: #eaf7f9;
  --melanin-border: #d4e8eb;
  --melanin-border-strong: #a9dce2;
  --melanin-success: #15966a;
  --melanin-warning: #d89518;
  --melanin-danger: #cf4545;
}
html {
  accent-color: var(--melanin-cyan-600);
}
body {
  color: var(--melanin-text);
  background: var(--melanin-page);
}
::selection {
  color: #fff;
  background: var(--melanin-cyan-600);
}
.story-panel {
  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(0, 175, 193, 0.28),
      transparent 42%
    ),
    radial-gradient(
      circle at 88% 80%,
      rgba(217, 79, 164, 0.14),
      transparent 34%
    ),
    linear-gradient(
      150deg,
      var(--melanin-petrol-950),
      var(--melanin-petrol-900)
    ) !important;
}
.story-glow-one {
  background: var(--melanin-cyan-500) !important;
}
.story-glow-two {
  border-color: #d94fa4b3 !important;
}
.story-copy .eyebrow,
.security-note {
  color: #a8edf3 !important;
}
.security-dot {
  background: var(--melanin-cyan-400) !important;
  box-shadow: 0 0 0 6px #00afc129 !important;
}
.eyebrow {
  color: var(--melanin-cyan-600);
}
.field:focus-within {
  border-color: var(--melanin-cyan-500) !important;
  box-shadow: 0 0 0 4px #00afc11f !important;
}
.checkbox input:checked + span {
  border-color: var(--melanin-cyan-600) !important;
  background: var(--melanin-cyan-600) !important;
}
.show-password {
  color: var(--melanin-cyan-600) !important;
}
.submit-button {
  color: #fff !important;
  background: linear-gradient(
    135deg,
    var(--melanin-cyan-600),
    var(--melanin-petrol-800)
  ) !important;
  box-shadow: 0 13px 28px #00697938 !important;
}
.workspace-shell {
  color: var(--melanin-text);
  background: var(--melanin-page) !important;
}
.workspace-sidebar {
  background: linear-gradient(
    180deg,
    var(--melanin-petrol-900),
    var(--melanin-petrol-950)
  ) !important;
  box-shadow: 8px 0 30px #052f3826 !important;
}
.workspace-sidebar nav button {
  color: #aed3d8 !important;
  background: #ffffff09 !important;
}
.workspace-sidebar nav button:hover {
  color: #fff !important;
  background: #00afc121 !important;
}
.workspace-sidebar nav button.active {
  color: #fff !important;
  background: linear-gradient(135deg, #00afc161, #00849547) !important;
  box-shadow:
    inset 3px 0 var(--melanin-pink-500),
    0 7px 18px #0000001f !important;
}
.workspace-header {
  position: relative;
  color: var(--melanin-text);
  border-bottom-color: var(--melanin-border) !important;
  background: #ffffffe6 !important;
}
.workspace-header:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--melanin-cyan-500),
    var(--melanin-pink-500),
    transparent 42%
  );
}
.workspace-header h1,
.user-copy strong {
  color: var(--melanin-text) !important;
}
.workspace-header p {
  color: var(--melanin-cyan-600) !important;
}
.role-pill {
  color: var(--melanin-petrol-800) !important;
  border-color: #bce4e8 !important;
  background: #e8f8fa !important;
}
button.primary,
.module-primary,
.new-patient-button,
.admin-report-go,
.sales-primary,
.sales-new,
.ca-primary,
.appointment-page-current,
.ua-toolbar button.primary,
.ua-drawer > footer button.primary,
.package-admin-form-card > footer button.primary,
.package-liability-detail-shell > footer button.primary {
  color: #fff !important;
  border-color: var(--melanin-cyan-600) !important;
  background: linear-gradient(
    135deg,
    var(--melanin-cyan-600),
    var(--melanin-petrol-800)
  ) !important;
  box-shadow: 0 6px 15px #00849529;
}
button.primary:hover:not(:disabled),
.module-primary:hover:not(:disabled),
.new-patient-button:hover:not(:disabled),
.admin-report-go:hover:not(:disabled),
.sales-primary:hover:not(:disabled),
.sales-new:hover:not(:disabled) {
  border-color: var(--melanin-petrol-800) !important;
  background: linear-gradient(
    135deg,
    var(--melanin-petrol-800),
    var(--melanin-petrol-900)
  ) !important;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--melanin-cyan-500) !important;
  outline: none;
}
.patient-search:focus-within,
.package-search:focus-within,
.appointment-patient-search:focus-within,
.doctor-action-search:focus-within,
.partially-paid-search:focus-within,
.ra-search-filter > div:focus-within {
  border-color: var(--melanin-cyan-500) !important;
  box-shadow: 0 0 0 3px #00afc11a !important;
}
.module-tabs button.active,
.clinical-tabs button.active,
.appointments-unified-tabs button.active,
.ra-report-tabs button.active,
.admin-report-tabs button.active,
.package-report-tabs button.active,
.ua-tabs button.active,
.center-admin-tabs button.active {
  color: var(--melanin-petrol-800) !important;
  border-color: var(--melanin-cyan-500) !important;
  background: #e5f8fa !important;
  box-shadow:
    inset 0 -3px var(--melanin-pink-500),
    0 4px 12px #00849514 !important;
}
.admin-filters,
.appointment-list-filters,
.doctor-action-filters,
.partially-paid-filters,
.package-filters,
.monthly-toolbar,
.ra-filter-panel,
.ra-report-toolbar,
.financial-control-filters,
.admin-billing-filters {
  border-color: var(--melanin-border) !important;
  background: var(--melanin-soft) !important;
}
.workspace-main table thead th {
  color: #075b69;
  border-color: #c8e5e9;
  background: #e4f6f9;
}
.workspace-main table tbody tr:hover {
  background: #f3fbfc;
}
.workspace-main table tfoot td {
  border-color: var(--melanin-border-strong);
  background: #edf8fa;
}
.file-number,
.ra-table-link,
.partially-paid-id,
.partially-paid-patient > button,
.package-liability-link {
  color: #007f91 !important;
}
.file-number:hover,
.ra-table-link:hover,
.package-liability-link:hover {
  color: var(--melanin-pink-500) !important;
}
.table-pagination button:not(:disabled):hover,
.ra-pagination button:not(:disabled):hover,
.admin-report-pagination button:not(:disabled):hover {
  color: var(--melanin-petrol-800) !important;
  border-color: var(--melanin-cyan-500) !important;
  background: #e8f8fa !important;
}
.medical-drawer-header,
.appointment-page-topbar,
.package-liability-detail-shell > header {
  color: #fff !important;
  background: linear-gradient(
    120deg,
    var(--melanin-petrol-900),
    var(--melanin-cyan-600)
  ) !important;
}
.status-badge.success,
.module-status.success,
.appointment-status-7,
.appointment-status-completed,
.package-status-active,
.package-status-completed,
.package-admin-status.completed,
.package-admin-status.in_progress,
.ra-kpi.positive {
  color: #08704f !important;
  border-color: #bce6d5 !important;
  background: #e3f7ef !important;
}
.bill-watermark.paid {
  color: var(--melanin-success) !important;
}
.status-badge.danger,
.module-status.danger {
  color: #a52e2e !important;
  background: #fdeaea !important;
}
.status-badge.warning,
.module-status.warning {
  color: #865d0d !important;
  background: #fff3cf !important;
}
.doctor-complete-date-filter {
  position: relative;
  min-width: 126px;
  height: 34px;
  display: flex;
  align-items: flex-end;
  padding: 12px 7px 2px;
  border: 1px solid #d3dfdc;
  border-radius: 8px;
  background: #fff;
}
.doctor-complete-date-filter > span {
  position: absolute;
  top: 2px;
  left: 8px;
  color: #78908a;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.doctor-complete-date-filter > input {
  width: 100%;
  min-width: 0;
  height: 19px;
  padding: 0;
  color: #244c44;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
}
@media (max-width: 1050px) {
  .doctor-complete-date-filter {
    flex: 0 0 126px;
  }
}
body:has(.module-layer .medical-drawer) {
  overflow: hidden;
}
.module-layer {
  overflow: hidden;
}
.medical-drawer {
  width: min(96vw, 1540px);
  max-width: 96vw;
  min-width: 0;
  max-height: 96vh;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}
.medical-drawer > .medical-drawer-header,
.medical-drawer > .module-tabs,
.medical-drawer > .medical-drawer-body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.medical-drawer > .module-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  background: #fff;
  border-bottom: 1px solid #dce7e4;
  box-shadow: 0 2px 5px #114a410a;
  z-index: 5;
}
.medical-drawer > .module-tabs button {
  flex: 0 0 auto;
}
.medical-drawer-body.patient-workspace-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.patient-workspace-screen {
  display: grid;
  gap: 10px;
  min-width: 0;
  width: 100%;
}
.patient-workspace-screen .module-patient-banner {
  margin: 0;
}
.patient-workspace-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #d9e4e1;
  border-radius: 10px;
  background: #fff;
}
.patient-workspace-table-wrap > table {
  margin: 0;
}
.history-table.reception-history {
  min-width: 1460px;
}
.history-table.clinical-history {
  min-width: 1320px;
}
.package-subscription-table {
  min-width: 1480px;
}
.patient-billing-table {
  min-width: 1490px;
}
.patient-workspace-table-wrap .module-table th,
.patient-workspace-table-wrap .module-table td {
  padding: 7px 9px;
  vertical-align: top;
}
.patient-workspace-table-wrap .module-table th {
  white-space: nowrap;
}
.patient-workspace-table-wrap .module-table td strong,
.patient-workspace-table-wrap .module-table td small {
  display: block;
}
.patient-workspace-table-wrap .module-table td small {
  margin-top: 2px;
  color: #687b77;
  line-height: 1.35;
}
.module-action-column {
  width: 76px;
  min-width: 76px;
  text-align: left;
}
.module-icon-button.package-expand-button {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}
.patient-workspace-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0;
  border: 1px solid #d9e4e1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.patient-workspace-summary > div {
  min-width: 0;
  padding: 8px 11px;
  border-inline-end: 1px solid #e5ecea;
}
.patient-workspace-summary > div:last-child {
  border-inline-end: 0;
}
.patient-workspace-summary span,
.patient-workspace-summary strong {
  display: block;
}
.patient-workspace-summary span {
  color: #6c7e7a;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.patient-workspace-summary strong {
  margin-top: 2px;
  color: #173f3b;
  font-size: 0.96rem;
}
.patient-workspace-summary .outstanding strong,
.billing-money.outstanding,
.money-danger {
  color: #b42318;
}
.package-filter-bar,
.billing-filter-bar {
  display: grid;
  gap: 8px;
  align-items: end;
  padding: 9px;
  border: 1px solid #d9e4e1;
  border-radius: 10px;
  background: #f8fbfa;
}
.package-filter-bar {
  grid-template-columns: minmax(240px, 1fr) minmax(170px, 220px);
}
.billing-filter-bar {
  grid-template-columns: minmax(240px, 1.3fr) minmax(175px, 0.65fr) repeat(
      2,
      minmax(145px, 0.55fr)
    ) auto auto;
}
.package-filter-bar input,
.package-filter-bar select,
.billing-filter-bar input,
.billing-filter-bar select,
.billing-reset-button {
  min-height: 36px;
  width: 100%;
  box-sizing: border-box;
}
.billing-filter-bar label {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.billing-filter-bar label > span {
  color: #62746f;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.billing-reset-button {
  border: 1px solid #cbd9d5;
  border-radius: 8px;
  background: #fff;
  color: #284d48;
  font-weight: 700;
  padding: 0 13px;
  cursor: pointer;
}
.patient-workspace-table-wrap tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #edf5f2;
  border-top: 2px solid #bfd3cd;
  color: #173f3b;
}
.patient-workspace-table-wrap tfoot small {
  color: inherit;
  opacity: 0.75;
}
.package-detail-row > td {
  padding: 0 !important;
  background: #f5f9f8;
}
.package-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 12px;
  padding: 12px;
}
.package-detail-layout > section {
  min-width: 0;
  padding: 10px;
  border: 1px solid #d9e4e1;
  border-radius: 9px;
  background: #fff;
}
.package-detail-layout h4 {
  margin: 0 0 8px;
  color: #173f3b;
  font-size: 0.88rem;
}
.package-service-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.package-service-table {
  min-width: 680px;
}
.package-usage-grid {
  display: grid;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
}
.package-usage-grid > div {
  padding: 8px 9px;
  border: 1px solid #e1eae7;
  border-radius: 7px;
  background: #fbfdfc;
}
.package-usage-grid strong,
.package-usage-grid span,
.package-usage-grid small {
  display: block;
}
.table-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}
.table-pagination button {
  min-height: 32px;
}
.history-invoice-layer {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 22px;
}
.history-invoice-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #0b211e94;
  cursor: default;
}
.history-invoice-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1120px, 95vw);
  max-height: 92vh;
  overflow: hidden;
  border: 1px solid #cadbd6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 70px #08262247;
}
.history-invoice-dialog > header,
.history-invoice-dialog > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-color: #dce7e4;
  background: #f7faf9;
}
.history-invoice-dialog > header {
  border-bottom: 1px solid #dce7e4;
}
.history-invoice-dialog > footer {
  border-top: 1px solid #dce7e4;
}
.history-invoice-dialog > header h3,
.history-invoice-dialog > header p {
  margin: 0;
}
.history-invoice-dialog > header span,
.history-invoice-dialog > header p {
  color: #6b7e79;
  font-size: 0.76rem;
}
.history-invoice-content {
  min-height: 0;
  overflow-y: auto;
  padding: 12px 15px;
}
.history-invoice-close {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cad9d5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.bill-watermark.cancelled {
  color: #b42318;
  border-color: #b4231840;
  background: #b4231812;
}
@media (max-width: 1050px) {
  .billing-filter-bar {
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.7fr) repeat(
        2,
        minmax(140px, 0.55fr)
      );
  }
  .billing-filter-bar > button {
    grid-column: auto;
  }
  .package-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .medical-drawer {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .package-filter-bar,
  .billing-filter-bar {
    grid-template-columns: minmax(0, 1fr);
  }
  .patient-workspace-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .history-invoice-layer {
    padding: 0;
  }
  .history-invoice-dialog {
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
}
.history-invoice-facts,
.history-invoice-totals {
  display: grid;
  gap: 0;
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid #d9e4e1;
  border-radius: 10px;
  background: #fff;
}
.history-invoice-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.history-invoice-totals {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #f7faf9;
}
.history-invoice-facts > div,
.history-invoice-totals > div {
  min-width: 0;
  padding: 8px 10px;
  border-inline-end: 1px solid #e4ece9;
  border-bottom: 1px solid #e4ece9;
}
.history-invoice-facts > div:nth-child(3n),
.history-invoice-totals > div:last-child {
  border-inline-end: 0;
}
.history-invoice-facts > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}
.history-invoice-totals > div {
  border-bottom: 0;
}
.history-invoice-facts span,
.history-invoice-totals span,
.history-invoice-facts strong,
.history-invoice-totals strong {
  display: block;
  min-width: 0;
}
.history-invoice-facts span,
.history-invoice-totals span {
  color: #6b7d78;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.history-invoice-facts strong,
.history-invoice-totals strong {
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: #183f3b;
  font-size: 0.88rem;
}
.history-invoice-totals .outstanding strong {
  color: #b42318;
}
.history-invoice-section {
  margin: 10px 0 0;
  padding: 10px;
}
.history-invoice-section > h3 {
  margin: 0 0 8px;
  color: #173f3b;
  font-size: 0.86rem;
}
.history-invoice-table {
  min-width: 720px;
}
.history-payment-table {
  min-width: 690px;
}
.history-invoice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.history-invoice-links button {
  min-height: 25px;
  padding: 3px 7px;
  border: 1px solid #bad0ca;
  border-radius: 6px;
  background: #f2f8f6;
  color: #155f56;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}
.history-invoice-dialog > footer > button:not(.module-primary) {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #cad9d5;
  border-radius: 8px;
  background: #fff;
  color: #284d48;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 760px) {
  .history-invoice-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .history-invoice-facts > div:nth-child(3n) {
    border-inline-end: 1px solid #e4ece9;
  }
  .history-invoice-facts > div:nth-child(2n) {
    border-inline-end: 0;
  }
  .history-invoice-facts > div:nth-last-child(-n + 3) {
    border-bottom: 1px solid #e4ece9;
  }
  .history-invoice-facts > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .history-invoice-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .history-invoice-totals > div {
    border-bottom: 1px solid #e4ece9;
  }
  .history-invoice-totals > div:nth-child(2n) {
    border-inline-end: 0;
  }
  .history-invoice-totals > div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }
}
.patient-count-admin-only {
  min-height: 44px;
}
.history-invoice-actions > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.history-invoice-actions .module-primary {
  min-height: 34px;
  padding: 0 14px;
}
.history-invoice-actions .module-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.history-invoice-delivery-status {
  max-width: 420px;
  color: #176b5e;
  font-size: 0.76rem;
  font-weight: 700;
}
.history-invoice-delivery-status.blocked {
  color: #9b4b21;
}
@media (max-width: 760px) {
  .history-invoice-actions {
    align-items: stretch !important;
    flex-direction: column;
  }
  .history-invoice-actions > div {
    width: 100%;
    justify-content: stretch;
  }
  .history-invoice-actions > div > button {
    flex: 1;
  }
}
