
.content-header h4,
.content-header .mb-0 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.dashboard-hero {
    padding: 1rem 1.15rem;
    margin-bottom: 0.95rem;
    border-radius: 0;
    border: 1px solid #d7e4f5;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 26%),
        linear-gradient(135deg, #fdfefe, #f1f7ff 55%, #eff5ff 100%);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.95rem;
}

.hero-eyebrow {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: var(--app-primary);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dashboard-hero h2 {
    margin: 0 0 0.3rem;
    font-size: clamp(1.18rem, 1.02rem + 0.75vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.dashboard-hero p {
    margin: 0;
    color: var(--app-text-muted);
    max-width: 42rem;
    font-size: 0.82rem;
}

.dashboard-hero-compact {
    padding: 0.95rem 1.05rem;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 13.5rem;
}

.hero-meta-inline {
    min-width: auto;
}

.hero-meta span {
    min-height: 2.55rem;
    padding: 0.58rem 0.8rem;
    border-radius: 0rem;
    border: 1px solid #d7e4f5;
    background: rgba(255, 255, 255, 0.86);
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--app-text);
}

.hero-meta-inline span i {
    color: var(--app-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.95rem;
}

.stat-card,
.dashboard-card,
.surface-card,
.main-content .card.shadow {
    border-radius: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.stat-card,
.dashboard-card {
    padding: 1rem;
}

.stat-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-card .card-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.card-content .card-info {
    flex: 1 1 auto;
}

.stat-label,
.card-title {
    margin: 0;
    color: var(--app-text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stat-value,
.card-number {
    margin: 0.42rem 0 0;
    font-size: clamp(1.3rem, 1rem + 0.75vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.stat-meta,
.card-subtitle {
    margin: 0.3rem 0 0;
    color: var(--app-text-muted);
    font-size: 0.76rem;
}

.stat-icon,
.card-icon {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.tone-primary .stat-icon,
.green-money-icon,
.btn-primary,
.bg-primary {
    background: linear-gradient(135deg, #0f766e, #0c5e58) !important;
}

.tone-teal .stat-icon,
.green-icon,
.bg-success {
    background: linear-gradient(135deg, #059669, #10b981) !important;
}

.tone-blue .stat-icon,
.purple-icon {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
}

.btn-warning,
.bg-warning,
.orange-icon {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
}

.bg-danger,
.pink-icon {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 0.95fr);
    gap: 0.8rem;
    margin-bottom: 0rem;
}

.surface-stack {
    display: grid;
    gap: 0.8rem;
}

.surface-card,
.surface-card-lg {
    overflow: hidden;
}

.surface-head {
    padding: 0.95rem 1rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.surface-head h3 {
    margin: 0 0 0.14rem;
    font-size: 0.98rem;
    font-weight: 800;
}

.surface-overline {
    display: inline-flex;
    margin-bottom: 0.3rem;
    color: var(--app-primary);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.surface-head p {
    margin: 0;
    color: var(--app-text-muted);
    font-size: 0.75rem;
}

.surface-tag-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.surface-tag {
    min-height: 2rem;
    padding: 0.36rem 0.7rem;
    border: 1px solid var(--app-border);
    border-radius: 0rem;
    display: inline-flex;
    align-items: center;
    background: var(--app-surface-soft);
    color: var(--app-text);
    font-size: 0.72rem;
    font-weight: 800;
}

.table-responsive {
    padding: 0.75rem 0.95rem 0.95rem;
}

.table-shell {
    border: 1px solid var(--app-border);
    border-radius: 0;
    background: #fff;
    overflow: hidden;
}

.app-table-wrap {
    padding: 0;
    overflow: auto;
}

.table {
    margin-bottom: 0;
    font-size: 0.82rem;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: #f7fbff;
    --bs-table-hover-bg: #f1f7ff;
}

.table thead th,
.data-table thead th,
.table-header-custom {
    border: 0;
    padding: 0.72rem 0.62rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--app-text-muted);
    background: var(--app-surface-muted);
}

.table tbody td,
.data-table tbody td {
    padding: 0.78rem 0.62rem;
    border-color: #e3ebf5;
    vertical-align: middle;
    font-weight: 600;
}

.table td span,
.data-table td span,
.mini-list-item span,
.load-copy span,
.metric-row span {
    display: block;
    margin-top: 0.12rem;
    color: var(--app-text-muted);
    font-size: 0.72rem;
}

.app-table {
    min-width: 980px;
}

.app-table thead th {
    position: sticky;
    top: calc(var(--header-height) + 1.55rem);
    z-index: 2;
    background: #f5f8fc;
    box-shadow: inset 0 -1px 0 #dde7f3;
}

.app-table tbody tr:hover td {
    background: #f8fbff;
}

.app-table td,
.app-table th {
    vertical-align: middle;
}

.app-table .col-wrap {
    min-width: 10rem;
    white-space: normal;
}

.action-cell {
    width: 1%;
    white-space: nowrap;
}

.table-action-group {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.icon-action-btn {
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border-radius: 0rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-action-btn i {
    font-size: 0.82rem;
}

.icon-action-btn:hover,
.icon-action-btn:focus-visible {
    transform: translateY(-1px);
}

.filter-summary {
    margin: 0 0 0.85rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--app-border);
    border-radius: 0;
    background: var(--app-surface-soft);
}

.filter-summary h6 {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--app-text);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.95rem;
    padding: 0.28rem 0.62rem;
    border: 1px solid #cfe0f4;
    border-radius: 0rem;
    background: #fff;
    color: var(--app-blue-dark);
    font-size: 0.72rem;
    font-weight: 800;
}

.metric-list,
.mini-list,
.load-list,
.quick-actions {
    padding: 0.85rem 1rem 1rem;
}

.metric-row,
.mini-list-item,
.load-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.mini-list-item {
    padding: 0.12rem 0;
}

.metric-row + .metric-row,
.mini-list-item + .mini-list-item,
.load-row + .load-row {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e8eef7;
}

.mini-list-item > div:first-of-type {
    flex: 1 1 auto;
}

.status-scheduled {
    background: #eff6ff;
    color: var(--app-blue);
}

.status-completed {
    background: #ecfdf5;
    color: var(--app-success);
}

.status-cancelled {
    background: #fef2f2;
    color: var(--app-danger);
}

.load-copy {
    min-width: 7.5rem;
}

.load-bar {
    flex: 1 1 auto;
    min-width: 5rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #e6eef8;
    overflow: hidden;
}

.load-bar span {
    display: block;
    height: 100%;
    margin: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #2563eb);
}

.load-value {
    min-width: 1.55rem;
    text-align: right;
}

.quick-actions {
    display: grid;
    gap: 0.55rem;
}

.quick-action {
    min-height: 2.65rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--app-border);
    border-radius: 0rem;
    background: var(--app-surface-soft);
    color: var(--app-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.quick-action:hover {
    color: var(--app-blue);
    background: #eff6ff;
}

.empty-state {
    padding: 0.85rem !important;
    color: var(--app-text-muted);
    text-align: center;
}


.modal-dialog {
    margin: 1.5rem auto;
}

.modal-content {
    border: 1px solid var(--app-border);
    border-radius: 0rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, #0d2042, #12396b 55%, #0f766e 100%);
    color: #fff;
}

.modal-title {
    font-size: 0.92rem;
    font-weight: 800;
}

.modal-body {
    padding: 1rem;
    font-size: 0.82rem;
}

.modal-footer {
    border-top: 1px solid #e8eef7;
    padding: 0.85rem 1rem;
}

.modal-header .btn-close {
    filter: invert(1) brightness(200%);
}

.app-modal .modal-content {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.app-modal .modal-body .container-fluid {
    padding: 0;
}

.modal-detail-list {
    display: grid;
    gap: 0.55rem;
}

.modal-detail-row {
    padding: 0.72rem 0.85rem;
    border: 1px solid var(--app-border);
    border-radius: 0rem;
    background: var(--app-surface-soft);
    display: grid;
    grid-template-columns: minmax(9rem, 11rem) minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.modal-detail-label {
    color: var(--app-text);
    font-weight: 800;
}

.modal-detail-value {
    color: var(--app-text-muted);
    font-weight: 700;
    word-break: break-word;
}

.modal-form-footer {
    border-top: 1px solid #e8eef7;
    padding: 0.85rem 1rem 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.pagination {
    gap: 0.35rem;
    margin-bottom: 0;
}

.page-item .page-link {
    min-width: 2.15rem;
    height: 2.15rem;
    border: 1px solid var(--app-border);
    border-radius: 0rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-text);
    background: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.page-item.active .page-link {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #0f766e, #2563eb);
}

.slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    margin: 0.2rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: var(--app-blue);
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
}

.slot:hover,
.slot.active,
.slot.selected {
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #2563eb);
}

.slot.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.available-date a {
    background: #dcfce7 !important;
    color: #166534 !important;
    border-radius: 999px !important;
}

.unavailable-date a {
    background: #e2e8f0 !important;
    color: #64748b !important;
    border-radius: 999px !important;
}

.ui-autocomplete,
.ui-datepicker {
    z-index: 9999 !important;
}

.ui-datepicker {
    width: 100% !important;
    padding: 0.6rem !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 0rem !important;
    background: #fff !important;
    box-shadow: var(--shadow-soft);
}

.ui-datepicker .ui-datepicker-header {
    border: 0 !important;
    border-radius: 0rem !important;
    background: #eff6ff !important;
}

.ui-datepicker td a,
.ui-datepicker td span {
    border-radius: 999px !important;
    text-align: center !important;
}

.ui-datepicker td a.ui-state-active {
    color: #fff !important;
    background: linear-gradient(135deg, #0f766e, #2563eb) !important;
}

.ui-autocomplete {
    padding: 0.35rem !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 0rem !important;
    background: #fff !important;
    box-shadow: var(--shadow-soft);
}

.ui-menu .ui-menu-item-wrapper {
    padding: 0.55rem 0.72rem;
    border-radius: 0rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.ui-state-active,
.ui-widget-content .ui-state-active {
    border: 0 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #0f766e, #2563eb) !important;
}

.main-content .container.mt-5 {
    max-width: none;
    margin-top: 0 !important;
    padding: 0;
}

.main-content .card.shadow {
    padding: 1rem !important;
}

.main-content .card.shadow h3 {
    font-size: 1.22rem;
    font-weight: 800;
}

.main-content .card.shadow .badge.fs-6 {
    font-size: 0.74rem !important;
}

.notice-display {
    color: var(--app-text-muted);
    font-size: 0.72rem;
    text-align: right;
}

.main-content .bg-light {
    background: var(--app-surface-muted) !important;
    border-color: var(--app-border) !important;
}

.material-symbols-rounded {
    font-weight: 400;
    font-style: normal;
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

.header-chip-plan {
    color: #7c3aed;
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.sidebar-section + .sidebar-section {
    margin-top: 0.2rem;
}

.sidebar-section-title {
    display: block;
    padding: 0 0.2rem;
    margin-bottom: 0.45rem;
    color: rgba(137, 240, 220, 0.82);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sidebar-plan {
    display: inline-flex;
    margin-top: 0.2rem;
    color: #89f0dc;
    font-weight: 700;
}

.saas-stack {
    display: grid;
    gap: 0.8rem;
}

.saas-grid {
    padding: 0.95rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.saas-grid-create {
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
}

.saas-grid-tight {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.saas-grid-hospital {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.saas-card {
    padding: 1rem;
    border: 1px solid var(--app-border);
    border-radius: 0rem;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    box-shadow: var(--shadow-soft);
}

.saas-card-link {
    color: inherit;
    text-decoration: none;
}

.saas-card-link:hover {
    color: var(--app-blue);
    transform: translateY(-1px);
}

.saas-card-wide {
    min-width: 0;
}

.saas-card-span {
    grid-column: 1 / -1;
}

.saas-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.55rem;
}

.saas-card h4 {
    margin: 0.28rem 0 0;
    font-size: 1rem;
    font-weight: 800;
}

.saas-card p {
    margin: 0;
    color: var(--app-text-muted);
    font-size: 0.79rem;
}

.saas-metric-row {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    color: var(--app-text);
    font-size: 0.78rem;
    font-weight: 700;
}

.saas-form-stack {
    display: grid;
    gap: 0.75rem;
}

.field-grid {
    display: grid;
    gap: 0.75rem;
}

.field-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-note {
    margin-top: -0.15rem;
    color: var(--app-text-muted);
    font-size: 0.73rem;
    font-weight: 700;
}

.helper-list,
.credential-list {
    display: grid;
    gap: 0.65rem;
}

.helper-item,
.credential-item {
    padding: 0.82rem 0.88rem;
    border: 1px solid var(--app-border);
    border-radius: 0rem;
    background: var(--app-surface-soft);
}

.helper-item strong,
.credential-item strong {
    display: block;
    font-size: 0.82rem;
}

.helper-item span,
.credential-item span {
    display: block;
    margin-top: 0.18rem;
    color: var(--app-text-muted);
    font-size: 0.73rem;
}

.module-toggle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.module-toggle {
    padding: 0.75rem 0.8rem;
    border: 1px solid var(--app-border);
    border-radius: 0rem;
    background: #fff;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
}

.module-toggle.active {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.module-toggle input {
    margin-top: 0.2rem;
}

.module-toggle strong,
.permission-toggle strong {
    display: block;
    font-size: 0.82rem;
}

.module-toggle small,
.permission-toggle small {
    display: block;
    color: var(--app-text-muted);
    font-size: 0.72rem;
}

.feature-badge-wrap {
    padding: 0 1rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0rem;
    background: #eff6ff;
    color: var(--app-blue-dark);
    font-size: 0.72rem;
    font-weight: 800;
}

.role-chip-row {
    margin-bottom: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.role-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--app-border);
    border-radius: 0rem;
    background: #fff;
    color: var(--app-text);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
}

.role-chip.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #0f766e, #2563eb);
}

.permission-form {
    padding: 0 1rem 1rem;
}

.permission-category + .permission-category {
    margin-top: 1.1rem;
}

.permission-category h4 {
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
    font-weight: 800;
}

.permission-grid {
    display: grid;
    gap: 0.65rem;
}

.permission-toggle {
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--app-border);
    border-radius: 0rem;
    background: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.8rem;
    align-items: center;
}

.permission-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    font-weight: 800;
}

body.app-page.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

body.app-page.sidebar-collapsed .sidebar .sidebar-role,
body.app-page.sidebar-collapsed .sidebar .sidebar-kicker,
body.app-page.sidebar-collapsed .sidebar .sidebar-plan,
body.app-page.sidebar-collapsed .sidebar .sidebar-caption,
body.app-page.sidebar-collapsed .sidebar .sidebar-footer,
body.app-page.sidebar-collapsed .sidebar .sidebar-section-title,
body.app-page.sidebar-collapsed .sidebar .nav-link span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

body.app-page.sidebar-collapsed .sidebar .nav-link {
    justify-content: center;
}

body.app-page.sidebar-collapsed .main-content {
    margin-left: calc(var(--sidebar-collapsed-width) + 0.85rem) !important;
    width: calc(100% - var(--sidebar-collapsed-width) - 0.85rem) !important;
}

@media (max-width: 1199.98px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .app-header {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }
}

@media (max-width: 991.98px) {
    body.app-page {
        padding: 0.75rem;
    }

    .app-header {
        inset: 0.75rem 0.75rem auto;
    }

    .sidebar {
        width: min(17rem, calc(100vw - 1.5rem));
        top: calc(var(--header-height) + 1.65rem);
        left: 0.75rem;
        transform: translateX(-115%);
    }

    body.app-page.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .main-content,
    body.app-page.sidebar-collapsed .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0.05rem 0 0.85rem !important;
    }

    .module-toggle-grid,
    .saas-grid,
    .saas-grid-tight,
    .saas-grid-create,
    .saas-grid-hospital,
    .field-grid-2,
    .field-grid-3,
    .field-grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .app-header-main,
    .dashboard-hero,
    .app-header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-meta {
        min-width: 0;
    }

    .user-profile-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .content-header {
        align-items: flex-start;
    }

    .surface-tag-row {
        justify-content: flex-start;
    }

    .modal-detail-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- 2026-03-31 shell cleanup overrides --- */

.app-table-wrap {
    overflow: auto;
}

.app-table thead th {
    top: calc(var(--header-height) + 1.85rem);
    z-index: 6;
}

.table-action-group {
    gap: 0.3rem;
}

.icon-action-btn {
    width: 2rem;
    height: 2rem;
}

.action-cell {
    min-width: 8.75rem;
}

.content-header.compact-header {
    margin-bottom: 0.85rem !important;
}

.section-intro {
    display: grid;
    gap: 0.18rem;
}

.section-intro p {
    margin: 0;
    color: var(--app-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.modal-dialog {
    margin: calc(var(--header-height) + 1.95rem) auto 1rem;
}

.app-modal .modal-dialog.modal-dialog-centered {
    align-items: flex-start;
    min-height: calc(100% - (var(--header-height) + 3rem));
}

.modal-backdrop.show {
    opacity: 0.45;
}

.patient-hero {
    align-items: flex-start;
}

.patient-hero-pills {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.patient-hero-actions {
    justify-content: flex-end;
    align-items: center;
}

.patient-dashboard-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 0.95fr);
}

.patient-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
}

.note-list {
    padding: 0.85rem 1rem 1rem;
}

.note-item {
    min-height: auto;
    align-items: flex-start;
}

.note-item span {
    display: block;
    margin-top: 0.25rem;
    color: var(--app-text-muted);
    font-size: 0.74rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.module-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.95rem;
}

.module-summary-card {
    padding: 0.95rem 1rem;
    border: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.module-summary-card strong {
    display: block;
    margin-top: 0.32rem;
    font-size: 1rem;
}

.module-summary-card span {
    color: var(--app-text-muted);
    font-size: 0.74rem;
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    .app-header {
        inset: 0.9rem 0.9rem auto 0.9rem;
    }

    body.app-page.sidebar-collapsed .app-header {
        inset: 0.9rem 0.9rem auto 0.9rem;
    }

    .brand-lockup-inline {
        display: inline-flex;
    }

    .module-summary-grid,
    .patient-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .app-shell {
        padding-top: calc(var(--header-height) + 2.4rem);
    }

    .app-header {
        inset: 0.75rem 0.75rem auto 0.75rem;
    }

    .app-header-main.app-header-main-unified {
        padding: 0.8rem 0.9rem;
    }

    .app-table thead th {
        top: calc(var(--header-height) + 1.65rem);
    }
}

@media (max-width: 767.98px) {
    .app-shell {
        padding-top: calc(var(--header-height) + 6.25rem);
    }

    .app-header-main.app-header-main-unified,
    .app-header-leading,
    .app-header-actions,
    .patient-hero-actions,
    .module-summary-grid,
    .patient-detail-grid {
        grid-template-columns: 1fr;
    }

    .app-header-leading,
    .app-header-actions,
    .patient-hero-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .brand-lockup-inline {
        display: inline-flex;
    }
}


/* --- 2026-03-31 datatable and shell metric overrides --- */
:root {
    --header-stack-height: calc(var(--header-height) + 18px);
    --sticky-table-top: calc(var(--header-stack-height) + 10px);
}

.app-shell {
    padding-top: calc(var(--header-stack-height) + 1rem) !important;
}

.sidebar {
    top: calc(var(--header-stack-height) + 0.85rem) !important;
}

.app-table thead th,
.data-table thead th {
    top: var(--sticky-table-top) !important;
}

.modal-dialog {
    margin-top: calc(var(--header-stack-height) + 1rem) !important;
}

.field-span-2 {
    grid-column: 1 / -1;
}

.dataTables_wrapper {
    padding: 0.95rem;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--app-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 2.5rem;
    margin-left: 0.45rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--app-border);
    border-radius: 0rem;
    background: #fff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    margin-left: 0.25rem;
    padding: 0.3rem 0.6rem !important;
    border-radius: 0rem !important;
    border: 1px solid var(--app-border) !important;
    background: #fff !important;
    color: var(--app-text) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border-color: transparent !important;
    background: linear-gradient(135deg, #0f766e, #2563eb) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #eff6ff !important;
    color: var(--app-blue-dark) !important;
}

.dataTables_wrapper .dataTables_scroll {
    overflow: visible;
}

@media (max-width: 991.98px) {
    .sidebar {
        top: calc(var(--header-stack-height) + 0.5rem) !important;
    }
}

/* --- 2026-03-31 rich workspace and datatable overrides --- */
.workspace-hero,
.dashboard-hero {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 24%),
        radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.12), transparent 22%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.95) 55%, rgba(239, 246, 255, 0.92));
}

.workspace-dashboard-grid,
.ops-module-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(21rem, 0.9fr);
}

.module-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-card-rich {
    position: relative;
    overflow: hidden;
    min-height: 14.5rem;
    border: 1px solid rgba(216, 227, 241, 0.95);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 22%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.96));
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.module-card-rich:hover {
    transform: translateY(-3px);
    border-color: #c7d8ef;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.module-card-rich .saas-card-head i {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(37, 99, 235, 0.14));
    color: var(--app-blue-dark);
}

.module-card-rich .feature-badge-wrap {
    gap: 0.35rem;
}

.module-card-rich .feature-badge {
    background: rgba(255, 255, 255, 0.92);
}

.app-table-wrap > .dataTables_wrapper {
    padding: 0.85rem 0.95rem 0.95rem;
}

.app-table-wrap > .dataTables_wrapper:first-child {
    padding-top: 0.85rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    margin-left: 0 !important;
}

.dataTables_wrapper .dataTables_filter input {
    min-width: 14rem;
}

.dataTables_wrapper table.dataTable thead th,
.dataTables_wrapper table.app-table thead th,
.dataTables_wrapper table.data-table thead th {
    position: static !important;
    top: auto !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_scrollHead {
    border: 1px solid var(--app-border);
    border-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    background: #f5f8fc;
}

.dataTables_wrapper .dataTables_scrollBody {
    border: 1px solid var(--app-border);
    border-top: 0;
    border-radius: 0rem;
    background: #fff;
}

.dataTables_wrapper .dataTables_scrollHeadInner,
.dataTables_wrapper table.dataTable {
    width: 100% !important;
}

.dataTables_wrapper .dataTables_empty {
    padding: 1.2rem !important;
}

@media (max-width: 1199.98px) {
    .workspace-dashboard-grid,
    .ops-module-grid,
    .module-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Logo color system (DD Cloud Health purple) applied across shared UI components */


.dashboard-hero,
.module-hero,
.product-management-hero,
.appointment-management-hero {
    background:
        linear-gradient(135deg, rgba(117, 113, 249, 0.18), rgba(95, 88, 236, 0.08)),
        #fff;
    border-color: rgba(117, 113, 249, 0.2) !important;
}

.stat-card.tone-primary .stat-icon,
.stat-card.tone-teal .stat-icon,
.stat-card.tone-blue .stat-icon,
.table-action-group .btn-outline-primary,
.table-action-group .icon-action-btn.btn-outline-primary {
    color: var(--brand-primary) !important;
    border-color: rgba(117, 113, 249, 0.24) !important;
    background: rgba(117, 113, 249, 0.08) !important;
}

a:hover,
.link-primary,
.app-table-wrap a {
    color: var(--brand-primary-dark) !important;
}

@media (max-width: 767.98px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .dataTables_wrapper .dataTables_filter input {
        min-width: 0;
        width: 100%;
    }
}

/* --- 2026-04-01 enterprise depth surfaces --- */
.module-feature-grid,
.catalog-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.95rem;
}

.insight-card {
    overflow: hidden;
}

.calendar-board,
.catalog-grid,
.metric-chip-grid {
    padding: 0.95rem 1rem 1rem;
}

.calendar-board,
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.75rem;
}

.calendar-day,
.catalog-card,
.metric-chip,
.schedule-slot {
    border: 1px solid var(--app-border);
    border-radius: 0rem;
    background: #fff;
}

.calendar-day {
    padding: 0.8rem;
}

.calendar-day strong {
    display: block;
    margin-bottom: 0.65rem;
}

.schedule-slot {
    padding: 0.72rem;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.schedule-slot + .schedule-slot {
    margin-top: 0.55rem;
}

.schedule-slot h4,
.catalog-card h4 {
    margin: 0.28rem 0 0.2rem;
    font-size: 0.9rem;
    font-weight: 800;
}

.schedule-slot p,
.catalog-card p {
    margin: 0;
    color: var(--app-text-muted);
    font-size: 0.76rem;
}

.schedule-slot span,
.catalog-meta-list span {
    display: block;
    margin-top: 0.22rem;
    color: var(--app-text-muted);
    font-size: 0.72rem;
}

.slot-time {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--app-blue-dark);
}

.schedule-slot.is-conflicted,
.conflict-item {
    border-color: #f5c2c7;
    background: #fff7f7;
}

.metric-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.7rem;
}

.metric-chip {
    padding: 0.85rem 0.9rem;
}

.metric-chip strong {
    display: block;
    font-size: 1.1rem;
}

.metric-chip span {
    color: var(--app-text-muted);
    font-size: 0.72rem;
}

.catalog-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.4rem 1rem 3rem;
}

body.public-catalog-page {
    padding: 0;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 22%),
        radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.1), transparent 20%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.catalog-hero,
.catalog-section-card,
.catalog-stat-card {
    border-radius: 0rem;
}

.catalog-hero {
    padding: 1.25rem 1.35rem;
    margin-bottom: 0.95rem;
    border: 1px solid #d7e4f5;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.95));
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.catalog-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.95rem;
}

.catalog-card {
    padding: 0.95rem;
    box-shadow: var(--shadow-soft);
}

.catalog-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}

.catalog-meta-list {
    margin-top: 0.55rem;
}

.catalog-related-link {
    text-decoration: none;
    color: inherit;
}

.catalog-related-link:hover {
    background: #eff6ff;
}

@media (max-width: 991.98px) {
    .module-feature-grid,
    .catalog-detail-grid,
    .catalog-stats {
        grid-template-columns: 1fr;
    }
}

/* --- 2026-04-01 patient profile, SaaS shell, and shared polish overrides --- */

.surface-card,
.dashboard-card,
.saas-card,
.stat-card {
    border-color: rgba(191, 219, 254, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.dashboard-hero,
.workspace-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.95));
    border: 1px solid rgba(191, 219, 254, 0.88);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.08);
}

.app-table-wrap > .dataTables_wrapper,
.hospital-table-shell,
.patient-identity-card {
    background: transparent;
}

.patient-identity-grid {
    display: grid;
    grid-template-columns: 180px 210px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.patient-avatar-card,
.patient-qr-panel,
.finance-meter-card,
.patient-vital-pill {
    border: 1px solid #dbe7f5;
    border-radius: 0px;
    background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
}

.patient-avatar-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 20px;
}

.patient-avatar-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #2563eb);
    box-shadow: 0 16px 24px rgba(37, 99, 235, 0.24);
}

.patient-qr-panel {
    padding: 18px;
    text-align: center;
}

.patient-qr-image {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 0px;
    background: #fff;
    padding: 8px;
    border: 1px solid #dbe7f5;
}

.patient-vitals-grid,
.patient-finance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.patient-vital-pill,
.finance-meter-card {
    padding: 16px 18px;
}

.patient-vital-pill span,
.finance-meter-card span {
    display: block;
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.patient-vital-pill strong,
.finance-meter-card strong {
    font-size: 18px;
    color: #132036;
}

.patient-chart-list {
    display: grid;
    gap: 12px;
}

.patient-chart-row {
    display: grid;
    grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.patient-chart-copy span {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.hospital-table-shell .surface-tag-row {
    justify-content: flex-end;
}

.hospital-table-shell .btn {
    white-space: nowrap;
}

@media (max-width: 1199px) {
    .patient-identity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .patient-identity-grid .metric-list {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .patient-identity-grid,
    .patient-vitals-grid,
    .patient-finance-grid,
    .patient-chart-row {
        grid-template-columns: 1fr;
    }

    .patient-avatar-card,
    .patient-qr-panel {
        min-height: auto;
    }
}

/* --- 2026-04-01 shell stability fixes --- */

.app-table-wrap.table-empty-wrap {
    padding: 0.95rem;
}

.app-table-wrap .table-empty-state {
    margin-bottom: 0.9rem;
    padding: 1.15rem 1rem;
    border: 1px dashed var(--app-border);
    border-radius: 0rem;
    background: var(--app-surface-soft);
    color: var(--app-text-muted);
    font-weight: 700;
    text-align: center;
}

.modal-backdrop {
    z-index: 1990 !important;
}

.modal {
    z-index: 2000 !important;
}

.app-modal .modal-dialog {
    margin: max(1rem, calc(var(--header-stack-height, var(--header-height)) - 3rem)) auto 1rem;
    max-width: min(960px, calc(100vw - 2rem));
}

.app-modal .modal-content {
    overflow: hidden;
    border-radius: 0rem;
}

.ui-autocomplete {
    z-index: 2105 !important;
    max-height: 15rem;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--app-border);
    border-radius: 0rem;
    box-shadow: var(--shadow-card);
}

.patient-qr-image,
.qr-card img {
    display: block;
    margin: 0 auto;
}

.patient-qr-caption {
    margin-top: 0.65rem;
    color: var(--app-text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 1199.98px) {
    body.app-page .app-header,
    body.app-page.sidebar-collapsed .app-header {
        inset: 0.9rem 0.9rem auto 0.9rem !important;
    }

    body.app-page .main-content,
    body.app-page.sidebar-collapsed .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 991.98px) {
    body.app-page .app-header {
        inset: 0.75rem 0.75rem auto 0.75rem !important;
    }

    .app-header-actions {
        align-items: stretch;
    }

    .user-profile,
    .user-profile-trigger {
        width: 100%;
    }

    .user-profile-trigger {
        justify-content: space-between;
    }

    .sidebar {
        top: calc(var(--header-stack-height, var(--header-height)) + 0.5rem) !important;
    }

    body.app-page .main-content,
    body.app-page.sidebar-collapsed .main-content {
        padding-top: 0.35rem !important;
    }
}

/* --- 2026-04-01 non-sticky header + inpatient dashboard --- */
body.app-page .app-shell {
    padding-top: 0 !important;
}

body.app-page .app-header {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    margin: 0 0 1rem calc(var(--sidebar-width) + 1rem) !important;
    z-index: 5 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.app-page.sidebar-collapsed .app-header {
    margin-left: calc(var(--sidebar-collapsed-width) + 1rem) !important;
}

body.app-page .main-content,
body.app-page.sidebar-collapsed .main-content {
    min-height: calc(100vh - 1rem);
    padding-top: 0 !important;
}

.sidebar {
    top: 0.9rem !important;
}

.app-table thead th,
.data-table thead th {
    position: static !important;
    top: auto !important;
    box-shadow: none !important;
}

.ipd-shell {
    display: grid;
    gap: 1rem;
}

.ipd-shell-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ipd-shell-header h2 {
    margin: 0.15rem 0 0.3rem;
    font-size: clamp(1.45rem, 1.2rem + 0.8vw, 2rem);
    font-weight: 800;
}

.ipd-shell-header p {
    margin: 0;
    color: var(--app-text-muted);
    font-size: 0.82rem;
}

.ipd-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.ipd-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.ipd-summary-pill {
    border: 1px solid var(--app-border);
    border-radius: 0rem;
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.ipd-summary-pill span,
.ipd-summary-pill small {
    display: block;
}

.ipd-summary-pill span {
    font-size: 0.74rem;
    color: var(--app-text-muted);
    font-weight: 700;
}

.ipd-summary-pill strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.ipd-summary-pill small {
    margin-top: 0.2rem;
    color: var(--app-text-muted);
    font-size: 0.72rem;
}

.ipd-summary-pill i {
    font-size: 1.2rem;
    color: var(--app-primary);
}

.ipd-tabs {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.ipd-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--app-border);
    border-radius: 0rem;
    background: #fff;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.ipd-tab-link.active,
.ipd-tab-link:hover {
    color: var(--app-blue-dark);
    border-color: #bfd3f7;
    background: #eef4ff;
}

.ipd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
    gap: 1rem;
    align-items: start;
}

.ipd-main-column,
.ipd-side-column {
    display: grid;
    gap: 1rem;
}

.surface-head.compact {
    margin-bottom: 0.8rem;
}

.ipd-profile-top {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
}

.ipd-photo-card,
.ipd-code-block {
    border: 1px solid #dbe6f3;
    border-radius: 0rem;
    background: linear-gradient(180deg, #fcfdff, #f3f8ff);
    padding: 1rem;
}

.ipd-photo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
    flex: 0 0 136px;
}

.ipd-photo-circle {
    width: 88px;
    height: 88px;
    font-size: 1.8rem;
}

.ipd-photo-card span {
    color: var(--app-text-muted);
    font-size: 0.76rem;
}

.ipd-demographics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: 0.85rem 1rem;
    flex: 1 1 360px;
    min-width: 260px;
}

.ipd-demographic-tile {
    min-width: 0;
    padding: 0.85rem 0.95rem;
    border-radius: 0rem;
    border: 1px solid #dbe6f3;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
}

.ipd-demographics-grid span,
.ipd-case-row span {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--app-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.ipd-demographics-grid strong,
.ipd-case-row strong {
    font-size: 0.92rem;
    font-weight: 800;
    display: block;
    line-height: 1.35;
    word-break: break-word;
}

.ipd-code-block {
    text-align: center;
    flex: 0 0 210px;
    margin-left: auto;
    display: grid;
    align-content: start;
    gap: 0.5rem;
}

.ipd-barcode {
    position: relative;
    height: 44px;
    margin-bottom: 0.35rem;
    border-radius: 0rem;
    background: #fff;
    overflow: hidden;
    border: 1px solid #d9e4f2;
}

.ipd-barcode::before {
    content: "";
    position: absolute;
    inset: 7px 12px 14px;
    background: repeating-linear-gradient(90deg, #111827 0 2px, transparent 2px 4px, #111827 4px 5px, transparent 5px 8px);
    opacity: 0.95;
}

.ipd-barcode::after {
    content: attr(data-code);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #0f172a;
}

.ipd-barcode-label {
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.35;
    word-break: break-word;
}

.ipd-code-block .patient-qr-image {
    width: 124px;
    height: 124px;
}

.patient-qr-caption {
    line-height: 1.35;
    word-break: break-word;
}

.ipd-case-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 1rem;
    align-items: center;
}

.ipd-case-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
}

.ipd-finance-ring-card {
    display: grid;
    justify-items: center;
    gap: 0.8rem;
}

.ipd-finance-ring {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.ipd-finance-ring-inner {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    box-shadow: inset 0 0 0 1px #dce7d8;
}

.ipd-finance-ring-inner span {
    color: #43a047;
    font-size: 0.82rem;
    font-weight: 800;
}

.ipd-finance-ring-inner strong {
    font-size: 0.82rem;
}

.ipd-finance-copy {
    text-align: center;
    display: grid;
    gap: 0.18rem;
    font-size: 0.75rem;
    color: var(--app-text-muted);
}

.ipd-finance-copy strong {
    color: #2e7d32;
}

.ipd-vitals-list,
.ipd-note-timeline {
    display: grid;
    gap: 0.8rem;
}

.ipd-vital-row,
.ipd-note-section,
.ipd-note-item,
.ipd-billing-card {
    border: 1px solid #dbe6f3;
    border-radius: 0rem;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.ipd-vital-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.7fr) minmax(120px, 1fr) auto auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.8rem 0.9rem;
}

.ipd-vital-row small {
    color: var(--app-text-muted);
    font-size: 0.72rem;
    text-align: right;
}

.ipd-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.26rem 0.5rem;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 800;
}

.ipd-badge.tone-normal {
    background: #e6f7ea;
    color: #2e7d32;
}

.ipd-badge.tone-high {
    background: #ffe7ea;
    color: #d81b60;
}

.ipd-badge.tone-muted {
    background: #eef3f8;
    color: #64748b;
}

.ipd-note-groups {
    display: grid;
    gap: 0.85rem;
}

.ipd-note-section {
    padding: 0.95rem 1rem;
}

.ipd-note-section h3,
.ipd-note-body h4 {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
    font-weight: 800;
}

.ipd-note-section p,
.ipd-note-body p {
    margin: 0;
    white-space: pre-wrap;
    color: var(--app-text);
}

.ipd-consultant-lead {
    border: 1px dashed #d1dfef;
    border-radius: 0rem;
    padding: 0.9rem;
    background: #fbfdff;
}

.ipd-note-item {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 0.9rem;
}

.ipd-note-item.compact {
    grid-template-columns: 108px minmax(0, 1fr);
}

.ipd-note-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.55rem;
    border-radius: 0rem;
    background: #0d6efd;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    text-align: center;
}

.ipd-note-body span {
    display: block;
    color: var(--app-text-muted);
    font-size: 0.72rem;
    margin: 0.12rem 0 0.35rem;
}

.ipd-billing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.ipd-billing-card {
    padding: 0.85rem 0.95rem;
}

.ipd-billing-head,
.ipd-billing-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ipd-billing-head strong {
    font-size: 0.82rem;
    font-weight: 800;
}

.ipd-billing-progress {
    margin-top: 0.55rem;
    font-size: 0.72rem;
    color: var(--app-text-muted);
}

.ipd-progress-track {
    height: 6px;
    margin-top: 0.65rem;
    border-radius: 999px;
    background: #e6eef7;
    overflow: hidden;
}

.ipd-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1fb6ff, #0ea5e9);
}

.ipd-table {
    margin: 0;
    font-size: 0.78rem;
}

.ipd-table thead th {
    background: #f6f9fc;
    color: #475569;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ipd-table tbody td {
    vertical-align: top;
}

@media (max-width: 1199.98px) {
    .ipd-summary-strip,
    .ipd-layout,
    .ipd-case-grid {
        grid-template-columns: 1fr;
    }

    .ipd-billing-grid,
    .ipd-case-facts,
    .ipd-demographics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    body.app-page .app-header,
    body.app-page.sidebar-collapsed .app-header {
        margin-left: 0 !important;
    }

    .sidebar {
        top: calc(var(--header-stack-height, 0px) + 0.5rem) !important;
    }

    .ipd-shell-header,
    .ipd-toolbar,
    .ipd-vital-row,
    .ipd-note-item,
    .ipd-note-item.compact {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 767.98px) {
    .ipd-summary-strip,
    .ipd-billing-grid,
    .ipd-case-facts,
    .ipd-demographics-grid {
        grid-template-columns: 1fr;
    }

    .ipd-profile-top {
        flex-direction: column;
    }

    .ipd-photo-card,
    .ipd-demographics-grid,
    .ipd-code-block {
        width: 100%;
        min-width: 0;
        flex-basis: auto;
        margin-left: 0;
    }

    .ipd-code-block .patient-qr-image {
        width: 136px;
        height: 136px;
    }
}
/* --- 2026-04-01 clean workspace shell --- */
.page-caption,
.dashboard-hero p,
.surface-head p,
.stat-meta,
.sidebar-footer,
.auth-panel-subcopy,
.auth-helper-grid,
.auth-news-panel,
.auth-role-strip,
.auth-subcopy {
    display: none !important;
}

body.app-page {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 24%),
        linear-gradient(180deg, #f4f8ff 0%, #edf4fc 100%);
}

body.app-page .app-shell {
    padding-top: 0.35rem !important;
}

body.app-page .app-header {
    margin-bottom: 0.8rem !important;
}

body.app-page .app-header-main.app-header-main-unified {
    min-height: 4.65rem;
    padding: 0.8rem 1rem;
}

.brand-lockup-inline small,
.sidebar-plan {
    display: inline-flex;
    margin-top: 0.25rem;
    font-size: 0.7rem;
    color: rgba(219, 234, 254, 0.92);
}

.sidebar {
    top: 0.75rem !important;
}

.sidebar-panel {
    padding: 0.9rem 0.7rem !important;
    border-radius: 1rem !important;
}

.sidebar-heading {
    padding-bottom: 0.2rem;
}

.sidebar-section-title {
    margin-bottom: 0.3rem;
}

.sidebar .nav-link {
    min-height: 2.8rem;
    padding: 0.52rem 0.68rem;
}

.compact-stats-grid {
    margin-bottom: 0.9rem;
}

.compact-module-grid {
    margin-bottom: 0.9rem;
}

.compact-module-card,
.compact-related-list .mini-list-item,
.compact-quick-actions .quick-action {
    border-radius: 0rem;
}

.compact-related-list {
    padding: 0.85rem 1rem 1rem;
}

.compact-related-list .mini-list-link {
    text-decoration: none;
}

.compact-quick-actions {
    padding: 0 1rem 1rem;
}

.surface-head.compact {
    padding-bottom: 0.25rem;
}

.metric-chip-grid.compact-metric-grid {
    padding: 0 1rem 0.9rem;
}

.metric-chip-grid.compact-metric-grid .empty-state {
    grid-column: 1 / -1;
}

.modal-dialog,
.app-modal .modal-dialog {
    margin: 1.1rem auto !important;
}

.modal-content,
.app-modal .modal-content {
    border-radius: 0rem !important;
}

.table-empty-state {
    margin: 0 0 0.85rem;
}

@media (max-width: 991.98px) {
    body.app-page .app-shell {
        padding-top: 0.15rem !important;
    }

    body.app-page .app-header,
    body.app-page.sidebar-collapsed .app-header {
        margin-left: 0 !important;
    }
}
/* --- 2026-04-01 interaction and module UX polish --- */
.ipd-tabs {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
    padding-bottom: 0.35rem;
}

.ipd-tabs::-webkit-scrollbar {
    height: 6px;
}

.ipd-tabs::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.55);
    border-radius: 999px;
}

.ipd-hidden-section {
    display: none !important;
}

.ipd-layout.ipd-tab-filtered {
    grid-template-columns: 1fr !important;
}

.ipd-layout.ipd-tab-filtered .ipd-empty-column {
    display: none !important;
}

.table-action-group.table-action-menu {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    min-width: 2.1rem;
}

.table-action-trigger {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 0rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-action-dropdown {
    position: absolute;
    top: calc(100% + 0.38rem);
    right: 0;
    z-index: 80;
    min-width: 12rem;
    padding: 0.38rem;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 0rem;
    background: #fff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
    display: none;
    flex-direction: column;
    gap: 0.28rem;
}

.table-action-group.table-action-menu.open .table-action-dropdown {
    display: flex;
}

.table-action-dropdown form {
    margin: 0;
}

.table-action-dropdown .table-action-item,
.table-action-dropdown .table-action-item.btn,
.table-action-dropdown .table-action-item.icon-action-btn {
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
    border-radius: 0rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.table-action-text {
    display: none !important;
}

.action-cell {
    min-width: 4.2rem !important;
}

.modal-backdrop {
    z-index: 2040 !important;
}

.modal {
    z-index: 2050 !important;
}

.app-modal .modal-dialog,
.modal-dialog {
    margin: clamp(0.75rem, 2vh, 1.15rem) auto !important;
    max-width: min(980px, calc(100vw - 1rem));
}

.app-modal .modal-dialog.modal-dialog-centered {
    min-height: calc(100% - 1.5rem) !important;
    align-items: center !important;
}

.app-modal .modal-content,
.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1.5rem) !important;
    overflow: hidden !important;
}

.app-modal .modal-body,
.modal-dialog-scrollable .modal-body {
    overflow-y: auto !important;
    max-height: calc(100vh - 11rem);
}

@media (max-width: 991.98px) {
    .table-action-dropdown {
        min-width: 10.5rem;
    }

    .app-modal .modal-dialog,
    .modal-dialog {
        max-width: calc(100vw - 0.8rem);
    }
}

body.app-page .app-header,
body.app-page.sidebar-collapsed .app-header {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
}

body.app-page .app-shell,
body.app-page.sidebar-collapsed .app-shell {
    padding-top: 0.35rem !important;
}

.app-table thead th,
.data-table thead th,
.table thead th {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
}

.legacy-pagination-hidden {
    display: none !important;
}



.modal-backdrop {
    z-index: 309999901 !important !important;
}

.modal {
    z-index: 30999910 !important;
    overflow-y: auto !important;
}

.modal .modal-dialog {
    pointer-events: auto !important;
}

.modal-dialog-scrollable .modal-content,
.app-modal .modal-content {
    max-height: calc(100vh - 1rem) !important;
}

.modal-dialog-scrollable .modal-body,
.app-modal .modal-body {
    overflow-y: auto !important;
}

/* --- 2026-04-01 pharmacy glass UI --- */
body.pharma-glass {
    background:
        radial-gradient(circle at 12% 12%, rgba(13, 148, 136, 0.2), transparent 32%),
        radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.16), transparent 28%),
        linear-gradient(160deg, #edf5ff 0%, #e6f6f3 48%, #edf2ff 100%) !important;
}

body.pharma-glass .app-header-main.app-header-main-unified,
body.pharma-glass .sidebar-panel,
body.pharma-glass .dashboard-card,
body.pharma-glass .surface-card,
body.pharma-glass .modal-content,
body.pharma-glass .content-header,
body.pharma-glass .table-responsive {
    background: rgba(255, 255, 255, 0.62) !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.09) !important;
}

body.pharma-glass .sidebar-panel {
    background:
        linear-gradient(170deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(30, 64, 175, 0.7) 100%) !important;
    border-color: rgba(191, 219, 254, 0.22) !important;
}

body.pharma-glass .sidebar .nav-link {
    border-color: rgba(148, 163, 184, 0.24) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

body.pharma-glass .sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.92), rgba(37, 99, 235, 0.92)) !important;
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.28) !important;
}

body.pharma-glass .btn-primary {
    border-color: transparent !important;
    background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%) !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

body.pharma-glass .btn-primary:hover,
body.pharma-glass .btn-primary:focus {
    background: linear-gradient(135deg, #0e7490 0%, #1d4ed8 100%) !important;
}

body.pharma-glass .app-table,
body.pharma-glass .table {
    border-radius: 0rem;
    overflow: hidden;
}

body.pharma-glass .app-table thead th,
body.pharma-glass .table thead th {
    background: rgba(226, 232, 240, 0.8) !important;
    border-bottom-color: rgba(148, 163, 184, 0.32) !important;
}

body.pharma-glass .app-table tbody tr:hover,
body.pharma-glass .table tbody tr:hover {
    background: rgba(219, 234, 254, 0.45) !important;
}

body.pharma-glass .table-action-dropdown {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(148, 163, 184, 0.32);
}

/* --- 2026-04-01 global liquid glass + analytics --- */
body.app-glass {
    background:
        radial-gradient(circle at 14% 10%, rgba(14, 165, 233, 0.18), transparent 30%),
        radial-gradient(circle at 88% 8%, rgba(16, 185, 129, 0.16), transparent 24%),
        linear-gradient(160deg, #edf4ff 0%, #e8f7f3 52%, #eef2ff 100%) !important;
}

body.app-glass .app-header-main.app-header-main-unified,
body.app-glass .sidebar-panel,
body.app-glass .dashboard-card,
body.app-glass .surface-card,
body.app-glass .content-header,
body.app-glass .table-responsive,
body.app-glass .modal-content {
    background: rgba(255, 255, 255, 0.68) !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.app-glass .app-header-main.app-header-main-unified {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(240, 247, 255, 0.75)) !important;
}

body.app-glass .sidebar-panel {
    background:
        linear-gradient(170deg, rgba(7, 22, 47, 0.94) 0%, rgba(13, 44, 86, 0.8) 45%, rgba(12, 92, 98, 0.72) 100%) !important;
    border-color: rgba(191, 219, 254, 0.2) !important;
}

body.app-glass .sidebar .nav-link {
    background: rgba(255, 255, 255, 0.06) !important;
}

body.app-glass .sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(37, 99, 235, 0.95)) !important;
}

body.app-glass .modal-backdrop,
body.app-glass .modal-backdrop.show {
    background-color: rgba(15, 23, 42, 0.48) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 4190 !important;
}

body.app-glass .modal {
    z-index: 4200 !important;
}

body.app-glass .modal .modal-dialog {
    max-width: min(1040px, calc(100vw - 1rem)) !important;
}

.ops-analytics-shell {
    margin-bottom: 0.9rem;
    padding: 0.95rem 1rem;
}

.ops-analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.ops-analytics-kpi {
    border: 1px solid #d4e3f5;
    border-radius: 0rem;
    padding: 0.75rem 0.85rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.82), rgba(244, 249, 255, 0.76));
}

.ops-analytics-kpi span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
}

.ops-analytics-kpi strong {
    display: block;
    margin-top: 0.22rem;
    font-size: 1rem;
    font-weight: 800;
}

.ops-analytics-kpi small {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.7rem;
}

.ops-analytics-kpi.kpi-tone-teal strong {
    color: #0f766e;
}

.ops-analytics-kpi.kpi-tone-blue strong {
    color: #1d4ed8;
}

.ops-analytics-kpi.kpi-tone-amber strong {
    color: #b45309;
}

.ops-analytics-kpi.kpi-tone-danger strong {
    color: #b91c1c;
}

.ops-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.8rem;
}

.ops-analytics-card {
    border: 1px solid #d4e3f5;
    border-radius: 0rem;
    padding: 0.8rem 0.9rem;
    background: rgba(255, 255, 255, 0.72);
}

.ops-analytics-card h3 {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    font-weight: 800;
}

.ops-bar-list,
.ops-focus-list {
    display: grid;
    gap: 0.62rem;
}

.ops-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.24rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.ops-bar-track {
    height: 8px;
    border-radius: 999px;
    background: #e7edf7;
    overflow: hidden;
}

.ops-bar-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.ops-trend-bars {
    min-height: 140px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
    align-items: end;
}

.ops-trend-item {
    display: grid;
    justify-items: center;
    gap: 0.22rem;
}

.ops-trend-column {
    width: 34px;
    min-height: 12px;
    border-radius: 0rem;
    background: linear-gradient(180deg, #0ea5e9, #2563eb);
}

.ops-trend-item strong {
    font-size: 0.68rem;
    color: #334155;
}

.ops-trend-item span {
    font-size: 0.68rem;
    color: #64748b;
}

.ops-focus-card {
    margin-top: 0.8rem;
}

.ops-focus-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 0rem;
    padding: 0.56rem 0.68rem;
    background: rgba(255, 255, 255, 0.74);
}

.ops-focus-item strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
}

.ops-focus-item span {
    display: block;
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.71rem;
}

.ops-focus-item em {
    margin-top: 0.1rem;
    font-style: normal;
    font-size: 0.74rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .ops-analytics-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .ops-analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .ops-analytics-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 2026-04-01 dedicated module modern UI system --- */
.dedicated-module-page {
    --module-title: #0f172a;
    --module-copy: #1f2d3d;
    --module-muted: #64748b;
    --module-border: #d8e6f4;
    --module-surface: rgba(255, 255, 255, 0.94);
    --module-soft: #f5f9ff;
    --module-primary: #0f766e;
    --module-primary-dark: #0b5e58;
    --module-blue: #1d4ed8;
    --module-blue-soft: #dbeafe;
    --module-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}


.dedicated-module-page .main-content {
    color: var(--module-copy);
}

.dedicated-module-page .module-alert {
    border: 1px solid transparent;
    border-radius: 0rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    font-size: 0.8rem;
    font-weight: 700;
}

.dedicated-module-page .module-alert.alert-success {
    border-color: #bbf7d0;
    color: #166534;
    background: linear-gradient(145deg, #ecfdf3, #dcfce7);
}

.dedicated-module-page .module-alert.alert-danger {
    border-color: #fecaca;
    color: #991b1b;
    background: linear-gradient(145deg, #fef2f2, #fee2e2);
}

.dedicated-module-page .module-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--module-border);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 14% 12%, rgba(13, 148, 136, 0.12), transparent 26%),
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.12), transparent 26%),
        linear-gradient(145deg, #ffffff, #f2f8ff 60%, #f4fdfa 100%);
    box-shadow: var(--module-shadow);
}

.dedicated-module-page .module-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
}

.dedicated-module-page .module-hero h2 {
    color: var(--module-title);
    letter-spacing: -0.028em;
}

.dedicated-module-page .module-hero .hero-eyebrow {
    color: var(--module-primary);
}

.dedicated-module-page .patient-hero-pills {
    margin-top: 0.62rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dedicated-module-page .module-hero .surface-tag {
    min-height: 1.9rem;
    border: 1px solid #d8e6f4;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #334155;
    font-size: 0.7rem;
    font-weight: 800;
}

.dedicated-module-page .module-hero-actions .btn {
    min-height: 2.55rem;
    padding: 0.58rem 0.88rem;
    border-radius: 0rem;
    border-width: 1px;
    font-size: 0.76rem;
    font-weight: 800;
    transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dedicated-module-page .module-hero-actions .btn:hover,
.dedicated-module-page .module-hero-actions .btn:focus-visible {
    transform: translateY(-1px);
}

.dedicated-module-page .module-hero-actions .btn-secondary {
    border-color: var(--module-border);
    background: #ffffff;
    color: #334155;
}

.dedicated-module-page .module-hero-actions .btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--module-primary), var(--module-blue));
    box-shadow: 0 12px 22px rgba(29, 78, 216, 0.2);
}

.dedicated-module-page .module-hero-actions .btn-outline-primary {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

/*  entry hero */
.dedicated-module-page .module-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--module-border);
    border-radius: 0rem;
    background:
        radial-gradient(circle at 14% 12%, rgba(13, 148, 136, 0.12), transparent 26%),
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.12), transparent 26%),
        linear-gradient(145deg, #ffffff, #f2f8ff 60%, #f4fdfa 100%);
    box-shadow: var(--module-shadow);
}

.dedicated-module-page .module-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
}

.dedicated-module-page .module-hero h2 {
    color: var(--module-title);
    letter-spacing: -0.028em;
}

.dedicated-module-page .module-hero .hero-eyebrow {
    color: var(--module-primary);
}

.dedicated-module-page .patient-hero-pills {
    margin-top: 0.62rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dedicated-module-page .module-hero .surface-tag {
    min-height: 1.9rem;
    border: 1px solid #d8e6f4;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #334155;
    font-size: 0.7rem;
    font-weight: 800;
}

.dedicated-module-page .module-hero-actions .btn {
    min-height: 2.55rem;
    padding: 0.58rem 0.88rem;
    border-radius: 0rem;
    border-width: 1px;
    font-size: 0.76rem;
    font-weight: 800;
    transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dedicated-module-page .module-hero-actions .btn:hover,
.dedicated-module-page .module-hero-actions .btn:focus-visible {
    transform: translateY(-1px);
}

.dedicated-module-page .module-hero-actions .btn-secondary {
    border-color: var(--module-border);
    background: #ffffff;
    color: #334155;
}

.dedicated-module-page .module-hero-actions .btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--module-primary), var(--module-blue));
    box-shadow: 0 12px 22px rgba(29, 78, 216, 0.2);
}

.dedicated-module-page .module-hero-actions .btn-outline-primary {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.dedicated-module-page .module-status-card,
.dedicated-module-page .module-stat-card,
.dedicated-module-page .module-table-card,
.dedicated-module-page .module-form-card {
    border: 1px solid var(--module-border);
    border-radius: 0rem;
    background: var(--module-surface);
    box-shadow: var(--module-shadow);
}

.dedicated-module-page .module-status-card {
    margin-bottom: 0.95rem;
}

.dedicated-module-page .module-status-card .surface-head {
    padding: 0.9rem 1rem 0.18rem;
}

.dedicated-module-page .module-status-rail {
    padding: 0 1rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
    gap: 0.52rem;
}

.dedicated-module-page .module-status-chip {
    min-height: 2.25rem;
    padding: 0.48rem 0.7rem;
    border: 1px solid var(--module-border);
    border-radius: 0rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #ffffff;
    color: #334155;
    font-size: 0.73rem;
    font-weight: 800;
}

.dedicated-module-page .module-status-dot {
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 50%;
    background: #94a3b8;
}

.dedicated-module-page .status-key-completed,
.dedicated-module-page .status-key-done,
.dedicated-module-page .status-key-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.dedicated-module-page .status-key-completed .module-status-dot,
.dedicated-module-page .status-key-done .module-status-dot,
.dedicated-module-page .status-key-success .module-status-dot {
    background: #22c55e;
}

.dedicated-module-page .status-key-pending,
.dedicated-module-page .status-key-awaiting,
.dedicated-module-page .status-key-in_progress {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.dedicated-module-page .status-key-pending .module-status-dot,
.dedicated-module-page .status-key-awaiting .module-status-dot,
.dedicated-module-page .status-key-in_progress .module-status-dot {
    background: #2563eb;
}

.dedicated-module-page .status-key-scheduled,
.dedicated-module-page .status-key-planned {
    border-color: #a5f3fc;
    background: #ecfeff;
    color: #155e75;
}

.dedicated-module-page .status-key-scheduled .module-status-dot,
.dedicated-module-page .status-key-planned .module-status-dot {
    background: #0891b2;
}

.dedicated-module-page .status-key-cancelled,
.dedicated-module-page .status-key-rejected,
.dedicated-module-page .status-key-failed {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.dedicated-module-page .status-key-cancelled .module-status-dot,
.dedicated-module-page .status-key-rejected .module-status-dot,
.dedicated-module-page .status-key-failed .module-status-dot {
    background: #dc2626;
}

.dedicated-module-page .module-kpi-grid {
    margin-bottom: 1rem;
}

.dedicated-module-page .module-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 7.2rem;
    padding: 0.95rem 1rem;
}

.dedicated-module-page .module-stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.9), rgba(29, 78, 216, 0.85));
}

.dedicated-module-page .module-stat-card .stat-label {
    color: var(--module-muted);
    font-size: 0.67rem;
    letter-spacing: 0.1em;
}

.dedicated-module-page .module-stat-card .stat-value {
    margin-top: 0.38rem;
    color: var(--module-title);
}

.dedicated-module-page .module-stat-card .stat-icon {
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.dedicated-module-page .module-table-card .surface-head,
.dedicated-module-page .module-form-card .surface-head {
    padding: 0.95rem 1rem 0.2rem;
}

.dedicated-module-page .module-table-card .surface-head h3,
.dedicated-module-page .module-form-card .surface-head h3,
.dedicated-module-page .module-status-card .surface-head h3 {
    color: var(--module-title);
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.dedicated-module-page .module-table-card .surface-overline,
.dedicated-module-page .module-form-card .surface-overline,
.dedicated-module-page .module-status-card .surface-overline {
    color: #0f766e;
}

.dedicated-module-page .module-table-card .surface-tag {
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1e3a8a;
}

.dedicated-module-page .app-table-wrap {
    padding: 0.78rem 1rem 1rem;
}

.dedicated-module-page .app-table-wrap > .dataTables_wrapper {
    padding: 0 !important;
}

.dedicated-module-page .table {
    border: 1px solid #deebf8;
    border-radius: 0rem;
    overflow: hidden;
}

.dedicated-module-page .table thead th,
.dedicated-module-page .data-table thead th {
    border-bottom: 1px solid #dbe7f5;
    background: #f2f8ff;
    color: #475569;
    font-size: 0.67rem;
    letter-spacing: 0.09em;
}

.dedicated-module-page .table tbody td {
    border-color: #e6eef8;
    color: #1e293b;
    font-size: 0.81rem;
    font-weight: 700;
}

.dedicated-module-page .table tbody tr:nth-child(even) td {
    background: #fcfdff;
}

.dedicated-module-page .app-table tbody tr:hover td,
.dedicated-module-page .table tbody tr:hover td {
    background: #eef6ff !important;
}

.dedicated-module-page .status-pill {
    min-height: 1.9rem;
    padding: 0.34rem 0.68rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.dedicated-module-page .status-scheduled {
    border-color: #a5f3fc;
    background: #ecfeff;
    color: #155e75;
}

.dedicated-module-page .status-completed {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.dedicated-module-page .status-cancelled {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.dedicated-module-page .status-pending,
.dedicated-module-page .status-in-progress,
.dedicated-module-page .status-in_progress,
.dedicated-module-page .status-open,
.dedicated-module-page .status-active {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.dedicated-module-page .action-cell {
    min-width: 4.45rem !important;
}

.dedicated-module-page .table-action-trigger {
    border-color: #cfe0f4;
    background: #f8fbff;
    color: #334155;
}

.dedicated-module-page .table-action-dropdown {
    border-color: #d9e7f5;
    border-radius: 0rem;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.dedicated-module-page .table-action-dropdown .table-action-item {
    border: 0;
    color: #334155;
    background: transparent;
}

.dedicated-module-page .table-action-dropdown .table-action-item:hover {
    background: #eff6ff;
    color: #1e40af;
}

.dedicated-module-page .module-form-card .permission-form {
    padding: 0.72rem 1rem 1.05rem;
}

.dedicated-module-page .field-grid {
    gap: 0.82rem;
}

.dedicated-module-page .form-label {
    margin-bottom: 0.34rem;
    color: #334155;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dedicated-module-page .form-control,
.dedicated-module-page .form-select {
    min-height: 2.75rem;
    border: 1px solid #d7e4f3;
    border-radius: 0.82rem;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
}

.dedicated-module-page textarea.form-control {
    min-height: 6.3rem;
}

.dedicated-module-page .form-control:focus,
.dedicated-module-page .form-select:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.13);
}

.dedicated-module-page .form-note {
    color: var(--module-muted);
}

.dedicated-module-page .form-note a {
    color: #1e40af;
    font-weight: 800;
}

.dedicated-module-page .modal-form-footer {
    margin-top: 0.42rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #dbe7f5;
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}

.dedicated-module-page .modal-form-footer .btn {
    min-height: 2.56rem;
    padding: 0.58rem 0.92rem;
    border-radius: 0.78rem;
}

.dedicated-module-page .modal-form-footer .btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--module-primary), var(--module-blue));
}

.dedicated-module-page .module-form-card .metric-list {
    padding: 0.72rem 1rem 1rem;
}

.dedicated-module-page .module-form-card .metric-row {
    padding: 0.66rem 0.76rem;
    border: 1px solid #deebf8;
    border-radius: 0.78rem;
    background: #f9fcff;
}

.dedicated-module-page .module-form-card .metric-row + .metric-row {
    margin-top: 0.55rem;
    padding-top: 0.66rem;
    border-top: 1px solid #deebf8;
}

.dedicated-module-page .empty-state {
    padding: 1rem !important;
    color: #64748b;
    font-weight: 700;
}

@keyframes dedicated-module-rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dedicated-module-page .module-hero,
.dedicated-module-page .module-status-card,
.dedicated-module-page .module-stat-card,
.dedicated-module-page .module-table-card,
.dedicated-module-page .module-form-card {
    animation: dedicated-module-rise 0.28s ease both;
}

@media (max-width: 1199.98px) {
    .dedicated-module-page .ops-module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .dedicated-module-page .module-hero {
        padding: 0.98rem;
    }

    .dedicated-module-page .module-hero-actions {
        width: 100%;
    }

    .dedicated-module-page .module-hero-actions .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 767.98px) {
    .dedicated-module-page .module-status-rail {
        grid-template-columns: 1fr;
    }

    .dedicated-module-page .module-hero-actions {
        gap: 0.45rem;
    }

    .dedicated-module-page .module-hero-actions .btn {
        width: 100%;
    }

    .dedicated-module-page .field-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --- 2026-04-01 shared workspace and appointment UI system --- */
.workspace-dashboard-page,
.ops-module-page,
.generic-module-page,
.appointment-page {
    --workspace-surface: rgba(255, 255, 255, 0.94);
    --workspace-border: #d9e7f4;
    --workspace-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.workspace-dashboard-page .module-hero,
.ops-module-page .module-hero,
.generic-module-page .module-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--workspace-border);
    border-radius: 1.05rem;
    background:
        radial-gradient(circle at 12% 14%, rgba(14, 165, 233, 0.1), transparent 25%),
        radial-gradient(circle at 88% 10%, rgba(16, 185, 129, 0.12), transparent 24%),
        linear-gradient(145deg, #ffffff, #f3f8ff 58%, #eefbf6 100%);
    box-shadow: var(--workspace-shadow);
}

.workspace-dashboard-page .module-hero::after,
.ops-module-page .module-hero::after,
.generic-module-page .module-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, #0f766e, #0ea5e9, #1d4ed8);
}

.workspace-dashboard-page .surface-card,
.ops-module-page .surface-card,
.generic-module-page .surface-card,
.appointment-page .appointment-kpi-card,
.appointment-page .appointment-toolbar,
.appointment-page .appointment-table-card {
    border: 1px solid var(--workspace-border);
    border-radius: 1rem;
    background: var(--workspace-surface);
    box-shadow: var(--workspace-shadow);
}

.workspace-dashboard-page .module-kpi-grid .stat-card,
.ops-module-page .module-kpi-grid .stat-card,
.generic-module-page .module-kpi-grid .stat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--workspace-border);
    box-shadow: var(--workspace-shadow);
}

.workspace-dashboard-page .module-kpi-grid .stat-card::before,
.ops-module-page .module-kpi-grid .stat-card::before,
.generic-module-page .module-kpi-grid .stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.92), rgba(29, 78, 216, 0.88));
}

.workspace-dashboard-page .surface-head h3,
.ops-module-page .surface-head h3,
.generic-module-page .surface-head h3 {
    color: #0f172a;
    letter-spacing: -0.02em;
}

.workspace-dashboard-page .surface-overline,
.ops-module-page .surface-overline,
.generic-module-page .surface-overline,
.appointment-page .surface-overline {
    color: #0f766e;
}

.ops-module-page .module-table-card,
.ops-module-page .module-form-card,
.generic-module-page .surface-card {
    overflow: hidden;
}

.ops-module-page .module-hero-actions .btn,
.generic-module-page .module-hero-actions .btn {
    min-height: 2.55rem;
    border-radius: 0.78rem;
    font-size: 0.76rem;
    font-weight: 800;
}

.appointment-page .appointment-stat-row {
    margin-bottom: 1rem !important;
    row-gap: 0.6rem;
}

.appointment-page .appointment-section-title {
    margin: 0 0 0.4rem 0.6rem !important;
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.appointment-page .appointment-kpi-card {
    min-height: 7rem;
    padding: 1rem 1.05rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 26%),
        linear-gradient(155deg, #ffffff, #f4f9ff 74%);
}

.appointment-page .appointment-kpi-card .card-content {
    gap: 0.9rem;
}

.appointment-page .appointment-kpi-card .card-title {
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.appointment-page .appointment-kpi-card .card-number {
    color: #0f172a;
    font-size: clamp(1.5rem, 1.2rem + 0.7vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.appointment-page .appointment-kpi-card .card-subtitle {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
}

.appointment-page .appointment-toolbar {
    padding: 0.95rem 1rem;
}

.appointment-page .appointment-toolbar .section-intro p {
    margin: 0.22rem 0 0;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
}

.appointment-page .appointment-toolbar .btn {
    min-height: 2.6rem;
    border-radius: 0.82rem;
    font-weight: 800;
}

.appointment-page .appointment-table-card {
    padding: 0.92rem;
}

.appointment-page .appointment-table-card .app-table-wrap {
    padding: 0;
}

.appointment-page .filter-summary {
    margin-bottom: 0.95rem;
}

.appointment-page .table thead th {
    background: #f2f8ff;
}

.appointment-page .table tbody tr:hover td {
    background: #eef6ff !important;
}

.appointment-page .modal-content {
    border: 1px solid var(--workspace-border);
    border-radius: 1rem;
    box-shadow: var(--workspace-shadow);
}

@media (max-width: 991.98px) {
    .appointment-page .appointment-toolbar {
        align-items: stretch !important;
    }

    .appointment-page .appointment-toolbar .action-buttons {
        width: 100%;
    }

    .appointment-page .appointment-toolbar .action-buttons .btn {
        width: 100%;
        margin-right: 0 !important;
    }
}

/* --- 2026-04-01 module scaffold cards --- */
.module-architecture-card {
    border: 1px solid rgba(37, 99, 235, 0.14);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.module-architecture-copy {
    margin: 0;
    padding: 0 1.5rem 1.5rem;
    color: #52607a;
    line-height: 1.7;
}

/* --- 2026-04-01 aurora enterprise theme pass --- */
body.app-aurora {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 26%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 24%),
        radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.08), transparent 18%),
        linear-gradient(180deg, #f6fbff 0%, #eef7fb 42%, #eef4ff 100%) !important;
    color: #102033;
}

body.app-aurora .app-header-main.app-header-main-unified {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 248, 255, 0.94)) !important;
    border: 1px solid rgba(165, 196, 228, 0.56) !important;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08) !important;
}

body.app-aurora .brand-mark,
body.app-aurora .header-chip,
body.app-aurora .surface-tag {
    border-color: rgba(147, 197, 253, 0.4) !important;
}

body.app-aurora .header-chip {
    background: rgba(255, 255, 255, 0.74) !important;
}

body.app-aurora .sidebar-panel {
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 20%),
        linear-gradient(180deg, #0f2041 0%, #153b63 56%, #0f766e 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.24) !important;
}

body.app-aurora .sidebar .nav-link {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.app-aurora .sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    transform: translateX(3px);
}

body.app-aurora .sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.96), rgba(37, 99, 235, 0.94)) !important;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24) !important;
}

body.app-aurora .surface-card,
body.app-aurora .dashboard-card,
body.app-aurora .content-header,
body.app-aurora .modal-content,
body.app-aurora .table-responsive,
body.app-aurora .dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid rgba(198, 216, 235, 0.78) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 249, 255, 0.92)) !important;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08) !important;
}

body.app-aurora .dashboard-hero,
body.app-aurora .module-hero,
body.app-aurora .appointment-detail-hero {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 22%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 22%),
        linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.92), rgba(241, 251, 247, 0.94)) !important;
    border: 1px solid rgba(191, 219, 254, 0.7) !important;
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.08) !important;
}

body.app-aurora .surface-overline,
body.app-aurora .hero-eyebrow,
body.app-aurora .eyebrow {
    color: #0f766e !important;
    letter-spacing: 0.18em;
    font-weight: 800;
}

body.app-aurora .btn-primary,
body.app-aurora .page-item.active .page-link,
body.app-aurora .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #0f766e, #2563eb) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.2) !important;
}

body.app-aurora .btn-secondary {
    background: rgba(226, 232, 240, 0.9) !important;
    border-color: rgba(203, 213, 225, 0.9) !important;
    color: #0f172a !important;
}

body.app-aurora .btn-outline-primary,
body.app-aurora .btn-outline-secondary,
body.app-aurora .btn-outline-success,
body.app-aurora .btn-outline-info,
body.app-aurora .btn-outline-warning,
body.app-aurora .btn-outline-danger,
body.app-aurora .btn-outline-dark {
    background: rgba(255, 255, 255, 0.78) !important;
}

body.app-aurora .form-control,
body.app-aurora .form-select {
    border: 1px solid #c9dbef !important;
    background: rgba(255, 255, 255, 0.96) !important;
    min-height: 2.8rem;
    border-radius: 0.85rem !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

body.app-aurora .form-control:focus,
body.app-aurora .form-select:focus {
    border-color: rgba(37, 99, 235, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12) !important;
}

body.app-aurora .table thead th {
    background: linear-gradient(180deg, #f7fbff, #edf5ff) !important;
    color: #52607a !important;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.app-aurora .table tbody td {
    color: #102033;
    border-color: #d9e7f4 !important;
}

body.app-aurora .table tbody tr:hover td {
    background: rgba(239, 246, 255, 0.9) !important;
}

body.app-aurora .status-pill.status-scheduled {
    background: rgba(219, 234, 254, 0.9) !important;
    color: #1d4ed8 !important;
}

body.app-aurora .status-pill.status-completed {
    background: rgba(220, 252, 231, 0.92) !important;
    color: #15803d !important;
}

body.app-aurora .status-pill.status-cancelled {
    background: rgba(254, 226, 226, 0.95) !important;
    color: #b91c1c !important;
}

body.app-aurora .appointment-detail-page .appointment-detail-grid,
body.app-aurora .appointment-detail-page .appointment-detail-panels,
body.app-aurora .hr-command-grid {
    gap: 1rem;
}

body.app-aurora .appointment-detail-page .patient-avatar-circle,
body.app-aurora .avatar-badge {
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

body.app-aurora .avatar-badge.tone-alert,
body.app-aurora .surface-tag-warn {
    background: rgba(254, 243, 199, 0.95) !important;
    color: #92400e !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

body.app-aurora .hr-salary-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 0 1rem 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.94), rgba(236, 253, 245, 0.94));
    border: 1px solid rgba(191, 219, 254, 0.72);
}

body.app-aurora .hr-salary-band span {
    color: #52607a;
    font-weight: 700;
}

body.app-aurora .hr-salary-band strong {
    color: #0f172a;
    font-size: 1.05rem;
}

body.app-aurora .mini-list-item {
    align-items: center;
}

body.app-aurora .mini-list-item > div {
    min-width: 0;
}

@media (max-width: 991.98px) {
    body.app-aurora .hr-salary-band {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* --- 2026-04-01 page-alignment and record-form layout pass --- */
body.app-page .main-content {
    padding-right: 0.9rem !important;
}

body.app-page .main-content > .alert,
body.app-page .main-content > section,
body.app-page .main-content > div.dashboard-card {
    margin-bottom: 1rem;
}

.module-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.dashboard-grid.app-module-grid.module-list-layout {
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-grid.app-module-grid.module-form-layout,
.dashboard-grid.app-module-grid.appointment-form-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(19rem, 0.85fr);
    align-items: start;
}

.module-form-card-page,
.record-context-card {
    overflow: hidden;
}

.module-record-form-shell,
.appointment-form-shell {
    padding: 1rem 1rem 1.1rem;
}

.appointment-readonly {
    display: flex;
    align-items: center;
    min-height: 2.8rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(241, 245, 249, 0.94)) !important;
    color: #334155;
}

.sidebar-heading {
    display: grid;
    gap: 0.24rem;
}

.sidebar-section {
    margin-bottom: 0.7rem;
}

.sidebar-section-title {
    padding: 0 0.3rem 0.22rem;
    letter-spacing: 0.14em;
}

.sidebar-nav {
    gap: 0.32rem;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.78rem;
}

.sidebar .nav-link i {
    flex: 0 0 2rem;
}

.sidebar .nav-link span {
    display: block;
    min-width: 0;
    line-height: 1.24;
    white-space: normal;
    text-wrap: balance;
}

.sidebar .nav-link:hover {
    transform: translateX(2px);
}

@media (max-width: 1199.98px) {
    .dashboard-grid.app-module-grid.module-form-layout,
    .dashboard-grid.app-module-grid.appointment-form-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 991.98px) {
    body.app-page .main-content {
        padding-right: 0 !important;
    }

    .module-toolbar-actions {
        justify-content: stretch;
    }

    .module-toolbar-actions .btn,
    .appointment-detail-actions .btn {
        width: 100%;
    }
}
/* --- 2026-04-01 appointment page cleanup and shell alignment --- */
.appointment-page-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appointment-summary-card {
    min-height: 100%;
}

.appointment-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.95rem;
    font-size: 1.1rem;
}

.appointment-summary-icon.tone-scheduled {
    background: rgba(219, 234, 254, 0.95);
    color: #1d4ed8;
}

.appointment-summary-icon.tone-completed {
    background: rgba(220, 252, 231, 0.95);
    color: #15803d;
}

.appointment-summary-icon.tone-cancelled {
    background: rgba(254, 226, 226, 0.96);
    color: #b91c1c;
}

.appointment-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.appointment-toolbar .section-intro {
    max-width: 48rem;
}

.appointment-toolbar .section-intro h3 {
    margin: 0.22rem 0 0.4rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.appointment-toolbar .section-intro p {
    margin: 0;
    color: #52607a;
}

.appointment-table-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.15rem;
}

.appointment-table-meta h4 {
    color: #0f172a;
    font-weight: 800;
}

.appointment-table-meta p {
    color: #64748b;
}

.app-table-pagination {
    padding: 0.5rem 1rem 1rem;
}

.app-table-pagination nav {
    margin: 0;
}

.app-table-pagination .pagination {
    margin: 0;
    justify-content: flex-end;
}

.sidebar-section-title {
    font-size: 0.66rem;
    font-weight: 800;
    color: rgba(219, 234, 254, 0.76);
}

.sidebar .nav-link {
    min-height: 3rem;
    padding-block: 0.6rem;
}

.sidebar .nav-link span {
    font-size: 0.94rem;
    font-weight: 700;
}

.table-action-group form {
    display: inline-flex;
}

@media (max-width: 991.98px) {
    .appointment-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .appointment-toolbar .section-intro,
    .appointment-toolbar .module-toolbar-actions,
    .appointment-toolbar .module-toolbar-actions .btn {
        width: 100%;
        max-width: none;
    }

    .app-table-pagination .pagination {
        justify-content: flex-start;
    }
}

/* --- 2026-04-01 enterprise list page pass --- */
.enterprise-list-page .main-content {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

.enterprise-list-page .content-header {
    gap: 1rem;
    flex-wrap: wrap;
}

.enterprise-list-page .content-header h4 {
    margin-left: 0 !important;
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    font-weight: 800;
    color: #11203b;
}

.enterprise-list-page .action-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.enterprise-list-page .action-buttons .btn,
.enterprise-list-page .action-buttons .form-select {
    min-height: 2.9rem;
    border-radius: 0.95rem;
}

.enterprise-list-page .table-shell {
    padding: 1rem;
    border-radius: 1.6rem;
}

.enterprise-list-page .app-table-wrap {
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.enterprise-list-page .filter-summary {
    margin-bottom: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.94));
}

.enterprise-list-page .filter-summary h6 {
    margin-bottom: 0.75rem !important;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #35506f;
}

.enterprise-list-page .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(14, 116, 144, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: #174266;
    font-size: 0.84rem;
    font-weight: 700;
}

.enterprise-list-page .app-table thead th {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.enterprise-list-page .app-table tbody td {
    vertical-align: middle;
}

.enterprise-list-page .table-action-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.enterprise-list-page .icon-action-btn {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
}

.enterprise-list-page .modal-content {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1.45rem;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

.enterprise-list-page .pagination {
    gap: 0.3rem;
}

.enterprise-list-page .page-link {
    border-radius: 0.85rem !important;
    min-width: 2.5rem;
    text-align: center;
    font-weight: 700;
}

.enterprise-list-page .page-item.active .page-link {
    background: linear-gradient(135deg, #0f7c86, #2563eb);
    border-color: transparent;
}

@media (max-width: 991.98px) {
    .enterprise-list-page .content-header,
    .enterprise-list-page .action-buttons {
        align-items: stretch;
    }

    .enterprise-list-page .action-buttons,
    .enterprise-list-page .action-buttons .btn,
    .enterprise-list-page .action-buttons form,
    .enterprise-list-page .action-buttons .form-select {
        width: 100%;
    }
}
/* --- 2026-04-01 enterprise shell refresh --- */
body.app-enterprise-shell {
    --app-bg: #f4f7fb;
    --app-surface: rgba(255, 255, 255, 0.96);
    --app-surface-soft: #f8fbff;
    --app-surface-muted: #eef4fa;
    --app-border: #d6e0ee;
    --app-text: #112033;
    --app-text-muted: #61718a;
    --app-primary: #0f766e;
    --app-primary-dark: #0b5e58;
    --app-blue: #1d4ed8;
    --app-blue-dark: #183c9c;
    --shadow-soft: 0 16px 35px rgba(15, 23, 42, 0.07);
    --shadow-card: 0 22px 48px rgba(15, 23, 42, 0.09);
    --sidebar-current-width: var(--sidebar-width);
    background:
        radial-gradient(circle at top left, rgba(14, 116, 144, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(29, 78, 216, 0.1), transparent 22%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.12), transparent 24%),
        linear-gradient(180deg, #f7fbff 0%, #edf4fb 100%);
}

body.app-enterprise-shell.sidebar-collapsed {
    --sidebar-current-width: var(--sidebar-collapsed-width);
}

body.app-enterprise-shell .app-shell,
body.app-enterprise-shell.sidebar-collapsed .app-shell {
    padding-top: calc(var(--header-stack-height, 104px) + 1.05rem) !important;
}

body.app-enterprise-shell .app-header,
body.app-enterprise-shell.sidebar-collapsed .app-header {
    position: fixed !important;
    inset: 0.9rem 1rem auto calc(var(--sidebar-current-width) + 1rem) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    z-index: 2200 !important;
}

body.app-enterprise-shell .app-header-main.app-header-main-unified {
    min-height: var(--header-height);
    padding: 0.95rem 1.1rem;
    border-radius: 1.3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 255, 0.94));
    border: 1px solid rgba(210, 224, 240, 0.96);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

body.app-enterprise-shell .app-header-leading {
    gap: 1rem;
    min-width: 0;
}

body.app-enterprise-shell .brand-lockup-inline {
    padding-right: 0.2rem;
}

body.app-enterprise-shell .app-header-copy {
    min-width: 0;
}

body.app-enterprise-shell .app-header-copy h1 {
    font-size: clamp(1.2rem, 0.95rem + 0.78vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0f172a;
}

body.app-enterprise-shell .eyebrow,
body.app-enterprise-shell .surface-overline,
body.app-enterprise-shell .hero-eyebrow,
body.app-enterprise-shell .sidebar-section-title {
    color: #0f766e;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.app-enterprise-shell .app-header-actions {
    justify-content: flex-end;
    gap: 0.6rem;
}

body.app-enterprise-shell .header-chip,
body.app-enterprise-shell .menu-toggle,
body.app-enterprise-shell .user-profile-trigger {
    border: 1px solid #d7e3f1;
    background: rgba(248, 251, 255, 0.96);
    color: #12263f;
    box-shadow: none;
}

body.app-enterprise-shell .header-chip {
    min-height: 2.8rem;
    padding: 0.6rem 0.92rem;
    border-radius: 0.95rem;
    font-size: 0.78rem;
}

body.app-enterprise-shell .header-chip-role {
    background: rgba(237, 244, 255, 0.98);
    color: #1d4ed8;
    border-color: #c9d7fb;
}

body.app-enterprise-shell .menu-toggle,
body.app-enterprise-shell .user-profile-trigger {
    border-radius: 0.98rem;
}

body.app-enterprise-shell .profile-dropdown {
    z-index: 2300;
    min-width: 14rem;
    padding: 0.45rem;
    border-radius: 1rem;
    border-color: #d9e4f1;
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.16);
}

body.app-enterprise-shell .sidebar {
    top: 0.9rem !important;
    left: 0.9rem !important;
    bottom: 0.9rem !important;
    width: var(--sidebar-current-width) !important;
}

body.app-enterprise-shell .sidebar-panel {
    height: 100%;
    border-radius: 1.45rem;
    border: 1px solid rgba(148, 182, 235, 0.2);
    background:
        linear-gradient(180deg, rgba(10, 25, 53, 0.97) 0%, rgba(20, 48, 94, 0.96) 52%, rgba(17, 104, 119, 0.92) 100%);
    box-shadow: 0 24px 46px rgba(8, 15, 33, 0.28);
    color: #e8f0fb;
}

body.app-enterprise-shell .sidebar-heading {
    padding: 1.15rem 1.05rem 0.3rem;
    gap: 0.18rem;
}

body.app-enterprise-shell .sidebar-kicker {
    color: rgba(226, 236, 253, 0.88);
    font-size: 0.69rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.app-enterprise-shell .sidebar-role {
    font-size: 1.18rem;
    font-weight: 700;
    color: #ffffff;
}

body.app-enterprise-shell .sidebar-plan {
    color: rgba(214, 229, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 700;
}

body.app-enterprise-shell .sidebar-scroll {
    padding: 0.25rem 0.2rem 1rem;
}

body.app-enterprise-shell .sidebar-section {
    margin-bottom: 0.9rem;
}

body.app-enterprise-shell .sidebar-section-title {
    display: inline-flex;
    padding: 0 0.35rem 0.35rem;
    color: rgba(197, 217, 251, 0.88);
    font-size: 0.68rem;
}

body.app-enterprise-shell .sidebar-nav {
    gap: 0.42rem;
}

body.app-enterprise-shell .sidebar .nav-link {
    min-height: 3.15rem;
    padding: 0.78rem 0.9rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.06);
    color: #e8f1ff;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body.app-enterprise-shell .sidebar .nav-link i {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.09);
    font-size: 0.95rem;
}

body.app-enterprise-shell .sidebar .nav-link span {
    font-weight: 700;
    color: inherit;
}

body.app-enterprise-shell .sidebar .nav-link:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(159, 189, 241, 0.32);
}

body.app-enterprise-shell .sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(20, 152, 184, 0.96), rgba(37, 99, 235, 0.95));
    border-color: rgba(191, 219, 254, 0.44);
    color: #ffffff;
    box-shadow: 0 16px 26px rgba(26, 74, 145, 0.34);
}

body.app-enterprise-shell .sidebar .nav-link.active i {
    background: rgba(255, 255, 255, 0.16);
}

body.app-enterprise-shell .main-content,
body.app-enterprise-shell.sidebar-collapsed .main-content {
    padding: 0 1rem 2rem !important;
}

body.app-enterprise-shell .surface-card,
body.app-enterprise-shell .stat-card,
body.app-enterprise-shell .main-content .card.shadow,
body.app-enterprise-shell .dashboard-card {
    border: 1px solid rgba(214, 224, 238, 0.98);
    border-radius: 1.28rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.94));
    box-shadow: var(--shadow-card);
}

body.app-enterprise-shell .dashboard-hero,
body.app-enterprise-shell .workspace-hero,
body.app-enterprise-shell .module-hero,
body.app-enterprise-shell .ipd-shell-header {
    padding: 1.35rem 1.45rem;
    border-radius: 1.35rem;
    border: 1px solid #d9e5f3;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.94) 52%, rgba(237, 253, 247, 0.94));
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

body.app-enterprise-shell .dashboard-hero h2,
body.app-enterprise-shell .module-hero h2,
body.app-enterprise-shell .ipd-shell-header h2 {
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0f172a;
}

body.app-enterprise-shell .patient-hero-pills,
body.app-enterprise-shell .surface-tag-row {
    gap: 0.5rem;
}

body.app-enterprise-shell .surface-tag,
body.app-enterprise-shell .feature-badge,
body.app-enterprise-shell .role-chip {
    border-radius: 999px;
    border-color: #d8e2f0;
    background: #f6f9fd;
    color: #29405d;
}

body.app-enterprise-shell .btn {
    border-radius: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

body.app-enterprise-shell .btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #0f766e, #1d4ed8);
    box-shadow: 0 16px 28px rgba(29, 78, 216, 0.2);
}

body.app-enterprise-shell .btn-outline-primary {
    color: #1d4ed8;
    border-color: #c6d7fb;
    background: rgba(248, 251, 255, 0.96);
}

body.app-enterprise-shell .btn-secondary,
body.app-enterprise-shell .btn-outline-secondary {
    color: #12263f;
    border-color: #d4dfef;
    background: #eef3f9;
}

body.app-enterprise-shell .app-table-wrap,
body.app-enterprise-shell .table-responsive {
    border-radius: 1.08rem;
}

body.app-enterprise-shell .app-table,
body.app-enterprise-shell .ipd-table {
    margin-bottom: 0;
}

body.app-enterprise-shell .app-table thead th,
body.app-enterprise-shell .ipd-table thead th {
    background: #f4f7fb;
    color: #586883;
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 0;
}

body.app-enterprise-shell .app-table tbody td,
body.app-enterprise-shell .ipd-table tbody td {
    border-color: #e7edf6;
    vertical-align: middle;
}

body.app-enterprise-shell .table-hover > tbody > tr:hover > * {
    background: rgba(244, 248, 253, 0.92);
}

body.app-enterprise-shell .form-control,
body.app-enterprise-shell .form-select,
body.app-enterprise-shell .appointment-readonly {
    min-height: 3rem;
    border-radius: 0.98rem;
    border: 1px solid #d6e1ef;
    background: rgba(251, 253, 255, 0.98);
    box-shadow: none;
}

body.app-enterprise-shell textarea.form-control {
    min-height: 7rem;
}

body.app-enterprise-shell .form-control:focus,
body.app-enterprise-shell .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.14);
}

body.app-enterprise-shell .module-record-form-page .module-hero,
body.app-enterprise-shell .ops-module-page .module-hero,
body.app-enterprise-shell .dedicated-module-page .module-hero,
body.app-enterprise-shell .generic-module-page .module-hero,
body.app-enterprise-shell .enterprise-list-page .dashboard-hero,
body.app-enterprise-shell .appointment-page-shell > section:first-child {
    margin-top: 0 !important;
}

body.app-enterprise-shell .module-toolbar-actions {
    align-items: center;
}

body.app-enterprise-shell .metric-list {
    gap: 0.82rem;
}

body.app-enterprise-shell .metric-row {
    align-items: flex-start;
    gap: 1rem;
}

body.app-enterprise-shell .metric-row strong {
    color: #0f172a;
}

body.app-enterprise-shell .patient-data-source-list {
    display: grid;
    gap: 0.82rem;
}

body.app-enterprise-shell .patient-data-source-item {
    padding: 0.92rem 0.95rem;
    border: 1px solid #e1e9f3;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f9fbff, #f2f8ff);
}

body.app-enterprise-shell .patient-data-source-item span {
    display: block;
    margin-bottom: 0.25rem;
    color: #0f766e;
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.app-enterprise-shell .patient-data-source-item strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

body.app-enterprise-shell .patient-data-source-item small {
    display: block;
    margin-top: 0.28rem;
    color: #62728a;
    line-height: 1.5;
}

body.app-enterprise-shell .ipd-shell {
    gap: 1rem;
}

@media (max-width: 991.98px) {
    body.app-enterprise-shell .app-header,
    body.app-enterprise-shell.sidebar-collapsed .app-header {
        inset: 0.75rem 0.75rem auto 0.75rem !important;
    }

    body.app-enterprise-shell .app-shell,
    body.app-enterprise-shell.sidebar-collapsed .app-shell {
        padding-top: calc(var(--header-stack-height, 122px) + 0.8rem) !important;
    }

    body.app-enterprise-shell .sidebar {
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: min(18.5rem, 86vw) !important;
    }

    body.app-enterprise-shell .main-content,
    body.app-enterprise-shell.sidebar-collapsed .main-content {
        padding: 0 0.2rem 1.5rem !important;
    }

    body.app-enterprise-shell .app-header-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    body.app-enterprise-shell .app-header-main.app-header-main-unified {
        padding: 0.9rem;
        border-radius: 1.15rem;
    }

    body.app-enterprise-shell .user-copy,
    body.app-enterprise-shell .header-chip-role,
    body.app-enterprise-shell .header-chip-plan {
        display: none;
    }

    body.app-enterprise-shell .dashboard-hero,
    body.app-enterprise-shell .workspace-hero,
    body.app-enterprise-shell .module-hero,
    body.app-enterprise-shell .ipd-shell-header {
        padding: 1rem;
    }
}
/* --- 2026-04-01 navigation refresh --- */
body.app-enterprise-shell .app-header-main.app-header-main-unified {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.96) 54%, rgba(239, 253, 248, 0.94));
}

body.app-enterprise-shell .brand-mark {
    background: linear-gradient(135deg, #0f766e, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(29, 78, 216, 0.22);
}

body.app-enterprise-shell .user-avatar-shell {
    background: transparent;
}

body.app-enterprise-shell .profile-fallback {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #0f766e, #1d4ed8);
    box-shadow: 0 12px 20px rgba(29, 78, 216, 0.2);
}

body.app-enterprise-shell .sidebar-scroll {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

body.app-enterprise-shell .sidebar-accordion {
    border: 1px solid rgba(171, 201, 246, 0.15);
    border-radius: 1.08rem;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

body.app-enterprise-shell .sidebar-accordion[open] {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(171, 201, 246, 0.24);
}

body.app-enterprise-shell .sidebar-accordion-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.78rem 0.88rem;
    cursor: pointer;
}

body.app-enterprise-shell .sidebar-accordion-summary::-webkit-details-marker {
    display: none;
}

body.app-enterprise-shell .sidebar-accordion-copy {
    display: grid;
    gap: 0.14rem;
    min-width: 0;
}

body.app-enterprise-shell .sidebar-step {
    color: rgba(208, 223, 248, 0.72);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.app-enterprise-shell .sidebar-section-title {
    padding: 0;
    color: #ffffff;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

body.app-enterprise-shell .sidebar-accordion-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

body.app-enterprise-shell .sidebar-section-badge {
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #dce9fb;
    font-size: 0.72rem;
    font-weight: 800;
}

body.app-enterprise-shell .sidebar-section-chevron {
    color: rgba(214, 227, 252, 0.72);
    font-size: 0.78rem;
    transition: transform 0.18s ease;
}

body.app-enterprise-shell .sidebar-accordion[open] .sidebar-section-chevron {
    transform: rotate(180deg);
}

body.app-enterprise-shell .sidebar-accordion .sidebar-nav {
    padding: 0 0.45rem 0.5rem;
}

body.app-enterprise-shell .sidebar-accordion .sidebar-nav .nav-link {
    min-height: 2.9rem;
}

body.app-enterprise-shell .stat-card {
    position: relative;
    overflow: hidden;
}

body.app-enterprise-shell .stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.95), rgba(37, 99, 235, 0.92));
}

body.app-enterprise-shell .module-status-card,
body.app-enterprise-shell .patient-data-source-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.95));
}

body.app-enterprise-shell .module-status-chip {
    border-radius: 999px;
    border: 1px solid #dbe6f4;
    background: #f8fbff;
    color: #25415f;
}

body.app-enterprise-shell .dashboard-hero::after,
body.app-enterprise-shell .module-hero::after {
    opacity: 0.18;
}

body.app-enterprise-shell .table-action-group.table-action-menu .table-action-trigger {
    border-radius: 0.82rem;
}

body.app-enterprise-shell .table-action-dropdown {
    border-radius: 0.95rem;
    border: 1px solid #d7e3f1;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.16);
}

body.app-enterprise-shell .sidebar-accordion-summary:hover {
    background: rgba(255, 255, 255, 0.04);
}

body.app-page.sidebar-collapsed .sidebar .sidebar-step,
body.app-page.sidebar-collapsed .sidebar .sidebar-section-badge,
body.app-page.sidebar-collapsed .sidebar .sidebar-section-chevron,
body.app-page.sidebar-collapsed .sidebar .sidebar-accordion-summary .sidebar-section-title {
    display: none !important;
}

body.app-page.sidebar-collapsed .sidebar .sidebar-accordion-summary {
    justify-content: center;
    padding: 0.45rem 0.3rem;
}

body.app-page.sidebar-collapsed .sidebar .sidebar-accordion {
    background: transparent;
    border-color: transparent;
}

body.app-page.sidebar-collapsed .sidebar .sidebar-accordion .sidebar-nav {
    padding: 0;
}

body.app-page.sidebar-collapsed .sidebar .sidebar-accordion .nav-link {
    justify-content: center;
}

@media (max-width: 991.98px) {
    body.app-enterprise-shell .sidebar-scroll {
        gap: 0.55rem;
    }
}
/* --- 2026-04-01 brand wordmark refresh --- */
.brand-lockup-wordmark {
    gap: 0.7rem;
}

.brand-wordmark-shell {
    padding: 0.4rem 0.6rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(214, 224, 238, 0.7);
}

.brand-wordmark {
    width: auto;
    height: 2.05rem;
    display: block;
}

.brand-subtitle {
    margin-top: 0;
    color: var(--app-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.app-enterprise-shell .brand-wordmark-shell {
    background: rgba(255, 255, 255, 0.84);
    box-shadow:
        inset 0 0 0 1px rgba(214, 224, 238, 0.88),
        0 10px 24px rgba(15, 23, 42, 0.06);
}

body.app-enterprise-shell .brand-wordmark {
    height: 1.95rem;
}

body.app-enterprise-shell .brand-subtitle {
    color: #52637d;
}

@media (max-width: 767.98px) {
    .brand-wordmark-shell {
        padding: 0.36rem 0.52rem;
    }

    .brand-wordmark {
        height: 1.75rem;
    }

    .brand-subtitle {
        display: none;
    }
}
/* --- 2026-04-01 RedStar inspired application shell --- */
body.app-page.app-redstar-shell {
    --redstar-bg: #edf2f7;
    --redstar-panel: #ffffff;
    --redstar-panel-soft: #f8fbfe;
    --redstar-border: #d9e3ee;
    --redstar-text: #24364b;
    --redstar-muted: #6d8096;
    --redstar-primary: #2f7edb;
    --redstar-primary-deep: #1e63b8;
    --redstar-accent: #35bfd0;
    --redstar-sidebar-top: #17395f;
    --redstar-sidebar-bottom: #102846;
    background: linear-gradient(180deg, #f3f6fa 0%, #eaf0f6 100%) !important;
    color: var(--redstar-text);
}

body.app-page.app-redstar-shell .sidebar {
    top: 1rem !important;
    left: 1rem !important;
    bottom: 1rem !important;
    width: 20rem !important;
}

body.app-page.app-redstar-shell .sidebar-panel {
    padding: 1rem 0.85rem !important;
    border-radius: 1rem !important;
    background: linear-gradient(180deg, var(--redstar-sidebar-top) 0%, #153454 55%, var(--redstar-sidebar-bottom) 100%) !important;
    border: 1px solid rgba(95, 124, 157, 0.48) !important;
    box-shadow: 0 22px 38px rgba(9, 25, 43, 0.28) !important;
    color: #eaf3ff !important;
    gap: 0.9rem !important;
}

body.app-page.app-redstar-shell .sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.15rem 0.35rem 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.app-page.app-redstar-shell .sidebar-brand-mark {
    display: flex;
    align-items: center;
    padding: 0.85rem 0.95rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
}

body.app-page.app-redstar-shell .sidebar-brand-wordmark {
    width: 10rem;
    max-width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

body.app-page.app-redstar-shell .sidebar-brand-meta {
    display: grid;
    gap: 0.18rem;
}

body.app-page.app-redstar-shell .sidebar-brand-meta small,
body.app-page.app-redstar-shell .sidebar-step {
    font-size: 0.63rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(226, 238, 255, 0.68);
}

body.app-page.app-redstar-shell .sidebar-brand-meta strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

body.app-page.app-redstar-shell .sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.8rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

body.app-page.app-redstar-shell .sidebar-user-avatar {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--redstar-primary), var(--redstar-accent));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(38, 104, 191, 0.35);
}

body.app-page.app-redstar-shell .sidebar-user-copy {
    display: grid;
    gap: 0.1rem;
}

body.app-page.app-redstar-shell .sidebar-user-copy strong {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}

body.app-page.app-redstar-shell .sidebar-user-copy span,
body.app-page.app-redstar-shell .sidebar-user-copy small {
    color: rgba(226, 238, 255, 0.72);
    font-size: 0.74rem;
    font-weight: 700;
}

body.app-page.app-redstar-shell .sidebar-scroll {
    padding-right: 0rem;
}

body.app-page.app-redstar-shell .sidebar-accordion {
    margin-bottom: 0.65rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

body.app-page.app-redstar-shell .sidebar-accordion[open] {
    border-color: rgba(102, 214, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

body.app-page.app-redstar-shell .sidebar-accordion-summary {
    padding: 0.9rem 0.95rem;
}

body.app-page.app-redstar-shell .sidebar-accordion-copy {
    gap: 0.18rem;
}

body.app-page.app-redstar-shell .sidebar-section-title {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
}

body.app-page.app-redstar-shell .sidebar-section-badge {
    min-width: 1.95rem;
    height: 1.95rem;
    border-radius: 999px;
    border: 1px solid rgba(102, 214, 255, 0.16);
    background: rgba(49, 145, 255, 0.16);
    color: #dff7ff;
    font-size: 0.72rem;
    font-weight: 800;
}

body.app-page.app-redstar-shell .sidebar-section-chevron {
    color: rgba(226, 238, 255, 0.72);
}

body.app-page.app-redstar-shell .sidebar-nav {
    padding: 0 0.55rem 0.55rem;
}

body.app-page.app-redstar-shell .sidebar .nav-link {
    min-height: 2.8rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.72rem;
    color: rgba(234, 243, 255, 0.84) !important;
    background: transparent !important;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.app-page.app-redstar-shell .sidebar .nav-link i {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #d7e9ff;
    flex: 0 0 auto;
}

body.app-page.app-redstar-shell .sidebar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

body.app-page.app-redstar-shell .sidebar .nav-link.active {
    color: #ffffff !important;
    border-color: transparent;
    background: linear-gradient(135deg, var(--redstar-primary), var(--redstar-accent)) !important;
    box-shadow: 0 12px 22px rgba(28, 96, 180, 0.35);
}

body.app-page.app-redstar-shell .sidebar .nav-link.active i {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

body.app-page.app-redstar-shell .app-header,
body.app-page.app-redstar-shell.sidebar-collapsed .app-header {
    position: static !important;
    inset: auto !important;
    margin: 0 0 1rem calc(var(--sidebar-width) + 1.2rem) !important;
    z-index: 5 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.app-page.app-redstar-shell.sidebar-collapsed .app-header {
    margin-left: calc(var(--sidebar-collapsed-width) + 1rem) !important;
}

body.app-page.app-redstar-shell .app-header-main.app-header-main-unified {
    min-height: 4.85rem;
    padding: 0.95rem 1.15rem !important;
    border-radius: 1rem !important;
    border: 1px solid var(--redstar-border) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
    box-shadow: 0 14px 30px rgba(18, 38, 63, 0.08) !important;
    backdrop-filter: none !important;
}

body.app-page.app-redstar-shell .app-header-leading {
    gap: 1rem;
}

body.app-page.app-redstar-shell .brand-lockup-wordmark {
    padding-right: 1rem;
    margin-right: 0.1rem;
    border-right: 1px solid #e8eef5;
}

body.app-page.app-redstar-shell .brand-wordmark-shell {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body.app-page.app-redstar-shell .brand-wordmark {
    height: 2rem !important;
    width: auto !important;
}

body.app-page.app-redstar-shell .brand-subtitle {
    margin-top: 0.2rem;
    color: var(--redstar-muted) !important;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.app-page.app-redstar-shell .eyebrow,
body.app-page.app-redstar-shell .hero-eyebrow,
body.app-page.app-redstar-shell .surface-overline {
    color: var(--redstar-primary) !important;
    font-size: 0.68rem !important;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.app-page.app-redstar-shell .app-header-copy h1 {
    margin-top: 0.15rem;
    color: var(--redstar-text) !important;
    font-size: clamp(1.3rem, 1.08rem + 0.6vw, 1.9rem) !important;
    font-weight: 700;
    letter-spacing: -0.03em;
}

body.app-page.app-redstar-shell .app-header-actions {
    gap: 0.55rem;
    flex-wrap: wrap !important;
}

body.app-page.app-redstar-shell .header-chip,
body.app-page.app-redstar-shell .menu-toggle,
body.app-page.app-redstar-shell .user-profile-trigger,
body.app-page.app-redstar-shell .quick-action,
body.app-page.app-redstar-shell .surface-tag {
    min-height: 2.85rem;
    border-radius: 0.85rem !important;
    border: 1px solid var(--redstar-border) !important;
    background: #f9fbfd !important;
    box-shadow: none !important;
    color: var(--redstar-text) !important;
}

body.app-page.app-redstar-shell .header-chip span.material-symbols-rounded,
body.app-page.app-redstar-shell .menu-toggle i {
    color: var(--redstar-primary) !important;
}

body.app-page.app-redstar-shell .header-chip-plan {
    background: #eef7ff !important;
    color: var(--redstar-primary) !important;
}

body.app-page.app-redstar-shell .header-chip-role {
    background: #edf9fa !important;
    color: #128692 !important;
}

body.app-page.app-redstar-shell .user-profile-trigger {
    padding-inline: 0.8rem !important;
}

body.app-page.app-redstar-shell .user-copy strong {
    color: var(--redstar-text);
}

body.app-page.app-redstar-shell .user-copy small {
    color: var(--redstar-muted);
}

body.app-page.app-redstar-shell .user-avatar-shell {
    background: linear-gradient(135deg, var(--redstar-primary), var(--redstar-accent)) !important;
    box-shadow: none !important;
}

body.app-page.app-redstar-shell .profile-fallback {
    color: #ffffff !important;
}

body.app-page.app-redstar-shell .profile-dropdown {
    border-radius: 0.95rem !important;
    border: 1px solid var(--redstar-border) !important;
    background: #ffffff !important;
    box-shadow: 0 18px 36px rgba(18, 38, 63, 0.12) !important;
}

body.app-page.app-redstar-shell .profile-dropdown .dropdown-item:hover {
    background: #f4f8fc !important;
}

body.app-page.app-redstar-shell .main-content {
    margin-left: calc(var(--sidebar-width)) !important;
    width: calc(100% - var(--sidebar-width) + 1.3rem) !important;
    min-height: calc(100vh - 2rem);
    padding: 0 0.15rem 2rem !important;
}

body.app-page.app-redstar-shell.sidebar-collapsed .main-content {
    margin-left: calc(var(--sidebar-collapsed-width) + 1rem) !important;
    width: calc(100% - var(--sidebar-collapsed-width) - 1rem) !important;
}

body.app-page.app-redstar-shell .dashboard-hero,
body.app-page.app-redstar-shell .content-header,
body.app-page.app-redstar-shell .surface-card,
body.app-page.app-redstar-shell .dashboard-card,
body.app-page.app-redstar-shell .stat-card,
body.app-page.app-redstar-shell .saas-card,
body.app-page.app-redstar-shell .table-shell,
body.app-page.app-redstar-shell .table-responsive,
body.app-page.app-redstar-shell .main-content .card,
body.app-page.app-redstar-shell .modal-content,
body.app-page.app-redstar-shell .patient-identity-card,
body.app-page.app-redstar-shell .hospital-table-shell {
    border-radius: 0.95rem !important;
    border: 1px solid var(--redstar-border) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
    box-shadow: 0 10px 24px rgba(18, 38, 63, 0.06) !important;
    backdrop-filter: none !important;
}

body.app-page.app-redstar-shell .dashboard-hero,
body.app-page.app-redstar-shell .content-header {
    position: relative;
    overflow: hidden;
}

body.app-page.app-redstar-shell .dashboard-hero::before,
body.app-page.app-redstar-shell .content-header::before,
body.app-page.app-redstar-shell .surface-card::before,
body.app-page.app-redstar-shell .table-shell::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--redstar-accent), var(--redstar-primary));
}

body.app-page.app-redstar-shell .surface-card,
body.app-page.app-redstar-shell .table-shell,
body.app-page.app-redstar-shell .modal-content {
    position: relative;
    overflow: hidden;
}

body.app-page.app-redstar-shell .dashboard-hero,
body.app-page.app-redstar-shell .content-header {
    padding: 1.15rem 1.2rem !important;
}

body.app-page.app-redstar-shell .surface-card,
body.app-page.app-redstar-shell .dashboard-card,
body.app-page.app-redstar-shell .stat-card,
body.app-page.app-redstar-shell .saas-card {
    padding: 1.05rem !important;
}

body.app-page.app-redstar-shell .surface-head.compact,
body.app-page.app-redstar-shell .appointment-table-meta,
body.app-page.app-redstar-shell .section-intro {
    position: relative;
    z-index: 1;
}

body.app-page.app-redstar-shell .patient-hero-pills,
body.app-page.app-redstar-shell .feature-badge-wrap,
body.app-page.app-redstar-shell .role-chip-row,
body.app-page.app-redstar-shell .module-toolbar-actions {
    gap: 0.55rem !important;
}

body.app-page.app-redstar-shell .surface-tag,
body.app-page.app-redstar-shell .feature-badge,
body.app-page.app-redstar-shell .role-chip,
body.app-page.app-redstar-shell .filter-chip {
    border-radius: 999px !important;
    border: 1px solid var(--redstar-border) !important;
    background: #f5f9fc !important;
    color: var(--redstar-muted) !important;
    box-shadow: none !important;
}

body.app-page.app-redstar-shell .role-chip.active,
body.app-page.app-redstar-shell .feature-badge.active {
    background: #eaf4ff !important;
    color: var(--redstar-primary) !important;
    border-color: #bfd6ef !important;
}

body.app-page.app-redstar-shell .stat-card {
    min-height: 8.8rem;
    position: relative;
    overflow: hidden;
}

body.app-page.app-redstar-shell .stat-card::after,
body.app-page.app-redstar-shell .appointment-summary-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--redstar-accent), var(--redstar-primary));
}

body.app-page.app-redstar-shell .stat-label,
body.app-page.app-redstar-shell .card-title,
body.app-page.app-redstar-shell .card-subtitle,
body.app-page.app-redstar-shell .table-empty-state,
body.app-page.app-redstar-shell .filter-summary h6,
body.app-page.app-redstar-shell .section-intro p,
body.app-page.app-redstar-shell .appointment-table-meta p {
    color: var(--redstar-muted) !important;
}

body.app-page.app-redstar-shell .stat-label,
body.app-page.app-redstar-shell .card-title {
    font-size: 0.72rem !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
}


body.app-page.app-redstar-shell .stat-value,
body.app-page.app-redstar-shell .card-number {
    font-size: clamp(1.7rem, 1.3rem + 0.9vw, 2.2rem) !important;
}

body.app-page.app-redstar-shell .stat-icon,
body.app-page.app-redstar-shell .appointment-summary-icon {
    width: 3.1rem !important;
    height: 3.1rem !important;
    border-radius: 0.9rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--redstar-primary), var(--redstar-accent)) !important;
    box-shadow: 0 12px 22px rgba(38, 104, 191, 0.22) !important;
}

body.app-page.app-redstar-shell .appointment-summary-icon.tone-completed {
    background: linear-gradient(135deg, #27b6c7, #1d9daa) !important;
}

body.app-page.app-redstar-shell .appointment-summary-icon.tone-cancelled {
    background: linear-gradient(135deg, #ef5350, #d73c45) !important;
}

body.app-page.app-redstar-shell .btn {
    min-height: 2.7rem;
    padding: 0.58rem 0.95rem;
    border-radius: 0.75rem !important;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: none !important;
}

body.app-page.app-redstar-shell .btn-primary {
    border-color: var(--redstar-primary) !important;
    background: linear-gradient(135deg, var(--redstar-primary), var(--redstar-primary-deep)) !important;
    color: #ffffff !important;
}

body.app-page.app-redstar-shell .btn-primary:hover,
body.app-page.app-redstar-shell .btn-primary:focus {
    border-color: var(--redstar-primary-deep) !important;
    background: linear-gradient(135deg, var(--redstar-primary-deep), #194f94) !important;
}

body.app-page.app-redstar-shell .btn-outline-primary,
body.app-page.app-redstar-shell .btn-outline-secondary,
body.app-page.app-redstar-shell .btn-outline-warning,
body.app-page.app-redstar-shell .btn-outline-success,
body.app-page.app-redstar-shell .btn-secondary {
    background: #f7fafc !important;
    color: var(--redstar-text) !important;
    border-color: var(--redstar-border) !important;
}

body.app-page.app-redstar-shell .btn-outline-primary:hover,
body.app-page.app-redstar-shell .btn-outline-secondary:hover,
body.app-page.app-redstar-shell .btn-outline-warning:hover,
body.app-page.app-redstar-shell .btn-outline-success:hover,
body.app-page.app-redstar-shell .btn-secondary:hover {
    background: #edf4fb !important;
    color: var(--redstar-primary-deep) !important;
    border-color: #bfd1e4 !important;
}

body.app-page.app-redstar-shell .table-shell {
    padding: 0 !important;
}

body.app-page.app-redstar-shell .app-table-wrap,
body.app-page.app-redstar-shell .dataTables_wrapper {
    padding: 1rem !important;
}

body.app-page.app-redstar-shell .table,
body.app-page.app-redstar-shell .data-table,
body.app-page.app-redstar-shell .app-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

body.app-page.app-redstar-shell .table thead th,
body.app-page.app-redstar-shell .data-table thead th,
body.app-page.app-redstar-shell .table-header-custom,
body.app-page.app-redstar-shell .dataTables_wrapper table.dataTable thead th {
    padding: 0.82rem 0.72rem !important;
    background: #f3f7fb !important;
    color: var(--redstar-muted) !important;
    border-bottom: 1px solid #e4ecf5 !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
}

body.app-page.app-redstar-shell .table tbody td,
body.app-page.app-redstar-shell .data-table tbody td,
body.app-page.app-redstar-shell .app-table tbody td,
body.app-page.app-redstar-shell .dataTables_wrapper table.dataTable tbody td {
    padding: 0.86rem 0.72rem !important;
    border-color: #e8eef5 !important;
    color: var(--redstar-text) !important;
    font-size: 0.84rem;
    font-weight: 700;
    background: #ffffff !important;
}

body.app-page.app-redstar-shell .table tbody tr:hover td,
body.app-page.app-redstar-shell .data-table tbody tr:hover td,
body.app-page.app-redstar-shell .app-table tbody tr:hover td {
    background: #f8fbff !important;
}

body.app-page.app-redstar-shell .empty-state,
body.app-page.app-redstar-shell .table-empty-state {
    color: var(--redstar-muted) !important;
}

body.app-page.app-redstar-shell .status-pill {
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

body.app-page.app-redstar-shell .dataTables_wrapper .dataTables_filter,
body.app-page.app-redstar-shell .dataTables_wrapper .dataTables_length,
body.app-page.app-redstar-shell .dataTables_wrapper .dataTables_info,
body.app-page.app-redstar-shell .dataTables_wrapper .dataTables_paginate {
    color: var(--redstar-muted) !important;
    font-weight: 700;
}

body.app-page.app-redstar-shell .dataTables_wrapper .dataTables_filter input,
body.app-page.app-redstar-shell .dataTables_wrapper .dataTables_length select,
body.app-page.app-redstar-shell .main-content input[type="text"],
body.app-page.app-redstar-shell .main-content input[type="email"],
body.app-page.app-redstar-shell .main-content input[type="date"],
body.app-page.app-redstar-shell .main-content input[type="number"],
body.app-page.app-redstar-shell .main-content input[type="password"],
body.app-page.app-redstar-shell .main-content input[type="search"],
body.app-page.app-redstar-shell .main-content input[type="time"],
body.app-page.app-redstar-shell .main-content select,
body.app-page.app-redstar-shell .main-content textarea,
body.app-page.app-redstar-shell .main-content .form-control,
body.app-page.app-redstar-shell .main-content .form-select {
    min-height: 2.7rem;
    border-radius: 0.75rem !important;
    border: 1px solid var(--redstar-border) !important;
    background: #ffffff !important;
    color: var(--redstar-text) !important;
    box-shadow: none !important;
}

body.app-page.app-redstar-shell .main-content textarea {
    min-height: 7rem;
}

body.app-page.app-redstar-shell .dataTables_wrapper .dataTables_filter input:focus,
body.app-page.app-redstar-shell .dataTables_wrapper .dataTables_length select:focus,
body.app-page.app-redstar-shell .main-content input:focus,
body.app-page.app-redstar-shell .main-content select:focus,
body.app-page.app-redstar-shell .main-content textarea:focus,
body.app-page.app-redstar-shell .main-content .form-control:focus,
body.app-page.app-redstar-shell .main-content .form-select:focus {
    border-color: rgba(47, 126, 219, 0.55) !important;
    box-shadow: 0 0 0 0.18rem rgba(47, 126, 219, 0.12) !important;
}

body.app-page.app-redstar-shell .form-label,
body.app-page.app-redstar-shell label {
    color: var(--redstar-text);
    font-size: 0.78rem;
    font-weight: 800;
}

body.app-page.app-redstar-shell .dataTables_wrapper .dataTables_paginate .paginate_button,
body.app-page.app-redstar-shell .pagination .page-link {
    border-radius: 0.65rem !important;
    border: 1px solid var(--redstar-border) !important;
    background: #ffffff !important;
    color: var(--redstar-text) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 2.45rem;
    min-height: 2.45rem;
    padding: 0.55rem 0.8rem !important;
    line-height: 1 !important;
}

body.app-page.app-redstar-shell .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.app-page.app-redstar-shell .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
body.app-page.app-redstar-shell .pagination .page-item.active .page-link {
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--redstar-primary), var(--redstar-primary-deep)) !important;
    color: #ffffff !important;
}

body.app-page.app-redstar-shell .pagination svg {
    width: 0.95rem !important;
    height: 0.95rem !important;
    flex-shrink: 0;
}

body.app-page.app-redstar-shell .alert,
body.app-page.app-redstar-shell .module-alert,
body.app-page.app-redstar-shell .filter-summary {
    border-radius: 0.9rem !important;
    border: 1px solid var(--redstar-border) !important;
    box-shadow: 0 8px 20px rgba(18, 38, 63, 0.04) !important;
}

body.app-page.app-redstar-shell .modal-header,
body.app-page.app-redstar-shell .modal-footer,
body.app-page.app-redstar-shell .modal-form-footer {
    border-color: #e6edf5 !important;
}

body.app-page.app-redstar-shell.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width) !important;
}

body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-brand-meta,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-user-copy,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-accordion-copy,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-section-badge,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-section-chevron,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar .nav-link span {
    display: none !important;
}

body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-brand,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-user-card,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-accordion-summary,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar .nav-link {
    justify-content: center !important;
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
}

body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-brand-mark,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-user-avatar {
    margin-inline: auto;
}

body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-brand-wordmark {
    width: 2rem;
}

@media (max-width: 991.98px) {
    body.app-page.app-redstar-shell .app-header,
    body.app-page.app-redstar-shell.sidebar-collapsed .app-header,
    body.app-page.app-redstar-shell .main-content,
    body.app-page.app-redstar-shell.sidebar-collapsed .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    body.app-page.app-redstar-shell .sidebar {
        width: min(17rem, calc(100vw - 1.5rem)) !important;
    }
}

@media (max-width: 767.98px) {
    body.app-page.app-redstar-shell .app-shell {
        padding: 0.75rem !important;
    }

    body.app-page.app-redstar-shell .app-header-main.app-header-main-unified,
    body.app-page.app-redstar-shell .dashboard-hero,
    body.app-page.app-redstar-shell .content-header,
    body.app-page.app-redstar-shell .surface-card,
    body.app-page.app-redstar-shell .dashboard-card,
    body.app-page.app-redstar-shell .stat-card,
    body.app-page.app-redstar-shell .saas-card,
    body.app-page.app-redstar-shell .table-shell {
        border-radius: 0.9rem !important;
    }

    body.app-page.app-redstar-shell .brand-lockup-wordmark {
        border-right: 0;
        padding-right: 0;
        margin-right: 0;
    }
}

/* --- 2026-04-01 doctor workflow and inline logo polish --- */
.brand-wordmark-shell,
.sidebar-brand-mark,
.auth-logo-wordmark {
    display: inline-flex;
    align-items: center;
}

.brand-wordmark-shell svg,
.brand-wordmark-shell .brand-wordmark,
.auth-logo-wordmark svg {
    display: block;
    width: auto;
    height: 100%;
}

.brand-wordmark-shell {
    height: 2rem;
}

.brand-wordmark-shell svg {
    height: 2rem;
    width: auto;
}

.sidebar-brand-mark svg {
    width: 10rem;
    height: auto;
    display: block;
}


.auth-logo-wordmark {
    min-height: 2rem;
}

.auth-logo-wordmark svg {
    width: 10.75rem;
    height: auto;
}

.doctor-form-shell {
    display: grid;
    gap: 1rem;
}

.doctor-management-hero,
.doctor-table-card,
.doctor-dashboard-grid,
.hospital-doctor-card {
    position: relative;
}

.hospital-doctor-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0.75rem 0 1rem;
}

.hospital-doctor-summary-item {
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(217, 227, 238, 0.92);
    border-radius: 0.85rem;
    background: #f8fbfe;
}

.hospital-doctor-summary-item span {
    display: block;
    color: var(--app-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hospital-doctor-summary-item strong {
    display: block;
    margin-top: 0.3rem;
    color: var(--app-text);
    font-size: 1.2rem;
    font-weight: 800;
}

.hospital-doctor-roster {
    gap: 0.7rem;
}

.doctor-dashboard-grid {
    grid-template-columns: minmax(18rem, 0.95fr) minmax(0, 1.05fr);
}

.doctor-dashboard-grid .metric-row strong {
    text-align: right;
}

body.app-page.app-redstar-shell .sidebar-brand-mark svg {
    filter: brightness(0) invert(1);
}

body.app-page.app-redstar-shell .brand-wordmark-shell svg {
    height: 2rem !important;
}

body.app-page.app-redstar-shell .auth-logo-wordmark svg {
    width: 10.75rem;
}

@media (max-width: 991.98px) {
    .hospital-doctor-summary-grid,
    .doctor-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

body.app-page.app-redstar-shell .sidebar-panel-demo {
    padding: 1rem 0.1rem 1.1rem !important;
}

body.app-page.app-redstar-shell .sidebar-brand-demo {
    gap: 0.55rem;
    padding-bottom: 0.85rem;
}

body.app-page.app-redstar-shell .sidebar-brand-demo .sidebar-brand-meta small {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(203, 222, 248, 0.78);
}

body.app-page.app-redstar-shell .sidebar-brand-demo .sidebar-brand-meta strong {
    font-size: 1.22rem;
    color: #fff;
}

body.app-page.app-redstar-shell .sidebar-user-card-demo {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(148, 179, 214, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.app-page.app-redstar-shell .sidebar-user-card-demo .sidebar-user-avatar {
    width: 2.9rem;
    height: 2.9rem;
    background: linear-gradient(135deg, #45c2d2, #2d6fdd);
    box-shadow: 0 12px 24px rgba(15, 76, 129, 0.34);
}

body.app-page.app-redstar-shell .sidebar-scroll-demo {
    gap: 1rem;
}

body.app-page.app-redstar-shell .sidebar-menu-group {
    display: grid;
    gap: 0.5rem;
}

body.app-page.app-redstar-shell .sidebar-menu-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.35rem;
}

body.app-page.app-redstar-shell .sidebar-menu-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(208, 225, 246, 0.72);
}

body.app-page.app-redstar-shell .sidebar-menu-group-count {
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fbff;
    font-size: 0.72rem;
    font-weight: 700;
}

body.app-page.app-redstar-shell .sidebar-nav-demo {
    display: grid;
    gap: 0.35rem;
}

body.app-page.app-redstar-shell .sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 3.35rem;
    padding: 0.72rem 0.82rem;
    border-radius: 0.95rem;
    text-decoration: none;
    color: #eaf4ff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.app-page.app-redstar-shell .sidebar-nav-link:hover {
    transform: translateX(2px);
    color: #fff;
    background: linear-gradient(180deg, rgba(69, 194, 210, 0.18), rgba(47, 126, 219, 0.15));
    border-color: rgba(96, 188, 219, 0.38);
    box-shadow: 0 10px 18px rgba(5, 18, 32, 0.16);
}

body.app-page.app-redstar-shell .sidebar-nav-link.active {
    background: linear-gradient(135deg, #36b6cf, #2c78dd);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 14px 24px rgba(22, 80, 145, 0.34);
}

body.app-page.app-redstar-shell .sidebar-link-icon {
    width: 15px;
    height: 15px;
    border-radius: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    padding: 0px 15px;
}

body.app-page.app-redstar-shell .sidebar-link-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
}

body.app-page.app-redstar-shell .sidebar-link-copy > span {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.15;
}

body.app-page.app-redstar-shell .sidebar-link-copy > small {
    font-size: 0.72rem;
    color: rgba(215, 229, 246, 0.72);
    letter-spacing: 0.05em;
}

body.app-page.app-redstar-shell .sidebar-nav-link.active .sidebar-link-copy > small {
    color: rgba(255, 255, 255, 0.84);
}

body.app-page.app-redstar-shell .sidebar-link-arrow {
    color: rgba(255, 255, 255, 0.6);
}

body.app-page.app-redstar-shell .sidebar-nav-link.active .sidebar-link-arrow {
    color: #fff;
}

.line-items-shell {
    display: grid;
    gap: 1rem;
}

.line-item-stack {
    display: grid;
    gap: 0.85rem;
}

.line-item-card {
    border: 1px solid rgba(47, 126, 219, 0.12);
    border-radius: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.line-item-grid {
    display: grid;
    gap: 0.85rem;
    align-items: end;
}

.line-item-grid-billing {
    grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 1fr)) auto;
}

.line-item-grid-purchase {
    grid-template-columns: repeat(7, minmax(0, 1fr)) auto;
}

.line-item-actions-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.line-item-meta {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(33, 65, 105, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
}

.line-item-stock {
    color: #667a92;
}

.line-item-total {
    font-weight: 700;
    color: #17395f;
}

.billing-totals-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.billing-totals-panel > div {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: #f6f9fc;
    border: 1px solid rgba(33, 65, 105, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.billing-totals-panel span {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c8098;
}

.billing-totals-panel strong {
    font-size: 1.05rem;
    color: #17395f;
}

.form-status-note {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(47, 126, 219, 0.08), rgba(53, 191, 208, 0.08));
    border: 1px solid rgba(47, 126, 219, 0.12);
    display: grid;
    gap: 0.2rem;
}

.form-status-note strong {
    color: #17395f;
}

@media (max-width: 1199.98px) {
    .line-item-grid-billing,
    .line-item-grid-purchase,
    .billing-totals-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .line-item-grid-billing,
    .line-item-grid-purchase,
    .billing-totals-panel,
    body.app-page.app-redstar-shell .sidebar-nav-link {
        grid-template-columns: 1fr;
    }

    .line-item-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-menu-group-header,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-link-copy,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-link-arrow {
    display: none !important;
}

body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-nav-link {
    justify-content: center !important;
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
}

body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-link-icon {
    margin: 0 auto;
}

/* --- 2026-04-02 Oreo Hospital theme conversion --- */
body.app-page.app-oreo-shell,
body.auth-page.auth-oreo-shell {
    --oreo-bg: #f4f7fb;
    --oreo-surface: #ffffff;
    --oreo-surface-soft: #f7faff;
    --oreo-border: #e4edf6;
    --oreo-text: #23364f;
    --oreo-muted: #7e8da3;
    --oreo-primary: #446dff;
    --oreo-primary-deep: #2b52db;
    --oreo-accent: #33b5e5;
    --oreo-success: #3bb273;
    --oreo-danger: #e35d6a;
    --oreo-sidebar-top: #253552;
    --oreo-sidebar-bottom: #1d2c46;
    background: linear-gradient(180deg, #f8fbff 0%, #f0f4f9 100%) !important;
    color: var(--oreo-text) !important;
}

body.app-page.app-oreo-shell {
    overflow-x: hidden;
}

body.app-page.app-oreo-shell .app-shell {
    padding: 1rem 1rem 2rem !important;
}

body.app-page.app-oreo-shell .sidebar {
    top: 1rem !important;
    left: 1rem !important;
    bottom: 1rem !important;
    width: 18.25rem !important;
}

body.app-page.app-oreo-shell .sidebar-panel-demo {
    padding: 1rem !important;
    border-radius: 1.5rem !important;
    background: linear-gradient(180deg, var(--oreo-sidebar-top) 0%, #263b5f 42%, var(--oreo-sidebar-bottom) 100%) !important;
    border: 1px solid rgba(140, 167, 203, 0.18) !important;
    box-shadow: 0 22px 46px rgba(11, 24, 41, 0.28) !important;
    gap: 1rem !important;
}

body.app-page.app-oreo-shell .sidebar-brand-demo {
    gap: 0.7rem;
    padding: 0.1rem;
    border-bottom: 0;
}

body.app-page.app-oreo-shell .sidebar-brand-mark {
    padding: 0.9rem 1rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.app-page.app-oreo-shell .sidebar-brand-mark svg {
    width: 9.75rem;
    height: auto;
}

body.app-page.app-oreo-shell .sidebar-brand-meta {
    gap: 0.28rem;
    padding: 0 0.25rem;
}

body.app-page.app-oreo-shell .sidebar-brand-meta small {
    color: rgba(223, 234, 248, 0.72);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

body.app-page.app-oreo-shell .sidebar-brand-meta strong {
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

body.app-page.app-oreo-shell .sidebar-user-card-demo {
    padding: 0.95rem 1rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(180, 205, 235, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.app-page.app-oreo-shell .sidebar-user-card-demo .sidebar-user-avatar {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #47c8ff, var(--oreo-primary));
    box-shadow: 0 12px 26px rgba(38, 98, 196, 0.3);
}

body.app-page.app-oreo-shell .sidebar-user-copy strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

body.app-page.app-oreo-shell .sidebar-user-copy span,
body.app-page.app-oreo-shell .sidebar-user-copy small {
    color: rgba(228, 238, 252, 0.78);
    font-size: 0.76rem;
    font-weight: 700;
}

body.app-page.app-oreo-shell .sidebar-scroll-demo {
    display: grid;
    gap: 0.9rem;
    padding-right: 0.1rem;
}

body.app-page.app-oreo-shell .oreo-sidebar-block {
    display: grid;
    gap: 0.55rem;
}

body.app-page.app-oreo-shell .oreo-sidebar-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0 0.2rem;
}

body.app-page.app-oreo-shell .oreo-sidebar-kicker {
    color: rgba(213, 226, 245, 0.76);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.app-page.app-oreo-shell .oreo-sidebar-count {
    min-width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(71, 200, 255, 0.16);
    border: 1px solid rgba(71, 200, 255, 0.18);
    color: #eaf7ff;
    font-size: 0.72rem;
    font-weight: 800;
}

body.app-page.app-oreo-shell .sidebar-shortcut-stack,
body.app-page.app-oreo-shell .sidebar-nav-oreo {
    display: grid;
    gap: 0.42rem;
}

body.app-page.app-oreo-shell .sidebar-dashboard-link,
body.app-page.app-oreo-shell .oreo-sidebar-link {
    min-height: 3.2rem;
    padding: 0.74rem 0.82rem;
    border-radius: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.82rem;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid transparent !important;
    color: rgba(233, 243, 255, 0.9) !important;
    box-shadow: none !important;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

body.app-page.app-oreo-shell .sidebar-dashboard-link:hover,
body.app-page.app-oreo-shell .oreo-sidebar-link:hover {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.085) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.app-page.app-oreo-shell .sidebar-dashboard-link.active,
body.app-page.app-oreo-shell .oreo-sidebar-link.active {
    background: linear-gradient(135deg, #eef3ff, #ffffff) !important;
    color: var(--oreo-text) !important;
    border-color: rgba(201, 218, 244, 0.85) !important;
    box-shadow: 0 14px 26px rgba(8, 21, 40, 0.18) !important;
}

body.app-page.app-oreo-shell .sidebar-dashboard-link .sidebar-link-icon,
body.app-page.app-oreo-shell .oreo-sidebar-link .sidebar-link-icon {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #e6f1ff;
    flex-shrink: 0;
}

body.app-page.app-oreo-shell .sidebar-dashboard-link.active .sidebar-link-icon,
body.app-page.app-oreo-shell .oreo-sidebar-link.active .sidebar-link-icon {
    background: linear-gradient(135deg, #4ec2ff, var(--oreo-primary));
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(67, 109, 255, 0.2);
}

body.app-page.app-oreo-shell .sidebar-dashboard-link .sidebar-link-copy,
body.app-page.app-oreo-shell .oreo-sidebar-link .sidebar-link-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

body.app-page.app-oreo-shell .sidebar-dashboard-link .sidebar-link-copy > span,
body.app-page.app-oreo-shell .oreo-sidebar-link .sidebar-link-copy > span {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.24;
}

body.app-page.app-oreo-shell .sidebar-dashboard-link .sidebar-link-copy > small,
body.app-page.app-oreo-shell .oreo-sidebar-link .sidebar-link-copy > small {
    color: rgba(224, 237, 255, 0.62);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.app-page.app-oreo-shell .sidebar-dashboard-link.active .sidebar-link-copy > small,
body.app-page.app-oreo-shell .oreo-sidebar-link.active .sidebar-link-copy > small {
    color: var(--oreo-muted);
}

body.app-page.app-oreo-shell .sidebar-dashboard-link .sidebar-link-arrow,
body.app-page.app-oreo-shell .oreo-sidebar-link .sidebar-link-arrow {
    color: rgba(224, 237, 255, 0.64);
}

body.app-page.app-oreo-shell .sidebar-dashboard-link.active .sidebar-link-arrow,
body.app-page.app-oreo-shell .oreo-sidebar-link.active .sidebar-link-arrow {
    color: var(--oreo-muted);
}

body.app-page.app-oreo-shell .app-header,
body.app-page.app-oreo-shell.sidebar-collapsed .app-header {
    position: static !important;
    inset: auto !important;
    margin: 0 0 1.15rem calc(var(--sidebar-width) + 1.3rem) !important;
    z-index: 5 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.app-page.app-oreo-shell.sidebar-collapsed .app-header {
    margin-left: calc(var(--sidebar-collapsed-width) + 1rem) !important;
}

body.app-page.app-oreo-shell .app-header-main.app-header-main-unified {
    min-height: 4.95rem;
    padding: 1rem 1.15rem !important;
    border-radius: 1.35rem !important;
    border: 1px solid var(--oreo-border) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
    box-shadow: 0 14px 34px rgba(27, 51, 84, 0.08) !important;
    gap: 1rem;
}

body.app-page.app-oreo-shell .app-header-leading {
    gap: 0.95rem;
}

body.app-page.app-oreo-shell .oreo-mobile-brand {
    min-width: 0;
}

body.app-page.app-oreo-shell .oreo-header-search {
    min-width: 20rem;
    max-width: 24rem;
    flex: 0 1 24rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid var(--oreo-border);
    background: linear-gradient(180deg, #fbfdff, #f5f8fc);
    color: var(--oreo-muted);
}

body.app-page.app-oreo-shell .oreo-header-search i {
    color: var(--oreo-muted);
    font-size: 0.86rem;
}

body.app-page.app-oreo-shell .oreo-header-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--oreo-text);
    font-size: 0.88rem;
}

body.app-page.app-oreo-shell .oreo-header-search input::placeholder {
    color: #a1afc3;
}

body.app-page.app-oreo-shell .app-header-copy {
    min-width: 0;
}

body.app-page.app-oreo-shell .eyebrow,
body.app-page.app-oreo-shell .hero-eyebrow,
body.app-page.app-oreo-shell .surface-overline {
    color: var(--oreo-primary) !important;
    font-size: 0.7rem !important;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.app-page.app-oreo-shell .app-header-copy h1 {
    margin-top: 0.1rem;
    color: var(--oreo-text) !important;
    font-size: clamp(1.28rem, 1.04rem + 0.52vw, 1.75rem) !important;
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.app-page.app-oreo-shell .app-header-actions {
    gap: 0.55rem;
    flex-wrap: wrap !important;
}

body.app-page.app-oreo-shell .header-chip,
body.app-page.app-oreo-shell .menu-toggle,
body.app-page.app-oreo-shell .user-profile-trigger,
body.app-page.app-oreo-shell .surface-tag,
body.app-page.app-oreo-shell .status-pill {
    min-height: 2.85rem;
    border-radius: 999px !important;
    border: 1px solid var(--oreo-border) !important;
    background: #ffffff !important;
    color: var(--oreo-text) !important;
    box-shadow: none !important;
}

body.app-page.app-oreo-shell .header-chip {
    font-size: 0.8rem;
    font-weight: 800;
}

body.app-page.app-oreo-shell .header-chip span.material-symbols-rounded,
body.app-page.app-oreo-shell .menu-toggle i {
    color: var(--oreo-primary) !important;
}

body.app-page.app-oreo-shell .menu-toggle {
    width: 2.85rem;
    padding: 0;
}

body.app-page.app-oreo-shell .user-profile-trigger {
    padding: 0.45rem 0.55rem 0.45rem 0.9rem !important;
}

body.app-page.app-oreo-shell .user-copy strong {
    color: var(--oreo-text);
    font-size: 0.86rem;
}

body.app-page.app-oreo-shell .user-copy small {
    color: var(--oreo-muted);
    font-size: 0.72rem;
}

body.app-page.app-oreo-shell .user-avatar-shell {
    background: linear-gradient(135deg, #4ec2ff, var(--oreo-primary)) !important;
}

body.app-page.app-oreo-shell .profile-dropdown {
    border-radius: 1.05rem !important;
    border: 1px solid var(--oreo-border) !important;
    background: #ffffff !important;
    box-shadow: 0 20px 40px rgba(17, 35, 61, 0.12) !important;
}

body.app-page.app-oreo-shell .profile-dropdown .dropdown-item:hover {
    background: #f5f8fc !important;
}

body.app-page.app-oreo-shell .main-content {
    margin-left: calc(var(--sidebar-width) + 0.2rem) !important;
    width: calc(100% - var(--sidebar-width) - 0.2rem) !important;
    min-height: calc(100vh - 2rem);
    padding: 0 0.15rem 2rem !important;
}

body.app-page.app-oreo-shell.sidebar-collapsed .main-content {
    margin-left: calc(var(--sidebar-collapsed-width) + 1rem) !important;
    width: calc(100% - var(--sidebar-collapsed-width) - 1rem) !important;
}

body.app-page.app-oreo-shell .dashboard-hero,
body.app-page.app-oreo-shell .content-header,
body.app-page.app-oreo-shell .surface-card,
body.app-page.app-oreo-shell .dashboard-card,
body.app-page.app-oreo-shell .stat-card,
body.app-page.app-oreo-shell .saas-card,
body.app-page.app-oreo-shell .table-shell,
body.app-page.app-oreo-shell .table-responsive,
body.app-page.app-oreo-shell .main-content .card,
body.app-page.app-oreo-shell .modal-content,
body.app-page.app-oreo-shell .patient-identity-card,
body.app-page.app-oreo-shell .hospital-table-shell {
    border-radius: 1.35rem !important;
    border: 1px solid var(--oreo-border) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%) !important;
    box-shadow: 0 14px 30px rgba(28, 49, 80, 0.07) !important;
    backdrop-filter: none !important;
}

body.app-page.app-oreo-shell .surface-head.compact,
body.app-page.app-oreo-shell .surface-head {
    margin-bottom: 1rem;
}

body.app-page.app-oreo-shell .module-alert,
body.app-page.app-oreo-shell .alert {
    border-radius: 1rem !important;
    border: 1px solid var(--oreo-border) !important;
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
}

body.app-page.app-oreo-shell .btn {
    border-radius: 0.95rem !important;
    font-weight: 800;
    letter-spacing: -0.01em;
}

body.app-page.app-oreo-shell .btn-primary {
    background: linear-gradient(135deg, var(--oreo-primary), var(--oreo-primary-deep)) !important;
    border-color: transparent !important;
    box-shadow: 0 12px 22px rgba(68, 109, 255, 0.22);
}

body.app-page.app-oreo-shell .btn-outline-primary,
body.app-page.app-oreo-shell .btn-outline-secondary,
body.app-page.app-oreo-shell .btn-secondary {
    background: #ffffff !important;
    border-color: var(--oreo-border) !important;
    color: var(--oreo-text) !important;
}

body.app-page.app-oreo-shell .dataTables_wrapper .dataTables_filter input,
body.app-page.app-oreo-shell .dataTables_wrapper .dataTables_length select,
body.app-page.app-oreo-shell .main-content input[type="text"],
body.app-page.app-oreo-shell .main-content input[type="email"],
body.app-page.app-oreo-shell .main-content input[type="date"],
body.app-page.app-oreo-shell .main-content input[type="number"],
body.app-page.app-oreo-shell .main-content input[type="password"],
body.app-page.app-oreo-shell .main-content input[type="search"],
body.app-page.app-oreo-shell .main-content input[type="time"],
body.app-page.app-oreo-shell .main-content select,
body.app-page.app-oreo-shell .main-content textarea,
body.app-page.app-oreo-shell .main-content .form-control,
body.app-page.app-oreo-shell .main-content .form-select {
    min-height: 2.8rem;
    border-radius: 1rem !important;
    border: 1px solid var(--oreo-border) !important;
    background: #ffffff !important;
    color: var(--oreo-text) !important;
    box-shadow: none !important;
}

body.app-page.app-oreo-shell .app-table-wrap,
body.app-page.app-oreo-shell .table-responsive {
    overflow: hidden;
}

body.app-page.app-oreo-shell .native-page-table,
body.app-page.app-oreo-shell .table {
    margin: 0;
}

body.app-page.app-oreo-shell .native-page-table thead th,
body.app-page.app-oreo-shell .table thead th {
    background: #f7faff !important;
    color: #8796a9 !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom-color: var(--oreo-border) !important;
}

body.app-page.app-oreo-shell .native-page-table tbody td,
body.app-page.app-oreo-shell .table tbody td {
    color: var(--oreo-text);
    border-bottom-color: #edf3f8 !important;
    vertical-align: middle;
}

body.app-page.app-oreo-shell .pagination .page-link {
    border-radius: 0.85rem !important;
    border-color: var(--oreo-border) !important;
    color: var(--oreo-text) !important;
    background: #ffffff !important;
}

body.app-page.app-oreo-shell .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--oreo-primary), var(--oreo-primary-deep)) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-main-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-main-hero > div:first-child,
body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-hero-meta-grid {
    padding: 1.35rem;
    border-radius: 1.35rem;
    border: 1px solid var(--oreo-border);
    background: linear-gradient(180deg, #ffffff, #fcfdff);
    box-shadow: 0 14px 30px rgba(28, 49, 80, 0.07);
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-main-hero h2 {
    margin-top: 0.25rem;
    font-size: clamp(2rem, 1.64rem + 1vw, 2.65rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-main-hero p {
    color: var(--oreo-muted);
    font-size: 0.96rem;
    max-width: 46rem;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .patient-hero-pills {
    margin-top: 1rem;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .surface-tag {
    padding-inline: 0.95rem !important;
    color: #50627b !important;
    background: #f7faff !important;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-hero-stat {
    border-radius: 1.15rem;
    border: 1px solid #ebf1f7;
    background: #fbfdff;
    box-shadow: none;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-kpi-card {
    min-height: 12.5rem;
    padding: 1.2rem !important;
    border-radius: 1.35rem !important;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-kpi-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(78, 194, 255, 0.18), rgba(68, 109, 255, 0.12));
    color: var(--oreo-primary);
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-module-pulse-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-pulse-card {
    padding: 1rem !important;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-pulse-icon {
    border-radius: 0.95rem;
    background: linear-gradient(135deg, #47c8ff, var(--oreo-primary));
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-analytics-grid {
    grid-template-columns: 1.15fr 0.92fr 1fr 0.88fr;
    gap: 1rem;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-analytics-card,
body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-table-card,
body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-side-card {
    padding: 1.15rem !important;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-flow-item,
body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-doctor-item,
body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-alert-item {
    border-radius: 1rem;
    border: 1px solid #ebf1f7;
    background: #fbfdff;
    box-shadow: none;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-doctor-avatar {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, #47c8ff, var(--oreo-primary));
    color: #ffffff;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-status-badge {
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-main-board {
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
    gap: 1rem;
}

body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-lower-board {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 1rem;
}

body.app-page.app-oreo-shell .oreo-appointment-page .appointment-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 1.45rem;
    border-radius: 0rem;
    border: 1px solid var(--oreo-border);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: 0 14px 30px rgba(28, 49, 80, 0.07);
    margin-bottom: 1rem;
}

body.app-page.app-oreo-shell .oreo-appointment-page .appointment-detail-copy h2 {
    margin-top: 0.28rem;
    font-size: clamp(1.9rem, 1.48rem + 0.8vw, 2.5rem);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

body.app-page.app-oreo-shell .oreo-appointment-page .patient-hero-pills {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

body.app-page.app-oreo-shell .oreo-appointment-page .appointment-detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

body.app-page.app-oreo-shell .oreo-appointment-page .appointment-detail-grid,
body.app-page.app-oreo-shell .oreo-appointment-page .appointment-detail-panels {
    display: grid;
    gap: 1rem;
}

body.app-page.app-oreo-shell .oreo-appointment-page .appointment-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}

body.app-page.app-oreo-shell .oreo-appointment-page .appointment-detail-panels {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.82fr);
}

body.app-page.app-oreo-shell .oreo-appointment-page .appointment-person-card,
body.app-page.app-oreo-shell .oreo-appointment-page .appointment-facts-card,
body.app-page.app-oreo-shell .oreo-appointment-page .appointment-note-card,
body.app-page.app-oreo-shell .oreo-appointment-page .appointment-timeline-card {
    position: relative;
    overflow: hidden;
}

body.app-page.app-oreo-shell .oreo-appointment-page .appointment-person-card::before,
body.app-page.app-oreo-shell .oreo-appointment-page .appointment-facts-card::before,
body.app-page.app-oreo-shell .oreo-appointment-page .appointment-note-card::before,
body.app-page.app-oreo-shell .oreo-appointment-page .appointment-timeline-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #42c3ff, var(--oreo-primary));
}

body.app-page.app-oreo-shell .oreo-appointment-page .appointment-person-body {
    display: flex;
    align-items: center;
    gap: 1rem;
}

body.app-page.app-oreo-shell .oreo-appointment-page .patient-avatar-circle {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1da3cf, var(--oreo-primary));
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(68, 109, 255, 0.2);
}

body.app-page.app-oreo-shell .oreo-appointment-page .appointment-person-body strong,
body.app-page.app-oreo-shell .oreo-appointment-page .appointment-person-body span {
    display: block;
}

body.app-page.app-oreo-shell .oreo-appointment-page .appointment-person-body strong {
    font-size: 1rem;
    color: var(--oreo-text);
}

body.app-page.app-oreo-shell .oreo-appointment-page .appointment-person-body span,
body.app-page.app-oreo-shell .oreo-appointment-page .appointment-note-copy,
body.app-page.app-oreo-shell .oreo-appointment-page .appointment-timeline-item span {
    color: var(--oreo-muted);
}

body.app-page.app-oreo-shell .oreo-appointment-page .metric-list {
    display: grid;
}

body.app-page.app-oreo-shell .oreo-appointment-page .metric-row {
    padding: 0.9rem 0;
    border-bottom: 1px solid #edf3f8;
}

body.app-page.app-oreo-shell .oreo-appointment-page .metric-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

body.app-page.app-oreo-shell .oreo-appointment-page .metric-row span {
    color: var(--oreo-muted);
    font-size: 0.8rem;
}

body.app-page.app-oreo-shell .oreo-appointment-page .metric-row strong {
    color: var(--oreo-text);
    font-size: 1rem;
    font-weight: 800;
}

body.app-page.app-oreo-shell .oreo-appointment-page .appointment-timeline {
    display: grid;
    gap: 0.85rem;
}

body.app-page.app-oreo-shell .oreo-appointment-page .appointment-timeline-item {
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    border: 1px solid #ebf1f7;
    background: #fbfdff;
}

body.app-page.app-oreo-shell .oreo-appointment-page .appointment-timeline-item strong {
    display: block;
    color: var(--oreo-text);
    margin-bottom: 0.18rem;
}

@media (max-width: 1399.98px) {
    body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-analytics-grid {
        grid-template-columns: 1fr 1fr;
    }

    body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-module-pulse-row,
    body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-main-hero,
    body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-main-board,
    body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-lower-board,
    body.app-page.app-oreo-shell .oreo-appointment-page .appointment-detail-hero,
    body.app-page.app-oreo-shell .oreo-appointment-page .appointment-detail-panels,
    body.app-page.app-oreo-shell .oreo-appointment-page .appointment-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    body.app-page.app-oreo-shell .app-header,
    body.app-page.app-oreo-shell.sidebar-collapsed .app-header,
    body.app-page.app-oreo-shell .main-content,
    body.app-page.app-oreo-shell.sidebar-collapsed .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    body.app-page.app-oreo-shell .sidebar {
        position: fixed !important;
        top: 0.85rem !important;
        left: 0.85rem !important;
        bottom: 0.85rem !important;
        width: min(19rem, calc(100vw - 1.7rem)) !important;
        max-width: calc(100vw - 1.7rem) !important;
        transform: translateX(calc(-100% - 1rem)) !important;
        z-index: 1600 !important;
    }

    body.app-page.app-oreo-shell.sidebar-open .sidebar {
        transform: translateX(0) !important;
    }

    body.app-page.app-oreo-shell .oreo-header-search {
        display: none !important;
    }

    body.app-page.app-oreo-shell .sidebar-dashboard-link .sidebar-link-copy > span,
    body.app-page.app-oreo-shell .oreo-sidebar-link .sidebar-link-copy > span {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}

@media (max-width: 767.98px) {
    body.app-page.app-oreo-shell .app-shell {
        padding: 0.75rem 0.75rem 1.4rem !important;
    }

    body.app-page.app-oreo-shell .app-header-main.app-header-main-unified {
        padding: 0.82rem 0.88rem !important;
    }

    body.app-page.app-oreo-shell .brand-subtitle,
    body.app-page.app-oreo-shell .header-chip-plan,
    body.app-page.app-oreo-shell .header-chip-role,
    body.app-page.app-oreo-shell .user-copy,
    body.app-page.app-oreo-shell .sidebar-link-arrow {
        display: none !important;
    }

    body.app-page.app-oreo-shell .app-header-copy h1 {
        font-size: 1.18rem !important;
    }

    body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-kpi-grid,
    body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-module-pulse-row,
    body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-analytics-grid,
    body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-main-board,
    body.app-page.app-oreo-shell .oreo-dashboard-page .redstar-lower-board {
        grid-template-columns: 1fr;
    }

    body.app-page.app-oreo-shell .oreo-appointment-page .appointment-person-body {
        align-items: flex-start;
    }
}

@media (max-width: 991.98px) {
    body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-brand-meta {
        display: grid !important;
    }

    body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-user-copy {
        display: grid !important;
    }

    body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-menu-group-header {
        display: flex !important;
    }

    body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-link-copy {
        display: flex !important;
    }

    body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-link-arrow {
        display: inline-flex !important;
    }

    body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-brand,
    body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-user-card,
    body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-dashboard-link,
    body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-nav-link.sidebar-nav-link-compact {
        justify-content: flex-start !important;
        padding-left: 0.78rem !important;
        padding-right: 0.78rem !important;
    }
}

@media (max-width: 991.98px) {
    body.app-page.app-redstar-shell {
        overflow-x: hidden;
    }

    body.app-page.app-redstar-shell .app-header-main.app-header-main-unified {
        gap: 0.85rem !important;
    }

    body.app-page.app-redstar-shell .app-header-actions {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 0.1rem;
    }

    body.app-page.app-redstar-shell .sidebar {
        position: fixed !important;
        top: 0.75rem !important;
        left: 0.75rem !important;
        bottom: 0.75rem !important;
        width: min(19.5rem, calc(100vw - 1.5rem)) !important;
        max-width: calc(100vw - 1.5rem) !important;
        transform: translateX(calc(-100% - 1rem)) !important;
        z-index: 1600 !important;
    }

    body.app-page.app-redstar-shell.sidebar-open .sidebar {
        transform: translateX(0) !important;
    }

    body.app-page.app-redstar-shell .sidebar-panel-demo {
        padding: 0.95rem 0.85rem 1rem !important;
    }

    body.app-page.app-redstar-shell .sidebar-scroll-demo {
        overflow-y: auto;
        padding-right: 0.2rem;
    }

    body.app-page.app-redstar-shell .sidebar-dashboard-link .sidebar-link-copy > span,
    body.app-page.app-redstar-shell .sidebar-nav-link.sidebar-nav-link-compact .sidebar-link-copy > span,
    body.app-page.app-redstar-shell .sidebar-menu-group-label span {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.2;
    }
}

@media (max-width: 767.98px) {
    body.app-page.app-redstar-shell .app-header-main.app-header-main-unified {
        padding: 0.8rem 0.85rem !important;
    }

    body.app-page.app-redstar-shell .app-header-leading {
        gap: 0.75rem !important;
    }

    body.app-page.app-redstar-shell .app-header-actions {
        flex-direction: row !important;
        align-items: center !important;
    }

    body.app-page.app-redstar-shell .header-chip-plan,
    body.app-page.app-redstar-shell .header-chip-role,
    body.app-page.app-redstar-shell .brand-subtitle,
    body.app-page.app-redstar-shell .user-copy {
        display: none !important;
    }

    body.app-page.app-redstar-shell .brand-lockup-wordmark {
        min-width: 0;
    }

    body.app-page.app-redstar-shell .brand-wordmark-shell,
    body.app-page.app-redstar-shell .brand-wordmark-shell svg {
        height: 1.7rem !important;
    }

    body.app-page.app-redstar-shell .app-header-copy h1 {
        font-size: 1.2rem !important;
    }

    body.app-page.app-redstar-shell .sidebar-nav-link.sidebar-nav-link-compact,
    body.app-page.app-redstar-shell .sidebar-dashboard-link {
        min-height: 3rem;
    }

    body.app-page.app-redstar-shell .sidebar-link-arrow {
        display: none !important;
    }
}

/* --- 2026-04-01 stabilization pass: dropdowns, native tables, QR attendance --- */
body.app-page.app-redstar-shell .app-header,
body.app-page.app-redstar-shell.sidebar-collapsed .app-header {
    position: relative !important;
    z-index: 1400 !important;
}

body.app-page.app-redstar-shell .app-header-main.app-header-main-unified,
body.app-page.app-redstar-shell .app-header-leading,
body.app-page.app-redstar-shell .app-header-actions,
body.app-page.app-redstar-shell .user-profile {
    overflow: visible !important;
}

body.app-page.app-redstar-shell .profile-dropdown {
    top: calc(100% + 0.65rem) !important;
    right: 0 !important;
    z-index: 1800 !important;
}

body.app-page.app-redstar-shell .main-content {
    position: relative;
    z-index: 1;
}

body.app-page.app-redstar-shell .native-page-table {
    width: 100%;
    min-width: 100%;
    table-layout: auto;
}

body.app-page.app-redstar-shell .native-page-table td strong,
body.app-page.app-redstar-shell .native-page-table td span {
    display: block;
}

body.app-page.app-redstar-shell .native-page-table td span {
    margin-top: 0.18rem;
    color: var(--redstar-muted) !important;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4;
}

body.app-page.app-redstar-shell .native-page-table .table-col-id,
body.app-page.app-redstar-shell .native-page-table .table-col-date,
body.app-page.app-redstar-shell .native-page-table .table-col-time,
body.app-page.app-redstar-shell .native-page-table .table-col-status,
body.app-page.app-redstar-shell .native-page-table .action-cell {
    white-space: nowrap;
}

body.app-page.app-redstar-shell .appointment-register-table .table-col-id {
    width: 8.25rem;
}

body.app-page.app-redstar-shell .appointment-register-table .table-col-department {
    min-width: 11rem;
}

body.app-page.app-redstar-shell .appointment-register-table .table-col-date {
    width: 7.5rem;
}

body.app-page.app-redstar-shell .appointment-register-table .table-col-time {
    width: 6rem;
}

body.app-page.app-redstar-shell .appointment-register-table .table-col-status {
    width: 7rem;
}

body.app-page.app-redstar-shell .native-page-table .action-cell {
    width: 8.5rem;
}

body.app-page.app-redstar-shell .qr-attendance-overview-grid,
body.app-page.app-redstar-shell .qr-scanner-grid,
body.app-page.app-redstar-shell .qr-card-layout {
    display: grid;
    gap: 1rem;
}

body.app-page.app-redstar-shell .qr-attendance-overview-grid,
body.app-page.app-redstar-shell .qr-card-layout,
body.app-page.app-redstar-shell .qr-scanner-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
}

body.app-page.app-redstar-shell .qr-attendance-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

body.app-page.app-redstar-shell .qr-attendance-action {
    border-radius: 1rem;
    border: 1px solid #deebf5;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 1rem;
    text-decoration: none;
    color: var(--redstar-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.app-page.app-redstar-shell .qr-attendance-action:hover {
    transform: translateY(-2px);
    color: var(--redstar-primary);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

body.app-page.app-redstar-shell .qr-attendance-action-static:hover {
    transform: none;
    color: var(--redstar-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.app-page.app-redstar-shell .qr-attendance-action-icon {
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 0.9rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--redstar-primary), var(--redstar-accent));
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
}

body.app-page.app-redstar-shell .qr-attendance-action strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.96rem;
}

body.app-page.app-redstar-shell .qr-attendance-action p,
body.app-page.app-redstar-shell .qr-scanner-help p,
body.app-page.app-redstar-shell .staff-id-qr-copy p,
body.app-page.app-redstar-shell .staff-id-card-top p {
    margin: 0;
    color: var(--redstar-muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

body.app-page.app-redstar-shell .qr-activity-list {
    display: grid;
    gap: 0.75rem;
}

body.app-page.app-redstar-shell .qr-activity-item {
    padding: 0.9rem 1rem;
    border: 1px solid #e7eef6;
    border-radius: 0.9rem;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
    background: #fbfdff;
}

body.app-page.app-redstar-shell .qr-activity-item strong {
    display: block;
    margin-bottom: 0.12rem;
}

body.app-page.app-redstar-shell .qr-activity-item p {
    margin: 0;
    color: var(--redstar-muted);
    font-size: 0.78rem;
}

body.app-page.app-redstar-shell .qr-card-filter-card {
    padding: 1rem 1.1rem !important;
}

body.app-page.app-redstar-shell .qr-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

body.app-page.app-redstar-shell .staff-id-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.1rem;
    border: 1px solid #dfe8f3;
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 32%),
        linear-gradient(160deg, #ffffff 0%, #f6faff 100%);
    box-shadow: 0 16px 30px rgba(18, 38, 63, 0.08);
    padding: 1.1rem;
}

body.app-page.app-redstar-shell .staff-id-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--redstar-primary), var(--redstar-accent));
}

body.app-page.app-redstar-shell .staff-id-card-top,
body.app-page.app-redstar-shell .staff-id-card-head,
body.app-page.app-redstar-shell .staff-id-qr-shell {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

body.app-page.app-redstar-shell .staff-id-card-head {
    margin: 1rem 0;
    align-items: center;
}

body.app-page.app-redstar-shell .staff-id-card-top h4,
body.app-page.app-redstar-shell .staff-id-card-head h3 {
    margin: 0;
    color: var(--redstar-text);
    font-weight: 700;
}

body.app-page.app-redstar-shell .staff-id-card-head p,
body.app-page.app-redstar-shell .staff-id-card-head strong {
    display: block;
    margin: 0.1rem 0 0;
}

body.app-page.app-redstar-shell .staff-id-card-head p {
    color: var(--redstar-muted);
    font-size: 0.82rem;
}

body.app-page.app-redstar-shell .staff-id-avatar {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--redstar-primary), var(--redstar-accent));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.2);
    flex-shrink: 0;
}

body.app-page.app-redstar-shell .staff-id-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 1rem;
}

body.app-page.app-redstar-shell .staff-id-meta div {
    padding: 0.72rem 0.8rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e8eff6;
}

body.app-page.app-redstar-shell .staff-id-meta span {
    display: block;
    margin-bottom: 0.22rem;
    color: var(--redstar-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.app-page.app-redstar-shell .staff-id-meta strong {
    display: block;
    color: var(--redstar-text);
    font-size: 0.84rem;
}

body.app-page.app-redstar-shell .staff-id-qr-shell {
    align-items: center;
}

body.app-page.app-redstar-shell .staff-id-qr {
    width: 9.6rem;
    height: 9.6rem;
    padding: 0.65rem;
    border-radius: 1rem;
    border: 1px solid #dce8f5;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

body.app-page.app-redstar-shell .staff-id-qr canvas,
body.app-page.app-redstar-shell .staff-id-qr svg {
    width: 100% !important;
    height: 100% !important;
}

body.app-page.app-redstar-shell .qr-scanner-panel,
body.app-page.app-redstar-shell .qr-scan-result-panel,
body.app-page.app-redstar-shell .qr-scan-recent-panel {
    padding: 1.05rem !important;
}

body.app-page.app-redstar-shell .qr-scanner-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: end;
    margin-bottom: 1rem;
}

body.app-page.app-redstar-shell .qr-scanner-field {
    flex: 1 1 auto;
}

body.app-page.app-redstar-shell .qr-reader-shell {
    min-height: 340px;
    border-radius: 1rem;
    border: 1px dashed #cddbeb;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    padding: 0.8rem;
    margin-bottom: 1rem;
}

body.app-page.app-redstar-shell #staffQrReader video {
    border-radius: 0.8rem;
}

body.app-page.app-redstar-shell .qr-scanner-help,
body.app-page.app-redstar-shell .qr-manual-form {
    border: 1px solid #e4edf6;
    border-radius: 0.95rem;
    background: #fbfdff;
    padding: 0.95rem;
}

body.app-page.app-redstar-shell .qr-manual-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

body.app-page.app-redstar-shell .qr-scan-result {
    min-height: 10rem;
    border-radius: 1rem;
    border: 1px dashed #d8e4f2;
    background: #fbfdff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

body.app-page.app-redstar-shell .qr-scan-result strong {
    font-size: 1rem;
    color: var(--redstar-text);
}

body.app-page.app-redstar-shell .qr-scan-result p {
    margin: 0;
    color: var(--redstar-muted);
}

body.app-page.app-redstar-shell .qr-scan-result.success {
    border-color: rgba(16, 185, 129, 0.28);
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.9), #ffffff);
}

body.app-page.app-redstar-shell .qr-scan-result.error {
    border-color: rgba(239, 68, 68, 0.26);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.9), #ffffff);
}

body.app-page.app-redstar-shell .qr-scan-result.loading {
    border-color: rgba(37, 99, 235, 0.2);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), #ffffff);
}

@media (max-width: 1199.98px) {
    body.app-page.app-redstar-shell .qr-attendance-overview-grid,
    body.app-page.app-redstar-shell .qr-card-layout,
    body.app-page.app-redstar-shell .qr-scanner-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    body.app-page.app-redstar-shell .staff-id-meta {
        grid-template-columns: 1fr;
    }

    body.app-page.app-redstar-shell .staff-id-card-top,
    body.app-page.app-redstar-shell .staff-id-card-head,
    body.app-page.app-redstar-shell .staff-id-qr-shell,
    body.app-page.app-redstar-shell .qr-scanner-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    body.app-page.app-redstar-shell .staff-id-qr {
        width: 100%;
        max-width: 10rem;
    }
}

@media print {
    body.app-page.app-redstar-shell .app-header,
    body.app-page.app-redstar-shell .sidebar,
    body.app-page.app-redstar-shell .module-alert,
    body.app-page.app-redstar-shell .qr-card-filter-card,
    body.app-page.app-redstar-shell .qr-card-side-panel,
    body.app-page.app-redstar-shell .action-buttons,
    body.app-page.app-redstar-shell .app-table-pagination {
        display: none !important;
    }

    body.app-page.app-redstar-shell .main-content {
        margin: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }

    body.app-page.app-redstar-shell .staff-id-card {
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* --- 2026-04-01 RedStar dashboard and sidebar refinement --- */
body.app-page.app-redstar-shell .sidebar-shortcut-stack {
    margin-bottom: 0.8rem;
}

body.app-page.app-redstar-shell .sidebar-dashboard-link {
    min-height: 3.2rem !important;
    margin-bottom: 0.4rem;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.app-page.app-redstar-shell .sidebar-dashboard-link.active {
    background: linear-gradient(135deg, var(--redstar-primary), var(--redstar-accent)) !important;
}

body.app-page.app-redstar-shell .sidebar-section-card {
    margin-bottom: 0.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

body.app-page.app-redstar-shell .sidebar-section-card.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 214, 255, 0.18);
}

body.app-page.app-redstar-shell .sidebar-section-head {
    padding: 0.82rem 0.88rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
}

body.app-page.app-redstar-shell .sidebar-section-head .sidebar-link-icon,
body.app-page.app-redstar-shell .sidebar-section-card .sidebar-link-icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.09);
    color: #dce9ff;
}

body.app-page.app-redstar-shell .sidebar-section-card.active > .sidebar-section-head .sidebar-link-icon,
body.app-page.app-redstar-shell .sidebar-dashboard-link.active .sidebar-link-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

body.app-page.app-redstar-shell .sidebar-section-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

body.app-page.app-redstar-shell .sidebar-section-caption {
    color: rgba(219, 231, 255, 0.62);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.app-page.app-redstar-shell .sidebar-section-count {
    min-width: 1.95rem;
    height: 1.95rem;
    border-radius: 999px;
    border: 1px solid rgba(102, 214, 255, 0.16);
    background: rgba(49, 145, 255, 0.16);
    color: #dff7ff;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.app-page.app-redstar-shell .sidebar-section-card .sidebar-nav {
    padding: 0 0.55rem 0.55rem;
}

body.app-page.app-redstar-shell .sidebar-section-card .sidebar-nav-link {
    margin-bottom: 0.36rem;
}

body.app-page.app-redstar-shell .sidebar-nav-link .sidebar-link-copy span,
body.app-page.app-redstar-shell .sidebar-section-copy .sidebar-section-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.app-page.app-redstar-shell .sidebar-nav-link .sidebar-link-copy small {
    color: rgba(222, 235, 255, 0.58);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

body.app-page.app-redstar-shell .redstar-main-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 1rem;
    align-items: stretch;
}

body.app-page.app-redstar-shell .redstar-main-hero p {
    max-width: 54rem;
}

body.app-page.app-redstar-shell .redstar-hero-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

body.app-page.app-redstar-shell .redstar-hero-stat {
    border-radius: 1rem;
    border: 1px solid #e3ebf4;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 1rem 1.05rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.app-page.app-redstar-shell .redstar-hero-stat-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--redstar-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.app-page.app-redstar-shell .redstar-hero-stat strong {
    display: block;
    color: var(--redstar-text);
    font-size: 2rem;
    line-height: 1;
}

body.app-page.app-redstar-shell .redstar-hero-stat small {
    display: block;
    margin-top: 0.3rem;
    color: var(--redstar-muted);
    font-size: 0.8rem;
}

body.app-page.app-redstar-shell .redstar-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.app-page.app-redstar-shell .redstar-kpi-card {
    min-height: 14.25rem;
    padding: 1.1rem !important;
}

body.app-page.app-redstar-shell .redstar-kpi-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

body.app-page.app-redstar-shell .redstar-kpi-card .stat-meta {
    margin: 0.65rem 0 0.95rem;
}

body.app-page.app-redstar-shell .redstar-kpi-metrics {
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid #e6edf5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

body.app-page.app-redstar-shell .redstar-kpi-metrics strong {
    display: block;
    color: var(--redstar-text);
    font-size: 0.95rem;
}

body.app-page.app-redstar-shell .redstar-kpi-metrics span {
    display: block;
    color: var(--redstar-muted);
    font-size: 0.72rem;
}

body.app-page.app-redstar-shell .redstar-module-pulse-row {
    margin: 1rem 0 1.1rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

body.app-page.app-redstar-shell .redstar-pulse-card {
    padding: 1rem !important;
}

body.app-page.app-redstar-shell .redstar-pulse-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
}

body.app-page.app-redstar-shell .redstar-pulse-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--redstar-primary), var(--redstar-accent));
    color: #ffffff;
}

body.app-page.app-redstar-shell .redstar-pulse-card h4 {
    margin: 0.12rem 0 0;
    color: var(--redstar-text);
    font-size: 1rem;
    font-weight: 700;
}

body.app-page.app-redstar-shell .redstar-pulse-card strong {
    display: block;
    color: var(--redstar-text);
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 0.45rem;
}

body.app-page.app-redstar-shell .redstar-pulse-card p {
    margin: 0;
    color: var(--redstar-muted);
    font-size: 0.8rem;
}

body.app-page.app-redstar-shell .redstar-dashboard-grid {
    display: grid;
    gap: 1rem;
}

body.app-page.app-redstar-shell .redstar-analytics-grid {
    grid-template-columns: 1.25fr 0.95fr 1fr 0.9fr;
    margin-bottom: 1rem;
}

body.app-page.app-redstar-shell .redstar-analytics-card {
    padding: 1.05rem !important;
}

body.app-page.app-redstar-shell .redstar-flow-stack {
    display: grid;
    gap: 0.85rem;
}

body.app-page.app-redstar-shell .redstar-flow-item {
    border-radius: 0.95rem;
    border: 1px solid #e6eef7;
    background: #fbfdff;
    padding: 0.95rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 122px;
    gap: 0.9rem;
    align-items: end;
}

body.app-page.app-redstar-shell .redstar-flow-item span,
body.app-page.app-redstar-shell .redstar-flow-item small {
    display: block;
}

body.app-page.app-redstar-shell .redstar-flow-item span {
    color: var(--redstar-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.app-page.app-redstar-shell .redstar-flow-item strong {
    display: block;
    margin: 0.2rem 0 0.28rem;
    color: var(--redstar-text);
    font-size: 1.95rem;
    line-height: 1;
}

body.app-page.app-redstar-shell .redstar-flow-item small {
    color: var(--redstar-muted);
    font-size: 0.78rem;
}

body.app-page.app-redstar-shell .redstar-flow-spark {
    height: 96px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.32rem;
}

body.app-page.app-redstar-shell .redstar-flow-spark span {
    width: 0.56rem;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.28), rgba(20, 184, 166, 0.95));
}

body.app-page.app-redstar-shell .redstar-donut-wrap {
    display: grid;
    gap: 1rem;
    justify-items: center;
}

body.app-page.app-redstar-shell .redstar-donut-chart {
    width: 16rem;
    height: 16rem;
    padding: 1rem;
    border-radius: 50%;
    background: var(--donut-fill);
    position: relative;
    display: grid;
    place-items: center;
}

body.app-page.app-redstar-shell .redstar-donut-chart::after {
    content: "";
    position: absolute;
    inset: 1.55rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #e8eef5;
}

body.app-page.app-redstar-shell .redstar-donut-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
}

body.app-page.app-redstar-shell .redstar-donut-inner strong {
    color: var(--redstar-text);
    font-size: 1.65rem;
    line-height: 1;
}

body.app-page.app-redstar-shell .redstar-donut-inner span {
    color: var(--redstar-muted);
    font-size: 0.78rem;
}

body.app-page.app-redstar-shell .redstar-donut-legend {
    width: 100%;
    display: grid;
    gap: 0.65rem;
}

body.app-page.app-redstar-shell .redstar-donut-legend-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

body.app-page.app-redstar-shell .redstar-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    flex-shrink: 0;
}

body.app-page.app-redstar-shell .redstar-donut-legend-item strong,
body.app-page.app-redstar-shell .redstar-donut-legend-item small {
    display: block;
}

body.app-page.app-redstar-shell .redstar-donut-legend-item small {
    color: var(--redstar-muted);
}

body.app-page.app-redstar-shell .redstar-bar-chart {
    height: 18rem;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.7rem;
    align-items: end;
}

body.app-page.app-redstar-shell .redstar-bar-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

body.app-page.app-redstar-shell .redstar-bar-item strong {
    color: var(--redstar-text);
    font-size: 0.82rem;
}

body.app-page.app-redstar-shell .redstar-bar-item span {
    color: var(--redstar-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

body.app-page.app-redstar-shell .redstar-bar-track {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #eef4fb;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

body.app-page.app-redstar-shell .redstar-bar-fill {
    width: 100%;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, #89a9ff 0%, #2f7edb 55%, #1ec8a5 100%);
}

body.app-page.app-redstar-shell .redstar-doctor-list {
    display: grid;
    gap: 0.72rem;
}

body.app-page.app-redstar-shell .redstar-doctor-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.72rem 0.8rem;
    border: 1px solid #e7eef6;
    border-radius: 0.9rem;
    background: #fbfdff;
}

body.app-page.app-redstar-shell .redstar-doctor-avatar {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2f7edb, #1ec8a5);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

body.app-page.app-redstar-shell .redstar-doctor-copy strong,
body.app-page.app-redstar-shell .redstar-doctor-copy small,
body.app-page.app-redstar-shell .redstar-doctor-copy span {
    display: block;
}

body.app-page.app-redstar-shell .redstar-doctor-copy small,
body.app-page.app-redstar-shell .redstar-doctor-copy span {
    color: var(--redstar-muted);
}

body.app-page.app-redstar-shell .redstar-doctor-copy span {
    font-size: 0.72rem;
}

body.app-page.app-redstar-shell .redstar-status-badge {
    padding: 0.34rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

body.app-page.app-redstar-shell .redstar-status-badge.tone-success {
    background: #ecfdf3;
    color: #16a34a;
}

body.app-page.app-redstar-shell .redstar-status-badge.tone-info {
    background: #eff6ff;
    color: #2563eb;
}

body.app-page.app-redstar-shell .redstar-status-badge.tone-warning {
    background: #fff7ed;
    color: #ea580c;
}

body.app-page.app-redstar-shell .redstar-status-badge.tone-danger {
    background: #fef2f2;
    color: #dc2626;
}

body.app-page.app-redstar-shell .redstar-main-board {
    grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.8fr);
    margin-bottom: 1rem;
}

body.app-page.app-redstar-shell .redstar-table-card,
body.app-page.app-redstar-shell .redstar-alert-card,
body.app-page.app-redstar-shell .redstar-quick-card,
body.app-page.app-redstar-shell .redstar-patient-card,
body.app-page.app-redstar-shell .redstar-load-card {
    padding: 1.05rem !important;
}

body.app-page.app-redstar-shell .redstar-alert-list {
    display: grid;
    gap: 0.75rem;
}

body.app-page.app-redstar-shell .redstar-alert-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 0.95rem;
    border: 1px solid #e8eef5;
}

body.app-page.app-redstar-shell .redstar-alert-item p,
body.app-page.app-redstar-shell .redstar-alert-item small {
    margin: 0;
    display: block;
}

body.app-page.app-redstar-shell .redstar-alert-item p {
    color: var(--redstar-text);
    font-size: 0.82rem;
    margin-top: 0.22rem;
}

body.app-page.app-redstar-shell .redstar-alert-item small {
    color: var(--redstar-muted);
    margin-top: 0.2rem;
}

body.app-page.app-redstar-shell .redstar-alert-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    background: rgba(255, 255, 255, 0.78);
}

body.app-page.app-redstar-shell .redstar-alert-item.tone-warning {
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.95), #ffffff);
    color: #c2410c;
}

body.app-page.app-redstar-shell .redstar-alert-item.tone-info,
body.app-page.app-redstar-shell .redstar-alert-item.tone-primary {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), #ffffff);
    color: #2563eb;
}

body.app-page.app-redstar-shell .redstar-alert-item.tone-danger {
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.95), #ffffff);
    color: #dc2626;
}

body.app-page.app-redstar-shell .redstar-alert-item.tone-success,
body.app-page.app-redstar-shell .redstar-alert-item.tone-teal {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.95), #ffffff);
    color: #16a34a;
}

body.app-page.app-redstar-shell .redstar-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
}

body.app-page.app-redstar-shell .redstar-lower-board {
    grid-template-columns: 1.15fr 1fr;
}

body.app-page.app-redstar-shell .redstar-patient-item .avatar-badge {
    background: linear-gradient(135deg, #2f7edb, #1ec8a5);
    color: #ffffff;
}

body.app-page.app-redstar-shell .redstar-load-row .load-bar span {
    background: linear-gradient(90deg, #1ec8a5, #2f7edb);
}

@media (max-width: 1399.98px) {
    body.app-page.app-redstar-shell .redstar-module-pulse-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.app-page.app-redstar-shell .redstar-analytics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1199.98px) {
    body.app-page.app-redstar-shell .redstar-main-hero,
    body.app-page.app-redstar-shell .redstar-main-board,
    body.app-page.app-redstar-shell .redstar-lower-board {
        grid-template-columns: 1fr;
    }

    body.app-page.app-redstar-shell .redstar-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    body.app-page.app-redstar-shell .redstar-kpi-grid,
    body.app-page.app-redstar-shell .redstar-module-pulse-row,
    body.app-page.app-redstar-shell .redstar-analytics-grid,
    body.app-page.app-redstar-shell .redstar-lower-board {
        grid-template-columns: 1fr;
    }

    body.app-page.app-redstar-shell .redstar-flow-item,
    body.app-page.app-redstar-shell .redstar-doctor-item {
        grid-template-columns: 1fr;
    }

    body.app-page.app-redstar-shell .redstar-doctor-item {
        justify-items: start;
    }

    body.app-page.app-redstar-shell .redstar-donut-chart {
        width: 13rem;
        height: 13rem;
    }

    body.app-page.app-redstar-shell .sidebar-section-head {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
}

/* --- 2026-04-01 sidebar cleanup pass: RedStar navigation --- */
body.app-page.app-redstar-shell .sidebar-shortcut-stack {
    display: grid;
    gap: 0.75rem;
}

body.app-page.app-redstar-shell .sidebar-dashboard-link {
    min-height: 4.1rem;
    padding: 0.85rem 0.9rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, rgba(56, 177, 228, 0.92), rgba(50, 123, 224, 0.94));
    border-color: rgba(148, 222, 255, 0.28);
    box-shadow: 0 16px 32px rgba(7, 28, 54, 0.22);
}

body.app-page.app-redstar-shell .sidebar-dashboard-link .sidebar-link-copy > span {
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.app-page.app-redstar-shell .sidebar-dashboard-link .sidebar-link-copy > small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.app-page.app-redstar-shell .sidebar-menu-group {
    display: grid;
    gap: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(150, 182, 220, 0.18);
}

body.app-page.app-redstar-shell .sidebar-menu-group:first-of-type {
    padding-top: 0.1rem;
    border-top: none;
}

body.app-page.app-redstar-shell .sidebar-menu-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.2rem;
}

body.app-page.app-redstar-shell .sidebar-menu-group-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: rgba(223, 235, 255, 0.9);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.app-page.app-redstar-shell .sidebar-menu-group-label i {
    color: rgba(92, 212, 247, 0.96);
    font-size: 0.84rem;
}

body.app-page.app-redstar-shell .sidebar-menu-group.active .sidebar-menu-group-label {
    color: #ffffff;
}

body.app-page.app-redstar-shell .sidebar-menu-group-count {
    min-width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 173, 228, 0.14);
    border: 1px solid rgba(92, 212, 247, 0.18);
    color: #e2f7ff;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

body.app-page.app-redstar-shell .sidebar-nav-demo {
    display: grid;
    gap: 0.34rem;
}

body.app-page.app-redstar-shell .sidebar-nav-link.sidebar-nav-link-compact {
    min-height: 3.15rem;
    padding: 0.7rem 0.78rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

body.app-page.app-redstar-shell .sidebar-nav-link.sidebar-nav-link-compact:hover {
    background: linear-gradient(180deg, rgba(62, 188, 236, 0.14), rgba(47, 126, 219, 0.12));
    border-color: rgba(96, 188, 219, 0.32);
    box-shadow: 0 10px 22px rgba(4, 17, 33, 0.14);
}

body.app-page.app-redstar-shell .sidebar-nav-link.sidebar-nav-link-compact.active {
    background: linear-gradient(135deg, rgba(63, 187, 234, 0.94), rgba(46, 120, 221, 0.95));
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 24px rgba(13, 48, 92, 0.26);
}

body.app-page.app-redstar-shell .sidebar-nav-link.sidebar-nav-link-compact .sidebar-link-copy {
    flex: 1;
}

body.app-page.app-redstar-shell .sidebar-nav-link.sidebar-nav-link-compact .sidebar-link-copy > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    font-weight: 700;
}

body.app-page.app-redstar-shell .sidebar-nav-link.sidebar-nav-link-compact .sidebar-link-copy > small {
    display: none;
}

body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-brand-meta,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-user-copy,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-menu-group-header,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-link-copy,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-link-arrow {
    display: none !important;
}

body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-brand,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-user-card,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-dashboard-link,
body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-nav-link.sidebar-nav-link-compact {
    justify-content: center !important;
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
}

body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-menu-group {
    padding-top: 0.55rem;
    border-top-color: rgba(150, 182, 220, 0.08);
}

body.app-page.app-redstar-shell.sidebar-collapsed .sidebar-link-icon {
    margin: 0 auto;
}

/* --- 2026-04-02 dashboard exact-match pass: Oreo-style board --- */
body.app-page.app-oreo-shell .oreo-dashboard-exact .main-content {
    padding: 0 0.15rem 2rem !important;
}

body.app-page.app-oreo-shell .oreo-dashboard-canvas {
    display: grid;
    gap: 1.1rem;
}

body.app-page.app-oreo-shell .oreo-dashboard-exact .surface-card {
    overflow: hidden;
}

body.app-page.app-oreo-shell .oreo-page-ribbon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.45rem 1.65rem;
    border-radius: 0 0 1rem 1rem;
    background: linear-gradient(135deg, #15c6c8 0%, #10c2d3 52%, #1bc0c9 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(11, 180, 196, 0.26);
}

body.app-page.app-oreo-shell .oreo-page-ribbon::before,
body.app-page.app-oreo-shell .oreo-page-ribbon::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

body.app-page.app-oreo-shell .oreo-page-ribbon::before {
    width: 16rem;
    height: 16rem;
    right: -4rem;
    top: -10rem;
}

body.app-page.app-oreo-shell .oreo-page-ribbon::after {
    width: 11rem;
    height: 11rem;
    right: 14rem;
    bottom: -6.5rem;
}

body.app-page.app-oreo-shell .oreo-page-ribbon-copy,
body.app-page.app-oreo-shell .oreo-page-ribbon-stats {
    position: relative;
    z-index: 1;
}

body.app-page.app-oreo-shell .oreo-banner-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.9;
}

body.app-page.app-oreo-shell .oreo-page-ribbon-copy h2 {
    margin: 0;
    font-size: clamp(1.8rem, 1.52rem + 0.72vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

body.app-page.app-oreo-shell .oreo-page-ribbon-copy p {
    margin: 0.22rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
}

body.app-page.app-oreo-shell .oreo-page-ribbon-stats {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

body.app-page.app-oreo-shell .oreo-page-ribbon-stats article {
    min-width: 8rem;
    padding: 0.8rem 0.95rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

body.app-page.app-oreo-shell .oreo-page-ribbon-stats article span,
body.app-page.app-oreo-shell .oreo-page-ribbon-stats article small {
    display: block;
    color: rgba(255, 255, 255, 0.8);
}

body.app-page.app-oreo-shell .oreo-page-ribbon-stats article strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
}

body.app-page.app-oreo-shell .oreo-breadcrumb-pill {
    min-width: auto !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    padding-inline: 1rem !important;
    border-radius: 999px !important;
}

body.app-page.app-oreo-shell .oreo-top-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

body.app-page.app-oreo-shell .oreo-top-metric-card {
    padding: 1.2rem 1.25rem !important;
}

body.app-page.app-oreo-shell .oreo-top-metric-copy {
    display: grid;
    gap: 0.28rem;
    margin-bottom: 0.9rem;
}

body.app-page.app-oreo-shell .oreo-top-metric-copy strong {
    font-size: 2rem;
    line-height: 1;
    color: var(--oreo-text);
    letter-spacing: -0.04em;
}

body.app-page.app-oreo-shell .oreo-top-metric-copy span {
    color: var(--oreo-muted);
    font-size: 0.92rem;
}

body.app-page.app-oreo-shell .oreo-top-metric-card h3 {
    margin: 0 0 0.75rem;
    color: #6d7f95;
    font-size: 0.98rem;
    font-weight: 700;
}

body.app-page.app-oreo-shell .oreo-progress-track {
    width: 100%;
    height: 0.48rem;
    border-radius: 999px;
    background: #ebeff4;
    overflow: hidden;
}

body.app-page.app-oreo-shell .oreo-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

body.app-page.app-oreo-shell .oreo-progress-track.tone-primary span {
    background: linear-gradient(90deg, #f48c9d, #f1c4b7);
}

body.app-page.app-oreo-shell .oreo-progress-track.tone-teal span {
    background: linear-gradient(90deg, #74df97, #c8f05a);
}

body.app-page.app-oreo-shell .oreo-progress-track.tone-blue span {
    background: linear-gradient(90deg, #7f9bff, #8f79ff);
}

body.app-page.app-oreo-shell .oreo-progress-track.tone-amber span {
    background: linear-gradient(90deg, #ffcf7b, #ff9e80);
}

body.app-page.app-oreo-shell .oreo-top-metric-card small {
    display: block;
    margin-top: 0.55rem;
    color: #7b8da2;
    font-size: 0.9rem;
}

body.app-page.app-oreo-shell .oreo-core-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(305px, 0.7fr);
    gap: 1rem;
}

body.app-page.app-oreo-shell .oreo-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

body.app-page.app-oreo-shell .oreo-card-head.stacked {
    align-items: center;
}

body.app-page.app-oreo-shell .oreo-card-head.compact {
    margin-bottom: 0.8rem;
}

body.app-page.app-oreo-shell .oreo-card-head h3 {
    margin: 0;
    color: #5f7085;
    font-size: 1.04rem;
    font-weight: 400;
}

body.app-page.app-oreo-shell .oreo-card-head h3 span {
    color: #11c2d0;
    font-weight: 800;
}

body.app-page.app-oreo-shell .oreo-card-head p {
    margin: 0.2rem 0 0;
    color: var(--oreo-muted);
    font-size: 0.9rem;
}

body.app-page.app-oreo-shell .oreo-card-actions {
    display: inline-flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

body.app-page.app-oreo-shell .oreo-card-actions .btn,
body.app-page.app-oreo-shell .oreo-card-dismiss {
    min-height: 2.45rem !important;
    border-radius: 999px !important;
    padding-inline: 1rem;
}

body.app-page.app-oreo-shell .oreo-card-dismiss {
    width: 2.45rem;
    min-width: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--oreo-border);
    background: #ffffff;
    color: #9aabc0;
}

body.app-page.app-oreo-shell .oreo-survey-card,
body.app-page.app-oreo-shell .oreo-side-table-card,
body.app-page.app-oreo-shell .oreo-timeline-card,
body.app-page.app-oreo-shell .oreo-location-card,
body.app-page.app-oreo-shell .oreo-spark-card,
body.app-page.app-oreo-shell .oreo-revenue-card,
body.app-page.app-oreo-shell .oreo-table-card,
body.app-page.app-oreo-shell .oreo-mini-stat-card {
    padding: 1.15rem 1.25rem !important;
}

body.app-page.app-oreo-shell .oreo-chart-shell {
    display: grid;
    gap: 0.45rem;
}

body.app-page.app-oreo-shell .oreo-area-chart {
    width: 100%;
    height: 21rem;
}

body.app-page.app-oreo-shell .oreo-area-chart line {
    stroke: #eef3f7;
    stroke-width: 1;
}

body.app-page.app-oreo-shell .oreo-area {
    opacity: 0.82;
}

body.app-page.app-oreo-shell .oreo-area.area-a {
    fill: rgba(255, 209, 83, 0.76);
}

body.app-page.app-oreo-shell .oreo-area.area-b {
    fill: rgba(172, 143, 231, 0.3);
}

body.app-page.app-oreo-shell .oreo-area.area-c {
    fill: rgba(82, 88, 97, 0.36);
}

body.app-page.app-oreo-shell .oreo-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

body.app-page.app-oreo-shell .oreo-line.line-a {
    stroke: #ffd153;
}

body.app-page.app-oreo-shell .oreo-line.line-b {
    stroke: rgba(173, 145, 231, 0.92);
}

body.app-page.app-oreo-shell .oreo-line.line-c {
    stroke: rgba(93, 97, 103, 0.92);
}

body.app-page.app-oreo-shell .oreo-chart-labels {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
    color: #8a99ab;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

body.app-page.app-oreo-shell .oreo-survey-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #edf3f8;
    margin-top: 0.8rem;
}

body.app-page.app-oreo-shell .oreo-survey-stats article {
    padding: 1rem 0.85rem 0.2rem;
}

body.app-page.app-oreo-shell .oreo-survey-stats strong {
    display: block;
    color: var(--oreo-text);
    font-size: 1.1rem;
    font-weight: 800;
}

body.app-page.app-oreo-shell .oreo-survey-stats span {
    color: var(--oreo-muted);
}

body.app-page.app-oreo-shell .oreo-mini-spectrum {
    display: flex;
    align-items: end;
    gap: 0.32rem;
    min-height: 3.9rem;
    margin-bottom: 1rem;
}

body.app-page.app-oreo-shell .oreo-mini-spectrum span {
    width: 0.38rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.25));
    opacity: 0.9;
}

body.app-page.app-oreo-shell .oreo-mini-spectrum.slim {
    min-height: 2.9rem;
    margin: 0;
}

body.app-page.app-oreo-shell .oreo-mini-spectrum.slim span {
    width: 0.34rem;
    background: linear-gradient(180deg, rgba(17, 194, 208, 0.9), rgba(75, 111, 241, 0.55));
}

body.app-page.app-oreo-shell .oreo-mini-spectrum.monochrome {
    justify-content: center;
    margin: 1rem 0 0.75rem;
}

body.app-page.app-oreo-shell .oreo-mini-spectrum.monochrome span {
    width: 0.32rem;
    background: linear-gradient(180deg, rgba(24, 36, 54, 0.92), rgba(24, 36, 54, 0.25));
}

body.app-page.app-oreo-shell .oreo-ghost-map {
    position: relative;
    min-height: 9rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background:
        radial-gradient(circle at 18% 42%, rgba(17, 194, 208, 0.22) 0 0.65rem, transparent 0.7rem),
        radial-gradient(circle at 44% 35%, rgba(17, 194, 208, 0.22) 0 0.52rem, transparent 0.56rem),
        radial-gradient(circle at 68% 62%, rgba(255, 192, 117, 0.3) 0 0.52rem, transparent 0.56rem),
        radial-gradient(circle at 80% 44%, rgba(186, 149, 255, 0.24) 0 0.48rem, transparent 0.52rem),
        linear-gradient(180deg, rgba(246, 249, 252, 0.96), rgba(255, 255, 255, 0.8));
    overflow: hidden;
}

body.app-page.app-oreo-shell .oreo-ghost-map::before {
    content: "";
    position: absolute;
    inset: 18% 10% 16%;
    background:
        radial-gradient(ellipse at 16% 42%, rgba(127, 146, 179, 0.16) 0 14%, transparent 15%),
        radial-gradient(ellipse at 42% 38%, rgba(127, 146, 179, 0.16) 0 12%, transparent 13%),
        radial-gradient(ellipse at 72% 54%, rgba(127, 146, 179, 0.16) 0 14%, transparent 15%);
    filter: blur(1px);
}

body.app-page.app-oreo-shell .oreo-ghost-map .dot {
    position: absolute;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 18px rgba(17, 194, 208, 0.18);
}

body.app-page.app-oreo-shell .oreo-ghost-map .dot-one { top: 34%; left: 16%; background: #9ee7ff; }
body.app-page.app-oreo-shell .oreo-ghost-map .dot-two { top: 31%; left: 43%; background: #11c2d0; }
body.app-page.app-oreo-shell .oreo-ghost-map .dot-three { top: 60%; left: 68%; background: #ffd153; }
body.app-page.app-oreo-shell .oreo-ghost-map .dot-four { top: 43%; left: 79%; background: #c6a1ff; }

body.app-page.app-oreo-shell .oreo-side-table-head,
body.app-page.app-oreo-shell .oreo-side-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
}

body.app-page.app-oreo-shell .oreo-side-table-head {
    padding-bottom: 0.7rem;
    margin-bottom: 0.2rem;
    color: #6e8095;
    font-size: 0.84rem;
    font-weight: 800;
    border-bottom: 1px solid #edf3f8;
}

body.app-page.app-oreo-shell .oreo-side-table-body {
    display: grid;
    gap: 0.45rem;
}

body.app-page.app-oreo-shell .oreo-side-table-row {
    padding: 0.75rem 0.85rem;
    border-radius: 0.95rem;
    background: #f7fafc;
}

body.app-page.app-oreo-shell .oreo-side-table-row span {
    color: #6f7f94;
}

body.app-page.app-oreo-shell .oreo-side-table-row strong {
    color: var(--oreo-text);
}

body.app-page.app-oreo-shell .oreo-mid-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
    gap: 1rem;
}

body.app-page.app-oreo-shell .oreo-timeline-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(138, 122, 232, 0.2), rgba(244, 231, 255, 0.35));
    margin-bottom: 1rem;
}

body.app-page.app-oreo-shell .oreo-timeline-hero strong {
    display: block;
    font-size: 3.4rem;
    line-height: 0.95;
    font-weight: 300;
    color: #ffffff;
    text-shadow: 0 12px 24px rgba(63, 81, 181, 0.24);
}

body.app-page.app-oreo-shell .oreo-timeline-hero span {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.app-page.app-oreo-shell .oreo-timeline-hero p {
    margin: 0;
    color: #6e768f;
    font-size: 0.95rem;
}

body.app-page.app-oreo-shell .oreo-timeline-list {
    display: grid;
    gap: 0.85rem;
}

body.app-page.app-oreo-shell .oreo-timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: start;
}

body.app-page.app-oreo-shell .oreo-timeline-marker {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    margin-top: 0.28rem;
    background: #11c2d0;
    box-shadow: 0 0 0 4px rgba(17, 194, 208, 0.12);
}

body.app-page.app-oreo-shell .oreo-timeline-item.tone-warning .oreo-timeline-marker { background: #ff9800; box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.12); }
body.app-page.app-oreo-shell .oreo-timeline-item.tone-danger .oreo-timeline-marker { background: #f44336; box-shadow: 0 0 0 4px rgba(244, 67, 54, 0.12); }
body.app-page.app-oreo-shell .oreo-timeline-item.tone-success .oreo-timeline-marker,
body.app-page.app-oreo-shell .oreo-timeline-item.tone-teal .oreo-timeline-marker { background: #4caf50; box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.12); }

body.app-page.app-oreo-shell .oreo-timeline-item small,
body.app-page.app-oreo-shell .oreo-timeline-item span {
    display: block;
    color: var(--oreo-muted);
}

body.app-page.app-oreo-shell .oreo-timeline-item strong {
    display: block;
    color: var(--oreo-text);
    font-size: 1rem;
}

body.app-page.app-oreo-shell .oreo-mid-right {
    display: grid;
    gap: 1rem;
}

body.app-page.app-oreo-shell .oreo-mini-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

body.app-page.app-oreo-shell .oreo-mini-stat-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

body.app-page.app-oreo-shell .oreo-mini-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f4f8;
    color: #49566a;
    font-size: 1.05rem;
}

body.app-page.app-oreo-shell .oreo-mini-stat-card small {
    display: block;
    color: var(--oreo-muted);
    font-size: 0.88rem;
}

body.app-page.app-oreo-shell .oreo-mini-stat-card strong {
    display: block;
    color: var(--oreo-text);
    font-size: 1.8rem;
    line-height: 1;
}

body.app-page.app-oreo-shell .oreo-location-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.85fr);
    gap: 1rem;
    align-items: center;
}

body.app-page.app-oreo-shell .oreo-ghost-map-wide {
    min-height: 15rem;
    margin-bottom: 0;
}

body.app-page.app-oreo-shell .oreo-location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

body.app-page.app-oreo-shell .oreo-location-tile {
    min-height: 7rem;
    padding: 0.95rem 0.85rem;
    border-radius: 0.95rem;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    background: color-mix(in srgb, var(--tile-accent, #11c2d0) 18%, #ffffff);
    color: #5a6a7f;
}

body.app-page.app-oreo-shell .oreo-location-tile strong {
    display: block;
    color: var(--oreo-text);
    font-size: 2rem;
    line-height: 1;
}

body.app-page.app-oreo-shell .oreo-location-tile span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
}

body.app-page.app-oreo-shell .oreo-location-tile.muted {
    grid-column: 1 / -1;
    min-height: 5.5rem;
}

body.app-page.app-oreo-shell .oreo-mini-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

body.app-page.app-oreo-shell .oreo-spark-card-body {
    display: grid;
    gap: 0.8rem;
}

body.app-page.app-oreo-shell .oreo-spark-card-body strong {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--oreo-text);
}

body.app-page.app-oreo-shell .oreo-bottom-grid {
    display: grid;
    grid-template-columns: minmax(285px, 0.62fr) minmax(0, 1.38fr);
    gap: 1rem;
    align-items: start;
}

body.app-page.app-oreo-shell .oreo-revenue-copy {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    margin: 0.6rem 0 1rem;
    text-align: center;
}

body.app-page.app-oreo-shell .oreo-revenue-copy span,
body.app-page.app-oreo-shell .oreo-revenue-card p {
    color: var(--oreo-muted);
}

body.app-page.app-oreo-shell .oreo-revenue-copy strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--oreo-text);
}

body.app-page.app-oreo-shell .oreo-revenue-ring {
    --ring-fill: conic-gradient(#212529 0deg 180deg, #edf2f7 180deg 360deg);
    width: 13rem;
    height: 13rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto;
    background: var(--ring-fill);
}

body.app-page.app-oreo-shell .oreo-revenue-ring > div {
    width: 9.3rem;
    height: 9.3rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    background: #ffffff;
}

body.app-page.app-oreo-shell .oreo-revenue-ring strong {
    display: block;
    color: var(--oreo-text);
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
}

body.app-page.app-oreo-shell .oreo-revenue-ring span {
    display: block;
    color: var(--oreo-muted);
    font-size: 0.86rem;
}

body.app-page.app-oreo-shell .oreo-revenue-card p {
    margin: 0;
    text-align: center;
}

body.app-page.app-oreo-shell .oreo-compact-table thead th {
    white-space: nowrap;
}

body.app-page.app-oreo-shell .oreo-compact-table tbody td {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

body.app-page.app-oreo-shell .oreo-compact-table .status-pill {
    min-height: 1.9rem !important;
    padding-inline: 0.72rem !important;
    font-size: 0.68rem !important;
}

@media (max-width: 1399.98px) {
    body.app-page.app-oreo-shell .oreo-core-grid,
    body.app-page.app-oreo-shell .oreo-mid-grid,
    body.app-page.app-oreo-shell .oreo-bottom-grid {
        grid-template-columns: 1fr;
    }

    body.app-page.app-oreo-shell .oreo-location-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199.98px) {
    body.app-page.app-oreo-shell .oreo-top-metrics,
    body.app-page.app-oreo-shell .oreo-mini-panels,
    body.app-page.app-oreo-shell .oreo-mini-stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.app-page.app-oreo-shell .oreo-page-ribbon {
        grid-template-columns: 1fr;
    }

    body.app-page.app-oreo-shell .oreo-page-ribbon-stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    body.app-page.app-oreo-shell .oreo-top-metrics,
    body.app-page.app-oreo-shell .oreo-mini-panels,
    body.app-page.app-oreo-shell .oreo-mini-stat-row,
    body.app-page.app-oreo-shell .oreo-survey-stats,
    body.app-page.app-oreo-shell .oreo-location-grid {
        grid-template-columns: 1fr;
    }

    body.app-page.app-oreo-shell .oreo-page-ribbon {
        padding: 1.15rem 1rem;
    }

    body.app-page.app-oreo-shell .oreo-page-ribbon-stats {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.app-page.app-oreo-shell .oreo-chart-labels {
        font-size: 0.7rem;
    }

    body.app-page.app-oreo-shell .oreo-card-head,
    body.app-page.app-oreo-shell .oreo-card-head.stacked {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- 2026-04-02 shell correction: light Oreo sidebar + cyan topbar --- */
body.app-page.app-oreo-shell .app-header-main.app-header-main-unified {
    background: linear-gradient(90deg, #15c6c8 0%, #10c2d4 52%, #11c0cc 100%) !important;
    border: 0 !important;
    box-shadow: 0 18px 36px rgba(17, 194, 208, 0.2) !important;
}

body.app-page.app-oreo-shell .oreo-header-search {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}

body.app-page.app-oreo-shell .oreo-header-search i,
body.app-page.app-oreo-shell .oreo-header-search input,
body.app-page.app-oreo-shell .oreo-header-search input::placeholder,
body.app-page.app-oreo-shell .app-header-copy h1,
body.app-page.app-oreo-shell .eyebrow,
body.app-page.app-oreo-shell .header-chip,
body.app-page.app-oreo-shell .header-chip .material-symbols-rounded,
body.app-page.app-oreo-shell .menu-toggle,
body.app-page.app-oreo-shell .user-profile-trigger,
body.app-page.app-oreo-shell .user-copy strong,
body.app-page.app-oreo-shell .user-copy small,
body.app-page.app-oreo-shell .profile-fallback {
    color: #ffffff !important;
}

body.app-page.app-oreo-shell .header-chip,
body.app-page.app-oreo-shell .menu-toggle,
body.app-page.app-oreo-shell .user-profile-trigger {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.26) !important;
    box-shadow: none !important;
}

body.app-page.app-oreo-shell .user-avatar-shell {
    background: rgba(255, 255, 255, 0.18) !important;
}

body.app-page.app-oreo-shell .profile-fallback {
    background: rgba(49, 91, 194, 0.88) !important;
}

body.app-page.app-oreo-shell .sidebar-panel-demo {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    border: 1px solid #e9eff7 !important;
    box-shadow: 0 14px 30px rgba(51, 69, 96, 0.08) !important;
}

body.app-page.app-oreo-shell .sidebar-brand-mark {
    background: linear-gradient(180deg, #fbfdff, #f4f8fc) !important;
    border: 1px solid #edf3f8 !important;
}

body.app-page.app-oreo-shell .sidebar-brand-demo .sidebar-brand-meta small,
body.app-page.app-oreo-shell .oreo-sidebar-kicker,
body.app-page.app-oreo-shell .sidebar-user-copy span,
body.app-page.app-oreo-shell .sidebar-user-copy small,
body.app-page.app-oreo-shell .oreo-sidebar-link .sidebar-link-copy small {
    color: #8ea0b5 !important;
}

body.app-page.app-oreo-shell .sidebar-brand-demo .sidebar-brand-meta strong,
body.app-page.app-oreo-shell .sidebar-user-copy strong,
body.app-page.app-oreo-shell .oreo-sidebar-block-head,
body.app-page.app-oreo-shell .oreo-sidebar-link .sidebar-link-copy > span {
    color: #253248 !important;
}

body.app-page.app-oreo-shell .sidebar-user-card-demo {
    background: #f7fbff !important;
    border-color: #e9eff7 !important;
    box-shadow: none !important;
}

body.app-page.app-oreo-shell .sidebar-user-card-demo .sidebar-user-avatar {
    background: linear-gradient(135deg, #17c4d3, #4a78f0) !important;
}

body.app-page.app-oreo-shell .oreo-sidebar-block {
    border-top: 1px solid #edf3f8;
    padding-top: 0.95rem;
}

body.app-page.app-oreo-shell .oreo-sidebar-block:first-of-type {
    padding-top: 0.2rem;
    border-top: 0;
}

body.app-page.app-oreo-shell .oreo-sidebar-count {
    background: #eef8fd !important;
    border-color: #d8f2fb !important;
    color: #11c2d0 !important;
}

body.app-page.app-oreo-shell .sidebar-dashboard-link,
body.app-page.app-oreo-shell .oreo-sidebar-link {
    background: #ffffff !important;
    border: 1px solid #edf3f8 !important;
    box-shadow: none !important;
}

body.app-page.app-oreo-shell .sidebar-dashboard-link:hover,
body.app-page.app-oreo-shell .oreo-sidebar-link:hover {
    background: #f5fbff !important;
    border-color: #d7eef8 !important;
}

body.app-page.app-oreo-shell .sidebar-dashboard-link.active,
body.app-page.app-oreo-shell .oreo-sidebar-link.active {
    background: linear-gradient(90deg, rgba(20, 200, 207, 0.12), rgba(74, 120, 240, 0.1)) !important;
    border-color: #d7eef8 !important;
}

body.app-page.app-oreo-shell .sidebar-link-icon {
    background: #f3f7fb !important;
    color: #7a8ba3 !important;
}

body.app-page.app-oreo-shell .sidebar-dashboard-link.active .sidebar-link-icon,
body.app-page.app-oreo-shell .oreo-sidebar-link.active .sidebar-link-icon {
    background: linear-gradient(135deg, #17c4d3, #4a78f0) !important;
    color: #ffffff !important;
}

body.app-page.app-oreo-shell .sidebar-dashboard-link .sidebar-link-arrow,
body.app-page.app-oreo-shell .oreo-sidebar-link .sidebar-link-arrow {
    color: #a4b1c3 !important;
}

/* --- 2026-04-02 Oreo shell/page pass: header, sidebar, appointments, doctors, patients --- */
body.app-page.app-oreo-shell .oreo-topbar-shell {
    display: grid;
    grid-template-columns: auto minmax(18rem, 28rem) auto;
    align-items: center;
}

body.app-page.app-oreo-shell .oreo-topbar-left,
body.app-page.app-oreo-shell .oreo-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

body.app-page.app-oreo-shell .oreo-topbar-left {
    min-width: 0;
}

body.app-page.app-oreo-shell .oreo-topbar-brand {
    display: inline-flex;
    align-items: center;
    min-width: 9rem;
    max-width: 12rem;
    color: #ffffff;
    text-decoration: none;
}

body.app-page.app-oreo-shell .oreo-topbar-brand-mark,
body.app-page.app-oreo-shell .oreo-topbar-brand-mark svg {
    display: block;
    width: 100%;
    height: 1.85rem;
}

body.app-page.app-oreo-shell .oreo-topbar-brand-mark svg * {
    fill: currentColor !important;
}

body.app-page.app-oreo-shell .oreo-topbar-icon-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

body.app-page.app-oreo-shell .oreo-topbar-icon-link {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

body.app-page.app-oreo-shell .oreo-topbar-icon-link:hover,
body.app-page.app-oreo-shell .oreo-topbar-icon-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

body.app-page.app-oreo-shell .oreo-page-indicator {
    min-width: 0;
}

body.app-page.app-oreo-shell .oreo-page-indicator .eyebrow {
    opacity: 0.86;
}

body.app-page.app-oreo-shell .oreo-page-indicator h1 {
    font-size: 1rem !important;
    line-height: 1.1;
}

body.app-page.app-oreo-shell .oreo-topbar-right {
    justify-content: flex-end;
}

body.app-page.app-oreo-shell .oreo-topbar-meta {
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 700;
}

body.app-page.app-oreo-shell .oreo-topbar-meta small {
    color: rgba(255, 255, 255, 0.74);
}

body.app-page.app-oreo-shell .oreo-sidebar-frame {
    padding: 1rem 0.95rem !important;
}

body.app-page.app-oreo-shell .oreo-sidebar-mode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

body.app-page.app-oreo-shell .oreo-sidebar-home-pill,
body.app-page.app-oreo-shell .oreo-sidebar-mode-label {
    min-height: 2.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 700;
}

body.app-page.app-oreo-shell .oreo-sidebar-home-pill {
    color: #4e5f77;
    text-decoration: none;
    border: 1px solid #e6eef6;
    background: #ffffff;
}

body.app-page.app-oreo-shell .oreo-sidebar-mode-label {
    color: #8ea0b5;
    background: #f5f9fc;
    border: 1px solid #edf3f8;
}

body.app-page.app-oreo-shell .oreo-sidebar-profile-panel {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.1rem 0.95rem 1.15rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #edf3f8;
}

body.app-page.app-oreo-shell .oreo-sidebar-profile-avatar {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #17c4d3, #4a78f0);
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(74, 120, 240, 0.2);
}

body.app-page.app-oreo-shell .oreo-sidebar-profile-panel strong {
    color: #223147;
    font-size: 1.35rem;
    line-height: 1.1;
}

body.app-page.app-oreo-shell .oreo-sidebar-profile-panel span,
body.app-page.app-oreo-shell .oreo-sidebar-profile-panel small {
    color: #8da0b4;
}

body.app-page.app-oreo-shell .oreo-sidebar-scroll-flat {
    display: grid;
    gap: 0.7rem;
}

body.app-page.app-oreo-shell .oreo-sidebar-section-label {
    color: #8aa0b4;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.app-page.app-oreo-shell .oreo-sidebar-primary-nav,
body.app-page.app-oreo-shell .oreo-sidebar-subnav {
    display: grid;
    gap: 0.38rem;
}

body.app-page.app-oreo-shell .oreo-sidebar-primary-link,
body.app-page.app-oreo-shell .oreo-sidebar-subnav-link {
    min-height: 2.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0.8rem;
    border-radius: 0.95rem;
    color: #516379;
    text-decoration: none;
    border: 1px solid #edf3f8;
    background: #ffffff;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.app-page.app-oreo-shell .oreo-sidebar-primary-link:hover,
body.app-page.app-oreo-shell .oreo-sidebar-subnav-link:hover,
body.app-page.app-oreo-shell .oreo-sidebar-primary-link.active,
body.app-page.app-oreo-shell .oreo-sidebar-subnav-link.active {
    background: linear-gradient(90deg, rgba(23, 196, 211, 0.12), rgba(74, 120, 240, 0.08));
    border-color: #d7eef8;
    color: #1b3049;
    transform: translateX(2px);
}

body.app-page.app-oreo-shell .oreo-sidebar-primary-link .sidebar-link-icon {
    flex-shrink: 0;
}

body.app-page.app-oreo-shell .oreo-sidebar-group-panel {
    border-top: 1px solid #edf3f8;
    padding-top: 0.72rem;
}

body.app-page.app-oreo-shell .oreo-sidebar-group-panel summary {
    list-style: none;
}

body.app-page.app-oreo-shell .oreo-sidebar-group-panel summary::-webkit-details-marker {
    display: none;
}

body.app-page.app-oreo-shell .oreo-sidebar-group-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    cursor: pointer;
    padding: 0.45rem 0;
}

body.app-page.app-oreo-shell .oreo-sidebar-group-summary-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    color: #3e5168;
    font-size: 0.94rem;
    font-weight: 800;
}

body.app-page.app-oreo-shell .oreo-sidebar-group-summary-copy i {
    color: #17c4d3;
}

body.app-page.app-oreo-shell .oreo-sidebar-subnav {
    padding-top: 0.35rem;
    padding-left: 0.15rem;
}

body.app-page.app-oreo-shell .oreo-sidebar-subnav-link {
    min-height: 2.6rem;
    padding-left: 0.65rem;
}

body.app-page.app-oreo-shell .oreo-subnav-dot {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #b8c8d8;
    flex-shrink: 0;
}

body.app-page.app-oreo-shell .oreo-sidebar-subnav-link.active .oreo-subnav-dot,
body.app-page.app-oreo-shell .oreo-sidebar-primary-link.active .sidebar-link-icon {
    background: linear-gradient(135deg, #17c4d3, #4a78f0);
}

body.app-page.app-oreo-shell .oreo-sidebar-group-panel[open] .oreo-sidebar-group-summary-copy {
    color: #233249;
}

body.app-page.app-oreo-shell.sidebar-collapsed .oreo-sidebar-mode-label,
body.app-page.app-oreo-shell.sidebar-collapsed .oreo-sidebar-profile-panel strong,
body.app-page.app-oreo-shell.sidebar-collapsed .oreo-sidebar-profile-panel span,
body.app-page.app-oreo-shell.sidebar-collapsed .oreo-sidebar-profile-panel small,
body.app-page.app-oreo-shell.sidebar-collapsed .oreo-sidebar-section-label,
body.app-page.app-oreo-shell.sidebar-collapsed .oreo-sidebar-group-summary-copy span,
body.app-page.app-oreo-shell.sidebar-collapsed .oreo-sidebar-count,
body.app-page.app-oreo-shell.sidebar-collapsed .oreo-sidebar-subnav {
    display: none !important;
}

body.app-page.app-oreo-shell.sidebar-collapsed .oreo-sidebar-home-pill,
body.app-page.app-oreo-shell.sidebar-collapsed .oreo-sidebar-primary-link,
body.app-page.app-oreo-shell.sidebar-collapsed .oreo-sidebar-group-summary {
    justify-content: center;
}

body.app-page.app-oreo-shell.sidebar-collapsed .oreo-sidebar-profile-panel {
    padding-inline: 0.2rem;
}

body.app-page.app-oreo-shell .oreo-module-page .module-alert {
    margin-bottom: 1rem;
}

body.app-page.app-oreo-shell .oreo-entity-hero,
body.app-page.app-oreo-shell .oreo-record-hero,
body.app-page.app-oreo-shell .oreo-entity-toolbar,
body.app-page.app-oreo-shell .oreo-entity-table-card,
body.app-page.app-oreo-shell .oreo-entity-form-shell .surface-card,
body.app-page.app-oreo-shell .oreo-patient-dashboard-page .ipd-shell-header,
body.app-page.app-oreo-shell .oreo-patient-dashboard-page .ipd-summary-pill,
body.app-page.app-oreo-shell .oreo-patient-dashboard-page .ipd-tabs,
body.app-page.app-oreo-shell .oreo-patient-dashboard-page .surface-card {
    border-radius: 0rem !important;
    padding: 10px;
}

body.app-page.app-oreo-shell .oreo-entity-hero,
body.app-page.app-oreo-shell .oreo-record-hero {
    padding: 1.3rem 1.4rem !important;
    border: 1px solid var(--oreo-border) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
    box-shadow: 0 12px 26px rgba(42, 68, 97, 0.07) !important;
}

body.app-page.app-oreo-shell .appointment-stat-row,
body.app-page.app-oreo-shell .module-kpi-grid {
    margin-bottom: 1rem;
}

body.app-page.app-oreo-shell .appointment-summary-card,
body.app-page.app-oreo-shell .module-kpi-grid .stat-card {
    min-height: 10.5rem;
    padding: 1rem 1.1rem !important;
    box-shadow: 0 12px 24px rgba(42, 68, 97, 0.06) !important;
}

body.app-page.app-oreo-shell .appointment-summary-card .card-title,
body.app-page.app-oreo-shell .module-kpi-grid .stat-label {
    color: #7b8ca1 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.app-page.app-oreo-shell .appointment-summary-card .card-number,
body.app-page.app-oreo-shell .module-kpi-grid .stat-value {
    color: var(--oreo-text) !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
}

body.app-page.app-oreo-shell .oreo-entity-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem !important;
    background: #ffffff !important;
}

body.app-page.app-oreo-shell .oreo-entity-toolbar h3,
body.app-page.app-oreo-shell .oreo-entity-table-card h4,
body.app-page.app-oreo-shell .oreo-clinical-detail-page h3,
body.app-page.app-oreo-shell .oreo-doctor-dashboard-page h3,
body.app-page.app-oreo-shell .oreo-patient-dashboard-page h3 {
    color: #30455f;
    font-weight: 700;
}

body.app-page.app-oreo-shell .oreo-entity-toolbar p,
body.app-page.app-oreo-shell .appointment-table-meta p,
body.app-page.app-oreo-shell .ipd-shell-header p,
body.app-page.app-oreo-shell .ipd-note-section p,
body.app-page.app-oreo-shell .appointment-note-copy {
    color: var(--oreo-muted);
}

body.app-page.app-oreo-shell .oreo-entity-table-card,
body.app-page.app-oreo-shell .appointment-table-card,
body.app-page.app-oreo-shell .doctor-table-card,
body.app-page.app-oreo-shell .patient-table-card {
    padding: 1.05rem 1.15rem !important;
}

body.app-page.app-oreo-shell .oreo-compact-table thead th {
    background: #f7fafc !important;
    color: #8393a6 !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.12em;
}

body.app-page.app-oreo-shell .oreo-compact-table tbody td {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

body.app-page.app-oreo-shell .oreo-compact-table tbody td strong {
    color: #2a3c53;
}

body.app-page.app-oreo-shell .oreo-entity-form-shell {
    display: grid;
    gap: 1rem;
}

body.app-page.app-oreo-shell .oreo-entity-form-shell .surface-card,
body.app-page.app-oreo-shell .appointment-form-shell + .modal-form-footer,
body.app-page.app-oreo-shell .appointment-form-page .record-context-card {
    box-shadow: 0 12px 24px rgba(42, 68, 97, 0.06) !important;
}

body.app-page.app-oreo-shell .doctor-form-shell .surface-card,
body.app-page.app-oreo-shell .appointment-form-layout .surface-card {
    padding: 1.15rem 1.2rem !important;
}

body.app-page.app-oreo-shell .oreo-clinical-detail-page .appointment-detail-grid,
body.app-page.app-oreo-shell .oreo-clinical-detail-page .appointment-detail-panels,
body.app-page.app-oreo-shell .oreo-doctor-dashboard-page .doctor-dashboard-grid {
    gap: 1rem;
}

body.app-page.app-oreo-shell .oreo-doctor-dashboard-page .mini-list-item,
body.app-page.app-oreo-shell .oreo-patient-dashboard-page .mini-list-item,
body.app-page.app-oreo-shell .oreo-patient-dashboard-page .patient-data-source-item,
body.app-page.app-oreo-shell .oreo-patient-dashboard-page .ipd-billing-card,
body.app-page.app-oreo-shell .oreo-patient-dashboard-page .ipd-vital-row,
body.app-page.app-oreo-shell .oreo-patient-dashboard-page .ipd-note-item {
    border-radius: 1rem;
    border: 1px solid #edf3f8;
    background: #fbfdff;
}

body.app-page.app-oreo-shell .oreo-patient-dashboard-page .ipd-summary-strip {
    gap: 0.8rem;
}

body.app-page.app-oreo-shell .oreo-patient-dashboard-page .ipd-summary-pill {
    background: #ffffff !important;
    border: 1px solid #eaf1f8 !important;
    box-shadow: 0 10px 20px rgba(42, 68, 97, 0.05) !important;
}

body.app-page.app-oreo-shell .oreo-patient-dashboard-page .ipd-tabs {
    padding: 0.45rem;
    background: #ffffff;
    border: 1px solid #eaf1f8;
    box-shadow: 0 8px 18px rgba(42, 68, 97, 0.04);
}

body.app-page.app-oreo-shell .oreo-patient-dashboard-page .ipd-tab-link {
    border-radius: 999px;
}

body.app-page.app-oreo-shell .oreo-patient-dashboard-page .ipd-profile-top {
    gap: 1rem;
}

body.app-page.app-oreo-shell .oreo-patient-dashboard-page .ipd-demographic-tile,
body.app-page.app-oreo-shell .oreo-patient-dashboard-page .ipd-case-row {
    border-radius: 0.9rem;
    background: #f8fbff;
    border: 1px solid #edf3f8;
}

body.app-page.app-oreo-shell .oreo-patient-dashboard-page .ipd-code-block {
    border-radius: 1rem;
    background: linear-gradient(180deg, #f9fbff, #ffffff);
    border: 1px solid #eaf1f8;
}

@media (max-width: 1399.98px) {
    body.app-page.app-oreo-shell .oreo-topbar-shell {
        grid-template-columns: auto minmax(14rem, 1fr) auto;
    }

    body.app-page.app-oreo-shell .oreo-page-indicator {
        display: none !important;
    }
}

@media (max-width: 1199.98px) {
    body.app-page.app-oreo-shell .oreo-topbar-icon-nav,
    body.app-page.app-oreo-shell .oreo-topbar-meta {
        display: none !important;
    }

    body.app-page.app-oreo-shell .oreo-topbar-shell {
        grid-template-columns: auto minmax(12rem, 1fr) auto;
    }

    body.app-page.app-oreo-shell .oreo-entity-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 991.98px) {
    body.app-page.app-oreo-shell .oreo-topbar-shell {
        grid-template-columns: auto 1fr auto;
        gap: 0.6rem;
    }

    body.app-page.app-oreo-shell .oreo-topbar-brand {
        min-width: 7.5rem;
        max-width: 9.5rem;
    }

    body.app-page.app-oreo-shell .oreo-sidebar-mode-row {
        margin-right: 0.1rem;
    }
}

@media (max-width: 767.98px) {
    body.app-page.app-oreo-shell .oreo-header-search,
    body.app-page.app-oreo-shell .oreo-topbar-brand {
        display: none !important;
    }

    body.app-page.app-oreo-shell .oreo-sidebar-profile-panel strong {
        font-size: 1.1rem;
    }
}

/* --- 2026-04-02 responsive shell stabilization + footer --- */
body.app-page.app-oreo-shell {
    --shell-sidebar-width: 16rem;
    --shell-sidebar-collapsed-width: 5.5rem;
    --shell-edge-gap: 1rem;
}

body.app-page.app-oreo-shell {
    overflow-x: hidden;
}

body.app-page.app-oreo-shell .app-shell {
    padding: 1rem 1rem 2rem !important;
    overflow-x: hidden;
}

body.app-page.app-oreo-shell .sidebar {
    top: 1rem !important;
    left: 1rem !important;
    bottom: 1rem !important;
    width: var(--shell-sidebar-width) !important;
    max-width: var(--shell-sidebar-width) !important;
    z-index: 1500 !important;
}

body.app-page.app-oreo-shell.sidebar-collapsed .sidebar {
    width: var(--shell-sidebar-collapsed-width) !important;
    max-width: var(--shell-sidebar-collapsed-width) !important;
}

body.app-page.app-oreo-shell .app-header,
body.app-page.app-oreo-shell .main-content,
body.app-page.app-oreo-shell .app-footer-shell {
    margin-left: calc(var(--shell-sidebar-width) + var(--shell-edge-gap)) !important;
    width: calc(100vw - var(--shell-sidebar-width) - (var(--shell-edge-gap) * 2)) !important;
    max-width: calc(100vw - var(--shell-sidebar-width) - (var(--shell-edge-gap) * 2)) !important;
}

body.app-page.app-oreo-shell.sidebar-collapsed .app-header,
body.app-page.app-oreo-shell.sidebar-collapsed .main-content,
body.app-page.app-oreo-shell.sidebar-collapsed .app-footer-shell {
    margin-left: calc(var(--shell-sidebar-collapsed-width) + var(--shell-edge-gap)) !important;
    width: calc(100vw - var(--shell-sidebar-collapsed-width) - (var(--shell-edge-gap) * 2)) !important;
    max-width: calc(100vw - var(--shell-sidebar-collapsed-width) - (var(--shell-edge-gap) * 2)) !important;
}

body.app-page.app-oreo-shell .main-content {
    min-height: auto !important;
    padding: 0 !important;
}

body.app-page.app-oreo-shell .main-content > .alert,
body.app-page.app-oreo-shell .main-content > section,
body.app-page.app-oreo-shell .main-content > div.dashboard-card,
body.app-page.app-oreo-shell .main-content > .container,
body.app-page.app-oreo-shell .main-content > .row {
    max-width: 100%;
}

body.app-page.app-oreo-shell .app-header {
    margin-bottom: 1rem !important;
}

body.app-page.app-oreo-shell .app-header-main.app-header-main-unified {
    min-width: 0;
}

body.app-page.app-oreo-shell .oreo-topbar-shell {
    grid-template-columns: auto minmax(12rem, 1fr) auto;
    gap: 0.8rem;
}

body.app-page.app-oreo-shell .oreo-topbar-left,
body.app-page.app-oreo-shell .oreo-topbar-right,
body.app-page.app-oreo-shell .app-header-actions,
body.app-page.app-oreo-shell .module-toolbar-actions,
body.app-page.app-oreo-shell .action-buttons,
body.app-page.app-oreo-shell .patient-hero-pills,
body.app-page.app-oreo-shell .ipd-toolbar,
body.app-page.app-oreo-shell .appointment-detail-actions,
body.app-page.app-oreo-shell .table-action-group {
    flex-wrap: wrap;
}

body.app-page.app-oreo-shell .oreo-topbar-left,
body.app-page.app-oreo-shell .oreo-topbar-right,
body.app-page.app-oreo-shell .app-header-copy,
body.app-page.app-oreo-shell .user-profile,
body.app-page.app-oreo-shell .user-profile-trigger,
body.app-page.app-oreo-shell .oreo-header-search,
body.app-page.app-oreo-shell .oreo-header-search input {
    min-width: 0;
}

body.app-page.app-oreo-shell .oreo-header-search {
    width: 100%;
    max-width: 28rem;
    min-width: 12rem;
}

body.app-page.app-oreo-shell .profile-dropdown {
    z-index: 1900 !important;
}

body.app-page.app-oreo-shell img,
body.app-page.app-oreo-shell svg,
body.app-page.app-oreo-shell canvas {
    max-width: 100%;
}

body.app-page.app-oreo-shell .table-responsive,
body.app-page.app-oreo-shell .app-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

body.app-page.app-oreo-shell .native-page-table,
body.app-page.app-oreo-shell .ipd-table,
body.app-page.app-oreo-shell .table {
    min-width: 720px;
}

body.app-page.app-oreo-shell .dashboard-grid,
body.app-page.app-oreo-shell .stats-grid,
body.app-page.app-oreo-shell .compact-stats-grid,
body.app-page.app-oreo-shell .module-kpi-grid,
body.app-page.app-oreo-shell .appointment-form-layout,
body.app-page.app-oreo-shell .doctor-dashboard-grid,
body.app-page.app-oreo-shell .module-summary-grid,
body.app-page.app-oreo-shell .patient-detail-grid,
body.app-page.app-oreo-shell .ipd-layout,
body.app-page.app-oreo-shell .ipd-profile-top,
body.app-page.app-oreo-shell .ipd-case-grid,
body.app-page.app-oreo-shell .ipd-demographics-grid,
body.app-page.app-oreo-shell .qr-attendance-overview-grid,
body.app-page.app-oreo-shell .qr-scanner-grid,
body.app-page.app-oreo-shell .qr-card-layout,
body.app-page.app-oreo-shell .redstar-main-board,
body.app-page.app-oreo-shell .redstar-lower-board,
body.app-page.app-oreo-shell .redstar-analytics-grid,
body.app-page.app-oreo-shell .redstar-module-pulse-row,
body.app-page.app-oreo-shell .oreo-mini-panels,
body.app-page.app-oreo-shell .oreo-mid-grid,
body.app-page.app-oreo-shell .oreo-bottom-grid,
body.app-page.app-oreo-shell .oreo-core-grid {
    gap: 1rem !important;
}

body.app-page.app-oreo-shell .field-grid.field-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.app-page.app-oreo-shell .field-grid.field-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.app-page.app-oreo-shell .field-grid.field-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.app-page.app-oreo-shell .field-span-2 {
    grid-column: span 2;
}

body.app-page.app-oreo-shell .app-footer-shell {
    padding: 0 0 1rem !important;
}

body.app-page.app-oreo-shell .app-footer-card {
    min-height: 4.4rem;
    padding: 1rem 1.25rem;
    border-radius: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #e8eff7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 26px rgba(42, 68, 97, 0.06);
}

body.app-page.app-oreo-shell .app-footer-copy,
body.app-page.app-oreo-shell .app-footer-meta {
    display: grid;
    gap: 0.12rem;
}

body.app-page.app-oreo-shell .app-footer-copy strong,
body.app-page.app-oreo-shell .app-footer-meta span {
    color: #2a3c53;
    font-weight: 800;
}

body.app-page.app-oreo-shell .app-footer-copy span,
body.app-page.app-oreo-shell .app-footer-meta small {
    color: #8091a6;
    font-size: 0.86rem;
}

@media (max-width: 1535.98px) {
    body.app-page.app-oreo-shell .oreo-topbar-meta {
        display: none !important;
    }

    body.app-page.app-oreo-shell .oreo-header-search {
        max-width: 22rem;
    }
}

@media (max-width: 1399.98px) {
    body.app-page.app-oreo-shell .oreo-topbar-icon-nav {
        display: none !important;
    }

    body.app-page.app-oreo-shell .field-grid.field-grid-4,
    body.app-page.app-oreo-shell .field-grid.field-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    body.app-page.app-oreo-shell .app-header,
    body.app-page.app-oreo-shell .main-content,
    body.app-page.app-oreo-shell .app-footer-shell,
    body.app-page.app-oreo-shell.sidebar-collapsed .app-header,
    body.app-page.app-oreo-shell.sidebar-collapsed .main-content,
    body.app-page.app-oreo-shell.sidebar-collapsed .app-footer-shell {
        margin-left: calc(var(--shell-sidebar-width) + 0.75rem) !important;
        width: calc(100vw - var(--shell-sidebar-width) - 1.75rem) !important;
        max-width: calc(100vw - var(--shell-sidebar-width) - 1.75rem) !important;
    }

    body.app-page.app-oreo-shell .oreo-page-indicator,
    body.app-page.app-oreo-shell .header-chip-plan,
    body.app-page.app-oreo-shell .header-chip-role {
        display: none !important;
    }

    body.app-page.app-oreo-shell .oreo-header-search {
        max-width: 18rem;
    }

    body.app-page.app-oreo-shell .field-grid.field-grid-2,
    body.app-page.app-oreo-shell .field-grid.field-grid-3,
    body.app-page.app-oreo-shell .field-grid.field-grid-4,
    body.app-page.app-oreo-shell .redstar-kpi-grid,
    body.app-page.app-oreo-shell .oreo-top-metrics,
    body.app-page.app-oreo-shell .oreo-mini-stat-row,
    body.app-page.app-oreo-shell .oreo-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.app-page.app-oreo-shell .field-span-2 {
        grid-column: auto;
    }
}

@media (max-width: 991.98px) {
    body.app-page.app-oreo-shell::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(16, 24, 40, 0.36);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 1400;
    }

    body.app-page.app-oreo-shell.sidebar-open::before {
        opacity: 1;
        pointer-events: auto;
    }

    body.app-page.app-oreo-shell .sidebar,
    body.app-page.app-oreo-shell.sidebar-collapsed .sidebar {
        top: 0.75rem !important;
        left: 0.75rem !important;
        bottom: 0.75rem !important;
        width: min(18rem, calc(100vw - 1.5rem)) !important;
        max-width: calc(100vw - 1.5rem) !important;
        transform: translateX(calc(-100% - 1rem)) !important;
        z-index: 1505 !important;
    }

    body.app-page.app-oreo-shell.sidebar-open .sidebar {
        transform: translateX(0) !important;
    }

    body.app-page.app-oreo-shell .app-header,
    body.app-page.app-oreo-shell .main-content,
    body.app-page.app-oreo-shell .app-footer-shell,
    body.app-page.app-oreo-shell.sidebar-collapsed .app-header,
    body.app-page.app-oreo-shell.sidebar-collapsed .main-content,
    body.app-page.app-oreo-shell.sidebar-collapsed .app-footer-shell {
        margin-left: 0 !important;
        width: calc(100vw - 1.5rem) !important;
        max-width: calc(100vw - 1.5rem) !important;
    }

    body.app-page.app-oreo-shell .oreo-topbar-shell {
        grid-template-columns: auto 1fr auto;
    }

    body.app-page.app-oreo-shell .oreo-header-search {
        max-width: none;
        min-width: 0;
    }

    body.app-page.app-oreo-shell .dashboard-grid,
    body.app-page.app-oreo-shell .stats-grid,
    body.app-page.app-oreo-shell .compact-stats-grid,
    body.app-page.app-oreo-shell .module-kpi-grid,
    body.app-page.app-oreo-shell .appointment-stat-row,
    body.app-page.app-oreo-shell .appointment-form-layout,
    body.app-page.app-oreo-shell .doctor-dashboard-grid,
    body.app-page.app-oreo-shell .module-summary-grid,
    body.app-page.app-oreo-shell .patient-detail-grid,
    body.app-page.app-oreo-shell .ipd-layout,
    body.app-page.app-oreo-shell .ipd-profile-top,
    body.app-page.app-oreo-shell .ipd-case-grid,
    body.app-page.app-oreo-shell .ipd-demographics-grid,
    body.app-page.app-oreo-shell .qr-attendance-overview-grid,
    body.app-page.app-oreo-shell .qr-scanner-grid,
    body.app-page.app-oreo-shell .qr-card-layout,
    body.app-page.app-oreo-shell .redstar-main-board,
    body.app-page.app-oreo-shell .redstar-lower-board,
    body.app-page.app-oreo-shell .redstar-analytics-grid,
    body.app-page.app-oreo-shell .redstar-module-pulse-row,
    body.app-page.app-oreo-shell .oreo-mini-panels,
    body.app-page.app-oreo-shell .oreo-mid-grid,
    body.app-page.app-oreo-shell .oreo-bottom-grid,
    body.app-page.app-oreo-shell .oreo-core-grid,
    body.app-page.app-oreo-shell .oreo-page-ribbon-stats,
    body.app-page.app-oreo-shell .oreo-survey-stats {
        grid-template-columns: 1fr !important;
    }

    body.app-page.app-oreo-shell .appointment-detail-grid,
    body.app-page.app-oreo-shell .appointment-detail-panels,
    body.app-page.app-oreo-shell .oreo-location-shell {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767.98px) {
    body.app-page.app-oreo-shell .app-shell {
        padding: 0.75rem 0.75rem 1.4rem !important;
    }

    body.app-page.app-oreo-shell .app-header,
    body.app-page.app-oreo-shell .main-content,
    body.app-page.app-oreo-shell .app-footer-shell,
    body.app-page.app-oreo-shell.sidebar-collapsed .app-header,
    body.app-page.app-oreo-shell.sidebar-collapsed .main-content,
    body.app-page.app-oreo-shell.sidebar-collapsed .app-footer-shell {
        width: calc(100vw - 1rem) !important;
        max-width: calc(100vw - 1rem) !important;
    }

    body.app-page.app-oreo-shell .oreo-header-search,
    body.app-page.app-oreo-shell .oreo-topbar-meta,
    body.app-page.app-oreo-shell .oreo-sidebar-mode-label,
    body.app-page.app-oreo-shell .user-copy {
        display: none !important;
    }

    body.app-page.app-oreo-shell .oreo-topbar-shell {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    body.app-page.app-oreo-shell .field-grid.field-grid-2,
    body.app-page.app-oreo-shell .field-grid.field-grid-3,
    body.app-page.app-oreo-shell .field-grid.field-grid-4,
    body.app-page.app-oreo-shell .redstar-kpi-grid,
    body.app-page.app-oreo-shell .oreo-top-metrics,
    body.app-page.app-oreo-shell .oreo-mini-stat-row,
    body.app-page.app-oreo-shell .oreo-location-grid {
        grid-template-columns: 1fr !important;
    }

    body.app-page.app-oreo-shell .app-footer-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- 2026-04-02 Oreo flattening pass: reduce rounded corners globally --- */
body.app-page.app-oreo-shell {
    --oreo-radius-card: 0.35rem;
    --oreo-radius-surface: 0.3rem;
    --oreo-radius-control: 0.25rem;
    --oreo-radius-pill: 0.25rem;
}

body.app-page.app-oreo-shell .app-header-main.app-header-main-unified,
body.app-page.app-oreo-shell .sidebar-panel-demo,
body.app-page.app-oreo-shell .surface-card,
body.app-page.app-oreo-shell .dashboard-card,
body.app-page.app-oreo-shell .stat-card,
body.app-page.app-oreo-shell .saas-card,
body.app-page.app-oreo-shell .table-shell,
body.app-page.app-oreo-shell .table-responsive,
body.app-page.app-oreo-shell .main-content .card,
body.app-page.app-oreo-shell .modal-content,
body.app-page.app-oreo-shell .patient-identity-card,
body.app-page.app-oreo-shell .hospital-table-shell,
body.app-page.app-oreo-shell .app-footer-card,
body.app-page.app-oreo-shell .dashboard-hero,
body.app-page.app-oreo-shell .content-header,
body.app-page.app-oreo-shell .oreo-page-ribbon,
body.app-page.app-oreo-shell .oreo-top-metric-card,
body.app-page.app-oreo-shell .oreo-survey-card,
body.app-page.app-oreo-shell .oreo-side-table-card,
body.app-page.app-oreo-shell .oreo-timeline-card,
body.app-page.app-oreo-shell .oreo-location-card,
body.app-page.app-oreo-shell .oreo-spark-card,
body.app-page.app-oreo-shell .oreo-revenue-card,
body.app-page.app-oreo-shell .oreo-table-card,
body.app-page.app-oreo-shell .oreo-mini-stat-card,
body.app-page.app-oreo-shell .appointment-person-card,
body.app-page.app-oreo-shell .appointment-facts-card,
body.app-page.app-oreo-shell .appointment-note-card,
body.app-page.app-oreo-shell .appointment-timeline-card,
body.app-page.app-oreo-shell .ipd-shell-header,
body.app-page.app-oreo-shell .ipd-summary-pill,
body.app-page.app-oreo-shell .ipd-tabs,
body.app-page.app-oreo-shell .ipd-code-block,
body.app-page.app-oreo-shell .ipd-demographic-tile,
body.app-page.app-oreo-shell .ipd-case-row,
body.app-page.app-oreo-shell .patient-data-source-item,
body.app-page.app-oreo-shell .ipd-billing-card,
body.app-page.app-oreo-shell .ipd-vital-row,
body.app-page.app-oreo-shell .ipd-note-item,
body.app-page.app-oreo-shell .mini-list-item,
body.app-page.app-oreo-shell .oreo-side-table-row,
body.app-page.app-oreo-shell .oreo-location-tile,
body.app-page.app-oreo-shell .oreo-timeline-hero,
body.app-page.app-oreo-shell .oreo-ghost-map,
body.app-page.app-oreo-shell .oreo-ghost-map-wide {
    border-radius: var(--oreo-radius-card) !important;
}

body.app-page.app-oreo-shell .btn,
body.app-page.app-oreo-shell .btn-primary,
body.app-page.app-oreo-shell .btn-outline-primary,
body.app-page.app-oreo-shell .btn-outline-secondary,
body.app-page.app-oreo-shell .btn-secondary,
body.app-page.app-oreo-shell .btn-light,
body.app-page.app-oreo-shell .header-chip,
body.app-page.app-oreo-shell .menu-toggle,
body.app-page.app-oreo-shell .user-profile-trigger,
body.app-page.app-oreo-shell .surface-tag,
body.app-page.app-oreo-shell .status-pill,
body.app-page.app-oreo-shell .quick-action,
body.app-page.app-oreo-shell .filter-chip,
body.app-page.app-oreo-shell .page-link,
body.app-page.app-oreo-shell .oreo-header-search,
body.app-page.app-oreo-shell .oreo-topbar-icon-link,
body.app-page.app-oreo-shell .oreo-card-dismiss,
body.app-page.app-oreo-shell .oreo-sidebar-home-pill,
body.app-page.app-oreo-shell .oreo-sidebar-mode-label,
body.app-page.app-oreo-shell .oreo-sidebar-primary-link,
body.app-page.app-oreo-shell .oreo-sidebar-subnav-link,
body.app-page.app-oreo-shell .sidebar-link-icon,
body.app-page.app-oreo-shell .oreo-sidebar-count,
body.app-page.app-oreo-shell .profile-dropdown,
body.app-page.app-oreo-shell .dropdown-item,
body.app-page.app-oreo-shell .table-action-trigger,
body.app-page.app-oreo-shell .table-action-dropdown,
body.app-page.app-oreo-shell .app-table-pagination,
body.app-page.app-oreo-shell .module-alert,
body.app-page.app-oreo-shell .alert,
body.app-page.app-oreo-shell .ipd-tab-link,
body.app-page.app-oreo-shell .ipd-badge,
body.app-page.app-oreo-shell .redstar-status-badge,
body.app-page.app-oreo-shell .oreo-progress-track,
body.app-page.app-oreo-shell .oreo-revenue-ring > div {
    border-radius: var(--oreo-radius-control) !important;
}

body.app-page.app-oreo-shell .main-content input[type="text"],
body.app-page.app-oreo-shell .main-content input[type="email"],
body.app-page.app-oreo-shell .main-content input[type="date"],
body.app-page.app-oreo-shell .main-content input[type="number"],
body.app-page.app-oreo-shell .main-content input[type="password"],
body.app-page.app-oreo-shell .main-content input[type="search"],
body.app-page.app-oreo-shell .main-content input[type="time"],
body.app-page.app-oreo-shell .main-content select,
body.app-page.app-oreo-shell .main-content textarea,
body.app-page.app-oreo-shell .main-content .form-control,
body.app-page.app-oreo-shell .main-content .form-select,
body.app-page.app-oreo-shell .appointment-readonly {
    border-radius: var(--oreo-radius-control) !important;
}

body.app-page.app-oreo-shell .oreo-page-ribbon,
body.app-page.app-oreo-shell .oreo-page-ribbon::before,
body.app-page.app-oreo-shell .oreo-page-ribbon::after,
body.app-page.app-oreo-shell .oreo-page-ribbon-stats article,
body.app-page.app-oreo-shell .oreo-breadcrumb-pill,
body.app-page.app-oreo-shell .oreo-survey-stats article {
    border-radius: var(--oreo-radius-card) !important;
}

body.app-page.app-oreo-shell .oreo-revenue-ring {
    border-radius: 50% !important;
}

body.app-page.app-oreo-shell .patient-avatar-circle,
body.app-page.app-oreo-shell .avatar-badge,
body.app-page.app-oreo-shell .oreo-sidebar-profile-avatar,
body.app-page.app-oreo-shell .profile-fallback,
body.app-page.app-oreo-shell .oreo-ghost-map .dot,
body.app-page.app-oreo-shell .oreo-subnav-dot,
body.app-page.app-oreo-shell .oreo-timeline-marker,
body.app-page.app-oreo-shell .patient-qr-image,
body.app-page.app-oreo-shell .app-footer-card .brand-mark {
    border-radius: 50% !important;
}

body.app-page.app-oreo-shell .oreo-topbar-brand-mark,
body.app-page.app-oreo-shell .sidebar-brand-mark {
    border-radius: var(--oreo-radius-surface) !important;
}

body.app-page.app-oreo-shell .sidebar,
body.app-page.app-oreo-shell .sidebar-panel-demo,
body.app-page.app-oreo-shell .app-header-main.app-header-main-unified,
body.app-page.app-oreo-shell .app-footer-card {
    box-shadow: 0 10px 22px rgba(42, 68, 97, 0.06) !important;
}

body.app-page.app-oreo-shell .surface-card,
body.app-page.app-oreo-shell .dashboard-card,
body.app-page.app-oreo-shell .stat-card,
body.app-page.app-oreo-shell .table-shell,
body.app-page.app-oreo-shell .modal-content {
    box-shadow: 0 8px 18px rgba(42, 68, 97, 0.05) !important;
}

body.app-page.app-oreo-shell .btn {
    letter-spacing: 0 !important;
}

body.app-page.app-oreo-shell .native-page-table thead th,
body.app-page.app-oreo-shell .table thead th {
    border-radius: 0 !important;
}

/* --- 2026-04-02 layout correction: shell vs bootstrap column conflict --- */
body.app-page.app-oreo-shell .container-fluid.p-0 > .row.g-0 {
    display: block !important;
    margin: 0 !important;
}



body.app-page.app-oreo-shell .main-content.col-md-10,
body.app-page.app-oreo-shell .main-content.col-md-9,
body.app-page.app-oreo-shell .main-content.col-lg-10,
body.app-page.app-oreo-shell .main-content.col-lg-9,
body.app-page.app-oreo-shell .main-content[class*="col-"] {
    flex: 0 0 auto !important;
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
}

body.app-page.app-oreo-shell .app-header,
body.app-page.app-oreo-shell .main-content,
body.app-page.app-oreo-shell .app-footer-shell {
    margin-left: calc(var(--shell-sidebar-width) + var(--shell-edge-gap)) !important;
    margin-right: 0 !important;
    width: auto !important;
    max-width: none !important;
}

body.app-page.app-oreo-shell.sidebar-collapsed .app-header,
body.app-page.app-oreo-shell.sidebar-collapsed .main-content,
body.app-page.app-oreo-shell.sidebar-collapsed .app-footer-shell {
    margin-left: calc(var(--shell-sidebar-collapsed-width) + var(--shell-edge-gap)) !important;
    margin-right: var(--shell-edge-gap) !important;
    width: auto !important;
    max-width: none !important;
}

body.app-page.app-oreo-shell .main-content {
    display: block !important;
}

body.app-page.app-oreo-shell .main-content > * {
    min-width: 0;
}

@media (max-width: 991.98px) {
    body.app-page.app-oreo-shell .app-header,
    body.app-page.app-oreo-shell .main-content,
    body.app-page.app-oreo-shell .app-footer-shell,
    body.app-page.app-oreo-shell.sidebar-collapsed .app-header,
    body.app-page.app-oreo-shell.sidebar-collapsed .main-content,
    body.app-page.app-oreo-shell.sidebar-collapsed .app-footer-shell {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* --- 2026-04-02 Oreo shell lock: exact header/sidebar spacing and dashboard containers --- */
body.app-page.app-oreo-shell .app-shell,
body.app-page.app-oreo-shell .oreo-app-screen {
    display: block !important;
    min-height: 100vh;
}

body.app-page.app-oreo-shell .oreo-page-indicator {
    display: none !important;
}

body.app-page.app-oreo-shell .app-header {
    position: relative !important;
    inset: auto !important;
    margin-top: 0.75rem !important;
    margin-bottom: 1rem !important;
}

body.app-page.app-oreo-shell .app-header-main.app-header-main-unified.oreo-topbar-shell {
    display: grid !important;
    grid-template-columns: auto minmax(18rem, 34rem) auto !important;
    align-items: center !important;
    gap: 1rem !important;
    min-height: 4.25rem !important;
    padding: 0.7rem 1rem !important;
    border-radius: 0.35rem !important;
}

body.app-page.app-oreo-shell .oreo-topbar-left,
body.app-page.app-oreo-shell .oreo-topbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    min-width: 0;
}

body.app-page.app-oreo-shell .oreo-topbar-right {
    justify-content: flex-end !important;
}

body.app-page.app-oreo-shell .oreo-topbar-brand {
    flex: 0 0 auto;
}

body.app-page.app-oreo-shell .oreo-topbar-icon-nav {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

body.app-page.app-oreo-shell .oreo-header-search {
    display: flex !important;
    align-items: center !important;
    width: 100%;
    max-width: 34rem;
    min-width: 0;
    justify-self: center;
}

body.app-page.app-oreo-shell .oreo-header-search input {
    width: 100%;
    min-width: 0;
}

body.app-page.app-oreo-shell .oreo-topbar-meta {
    display: flex !important;
    align-items: center !important;
    gap: 0.9rem !important;
    white-space: nowrap;
}

body.app-page.app-oreo-shell .oreo-topbar-meta > * {
    white-space: nowrap;
}

body.app-page.app-oreo-shell .user-profile,
body.app-page.app-oreo-shell .user-profile-trigger {
    flex: 0 0 auto;
}

body.app-page.app-oreo-shell .sidebar {
    position: fixed !important;
    top: 0.75rem !important;
    left: 0.75rem !important;
    bottom: 0.75rem !important;
    transform: none !important;
    z-index: 1045 !important;
}

body.app-page.app-oreo-shell .sidebar-panel-demo,
body.app-page.app-oreo-shell .app-header-main.app-header-main-unified,
body.app-page.app-oreo-shell .app-footer-card {
    border-radius: 0.35rem !important;
}

body.app-page.app-oreo-shell .main-content {
    position: relative;
    z-index: 1;
}

body.app-page.app-oreo-shell .oreo-dashboard-canvas,
body.app-page.app-oreo-shell .dashboard-grid,
body.app-page.app-oreo-shell .dashboard-hero,
body.app-page.app-oreo-shell .stats-grid,
body.app-page.app-oreo-shell .oreo-core-grid,
body.app-page.app-oreo-shell .oreo-mid-grid,
body.app-page.app-oreo-shell .oreo-bottom-grid,
body.app-page.app-oreo-shell .oreo-final-grid {
    width: 100%;
    max-width: none;
}

@media (max-width: 1399.98px) {
    body.app-page.app-oreo-shell .app-header-main.app-header-main-unified.oreo-topbar-shell {
        grid-template-columns: auto minmax(14rem, 1fr) auto !important;
    }

    body.app-page.app-oreo-shell .oreo-topbar-meta {
        gap: 0.7rem !important;
        font-size: 0.78rem;
    }
}

@media (max-width: 1199.98px) {
    body.app-page.app-oreo-shell .app-header-main.app-header-main-unified.oreo-topbar-shell {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.app-page.app-oreo-shell .oreo-topbar-left,
    body.app-page.app-oreo-shell .oreo-topbar-right {
        flex-wrap: wrap;
    }

    body.app-page.app-oreo-shell .oreo-header-search {
        max-width: none;
        justify-self: stretch;
    }
}

@media (max-width: 991.98px) {
    body.app-page.app-oreo-shell .sidebar,
    body.app-page.app-oreo-shell.sidebar-collapsed .sidebar {
        transform: translateX(-115%) !important;
    }

    body.app-page.app-oreo-shell.sidebar-open .sidebar {
        transform: translateX(0) !important;
    }

    body.app-page.app-oreo-shell .app-header {
        margin-top: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    body.app-page.app-oreo-shell .app-header-main.app-header-main-unified.oreo-topbar-shell {
        padding: 0.7rem 0.8rem !important;
        gap: 0.75rem !important;
    }

    body.app-page.app-oreo-shell .oreo-topbar-icon-nav,
    body.app-page.app-oreo-shell .oreo-topbar-meta {
        display: none !important;
    }
}

/* --- 2026-04-02 Oreo module density pass: reduce whitespace and match tighter demo rhythm --- */
body.app-page.app-oreo-shell .oreo-module-page .main-content {
    display: block !important;
}

body.app-page.app-oreo-shell .oreo-module-page .main-content > section,
body.app-page.app-oreo-shell .oreo-module-page .main-content > .dashboard-grid,
body.app-page.app-oreo-shell .oreo-module-page .main-content > .stats-grid,
body.app-page.app-oreo-shell .oreo-module-page .main-content > .compact-stats-grid {
    margin-bottom: 0.75rem !important;
}

body.app-page.app-oreo-shell .oreo-module-page .dashboard-grid,
body.app-page.app-oreo-shell .oreo-module-page .stats-grid,
body.app-page.app-oreo-shell .oreo-module-page .compact-stats-grid,
body.app-page.app-oreo-shell .oreo-module-page .module-kpi-grid {
    gap: 0.75rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .module-hero,
body.app-page.app-oreo-shell .generic-module-page .module-hero,
body.app-page.app-oreo-shell .ops-module-page .module-hero {
    margin-bottom: 0.75rem !important;
    padding: 0.9rem 1rem !important;
    border-radius: 0.35rem !important;
    box-shadow: 0 8px 18px rgba(42, 68, 97, 0.05) !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .module-hero h2,
body.app-page.app-oreo-shell .generic-module-page .module-hero h2,
body.app-page.app-oreo-shell .ops-module-page .module-hero h2 {
    margin-bottom: 0.1rem;
    font-size: clamp(1.85rem, 1.2rem + 1vw, 2.45rem) !important;
    line-height: 1.04;
}

body.app-page.app-oreo-shell .dedicated-module-page .patient-hero-pills,
body.app-page.app-oreo-shell .generic-module-page .patient-hero-pills,
body.app-page.app-oreo-shell .ops-module-page .patient-hero-pills {
    margin-top: 0.45rem !important;
    gap: 0.35rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .surface-tag,
body.app-page.app-oreo-shell .generic-module-page .surface-tag,
body.app-page.app-oreo-shell .ops-module-page .surface-tag {
    min-height: 1.65rem !important;
    padding: 0.24rem 0.5rem !important;
    font-size: 0.68rem !important;
    border-radius: 0.24rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .module-hero-actions,
body.app-page.app-oreo-shell .generic-module-page .module-hero-actions,
body.app-page.app-oreo-shell .ops-module-page .module-hero-actions {
    gap: 0.45rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .module-hero-actions .btn,
body.app-page.app-oreo-shell .generic-module-page .module-hero-actions .btn,
body.app-page.app-oreo-shell .ops-module-page .module-hero-actions .btn {
    min-height: 2.2rem !important;
    padding: 0.46rem 0.76rem !important;
    font-size: 0.74rem !important;
    border-radius: 0.24rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .module-status-card,
body.app-page.app-oreo-shell .dedicated-module-page .module-stat-card,
body.app-page.app-oreo-shell .dedicated-module-page .module-table-card,
body.app-page.app-oreo-shell .dedicated-module-page .module-form-card,
body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-actions-card,
body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-health-card,
body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-feed-card,
body.app-page.app-oreo-shell .generic-module-page .surface-card,
body.app-page.app-oreo-shell .ops-module-page .surface-card {
    border-radius: 0.35rem !important;
    box-shadow: 0 8px 18px rgba(42, 68, 97, 0.05) !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .module-status-card .surface-head,
body.app-page.app-oreo-shell .dedicated-module-page .module-table-card .surface-head,
body.app-page.app-oreo-shell .dedicated-module-page .module-form-card .surface-head,
body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-actions-card .surface-head,
body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-health-card .surface-head,
body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-feed-card .surface-head {
    padding: 0.78rem 0.9rem 0.12rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .surface-head.compact h3,
body.app-page.app-oreo-shell .generic-module-page .surface-head.compact h3,
body.app-page.app-oreo-shell .ops-module-page .surface-head.compact h3 {
    font-size: 0.98rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .module-status-card,
body.app-page.app-oreo-shell .dedicated-module-page .module-kpi-grid {
    margin-bottom: 0.75rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .module-status-rail {
    padding: 0 0.9rem 0.8rem !important;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)) !important;
    gap: 0.42rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .module-status-chip {
    min-height: 1.9rem !important;
    padding: 0.36rem 0.58rem !important;
    font-size: 0.69rem !important;
    border-radius: 0.24rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .module-kpi-grid .module-stat-card,
body.app-page.app-oreo-shell .ops-module-page .module-kpi-grid .stat-card,
body.app-page.app-oreo-shell .generic-module-page .module-kpi-grid .stat-card {
    min-height: 5.85rem !important;
    padding: 0.78rem 0.9rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .module-kpi-grid .stat-value,
body.app-page.app-oreo-shell .ops-module-page .module-kpi-grid .stat-value,
body.app-page.app-oreo-shell .generic-module-page .module-kpi-grid .stat-value {
    margin-top: 0.25rem !important;
    font-size: 1.7rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .module-kpi-grid .stat-icon,
body.app-page.app-oreo-shell .ops-module-page .module-kpi-grid .stat-icon,
body.app-page.app-oreo-shell .generic-module-page .module-kpi-grid .stat-icon {
    width: 2.6rem !important;
    height: 2.6rem !important;
    border-radius: 0.3rem !important;
    box-shadow: 0 8px 16px rgba(42, 68, 97, 0.08) !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-overview-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.85fr) !important;
    gap: 0.75rem !important;
    align-items: start !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-action {
    min-height: 0 !important;
    padding: 0.82rem 0.88rem !important;
    border-radius: 0.3rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-action-icon {
    width: 2.3rem !important;
    height: 2.3rem !important;
    margin-bottom: 0.62rem !important;
    border-radius: 0.3rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-action strong {
    margin-bottom: 0.22rem !important;
    font-size: 0.92rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-action p {
    font-size: 0.76rem !important;
    line-height: 1.45 !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-health-card .module-status-rail.mt-2 {
    margin-top: 0.35rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .qr-activity-list {
    display: grid;
    gap: 0.55rem;
    padding: 0.12rem 0.9rem 0.9rem;
}

body.app-page.app-oreo-shell .dedicated-module-page .qr-activity-item {
    padding: 0.68rem 0.8rem;
    border: 1px solid #e8eef6;
    border-radius: 0.28rem;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

body.app-page.app-oreo-shell .dedicated-module-page .qr-activity-item p {
    margin: 0;
    font-size: 0.77rem;
}

body.app-page.app-oreo-shell .dedicated-module-page .module-table-card .surface-head,
body.app-page.app-oreo-shell .generic-module-page .surface-card .surface-head.compact,
body.app-page.app-oreo-shell .ops-module-page .surface-card .surface-head.compact {
    padding: 0.8rem 0.9rem 0.14rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .app-table-wrap,
body.app-page.app-oreo-shell .generic-module-page .app-table-wrap,
body.app-page.app-oreo-shell .ops-module-page .app-table-wrap {
    padding: 0.7rem 0.9rem 0.9rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .table,
body.app-page.app-oreo-shell .generic-module-page .table,
body.app-page.app-oreo-shell .ops-module-page .table {
    border-radius: 0.28rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .table thead th,
body.app-page.app-oreo-shell .generic-module-page .table thead th,
body.app-page.app-oreo-shell .ops-module-page .table thead th {
    padding-top: 0.72rem !important;
    padding-bottom: 0.72rem !important;
    font-size: 0.66rem !important;
}

body.app-page.app-oreo-shell .dedicated-module-page .table tbody td,
body.app-page.app-oreo-shell .generic-module-page .table tbody td,
body.app-page.app-oreo-shell .ops-module-page .table tbody td {
    padding-top: 0.72rem !important;
    padding-bottom: 0.72rem !important;
    font-size: 0.78rem !important;
}

body.app-page.app-oreo-shell .app-footer-card {
    padding: 0.78rem 1rem !important;
    border-radius: 0.28rem !important;
}

@media (max-width: 1199.98px) {
    body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991.98px) {
    body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-overview-grid {
        grid-template-columns: 1fr !important;
    }

    body.app-page.app-oreo-shell .dedicated-module-page .module-hero,
    body.app-page.app-oreo-shell .generic-module-page .module-hero,
    body.app-page.app-oreo-shell .ops-module-page .module-hero {
        padding: 0.85rem 0.9rem !important;
    }
}

@media (max-width: 767.98px) {
    body.app-page.app-oreo-shell .dedicated-module-page .qr-attendance-action-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- 2026-04-02 Oreo clone shell rewrite: remove hybrid branding and match demo structure --- */
body.app-page.oreo-clone-shell {
    --oreo-clone-sidebar-width: 232px;
    --oreo-clone-topbar-height: 58px;
    background: #eceff4 !important;
    color: #56657a !important;
}

body.app-page.oreo-clone-shell .app-shell {
    padding: 0 !important;
    min-height: 100vh;
    background: #eceff4 !important;
}

body.app-page.oreo-clone-shell .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: var(--oreo-clone-sidebar-width) !important;
    max-width: var(--oreo-clone-sidebar-width) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-right: 1px solid #e7ebf1 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    z-index: 1400 !important;
    transform: none !important;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px 14px 18px;
    background: #ffffff;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
}

body.app-page.oreo-clone-shell .oreo-clone-home-pill {
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid #7ddde0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #576981;
    font-size: 13px;
    font-weight: 500;
    background: #ffffff;
}

body.app-page.oreo-clone-shell .oreo-clone-home-pill i {
    color: #75839a;
    font-size: 12px;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-context {
    color: #8f9caf;
    font-size: 13px;
    font-weight: 500;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-profile {
    padding: 14px 10px 20px;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f4f7fb, #ffffff);
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 1px #dfe5ee;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-avatar span {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #19d0d6, #4d78f4);
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 600;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-profile strong {
    color: #313f55;
    font-size: 14px;
    font-weight: 600;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-profile span {
    color: #97a3b4;
    font-size: 12px;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-divider {
    height: 1px;
    margin: 6px 0 14px;
    background: #edf1f5;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-scroll::-webkit-scrollbar-thumb {
    background: #d9e3ec;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-label {
    margin-bottom: 10px;
    color: #7e8a9b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.app-page.oreo-clone-shell .oreo-clone-nav {
    display: grid;
    gap: 4px;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-link,
body.app-page.oreo-clone-shell .oreo-clone-nav-group-summary,
body.app-page.oreo-clone-shell .oreo-clone-subnav-link {
    text-decoration: none;
    color: #607086;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-link,
body.app-page.oreo-clone-shell .oreo-clone-nav-group-summary {
    min-height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    list-style: none;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-link:hover,
body.app-page.oreo-clone-shell .oreo-clone-nav-group-summary:hover,
body.app-page.oreo-clone-shell .oreo-clone-nav-link.active,
body.app-page.oreo-clone-shell .oreo-clone-nav-group.active > .oreo-clone-nav-group-summary {
    color: #19cbd2;
    background: rgba(25, 203, 210, 0.08);
}

body.app-page.oreo-clone-shell .oreo-clone-nav-link.active {
    font-weight: 600;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-icon,
body.app-page.oreo-clone-shell .oreo-clone-nav-group-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-icon i,
body.app-page.oreo-clone-shell .oreo-clone-nav-group-copy i {
    width: 14px;
    color: #8692a4;
    font-size: 13px;
    text-align: center;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-group[open] > .oreo-clone-nav-group-summary .oreo-clone-nav-arrow {
    transform: rotate(90deg);
}

body.app-page.oreo-clone-shell .oreo-clone-nav-group-summary::-webkit-details-marker {
    display: none;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-arrow {
    color: #96a3b4;
    font-size: 12px;
    transition: transform 0.18s ease;
}

body.app-page.oreo-clone-shell .oreo-clone-subnav {
    display: grid;
    gap: 2px;
    padding: 0 0 6px 36px;
}

body.app-page.oreo-clone-shell .oreo-clone-subnav-link {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
}

body.app-page.oreo-clone-shell .oreo-clone-subnav-link.active,
body.app-page.oreo-clone-shell .oreo-clone-subnav-link:hover {
    color: #19cbd2;
}

body.app-page.oreo-clone-shell .oreo-clone-subnav-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c5d0dc;
}

body.app-page.oreo-clone-shell .oreo-clone-subnav-link.active .oreo-clone-subnav-dot {
    background: #19cbd2;
}

body.app-page.oreo-clone-shell .app-header {
    position: fixed !important;
    top: 0 !important;
    left: var(--oreo-clone-sidebar-width) !important;
    right: 0 !important;
    margin: 0 !important;
    z-index: 1500 !important;
    background: transparent !important;
}

body.app-page.oreo-clone-shell .oreo-clone-topbar {
    height: var(--oreo-clone-topbar-height);
    padding: 0 18px;
    display: grid;
    grid-template-columns: auto minmax(240px, 420px) auto;
    align-items: center;
    gap: 18px;
    background: #17cfd4;
    box-shadow: none;
}

body.app-page.oreo-clone-shell .oreo-clone-topbar-left,
body.app-page.oreo-clone-shell .oreo-clone-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.app-page.oreo-clone-shell .oreo-clone-topbar-right {
    justify-content: flex-end;
}

body.app-page.oreo-clone-shell .oreo-clone-icon-button,
body.app-page.oreo-clone-shell .oreo-clone-shortcut {
    width: 28px;
    height: 28px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: transparent;
    text-decoration: none;
    font-size: 14px;
}

body.app-page.oreo-clone-shell .oreo-clone-icon-button:hover,
body.app-page.oreo-clone-shell .oreo-clone-shortcut:hover,
body.app-page.oreo-clone-shell .oreo-clone-shortcut.active {
    color: #fefefe;
    opacity: 0.95;
}

body.app-page.oreo-clone-shell .oreo-clone-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

body.app-page.oreo-clone-shell .oreo-clone-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
}

body.app-page.oreo-clone-shell .oreo-clone-brand-text {
    color: #ffffff;
}

body.app-page.oreo-clone-shell .oreo-clone-search {
    height: 36px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    justify-self: center;
    width: 100%;
    max-width: 420px;
}

body.app-page.oreo-clone-shell .oreo-clone-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
    font-size: 13px;
    padding: 0 !important;
}

body.app-page.oreo-clone-shell .oreo-clone-search input::placeholder {
    color: rgba(255, 255, 255, 0.82) !important;
}

body.app-page.oreo-clone-shell .oreo-clone-search-tail {
    font-size: 12px;
}

body.app-page.oreo-clone-shell .oreo-clone-meta-pill {
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
}

body.app-page.oreo-clone-shell .oreo-clone-power-menu {
    position: relative;
}

body.app-page.oreo-clone-shell .profile-dropdown {
    right: 0 !important;
    left: auto !important;
    min-width: 190px;
    padding: 6px 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.16) !important;
}

body.app-page.oreo-clone-shell .dropdown-item,
body.app-page.oreo-clone-shell .dropdown-item-form .dropdown-item {
    min-height: 38px;
    padding: 0 14px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #5f6e82 !important;
    font-size: 12px;
    font-weight: 500;
}

body.app-page.oreo-clone-shell .dropdown-item:hover,
body.app-page.oreo-clone-shell .dropdown-item-form .dropdown-item:hover {
    background: #f5f8fb !important;
    color: #1ac7cf !important;
}

body.app-page.oreo-clone-shell .oreo-clone-dropdown-meta {
    pointer-events: none;
}

body.app-page.oreo-clone-shell .main-content {
    margin-left: var(--oreo-clone-sidebar-width) !important;
    width: auto !important;
    max-width: none !important;
    padding: 74px 22px 22px !important;
    background: transparent !important;
    min-height: calc(100vh - 36px);
}

body.app-page.oreo-clone-shell .app-footer-shell {
    margin-left: var(--oreo-clone-sidebar-width) !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 22px 18px !important;
}

body.app-page.oreo-clone-shell .app-footer-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 28px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #9aa7b8 !important;
    font-size: 12px;
}

body.app-page.oreo-clone-shell .app-footer-card small {
    color: #a3adba;
    font-size: 12px;
}

body.app-page.oreo-clone-shell .surface-card,
body.app-page.oreo-clone-shell .dashboard-card,
body.app-page.oreo-clone-shell .stat-card,
body.app-page.oreo-clone-shell .table-shell,
body.app-page.oreo-clone-shell .saas-card,
body.app-page.oreo-clone-shell .table-responsive,
body.app-page.oreo-clone-shell .module-table-card,
body.app-page.oreo-clone-shell .module-status-card,
body.app-page.oreo-clone-shell .module-form-card,
body.app-page.oreo-clone-shell .module-stat-card,
body.app-page.oreo-clone-shell .content-header,
body.app-page.oreo-clone-shell .dashboard-hero,
body.app-page.oreo-clone-shell .main-content .card {
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

body.app-page.oreo-clone-shell .oreo-dashboard-canvas {
    display: grid;
    gap: 22px;
}

body.app-page.oreo-clone-shell .oreo-page-ribbon {
    min-height: 116px;
    padding: 16px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    background: #17cfd4 !important;
    color: #ffffff;
}

body.app-page.oreo-clone-shell .oreo-page-ribbon-copy h2 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 500;
}

body.app-page.oreo-clone-shell .oreo-page-ribbon-copy p,
body.app-page.oreo-clone-shell .oreo-page-ribbon-copy .oreo-banner-kicker {
    color: rgba(255, 255, 255, 0.84);
}

body.app-page.oreo-clone-shell .oreo-page-ribbon-stats {
    display: flex;
    align-items: stretch;
    gap: 18px;
}

body.app-page.oreo-clone-shell .oreo-page-ribbon-stats article {
    min-width: 124px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

body.app-page.oreo-clone-shell .oreo-breadcrumb-pill {
    min-width: 190px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

body.app-page.oreo-clone-shell .oreo-top-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: -24px;
}

body.app-page.oreo-clone-shell .oreo-top-metric-card {
    padding: 18px 20px 16px !important;
    min-height: 128px;
}

body.app-page.oreo-clone-shell .oreo-top-metric-card strong {
    color: #2f4056;
    font-size: 2.1rem;
    font-weight: 500;
    letter-spacing: 0;
}

body.app-page.oreo-clone-shell .oreo-top-metric-card h3,
body.app-page.oreo-clone-shell .oreo-banner-kicker {
    display: none !important;
}

body.app-page.oreo-clone-shell .oreo-top-metric-card h3,
body.app-page.oreo-clone-shell .oreo-card-head h3,
body.app-page.oreo-clone-shell .surface-head h3 {
    color: #22c8d0;
    font-weight: 500;
}

body.app-page.oreo-clone-shell .oreo-top-metric-card span,
body.app-page.oreo-clone-shell .oreo-top-metric-card small,
body.app-page.oreo-clone-shell .oreo-card-head p,
body.app-page.oreo-clone-shell .surface-head p,
body.app-page.oreo-clone-shell .stat-meta,
body.app-page.oreo-clone-shell .oreo-side-table-row span,
body.app-page.oreo-clone-shell .oreo-timeline-item span,
body.app-page.oreo-clone-shell .oreo-location-card p {
    color: #9ba8b9 !important;
}

body.app-page.oreo-clone-shell .oreo-progress-track {
    height: 8px;
    margin: 12px 0 10px;
    border-radius: 999px !important;
    background: #edf1f6 !important;
}

body.app-page.oreo-clone-shell .oreo-progress-track span {
    border-radius: 999px !important;
}

body.app-page.oreo-clone-shell .oreo-core-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
    gap: 24px;
}

body.app-page.oreo-clone-shell .oreo-survey-card,
body.app-page.oreo-clone-shell .oreo-side-table-card,
body.app-page.oreo-clone-shell .oreo-timeline-card,
body.app-page.oreo-clone-shell .oreo-location-card,
body.app-page.oreo-clone-shell .oreo-spark-card,
body.app-page.oreo-clone-shell .oreo-revenue-card,
body.app-page.oreo-clone-shell .oreo-table-card,
body.app-page.oreo-clone-shell .oreo-mini-stat-card {
    padding: 18px !important;
}

body.app-page.oreo-clone-shell .oreo-card-head,
body.app-page.oreo-clone-shell .surface-head {
    padding: 0 !important;
    margin-bottom: 16px;
}

body.app-page.oreo-clone-shell .oreo-card-head.stacked p,
body.app-page.oreo-clone-shell .surface-head.stacked p {
    margin-top: 2px;
}

body.app-page.oreo-clone-shell .oreo-card-actions .btn,
body.app-page.oreo-clone-shell .oreo-card-dismiss,
body.app-page.oreo-clone-shell .btn,
body.app-page.oreo-clone-shell .page-link {
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.app-page.oreo-clone-shell .oreo-card-actions .btn {
    min-height: 38px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 500;
}

body.app-page.oreo-clone-shell .oreo-card-actions .btn-outline-primary {
    border: 1px solid #20d0d6 !important;
    color: #20d0d6 !important;
    background: transparent !important;
    border-radius: 999px !important;
}

body.app-page.oreo-clone-shell .oreo-card-actions .btn-light {
    border: 0 !important;
    background: transparent !important;
    color: #8d9aac !important;
}

body.app-page.oreo-clone-shell .oreo-chart-shell {
    padding-top: 8px;
}

body.app-page.oreo-clone-shell .oreo-chart-labels {
    margin-top: 12px;
}

body.app-page.oreo-clone-shell .oreo-survey-stats {
    margin-top: 14px;
    background: #f2f3f5;
}

body.app-page.oreo-clone-shell .oreo-survey-stats article {
    padding: 18px 12px 14px;
}

body.app-page.oreo-clone-shell .oreo-side-table-head,
body.app-page.oreo-clone-shell .oreo-side-table-row {
    padding: 12px 14px;
    background: #f6f7f9;
    margin-bottom: 10px;
}

body.app-page.oreo-clone-shell .oreo-side-table-head {
    color: #5d6d82;
    font-weight: 600;
}

body.app-page.oreo-clone-shell .oreo-mid-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
    gap: 24px;
}

body.app-page.oreo-clone-shell .oreo-timeline-hero {
    min-height: 170px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(183, 168, 231, 0.35), rgba(247, 244, 255, 0.72));
}

body.app-page.oreo-clone-shell .oreo-mini-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

body.app-page.oreo-clone-shell .oreo-mini-stat-card {
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 14px;
}

body.app-page.oreo-clone-shell .oreo-location-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

body.app-page.oreo-clone-shell .oreo-location-tile {
    min-height: 118px;
    border-radius: 0 !important;
}

body.app-page.oreo-clone-shell .oreo-mini-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

body.app-page.oreo-clone-shell .oreo-bottom-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.32fr);
    gap: 24px;
}

body.app-page.oreo-clone-shell .oreo-revenue-ring {
    width: 180px;
    height: 180px;
    margin: 12px auto 20px;
}

body.app-page.oreo-clone-shell .oreo-table-card .table {
    margin: 0;
}

body.app-page.oreo-clone-shell .oreo-table-card .table thead th,
body.app-page.oreo-clone-shell .module-table-card .table thead th,
body.app-page.oreo-clone-shell .app-table thead th {
    padding: 13px 12px !important;
    border: 0 !important;
    background: #f7f8fb !important;
    color: #6f8094 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.app-page.oreo-clone-shell .oreo-table-card .table tbody td,
body.app-page.oreo-clone-shell .module-table-card .table tbody td,
body.app-page.oreo-clone-shell .app-table tbody td {
    padding: 14px 12px !important;
    border-color: #edf1f5 !important;
    color: #536378 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background: #ffffff !important;
}

body.app-page.oreo-clone-shell .module-hero,
body.app-page.oreo-clone-shell .module-status-card,
body.app-page.oreo-clone-shell .module-stat-card,
body.app-page.oreo-clone-shell .module-table-card,
body.app-page.oreo-clone-shell .module-form-card {
    border-radius: 0 !important;
}

body.app-page.oreo-clone-shell .module-hero {
    padding: 16px 18px !important;
    background: #ffffff !important;
}

body.app-page.oreo-clone-shell .module-hero::after,
body.app-page.oreo-clone-shell .module-stat-card::before {
    display: none !important;
}

body.app-page.oreo-clone-shell .status-pill,
body.app-page.oreo-clone-shell .surface-tag,
body.app-page.oreo-clone-shell .module-status-chip {
    border-radius: 0 !important;
}

body.app-page.oreo-clone-shell .module-kpi-grid .stat-card,
body.app-page.oreo-clone-shell .module-kpi-grid .module-stat-card {
    min-height: 96px !important;
}

body.app-page.oreo-clone-shell.sidebar-collapsed .sidebar {
    width: 76px !important;
    max-width: 76px !important;
}

body.app-page.oreo-clone-shell.sidebar-collapsed .app-header,
body.app-page.oreo-clone-shell.sidebar-collapsed .main-content,
body.app-page.oreo-clone-shell.sidebar-collapsed .app-footer-shell {
    left: 76px !important;
    margin-left: 76px !important;
}

body.app-page.oreo-clone-shell.sidebar-collapsed .oreo-clone-sidebar-context,
body.app-page.oreo-clone-shell.sidebar-collapsed .oreo-clone-sidebar-profile strong,
body.app-page.oreo-clone-shell.sidebar-collapsed .oreo-clone-sidebar-profile span,
body.app-page.oreo-clone-shell.sidebar-collapsed .oreo-clone-nav-label,
body.app-page.oreo-clone-shell.sidebar-collapsed .oreo-clone-nav-copy,
body.app-page.oreo-clone-shell.sidebar-collapsed .oreo-clone-nav-group-copy span,
body.app-page.oreo-clone-shell.sidebar-collapsed .oreo-clone-nav-arrow,
body.app-page.oreo-clone-shell.sidebar-collapsed .oreo-clone-subnav {
    display: none !important;
}

body.app-page.oreo-clone-shell.sidebar-collapsed .oreo-clone-home-pill,
body.app-page.oreo-clone-shell.sidebar-collapsed .oreo-clone-nav-link,
body.app-page.oreo-clone-shell.sidebar-collapsed .oreo-clone-nav-group-summary {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 1199.98px) {
    body.app-page.oreo-clone-shell .oreo-clone-topbar {
        grid-template-columns: auto minmax(180px, 1fr) auto;
    }

    body.app-page.oreo-clone-shell .oreo-clone-meta-pill {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    body.app-page.oreo-clone-shell .sidebar,
    body.app-page.oreo-clone-shell.sidebar-collapsed .sidebar {
        transform: translateX(-105%) !important;
        width: min(260px, calc(100vw - 28px)) !important;
        max-width: min(260px, calc(100vw - 28px)) !important;
        box-shadow: 0 18px 36px rgba(31, 41, 55, 0.2) !important;
    }

    body.app-page.oreo-clone-shell.sidebar-open .sidebar {
        transform: translateX(0) !important;
    }

    body.app-page.oreo-clone-shell .app-header {
        left: 0 !important;
    }

    body.app-page.oreo-clone-shell .main-content,
    body.app-page.oreo-clone-shell .app-footer-shell,
    body.app-page.oreo-clone-shell.sidebar-collapsed .main-content,
    body.app-page.oreo-clone-shell.sidebar-collapsed .app-footer-shell {
        margin-left: 0 !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    body.app-page.oreo-clone-shell .oreo-clone-topbar {
        padding: 0 14px;
        grid-template-columns: auto 1fr auto;
    }

    body.app-page.oreo-clone-shell .oreo-clone-shortcuts,
    body.app-page.oreo-clone-shell .oreo-clone-search {
        display: none !important;
    }

    body.app-page.oreo-clone-shell .oreo-page-ribbon,
    body.app-page.oreo-clone-shell .oreo-page-ribbon-stats,
    body.app-page.oreo-clone-shell .oreo-core-grid,
    body.app-page.oreo-clone-shell .oreo-mid-grid,
    body.app-page.oreo-clone-shell .oreo-mini-panels,
    body.app-page.oreo-clone-shell .oreo-bottom-grid,
    body.app-page.oreo-clone-shell .oreo-top-metrics,
    body.app-page.oreo-clone-shell .oreo-mini-stat-row {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }
}

/* --- 2026-04-02 Oreo clone correction: restore DDCloud logo, keep sidebar visible, stop header overlap --- */
body.app-page.oreo-clone-shell .sidebar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar,
body.app-page.oreo-clone-shell .oreo-clone-sidebar-scroll {
    display: flex !important;
    visibility: visible !important;
}

body.app-page.oreo-clone-shell .app-header {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    padding: 0 22px 0 0 !important;
    margin-left: var(--oreo-clone-sidebar-width) !important;
    margin-bottom: 0 !important;
    background: transparent !important;
}

body.app-page.oreo-clone-shell .oreo-clone-topbar {
    margin-top: 0 !important;
}

body.app-page.oreo-clone-shell .main-content {
    padding-top: 18px !important;
}

body.app-page.oreo-clone-shell .oreo-clone-brand {
    gap: 8px;
}

body.app-page.oreo-clone-shell .oreo-clone-brand-mark {
    width: auto;
    min-width: 112px;
    max-width: 148px;
    height: 26px;
}

body.app-page.oreo-clone-shell .oreo-clone-brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

body.app-page.oreo-clone-shell .oreo-clone-brand-text {
    display: none !important;
}

body.app-page.oreo-clone-shell.sidebar-collapsed .app-header {
    margin-left: 76px !important;
}

@media (max-width: 991.98px) {
    body.app-page.oreo-clone-shell .app-header,
    body.app-page.oreo-clone-shell.sidebar-collapsed .app-header {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    body.app-page.oreo-clone-shell .main-content {
        padding-top: 14px !important;
    }
}

/* --- 2026-04-02 Oreo clone final shell fix: static header and visible tablet sidebar --- */
body.app-page.oreo-clone-shell .app-header {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0px !important;
    padding: 0 22px 0 0 !important;
}

body.app-page.oreo-clone-shell .main-content {
    padding-top: 16px !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    body.app-page.oreo-clone-shell .sidebar,
    body.app-page.oreo-clone-shell.sidebar-collapsed .sidebar {
        transform: none !important;
        width: 196px !important;
        max-width: 196px !important;
        box-shadow: none !important;
    }

    body.app-page.oreo-clone-shell .app-header,
    body.app-page.oreo-clone-shell.sidebar-collapsed .app-header {
        margin-left: 196px !important;
        padding: 0 14px 0 0 !important;
    }

    body.app-page.oreo-clone-shell .main-content,
    body.app-page.oreo-clone-shell .app-footer-shell,
    body.app-page.oreo-clone-shell.sidebar-collapsed .main-content,
    body.app-page.oreo-clone-shell.sidebar-collapsed .app-footer-shell {
        margin-left: 196px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    body.app-page.oreo-clone-shell .oreo-clone-topbar {
        grid-template-columns: auto minmax(150px, 1fr) auto !important;
        padding: 0 14px !important;
    }

    body.app-page.oreo-clone-shell .oreo-clone-search,
    body.app-page.oreo-clone-shell .oreo-clone-shortcuts {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    body.app-page.oreo-clone-shell .sidebar,
    body.app-page.oreo-clone-shell.sidebar-collapsed .sidebar {
        transform: translateX(-105%) !important;
        width: min(260px, calc(100vw - 28px)) !important;
        max-width: min(260px, calc(100vw - 28px)) !important;
        box-shadow: 0 18px 36px rgba(31, 41, 55, 0.2) !important;
    }

    body.app-page.oreo-clone-shell.sidebar-open .sidebar {
        transform: translateX(0) !important;
    }

    body.app-page.oreo-clone-shell .app-header,
    body.app-page.oreo-clone-shell.sidebar-collapsed .app-header,
    body.app-page.oreo-clone-shell .main-content,
    body.app-page.oreo-clone-shell .app-footer-shell,
    body.app-page.oreo-clone-shell.sidebar-collapsed .main-content,
    body.app-page.oreo-clone-shell.sidebar-collapsed .app-footer-shell {
        margin-left: 0 !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* --- 2026-04-02 Oreo clone direct-shell grid fix: keep sidebar in page flow on rebuilt pages --- */
body.app-page.oreo-clone-shell .oreo-app-screen {
    display: grid !important;
    grid-template-columns: var(--oreo-clone-sidebar-width) minmax(0, 1fr) !important;
    column-gap: 22px;
    align-items: start;
}

body.app-page.oreo-clone-shell .oreo-app-screen > .sidebar {
    position: sticky !important;
    top: 12px !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 24px) !important;
    margin: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    z-index: 20 !important;
}

body.app-page.oreo-clone-shell .oreo-app-screen > .sidebar .oreo-clone-sidebar {
    height: calc(100vh - 24px) !important;
}

body.app-page.oreo-clone-shell .oreo-app-screen > .main-content {
    margin-left: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    padding: 16px 0 22px !important;
}

body.app-page.oreo-clone-shell .oreo-app-screen > .main-content > :first-child {
    margin-top: 0 !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    body.app-page.oreo-clone-shell .oreo-app-screen {
        grid-template-columns: 196px minmax(0, 1fr) !important;
        column-gap: 14px;
    }

    body.app-page.oreo-clone-shell .oreo-app-screen > .sidebar,
    body.app-page.oreo-clone-shell .oreo-app-screen > .sidebar .oreo-clone-sidebar {
        width: 196px !important;
        max-width: 196px !important;
    }

    body.app-page.oreo-clone-shell .app-header,
    body.app-page.oreo-clone-shell.sidebar-collapsed .app-header,
    body.app-page.oreo-clone-shell .app-footer-shell,
    body.app-page.oreo-clone-shell.sidebar-collapsed .app-footer-shell {
        margin-left: 196px !important;
    }
}

@media (max-width: 767.98px) {
    body.app-page.oreo-clone-shell .oreo-app-screen {
        display: block !important;
    }

    body.app-page.oreo-clone-shell .oreo-app-screen > .main-content {
        padding: 14px 0 18px !important;
    }

    body.app-page.oreo-clone-shell .oreo-app-screen > .sidebar {
        position: fixed !important;
        top: 12px !important;
        left: 12px !important;
        bottom: 12px !important;
        width: min(260px, calc(100vw - 24px)) !important;
        max-width: min(260px, calc(100vw - 24px)) !important;
        height: auto !important;
        transform: translateX(-105%) !important;
        box-shadow: 0 18px 36px rgba(31, 41, 55, 0.2) !important;
        z-index: 1600 !important;
    }

    body.app-page.oreo-clone-shell .oreo-app-screen > .sidebar .oreo-clone-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
    }

    body.app-page.oreo-clone-shell.sidebar-open .oreo-app-screen > .sidebar {
        transform: translateX(0) !important;
    }
}

/* --- 2026-04-02 Oreo clone shell stabilization: keep header/sidebar in normal flow on rebuilt pages --- */
@media (min-width: 768px) {
    body.app-page.oreo-clone-shell .app-header {
        position: relative !important;
        inset: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: 40 !important;
    }

    body.app-page.oreo-clone-shell .oreo-clone-topbar {
        position: relative !important;
    }

    body.app-page.oreo-clone-shell .oreo-app-screen {
        align-items: stretch !important;
    }

    body.app-page.oreo-clone-shell .oreo-app-screen > .sidebar {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        height: auto !important;
        min-height: calc(100vh - 88px) !important;
        align-self: stretch !important;
        z-index: 10 !important;
    }

    body.app-page.oreo-clone-shell .oreo-app-screen > .sidebar .oreo-clone-sidebar {
        height: 100% !important;
        min-height: calc(100vh - 88px) !important;
    }

    body.app-page.oreo-clone-shell .oreo-app-screen > .main-content {
        overflow: hidden !important;
    }
}

/* --- 2026-04-02 Oreo clone density cleanup: square edges, tighter spacing, stable sidebar nav --- */
body.app-page.oreo-clone-shell .oreo-clone-topbar,
body.app-page.oreo-clone-shell .oreo-clone-search,
body.app-page.oreo-clone-shell .oreo-clone-meta-pill,
body.app-page.oreo-clone-shell .oreo-clone-home-pill,
body.app-page.oreo-clone-shell .oreo-clone-sidebar-avatar,
body.app-page.oreo-clone-shell .oreo-clone-sidebar-avatar span,
body.app-page.oreo-clone-shell .surface-card,
body.app-page.oreo-clone-shell .dashboard-card,
body.app-page.oreo-clone-shell .stat-card,
body.app-page.oreo-clone-shell .table-shell,
body.app-page.oreo-clone-shell .saas-card,
body.app-page.oreo-clone-shell .table-responsive,
body.app-page.oreo-clone-shell .module-table-card,
body.app-page.oreo-clone-shell .module-status-card,
body.app-page.oreo-clone-shell .module-form-card,
body.app-page.oreo-clone-shell .module-stat-card,
body.app-page.oreo-clone-shell .content-header,
body.app-page.oreo-clone-shell .dashboard-hero,
body.app-page.oreo-clone-shell .main-content .card,
body.app-page.oreo-clone-shell .btn,
body.app-page.oreo-clone-shell .page-link,
body.app-page.oreo-clone-shell .form-control,
body.app-page.oreo-clone-shell .form-select,
body.app-page.oreo-clone-shell .dropdown-menu,
body.app-page.oreo-clone-shell .profile-dropdown,
body.app-page.oreo-clone-shell .status-pill,
body.app-page.oreo-clone-shell .surface-tag,
body.app-page.oreo-clone-shell .module-status-chip,
body.app-page.oreo-clone-shell .patient-avatar-circle,
body.app-page.oreo-clone-shell .ipd-photo-card,
body.app-page.oreo-clone-shell .ipd-code-block,
body.app-page.oreo-clone-shell .ipd-demographic-tile,
body.app-page.oreo-clone-shell .ipd-case-row,
body.app-page.oreo-clone-shell .ipd-note-section,
body.app-page.oreo-clone-shell .ipd-vital-row,
body.app-page.oreo-clone-shell .ipd-note-item,
body.app-page.oreo-clone-shell .ipd-billing-card,
body.app-page.oreo-clone-shell .patient-data-source-item,
body.app-page.oreo-clone-shell .mini-list-item,
body.app-page.oreo-clone-shell .app-footer-card,
body.app-page.oreo-clone-shell .table-action-trigger,
body.app-page.oreo-clone-shell .table-action-dropdown,
body.app-page.oreo-clone-shell .alert,
body.app-page.oreo-clone-shell .modal-content {
    border-radius: 0 !important;
}

body.app-page.oreo-clone-shell .load-bar,
body.app-page.oreo-clone-shell .load-bar span,
body.app-page.oreo-clone-shell .oreo-progress-track,
body.app-page.oreo-clone-shell .oreo-progress-track span,
body.app-page.oreo-clone-shell .ipd-finance-ring,
body.app-page.oreo-clone-shell .ipd-finance-ring-inner,
body.app-page.oreo-clone-shell .ipd-badge,
body.app-page.oreo-clone-shell .badge {
    border-radius: 0 !important;
}

body.app-page.oreo-clone-shell .app-header {
    padding: 0 12px 0 0 !important;
}

body.app-page.oreo-clone-shell .oreo-clone-topbar {
    height: 54px !important;
    padding: 0 14px !important;
    gap: 12px !important;
}

body.app-page.oreo-clone-shell .oreo-app-screen {
    column-gap: 12px !important;
}

body.app-page.oreo-clone-shell .main-content {
    padding: 10px 0 12px !important;
}

body.app-page.oreo-clone-shell .app-footer-shell {
    padding: 0 0 10px !important;
}

body.app-page.oreo-clone-shell .app-footer-card {
    min-height: 40px;
    padding: 10px 12px !important;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 10px 10px 12px !important;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-top {
    gap: 8px !important;
    padding-bottom: 10px !important;
}

body.app-page.oreo-clone-shell .oreo-clone-home-pill {
    min-height: 34px !important;
    padding: 0 12px !important;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-profile {
    padding: 8px 6px 10px !important;
    gap: 4px !important;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-avatar {
    width: 58px !important;
    height: 58px !important;
    border: 1px solid #dfe5ee !important;
    box-shadow: none !important;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-divider {
    margin: 6px 0 8px !important;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-scroll {
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding-right: 0 !important;
}

body.app-page.oreo-clone-shell .oreo-clone-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

body.app-page.oreo-clone-shell .oreo-clone-nav > * {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-label {
    margin-bottom: 6px !important;
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-link,
body.app-page.oreo-clone-shell .oreo-clone-nav-group-summary {
    min-height: 36px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-copy,
body.app-page.oreo-clone-shell .oreo-clone-nav-group-copy {
    min-width: 0;
    flex: 1 1 auto;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-copy,
body.app-page.oreo-clone-shell .oreo-clone-nav-group-copy span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.app-page.oreo-clone-shell .oreo-clone-subnav {
    display: grid !important;
    gap: 0 !important;
    padding: 0 0 4px 22px !important;
}

body.app-page.oreo-clone-shell .oreo-clone-subnav-link {
    min-height: 28px !important;
    font-size: 11px !important;
}

body.app-page.oreo-clone-shell .oreo-clone-subnav-dot {
    width: 4px !important;
    height: 4px !important;
}

body.app-page.oreo-clone-shell .ipd-shell {
    gap: 8px !important;
}

body.app-page.oreo-clone-shell .ipd-shell-header {
    gap: 8px !important;
    padding: 10px 12px !important;
}

body.app-page.oreo-clone-shell .ipd-toolbar {
    gap: 6px !important;
}

body.app-page.oreo-clone-shell .ipd-summary-strip,
body.app-page.oreo-clone-shell .ipd-layout,
body.app-page.oreo-clone-shell .ipd-main-column,
body.app-page.oreo-clone-shell .ipd-side-column,
body.app-page.oreo-clone-shell .ipd-profile-top,
body.app-page.oreo-clone-shell .ipd-demographics-grid,
body.app-page.oreo-clone-shell .ipd-case-grid,
body.app-page.oreo-clone-shell .ipd-vitals-list,
body.app-page.oreo-clone-shell .ipd-note-timeline,
body.app-page.oreo-clone-shell .ipd-note-groups,
body.app-page.oreo-clone-shell .ipd-billing-grid {
    gap: 8px !important;
}

body.app-page.oreo-clone-shell .ipd-summary-pill {
    min-height: 74px !important;
    padding: 10px 12px !important;
}

body.app-page.oreo-clone-shell .ipd-tabs {
    gap: 4px !important;
    padding: 4px !important;
    margin: 0 !important;
}

body.app-page.oreo-clone-shell .ipd-tab-link {
    min-height: 34px !important;
    padding: 0 10px !important;
}

body.app-page.oreo-clone-shell .ipd-photo-card,
body.app-page.oreo-clone-shell .ipd-code-block,
body.app-page.oreo-clone-shell .ipd-note-section,
body.app-page.oreo-clone-shell .ipd-vital-row,
body.app-page.oreo-clone-shell .ipd-note-item,
body.app-page.oreo-clone-shell .ipd-case-row,
body.app-page.oreo-clone-shell .ipd-demographic-tile {
    padding: 8px 10px !important;
}

body.app-page.oreo-clone-shell .surface-head.compact {
    margin-bottom: 6px !important;
}

body.app-page.oreo-clone-shell .ipd-case-grid {
    grid-template-columns: minmax(0, 1fr) 184px !important;
}

/* --- 2026-04-02 shared shell unification: same layout system for legacy and rebuilt pages --- */
body.app-page.oreo-clone-shell {
    --app-shell-nav-width: 220px;
    --app-shell-gap: 12px;
    --app-shell-content-pad-y: 10px;
}

body.app-page.oreo-clone-shell .app-header {
    padding-right: 0px !important;
}

body.app-page.oreo-clone-shell .app-footer-shell {
    margin-left: var(--app-shell-nav-width) !important;
    padding: 0 12px 10px !important;
}

body.app-page.oreo-clone-shell .oreo-app-screen,
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 {
    display: grid !important;
    grid-template-columns: var(--app-shell-nav-width) minmax(0, 1fr) !important;
    column-gap: var(--app-shell-gap) !important;
    align-items: start !important;
    margin: 0 !important;
}

body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-md-2'],
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-md-10'],
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-lg-10'],
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-xl-10'] {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    min-width: 0 !important;
}

body.app-page.oreo-clone-shell .oreo-app-screen > .sidebar,
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-md-2'] > .sidebar,
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-lg-2'] > .sidebar,
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-xl-2'] > .sidebar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: calc(100vh - 88px) !important;
    margin: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    align-self: stretch !important;
    z-index: 10 !important;
}

body.app-page.oreo-clone-shell .oreo-app-screen > .sidebar .oreo-clone-sidebar,
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-md-2'] > .sidebar .oreo-clone-sidebar,
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-lg-2'] > .sidebar .oreo-clone-sidebar,
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-xl-2'] > .sidebar .oreo-clone-sidebar {
    height: 100% !important;
    min-height: calc(100vh - 88px) !important;
}

body.app-page.oreo-clone-shell .oreo-app-screen > .main-content,
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > .main-content,
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-md-10'].main-content,
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-lg-10'].main-content,
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-xl-10'].main-content {
    margin-left: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: var(--app-shell-content-pad-y) 0 12px !important;
    overflow: hidden !important;
}

body.app-page.oreo-clone-shell .oreo-app-screen > .main-content > :first-child,
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > .main-content > :first-child,
body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-md-10'].main-content > :first-child {
    margin-top: 0 !important;
}

body.app-page.oreo-clone-shell .oreo-clone-sidebar-profile strong,
body.app-page.oreo-clone-shell .oreo-clone-sidebar-profile span,
body.app-page.oreo-clone-shell .oreo-clone-sidebar-context,
body.app-page.oreo-clone-shell .oreo-clone-nav-copy,
body.app-page.oreo-clone-shell .oreo-clone-nav-group-copy span,
body.app-page.oreo-clone-shell .oreo-clone-subnav-link span {
    word-break: keep-all;
    overflow-wrap: normal;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-group-copy span,
body.app-page.oreo-clone-shell .oreo-clone-subnav-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    body.app-page.oreo-clone-shell {
        --app-shell-nav-width: 196px;
        --app-shell-gap: 10px;
    }

    body.app-page.oreo-clone-shell .oreo-clone-topbar {
        grid-template-columns: auto minmax(150px, 1fr) auto !important;
        padding: 0 12px !important;
    }
}

@media (max-width: 767.98px) {
    body.app-page.oreo-clone-shell .app-header,
    body.app-page.oreo-clone-shell .app-footer-shell {
        margin-left: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.app-page.oreo-clone-shell .oreo-app-screen,
    body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 {
        display: block !important;
    }

    body.app-page.oreo-clone-shell .oreo-app-screen > .sidebar,
    body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-md-2'] > .sidebar,
    body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-lg-2'] > .sidebar,
    body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-xl-2'] > .sidebar {
        position: fixed !important;
        top: 12px !important;
        left: 12px !important;
        bottom: 12px !important;
        width: min(260px, calc(100vw - 24px)) !important;
        max-width: min(260px, calc(100vw - 24px)) !important;
        min-height: 0 !important;
        transform: translateX(-105%) !important;
        box-shadow: 0 18px 36px rgba(31, 41, 55, 0.2) !important;
        z-index: 1600 !important;
    }

    body.app-page.oreo-clone-shell.sidebar-open .oreo-app-screen > .sidebar,
    body.app-page.oreo-clone-shell.sidebar-open .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-md-2'] > .sidebar,
    body.app-page.oreo-clone-shell.sidebar-open .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-lg-2'] > .sidebar,
    body.app-page.oreo-clone-shell.sidebar-open .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-xl-2'] > .sidebar {
        transform: translateX(0) !important;
    }

    body.app-page.oreo-clone-shell .oreo-app-screen > .main-content,
    body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > .main-content,
    body.app-page.oreo-clone-shell .app-shell > .container-fluid.p-0 > .row.g-0 > [class*='col-md-10'].main-content {
        padding: 12px 0 16px !important;
    }
}

/* --- 2026-04-02 shared component polish: improve feel without changing layout --- */
body.app-page.oreo-clone-shell {
    --component-border: #dde5ef;
    --component-border-strong: #ccd7e4;
    --component-surface: #ffffff;
    --component-surface-soft: #f7f9fc;
    --component-surface-tint: #f3f8fb;
    --component-text: #334155;
    --component-text-soft: #6b7a90;
    --component-accent: #19cbd2;
    --component-accent-dark: #12939a;
    --component-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

body.app-page.oreo-clone-shell .surface-card,
body.app-page.oreo-clone-shell .dashboard-card,
body.app-page.oreo-clone-shell .stat-card,
body.app-page.oreo-clone-shell .table-shell,
body.app-page.oreo-clone-shell .module-table-card,
body.app-page.oreo-clone-shell .module-form-card,
body.app-page.oreo-clone-shell .module-status-card,
body.app-page.oreo-clone-shell .module-stat-card,
body.app-page.oreo-clone-shell .saas-card,
body.app-page.oreo-clone-shell .main-content .card,
body.app-page.oreo-clone-shell .app-footer-card {
    border: 1px solid var(--component-border) !important;
    background: var(--component-surface) !important;
    box-shadow: var(--component-shadow) !important;
    padding: 15px;
}

body.app-page.oreo-clone-shell .surface-head,
body.app-page.oreo-clone-shell .oreo-card-head,
body.app-page.oreo-clone-shell .appointment-table-meta,
body.app-page.oreo-clone-shell .module-table-meta {
    border-bottom: 1px solid #edf2f7;
}

body.app-page.oreo-clone-shell .surface-head.compact,
body.app-page.oreo-clone-shell .oreo-card-head {
    padding-bottom: 10px;
}

body.app-page.oreo-clone-shell .surface-overline,
body.app-page.oreo-clone-shell .hero-eyebrow,
body.app-page.oreo-clone-shell .oreo-banner-kicker {
    color: #2563eb !important;
    letter-spacing: 0.16em !important;
    font-weight: 700 !important;
}

body.app-page.oreo-clone-shell h2,
body.app-page.oreo-clone-shell h3,
body.app-page.oreo-clone-shell h4,
body.app-page.oreo-clone-shell .card-title,
body.app-page.oreo-clone-shell .stat-label,
body.app-page.oreo-clone-shell .oreo-clone-sidebar-profile strong {
    color: var(--component-text) !important;
}

body.app-page.oreo-clone-shell p,
body.app-page.oreo-clone-shell .card-subtitle,
body.app-page.oreo-clone-shell .stat-meta,
body.app-page.oreo-clone-shell small,
body.app-page.oreo-clone-shell .empty-state,
body.app-page.oreo-clone-shell .oreo-clone-sidebar-profile span,
body.app-page.oreo-clone-shell .oreo-clone-sidebar-context {
    color: var(--component-text-soft) !important;
}

body.app-page.oreo-clone-shell .btn,
body.app-page.oreo-clone-shell .page-link,
body.app-page.oreo-clone-shell .oreo-clone-nav-link,
body.app-page.oreo-clone-shell .oreo-clone-nav-group-summary,
body.app-page.oreo-clone-shell .oreo-clone-subnav-link,
body.app-page.oreo-clone-shell .ipd-tab-link,
body.app-page.oreo-clone-shell .dropdown-item,
body.app-page.oreo-clone-shell .table-action-trigger,
body.app-page.oreo-clone-shell .table-action-item {
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

body.app-page.oreo-clone-shell .btn {
    text-transform: none;
    letter-spacing: 0.01em;
    border-color: var(--component-border-strong) !important;
    box-shadow: none !important;
}

body.app-page.oreo-clone-shell .btn-primary {
    border-color: #255ee8 !important;
    background: #255ee8 !important;
    color: #ffffff !important;
}

body.app-page.oreo-clone-shell .btn-primary:hover,
body.app-page.oreo-clone-shell .btn-primary:focus {
    border-color: #1746b8 !important;
    background: #1746b8 !important;
}

body.app-page.oreo-clone-shell .btn-secondary {
    border-color: var(--component-border-strong) !important;
    background: var(--component-surface-soft) !important;
    color: var(--component-text) !important;
}

body.app-page.oreo-clone-shell .btn-secondary:hover,
body.app-page.oreo-clone-shell .btn-secondary:focus {
    background: #eef3f8 !important;
    border-color: #c7d3df !important;
}

body.app-page.oreo-clone-shell .btn-outline-primary {
    color: #255ee8 !important;
    background: #f4f8ff !important;
    border-color: #c9d7fb !important;
}

body.app-page.oreo-clone-shell .btn-outline-primary:hover,
body.app-page.oreo-clone-shell .btn-outline-primary:focus {
    background: #eaf1ff !important;
    border-color: #9fb7fb !important;
}

body.app-page.oreo-clone-shell .btn-outline-secondary,
body.app-page.oreo-clone-shell .btn-light {
    color: var(--component-text) !important;
    background: #ffffff !important;
    border-color: var(--component-border-strong) !important;
}

body.app-page.oreo-clone-shell .btn-outline-secondary:hover,
body.app-page.oreo-clone-shell .btn-light:hover {
    background: #f8fafc !important;
    border-color: #c7d3df !important;
}

body.app-page.oreo-clone-shell .btn-success {
    border-color: #0f766e !important;
    background: #0f766e !important;
}

body.app-page.oreo-clone-shell .btn-success:hover,
body.app-page.oreo-clone-shell .btn-success:focus {
    border-color: #0b5b55 !important;
    background: #0b5b55 !important;
}

body.app-page.oreo-clone-shell .form-control,
body.app-page.oreo-clone-shell .form-select {
    border-color: var(--component-border) !important;
    background: #fcfdff !important;
    color: var(--component-text) !important;
}

body.app-page.oreo-clone-shell .form-control::placeholder {
    color: #94a3b8 !important;
}

body.app-page.oreo-clone-shell .form-control:focus,
body.app-page.oreo-clone-shell .form-select:focus {
    border-color: #7dd3fc !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(25, 203, 210, 0.12) !important;
}

body.app-page.oreo-clone-shell .table-shell,
body.app-page.oreo-clone-shell .app-table-wrap,
body.app-page.oreo-clone-shell .table-responsive {
    background: var(--component-surface) !important;
}

body.app-page.oreo-clone-shell .app-table thead th,
body.app-page.oreo-clone-shell .table thead th {
    background: #f7f9fc !important;
    color: #64748b !important;
    border-bottom: 1px solid #e7edf5 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

body.app-page.oreo-clone-shell .app-table tbody td,
body.app-page.oreo-clone-shell .table tbody td {
    border-color: #edf2f7 !important;
    color: var(--component-text) !important;
    font-weight: 500;
}

body.app-page.oreo-clone-shell .app-table tbody tr:hover td,
body.app-page.oreo-clone-shell .table tbody tr:hover td {
    background: #fbfdff !important;
}

body.app-page.oreo-clone-shell .table-action-trigger {
    border-color: var(--component-border-strong) !important;
    background: #ffffff !important;
    color: #64748b !important;
}

body.app-page.oreo-clone-shell .table-action-trigger:hover {
    background: #f8fafc !important;
    color: #1e293b !important;
}

body.app-page.oreo-clone-shell .table-action-dropdown {
    border: 1px solid var(--component-border) !important;
    background: #ffffff !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
}

body.app-page.oreo-clone-shell .table-action-dropdown .table-action-item:hover,
body.app-page.oreo-clone-shell .dropdown-item:hover {
    background: #f8fafc !important;
    color: var(--component-accent-dark) !important;
}

body.app-page.oreo-clone-shell .surface-tag,
body.app-page.oreo-clone-shell .filter-chip {
    border-color: #d6e3ef !important;
    background: #f8fbff !important;
    color: #475569 !important;
    font-weight: 700 !important;
}

body.app-page.oreo-clone-shell .status-pill,
body.app-page.oreo-clone-shell .badge {
    border: 1px solid #d8e4f1 !important;
    background: #f8fbff !important;
    color: #3b4c66 !important;
    font-weight: 700 !important;
}

body.app-page.oreo-clone-shell .status-completed {
    border-color: #bbf7d0 !important;
    background: #f0fdf4 !important;
    color: #15803d !important;
}

body.app-page.oreo-clone-shell .status-scheduled {
    border-color: #bfdbfe !important;
    background: #eff6ff !important;
    color: #2563eb !important;
}

body.app-page.oreo-clone-shell .status-cancelled {
    border-color: #fecaca !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

body.app-page.oreo-clone-shell .alert {
    border: 1px solid var(--component-border) !important;
    box-shadow: none !important;
}

body.app-page.oreo-clone-shell .page-link {
    min-width: 36px;
    color: var(--component-text) !important;
    background: #ffffff !important;
    border-color: var(--component-border-strong) !important;
}

body.app-page.oreo-clone-shell .page-item.active .page-link {
    color: #ffffff !important;
    background: #255ee8 !important;
    border-color: #255ee8 !important;
}

body.app-page.oreo-clone-shell .page-link:hover {
    background: #f8fafc !important;
    border-color: #c7d3df !important;
}

body.app-page.oreo-clone-shell .ipd-tabs,
body.app-page.oreo-clone-shell .patient-hero-pills,
body.app-page.oreo-clone-shell .surface-tag-row {
    background: transparent !important;
}

body.app-page.oreo-clone-shell .ipd-tab-link {
    border-color: var(--component-border) !important;
    background: #ffffff !important;
    color: var(--component-text-soft) !important;
    font-weight: 700 !important;
}

body.app-page.oreo-clone-shell .ipd-tab-link.active,
body.app-page.oreo-clone-shell .ipd-tab-link:hover {
    border-color: #9fc8ff !important;
    background: #f4f8ff !important;
    color: #255ee8 !important;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-link,
body.app-page.oreo-clone-shell .oreo-clone-nav-group-summary {
    color: #526377 !important;
    border-left: 2px solid transparent;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-link:hover,
body.app-page.oreo-clone-shell .oreo-clone-nav-group-summary:hover {
    color: #1f334d !important;
    border-left-color: #c9d8e8;
    background: #f7fafc !important;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-link.active,
body.app-page.oreo-clone-shell .oreo-clone-nav-group.active > .oreo-clone-nav-group-summary {
    color: #0f172a !important;
    border-left-color: var(--component-accent) !important;
    background: #eef9fb !important;
}

body.app-page.oreo-clone-shell .oreo-clone-nav-icon i,
body.app-page.oreo-clone-shell .oreo-clone-nav-group-copy i,
body.app-page.oreo-clone-shell .oreo-clone-nav-arrow,
body.app-page.oreo-clone-shell .oreo-clone-subnav-dot {
    color: #94a3b8 !important;
}

body.app-page.oreo-clone-shell .oreo-clone-subnav-link {
    color: #708197 !important;
}

body.app-page.oreo-clone-shell .oreo-clone-subnav-link:hover,
body.app-page.oreo-clone-shell .oreo-clone-subnav-link.active {
    color: var(--component-accent-dark) !important;
    background: #f8fbfc !important;
}

body.app-page.oreo-clone-shell .oreo-clone-subnav-link.active .oreo-clone-subnav-dot {
    background: var(--component-accent) !important;
}

body.app-page.oreo-clone-shell .qr-card-filter-card,
body.app-page.oreo-clone-shell .qr-card-side-panel {
    padding: 14px !important;
}

body.app-page.oreo-clone-shell .qr-card-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.78fr);
    gap: 12px;
    align-items: start;
}

body.app-page.oreo-clone-shell .qr-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

body.app-page.oreo-clone-shell .staff-id-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--component-border) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98)),
        linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(25, 203, 210, 0.03));
    box-shadow: var(--component-shadow) !important;
}

body.app-page.oreo-clone-shell .staff-id-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #255ee8, #19cbd2);
}

body.app-page.oreo-clone-shell .staff-id-card-top,
body.app-page.oreo-clone-shell .staff-id-card-head,
body.app-page.oreo-clone-shell .staff-id-qr-shell {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

body.app-page.oreo-clone-shell .staff-id-card-top {
    align-items: flex-start;
}

body.app-page.oreo-clone-shell .staff-id-card-top h4,
body.app-page.oreo-clone-shell .staff-id-card-head h3,
body.app-page.oreo-clone-shell .staff-id-qr-copy strong {
    margin: 0;
    color: var(--component-text) !important;
}

body.app-page.oreo-clone-shell .staff-id-card-head {
    align-items: center;
}

body.app-page.oreo-clone-shell .staff-id-card-head p,
body.app-page.oreo-clone-shell .staff-id-card-head strong,
body.app-page.oreo-clone-shell .staff-id-qr-copy p {
    margin: 0.15rem 0 0;
}

body.app-page.oreo-clone-shell .staff-id-avatar {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #19cbd2, #255ee8);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.app-page.oreo-clone-shell .staff-id-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.app-page.oreo-clone-shell .staff-id-meta > div {
    padding: 10px 11px;
    border: 1px solid #e7eef6;
    background: #fbfdff;
}

body.app-page.oreo-clone-shell .staff-id-meta span {
    display: block;
    margin-bottom: 0.25rem;
    color: #7b8aa0 !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.app-page.oreo-clone-shell .staff-id-meta strong {
    display: block;
    color: var(--component-text) !important;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

body.app-page.oreo-clone-shell .staff-id-qr-shell {
    align-items: center;
    padding-top: 2px;
}

body.app-page.oreo-clone-shell .staff-id-qr {
    width: 156px;
    min-width: 156px;
    height: 156px;
    padding: 8px;
    border: 1px solid #dce6f2;
    background: #ffffff;
    display: grid;
    place-items: center;
}

body.app-page.oreo-clone-shell .staff-id-qr canvas,
body.app-page.oreo-clone-shell .staff-id-qr svg,
body.app-page.oreo-clone-shell .staff-id-qr img {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

body.app-page.oreo-clone-shell .staff-id-qr-copy {
    flex: 1 1 auto;
    min-width: 0;
}

body.app-page.oreo-clone-shell .qr-activity-list {
    display: grid;
    gap: 10px;
}

body.app-page.oreo-clone-shell .qr-activity-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e8eef5;
    background: #fbfdff;
}

body.app-page.oreo-clone-shell .qr-activity-item strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--component-text) !important;
}

body.app-page.oreo-clone-shell .qr-activity-item p {
    margin: 0;
    color: var(--component-text-soft) !important;
    font-size: 12px;
    line-height: 1.5;
}

body.app-page.oreo-clone-shell .qr-card-empty-state {
    padding: 20px !important;
}

@media (max-width: 1199.98px) {
    body.app-page.oreo-clone-shell .qr-card-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    body.app-page.oreo-clone-shell .staff-id-meta {
        grid-template-columns: 1fr;
    }

    body.app-page.oreo-clone-shell .staff-id-card-top,
    body.app-page.oreo-clone-shell .staff-id-card-head,
    body.app-page.oreo-clone-shell .staff-id-qr-shell,
    body.app-page.oreo-clone-shell .qr-activity-item {
        flex-direction: column;
        align-items: flex-start;
    }

    body.app-page.oreo-clone-shell .staff-id-qr {
        width: 100%;
        min-width: 0;
        max-width: 220px;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

body.app-page.oreo-clone-shell .qr-scanner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
    gap: 12px;
    align-items: start;
}

body.app-page.oreo-clone-shell .qr-scanner-panel,
body.app-page.oreo-clone-shell .qr-scan-result-panel,
body.app-page.oreo-clone-shell .qr-scan-recent-panel {
    padding: 14px !important;
}

body.app-page.oreo-clone-shell .qr-scanner-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

body.app-page.oreo-clone-shell .qr-scanner-field {
    flex: 1 1 auto;
}

body.app-page.oreo-clone-shell .qr-reader-shell {
    min-height: 340px;
    padding: 10px;
    border: 1px solid #dfe8f2;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98)),
        linear-gradient(135deg, rgba(37, 99, 235, 0.025), rgba(25, 203, 210, 0.025));
}

body.app-page.oreo-clone-shell .qr-reader-shell > div {
    overflow: hidden;
}

body.app-page.oreo-clone-shell .qr-reader-shell video,
body.app-page.oreo-clone-shell .qr-reader-shell canvas,
body.app-page.oreo-clone-shell .qr-reader-shell img {
    max-width: 100%;
    display: block;
}

body.app-page.oreo-clone-shell .qr-scanner-help,
body.app-page.oreo-clone-shell .qr-manual-form {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e4edf6;
    background: #fbfdff;
}

body.app-page.oreo-clone-shell .qr-scanner-help strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--component-text) !important;
}

body.app-page.oreo-clone-shell .qr-scanner-help p {
    margin: 0;
    color: var(--component-text-soft) !important;
    line-height: 1.6;
}

body.app-page.oreo-clone-shell .qr-manual-form {
    display: grid;
    gap: 10px;
}

body.app-page.oreo-clone-shell .qr-scan-result {
    min-height: 176px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e4edf6;
    background: #fbfdff;
}

body.app-page.oreo-clone-shell .qr-scan-result strong {
    font-size: 1rem;
    color: var(--component-text) !important;
}

body.app-page.oreo-clone-shell .qr-scan-result p {
    margin: 0;
    color: var(--component-text-soft) !important;
    line-height: 1.55;
}

body.app-page.oreo-clone-shell .qr-scan-result.success {
    border-color: rgba(16, 185, 129, 0.26);
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.96), #ffffff);
}

body.app-page.oreo-clone-shell .qr-scan-result.error {
    border-color: rgba(239, 68, 68, 0.24);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.96), #ffffff);
}

body.app-page.oreo-clone-shell .qr-scan-result.loading,
body.app-page.oreo-clone-shell .qr-scan-result.idle {
    border-color: rgba(37, 99, 235, 0.18);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), #ffffff);
}

body.app-page.oreo-clone-shell .qr-scanner-grid > .surface-stack {
    display: grid;
    gap: 12px;
}

@media (max-width: 1199.98px) {
    body.app-page.oreo-clone-shell .qr-scanner-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    body.app-page.oreo-clone-shell .qr-scanner-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    body.app-page.oreo-clone-shell .qr-reader-shell {
        min-height: 280px;
    }
}

/* --- 2026-04-02 shared typography + widget refresh: larger type, cleaner components --- */
body.oreo-clone-shell {
    font-size: 15px;
}

body.oreo-clone-shell .oreo-clone-brand-text,
body.oreo-clone-shell .oreo-clone-sidebar-context,
body.oreo-clone-shell .oreo-clone-nav-copy,
body.oreo-clone-shell .oreo-clone-subnav-link,
body.oreo-clone-shell .btn,
body.oreo-clone-shell .form-control,
body.oreo-clone-shell .form-select,
body.oreo-clone-shell .form-label,
body.oreo-clone-shell .table,
body.oreo-clone-shell .surface-tag,
body.oreo-clone-shell .status-pill,
body.oreo-clone-shell .empty-state,
body.oreo-clone-shell .app-table-pagination,
body.oreo-clone-shell .oreo-clone-meta-pill,
body.oreo-clone-shell .oreo-clone-search input,
body.oreo-clone-shell .qr-scan-result p,
body.oreo-clone-shell .workspace-search-item span,
body.oreo-clone-shell .workspace-search-item p {
    font-size: 14px !important;
}

body.oreo-clone-shell .surface-overline,
body.oreo-clone-shell .hero-eyebrow,
body.oreo-clone-shell .stat-label,
body.oreo-clone-shell .stat-meta,
body.oreo-clone-shell .oreo-clone-nav-group-summary,
body.oreo-clone-shell .workspace-search-item strong + p,
body.oreo-clone-shell .workspace-search-item span {
    font-size: 12px !important;
}

body.oreo-clone-shell .surface-head h3,
body.oreo-clone-shell .workspace-search-card h3,
body.oreo-clone-shell .dashboard-hero h2 {
    font-size: 1.12rem !important;
}

body.oreo-clone-shell .stat-value,
body.oreo-clone-shell .metric-chip strong {
    font-size: 1.9rem !important;
}

body.oreo-clone-shell .surface-card,
body.oreo-clone-shell .stat-card,
body.oreo-clone-shell .metric-chip,
body.oreo-clone-shell .timeline-card,
body.oreo-clone-shell .record-context-card,
body.oreo-clone-shell .module-alert,
body.oreo-clone-shell .oreo-clone-topbar,
body.oreo-clone-shell .profile-dropdown {
    border-color: #d9e4ef !important;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06) !important;
}

body.oreo-clone-shell .surface-card,
body.oreo-clone-shell .stat-card,
body.oreo-clone-shell .metric-chip {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)) !important;
}

body.oreo-clone-shell .surface-card:hover,
body.oreo-clone-shell .stat-card:hover,
body.oreo-clone-shell .workspace-search-item:hover {
    border-color: #c9d8e6 !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08) !important;
}

body.oreo-clone-shell .btn {
    font-weight: 700 !important;
    box-shadow: none !important;
}

body.oreo-clone-shell .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border-color: #1d4ed8 !important;
}

body.oreo-clone-shell .btn-primary:hover,
body.oreo-clone-shell .btn-primary:focus {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    border-color: #1e40af !important;
}

body.oreo-clone-shell .btn-outline-primary,
body.oreo-clone-shell .btn-outline-secondary,
body.oreo-clone-shell .btn-outline-danger {
    background: #ffffff !important;
}

body.oreo-clone-shell .form-control,
body.oreo-clone-shell .form-select {
    min-height: 44px;
    border-color: #d6e0eb !important;
    background: #ffffff !important;
}

body.oreo-clone-shell .form-control:focus,
body.oreo-clone-shell .form-select:focus {
    border-color: #7dd3fc !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14) !important;
}

body.oreo-clone-shell .app-table thead th,
body.oreo-clone-shell .table thead th {
    font-size: 12px !important;
    letter-spacing: 0.09em !important;
}

body.oreo-clone-shell .app-table tbody td,
body.oreo-clone-shell .table tbody td {
    font-size: 14px !important;
}

body.oreo-clone-shell .table tbody tr:hover {
    background: #f8fbff !important;
}

body.oreo-clone-shell .oreo-clone-search {
    gap: 12px !important;
}

body.oreo-clone-shell .oreo-clone-search-tail {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.oreo-clone-shell .oreo-clone-search-tail:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24);
}

body.oreo-clone-shell .workspace-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.oreo-clone-shell .workspace-search-card,
body.oreo-clone-shell .workspace-search-empty {
    padding: 14px !important;
}

body.oreo-clone-shell .workspace-search-list {
    display: grid;
    gap: 10px;
}

body.oreo-clone-shell .workspace-search-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid #e2eaf3;
    background: #fcfdff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.oreo-clone-shell .workspace-search-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(25, 203, 210, 0.12));
    color: #1d4ed8;
}

body.oreo-clone-shell .workspace-search-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #1f2937;
    font-size: 15px;
}

body.oreo-clone-shell .workspace-search-item p,
body.oreo-clone-shell .workspace-search-item span {
    display: block;
    margin: 0;
    color: #6b7a90;
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    body.oreo-clone-shell .workspace-search-grid {
        grid-template-columns: 1fr;
    }
}

body.oreo-clone-shell .surface-card {
    position: relative;
    overflow: hidden;
    border-color: #d6e2ee !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.985)) !important;
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.055),
        0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}

body.oreo-clone-shell .surface-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(25, 203, 210, 0.9));
    opacity: 0.82;
    pointer-events: none;
}

body.oreo-clone-shell .surface-card:hover {
    border-color: #c8d7e5 !important;
    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.075),
        0 1px 0 rgba(255, 255, 255, 0.94) inset !important;
}

body.oreo-clone-shell .stat-card {
    position: relative;
    overflow: hidden;
    align-items: stretch;
    gap: 14px;
    padding: 16px 18px !important;
    border-color: #d6e2ee !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(247, 251, 255, 0.99)) !important;
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.92) inset !important;
}

body.oreo-clone-shell .stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.95), rgba(25, 203, 210, 0.92));
    opacity: 0.92;
}

body.oreo-clone-shell .stat-card > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

body.oreo-clone-shell .stat-card:hover {
    border-color: #c4d5e4 !important;
    box-shadow:
        0 18px 36px rgba(15, 23, 42, 0.085),
        0 1px 0 rgba(255, 255, 255, 0.96) inset !important;
}

body.oreo-clone-shell .stat-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.18rem !important;
    color: #64748b !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
}

body.oreo-clone-shell .stat-value {
    margin: 0.18rem 0 0 !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.02 !important;
}

body.oreo-clone-shell .stat-meta {
    margin-top: 0.45rem !important;
    color: #7b8aa0 !important;
    line-height: 1.55 !important;
}

body.oreo-clone-shell .stat-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(191, 219, 254, 0.95);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(25, 203, 210, 0.16));
    color: #1d4ed8 !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

body.oreo-clone-shell .stat-card.tone-primary .stat-icon {
    color: #1d4ed8 !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(96, 165, 250, 0.16));
}

body.oreo-clone-shell .stat-card.tone-teal .stat-icon {
    color: #0f766e !important;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(45, 212, 191, 0.17));
}

body.oreo-clone-shell .stat-card.tone-blue .stat-icon {
    color: #1e40af !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(37, 99, 235, 0.18));
}

body.oreo-clone-shell .stat-card.tone-amber .stat-icon {
    color: #b45309 !important;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(245, 158, 11, 0.2));
}

body.oreo-clone-shell .surface-head {
    position: relative;
    align-items: center;
    gap: 12px;
    padding-top: 12px !important;
    padding-inline: 16px !important;
}

body.oreo-clone-shell .surface-head.compact {
    padding-bottom: 0.32rem !important;
}

body.oreo-clone-shell .surface-head.compact h3 {
    color: #27364a !important;
    font-weight: 700 !important;
}

body.oreo-clone-shell .surface-head > div:first-child {
    min-width: 0;
}

body.oreo-clone-shell .surface-head h3 {
    margin-bottom: 0.18rem !important;
    color: #243447 !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.18 !important;
}

body.oreo-clone-shell .surface-overline {
    color: #2563eb !important;
    letter-spacing: 0.14em !important;
    font-weight: 800 !important;
    text-transform: uppercase;
}

body.oreo-clone-shell .surface-head p {
    color: #7b8aa0 !important;
    line-height: 1.55 !important;
}

body.oreo-clone-shell .surface-tag,
body.oreo-clone-shell .module-status-chip {
    min-height: 34px;
    padding: 0.38rem 0.72rem !important;
    border-color: #d7e4f0 !important;
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
    color: #496277 !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

body.oreo-clone-shell .app-table-wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

body.oreo-clone-shell .app-table,
body.oreo-clone-shell .data-table,
body.oreo-clone-shell table.dataTable {
    width: 100% !important;
    min-width: 980px;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.oreo-clone-shell .app-table thead th,
body.oreo-clone-shell .table thead th,
body.oreo-clone-shell table.dataTable thead th {
    vertical-align: middle !important;
    white-space: nowrap;
}

body.oreo-clone-shell .app-table tbody td,
body.oreo-clone-shell .table tbody td,
body.oreo-clone-shell table.dataTable tbody td {
    vertical-align: middle !important;
}

body.oreo-clone-shell .app-table th.action-cell,
body.oreo-clone-shell .app-table td.action-cell,
body.oreo-clone-shell table.dataTable th.action-cell,
body.oreo-clone-shell table.dataTable td.action-cell {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    text-align: center !important;
}

body.oreo-clone-shell .dataTables_wrapper {
    padding: 0.85rem 0.95rem 0.95rem !important;
}

body.oreo-clone-shell .app-table-wrap > .dataTables_wrapper {
    padding: 0 !important;
}

body.oreo-clone-shell .dataTables_wrapper table.dataTable thead th,
body.oreo-clone-shell .dataTables_wrapper table.app-table thead th,
body.oreo-clone-shell .dataTables_wrapper table.data-table thead th {
    position: static !important;
    top: auto !important;
    box-shadow: none !important;
}

body.oreo-clone-shell .dataTables_wrapper .dataTables_scroll,
body.oreo-clone-shell .dataTables_wrapper .dataTables_scrollHead,
body.oreo-clone-shell .dataTables_wrapper .dataTables_scrollBody {
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

body.oreo-clone-shell .status-pill {
    min-width: 88px;
    justify-content: center;
    font-weight: 700 !important;
    min-height: 34px;
    padding: 0.38rem 0.72rem !important;
    border-width: 1px !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

body.oreo-clone-shell .status-pill.status-scheduled {
    border-color: #bfdbfe !important;
    background: linear-gradient(180deg, #f8fbff, #eef5ff) !important;
    color: #1d4ed8 !important;
}

body.oreo-clone-shell .status-pill.status-completed {
    border-color: #bbf7d0 !important;
    background: linear-gradient(180deg, #f4fff7, #e9f9ee) !important;
    color: #15803d !important;
}

body.oreo-clone-shell .status-pill.status-cancelled {
    border-color: #fecaca !important;
    background: linear-gradient(180deg, #fff7f7, #fef0f0) !important;
    color: #b91c1c !important;
}

/* --- 2026-04-02 shared table + form refinement: denser tables, better actions, cleaner fields --- */
body.oreo-clone-shell .app-table thead th,
body.oreo-clone-shell .table thead th,
body.oreo-clone-shell table.dataTable thead th,
body.oreo-clone-shell .dataTables_wrapper table.dataTable thead th,
body.oreo-clone-shell .dataTables_wrapper table.app-table thead th,
body.oreo-clone-shell .dataTables_wrapper table.data-table thead th {
    padding: 0.84rem 0.95rem !important;
    border-bottom: 1px solid #d9e5f0 !important;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7fc 100%) !important;
    color: #5e738a !important;
    font-size: 0.79rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

body.oreo-clone-shell .app-table tbody td,
body.oreo-clone-shell .table tbody td,
body.oreo-clone-shell table.dataTable tbody td {
    padding: 0.92rem 0.95rem !important;
    border-top: 1px solid #e4edf5 !important;
    color: #41556d !important;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
}

body.oreo-clone-shell .app-table tbody tr,
body.oreo-clone-shell .table tbody tr,
body.oreo-clone-shell table.dataTable tbody tr {
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

body.oreo-clone-shell .app-table tbody tr:hover,
body.oreo-clone-shell .table tbody tr:hover,
body.oreo-clone-shell table.dataTable tbody tr:hover {
    background: #f9fcff !important;
}

body.oreo-clone-shell .table-action-group,
body.oreo-clone-shell .table-action-group.table-action-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.oreo-clone-shell .icon-action-btn,
body.oreo-clone-shell .table-action-trigger {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e5f0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%) !important;
    color: #496277 !important;
    box-shadow:
        0 10px 18px rgba(15, 23, 42, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.95) inset !important;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        background 0.18s ease;
}

body.oreo-clone-shell .icon-action-btn i,
body.oreo-clone-shell .table-action-trigger i {
    font-size: 0.95rem !important;
}

body.oreo-clone-shell .icon-action-btn:hover,
body.oreo-clone-shell .icon-action-btn:focus-visible,
body.oreo-clone-shell .table-action-trigger:hover,
body.oreo-clone-shell .table-action-trigger:focus-visible {
    border-color: #b9cfe2 !important;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%) !important;
    color: #1d4ed8 !important;
    box-shadow:
        0 14px 24px rgba(37, 99, 235, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.96) inset !important;
    transform: translateY(-1px);
}

body.oreo-clone-shell .table-action-dropdown {
    min-width: 3.4rem !important;
    padding: 0.42rem !important;
    border: 1px solid #d9e5f0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.96) inset !important;
}

body.oreo-clone-shell .table-action-dropdown .table-action-item,
body.oreo-clone-shell .table-action-dropdown .table-action-item.btn,
body.oreo-clone-shell .table-action-dropdown .table-action-item.icon-action-btn {
    width: 2.35rem !important;
    height: 2.35rem !important;
    min-width: 2.35rem !important;
    min-height: 2.35rem !important;
    padding: 0 !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #40556d !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    justify-content: center !important;
}

body.oreo-clone-shell .table-action-dropdown .table-action-item:hover,
body.oreo-clone-shell .table-action-dropdown .table-action-item:focus-visible {
    border-color: #d7e6f6 !important;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%) !important;
    color: #1d4ed8 !important;
}

body.oreo-clone-shell .table-action-text {
    display: none !important;
}

body.oreo-clone-shell .form-label {
    margin-bottom: 0.42rem !important;
    color: #44586f !important;
    font-size: 0.83rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.015em !important;
}

body.oreo-clone-shell .main-content .form-control,
body.oreo-clone-shell .main-content .form-select,
body.oreo-clone-shell .main-content textarea.form-control {
    min-height: 44px;
    padding: 0.72rem 0.88rem !important;
    border: 1px solid #d7e4f0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    color: #203246 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.94) inset,
        0 10px 18px rgba(15, 23, 42, 0.03) !important;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

body.oreo-clone-shell .main-content textarea.form-control {
    min-height: 128px;
    resize: vertical;
}

body.oreo-clone-shell .main-content .form-control::placeholder,
body.oreo-clone-shell .main-content textarea.form-control::placeholder {
    color: #9aaabd !important;
    opacity: 1;
}

body.oreo-clone-shell .main-content .form-control:focus,
body.oreo-clone-shell .main-content .form-select:focus,
body.oreo-clone-shell .main-content textarea.form-control:focus {
    border-color: #85b4ff !important;
    background: #ffffff !important;
    color: #17283c !important;
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.12),
        0 14px 28px rgba(37, 99, 235, 0.08) !important;
}

body.oreo-clone-shell .main-content .form-control:disabled,
body.oreo-clone-shell .main-content .form-select:disabled,
body.oreo-clone-shell .main-content textarea.form-control:disabled,
body.oreo-clone-shell .main-content .form-control[readonly],
body.oreo-clone-shell .main-content .form-select[readonly],
body.oreo-clone-shell .main-content textarea.form-control[readonly] {
    background: #f3f7fb !important;
    color: #7e91a5 !important;
    border-color: #dde7f0 !important;
    box-shadow: none !important;
}

body.oreo-clone-shell .main-content .form-text {
    margin-top: 0.38rem !important;
    color: #7b8aa0 !important;
    font-size: 0.83rem !important;
    line-height: 1.45 !important;
}

body.oreo-clone-shell .main-content .invalid-feedback,
body.oreo-clone-shell .main-content .text-danger {
    color: #dc2626 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    margin-top: 0.38rem !important;
}

body.oreo-clone-shell .main-content .form-control.is-invalid,
body.oreo-clone-shell .main-content .form-select.is-invalid,
body.oreo-clone-shell .main-content textarea.form-control.is-invalid {
    border-color: #fca5a5 !important;
    background: linear-gradient(180deg, #fffdfd 0%, #fff4f4 100%) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

body.oreo-clone-shell .main-content .form-control.is-valid,
body.oreo-clone-shell .main-content .form-select.is-valid,
body.oreo-clone-shell .main-content textarea.form-control.is-valid {
    border-color: #86efac !important;
    background: linear-gradient(180deg, #ffffff 0%, #f3fff7 100%) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08) !important;
}

/* --- 2026-04-02 shared insight-card + helper refinement: better empty states, actions, feedback --- */
body.oreo-clone-shell .insight-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

body.oreo-clone-shell .insight-card .surface-head.compact {
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(217, 229, 240, 0.78);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

body.oreo-clone-shell .insight-card .surface-head.compact > div {
    display: grid;
    gap: 0.34rem;
}

body.oreo-clone-shell .insight-card .surface-head.compact::after {
    content: "";
    position: absolute;
    left: 16px;
    bottom: -1px;
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb 0%, #22c7d2 100%);
    opacity: 0.95;
}

body.oreo-clone-shell .insight-card .surface-overline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 24px;
    padding: 0.24rem 0.54rem !important;
    border: 1px solid #dbe8f5;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
    color: #1d4ed8 !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.18em !important;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.05);
}

body.oreo-clone-shell .insight-card .surface-head.compact h3 {
    margin: 0 !important;
    color: #1f3147 !important;
    font-size: 1.18rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em !important;
    line-height: 1.12 !important;
}

body.oreo-clone-shell .insight-card .metric-chip-grid.compact-metric-grid,
body.oreo-clone-shell .insight-card .mini-list.compact-related-list {
    align-content: start;
}

body.oreo-clone-shell .insight-card .metric-chip-grid.compact-metric-grid {
    padding: 0.85rem 1rem 0.9rem !important;
    gap: 0.75rem !important;
}

body.oreo-clone-shell .insight-card .mini-list.compact-related-list {
    padding: 0.8rem 1rem 1rem !important;
    display: grid;
    gap: 0.72rem;
}

body.oreo-clone-shell .insight-card .mini-list.compact-related-list.mt-3 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.oreo-clone-shell .insight-card .metric-chip {
    min-height: 96px;
    padding: 0.9rem 0.95rem !important;
    border-color: #d9e5f0 !important;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    box-shadow:
        0 8px 16px rgba(15, 23, 42, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.92) inset !important;
}

body.oreo-clone-shell .insight-card .metric-chip strong {
    margin-bottom: 0.28rem;
    color: #1f3147 !important;
    font-weight: 800 !important;
}

body.oreo-clone-shell .insight-card .metric-chip span {
    color: #74859a !important;
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
}

body.oreo-clone-shell .insight-card .mini-list-item {
    padding: 0.72rem 0.78rem !important;
    border: 1px solid #e1eaf2;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.035);
}

body.oreo-clone-shell .insight-card .mini-list-item + .mini-list-item {
    margin-top: 0 !important;
    padding-top: 0.72rem !important;
    border-top-color: #e1eaf2 !important;
}

body.oreo-clone-shell .insight-card .mini-list-item strong {
    display: block;
    color: #22364d !important;
    font-weight: 700 !important;
    margin-bottom: 0.14rem;
}

body.oreo-clone-shell .insight-card .mini-list-item span {
    color: #7b8aa0 !important;
    line-height: 1.45 !important;
}

body.oreo-clone-shell .insight-card .avatar-badge {
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.08);
}

body.oreo-clone-shell .insight-card .hr-salary-band {
    margin: 0 1rem 1rem !important;
    padding: 0.78rem 0.88rem !important;
    border: 1px solid #dbe6f1;
    background: linear-gradient(180deg, #fbfdff 0%, #f5faff 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

body.oreo-clone-shell .insight-card .hr-salary-band span {
    color: #71849a !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

body.oreo-clone-shell .insight-card .hr-salary-band strong {
    color: #1e293b !important;
    font-size: 0.96rem !important;
    font-weight: 800 !important;
}

body.oreo-clone-shell .insight-card .empty-state {
    margin: 0 !important;
    min-height: 88px;
    padding: 1rem 1.1rem !important;
    border: 1px dashed #d5e3ef;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%) !important;
    color: #70829a !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body.oreo-clone-shell .insight-card .metric-chip-grid.compact-metric-grid .empty-state {
    grid-column: 1 / -1;
    min-height: 104px;
}

body.oreo-clone-shell .insight-card .mini-list.compact-related-list .empty-state {
    min-height: 74px;
}

body.oreo-clone-shell .table-action-dropdown .table-action-item i,
body.oreo-clone-shell .table-action-dropdown .table-action-item .fa,
body.oreo-clone-shell .table-action-dropdown .table-action-item .fas,
body.oreo-clone-shell .table-action-dropdown .table-action-item .far,
body.oreo-clone-shell .table-action-dropdown .table-action-item .fa-solid {
    width: 16px;
    margin-right: 0.5rem;
    color: #6a7f96 !important;
    text-align: center;
}

body.oreo-clone-shell .table-action-dropdown .table-action-item:hover i,
body.oreo-clone-shell .table-action-dropdown .table-action-item:focus-visible i,
body.oreo-clone-shell .table-action-dropdown .table-action-item:hover .fa,
body.oreo-clone-shell .table-action-dropdown .table-action-item:focus-visible .fa,
body.oreo-clone-shell .table-action-dropdown .table-action-item:hover .fas,
body.oreo-clone-shell .table-action-dropdown .table-action-item:focus-visible .fas,
body.oreo-clone-shell .table-action-dropdown .table-action-item:hover .far,
body.oreo-clone-shell .table-action-dropdown .table-action-item:focus-visible .far,
body.oreo-clone-shell .table-action-dropdown .table-action-item:hover .fa-solid,
body.oreo-clone-shell .table-action-dropdown .table-action-item:focus-visible .fa-solid {
    color: currentColor !important;
}

body.oreo-clone-shell .table-action-dropdown .table-action-item + .table-action-item {
    margin-top: 0.22rem;
}

body.oreo-clone-shell .main-content .form-text,
body.oreo-clone-shell .main-content .invalid-feedback,
body.oreo-clone-shell .main-content .text-danger {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

body.oreo-clone-shell .main-content .form-text::before,
body.oreo-clone-shell .main-content .invalid-feedback::before,
body.oreo-clone-shell .main-content .text-danger::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: 0.32rem;
    flex: 0 0 7px;
}

body.oreo-clone-shell .main-content .form-text::before {
    background: #60a5fa;
}

body.oreo-clone-shell .main-content .invalid-feedback::before,
body.oreo-clone-shell .main-content .text-danger::before {
    background: #ef4444;
}

/* --- 2026-04-02 shared dashboard language rollout: apply dashboard card feel app-wide --- */
body.oreo-clone-shell .dashboard-card,
body.oreo-clone-shell .saas-card,
body.oreo-clone-shell .table-shell,
body.oreo-clone-shell .module-table-card,
body.oreo-clone-shell .module-status-card,
body.oreo-clone-shell .module-form-card,
body.oreo-clone-shell .module-stat-card,
body.oreo-clone-shell .content-header,
body.oreo-clone-shell .main-content .card {
    position: relative;
    overflow: hidden;
    border: 1px solid #d6e2ee !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(247, 251, 255, 0.988)) !important;
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.055),
        0 1px 0 rgba(255, 255, 255, 0.92) inset !important;
}

body.oreo-clone-shell .dashboard-card::before,
body.oreo-clone-shell .saas-card::before,
body.oreo-clone-shell .table-shell::before,
body.oreo-clone-shell .module-table-card::before,
body.oreo-clone-shell .module-status-card::before,
body.oreo-clone-shell .module-form-card::before,
body.oreo-clone-shell .module-stat-card::before,
body.oreo-clone-shell .content-header::before,
body.oreo-clone-shell .main-content .card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.92), rgba(25, 203, 210, 0.9));
    opacity: 0.88;
    pointer-events: none;
}

body.oreo-clone-shell .dashboard-card:hover,
body.oreo-clone-shell .saas-card:hover,
body.oreo-clone-shell .table-shell:hover,
body.oreo-clone-shell .module-table-card:hover,
body.oreo-clone-shell .module-status-card:hover,
body.oreo-clone-shell .module-form-card:hover,
body.oreo-clone-shell .module-stat-card:hover,
body.oreo-clone-shell .content-header:hover,
body.oreo-clone-shell .main-content .card:hover {
    border-color: #c8d7e5 !important;
    box-shadow:
        0 18px 36px rgba(15, 23, 42, 0.075),
        0 1px 0 rgba(255, 255, 255, 0.94) inset !important;
}

body.oreo-clone-shell .dashboard-card .card-content,
body.oreo-clone-shell .main-content .card .card-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.95rem;
}

body.oreo-clone-shell .dashboard-card .card-info,
body.oreo-clone-shell .main-content .card .card-info {
    flex: 1 1 auto;
    min-width: 0;
}

body.oreo-clone-shell .dashboard-card .card-title,
body.oreo-clone-shell .saas-card-head h3,
body.oreo-clone-shell .main-content .card .card-title {
    margin: 0 !important;
    color: #5d738a !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.11em !important;
    text-transform: uppercase !important;
}

body.oreo-clone-shell .dashboard-card .card-number,
body.oreo-clone-shell .main-content .card .card-number {
    margin: 0.44rem 0 0 !important;
    color: #1f3147 !important;
    font-size: clamp(1.7rem, 1.25rem + 0.75vw, 2.3rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.045em !important;
    line-height: 1.02 !important;
}

body.oreo-clone-shell .dashboard-card .card-subtitle,
body.oreo-clone-shell .saas-card-head p,
body.oreo-clone-shell .main-content .card .card-subtitle {
    margin: 0.38rem 0 0 !important;
    color: #7b8aa0 !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
}

body.oreo-clone-shell .dashboard-card .card-icon,
body.oreo-clone-shell .main-content .card .card-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(191, 219, 254, 0.95);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(25, 203, 210, 0.16));
    color: #1d4ed8 !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

body.oreo-clone-shell .saas-card-head,
body.oreo-clone-shell .dashboard-card .card-content,
body.oreo-clone-shell .main-content .card .card-content {
    position: relative;
    z-index: 1;
}

body.oreo-clone-shell .saas-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid rgba(226, 234, 243, 0.86);
}

body.oreo-clone-shell .saas-card-head h3 {
    color: #23384f !important;
    font-size: 1.02rem !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
}

body.oreo-clone-shell .main-content .card.shadow {
    padding: 1.15rem 1.25rem !important;
}

body.oreo-clone-shell .dashboard-hero,
body.oreo-clone-shell .content-header {
    border: 1px solid #d6e2ee !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.995), rgba(245, 250, 255, 0.988)) !important;
    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.055),
        0 1px 0 rgba(255, 255, 255, 0.92) inset !important;
}

body.oreo-clone-shell .dashboard-card.table-shell,
body.oreo-clone-shell .oreo-entity-table-card,
body.oreo-clone-shell .module-table-card,
body.oreo-clone-shell .app-table-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%) !important;
}

/* --- 2026-04-02 shared card header rollout: one header style across the application --- */
body.oreo-clone-shell .surface-head,
body.oreo-clone-shell .oreo-card-head,
body.oreo-clone-shell .saas-card-head,
body.oreo-clone-shell .main-content .card > .card-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.95rem;
    padding: 0 0 0.88rem !important;
    margin: 0 0 1rem !important;
    border-bottom: 1px solid rgba(227, 236, 245, 0.9) !important;
    background: transparent !important;
}

body.oreo-clone-shell .surface-head.compact,
body.oreo-clone-shell .oreo-card-head.compact,
body.oreo-clone-shell .saas-card-head.compact,
body.oreo-clone-shell .main-content .card > .card-header.compact {
    padding-bottom: 0.72rem !important;
    margin-bottom: 0.82rem !important;
}

body.oreo-clone-shell .surface-head::after,
body.oreo-clone-shell .oreo-card-head::after,
body.oreo-clone-shell .saas-card-head::after,
body.oreo-clone-shell .main-content .card > .card-header::after {
    display: none !important;
}

body.oreo-clone-shell .surface-head > div:first-child,
body.oreo-clone-shell .oreo-card-head > div:first-child,
body.oreo-clone-shell .saas-card-head > div:first-child,
body.oreo-clone-shell .main-content .card > .card-header > div:first-child {
    display: grid;
    gap: 0.34rem;
    min-width: 0;
}

body.oreo-clone-shell .surface-head h3,
body.oreo-clone-shell .oreo-card-head h3,
body.oreo-clone-shell .saas-card-head h3,
body.oreo-clone-shell .main-content .card > .card-header .card-title,
body.oreo-clone-shell .main-content .card > .card-header h3,
body.oreo-clone-shell .main-content .card > .card-header h4 {
    margin: 0 !important;
    color: #1f3147 !important;
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.026em !important;
    line-height: 1.18 !important;
    text-transform: none !important;
}

body.oreo-clone-shell .surface-overline,
body.oreo-clone-shell .hero-eyebrow,
body.oreo-clone-shell .oreo-banner-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    width: fit-content;
    min-height: 0;
    margin: 0 0 0.28rem !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.16em !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
}

body.oreo-clone-shell .surface-overline::before,
body.oreo-clone-shell .hero-eyebrow::before,
body.oreo-clone-shell .oreo-banner-kicker::before {
    content: "";
    width: 10px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb 0%, #22c7d2 100%);
    opacity: 0.9;
}

body.oreo-clone-shell .oreo-card-head h3 span,
body.oreo-clone-shell .saas-card-head h3 span,
body.oreo-clone-shell .main-content .card > .card-header .card-title span,
body.oreo-clone-shell .main-content .card > .card-header h3 span,
body.oreo-clone-shell .main-content .card > .card-header h4 span {
    color: #1d4ed8 !important;
    font-weight: 800 !important;
    letter-spacing: inherit !important;
    text-transform: none !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

body.oreo-clone-shell .surface-head p,
body.oreo-clone-shell .oreo-card-head p,
body.oreo-clone-shell .saas-card-head p,
body.oreo-clone-shell .main-content .card > .card-header p {
    margin: 0 !important;
    color: #7b8aa0 !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
}

body.oreo-clone-shell .oreo-card-dismiss {
    display: none !important;
}


@media (max-width: 767.98px) {
    body.app-page.oreo-clone-shell {
        --app-shell-nav-width: min(260px, calc(100vw - 28px));
    }

    body.app-page.oreo-clone-shell .oreo-clone-topbar {
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: stretch !important;
    }

    body.app-page.oreo-clone-shell .oreo-clone-topbar-left,
    body.app-page.oreo-clone-shell .oreo-clone-topbar-right {
        width: 100% !important;
        justify-content: space-between !important;
    }

    body.app-page.oreo-clone-shell .oreo-clone-search {
        display: flex !important;
        width: 100% !important;
        order: 3;
    }

    body.app-page.oreo-clone-shell .sidebar,
    body.app-page.oreo-clone-shell.sidebar-collapsed .sidebar {
        width: var(--app-shell-nav-width) !important;
        max-width: var(--app-shell-nav-width) !important;
        min-width: var(--app-shell-nav-width) !important;
    }

    body.app-page.oreo-clone-shell.sidebar-collapsed {
        --oreo-clone-sidebar-width: var(--app-shell-nav-width);
    }
}

/* Hospital Admin Command Dashboard */

.hospital-admin-dashboard-page .had-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    gap: 18px;
    padding: 24px 26px;
    background: linear-gradient(135deg, rgba(18, 166, 203, 0.12), rgba(52, 107, 235, 0.06) 55%, rgba(255, 255, 255, 0.96));
}

.hospital-admin-dashboard-page .had-hero-copy h1 {
    margin: 4px 0 8px;
    font-size: 2rem;
    line-height: 1.06;
    color: #1f314d;
}

.hospital-admin-dashboard-page .had-hero-copy p {
    margin: 0;
    max-width: 780px;
    color: #5b6f90;
    font-size: 0.98rem;
}

.hospital-admin-dashboard-page .had-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hospital-admin-dashboard-page .had-hero-meta span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(76, 115, 168, 0.16);
    background: rgba(255, 255, 255, 0.82);
    color: #456084;
    font-size: 0.82rem;
    font-weight: 700;
}

.hospital-admin-dashboard-page .had-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hospital-admin-dashboard-page .had-hero-stat {
    padding: 16px 18px;
    border: 1px solid rgba(71, 111, 173, 0.12);
    background: rgba(255, 255, 255, 0.92);
}

.hospital-admin-dashboard-page .had-hero-stat strong {
    display: block;
    color: #163156;
    font-size: 1.5rem;
    line-height: 1;
}

.hospital-admin-dashboard-page .had-hero-stat span {
    display: block;
    margin-top: 7px;
    color: #456084;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hospital-admin-dashboard-page .had-hero-stat small {
    display: block;
    margin-top: 6px;
    color: #6b7f9c;
    font-size: 0.82rem;
}

.hospital-admin-dashboard-page .had-kpi-grid,
.hospital-admin-dashboard-page .had-category-grid,
.hospital-admin-dashboard-page .had-module-grid,
.hospital-admin-dashboard-page .had-action-grid,
.hospital-admin-dashboard-page .had-table-grid,
.hospital-admin-dashboard-page .had-analysis-grid {
    display: grid;
    gap: 16px;
}

.hospital-admin-dashboard-page .had-kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hospital-admin-dashboard-page .had-kpi-card {
    padding: 18px 18px 16px;
    position: relative;
    overflow: hidden;
}

.hospital-admin-dashboard-page .had-kpi-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #21c4d6, #356ee8);
}

.hospital-admin-dashboard-page .had-kpi-card.tone-teal::before,
.hospital-admin-dashboard-page .had-analysis-item.tone-teal::before { background: linear-gradient(180deg, #10b5c7, #22c55e); }
.hospital-admin-dashboard-page .had-kpi-card.tone-blue::before,
.hospital-admin-dashboard-page .had-analysis-item.tone-blue::before,
.hospital-admin-dashboard-page .had-kpi-card.tone-primary::before,
.hospital-admin-dashboard-page .had-analysis-item.tone-primary::before { background: linear-gradient(180deg, #3772ff, #22c4d6); }
.hospital-admin-dashboard-page .had-kpi-card.tone-indigo::before,
.hospital-admin-dashboard-page .had-analysis-item.tone-indigo::before { background: linear-gradient(180deg, #5b67ff, #3c7eff); }
.hospital-admin-dashboard-page .had-kpi-card.tone-amber::before,
.hospital-admin-dashboard-page .had-analysis-item.tone-amber::before,
.hospital-admin-dashboard-page .had-analysis-item.tone-warning::before { background: linear-gradient(180deg, #f59e0b, #f97316); }
.hospital-admin-dashboard-page .had-kpi-card.tone-success::before,
.hospital-admin-dashboard-page .had-analysis-item.tone-success::before { background: linear-gradient(180deg, #14b8a6, #22c55e); }

.hospital-admin-dashboard-page .had-kpi-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.hospital-admin-dashboard-page .had-kpi-head strong {
    display: block;
    margin-top: 6px;
    color: #1c3152;
    font-size: 1.85rem;
    line-height: 1;
}

.hospital-admin-dashboard-page .had-kpi-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #17bfd2, #3f7af7);
    color: #fff;
    font-size: 1rem;
}

.hospital-admin-dashboard-page .had-kpi-card p {
    margin: 12px 0 0;
    color: #637794;
    font-size: 0.9rem;
    min-height: 42px;
}

.hospital-admin-dashboard-page .had-kpi-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(86, 120, 166, 0.14);
}

.hospital-admin-dashboard-page .had-kpi-metrics small,
.hospital-admin-dashboard-page .had-watch-item small,
.hospital-admin-dashboard-page .had-module-stats small,
.hospital-admin-dashboard-page .had-category-card small {
    display: block;
    color: #7a8ea8;
    font-size: 0.78rem;
}

.hospital-admin-dashboard-page .had-kpi-metrics strong,
.hospital-admin-dashboard-page .had-module-stats strong {
    color: #203250;
    font-size: 1rem;
}

.hospital-admin-dashboard-page .had-executive-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
    gap: 18px;
}

.hospital-admin-dashboard-page .had-trend-card,
.hospital-admin-dashboard-page .had-alert-card,
.hospital-admin-dashboard-page .had-analysis-card,
.hospital-admin-dashboard-page .had-module-board,
.hospital-admin-dashboard-page .had-actions-card,
.hospital-admin-dashboard-page .had-table-card,
.hospital-admin-dashboard-page .had-watch-card,
.hospital-admin-dashboard-page .had-department-card,
.hospital-admin-dashboard-page .had-category-card {
    padding: 18px 18px 16px;
}

.hospital-admin-dashboard-page .had-inline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: #60758f;
    font-weight: 700;
}

.hospital-admin-dashboard-page .had-inline-legend .swatch {
    width: 10px;
    height: 10px;
    display: inline-block;
    margin-right: 6px;
}

.hospital-admin-dashboard-page .swatch.is-blue,
.hospital-admin-dashboard-page .tone-blue { background: #3f7af7; }
.hospital-admin-dashboard-page .swatch.is-teal,
.hospital-admin-dashboard-page .tone-teal { background: #1cc4c8; }
.hospital-admin-dashboard-page .swatch.is-amber,
.hospital-admin-dashboard-page .tone-amber { background: #f59e0b; }

.hospital-admin-dashboard-page .had-bar-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    min-height: 290px;
    padding: 18px 6px 8px;
}

.hospital-admin-dashboard-page .had-bar-group {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.hospital-admin-dashboard-page .had-bar-stack {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 6px;
    padding: 0 4px;
    background: linear-gradient(180deg, rgba(242, 246, 252, 0.9), rgba(255, 255, 255, 0.25));
}

.hospital-admin-dashboard-page .had-bar {
    width: 18px;
    min-height: 14px;
    transition: height 0.25s ease;
}

.hospital-admin-dashboard-page .had-bar-group strong {
    color: #304865;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.hospital-admin-dashboard-page .had-bar-group small {
    color: #8091a8;
    font-size: 0.76rem;
}

.hospital-admin-dashboard-page .had-trend-footer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(86, 120, 166, 0.14);
}

.hospital-admin-dashboard-page .had-trend-footer article,
.hospital-admin-dashboard-page .had-category-card {
    background: #f7f9fd;
    padding: 12px 14px;
}

.hospital-admin-dashboard-page .had-trend-footer span,
.hospital-admin-dashboard-page .had-category-card p {
    display: block;
    color: #73859f;
    font-size: 0.82rem;
}

.hospital-admin-dashboard-page .had-trend-footer strong,
.hospital-admin-dashboard-page .had-category-card strong {
    display: block;
    color: #1f314d;
    font-size: 1.15rem;
}

.hospital-admin-dashboard-page .had-side-stack {
    display: grid;
    gap: 18px;
}

.hospital-admin-dashboard-page .had-alert-list,
.hospital-admin-dashboard-page .had-watch-list,
.hospital-admin-dashboard-page .had-department-list {
    display: grid;
    gap: 12px;
}

.hospital-admin-dashboard-page .had-alert-item,
.hospital-admin-dashboard-page .had-watch-item,
.hospital-admin-dashboard-page .had-analysis-item,
.hospital-admin-dashboard-page .had-action-btn {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hospital-admin-dashboard-page .had-alert-item,
.hospital-admin-dashboard-page .had-watch-item,
.hospital-admin-dashboard-page .had-analysis-item {
    padding: 12px 14px;
    border: 1px solid rgba(86, 120, 166, 0.14);
    background: #fbfcff;
}

.hospital-admin-dashboard-page .had-alert-icon,
.hospital-admin-dashboard-page .had-analysis-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 96, 217, 0.1);
    color: #2b63d9;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.hospital-admin-dashboard-page .had-alert-item strong,
.hospital-admin-dashboard-page .had-analysis-item strong,
.hospital-admin-dashboard-page .had-watch-item strong,
.hospital-admin-dashboard-page .had-module-card h4,
.hospital-admin-dashboard-page .had-department-item strong,
.hospital-admin-dashboard-page .had-action-btn span {
    color: #213553;
}

.hospital-admin-dashboard-page .had-alert-item p,
.hospital-admin-dashboard-page .had-analysis-item p,
.hospital-admin-dashboard-page .had-watch-item p,
.hospital-admin-dashboard-page .had-module-card p,
.hospital-admin-dashboard-page .had-department-item small,
.hospital-admin-dashboard-page .empty-state {
    margin: 4px 0 0;
    color: #6c809c;
    font-size: 0.86rem;
}


.hospital-admin-dashboard-page .had-analysis-item {
    position: relative;
    overflow: hidden;
}

.hospital-admin-dashboard-page .had-analysis-item::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #3772ff, #1cc4c8);
}

.hospital-admin-dashboard-page .had-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hospital-admin-dashboard-page .had-module-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hospital-admin-dashboard-page .had-module-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(86, 120, 166, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.92));
    color: inherit;
    text-decoration: none;
}

.hospital-admin-dashboard-page .had-module-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(20, 39, 73, 0.08);
}

.hospital-admin-dashboard-page .had-module-top,
.hospital-admin-dashboard-page .had-module-meta,
.hospital-admin-dashboard-page .had-module-stats,
.hospital-admin-dashboard-page .had-watch-meta,
.hospital-admin-dashboard-page .had-department-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.hospital-admin-dashboard-page .had-module-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #19c2d3, #3f7af7);
    color: #fff;
    font-size: 1rem;
}

.hospital-admin-dashboard-page .had-module-meta span {
    color: #6e83a0;
    font-size: 0.82rem;
    font-weight: 700;
}

.hospital-admin-dashboard-page .had-module-stats {
    padding-top: 10px;
    border-top: 1px solid rgba(86, 120, 166, 0.14);
}

.hospital-admin-dashboard-page .had-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hospital-admin-dashboard-page .had-action-btn {
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border: 1px solid rgba(86, 120, 166, 0.14);
    background: linear-gradient(135deg, rgba(25, 194, 211, 0.07), rgba(63, 122, 247, 0.06));
    color: #21426f;
    font-weight: 700;
    text-decoration: none;
}

.hospital-admin-dashboard-page .had-table-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hospital-admin-dashboard-page .had-data-table {
    margin: 0;
}

.hospital-admin-dashboard-page .had-data-table thead th {
    color: #5a7091;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hospital-admin-dashboard-page .had-data-table tbody td {
    vertical-align: top;
}

.hospital-admin-dashboard-page .had-data-table tbody td strong,
.hospital-admin-dashboard-page .had-data-table tbody td small {
    display: block;
}

.hospital-admin-dashboard-page .had-watch-meta {
    flex-direction: column;
    align-items: flex-end;
}

.hospital-admin-dashboard-page .had-watch-meta strong {
    font-size: 1rem;
}

.hospital-admin-dashboard-page .had-load-bar {
    position: relative;
    width: 40%;
    height: 8px;
    background: rgba(86, 120, 166, 0.14);
    overflow: hidden;
}

.hospital-admin-dashboard-page .had-load-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, #1cc4c8, #3f7af7);
}

.hospital-admin-dashboard-page .status-pill,
.hospital-admin-dashboard-page .module-status-chip {
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hospital-admin-dashboard-page .status-pill.is-success,
.hospital-admin-dashboard-page .module-status-chip.is-success { background: #e8fbf2; color: #18834a; }
.hospital-admin-dashboard-page .status-pill.is-primary,
.hospital-admin-dashboard-page .module-status-chip.is-primary { background: #e8f0ff; color: #275fe0; }
.hospital-admin-dashboard-page .status-pill.is-warning,
.hospital-admin-dashboard-page .module-status-chip.is-warning { background: #fff4db; color: #a86400; }
.hospital-admin-dashboard-page .status-pill.is-danger,
.hospital-admin-dashboard-page .module-status-chip.is-danger { background: #ffe7ea; color: #bb2d3b; }
.hospital-admin-dashboard-page .status-pill.is-muted,
.hospital-admin-dashboard-page .module-status-chip.is-muted { background: #eef3fb; color: #6d809a; }

.hospital-admin-dashboard-page .empty-state {
    padding: 22px 14px;
    text-align: center;
}

@media (max-width: 1440px) {
    .hospital-admin-dashboard-page .had-kpi-grid,
    .hospital-admin-dashboard-page .had-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .hospital-admin-dashboard-page .had-hero-card,
    .hospital-admin-dashboard-page .had-executive-grid,
    .hospital-admin-dashboard-page .had-table-grid {
        grid-template-columns: 1fr;
    }

    .hospital-admin-dashboard-page .had-kpi-grid,
    .hospital-admin-dashboard-page .had-category-grid,
    .hospital-admin-dashboard-page .had-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hospital-admin-dashboard-page .had-shell {
        padding-inline: 14px;
    }

    .hospital-admin-dashboard-page .had-hero-stats,
    .hospital-admin-dashboard-page .had-analysis-grid,
    .hospital-admin-dashboard-page .had-kpi-grid,
    .hospital-admin-dashboard-page .had-category-grid,
    .hospital-admin-dashboard-page .had-module-grid,
    .hospital-admin-dashboard-page .had-action-grid,
    .hospital-admin-dashboard-page .had-table-grid,
    .hospital-admin-dashboard-page .had-trend-footer {
        grid-template-columns: 1fr;
    }

    .hospital-admin-dashboard-page .had-bar-chart {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ipd-bed-board-card {
    display: grid;
    gap: 18px;
}

.ipd-bed-board-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.ipd-bed-metric {
    padding: 14px 16px;
    border: 1px solid rgba(48, 111, 232, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.98));
    box-shadow: 0 12px 24px rgba(32, 56, 112, 0.06);
}

.ipd-bed-metric span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6e7f9a;
    margin-bottom: 6px;
}

.ipd-bed-metric strong {
    font-size: 24px;
    font-weight: 800;
    color: #21324b;
}

.ipd-room-board {
    display: grid;
    gap: 16px;
}

.ipd-room-cluster {
    border: 1px solid rgba(48, 111, 232, 0.12);
    background: #fdfefe;
    box-shadow: 0 14px 28px rgba(20, 44, 92, 0.05);
}

.ipd-room-cluster-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(48, 111, 232, 0.1);
    background: linear-gradient(180deg, rgba(245, 249, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.ipd-room-cluster-head strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #1f3354;
}

.ipd-room-cluster-head span,
.ipd-room-cluster-head em {
    font-size: 12px;
    font-style: normal;
    color: #6b7d98;
}

.ipd-room-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 16px;
}

.ipd-room-slot {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(47, 111, 232, 0.12);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(30, 46, 84, 0.04);
}

.ipd-room-slot::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #d5deef;
}

.ipd-room-slot .slot-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7385a0;
}

.ipd-room-slot strong {
    font-size: 16px;
    font-weight: 800;
    color: #1b3151;
}

.ipd-room-slot .slot-occupant {
    font-size: 13px;
    font-weight: 600;
    color: #48607f;
}

.ipd-room-slot small {
    font-size: 12px;
    color: #7b8ca5;
}

.ipd-room-slot.tone-available::before {
    background: #1cbf7d;
}

.ipd-room-slot.tone-available {
    background: linear-gradient(180deg, rgba(237, 252, 245, 0.98), rgba(255, 255, 255, 0.98));
}

.ipd-room-slot.tone-occupied::before {
    background: #2f6fe8;
}

.ipd-room-slot.tone-occupied {
    background: linear-gradient(180deg, rgba(239, 245, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.ipd-room-slot.tone-current::before {
    background: #13b6c5;
}

.ipd-room-slot.tone-current {
    background: linear-gradient(180deg, rgba(236, 253, 255, 0.98), rgba(255, 255, 255, 0.98));
    border-color: rgba(19, 182, 197, 0.28);
    box-shadow: 0 16px 32px rgba(19, 182, 197, 0.12);
}

.ipd-room-slot.is-current strong {
    color: #0c6b79;
}

.ipd-room-slot.tone-attention::before {
    background: #f59d0d;
}

.ipd-room-slot.tone-attention {
    background: linear-gradient(180deg, rgba(255, 247, 231, 0.98), rgba(255, 255, 255, 0.98));
}

@media (max-width: 991.98px) {
    .ipd-room-cluster-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ipd-room-slots {
        grid-template-columns: 1fr;
    }
}

.bed-management-page .bed-mgmt-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 20px;
}

.bed-management-page .bed-mgmt-module-grid {
    grid-template-columns: minmax(0, 1fr);
}

.bed-management-page .surface-stack {
    display: grid;
    gap: 20px;
}

.bed-management-page .bed-mgmt-room-board {
    display: grid;
    gap: 16px;
}

.bed-management-page .bed-mgmt-room-panel {
    border: 1px solid rgba(48, 111, 232, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
    box-shadow: 0 18px 34px rgba(21, 42, 84, 0.05);
}

.bed-management-page .bed-mgmt-room-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(48, 111, 232, 0.08);
}

.bed-management-page .bed-mgmt-room-head strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #263856;
}

.bed-management-page .bed-mgmt-room-head span {
    display: block;
    margin-top: 4px;
    color: #73839d;
    font-size: 0.9rem;
}

.bed-management-page .bed-mgmt-room-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.bed-management-page .bed-mgmt-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 18px 20px 20px;
}

.bed-management-page .bed-mgmt-slot {
    position: relative;
    display: grid;
    gap: 6px;
    min-height: 108px;
    padding: 16px;
    border: 1px solid rgba(48, 111, 232, 0.08);
    background: #fff;
    box-shadow: 0 10px 22px rgba(22, 44, 86, 0.04);
    overflow: hidden;
}

.bed-management-page .bed-mgmt-slot::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #d4deef;
}

.bed-management-page .bed-mgmt-slot-label {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7b8ca7;
}

.bed-management-page .bed-mgmt-slot strong {
    font-size: 1rem;
    font-weight: 800;
    color: #213653;
}

.bed-management-page .bed-mgmt-slot span:last-child {
    color: #5f7392;
    font-size: 0.92rem;
    line-height: 1.45;
}

.bed-management-page .bed-mgmt-slot.status-available::before {
    background: #18b26e;
}

.bed-management-page .bed-mgmt-slot.status-available {
    background: linear-gradient(180deg, rgba(241, 253, 247, 0.98), rgba(255, 255, 255, 0.98));
}

.bed-management-page .bed-mgmt-slot.status-occupied::before,
.bed-management-page .bed-mgmt-slot.status-reserved::before {
    background: #2f6fe8;
}

.bed-management-page .bed-mgmt-slot.status-occupied,
.bed-management-page .bed-mgmt-slot.status-reserved {
    background: linear-gradient(180deg, rgba(239, 245, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.bed-management-page .bed-mgmt-slot.status-cleaning::before,
.bed-management-page .bed-mgmt-slot.status-maintenance::before,
.bed-management-page .bed-mgmt-slot.status-blocked::before,
.bed-management-page .bed-mgmt-slot.status-needs-review::before {
    background: #f4a11b;
}

.bed-management-page .bed-mgmt-slot.status-cleaning,
.bed-management-page .bed-mgmt-slot.status-maintenance,
.bed-management-page .bed-mgmt-slot.status-blocked,
.bed-management-page .bed-mgmt-slot.status-needs-review {
    background: linear-gradient(180deg, rgba(255, 247, 232, 0.98), rgba(255, 255, 255, 0.98));
}

.bed-management-page .table-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bed-management-page .action-cell {
    min-width: 180px;
}

.bed-management-page .icon-action-btn {
    min-width: 38px;
    min-height: 38px;
}

@media (max-width: 1200px) {
    .bed-management-page .bed-mgmt-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .bed-management-page .bed-mgmt-room-head {
        flex-direction: column;
    }

    .bed-management-page .bed-mgmt-room-meta {
        justify-content: flex-start;
    }

    .bed-management-page .bed-mgmt-slot-grid {
        grid-template-columns: 1fr;
    }
}

.bed-management-page .bed-mgmt-master-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.bed-management-page .bed-mgmt-flag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bed-management-page .app-table td small,
.bed-management-page .app-table th small {
    display: block;
    margin-top: 4px;
    color: #6c7f9b;
    font-size: 0.82rem;
    line-height: 1.35;
}

.bed-management-page .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    font-weight: 600;
    color: #29415f;
}

.bed-management-page .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.bed-management-page .surface-head .btn-sm {
    min-height: 36px;
}

.bed-management-page .status-pill {
    white-space: nowrap;
}

.bed-management-page .bed-mgmt-filter-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bed-management-page .bed-mgmt-filter-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 16px;
}

.bed-management-page .bed-mgmt-filter-grid .form-group,
.bed-management-page .bed-mgmt-filter-grid .form-actions {
    margin-bottom: 0;
}

.bed-management-page .bed-mgmt-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 46px;
}

.bed-management-page .bed-mgmt-filter-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.bed-management-page .bed-mgmt-filter-chip-list .surface-tag strong {
    font-weight: 800;
    color: #17355a;
}

.bed-management-page .bed-mgmt-note-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.bed-management-page .bed-mgmt-note-summary-card {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(33, 89, 145, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.94));
}

.bed-management-page .bed-mgmt-note-summary-card small {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6d82a0;
}

.bed-management-page .bed-mgmt-note-summary-card strong {
    font-size: 1rem;
    font-weight: 800;
    color: #17355a;
}

.bed-management-page .bed-mgmt-note-summary-card span {
    font-size: 0.88rem;
    color: #5e7392;
}

.bed-management-page .surface-card .empty-state {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hospital-admin-dashboard-page .had-bed-board-card {
    display: grid;
    gap: 18px;
}

.hospital-admin-dashboard-page .had-bed-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.hospital-admin-dashboard-page .had-bed-summary-item,
.hospital-admin-dashboard-page .had-bed-room-card {
    border: 1px solid rgba(34, 86, 138, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
    box-shadow: 0 14px 28px rgba(17, 43, 71, 0.05);
}

.hospital-admin-dashboard-page .had-bed-summary-item {
    padding: 16px 18px;
}

.hospital-admin-dashboard-page .had-bed-summary-item small {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6d82a0;
}

.hospital-admin-dashboard-page .had-bed-summary-item strong {
    font-size: 1.45rem;
    font-weight: 800;
    color: #17355a;
}

.hospital-admin-dashboard-page .had-bed-room-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hospital-admin-dashboard-page .had-bed-room-card {
    padding: 18px;
    display: grid;
    gap: 14px;
}

.hospital-admin-dashboard-page .had-bed-room-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hospital-admin-dashboard-page .had-bed-room-head strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    color: #17355a;
}

.hospital-admin-dashboard-page .had-bed-room-head small {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    color: #6b809d;
}

.hospital-admin-dashboard-page .had-bed-room-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hospital-admin-dashboard-page .had-bed-room-metrics span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(47, 111, 232, 0.14);
    background: rgba(247, 250, 255, 0.96);
    font-size: 0.82rem;
    font-weight: 700;
    color: #31527a;
}

.hospital-admin-dashboard-page .had-bed-slot-list {
    display: grid;
    gap: 10px;
}

.hospital-admin-dashboard-page .had-bed-slot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(27, 77, 133, 0.08);
    background: #fff;
}

.hospital-admin-dashboard-page .had-bed-slot-item strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    color: #1c385d;
}

.hospital-admin-dashboard-page .had-bed-slot-item small {
    display: block;
    margin-top: 3px;
    font-size: 0.79rem;
    color: #7084a0;
}

@media (max-width: 1200px) {
    .bed-management-page .bed-mgmt-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bed-management-page .bed-mgmt-note-summary,
    .bed-management-page .bed-mgmt-master-grid,
    .hospital-admin-dashboard-page .had-bed-room-grid,
    .hospital-admin-dashboard-page .had-bed-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .hospital-admin-dashboard-page .had-bed-room-head,
    .hospital-admin-dashboard-page .had-bed-slot-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .bed-management-page .bed-mgmt-filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .bed-management-page .bed-mgmt-filter-grid,
    .bed-management-page .bed-mgmt-note-summary,
    .bed-management-page .bed-mgmt-master-grid,
    .hospital-admin-dashboard-page .had-bed-room-grid,
    .hospital-admin-dashboard-page .had-bed-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Layout alignment and visual cleanup */

.surface-card,
.dashboard-card.table-shell,
.bed-management-page .bed-mgmt-room-panel {
    border-radius: 12px;
}

.bed-management-page .surface-head {
    align-items: center;
}

.bed-management-page .surface-head h3 {
    margin-bottom: 0;
}

.bed-management-page .bed-mgmt-filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(220px, 0.8fr);
    gap: 12px;
    padding: 4px 0 2px;
}

.bed-management-page .bed-mgmt-filter-grid .form-label {
    margin-bottom: 6px;
}

.bed-management-page .bed-mgmt-filter-grid .form-control,
.bed-management-page .bed-mgmt-filter-grid .form-select {
    min-height: 42px;
}

.bed-management-page .bed-mgmt-filter-actions .btn {
    min-width: 110px;
}

.bed-management-page .bed-mgmt-note-summary {
    gap: 10px;
}

.bed-management-page .bed-mgmt-note-summary-card {
    min-height: 94px;
    align-content: center;
}

.bed-management-page .bed-mgmt-master-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bed-management-page .app-table-wrap {
    border-radius: 10px;
    overflow: auto;
}

.bed-management-page .app-table {
    min-width: 980px;
}

.bed-management-page .app-table th {
    white-space: nowrap;
}

.bed-management-page .app-table td,
.bed-management-page .app-table th {
    vertical-align: middle;
}

.bed-management-page .surface-card .app-table-pagination,
.bed-management-page .surface-card .dataTables_info {
    padding-top: 10px;
}

@media (max-width: 1400px) {
    .bed-management-page .bed-mgmt-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Modern card-style table components across modules */
.dashboard-card.table-shell,
.surface-card.table-shell,
.table-shell {
    overflow: hidden;
    border: 1px solid rgba(117, 113, 249, 0.16) !important;
    border-radius: 0px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 247, 255, 0.98)) !important;
    box-shadow: 0 16px 34px rgba(71, 66, 155, 0.08) !important;
}

.dashboard-card.table-shell .appointment-table-meta,
.table-shell .appointment-table-meta {
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(117, 113, 249, 0.14);
    background: linear-gradient(180deg, rgba(117, 113, 249, 0.08), rgba(117, 113, 249, 0.02));
}

.dashboard-card.table-shell .appointment-table-meta h4,
.table-shell .appointment-table-meta h4 {
    margin-bottom: 2px;
}

.app-table-wrap {
    border-radius: 10px;
    border: 1px solid rgba(117, 113, 249, 0.14);
    background: #fff;
}

.app-table thead th {
    background: #f1efff !important;
    color: #4a4a78 !important;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(117, 113, 249, 0.18) !important;
}

.app-table tbody td {
    border-bottom: 1px solid #ecebfa !important;
    padding-top: 12px;
    padding-bottom: 12px;
}

.app-table tbody tr:hover {
    background: rgba(117, 113, 249, 0.04) !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.app-table-pagination .page-link {
    border-radius: 10px !important;
}

.dataTables_wrapper .dataTables_filter input {
    min-height: 40px;
    border-color: rgba(117, 113, 249, 0.24) !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: rgba(117, 113, 249, 0.5) !important;
    box-shadow: 0 0 0 0.16rem rgba(117, 113, 249, 0.16) !important;
}

.status-pill {
    border-radius: 0px !important;
    padding: 0.34rem 0.72rem !important;
    font-weight: 700 !important;
}

/* Inner pages alignment + typography polish */



.dashboard-hero {
    border-radius: 14px;
    padding: 1.22rem 1.32rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 35%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #f4f7ff 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.surface-card,
.surface-card-lg,
.stat-card,
.dashboard-card,
.table-shell,
.main-content .card.shadow {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.surface-head {
    padding: 1rem 1.1rem 0.2rem;
}

.surface-head h3 {
    font-size: 1.12rem;
    letter-spacing: -0.01em;
}

.surface-head p,
.dashboard-hero p,
.table td span,
.mini-list-item span {
    font-size: 0.88rem;
}

/* Consistent status color coding for inner pages */
.status-pill.status-scheduled,
.badge.status-scheduled {
    color: #1d4ed8 !important;
    background: #dbeafe !important;
    border: 1px solid #bfdbfe !important;
}

.status-pill.status-checked-in,
.badge.status-checked-in,
.status-pill.status-in-consultation,
.badge.status-in-consultation {
    color: #0f766e !important;
    background: #ccfbf1 !important;
    border: 1px solid #99f6e4 !important;
}

.status-pill.status-completed,
.badge.status-completed,
.status-pill.status-active,
.badge.status-active {
    color: #166534 !important;
    background: #dcfce7 !important;
    border: 1px solid #bbf7d0 !important;
}

.status-pill.status-pending,
.badge.status-pending {
    color: #92400e !important;
    background: #fef3c7 !important;
    border: 1px solid #fde68a !important;
}

.status-pill.status-cancelled,
.badge.status-cancelled,
.status-pill.status-failed,
.badge.status-failed {
    color: #991b1b !important;
    background: #fee2e2 !important;
    border: 1px solid #fecaca !important;
}

/* 2026 trending UI pass */
.content-header h4,
.content-header .mb-0,
.dashboard-hero h2,
.stat-value,
.card-number {
    letter-spacing: -0.025em;
}

.content-header h4,
.content-header .mb-0 {
    font-size: clamp(1.1rem, 1rem + 0.45vw, 1.4rem);
}

.surface-tag,
.filter-chip {
    border-radius: 999px;
    font-size: 0.8rem;
    padding-inline: 0.78rem;
}

.icon-action-btn {
    border-radius: 10px;
}

.table tbody tr {
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.table tbody tr:hover {
    background: #f8fbff;
}

/* 2026-04-03 table action menu overlap fix */
.app-table th.action-cell,
.app-table td.action-cell,
.table th.action-cell,
.table td.action-cell {
    min-width: 5rem;
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
}

.app-table td.action-cell.has-action-menu,
.table td.action-cell.has-action-menu {
    overflow: visible !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.app-table td.action-cell.has-action-menu .table-action-group,
.table td.action-cell.has-action-menu .table-action-group {
    min-height: 2.125rem;
    align-items: center;
    justify-content: center;
}

.app-table td.action-cell.has-action-menu .table-action-trigger,
.table td.action-cell.has-action-menu .table-action-trigger {
    width: 2.125rem;
    height: 2.125rem;
    line-height: 1;
}

.app-table td.action-cell.has-action-menu .table-action-dropdown,
.table td.action-cell.has-action-menu .table-action-dropdown {
    z-index: 1200;
}

/* 2026-04-03 shell-specific hardening for action dropdown alignment */
body.app-page.app-redstar-shell .app-table td.action-cell.has-action-menu,
body.app-page.app-oreo-shell .app-table td.action-cell.has-action-menu,
body.app-page.oreo-clone-shell .app-table td.action-cell.has-action-menu,
body.oreo-clone-shell .app-table td.action-cell.has-action-menu {
    min-width: 5.25rem !important;
}

body.app-page.app-redstar-shell .app-table td.action-cell.has-action-menu .table-action-trigger,
body.app-page.app-oreo-shell .app-table td.action-cell.has-action-menu .table-action-trigger,
body.app-page.oreo-clone-shell .app-table td.action-cell.has-action-menu .table-action-trigger,
body.oreo-clone-shell .app-table td.action-cell.has-action-menu .table-action-trigger {
    width: 34px !important;
    height: 34px !important;
}

body.app-page.app-redstar-shell .app-table td.action-cell.has-action-menu .table-action-dropdown,
body.app-page.app-oreo-shell .app-table td.action-cell.has-action-menu .table-action-dropdown,
body.app-page.oreo-clone-shell .app-table td.action-cell.has-action-menu .table-action-dropdown,
body.oreo-clone-shell .app-table td.action-cell.has-action-menu .table-action-dropdown {
    right: 0;
    left: auto;
    margin-top: 0.3rem;
}

/* 2026-04-03 dropdown alignment hardening */
.app-table-wrap,
.table-responsive.app-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
}

.app-table td.action-cell.has-action-menu .table-action-dropdown,
.table td.action-cell.has-action-menu .table-action-dropdown {
    top: calc(100% + 0.32rem);
    bottom: auto;
}

body.app-page.app-redstar-shell .app-table td.action-cell.has-action-menu .table-action-dropdown,
body.app-page.app-oreo-shell .app-table td.action-cell.has-action-menu .table-action-dropdown,
body.app-page.oreo-clone-shell .app-table td.action-cell.has-action-menu .table-action-dropdown,
body.oreo-clone-shell .app-table td.action-cell.has-action-menu .table-action-dropdown {
    top: calc(100% + 0.32rem);
    bottom: auto;
    margin-top: 0;
}
