/* Add button: brand color, white text */
.pharmacist-add-btn {
  background: var(--portal-btn-primary-bg, #0e5a7a) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 700;
  border-radius: 10px;
  min-width: 48px;
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.15s;
}
.pharmacist-add-btn:hover, .pharmacist-add-btn:focus-visible {
  background: #12709a !important;
  color: #fff !important;
}

/* Delete button: red bg, white text */
.pharmacist-delete-btn {
  background: #e53935 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 700;
  border-radius: 10px;
  min-width: 48px;
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.15s;
}
.pharmacist-delete-btn:hover, .pharmacist-delete-btn:focus-visible {
  background: #b71c1c !important;
  color: #fff !important;
}
/* Pharmacist dashboard: Brand View button and Action cell centering */
.pharmacist-action-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: 100%;
}
.pharmacist-action-cell > * {
  flex: 0 0 auto;
}
.pharmacist-action-cell .portal-inline-form {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}
.pharmacist-action-cell .btn,
.pharmacist-action-cell .pharmacist-view-btn {
  white-space: nowrap;
}
.pharmacist-view-btn {
  background: var(--portal-btn-primary-bg, #0e5a7a) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 700;
  border-radius: 10px;
  min-width: 64px;
  min-height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.15s;
}
.pharmacist-view-btn:hover, .pharmacist-view-btn:focus-visible {
  background: #12709a !important;
  color: #fff !important;
}
.up-icon {
  display: inline-flex;
  width: 1.1em;
  height: 1.1em;
  line-height: 1;
  vertical-align: middle;
}

.up-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.portal-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  line-height: 1.2;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}

.portal-icon-btn i,
.portal-icon-btn svg,
.portal-icon-btn .portal-sr-only {
  display: none !important;
}

body.portal-workspace .portal-section :is(a.btn.portal-icon-btn, button.btn.portal-icon-btn) {
  background: rgba(var(--portal-btn-primary-bg-rgb, 14, 90, 122), 0.08) !important;
  border: 1px solid rgba(var(--portal-btn-primary-bg-rgb, 14, 90, 122), 0.18) !important;
  color: var(--portal-btn-primary-bg) !important;
  -webkit-text-fill-color: var(--portal-btn-primary-bg) !important;
  box-shadow: none !important;
}

body.portal-workspace .portal-section :is(a.btn.portal-icon-btn, button.btn.portal-icon-btn):is(:hover, :focus-visible, :active) {
  background: rgba(var(--portal-btn-primary-bg-rgb, 14, 90, 122), 0.12) !important;
  border-color: rgba(var(--portal-btn-primary-bg-rgb, 14, 90, 122), 0.26) !important;
  color: var(--portal-btn-primary-hover) !important;
  -webkit-text-fill-color: var(--portal-btn-primary-hover) !important;
}

body.portal-workspace .portal-section :is(
  a.btn.portal-icon-btn.portal-btn-danger,
  button.btn.portal-icon-btn.portal-btn-danger,
  a.btn.portal-icon-btn.portal-admin-btn-danger,
  button.btn.portal-icon-btn.portal-admin-btn-danger
) {
  background: rgba(220, 38, 38, 0.08) !important;
  border: 1px solid rgba(220, 38, 38, 0.18) !important;
  color: #dc2626 !important;
  -webkit-text-fill-color: #dc2626 !important;
  box-shadow: none !important;
}

body.portal-workspace .portal-section :is(
  a.btn.portal-icon-btn.portal-btn-danger,
  button.btn.portal-icon-btn.portal-btn-danger,
  a.btn.portal-icon-btn.portal-admin-btn-danger,
  button.btn.portal-icon-btn.portal-admin-btn-danger
):is(:hover, :focus-visible, :active) {
  background: rgba(220, 38, 38, 0.12) !important;
  border-color: rgba(220, 38, 38, 0.26) !important;
  color: #b91c1c !important;
  -webkit-text-fill-color: #b91c1c !important;
  box-shadow: none !important;
}

body.portal-workspace .portal-section :is(.btn, .button, button, input[type="submit"], input[type="button"], input[type="reset"], a.btn, a.button):is(:hover, :focus-visible, :active) {
  -webkit-text-fill-color: currentColor !important;
}

.portal-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-inline-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

body.portal-workspace .portal-section :is(.admin-dashboard-row-actions, .doctor-dash-row-actions, .patient-dash-row-actions, .portal-focused-rx-actions) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

body.portal-workspace .portal-section :is(td, th) {
  vertical-align: middle;
}

body.portal-workspace .portal-section :is(.card, .panel, .portal-card, .portal-section-card) {
  overflow: hidden;
}


@keyframes portal-center-popup-fade {
  0% {
    opacity: 0;
    visibility: visible;
    transform: translate(-50%, -42%) scale(0.96);
  }
  12% {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
  }
  84% {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -56%) scale(0.98);
  }
}

.portal-alert.portal-center-popup-toast {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 100000 !important;
  width: min(640px, calc(100vw - 28px)) !important;
  margin: 0 !important;
  border-radius: 12px !important;
  border: 1px solid #0f4f6d !important;
  background: #f5fbff !important;
  color: #0f4f6d !important;
  box-shadow: 0 20px 42px rgba(15,79,109,0.18) !important;
  pointer-events: none !important;
  animation: portal-center-popup-fade 3s cubic-bezier(0.2, 0.72, 0.2, 1) forwards !important;
}

.portal-alert.portal-center-popup-toast :is(strong, a, p, span, div) {
  color: #0f4f6d !important;
  -webkit-text-fill-color: #0f4f6d !important;
}

.portal-runtime-conflict-list {
  list-style: disc;
  margin: 0 0 0 18px;
}

.portal-invoice-fallback-body {
  margin: 0;
  padding: 0;
  background: var(--portal-ui-bg);
}

.portal-invoice-fallback {
  font-family: "DM Sans", "Work Sans", "Noto Sans", sans-serif;
  color: var(--portal-theme-text);
}

.portal-invoice-fallback__title {
  margin: 0;
  font-size: 26px;
}

.portal-invoice-fallback__line {
  margin: 0 0 8px;
  color: var(--portal-theme-text);
}

.portal-invoice-fallback__line--gap {
  margin-top: 12px;
}

.portal-invoice-fallback__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: var(--portal-theme-paper);
  border: 1px solid var(--portal-theme-line-strong);
}

