.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    background: linear-gradient(180deg, #eef5fc 0%, #f4f8fb 55%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
}

.auth-card .card {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(13, 62, 110, .12);
}

.auth-card .form-control {
    min-height: 48px;
    border-radius: 10px;
}

.auth-card .form-label {
    font-weight: 600;
    font-size: .9rem;
    color: #33475b;
}

.btn-auth {
    min-height: 52px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
}

@media (max-width: 380px) {
    .auth-shell {
        padding: 1.5rem .75rem;
    }
}

.btn-guide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    background: linear-gradient(135deg, #0ea5a4, #0d8fce);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .5rem 1.1rem;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(13, 143, 206, .3);
    transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}

.btn-guide:hover,
.btn-guide:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(13, 143, 206, .4);
}

.btn-guide svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.btn-guide-sm {
    padding: .4rem .85rem;
    font-size: .78rem;
}

.btn-guide-sm svg {
    width: 13px;
    height: 13px;
}

.btn:not(.btn-sm):not(.btn-lg):not(.access-button) {
    min-height: 38px;
}

.btn-sm {
    min-height: 31px;
}

.btn-lg {
    min-height: 48px;
}

.app-toolbar,
.app-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: .5rem;
}

.app-toolbar {
    justify-content: center;
}

.app-toolbar > form {
    display: flex;
}

.app-toolbar > .btn,
.app-toolbar > form > .btn {
    min-width: 150px;
}

.app-header-actions {
    justify-content: flex-end;
    align-items: center;
}

.app-header-actions form {
    display: flex;
    margin: 0;
}

.table .btn-sm {
    min-width: 72px;
}

.catalog-edit-form .form-control {
    min-width: 180px;
}

.catalog-edit-form .btn {
    flex: 0 0 auto;
}

.app-row-actions,
.app-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.app-row-actions form {
    display: flex;
    margin: 0;
}

.app-form-actions {
    justify-content: flex-end;
}

.app-form-actions .btn {
    min-width: 160px;
}

.specialty-inline-form {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.specialty-inline-form .form-control,
.specialty-inline-form .form-select {
    min-width: 180px;
}

@media (max-width: 767.98px) {
    .specialty-inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .specialty-inline-form .form-control,
    .specialty-inline-form .form-select {
        min-width: 0;
    }

    .specialty-inline-form .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .app-page-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: .75rem;
    }

    .app-header-actions {
        justify-content: stretch;
    }

    .app-header-actions > .btn,
    .app-page-header > .btn,
    .app-header-actions > form,
    .app-header-actions > form > .btn,
    .app-toolbar > .btn,
    .app-toolbar > form,
    .app-toolbar > form > .btn {
        width: 100%;
    }

    .app-toolbar > .btn,
    .app-toolbar > form > .btn {
        min-width: 0;
    }

    .catalog-edit-form .form-control {
        min-width: 150px;
    }

    .app-row-actions,
    .app-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .app-row-actions > .btn,
    .app-row-actions > form,
    .app-row-actions > form > .btn,
    .app-form-actions > .btn {
        width: 100%;
    }

    .app-form-actions .btn {
        min-width: 0;
    }
}

