:root {
    --bg: #f5f8f8;
    --surface: #ffffff;
    --surface-alt: #eef6f6;
    --text: #102f3f;
    --muted: #647780;
    --line: #d8e5e7;
    --primary: #008f83;
    --primary-dark: #0b3b4c;
    --accent: #22a6a0;
    --shadow: 0 18px 44px rgba(15, 47, 63, 0.1);
    --sidebar-width: 284px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f3f8f8 100%);
    border-right: 1px solid var(--line);
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px;
    width: var(--sidebar-width);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    align-items: center;
    background: var(--primary);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.brand small,
.sidebar-footer small {
    color: var(--muted);
    display: block;
    margin-top: 3px;
}

.nav {
    display: grid;
    gap: 8px;
}

.nav-section {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    margin-top: 10px;
    text-transform: uppercase;
}

.nav a {
    border-radius: 8px;
    color: var(--text);
    padding: 12px 14px;
}

.nav a.active,
.nav a:hover {
    background: #e1f3f1;
    color: var(--primary-dark);
}

.sidebar-footer {
    border-top: 1px solid var(--line);
    margin-top: auto;
    padding-top: 20px;
}

.main {
    min-width: 0;
    padding: 28px;
}

.topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 47, 63, 0.05);
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 16px 18px;
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 6px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: 30px;
    margin-bottom: 0;
}

h2 {
    font-size: 19px;
}

.login-page {
    background: linear-gradient(135deg, #0b3b4c, #f4f8f8 58%);
    min-height: 100vh;
}

.login-hero {
    align-items: center;
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 420px;
    margin: 0 auto;
    max-width: 1100px;
    min-height: 100vh;
    padding: 32px;
}

.login-copy {
    color: #ffffff;
    max-width: 560px;
}

.login-copy h1 {
    font-size: 52px;
    margin: 18px 0 16px;
}

.login-copy p {
    color: #d7e7e4;
    font-size: 20px;
    line-height: 1.55;
}

.login-card,
.panel,
.metric-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 0;
}

.login-card {
    display: grid;
    gap: 18px;
    padding: 28px;
}

label {
    color: var(--muted);
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

input,
textarea,
select {
    background: #fbfdfc;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    min-height: 44px;
    padding: 11px 12px;
    width: 100%;
}

textarea {
    line-height: 1.5;
    resize: vertical;
}

button,
.primary-link,
.secondary-link,
.ghost-button,
.whatsapp-link {
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    text-align: center;
    white-space: nowrap;
}

button,
.primary-link,
.whatsapp-link {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #ffffff;
}

button:hover,
.primary-link:hover,
.whatsapp-link:hover {
    background: var(--primary-dark);
}

.whatsapp-link {
    background: #16a34a;
    border-color: #16a34a;
}

.whatsapp-link:hover {
    background: #15803d;
}

.outline,
.secondary-link,
.ghost-button {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
}

.metrics-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.module-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-bottom: 20px;
}

.module-card {
    background: #fbfdfc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 18px;
}

.module-card span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.module-card strong {
    font-size: 18px;
}

.module-card small {
    color: var(--muted);
    line-height: 1.4;
}

.module-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.metric-card {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.metric-card span,
.muted,
td small {
    color: var(--muted);
}

.metric-card strong {
    font-size: 34px;
}

.content-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}