.portal-invoice-fallback__th {
  border-bottom: 1px solid var(--portal-theme-line-strong);
  padding: 10px 12px;
  color: var(--portal-theme-active-text);
  background: var(--portal-ext-panel-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.portal-invoice-fallback__th--left {
  text-align: left;
}

.portal-invoice-fallback__th--right {
  text-align: right;
}

.portal-invoice-fallback__td {
  padding: 12px;
  border-bottom: 1px solid var(--portal-theme-line);
}

.portal-invoice-fallback__td--right {
  text-align: right;
}

.portal-invoice-fallback__pay-link {
  display: inline-block;
  background: var(--portal-theme-brand);
  color: var(--portal-theme-paper);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid var(--portal-theme-brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}

.portal-invoice-fallback__pay-link:hover,
.portal-invoice-fallback__pay-link:focus-visible {
  background: var(--portal-btn-primary-hover);
  border-color: var(--portal-btn-primary-hover);
  color: var(--portal-theme-paper);
}

.portal-invoice-fallback__footer {
  margin: 16px 0 0;
  color: var(--portal-ui-muted);
  font-size: 12px;
}

.portal-medical-intake.portal-invoice-fallback-theme .portal-medical-form-logo__text {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Shared dashboard layout harmonization for admin/doctor/patient/pharmacist */
body.portal-workspace .portal-section :is([data-admin-workspace], [data-doctor-dashboard], [data-patient-dashboard]) {
  --portal-ui-gap: 14px;
  --portal-ui-card-radius: 0px;
  --portal-ui-field-radius: 10px;
  --portal-ui-table-cell-x: 12px;
  --portal-ui-table-cell-y: 10px;
}

body.portal-workspace .portal-section :is(.admin-main, .doctor-dashboard-main, .patient-dashboard-main) {
  padding: 16px !important;
}

body.portal-workspace .portal-section :is(.admin-main, .doctor-dashboard-main, .patient-dashboard-main) > * + * {
  margin-top: var(--portal-ui-gap) !important;
}

body.portal-workspace .portal-section :is(.admin-main, .doctor-dashboard-main, .patient-dashboard-main) :is(article.card, .card.doctor-panel-fill-card, .patient-dash-appointment-card) {
  border-radius: var(--portal-ui-card-radius) !important;
  box-shadow: 0 6px 18px var(--portal-theme-shadow-soft) !important;
  padding: 16px !important;
  background: var(--portal-theme-paper) !important;
}

body.portal-workspace .portal-section :is(.admin-main, .doctor-dashboard-main, .patient-dashboard-main) :is(.card__top, .doctor-grid-head, .portal-inline-admin-0030) {
  margin: 0 0 12px !important;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

body.portal-workspace .portal-section :is(.admin-main, .doctor-dashboard-main, .patient-dashboard-main) :is(.admin-dashboard-table-wrap, .doctor-dash-table-wrap, .patient-dash-table-wrap) {
  width: 100%;
  border: 1px solid var(--portal-theme-line);
  border-radius: var(--portal-ui-card-radius);
  overflow: auto;
  background: var(--portal-theme-paper);
}

body.portal-workspace .portal-section :is(.admin-dashboard-table, .doctor-dash-table, .patient-dash-table, .portal-dashboard-booking-summary-table, .portal-amcal-table) {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

body.portal-workspace .portal-section :is(.admin-dashboard-table, .doctor-dash-table, .patient-dash-table, .portal-dashboard-booking-summary-table, .portal-amcal-table) th {
  text-align: left;
  padding: var(--portal-ui-table-cell-y) var(--portal-ui-table-cell-x);
  background: var(--portal-theme-soft);
  color: var(--portal-theme-active-text);
  border-bottom: 1px solid var(--portal-theme-line-strong);
  border-right: 1px solid var(--portal-theme-line-strong);
  font-weight: 700;
  vertical-align: middle;
}

body.portal-workspace .portal-section :is(.admin-dashboard-table, .doctor-dash-table, .patient-dash-table, .portal-dashboard-booking-summary-table, .portal-amcal-table) th:last-child {
  border-right: 0;
}

body.portal-workspace .portal-section :is(.admin-dashboard-table, .doctor-dash-table, .patient-dash-table, .portal-dashboard-booking-summary-table, .portal-amcal-table) td {
  padding: var(--portal-ui-table-cell-y) var(--portal-ui-table-cell-x);
  border-bottom: 1px solid var(--portal-theme-line);
  border-right: 1px solid var(--portal-theme-line);
  vertical-align: middle;
}

body.portal-workspace .portal-section :is(.admin-dashboard-table, .doctor-dash-table, .patient-dash-table, .portal-dashboard-booking-summary-table, .portal-amcal-table) td:last-child {
  border-right: 0;
}

body.portal-workspace .portal-section :is(.admin-dashboard-table, .doctor-dash-table, .patient-dash-table) tbody tr:last-child td {
  border-bottom: 0;
}

body.portal-workspace .portal-section :is(.admin-dashboard-table__action-cell, .portal-focused-tickets-action-cell):not(td):not(th),
body.portal-workspace .portal-section .patient-dash-appointment-card__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.portal-workspace .portal-section :is(.admin-main, .doctor-dashboard-main, .patient-dashboard-main) :is(form, .portal-form, .portal-rx-form, .portal-admin-treatment-edit-form) {
  display: grid;
  gap: 12px;
}

body.portal-workspace .portal-section :is(.admin-main, .doctor-dashboard-main, .patient-dashboard-main) :is(label, .portal-field-label, .portal-admin-checkbox-card) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--portal-theme-text);
  font-weight: 600;
}

body.portal-workspace .portal-section :is(.admin-main, .doctor-dashboard-main, .patient-dashboard-main) :is(input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], input[type="time"], input[type="number"], input[type="datetime-local"], select, textarea, .form-control) {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--portal-theme-line-strong);
  border-radius: var(--portal-ui-field-radius);
  background: var(--portal-theme-paper);
  color: var(--portal-theme-text);
}

body.portal-workspace .portal-section :is(.admin-main, .doctor-dashboard-main, .patient-dashboard-main) textarea {
  min-height: 104px;
  resize: vertical;
}

body.portal-workspace .portal-section :is(.doctor-table-pagination, .portal-patient-table-pagination, .patient-dash-pagination, .portal-admin-payments-pagination, .portal-admin-table-pager) {
  position: relative;
  margin-top: 12px;
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 8px;
}

/* Unwrap nav wrappers so buttons are direct flex items */
body.portal-workspace .portal-section :is(.portal-admin-payments-pagination-nav, .portal-admin-table-pager__actions) {
  display: contents;
}

/* Page info always absolutely centered */
body.portal-workspace .portal-section :is(.portal-admin-payments-pagination, .portal-admin-table-pager) > p,
body.portal-workspace .portal-section :is(.doctor-table-pagination__meta, .doctor-table-pagination .muted.small) {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  z-index: 0;
}

/* Buttons above the centered text */
body.portal-workspace .portal-section :is(.doctor-table-pagination, .portal-patient-table-pagination, .patient-dash-pagination, .portal-admin-payments-pagination, .portal-admin-table-pager) .btn {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

/* Next button pushed to the right */
body.portal-workspace .portal-section .btn--next {
  margin-left: auto !important;
}

/* Disabled/invisible buttons still hold layout space */
body.portal-workspace .portal-section .doctor-table-pagination .btn.is-disabled,
body.portal-workspace .portal-section .portal-admin-table-pager .btn[disabled] {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.portal-workspace .portal-section :is(.doctor-table-pagination__actions, .portal-patient-table-pagination__actions) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  body.portal-workspace .portal-section :is(.admin-main, .doctor-dashboard-main, .patient-dashboard-main) {
    padding: 12px !important;
  }

  body.portal-workspace .portal-section :is(.admin-main, .doctor-dashboard-main, .patient-dashboard-main) :is(article.card, .card.doctor-panel-fill-card, .patient-dash-appointment-card) {
    padding: 12px !important;
  }
}

@keyframes portal-soft-sync-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--portal-ext-brand-shadow-25);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
  }
}