/* =========================================================
   ADMIN MODULE NAVIGATION TABS
   SaaS / Enterprise medical dashboard
========================================================= */
.medical-tabs-wrapper {
    position: sticky;
    top: 8px;
    z-index: 30;
    width: 100%;
    margin: 0 0 16px;
    border-bottom: 1px solid #d9e2ec;
    background: rgba(244, 248, 251, .88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.medical-tabs {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 6px 0;
    scrollbar-width: none;
}

.medical-tabs::-webkit-scrollbar {
    display: none;
}

.medical-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 46px;
    padding: 9px 16px;
    margin-bottom: -1px;
    border: 1px solid #e0e6ed;
    border-bottom-color: #d9e2ec;
    border-radius: 12px 12px 0 0;
    background: #f6f8fa;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.medical-tab:hover,
.medical-tab:focus-visible {
    background: #f0f4f8;
    color: #1d4d78;
    border-color: #ccd8e5;
    transform: translateY(-1px);
    outline: none;
}

.medical-tab.active {
    z-index: 2;
    background: #ffffff;
    color: #123d69;
    border-color: #d9e2ec;
    border-bottom-color: #ffffff;
    box-shadow: 0 -5px 16px rgba(25, 56, 87, .05);
}

.medical-tab.active::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 11px;
    right: 11px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #1769d2, #11888a);
}

.medical-tab-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid #dde5ed;
    border-radius: 8px;
    background: #edf1f5;
    color: #667085;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.medical-tab-icon svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.medical-tab:hover .medical-tab-icon,
.medical-tab:focus-visible .medical-tab-icon {
    transform: scale(1.04);
    border-color: #c8d7e6;
}

.medical-tab.active .medical-tab-icon {
    background: linear-gradient(135deg, #e7f1ff, #e8f8f7);
    border-color: #c9dff3;
    color: #1769d2;
}

.medical-tab[data-module-tab="forma50"].active::before {
    background: linear-gradient(90deg, #5767d8, #7a87e8);
}
.medical-tab[data-module-tab="forma50"].active .medical-tab-icon {
    color: #5767d8;
    background: #f0f1ff;
    border-color: #d7daf8;
}

.medical-tab[data-module-tab="forma12"].active::before {
    background: linear-gradient(90deg, #c77a18, #d8a33b);
}
.medical-tab[data-module-tab="forma12"].active .medical-tab-icon {
    color: #b56d13;
    background: #fff7ea;
    border-color: #efd7ad;
}

.medical-tab[data-module-tab="radiologie"].active::before {
    background: linear-gradient(90deg, #0f7b85, #22a6a8);
}
.medical-tab[data-module-tab="radiologie"].active .medical-tab-icon {
    color: #0f7b85;
    background: #eaf9fa;
    border-color: #b8dfe2;
}

.medical-tab[data-module-tab="oftalmo"].active::before {
    background: linear-gradient(90deg, #118b92, #1769d2);
}
.medical-tab[data-module-tab="oftalmo"].active .medical-tab-icon {
    color: #118b92;
    background: #edfafa;
    border-color: #b8dfe2;
}

[data-module-section] {
    scroll-margin-top: 88px;
}

@media (max-width: 767.98px) {
    .medical-tabs-wrapper {
        top: 4px;
        margin-left: -2px;
        margin-right: -2px;
    }

    .medical-tabs {
        gap: 3px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .medical-tab {
        min-height: 44px;
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 10px 10px 0 0;
    }

    .medical-tab-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .medical-tab-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .medical-tab {
        gap: 6px;
        padding: 8px 10px;
    }

    .medical-tab-label {
        font-size: 10.5px;
    }
}


/* =========================================================
   ADMIN ENTERPRISE — FINAL POLISH
   Compatibil cu admin.php nou (medical-tabs-shell / data-module)
   ========================================================= */

body:not(.auth-shell) .medical-tabs-shell {
    position: sticky !important;
    top: 8px !important;
    z-index: 40 !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 1px solid #dbe4ed !important;
    border-bottom-color: #d5dee8 !important;
    border-radius: 14px 14px 0 0 !important;
    background: rgba(248, 250, 252, .96) !important;
    box-shadow: 0 8px 22px rgba(25, 56, 87, .045) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

body:not(.auth-shell) .medical-tabs {
    display: flex !important;
    align-items: flex-end !important;
    gap: 4px !important;
    padding: 7px 6px 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
}

body:not(.auth-shell) .medical-tabs::-webkit-scrollbar {
    display: none !important;
}

body:not(.auth-shell) .medical-tab {
    min-height: 48px !important;
    padding: 9px 15px !important;
    margin-bottom: -1px !important;
    gap: 8px !important;
    border: 1px solid #dde4eb !important;
    border-bottom-color: #d5dee8 !important;
    border-radius: 11px 11px 0 0 !important;
    background: #f3f5f7 !important;
    color: #697586 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .01em !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88) !important;
    transform: none !important;
}

body:not(.auth-shell) .medical-tab:hover,
body:not(.auth-shell) .medical-tab:focus-visible {
    background: #eef2f6 !important;
    color: #244663 !important;
    border-color: #cbd7e2 !important;
    outline: none !important;
}

body:not(.auth-shell) .medical-tab.active {
    z-index: 3 !important;
    background: #ffffff !important;
    color: #123d69 !important;
    border-color: #d5dee8 !important;
    border-bottom-color: #ffffff !important;
    box-shadow:
        0 -4px 14px rgba(25, 56, 87, .045),
        0 1px 0 #ffffff !important;
}

body:not(.auth-shell) .medical-tab.active::before {
    top: -1px !important;
    left: 13px !important;
    right: 13px !important;
    height: 3px !important;
    border-radius: 0 0 5px 5px !important;
    background: var(--tab-accent, #1769d2) !important;
}

body:not(.auth-shell) .medical-tab-icon {
    width: 29px !important;
    height: 29px !important;
    flex: 0 0 29px !important;
    border: 1px solid #dce4ec !important;
    border-radius: 9px !important;
    background: #e9edf2 !important;
    color: #7a8797 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82) !important;
}

body:not(.auth-shell) .medical-tab-icon svg {
    width: 17px !important;
    height: 17px !important;
    stroke-width: 1.85 !important;
}

body:not(.auth-shell) .medical-tab.active .medical-tab-icon {
    color: var(--tab-accent, #1769d2) !important;
    background: color-mix(in srgb, var(--tab-accent, #1769d2) 9%, #ffffff) !important;
    border-color: color-mix(in srgb, var(--tab-accent, #1769d2) 22%, #dce4ec) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.96),
        0 4px 10px color-mix(in srgb, var(--tab-accent, #1769d2) 10%, transparent) !important;
}

body:not(.auth-shell) .medical-tab[data-module="trimiteri"] { --tab-accent: #1769d2; }
body:not(.auth-shell) .medical-tab[data-module="forma50"] { --tab-accent: #5767d8; }
body:not(.auth-shell) .medical-tab[data-module="forma12"] { --tab-accent: #c77a18; }
body:not(.auth-shell) .medical-tab[data-module="radiologie"] { --tab-accent: #0f7b85; }
body:not(.auth-shell) .medical-tab[data-module="oftalmo"] { --tab-accent: #118b92; }

/* Suprafața de conținut — mai curată, mai compactă */
body:not(.auth-shell) .medical-tabs-shell + .module-grid {
    margin-top: 0 !important;
    padding: 14px !important;
    border: 1px solid #d5dee8 !important;
    border-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 26px rgba(25, 56, 87, .055) !important;
}

body:not(.auth-shell) .module-grid .module-card.is-active {
    padding: 15px !important;
    border-radius: 16px !important;
    box-shadow: 0 7px 20px rgba(25, 56, 87, .055) !important;
}

body:not(.auth-shell) .module-grid .module-head {
    gap: 12px !important;
}

body:not(.auth-shell) .module-grid .module-emblem {
    flex-basis: 64px !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 18px !important;
    box-shadow:
        0 10px 22px color-mix(in srgb,var(--module-accent) 16%,transparent),
        inset 0 1px 0 rgba(255,255,255,.96) !important;
}

body:not(.auth-shell) .module-grid .module-radiologie .module-emblem {
    flex-basis: 70px !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 20px !important;
}

body:not(.auth-shell) .module-grid .module-emblem svg {
    width: 36px !important;
    height: 36px !important;
}

body:not(.auth-shell) .module-grid .module-radiologie .module-emblem svg {
    width: 42px !important;
    height: 42px !important;
}

body:not(.auth-shell) .module-grid .module-kicker {
    min-height: 20px !important;
    padding: 3px 7px !important;
    margin-bottom: 5px !important;
    font-size: 9px !important;
}

body:not(.auth-shell) .module-grid .module-title {
    font-size: 17px !important;
    letter-spacing: -.15px !important;
}

body:not(.auth-shell) .module-grid .module-description {
    margin-top: 4px !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
}

body:not(.auth-shell) .module-grid .module-actions {
    gap: 6px !important;
    padding-top: 11px !important;
}

body:not(.auth-shell) .module-grid .module-actions .btn {
    min-height: 35px !important;
    padding: 6px 9px !important;
    border-radius: 9px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

/* Statistici puțin mai compacte */
body:not(.auth-shell) .stat-box {
    min-height: 88px !important;
    padding: 13px !important;
    border-radius: 14px !important;
}

body:not(.auth-shell) .stat-box strong {
    font-size: 25px !important;
}

/* Titlu secțiune mai apropiat de tab-uri */
body:not(.auth-shell) .module-section-title {
    margin-bottom: 10px !important;
}

body:not(.auth-shell) .module-section-title h4 {
    font-size: 17px !important;
}

body:not(.auth-shell) .module-section-title p {
    margin-top: 3px !important;
}

/* Desktop lat: tab-urile ocupă natural spațiul, fără să pară butoane uriașe */
@media (min-width: 992px) {
    body:not(.auth-shell) .medical-tab {
        min-width: 126px !important;
    }

    body:not(.auth-shell) .medical-tab[data-module="radiologie"] {
        min-width: 142px !important;
    }
}

/* Tabletă și mobil */
@media (max-width: 767.98px) {
    body:not(.auth-shell) .medical-tabs-shell {
        top: 0 !important;
        padding: 0 4px !important;
        border-radius: 12px 12px 0 0 !important;
    }

    body:not(.auth-shell) .medical-tabs {
        gap: 3px !important;
        padding: 5px 3px 0 !important;
    }

    body:not(.auth-shell) .medical-tab {
        min-height: 44px !important;
        padding: 8px 11px !important;
        font-size: 11px !important;
    }

    body:not(.auth-shell) .medical-tab-icon {
        width: 26px !important;
        height: 26px !important;
        flex-basis: 26px !important;
    }

    body:not(.auth-shell) .medical-tab-icon svg {
        width: 15px !important;
        height: 15px !important;
    }

    body:not(.auth-shell) .medical-tabs-shell + .module-grid {
        padding: 10px !important;
    }

    body:not(.auth-shell) .module-grid .module-card.is-active {
        padding: 13px !important;
    }
}

@media (max-width: 480px) {
    body:not(.auth-shell) .medical-tab {
        gap: 6px !important;
        padding: 8px 10px !important;
    }

    body:not(.auth-shell) .medical-tab span:last-child {
        font-size: 10px !important;
    }
}


/* =========================================================
   ADMIN ENTERPRISE — FINAL POLISH V2
   Ajustări finale de proporții, spațiere și claritate vizuală
   ========================================================= */

/* 1) Tab-uri mai echilibrate pe desktop */
@media (min-width: 992px) {
    body:not(.auth-shell) .medical-tabs {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 4px !important;
        overflow: visible !important;
    }

    body:not(.auth-shell) .medical-tab,
    body:not(.auth-shell) .medical-tab[data-module="radiologie"] {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
    }
}

/* 2) Embleme puțin mai generoase și mai bine centrate */
body:not(.auth-shell) .module-grid .module-emblem {
    flex-basis: 70px !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 19px !important;
}

body:not(.auth-shell) .module-grid .module-emblem svg {
    width: 40px !important;
    height: 40px !important;
}

body:not(.auth-shell) .module-grid .module-radiologie .module-emblem,
body:not(.auth-shell) .module-grid .module-oftalmo .module-emblem {
    flex-basis: 76px !important;
    width: 76px !important;
    height: 76px !important;
    border-radius: 21px !important;
}

body:not(.auth-shell) .module-grid .module-radiologie .module-emblem svg,
body:not(.auth-shell) .module-grid .module-oftalmo .module-emblem svg {
    width: 46px !important;
    height: 46px !important;
}

/* 3) Panoul modulului mai compact și mai dens */
body:not(.auth-shell) .medical-tabs-shell + .module-grid {
    padding: 12px !important;
    margin-bottom: 14px !important;
}

body:not(.auth-shell) .module-grid .module-card.is-active {
    padding: 14px !important;
}

body:not(.auth-shell) .module-grid .module-head {
    align-items: center !important;
    gap: 13px !important;
}

body:not(.auth-shell) .module-grid .module-actions {
    padding-top: 10px !important;
    gap: 6px !important;
}

body:not(.auth-shell) .module-grid .module-note {
    margin-top: 8px !important;
}

/* 4) Buton principal mai premium, fără efect exagerat */
body:not(.auth-shell) .module-grid .module-actions .module-primary {
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--module-accent) 92%, #ffffff),
            color-mix(in srgb, var(--module-accent-2) 94%, #0b365d)
        ) !important;
    box-shadow:
        0 6px 14px color-mix(in srgb, var(--module-accent) 15%, transparent) !important;
    border-color: color-mix(in srgb, var(--module-accent) 82%, #17365f) !important;
}

body:not(.auth-shell) .module-grid .module-actions .module-primary:hover,
body:not(.auth-shell) .module-grid .module-actions .module-primary:focus-visible {
    filter: brightness(.97) !important;
    box-shadow:
        0 8px 18px color-mix(in srgb, var(--module-accent) 20%, transparent) !important;
}

/* 5) Butoanele secundare mai fine */
body:not(.auth-shell) .module-grid .module-actions .module-outline {
    background: rgba(255,255,255,.92) !important;
    border-color: color-mix(in srgb, var(--module-accent) 38%, #d9e2ea) !important;
}

body:not(.auth-shell) .module-grid .module-actions .module-outline:hover,
body:not(.auth-shell) .module-grid .module-actions .module-outline:focus-visible {
    background: color-mix(in srgb, var(--module-soft) 74%, #ffffff) !important;
}

/* 6) Mai puțin spațiu gol înainte de footer */
body:not(.auth-shell) > .container .d-flex.flex-column.align-items-center.text-center.text-muted.small.mt-4 {
    margin-top: 18px !important;
    padding-top: 14px !important;
    padding-bottom: 2px !important;
    gap: 4px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}

/* 7) Cardul principal al paginii: puțin mai compact pe verticală */
body:not(.auth-shell) > .container > .row > div > .card {
    padding-bottom: 20px !important;
}

/* 8) Statistici mai compacte, fără să piardă lizibilitatea */
body:not(.auth-shell) .stat-box {
    min-height: 82px !important;
    padding: 11px !important;
}

body:not(.auth-shell) .stat-box strong {
    font-size: 24px !important;
    margin-bottom: 2px !important;
}

/* 9) Titlul secțiunii mai apropiat de navigație */
body:not(.auth-shell) .module-section-title {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

/* 10) Mobile: păstrăm tab-urile scrollabile și emblemele proporționate */
@media (max-width: 767.98px) {
    body:not(.auth-shell) .medical-tabs {
        display: flex !important;
        overflow-x: auto !important;
    }

    body:not(.auth-shell) .medical-tab {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 112px !important;
    }

    body:not(.auth-shell) .module-grid .module-emblem {
        flex-basis: 62px !important;
        width: 62px !important;
        height: 62px !important;
    }

    body:not(.auth-shell) .module-grid .module-emblem svg {
        width: 35px !important;
        height: 35px !important;
    }

    body:not(.auth-shell) .module-grid .module-radiologie .module-emblem,
    body:not(.auth-shell) .module-grid .module-oftalmo .module-emblem {
        flex-basis: 68px !important;
        width: 68px !important;
        height: 68px !important;
    }

    body:not(.auth-shell) .module-grid .module-radiologie .module-emblem svg,
    body:not(.auth-shell) .module-grid .module-oftalmo .module-emblem svg {
        width: 40px !important;
        height: 40px !important;
    }
}

/* =========================================================
   ADMIN ENTERPRISE — COMFORT SPACING V3
   Mai multă respirație vizuală pentru carduri și acțiuni
   ========================================================= */

body:not(.auth-shell) .medical-tabs-shell + .module-grid {
    padding: 18px !important;
    margin-bottom: 20px !important;
    border-radius: 22px !important;
}

body:not(.auth-shell) .module-grid .module-card.is-active {
    padding: 20px !important;
    border-radius: 20px !important;
}

body:not(.auth-shell) .module-grid .module-head {
    gap: 16px !important;
    margin-bottom: 14px !important;
}

body:not(.auth-shell) .module-grid .module-copy {
    padding-top: 2px !important;
}

body:not(.auth-shell) .module-grid .module-kicker {
    margin-bottom: 8px !important;
}

body:not(.auth-shell) .module-grid .module-title {
    margin-bottom: 8px !important;
    line-height: 1.15 !important;
}

body:not(.auth-shell) .module-grid .module-description {
    line-height: 1.45 !important;
    margin-bottom: 2px !important;
}

body:not(.auth-shell) .module-grid .module-actions {
    padding-top: 14px !important;
    gap: 10px !important;
}

body:not(.auth-shell) .module-grid .module-actions .module-action {
    min-height: 42px !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    letter-spacing: .01em !important;
}

body:not(.auth-shell) .module-grid .module-actions .module-primary {
    box-shadow: 0 8px 18px color-mix(in srgb, var(--module-accent) 18%, transparent) !important;
}

body:not(.auth-shell) .module-grid .module-actions .module-outline {
    background: rgba(255,255,255,.96) !important;
}

body:not(.auth-shell) .module-grid .module-note {
    margin-top: 12px !important;
    font-size: 11.5px !important;
}

/* puțin mai mult aer între rândurile de acțiuni */
body:not(.auth-shell) .module-grid .module-actions > * {
    margin: 0 !important;
}

/* zona tabs un pic mai pronunțată */
body:not(.auth-shell) .medical-tabs-shell {
    border-radius: 20px 20px 18px 18px !important;
}

body:not(.auth-shell) .medical-tab {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
}

/* statistici și spații dintre blocuri */
body:not(.auth-shell) .stat-box {
    min-height: 88px !important;
    padding: 14px !important;
}

body:not(.auth-shell) .module-section-title {
    margin-bottom: 12px !important;
}

/* mobile */
@media (max-width: 767.98px) {
    body:not(.auth-shell) .medical-tabs-shell + .module-grid {
        padding: 14px !important;
    }

    body:not(.auth-shell) .module-grid .module-card.is-active {
        padding: 16px !important;
    }

    body:not(.auth-shell) .module-grid .module-actions {
        gap: 8px !important;
    }

    body:not(.auth-shell) .module-grid .module-actions .module-action {
        min-height: 40px !important;
        padding: 9px 14px !important;
    }
}