.content-grid.wide-left {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.panel {
    padding: 22px;
}

.filter-bar {
    align-items: end;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-bottom: 16px;
    padding: 14px;
}

.compact-filter {
    grid-template-columns: minmax(180px, 240px) auto;
}

.filter-actions,
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.result-summary {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.empty-state {
    background: #fbfdfc;
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 22px;
}

.timeline-list,
.record-list {
    display: grid;
    gap: 12px;
}

.timeline-item,
.record-card {
    align-items: center;
    background: #fbfdfc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 14px;
}

.time-badge {
    background: var(--surface-alt);
    border-radius: 8px;
    color: var(--primary-dark);
    font-weight: 700;
    padding: 10px 12px;
}

.kanban-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kanban-column {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
}

.mini-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 12px;
}

.mini-card small,
.mini-card a {
    color: var(--muted);
}

.mini-card a {
    color: var(--primary);
    font-weight: 700;
}

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

.settings-list div {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 5px;
    padding-bottom: 12px;
}

.settings-list span {
    color: var(--muted);
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
}

.compact {
    font-size: 13px;
    min-height: 34px;
    padding: 7px 10px;
}

.notice {
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.notice.success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.notice.error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.panel-heading {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-heading h2,
.panel-heading p {
    margin-bottom: 0;
}

.panel-heading a {
    color: var(--primary);
    font-weight: 700;
}

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

table {
    border-collapse: collapse;
    min-width: 720px;
    table-layout: fixed;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

th {
    color: var(--muted);
    font-size: 13px;
}

.status-pill {
    background: var(--surface-alt);
    border-radius: 999px;
    color: var(--primary-dark);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
}

.form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.summary-box {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    line-height: 1.55;
    min-height: 220px;
    padding: 16px;
}

.summary-box h3 {
    color: var(--text);
    font-size: 15px;
    margin-bottom: 6px;
}

.report-section {
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

.report-section span {
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}

.report-section textarea {
    margin-top: 10px;
}

.report-section p {
    color: var(--muted);
    line-height: 1.6;
}

.prescription-sheet {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 22px;
    margin: 18px auto;
    max-width: 820px;
    min-height: 760px;
    padding: 34px;
}

.prescription-sheet header {
    border-bottom: 2px solid var(--text);
    display: grid;
    gap: 6px;
    padding-bottom: 18px;
    text-align: center;
}

.prescription-sheet header strong {
    font-size: 24px;
}

.prescription-meta {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prescription-sheet section {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.prescription-sheet p {
    line-height: 1.65;
}

.prescription-sheet footer {
    align-self: end;
    display: grid;
    gap: 8px;
    justify-items: center;
    margin-top: 38px;
}

.signature-line {
    border-top: 1px solid var(--text);
    width: min(320px, 80%);
}

.notice.warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

.hospital-hero {
    background:
        linear-gradient(90deg, rgba(16, 47, 63, 0.92), rgba(0, 143, 131, 0.74)),
        radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.32), transparent 28%),
        linear-gradient(135deg, #0b3b4c, #008f83);
    border-radius: 8px;
    color: #ffffff;
    margin-bottom: 20px;
    min-height: 310px;
    overflow: hidden;
    padding: clamp(28px, 5vw, 56px);
    position: relative;
}

.hospital-hero::after {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    content: "";
    height: 260px;
    position: absolute;
    right: -70px;
    top: 34px;
    width: 260px;
}

.hospital-hero div {
    max-width: 820px;
    position: relative;
    z-index: 1;
}

.hospital-hero span {
    color: #7be0d8;
    font-weight: 700;
}

.hospital-hero h2 {
    font-size: clamp(34px, 6vw, 58px);
    font-weight: 400;
    line-height: 1.08;
    margin: 18px 0;
}

.hospital-hero p {
    color: #e7f5f4;
    font-size: 18px;
    line-height: 1.6;
    max-width: 760px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-actions .secondary-link {
    border-color: rgba(255, 255, 255, 0.48);
    color: #ffffff;
}

.finance-lock {
    margin: 0 auto;
    max-width: 520px;
}

@media (max-width: 900px) {
    .app-shell,
    .login-hero,
    .content-grid,
    .content-grid.wide-left,
    .metrics-grid,
    .module-grid,
    .kanban-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        width: 100%;
    }

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

    .nav-section {
        grid-column: 1 / -1;
    }

    .timeline-item,
    .record-card {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .login-copy h1 {
        font-size: 40px;
    }

    .hospital-hero {
        min-height: 260px;
    }

    .prescription-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .main,
    .sidebar,
    .login-hero {
        padding: 18px;
    }

    .form-grid,
    .nav,
    .filter-bar,
    .compact-filter {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 25px;
    }

    .panel {
        padding: 16px;
    }

    .topbar {
        padding: 14px;
    }

    button,
    .primary-link,
    .secondary-link,
    .ghost-button,
    .whatsapp-link {
        white-space: normal;
        width: 100%;
    }

    .filter-actions,
    .form-actions,
    .row-actions {
        width: 100%;
    }

    .filter-actions > *,
    .form-actions > *,
    .row-actions > * {
        flex: 1 1 100%;
    }

    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .table-wrap {
        overflow-x: visible;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        background: #fbfdfc;
        border: 1px solid var(--line);
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 10px;
    }

    td {
        border-bottom: 0;
        display: grid;
        gap: 4px;
        padding: 8px 4px;
    }

    td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 12px;
        font-weight: 700;
    }

    .prescription-sheet {
        min-height: auto;
        padding: 18px;
    }

    .prescription-sheet header strong {
        font-size: 20px;
    }
}

@media print {
    .sidebar,
    .topbar,
    button,
    .whatsapp-link,
    .secondary-link,
    .primary-link,
    .notice {
        display: none;
    }

    .app-shell {
        display: block;
    }

    .main,
    .panel {
        box-shadow: none;
        padding: 0;
    }

    .prescription-sheet {
        border: 0;
        box-shadow: none;
        margin: 0;
        max-width: none;
        min-height: 100vh;
        padding: 24px;
    }
}

/* NexaCare visual system */
:root {
    --bg: #f3f7f8;
    --surface: #ffffff;
    --surface-alt: #edf7f6;
    --text: #082c3d;
    --muted: #657985;
    --line: #d6e5e8;
    --primary: #009b91;
    --primary-dark: #092f42;
    --accent: #34c6bd;
    --warning: #f59e0b;
    --shadow: 0 18px 50px rgba(8, 44, 61, 0.12);
    --sidebar-width: 288px;
}

body {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 280px),
        var(--bg);
}

.app-shell {
    align-items: start;
}

.sidebar {
    background: rgba(255, 255, 255, 0.96);
    border-right: 1px solid var(--line);
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.brand-mark {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 10px 24px rgba(0, 155, 145, 0.24);
}

.brand strong {
    color: var(--primary-dark);
    font-size: 18px;
}

.nav {
    gap: 6px;
}

.nav a {
    align-items: center;
    border: 1px solid transparent;
    color: #244858;
    display: flex;
    min-height: 42px;
}

.nav a.active,
.nav a:hover {
    background: #e4f6f4;
    border-color: #c3e8e4;
    color: var(--primary-dark);
}

.main {
    padding: 22px;
}

.topbar {
    backdrop-filter: blur(10px);
    position: sticky;
    top: 14px;
    z-index: 5;
}

.topbar-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.global-search {
    background: #edf1f2;
    border: 0;
    border-radius: 999px;
    min-height: 44px;
    width: min(320px, 34vw);
}

.hospital-hero {
    background:
        linear-gradient(90deg, rgba(8, 44, 61, 0.96) 0%, rgba(8, 44, 61, 0.74) 42%, rgba(0, 155, 145, 0.28) 100%),
        url("health-hero.png") center right / cover no-repeat;
    min-height: clamp(360px, 48vw, 560px);
    padding: clamp(32px, 7vw, 76px);
}

.hospital-hero::after {
    display: none;
}

.hospital-hero h2 {
    max-width: 950px;
}

.hospital-hero p {
    max-width: 820px;
}

.panel,
.metric-card,
.module-card,
.login-card {
    border-color: rgba(214, 229, 232, 0.9);
}

.metric-card {
    background:
        linear-gradient(180deg, #ffffff, #f7fbfb);
    min-height: 138px;
}

.metric-card strong {
    color: var(--primary-dark);
}

.module-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.module-card {
    overflow: hidden;
    position: relative;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.module-card::after {
    background: linear-gradient(135deg, rgba(0, 155, 145, 0.12), rgba(9, 47, 66, 0.04));
    content: "";
    height: 86px;
    position: absolute;
    right: -32px;
    top: -32px;
    transform: rotate(20deg);
    width: 120px;
}

.module-card:hover,
.module-card.is-highlighted {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.content-grid,
.content-grid.wide-left {
    align-items: start;
}

.filter-bar {
    background: #f4faf9;
    border-color: #d2e9e7;
}

.prescription-sheet {
    background:
        linear-gradient(180deg, #ffffff, #fbfdfd);
}

.notice.warning {
    background: #fff7dd;
}

.finance-lock {
    margin-top: 40px;
}

.login-page {
    background:
        linear-gradient(90deg, rgba(8, 44, 61, 0.92), rgba(0, 155, 145, 0.56)),
        url("health-hero.png") center right / cover no-repeat;
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
}

.ui-enter {
    animation: uiEnter 420ms ease both;
}

@keyframes uiEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ui-enter,
    .module-card {
        animation: none;
        transition: none;
    }
}

@media (max-width: 1024px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        min-height: auto;
        position: static;
        width: 100%;
    }

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

    .nav-section {
        grid-column: 1 / -1;
    }

    .global-search {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .main {
        padding: 14px;
    }

    .topbar {
        position: static;
    }

    .topbar-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .hospital-hero {
        background:
            linear-gradient(180deg, rgba(8, 44, 61, 0.96), rgba(0, 155, 145, 0.78)),
            url("health-hero.png") center / cover no-repeat;
        min-height: 430px;
    }

    .hospital-hero h2 {
        font-size: 34px;
    }

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

    .module-card {
        min-height: 122px;
    }
}

/* Premium institutional redesign */
body {
    background: #f5f7f8;
}

.app-shell,
.platform-shell {
    display: block;
    min-height: 100vh;
}

.sidebar {
    display: none;
}

.enterprise-header {
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e3ebed;
    display: grid;
    gap: 24px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 92px;
    padding: 0 clamp(18px, 4vw, 52px);
    position: sticky;
    top: 0;
    z-index: 30;
}

.enterprise-brand {
    min-width: 230px;
}

.enterprise-nav {
    align-items: stretch;
    display: flex;
    gap: 26px;
    height: 92px;
    justify-content: center;
}

.enterprise-nav a {
    align-items: center;
    border-bottom: 3px solid transparent;
    color: #0b2f42;
    display: inline-flex;
    font-size: 17px;
    font-weight: 800;
    padding: 0 4px;
}

.enterprise-nav a.active,
.enterprise-nav a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.enterprise-actions {
    align-items: center;
    display: flex;
    gap: 14px;
}

.client-button {
    background: #0b2f42;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    min-height: 50px;
    padding: 14px 24px;
    white-space: nowrap;
}

.module-ribbon {
    background: #0b2f42;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px clamp(14px, 4vw, 52px);
    position: sticky;
    scrollbar-width: thin;
    top: 92px;
    z-index: 20;
}

.module-ribbon a {
    border-radius: 999px;
    color: #dcebed;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
}

.module-ribbon a.active,
.module-ribbon a:hover {
    background: var(--primary);
    color: #ffffff;
}

.main {
    margin: 0 auto;
    max-width: 1520px;
    padding: clamp(16px, 3vw, 34px);
}

.page-heading {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    position: static;
}

.page-heading h1 {
    font-size: clamp(26px, 3vw, 38px);
}

.hospital-hero {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(9, 47, 66, 0.92) 0%, rgba(9, 47, 66, 0.72) 42%, rgba(0, 126, 114, 0.1) 100%),
        url("health-hero.png") center right / cover no-repeat;
    display: flex;
    min-height: clamp(520px, 56vw, 720px);
    padding: clamp(34px, 7vw, 96px);
}

.hospital-hero span {
    color: #5de0d6;
    font-size: 17px;
}

.hospital-hero h2 {
    font-size: clamp(42px, 7vw, 78px);
    font-weight: 300;
    max-width: 1120px;
}

.hospital-hero p {
    font-size: clamp(18px, 2vw, 24px);
    max-width: 980px;
}

.value-strip {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: -34px auto 26px;
    position: relative;
    z-index: 2;
}

.value-strip article {
    background: #ffffff;
    border: 1px solid #e1eaec;
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 24px;
}

.value-strip article:first-child {
    border-radius: 8px 0 0 8px;
}

.value-strip article:last-child {
    border-radius: 0 8px 8px 0;
}

.value-strip strong {
    color: #092f42;
    font-size: 20px;
}

.value-strip span {
    color: var(--muted);
    line-height: 1.5;
}

.metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.metric-card {
    border: 0;
    border-radius: 8px;
    min-height: 154px;
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    background: rgba(0, 155, 145, 0.1);
    border-radius: 50%;
    content: "";
    height: 120px;
    position: absolute;
    right: -42px;
    top: -42px;
    width: 120px;
}

.module-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.module-card {
    border: 0;
    color: #ffffff;
    min-height: 230px;
    padding: 28px;
}

.module-card span,
.module-card small,
.module-card strong {
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.module-card strong {
    font-size: 25px;
}

.module-card small {
    font-size: 15px;
    opacity: 0.88;
}

.module-card::before {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    bottom: -46px;
    content: "";
    height: 150px;
    position: absolute;
    right: -36px;
    width: 150px;
}

.module-care { background: linear-gradient(135deg, #008f83, #0b3b4c); }
.module-schedule { background: linear-gradient(135deg, #0f766e, #155e75); }
.module-record { background: linear-gradient(135deg, #2563eb, #0b3b4c); }
.module-finance { background: linear-gradient(135deg, #0f5132, #0b3b4c); }
.module-prescription { background: linear-gradient(135deg, #7c3aed, #0b3b4c); }
.module-certificate { background: linear-gradient(135deg, #b45309, #0b3b4c); }

.panel {
    border: 0;
}

.content-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.global-search {
    background: #e9edef;
    min-width: 260px;
}

@media (max-width: 1180px) {
    .enterprise-header {
        grid-template-columns: 1fr;
        padding-bottom: 16px;
        padding-top: 16px;
    }

    .enterprise-nav {
        height: auto;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .enterprise-actions {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .module-ribbon {
        top: 0;
    }
}

@media (max-width: 840px) {
    .hospital-hero {
        background:
            linear-gradient(180deg, rgba(9, 47, 66, 0.96), rgba(0, 126, 114, 0.72)),
            url("health-hero.png") center / cover no-repeat;
        min-height: 560px;
    }

    .value-strip {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .value-strip article,
    .value-strip article:first-child,
    .value-strip article:last-child {
        border-radius: 8px;
    }

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

    .enterprise-actions > *,
    .global-search {
        min-width: 0;
        width: 100%;
    }
}