body.portal-workspace .portal-section :is([data-admin-workspace], [data-doctor-dashboard], [data-patient-dashboard]).portal-sync-soft-updated {
  animation: portal-soft-sync-pulse 0.9s ease-out 1;
}

body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-patient-grid-four,
body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-patient-grid-three,
body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-patient-grid-five {
  display: grid;
  gap: 12px;
}

body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-patient-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-patient-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-patient-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-admin-rx-medication-cell {
  position: relative;
}

body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-medication-wrap,
body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-medication-wrap .portal-rx-medication-table,
body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-medication-wrap .portal-rx-medication-table tbody,
body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-medication-wrap .portal-rx-medication-table tr,
body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-medication-wrap .portal-rx-medication-table td {
  overflow: visible !important;
}

body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-admin-rx-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 30;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--portal-theme-line-strong);
  border-radius: 12px;
  background: var(--portal-theme-paper);
  box-shadow: 0 14px 30px var(--portal-theme-shadow-soft);
}

body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-admin-rx-suggestion {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--portal-theme-line);
  background: transparent;
  padding: 12px 14px;
  cursor: pointer;
}

body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-admin-rx-suggestion strong {
  font-size: 14px;
  line-height: 1.4;
  color: var(--portal-color-051);
}

body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-admin-rx-suggestion span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--portal-color-104);
}

body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-admin-rx-suggestion:last-child {
  border-bottom: 0;
}

body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-admin-rx-suggestion:hover,
body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-admin-rx-suggestion:focus,
body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-admin-rx-suggestion:focus-visible {
  background: var(--portal-color-056);
  outline: 0;
}

.portal-med-floating-wrap {
  position: fixed;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--portal-theme-line-strong);
  border-radius: 10px;
  background: var(--portal-theme-paper);
  box-shadow: 0 12px 28px var(--portal-theme-shadow-soft);
  z-index: 2147483000;
}

.portal-med-floating-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--portal-theme-line);
  background: var(--portal-theme-paper);
  padding: 10px 12px;
  cursor: pointer;
  color: var(--portal-theme-text);
}

.portal-med-floating-item:last-child {
  border-bottom: 0;
}

.portal-med-floating-item strong {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: var(--portal-theme-active-text);
}

.portal-med-floating-item:hover,
.portal-med-floating-item:focus,
.portal-med-floating-item:focus-visible {
  background: var(--portal-theme-soft);
  outline: 0;
}

@media (max-width: 1100px) {
  body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-patient-grid-four,
  body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-patient-grid-five,
  body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-patient-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-patient-grid-four,
  body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-patient-grid-five,
  body.portal-workspace .portal-section .portal-doctor-rx-full-editor .portal-rx-patient-grid-three {
    grid-template-columns: 1fr;
  }
}


/* Final portal palette override */
body.portal-workspace .portal-section :is(a.btn.portal-icon-btn, button.btn.portal-icon-btn):not(.portal-btn-danger):not(.portal-admin-btn-danger){
  background:#0f4f6d !important;
  border-color:#0f4f6d !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
body.portal-workspace .portal-section :is(a.btn.portal-icon-btn, button.btn.portal-icon-btn):not(.portal-btn-danger):not(.portal-admin-btn-danger):is(:hover,:focus-visible,:active){
  background:#0ea5e9 !important;
  border-color:#0ea5e9 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
body.portal-workspace .portal-section :is(a.btn.portal-icon-btn.portal-btn-danger, button.btn.portal-icon-btn.portal-btn-danger, a.btn.portal-icon-btn.portal-admin-btn-danger, button.btn.portal-icon-btn.portal-admin-btn-danger){
  background:#961d13 !important;
  border-color:#961d13 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
body.portal-workspace .portal-section :is(a.btn.portal-icon-btn.portal-btn-danger, button.btn.portal-icon-btn.portal-btn-danger, a.btn.portal-icon-btn.portal-admin-btn-danger, button.btn.portal-icon-btn.portal-admin-btn-danger):is(:hover,:focus-visible,:active){
  background:#b91c1c !important;
  border-color:#b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}


/* Shared polish for cards, spacing, and small screens */
body.portal-workspace .portal-section :is(
  .card,
  .panel,
  .portal-card,
  .portal-section-card,
  .admin-dashboard-card,
  .doctor-dash-card,
  .patient-dash-card,
  .pharmacist-dashboard-card
) {
  border: 1px solid var(--portal-theme-line) !important;
  border-radius: 0 !important;
  box-shadow: 0 12px 28px var(--portal-theme-shadow-soft) !important;
  background: var(--portal-theme-paper) !important;
}

body.portal-workspace .portal-section :is(.portal-form, form) :is(.form-control, input, select, textarea) {
  min-height: 44px;
  border-radius: 12px;
}

body.portal-workspace .portal-section :is(.portal-form, form) textarea.form-control,
body.portal-workspace .portal-section :is(.portal-form, form) textarea {
  min-height: 120px;
}

body.portal-workspace .portal-section :is(
  .portal-grid,
  .admin-dashboard-grid,
  .doctor-dashboard-grid,
  .patient-dashboard-grid,
  .pharmacist-dashboard-grid,
  .row
) {
  align-items: stretch;
}

body.portal-workspace .portal-section :is(table, .table, .admin-dashboard-table) {
  width: 100%;
}

body.portal-workspace .portal-section :is(.table-responsive, .portal-table-wrap, .portal-table-shell) {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
  body.portal-workspace .portal-section {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.portal-workspace .portal-section :is(
    .card,
    .panel,
    .portal-card,
    .portal-section-card,
    .admin-dashboard-card,
    .doctor-dash-card,
    .patient-dash-card,
    .pharmacist-dashboard-card
  ) {
    border-radius: 0 !important;
    padding: 16px !important;
  }

  body.portal-workspace .portal-section :is(.admin-dashboard-row-actions, .doctor-dash-row-actions, .patient-dash-row-actions, .portal-focused-rx-actions) {
    justify-content: stretch !important;
  }

  body.portal-workspace .portal-section :is(.admin-dashboard-row-actions, .doctor-dash-row-actions, .patient-dash-row-actions, .portal-focused-rx-actions) > * {
    flex: 1 1 180px;
  }
}

@media (max-width: 767px) {
  body.portal-workspace .portal-section {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.portal-workspace .portal-section :is(h1, h2, h3) {
    line-height: 1.25;
  }

  body.portal-workspace .portal-section :is(table, .table, .admin-dashboard-table) {
    font-size: 0.92rem;
  }
  body.portal-workspace .portal-section :is(.table-responsive, .portal-table-wrap, .portal-table-shell) :is(table, .table, .admin-dashboard-table) {
    min-width: 680px;
  }

  body.portal-workspace .portal-section :is(.btn, .button, button, input[type="submit"], input[type="button"], a.btn, a.button) {
    min-height: 44px;
  }

  body.portal-workspace .portal-section :is(.portal-form, form) :is(.form-control, input, select, textarea) {
    font-size: 16px !important;
  }
}

/* Global portal polish */
body.portal-workspace {
  background: linear-gradient(180deg, #f5f8fc 0%, #edf3f9 100%);
}

body.portal-workspace .portal-section {
  padding-top: 20px;
  padding-bottom: 28px;
}

body.portal-workspace .portal-container {
  width: min(100%, 1360px);
}

body.portal-workspace .portal-section :is(.card, .panel, .portal-card, .portal-section-card, .admin-dashboard-card, .doctor-dashboard-card, .patient-dashboard-card) {
  border-radius: 0 !important;
  border: 1px solid rgba(15, 79, 109, 0.08) !important;
  box-shadow: 0 16px 34px rgba(15, 79, 109, 0.06) !important;
}

body.portal-workspace .portal-section :is(.table-responsive, .admin-dashboard-table-wrap, .doctor-dashboard-table-wrap, .patient-dashboard-table-wrap) {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.portal-workspace .portal-section :is(table) {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

body.portal-workspace .portal-section :is(th) {
  position: sticky;
  top: 0;
  background: #f5f9fd;
  z-index: 1;
}

body.portal-workspace .portal-section :is(td, th) {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

body.portal-workspace .portal-section :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea, .form-control) {
  border-radius: 12px !important;
  min-height: 44px;
}

body.portal-workspace .portal-section :is(.btn, .button, a.btn, button, input[type="submit"]) {
  border-radius: 12px !important;
}

body.portal-workspace .portal-section :is(.admin-dashboard-toolbar, .doctor-dashboard-toolbar, .patient-dashboard-toolbar, .portal-toolbar, .portal-filter-bar) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

body.portal-workspace .portal-section :is(.admin-dashboard-grid, .doctor-dashboard-grid, .patient-dashboard-grid) {
  gap: 18px !important;
}

@media (max-width: 768px) {
  body.portal-workspace .portal-section {
    padding-top: 14px;
    padding-bottom: 18px;
  }

  body.portal-workspace .portal-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.portal-workspace .portal-section :is(.card, .panel, .portal-card, .portal-section-card, .admin-dashboard-card, .doctor-dashboard-card, .patient-dashboard-card) {
    border-radius: 0 !important;
  }

  body.portal-workspace .portal-section :is(.admin-dashboard-toolbar, .doctor-dashboard-toolbar, .patient-dashboard-toolbar, .portal-toolbar, .portal-filter-bar) {
    flex-direction: column;
    align-items: stretch;
  }

  body.portal-workspace .portal-section :is(.btn, .button, a.btn, button, input[type="submit"]) {
    width: 100%;
    justify-content: center;
  }

  /* Buttons inside table cells must never go full-width or wrap */
  body.portal-workspace .portal-section table td :is(.btn, .button, a.btn, button, input[type="submit"]) {
    width: auto !important;
    white-space: nowrap !important;
  }
}


/* Unified premium dashboard layer */
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace){background:linear-gradient(180deg,#f5f9fc 0%, #edf4f9 100%) !important; color:#16324a;}
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) .portal-container,
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) .doctor-dashboard-main,
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) .patient-dashboard-main{gap:18px !important;}
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(.card,.panel,.portal-card,.portal-section-card,.doctor-dash-panel,.admin-panel,.patient-dash-panel){border-radius:0 !important; background:linear-gradient(180deg,#ffffff 0%, #fbfdff 100%) !important; box-shadow:0 16px 36px rgba(15,23,42,.10) !important;}
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(.table,table){border-collapse:separate !important; border-spacing:0 !important; overflow:hidden;}
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(table thead th){background:#f6fbff !important; color:#0f4f6d !important; border-bottom:1px solid #dbe5ec !important; font-weight:800 !important; letter-spacing:.04em !important; text-transform:uppercase !important; font-size:12px !important;}
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(table td,table th){padding:12px 14px !important;}
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(input[type="text"],input[type="email"],input[type="tel"],input[type="number"],input[type="date"],input[type="search"],select,textarea,.form-control){border:1px solid #cfe0eb !important; border-radius:14px !important; background:#ffffff !important; min-height:44px; box-shadow:none !important;}
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(textarea,.form-control[type="textarea"]){min-height:120px !important;}
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(input,select,textarea,.form-control):focus{border-color:#86c5df !important; box-shadow:0 0 0 3px rgba(15,79,109,.12) !important; outline:none !important;}
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(.btn,.button,button,input[type="submit"],a.btn){border-radius:10px !important; min-height:40px !important; font-weight:700 !important; padding:8px 20px !important; letter-spacing:.01em !important;}
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(.portal-alert,.notice){border-radius:16px !important;}
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(h1,h2,h3,h4){letter-spacing:-.01em;}
body.portal-workspace .od-site-topbar__left,
body.portal-workspace .od-site-nav__item--faq,
body.portal-workspace :is(#home-reviews,#home-faq,#od-global-page-reviews,#od-global-page-faq,.od-global-page-reviews,.od-global-page-faq){
  display:none !important;
}
body.portal-workspace .od-site-topbar__row{
  justify-content:flex-end !important;
}
@media (max-width:820px){body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(.card,.panel,.portal-card,.portal-section-card,.doctor-dash-panel,.admin-panel,.patient-dash-panel){border-radius:0 !important;}body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(table td,table th){padding:10px 12px !important;}}

/* Zero border-radius on all table elements across all portals */
body.portal-workspace .portal-section :is(table, thead, tbody, tfoot, tr, th, td){
  border-radius: 0 !important;
}

/* Right gap on last column of every portal table */
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) table td:last-child,
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) table th:last-child {
  padding-right: 20px !important;
}


/* March 20 portal button contrast */
body.portal-workspace .portal-section :is(.btn--primary,.btn.btn--primary,a.btn--primary,button.btn--primary,.portal-btn-primary,.portal-action-button,.login-submit){color:#ffffff !important;-webkit-text-fill-color:#ffffff !important;}
body.portal-workspace .portal-section :is(.btn--primary,.btn.btn--primary,a.btn--primary,button.btn--primary,.portal-btn-primary,.portal-action-button,.login-submit) :is(span,strong,i,svg){color:#ffffff !important;fill:#ffffff !important;-webkit-text-fill-color:#ffffff !important;}
/* Doctor + pharmacist: all buttons white text */
body.portal-workspace .portal-section:is(.doctor-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(.btn,.button,button,input[type="submit"],input[type="button"],input[type="reset"],a.btn):not(.portal-icon-btn){color:#ffffff !important;-webkit-text-fill-color:#ffffff !important;}
body.portal-workspace .portal-section:is(.doctor-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(.btn,.button,button,input[type="submit"],a.btn) :is(span,strong,i,svg){color:#ffffff !important;fill:#ffffff !important;-webkit-text-fill-color:#ffffff !important;}

/* ── Small-phone overrides (≤480px) ─────────────────────────── */
@media (max-width:480px){
  /* Sidebar full-width on small phones */
  body.portal-workspace :is(#pd-sidebar-nav,#dd-sidebar-nav,#admin-sidebar-nav,#ph-sidebar-nav){
    width:100vw !important; max-width:100vw !important;
  }
  /* Scroll wrappers: reduce table min-width so columns stay readable */
  body.portal-workspace .portal-section :is(.table-responsive,.portal-table-wrap,.portal-table-shell) :is(table,.table,.admin-dashboard-table){
    min-width:480px !important;
  }
  /* Row-action buttons stack vertically */
  body.portal-workspace .portal-section :is(.admin-dashboard-row-actions,.doctor-dash-row-actions,.patient-dash-row-actions,.portal-focused-rx-actions){
    flex-direction:column !important;
  }
  body.portal-workspace .portal-section :is(.admin-dashboard-row-actions,.doctor-dash-row-actions,.patient-dash-row-actions,.portal-focused-rx-actions) > *{
    flex:1 1 100% !important; width:100% !important;
  }
  /* Headings smaller */
  body.portal-workspace .portal-section h1{ font-size:1.3rem !important; }
  body.portal-workspace .portal-section h2{ font-size:1.15rem !important; }
  body.portal-workspace .portal-section h3{ font-size:1.05rem !important; }
  /* Mobile bar padding */
  body.portal-workspace :is(.patient-dashboard-mobilebar,.doctor-dashboard-mobilebar,.admin-dashboard-mobilebar,.pharmacist-dashboard-mobilebar){
    padding-left:12px !important; padding-right:12px !important;
  }
}

/* Portal button text always white — all states */
body.portal-workspace .portal-section a.btn,
body.portal-workspace .portal-section a.btn:link,
body.portal-workspace .portal-section a.btn:visited,
body.portal-workspace .portal-section a.btn:hover,
body.portal-workspace .portal-section a.btn:active,
body.portal-workspace .portal-section button.btn,
body.portal-workspace .portal-section button.btn:hover,
body.portal-workspace .portal-section button.btn:active,
body.portal-workspace .portal-section .portal-focused-form-btn,
body.portal-workspace .portal-section .portal-focused-form-btn:link,
body.portal-workspace .portal-section .portal-focused-form-btn:visited,
body.portal-workspace .portal-section .portal-focused-form-btn:hover,
body.portal-workspace .portal-section .portal-focused-form-btn:active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
}

/* 2026-03-23: Remove dashboard section shell borders */
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(.admin-main > .admin-panel,.doctor-dashboard-main > .doctor-dash-panel,.patient-dashboard-main > .patient-dash-panel){
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  background:transparent !important;
}

body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) :is(.admin-main .admin-panel,.doctor-dashboard-main .doctor-dash-panel,.patient-dashboard-main .patient-dash-panel) :is(.card,.panel,.portal-card,.portal-section-card){
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
}

/* Mobile: edge-to-edge panels — remove section and container horizontal padding */
@media (max-width:980px){
  body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace){
    padding-left:0 !important;
    padding-right:0 !important;
  }
  body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace) > .portal-container{
    padding-left:0 !important;
    padding-right:0 !important;
  }
}

/* Desktop/laptop (>600px): 14px base font size — matching admin portal size */
@media (min-width:601px){
  body.portal-workspace .portal-section:is(
    .admin-dashboard-page--workspace,
    .doctor-dashboard-page--workspace,
    .patient-dashboard-page--workspace,
    .pharmacist-dashboard-page--workspace
  ) *:not(i):not(svg):not(path):not(use):not(script):not(style){
    font-size:14px !important;
  }
}

/* Phone only (≤600px): 9px font size for all portal sections */
@media (max-width:600px){
  body.portal-workspace .portal-section:is(
    .admin-dashboard-page--workspace,
    .doctor-dashboard-page--workspace,
    .patient-dashboard-page--workspace,
    .pharmacist-dashboard-page--workspace
  ) *:not(i):not(svg):not(path):not(use):not(script):not(style){
    font-size:9px !important;
  }
}

/* 2026-03-25: Pharmacist patient treatments action buttons must stay side by side */
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Action"] .pharmacist-action-cell,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-treatments .admin-dashboard-table td[data-label="Action"] .pharmacist-action-cell{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
  width:100% !important;
  white-space:nowrap !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Action"] .pharmacist-action-cell > form,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Action"] .pharmacist-action-cell > .portal-inline-form,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-treatments .admin-dashboard-table td[data-label="Action"] .pharmacist-action-cell > form,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-treatments .admin-dashboard-table td[data-label="Action"] .pharmacist-action-cell > .portal-inline-form{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  flex:0 0 auto !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Action"] .pharmacist-action-cell > a,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Action"] .pharmacist-action-cell > form > .btn,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-treatments .admin-dashboard-table td[data-label="Action"] .pharmacist-action-cell > a,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-treatments .admin-dashboard-table td[data-label="Action"] .pharmacist-action-cell > form > .btn{
  margin:0 !important;
  flex:0 0 auto !important;
}


/* 2026-03-25: Pharmacist invoice action buttons stay in one row and use requested colors */
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Action"] .pharmacist-invoice-action-cell,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-invoices .admin-dashboard-table td[data-label="Action"] .pharmacist-invoice-action-cell{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
  white-space:nowrap !important;
  width:100% !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Action"] .pharmacist-invoice-action-cell > form,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Action"] .pharmacist-invoice-action-cell > .portal-inline-form,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-invoices .admin-dashboard-table td[data-label="Action"] .pharmacist-invoice-action-cell > form,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-invoices .admin-dashboard-table td[data-label="Action"] .pharmacist-invoice-action-cell > .portal-inline-form{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  flex:0 0 auto !important;
  margin:0 !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Action"] .pharmacist-invoice-action-btn,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-invoices .admin-dashboard-table td[data-label="Action"] .pharmacist-invoice-action-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:36px !important;
  padding:0 14px !important;
  border-radius:10px !important;
  font-weight:700 !important;
  white-space:nowrap !important;
  margin:0 !important;
  box-shadow:none !important;
  text-decoration:none !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Action"] .pharmacist-invoice-action-btn:not(.pharmacist-invoice-action-btn--delete),
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-invoices .admin-dashboard-table td[data-label="Action"] .pharmacist-invoice-action-btn:not(.pharmacist-invoice-action-btn--delete){
  background:var(--portal-btn-primary-bg, #0e5a7a) !important;
  border:1px solid var(--portal-btn-primary-bg, #0e5a7a) !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Action"] .pharmacist-invoice-action-btn:not(.pharmacist-invoice-action-btn--delete):is(:hover,:focus-visible,:active),
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-invoices .admin-dashboard-table td[data-label="Action"] .pharmacist-invoice-action-btn:not(.pharmacist-invoice-action-btn--delete):is(:hover,:focus-visible,:active){
  background:var(--portal-btn-primary-hover, #12709a) !important;
  border-color:var(--portal-btn-primary-hover, #12709a) !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Action"] .pharmacist-invoice-action-btn.pharmacist-invoice-action-btn--delete,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-invoices .admin-dashboard-table td[data-label="Action"] .pharmacist-invoice-action-btn.pharmacist-invoice-action-btn--delete{
  background:#dc2626 !important;
  border:1px solid #dc2626 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Action"] .pharmacist-invoice-action-btn.pharmacist-invoice-action-btn--delete:is(:hover,:focus-visible,:active),
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-invoices .admin-dashboard-table td[data-label="Action"] .pharmacist-invoice-action-btn.pharmacist-invoice-action-btn--delete:is(:hover,:focus-visible,:active){
  background:#b91c1c !important;
  border-color:#b91c1c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Payment"] .pharmacist-invoice-payment-text,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-invoices .admin-dashboard-table td[data-label="Payment"] .pharmacist-invoice-payment-text{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:36px !important;
  padding:0 10px !important;
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  background:transparent !important;
  color:#26455c !important;
  font-weight:600 !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Action"] .pharmacist-invoice-action-btn.pharmacist-invoice-action-btn--send,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-invoices .admin-dashboard-table td[data-label="Action"] .pharmacist-invoice-action-btn.pharmacist-invoice-action-btn--send{
  background:#15803d !important;
  border:1px solid #15803d !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-patients .portal-focused-bordered-table td[data-label="Action"] .pharmacist-invoice-action-btn.pharmacist-invoice-action-btn--send:is(:hover,:focus-visible,:active),
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-invoices .admin-dashboard-table td[data-label="Action"] .pharmacist-invoice-action-btn.pharmacist-invoice-action-btn--send:is(:hover,:focus-visible,:active){
  background:#166534 !important;
  border-color:#166534 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}


/* === Portal dashboard gradient overview tiles === */
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-card-section{
  position:relative !important;
  padding:0 !important;
  margin:0 0 18px !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-card-section__head{
  display:flex !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  gap:16px !important;
  margin:0 0 14px !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-card-section__eyebrow{
  margin:0 0 6px !important;
  font-size:12px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
  color:#3b82f6 !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-card-section__head h2{
  margin:0 !important;
  font-size:28px !important;
  line-height:1.1 !important;
  font-weight:800 !important;
  color:#10233d !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-card-section__head p:not(.portal-overview-card-section__eyebrow){
  margin:6px 0 0 !important;
  max-width:760px !important;
  color:#526277 !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr)) !important;
  gap:22px !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile{
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:8px !important;
  min-height:172px !important;
  padding:24px 28px !important;
  border:0 !important;
  border-radius:28px !important;
  overflow:hidden !important;
  text-decoration:none !important;
  color:#fff !important;
  box-shadow:0 20px 42px rgba(15,23,42,.18) !important;
  isolation:isolate !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile::before,
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile::after{
  content:"" !important;
  position:absolute !important;
  border-radius:999px !important;
  pointer-events:none !important;
  z-index:-1 !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile::before{
  width:180px !important;
  height:180px !important;
  right:-18px !important;
  top:-42px !important;
  background:rgba(255,255,255,.18) !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile::after{
  width:110px !important;
  height:110px !important;
  right:88px !important;
  top:-56px !important;
  background:rgba(255,255,255,.10) !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile__eyebrow{
  display:inline-flex !important;
  align-items:center !important;
  min-height:40px !important;
  padding:9px 16px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.18) !important;
  color:rgba(255,255,255,.96) !important;
  font-size:13px !important;
  line-height:1.1 !important;
  font-weight:800 !important;
  letter-spacing:.02em !important;
  text-transform:uppercase !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile__value{
  margin:0 !important;
  font-size:clamp(26px,2.2vw,40px) !important;
  line-height:1.05 !important;
  font-weight:800 !important;
  color:#fff !important;
  letter-spacing:-.03em !important;
  word-break:break-word !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile__meta{
  margin:0 !important;
  font-size:14px !important;
  line-height:1.45 !important;
  font-weight:700 !important;
  color:rgba(255,255,255,.95) !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile__desc{
  margin:0 !important;
  font-size:13px !important;
  line-height:1.45 !important;
  color:rgba(255,255,255,.88) !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--blue{background:linear-gradient(135deg,#2452d4 0%,#4c86ef 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--orange{background:linear-gradient(135deg,#d94b00 0%,#ff6f00 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--purple{background:linear-gradient(135deg,#6d35db 0%,#8b5cf6 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--pink{background:linear-gradient(135deg,#c61a66 0%,#ec4899 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--green{background:linear-gradient(135deg,#19944f 0%,#22c55e 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--teal{background:linear-gradient(135deg,#0f8b8d 0%,#22c1c3 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--cyan{background:linear-gradient(135deg,#0b83b0 0%,#22c7f0 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--indigo{background:linear-gradient(135deg,#4338ca 0%,#6366f1 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--sky{background:linear-gradient(135deg,#1d74c9 0%,#38bdf8 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--violet{background:linear-gradient(135deg,#7c3aed 0%,#a78bfa 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--red{background:linear-gradient(135deg,#dc2626 0%,#f87171 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--slate{background:linear-gradient(135deg,#475569 0%,#7c8aa0 100%) !important;}

@media (max-width:1200px){
  body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width:820px){
  body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-card-section__head h2{
    font-size:24px !important;
  }

  body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile-grid{
    grid-template-columns:minmax(0,1fr) !important;
    gap:16px !important;
  }

  body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile{
    min-height:156px !important;
    padding:20px 22px !important;
    border-radius:24px !important;
  }

  body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile__value{
    font-size:30px !important;
  }
}

/* March 2026: unified square dashboard cards across portals */
body.portal-workspace .portal-section:is(.admin-dashboard-page--workspace,.doctor-dashboard-page--workspace,.patient-dashboard-page--workspace,.pharmacist-dashboard-page--workspace)
  :is(.card,.panel,.portal-card,.portal-section-card,.admin-dashboard-card,.doctor-dashboard-card,.patient-dashboard-card,.pharmacist-dashboard-card,.doctor-dash-panel,.admin-panel,.patient-dash-panel){
  border-radius:0 !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile{
  min-height:168px !important;
  padding:22px 24px !important;
  border:0 !important;
  border-radius:0 !important;
  color:#ffffff !important;
  box-shadow:0 18px 38px rgba(15,23,42,.16) !important;
  overflow:hidden !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile::before,
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile::after{
  display:block !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile__eyebrow{
  min-height:auto !important;
  padding:9px 16px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.18) !important;
  color:rgba(255,255,255,.96) !important;
  font-size:13px !important;
  letter-spacing:.02em !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile__value{
  color:#ffffff !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile__meta,
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile__desc{
  color:rgba(255,255,255,.92) !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) :is(
  .portal-overview-tile--blue,
  .portal-overview-tile--orange,
  .portal-overview-tile--purple,
  .portal-overview-tile--pink,
  .portal-overview-tile--green,
  .portal-overview-tile--teal,
  .portal-overview-tile--cyan,
  .portal-overview-tile--indigo,
  .portal-overview-tile--sky,
  .portal-overview-tile--violet,
  .portal-overview-tile--red,
  .portal-overview-tile--slate
){
  color:#ffffff !important;
}

body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--blue{background:linear-gradient(135deg,#2452d4 0%,#4c86ef 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--orange{background:linear-gradient(135deg,#d94b00 0%,#ff6f00 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--purple{background:linear-gradient(135deg,#6d35db 0%,#8b5cf6 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--pink{background:linear-gradient(135deg,#c61a66 0%,#ec4899 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--green{background:linear-gradient(135deg,#19944f 0%,#22c55e 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--teal{background:linear-gradient(135deg,#0f8b8d 0%,#22c1c3 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--cyan{background:linear-gradient(135deg,#0b83b0 0%,#22c7f0 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--indigo{background:linear-gradient(135deg,#4338ca 0%,#6366f1 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--sky{background:linear-gradient(135deg,#1d74c9 0%,#38bdf8 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--violet{background:linear-gradient(135deg,#7c3aed 0%,#a78bfa 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--red{background:linear-gradient(135deg,#dc2626 0%,#f87171 100%) !important;}
body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile--slate{background:linear-gradient(135deg,#475569 0%,#7c8aa0 100%) !important;}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-admin-inline-row,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-admin-inline-row.portal-admin-inline-row--2,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-admin-inline-row.portal-inline-admin-0001{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:18px !important;
  align-items:start !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-overview-tile-grid--admin-priority{
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:18px !important;
  align-items:stretch !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-overview-tile-grid--admin-priority .portal-overview-tile{
  min-height:168px !important;
  max-height:168px !important;
  height:168px !important;
  border-radius:24px !important;
  padding:16px 18px !important;
  overflow:auto !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-overview-tile-grid--admin-priority .portal-overview-tile__eyebrow{
  min-height:32px !important;
  padding:6px 10px !important;
  font-size:10px !important;
  line-height:1.15 !important;
  overflow-wrap:anywhere !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-overview-tile-grid--admin-priority .portal-overview-tile__value{
  font-size:clamp(16px,1.5vw,24px) !important;
  line-height:1.1 !important;
  word-break:break-word !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-overview-tile-grid--admin-priority .portal-overview-tile__meta{
  font-size:11px !important;
  line-height:1.25 !important;
  overflow-wrap:anywhere !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-overview-tile-grid--admin-priority .portal-overview-tile__desc{
  font-size:11px !important;
  line-height:1.25 !important;
  overflow:hidden !important;
  display:-webkit-box !important;
  -webkit-line-clamp:3 !important;
  -webkit-box-orient:vertical !important;
}

@media (max-width:1200px){
  body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-overview-tile-grid--admin-priority{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media (max-width:820px){
  body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-overview-tile-grid--admin-priority{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width:560px){
  body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-overview-tile-grid--admin-priority{
    grid-template-columns:minmax(0,1fr) !important;
  }
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard > :is(article.card,section,.portal-admin-inline-row){
  margin-inline:0 auto 18px 0 !important;
  width:100% !important;
}


body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-overview-card-section--compact{
  margin-top:0 !important;
}

@media (max-width:820px){
  body.portal-workspace .portal-section :is(.admin-main,.doctor-dashboard-main,.patient-dashboard-main) .portal-overview-tile{
    min-height:148px !important;
    padding:18px 20px !important;
    border-radius:0 !important;
  }
}

/* 2026-03-27: doctor + pharmacist dashboard cards rounded like admin */
body.portal-workspace .portal-section.doctor-dashboard-page--workspace #dd-panel-dashboard :is(
  .card,
  .portal-overview-tile,
  .doctor-dashboard-kpi,
  .doctor-dashboard-next-summary-card,
  .portal-dashboard-booking-summary-card
){
  border-radius:24px !important;
}

@media (max-width:820px){
  body.portal-workspace .portal-section.doctor-dashboard-page--workspace #dd-panel-dashboard :is(
    .card,
    .portal-overview-tile,
    .doctor-dashboard-kpi,
    .doctor-dashboard-next-summary-card,
    .portal-dashboard-booking-summary-card
  ){
    border-radius:20px !important;
  }
}

/* 2026-03-27: remove inner bubble overlays on admin + pharmacist dashboard tiles */
body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-overview-tile::before,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-overview-tile::after,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-dashboard .portal-overview-tile::before,
body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-dashboard .portal-overview-tile::after{
  content:none !important;
  display:none !important;
}

/* 2026-03-27 final dashboard polish: no inner bg-shape, no white wrapper card, fixed spacing */
body.portal-workspace .portal-section :is(
  .admin-dashboard-page--workspace,
  .doctor-dashboard-page--workspace,
  .patient-dashboard-page--workspace
) :is(#admin-panel-dashboard,#dd-panel-dashboard,#pd-panel-dashboard){
  background:#eef3f8 !important;
}

body.portal-workspace .portal-section :is(
  .admin-dashboard-page--workspace,
  .doctor-dashboard-page--workspace,
  .patient-dashboard-page--workspace
) :is(#admin-panel-dashboard,#dd-panel-dashboard,#pd-panel-dashboard) :is(
  .portal-overview-tile,
  .doctor-dashboard-kpi,
  .portal-dashboard-payment-kpi-card,
  .portal-dashboard-booking-summary-card
)::before,
body.portal-workspace .portal-section :is(
  .admin-dashboard-page--workspace,
  .doctor-dashboard-page--workspace,
  .patient-dashboard-page--workspace
) :is(#admin-panel-dashboard,#dd-panel-dashboard,#pd-panel-dashboard) :is(
  .portal-overview-tile,
  .doctor-dashboard-kpi,
  .portal-dashboard-payment-kpi-card,
  .portal-dashboard-booking-summary-card
)::after{
  content:none !important;
  display:none !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard > article.card,
body.portal-workspace .portal-section.doctor-dashboard-page--workspace #dd-panel-dashboard > article.card,
body.portal-workspace .portal-section.patient-dashboard-page--workspace #pd-panel-dashboard > article.card{
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  border-color:transparent !important;
  margin:0 0 12px !important;
  padding:0 !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-dashboard > article.card{
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  border-color:transparent !important;
  margin:0 0 12px !important;
  padding:0 !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-overview-tile-grid,
body.portal-workspace .portal-section.doctor-dashboard-page--workspace #dd-panel-dashboard .portal-overview-tile-grid,
body.portal-workspace .portal-section.patient-dashboard-page--workspace #pd-panel-dashboard .portal-overview-tile-grid{
  gap:12px !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard #portal-dashboard-payment-kpis,
body.portal-workspace .portal-section.doctor-dashboard-page--workspace #dd-panel-dashboard .doctor-dashboard-kpi-grid,
body.portal-workspace .portal-section.patient-dashboard-page--workspace #pd-panel-dashboard .patient-dash-kpis{
  gap:12px !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #dd-panel-dashboard :is(
  .portal-overview-tile-grid,
  .doctor-dashboard-kpi-grid
){
  gap:12px !important;
}

/* 2026-03-27 hotfix: dashboard shell + spacing parity (admin/doctor/pharmacist/patient) */
body.portal-workspace .portal-section :is(
  .admin-dashboard-page--workspace,
  .doctor-dashboard-page--workspace,
  .pharmacist-dashboard-page--workspace,
  .patient-dashboard-page--workspace
) :is(#admin-panel-dashboard,#dd-panel-dashboard,#pd-panel-dashboard){
  background:#eef3f8 !important;
}

body.portal-workspace .portal-section :is(
  .admin-dashboard-page--workspace,
  .doctor-dashboard-page--workspace,
  .pharmacist-dashboard-page--workspace,
  .patient-dashboard-page--workspace
) :is(#admin-panel-dashboard,#dd-panel-dashboard,#pd-panel-dashboard) > article.card{
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  border-color:transparent !important;
  margin:0 0 14px !important;
  padding:0 !important;
}

body.portal-workspace .portal-section :is(
  .admin-dashboard-page--workspace,
  .doctor-dashboard-page--workspace,
  .pharmacist-dashboard-page--workspace,
  .patient-dashboard-page--workspace
) :is(#admin-panel-dashboard,#dd-panel-dashboard,#pd-panel-dashboard) .portal-overview-card-section{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  margin:0 !important;
  padding:0 !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard .portal-overview-tile-grid,
body.portal-workspace .portal-section.doctor-dashboard-page--workspace #dd-panel-dashboard .portal-overview-tile-grid,
body.portal-workspace .portal-section.pharmacist-dashboard-page--workspace #dd-panel-dashboard .portal-overview-tile-grid,
body.portal-workspace .portal-section.patient-dashboard-page--workspace #pd-panel-dashboard .portal-overview-tile-grid{
  column-gap:16px !important;
  row-gap:16px !important;
}

body.portal-workspace .portal-section.admin-dashboard-page--workspace #admin-panel-dashboard #portal-dashboard-payment-kpis,
body.portal-workspace .portal-section.doctor-dashboard-page--workspace #dd-panel-dashboard .doctor-dashboard-kpi-grid,
body.portal-workspace .portal-section.pharmacist-dashboard-page--workspace #dd-panel-dashboard .doctor-dashboard-kpi-grid,
body.portal-workspace .portal-section.patient-dashboard-page--workspace #pd-panel-dashboard .patient-dash-kpis{
  column-gap:16px !important;
  row-gap:16px !important;
}

/* 2026-03-27 hotfix follow-up: remove dashboard white wrapper on doctor + pharmacist shell */
body.portal-workspace .portal-section.doctor-dashboard-page--workspace #dd-panel-dashboard{
  background:#eef3f8 !important;
}

body.portal-workspace .portal-section.pharmacist-dashboard-page--workspace #dd-panel-dashboard{
  background:#eef3f8 !important;
  padding-left:5px !important;
  padding-right:5px !important;
}

body.portal-workspace .portal-section.doctor-dashboard-page--workspace #dd-panel-dashboard > :is(article.card,.card){
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  border:0 !important;
  margin:0 0 16px !important;
  padding:0 !important;
}

body.portal-workspace .portal-section.doctor-dashboard-page--workspace #dd-panel-dashboard :is(.doctor-dashboard-overview-section,.portal-overview-card-section){
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
}

body.portal-workspace .portal-section.doctor-dashboard-page--workspace #dd-panel-dashboard :is(.portal-overview-tile-grid,.doctor-dashboard-kpi-grid){
  column-gap:16px !important;
  row-gap:16px !important;
}

body.portal-workspace .portal-section.doctor-dashboard-page--workspace #dd-panel-dashboard .portal-overview-tile__eyebrow,
body.portal-workspace .portal-section.pharmacist-dashboard-page--workspace #dd-panel-dashboard .portal-overview-tile__eyebrow{
  min-height:32px !important;
  padding:6px 10px !important;
  font-size:10px !important;
  line-height:1.12 !important;
}

body.portal-workspace .portal-section.doctor-dashboard-page--workspace #dd-panel-dashboard .portal-overview-tile__value,
body.portal-workspace .portal-section.pharmacist-dashboard-page--workspace #dd-panel-dashboard .portal-overview-tile__value{
  font-size:clamp(14px,1.3vw,20px) !important;
  line-height:1.05 !important;
}

body.portal-workspace .portal-section.doctor-dashboard-page--workspace #dd-panel-dashboard .portal-overview-tile__meta,
body.portal-workspace .portal-section.pharmacist-dashboard-page--workspace #dd-panel-dashboard .portal-overview-tile__meta{
  font-size:8px !important;
  line-height:1.2 !important;
  font-weight:700 !important;
}

body.portal-workspace .portal-section.doctor-dashboard-page--workspace #dd-panel-dashboard .portal-overview-tile__desc,
body.portal-workspace .portal-section.pharmacist-dashboard-page--workspace #dd-panel-dashboard .portal-overview-tile__desc{
  font-size:7px !important;
  line-height:1.18 !important;
  overflow:hidden !important;
  display:-webkit-box !important;
  -webkit-line-clamp:3 !important;
  -webkit-box-orient:vertical !important;
}
