:root {
    --primary: #4c6e71;
    --primary-dark: #3b595c;
    --primary-medium: #6c9094;

    --blue: #9ac6cf;
    --blue-light: #aad9e3;
    --blue-soft: #eaf5f7;

    --mint: #c6dbd2;
    --mint-soft: #edf5f1;

    --pink: #feccbf;
    --pink-soft: #fff2ee;
    --pink-dark: #b46e63;

    --ink: #243a3d;
    --muted: #708184;

    --background: #f5f9f8;
    --background-alt: #f9fbfa;

    --line: #dbe7e5;
    --line-strong: #c8d9d6;

    --white: #ffffff;

    --red: #a64b4b;
    --red-soft: #fff0f0;

    --shadow:
        0 14px 42px rgba(76, 110, 113, 0.09);

    --shadow-soft:
        0 6px 24px rgba(76, 110, 113, 0.055);
}


* {
    box-sizing: border-box;
}


html {
    background: var(--background);
}


body {
    margin: 0;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--ink);

    background:
        linear-gradient(
            145deg,
            #f8fbfa 0%,
            #f3f8f7 100%
        );
}


a {
    color: var(--primary);
    text-decoration: none;
}


a:hover {
    color: var(--primary-dark);
}


button {
    font: inherit;
}


input,
select,
textarea {

    width: 100%;

    padding: 11px 12px;

    border:
        1px solid
        var(--line-strong);

    border-radius: 11px;

    background: var(--white);

    font: inherit;

    color: var(--ink);

    outline: none;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


input:focus,
select:focus,
textarea:focus {

    border-color: var(--primary-medium);

    box-shadow:
        0 0 0 3px
        rgba(154, 198, 207, .26);
}


.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-height: 40px;

    border:
        1px solid
        var(--line-strong);

    background: var(--white);

    color: var(--ink);

    padding: 10px 15px;

    border-radius: 11px;

    cursor: pointer;

    font-weight: 700;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}


.btn:hover {

    background: var(--blue-soft);

    border-color: var(--blue);

    color: var(--primary-dark);
}


.btn:active {
    transform: translateY(1px);
}


.btn.primary {

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-medium)
        );

    border-color: var(--primary);

    color: var(--white);

    box-shadow:
        0 8px 18px
        rgba(76, 110, 113, .18);
}


.btn.primary:hover {

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    border-color: var(--primary-dark);

    color: var(--white);
}


.btn.danger {

    color: var(--red);

    border-color: #e6bbbb;

    background: var(--white);
}


.btn.small {

    min-height: auto;

    padding: 7px 10px;

    font-size: 13px;
}


/* =====================================================
   MARCA
===================================================== */


.brand-mark {

    width: 52px;

    height: 52px;

    border-radius: 18px;

    display: grid;

    place-items: center;

    color: var(--white);

    font-size: 24px;

    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--blue)
        );
}


.brand-logo {

    display: block;

    width: 168px;

    max-width: 100%;

    height: 92px;

    object-fit: contain;

    object-position: left center;
}


.brand-system {

    display: grid;

    gap: 2px;

    margin-top: 4px;
}


.brand-system strong {

    color: var(--primary-dark);

    font-size: 14px;

    letter-spacing: .01em;
}


.brand-system span {

    color: var(--muted);

    font-size: 11px;
}


.auth-brand,
.daily-brand {

    display: flex;

    justify-content: center;

    margin-bottom: 10px;
}


.auth-logo {

    width: 225px;

    max-width: 78%;

    max-height: 150px;

    object-fit: contain;
}


.daily-logo {

    width: 190px;

    max-width: 70%;

    max-height: 125px;

    object-fit: contain;
}


/* =====================================================
   LOGIN / PRIMEIRO ACESSO
===================================================== */


.auth-body,
.daily-body {

    min-height: 100vh;

    display: grid;

    place-items: center;

    padding: 24px;

    background:

        radial-gradient(
            circle at 16% 20%,
            rgba(154, 198, 207, .25),
            transparent 32%
        ),

        radial-gradient(
            circle at 84% 78%,
            rgba(254, 204, 191, .23),
            transparent 31%
        ),

        linear-gradient(
            145deg,
            #f5faf9,
            #fbfaf9
        );
}


.auth-card,
.daily-card {

    width:
        min(
            440px,
            100%
        );

    background:
        rgba(
            255,
            255,
            255,
            .96
        );

    border:
        1px solid
        var(--line);

    border-radius: 26px;

    padding: 36px;

    box-shadow: var(--shadow);

    backdrop-filter: blur(8px);
}


.auth-card.wide {

    width:
        min(
            620px,
            100%
        );
}


.auth-heading {

    text-align: center;

    margin-bottom: 8px;
}


.auth-card h1,
.daily-card h1 {

    color: var(--primary-dark);

    margin-top: 6px;

    margin-bottom: 5px;
}


.auth-card form {

    display: grid;

    gap: 14px;

    margin-top: 24px;
}


.auth-card label,
.form-card label {

    display: grid;

    gap: 7px;

    font-weight: 700;

    font-size: 14px;
}


.muted {

    color: var(--muted);
}


.tiny {

    margin-top: 22px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.5;

    text-align: center;
}


.error {

    color: var(--red);

    font-weight: 600;
}


.alert {

    padding: 12px 14px;

    border-radius: 11px;

    margin: 12px 0;

    color: var(--primary-dark);

    background: var(--mint-soft);

    border:
        1px solid
        var(--mint);
}


.alert.error {

    background: var(--red-soft);

    border-color: #f0caca;

    color: #8d2c2c;
}


/* =====================================================
   MENSAGEM DO DIA
===================================================== */


.daily-card {

    width:
        min(
            720px,
            100%
        );

    padding: 46px;
}


.daily-card h1 {

    margin-top: 8px;
}


.eyebrow {

    display: block;

    color: var(--primary);

    font-size: 12px;

    font-weight: 900;

    letter-spacing: .13em;
}


.verse {

    position: relative;

    overflow: hidden;

    padding: 24px;

    border-radius: 19px;

    margin: 28px 0 18px;

    background:
        linear-gradient(
            135deg,
            var(--mint-soft),
            var(--blue-soft)
        );

    border:
        1px solid
        rgba(154, 198, 207, .45);
}


.verse::before {

    content: "";

    position: absolute;

    width: 100px;

    height: 100px;

    right: -28px;

    top: -40px;

    border-radius: 50%;

    background:
        rgba(
            254,
            204,
            191,
            .35
        );
}


.verse strong {

    position: relative;

    color: var(--primary-dark);

    font-size: 18px;
}


.verse p {

    position: relative;

    margin-bottom: 0;

    font-size: 18px;

    line-height: 1.55;
}


.motivation {

    padding-left: 18px;

    border-left:
        4px solid
        var(--pink);

    font-size: 22px;

    line-height: 1.45;

    font-weight: 700;

    margin: 24px 0 32px;

    color: var(--primary-dark);
}


/* =====================================================
   ESTRUTURA PRINCIPAL
===================================================== */


.shell {

    display: grid;

    grid-template-columns:
        250px
        minmax(0, 1fr);

    min-height: 100vh;
}


.sidebar {

    position: sticky;

    top: 0;

    height: 100vh;

    display: flex;

    flex-direction: column;

    padding: 22px 18px;

    border-right:
        1px solid
        var(--line);

    background:
        rgba(
            255,
            255,
            255,
            .97
        );

    box-shadow:
        8px 0 35px
        rgba(76, 110, 113, .025);
}


.brand {

    padding:
        2px
        8px
        20px;

    margin-bottom: 8px;

    border-bottom:
        1px solid
        var(--line);
}


.sidebar nav {

    display: grid;

    gap: 4px;

    padding-top: 5px;
}


.sidebar nav a {

    position: relative;

    padding: 10px 12px;

    border-radius: 11px;

    color: #40575a;

    font-weight: 700;

    transition:
        background .18s ease,
        color .18s ease;
}


.sidebar nav a:hover {

    background: var(--blue-soft);

    color: var(--primary-dark);
}


.sidebar nav a.active {

    color: var(--primary-dark);

    background:
        linear-gradient(
            90deg,
            var(--mint-soft),
            var(--blue-soft)
        );
}


.sidebar nav a.active::before {

    content: "";

    position: absolute;

    left: 0;

    top: 8px;

    bottom: 8px;

    width: 3px;

    border-radius: 5px;

    background: var(--primary);
}


.badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 20px;

    margin-left: 4px;

    padding: 2px 7px;

    border-radius: 999px;

    color: var(--white);

    background: var(--pink-dark);

    font-size: 11px;
}


.sidebar-user {

    margin-top: auto;

    padding:
        18px
        8px
        0;

    border-top:
        1px solid
        var(--line);
}


.sidebar-user strong {

    color: var(--primary-dark);
}


.sidebar-user small {

    display: block;

    color: var(--muted);

    margin-top: 3px;
}


.logout-link {

    display: inline-block;

    margin-top: 11px;

    font-size: 13px;

    font-weight: 700;

    color: var(--primary-medium);
}


.content {

    width: 100%;

    max-width: 1500px;

    margin: 0 auto;

    padding: 30px;
}


.topbar {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}


.topbar h1 {

    margin: 4px 0 0;

    color: var(--primary-dark);

    font-size: 28px;

    letter-spacing: -.02em;
}


.clinic-label {

    color: var(--primary-medium);

    font-size: 14px;

    font-weight: 600;
}


/* =====================================================
   CARDS
===================================================== */


.card {

    margin-bottom: 18px;

    padding: 20px;

    border:
        1px solid
        var(--line);

    border-radius: 17px;

    background: var(--white);

    box-shadow: var(--shadow-soft);
}


.card h2,
.card h3 {

    color: var(--primary-dark);

    margin-top: 0;
}


.card-head {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 16px;
}


.grid {

    display: grid;

    gap: 14px;
}


.rooms-grid {

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    margin-bottom: 20px;
}


.room-card {

    position: relative;

    overflow: hidden;

    margin: 0;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}


.room-card::before {

    content: "";

    position: absolute;

    left: 0;

    top: 0;

    right: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--mint)
        );
}


.room-card:hover {

    transform: translateY(-1px);

    border-color:
        rgba(
            154,
            198,
            207,
            .8
        );

    box-shadow: var(--shadow);
}


.room-body {

    display: grid;

    gap: 4px;

    margin-top: 20px;
}


.status {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 900;
}


.status.free {

    color: #345f55;

    background: var(--mint-soft);

    border:
        1px solid
        var(--mint);
}


.status.busy {

    color: #8c5147;

    background: var(--pink-soft);

    border:
        1px solid
        var(--pink);
}


/* =====================================================
   INDICADORES
===================================================== */


.stats {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-bottom: 18px;
}


.stat {

    position: relative;

    overflow: hidden;

    padding: 18px;

    border:
        1px solid
        var(--line);

    border-radius: 16px;

    background: var(--white);

    box-shadow: var(--shadow-soft);
}


.stat::before {

    content: "";

    position: absolute;

    left: 0;

    top: 0;

    width: 100%;

    height: 3px;

    background: var(--blue);
}


.stat:nth-child(2)::before {
    background: var(--mint);
}


.stat:nth-child(3)::before {
    background: var(--pink);
}


.stat:nth-child(4)::before {
    background: var(--primary-medium);
}


.stat span {

    display: block;

    margin-bottom: 7px;

    color: var(--muted);

    font-size: 13px;
}


.stat b {

    color: var(--primary-dark);

    font-size: 20px;
}


/* =====================================================
   TABELAS
===================================================== */


.table-wrap {

    overflow: auto;
}


table {

    width: 100%;

    border-collapse: collapse;
}


th,
td {

    padding: 12px 10px;

    border-bottom:
        1px solid
        #edf2f1;

    text-align: left;

    white-space: nowrap;
}


th {

    color: var(--muted);

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: .04em;
}


tbody tr {

    transition:
        background .15s ease;
}


tbody tr:hover {

    background:
        rgba(
            234,
            245,
            247,
            .58
        );
}


.pill {

    display: inline-flex;

    padding: 5px 8px;

    border-radius: 999px;

    color: var(--primary-dark);

    background: var(--blue-soft);

    font-size: 12px;
}


/* =====================================================
   FORMULARIOS
===================================================== */


.form-card {

    max-width: 900px;
}


.form-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 16px;

    margin-bottom: 20px;
}


.form-grid label:has(textarea) {

    grid-column:
        1 / -1;
}


.check-label {

    align-content: end;
}


.check-label input {

    width: auto;
}


.actions {

    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}


.actions form {

    margin: 0;
}


.search {

    display: flex;

    gap: 10px;

    max-width: 650px;

    margin-bottom: 18px;
}


.search input {

    background: var(--white);
}


.two-col {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 18px;
}


/* =====================================================
   NOTIFICACOES
===================================================== */


.notification {

    padding: 14px 0;

    border-bottom:
        1px solid
        var(--line);
}


.notification.unread {

    padding-left: 12px;

    border-left:
        4px solid
        var(--pink-dark);
}


.notification p {

    margin: 6px 0;
}


.notification small {

    margin-right: 12px;

    color: var(--muted);
}


/* =====================================================
   DOCUMENTOS / IMPRESSAO
===================================================== */


.print-page {

    max-width: 900px;

    margin: 0 auto;

    padding: 40px;

    background: var(--white);
}


.document-header {

    display: grid;

    grid-template-columns:
        auto
        1fr
        auto;

    gap: 18px;

    align-items: center;

    padding-bottom: 18px;

    margin-bottom: 36px;

    border-bottom:
        2px solid
        var(--primary);
}


.document-header img {

    max-width: 120px;

    max-height: 85px;

    object-fit: contain;
}


.document-header h1 {

    margin: 0;

    color: var(--primary-dark);
}


.document-header p {

    margin: 4px 0;

    color: var(--muted);
}


.document-content {

    min-height: 420px;

    font-size: 17px;

    line-height: 1.7;
}


.print-page footer {

    padding-top: 16px;

    border-top:
        1px solid
        var(--line);

    color: var(--muted);

    font-size: 12px;
}


/* =====================================================
   RESPONSIVO
===================================================== */


@media (max-width: 980px) {

    .shell {

        grid-template-columns: 1fr;
    }


    .sidebar {

        position: relative;

        height: auto;
    }


    .brand-logo {

        width: 150px;

        height: 80px;
    }


    .sidebar nav {

        grid-template-columns:
            repeat(
                3,
                1fr
            );
    }


    .sidebar-user {

        margin-top: 20px;
    }


    .rooms-grid,
    .stats {

        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }

}


@media (max-width: 640px) {

    .content {

        padding: 18px;
    }


    .sidebar {

        padding: 16px;
    }


    .brand {

        display: flex;

        align-items: center;

        gap: 12px;
    }


    .brand-logo {

        width: 110px;

        height: 64px;
    }


    .brand-system {

        margin-top: 0;
    }


    .sidebar nav {

        grid-template-columns:
            1fr
            1fr;
    }


    .rooms-grid,
    .stats,
    .two-col,
    .form-grid {

        grid-template-columns: 1fr;
    }


    .topbar {

        align-items: flex-start;

        flex-direction: column;
    }


    .daily-card {

        padding: 30px;
    }


    .auth-card {

        padding: 28px 24px;
    }


    .search {

        flex-direction: column;
    }

}


@media print {

    .no-print {

        display: none !important;
    }


    .print-page {

        padding: 0;
    }


    .document-content {

        min-height: 500px;
    }

}


/* =====================================================
   CLINICAL DOCUMENTS V1
===================================================== */

.document-library-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 18px;
    margin-bottom: 18px;
}

.document-template-card {
    display: grid;
    grid-template-columns:
        58px
        minmax(0, 1fr);
    gap: 18px;
    min-height: 260px;
}

.document-template-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    border-radius: 17px;

    color: var(--primary-dark);
    background:
        linear-gradient(
            135deg,
            var(--blue-soft),
            var(--pink-soft)
        );

    border:
        1px solid
        var(--line);

    font-weight: 900;
}

.document-template-content h2 {
    margin:
        6px
        0
        8px;
}

.document-template-content p {
    line-height: 1.55;
}

.document-template-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin:
        16px
        0;
}

.document-template-meta span {
    padding:
        5px
        8px;

    border-radius: 999px;

    color: var(--primary-dark);
    background: var(--mint-soft);

    font-size: 11px;
    font-weight: 700;
}

.document-disabled {
    opacity: .45;
    cursor: not-allowed;
}

.document-hint {
    text-align: left;
    margin-bottom: 0;
}

.document-auto-data {
    display: grid;
    gap: 5px;
}

.document-auto-data strong {
    margin-top: 5px;

    color: var(--primary-dark);

    font-size: 18px;
}

.clinical-document-form-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 16px;

    margin-bottom: 22px;
}

.clinical-document-form-grid label {
    display: grid;
    gap: 7px;

    font-size: 14px;
    font-weight: 700;
}

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


/* =====================================================
   DOCUMENTO A4
===================================================== */

.clinical-document-screen {
    min-height: 100vh;

    padding:
        28px
        20px
        50px;

    background: #eef3f3;
}

.document-toolbar {
    width: min(
        210mm,
        calc(100vw - 40px)
    );

    margin:
        0
        auto
        18px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 18px;

    padding: 14px 16px;

    border-radius: 14px;

    background: #fff;

    border:
        1px solid
        var(--line);

    box-shadow:
        0 8px 28px
        rgba(45, 73, 76, .08);
}

.document-toolbar > div:first-child {
    display: grid;
    gap: 3px;
}

.document-toolbar span {
    color: var(--muted);
    font-size: 12px;
}

.clinical-document-page {
    width: 210mm;
    min-height: 297mm;

    margin:
        0
        auto;

    padding:
        14mm
        13mm
        10mm;

    position: relative;

    display: flex;

    flex-direction: column;

    color: #17303c;
    background: #fff;

    box-shadow:
        0 18px 55px
        rgba(25, 53, 63, .15);

    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.clinical-document-header {
    padding-bottom: 6mm;

    border-bottom:
        1.4px solid
        #17829a;
}

.clinical-document-header-grid {
    display: grid;

    grid-template-columns:
        .82fr
        1.25fr
        1.1fr;

    align-items: center;

    gap: 8mm;
}

.clinical-document-header-grid.no-professional-logo {
    grid-template-columns:
        1.18fr
        1fr;
}

.clinical-professional-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 25mm;
}

.clinical-professional-logo img {
    width: 100%;
    max-width: 42mm;
    max-height: 25mm;

    object-fit: contain;
}

.clinical-professional-data {
    min-height: 25mm;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 2.2mm;
}

.clinical-document-header-grid:not(
    .no-professional-logo
)
.clinical-professional-data {
    padding-left: 8mm;

    border-left:
        1px solid
        #17829a;
}

.clinical-professional-name {
    font-size: 12.5pt;
}

.clinical-professional-specialty {
    font-size: 10.5pt;
}

.clinical-professional-registration {
    font-size: 9.5pt;
}

.clinical-clinic-data {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 1.7mm;

    font-size: 8.7pt;

    line-height: 1.35;
}

.clinical-clinic-logo {
    width: 25mm;
    height: 18mm;

    object-fit: contain;

    margin-bottom: 1mm;
}

.clinical-clinic-name {
    color: var(--primary-dark);

    font-size: 14pt;
}

.clinical-patient-row {
    display: flex;

    gap: 6mm;

    align-items: baseline;

    margin-top: 9mm;

    padding-bottom: 3mm;

    font-size: 11.5pt;
}

.clinical-patient-row strong {
    font-size: 10pt;
}

.clinical-document-title {
    margin-top: 18mm;

    text-align: center;
}

.clinical-document-title h1 {
    margin: 0;

    color: #183442;

    font-size: 20pt;

    letter-spacing: -.02em;
}

.clinical-title-accent {
    width: 46mm;
    height: 1.2mm;

    margin:
        2.5mm
        auto
        0;

    border-radius: 3mm;

    background:
        linear-gradient(
            90deg,
            #ff7075 0 28%,
            #f5a9a2 28% 100%
        );
}

.clinical-document-body {
    min-height: 104mm;

    margin-top: 18mm;

    font-size: 12.2pt;

    line-height: 1.78;

    text-align: left;
}

.clinical-document-text {
    white-space: normal;
}

.clinical-document-highlight {
    margin-top: 14mm;

    color: #17303c;

    font-size: 13.2pt;

    line-height: 1.5;

    font-weight: 800;
}

.clinical-signature-area {
    display: grid;

    grid-template-columns:
        1fr
        .9fr;

    gap: 12mm;

    align-items: end;

    margin-top: auto;
}

.clinical-signature {
    text-align: center;

    font-size: 8.5pt;
}

.clinical-signature-line {
    height: 1px;

    margin-bottom: 2.5mm;

    background: #17829a;
}

.clinical-document-bottom {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 10mm;

    align-items: end;

    margin-top: 16mm;

    font-size: 9pt;
}

.clinical-professional-bottom {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 1mm;

    text-align: right;
}

.clinical-professional-bottom strong {
    font-size: 10.5pt;
}

.clinical-document-footer {
    margin-top: 11mm;
}

.clinical-footer-rule {
    height: 1.2px;

    background: #17829a;
}

.clinical-footer-content {
    position: relative;

    min-height: 12mm;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    gap: 8mm;

    align-items: center;

    padding-top: 4mm;

    color: #304b56;

    font-size: 8.5pt;
}

.clinical-footer-colors {
    display: flex;
    gap: 2mm;
}

.clinical-footer-colors i {
    display: block;

    width: 10mm;
    height: 2mm;

    border-radius: 3mm;

    background: #ff6d76;
}

.clinical-footer-colors i:last-child {
    width: 19mm;

    background: #17829a;
}

.clinical-footer-content > span {
    text-align: center;
}

.clinical-footer-content small {
    text-align: right;

    color: #7c8b91;

    font-size: 7pt;
}


@page {
    size: A4;
    margin: 0;
}


@media print {

    html,
    body.clinical-document-screen {
        width: 210mm;
        min-height: 297mm;

        margin: 0;
        padding: 0;

        background: #fff;
    }

    .clinical-document-page {
        width: 210mm;
        min-height: 297mm;

        margin: 0;

        box-shadow: none;
    }

}


@media (max-width: 900px) {

    .document-library-grid {
        grid-template-columns: 1fr;
    }

    .document-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .clinical-document-page {
        transform-origin: top left;
    }

}


@media (max-width: 640px) {

    .clinical-document-form-grid {
        grid-template-columns: 1fr;
    }

    .document-template-card {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   DOCUMENT LIBRARY - COMPLETA
===================================================== */

.document-library-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 16px;

    margin-bottom: 18px;
}


.document-library-grid .document-template-card {
    height: 100%;
}


.document-regulatory-note,
.document-regulatory-warning {

    margin-top: 14px;

    padding: 12px 14px;

    border:
        1px solid
        #f0d7a0;

    border-radius: 11px;

    color: #735b22;

    background: #fff9e9;

    font-size: 12px;

    line-height: 1.5;
}


.document-regulatory-warning {
    max-width: 900px;
}


.document-regulatory-warning strong {
    display: block;

    margin-bottom: 4px;

    color: #694e12;
}


.document-regulatory-warning p {
    margin: 0;
}


.document-patient-warning p {
    margin-bottom: 0;
}


@media (max-width: 1180px) {

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

}


@media (max-width: 700px) {

    .document-library-grid {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   SPECIAL PRESCRIPTION BUYER FORM V2
===================================================== */

.special-prescription-form {
    margin:
        8px
        0
        24px;

    padding: 20px;

    border:
        1px solid
        var(--line);

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #fbfdfc,
            #f6faf9
        );
}


.special-prescription-form-head h3 {
    margin:
        5px
        0;
}


.special-prescription-form-head p {
    margin:
        0
        0
        18px;
}


.special-buyer-form-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 15px;
}


.special-buyer-form-grid label {
    display: grid;

    gap: 7px;

    font-size: 14px;

    font-weight: 700;
}


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


@media (max-width: 640px) {

    .special-buyer-form-grid {
        grid-template-columns: 1fr;
    }

    .special-buyer-full {
        grid-column: auto;
    }

}


/* ==========================================================
   RECEITA ESPECIAL ESTRUTURADA V2
========================================================== */

.prescription-intro-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 18px;
}


.prescription-intro-card h2 {
    margin:
        4px
        0
        8px;
}


.prescription-security-note {
    display: grid;
    gap: 4px;
    min-width: 270px;
    padding: 15px 17px;
    border-radius: 14px;
    background: #f5f9f8;
    border: 1px solid var(--line);
}


.prescription-security-note span {
    font-size: 13px;
}


.prescription-error-card {
    border-left:
        4px solid
        #b42318;
}


.prescription-error-card ul {
    margin-bottom: 0;
}


.prescription-form-card {
    max-width: 1100px;
}


.prescription-section-heading {
    margin-bottom: 17px;
}


.prescription-section-heading h3 {
    margin:
        5px
        0;
}


.prescription-section-heading p {
    margin-bottom: 0;
}


.special-prescription-top-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );
    gap: 16px;
}


.special-prescription-top-grid label,
.medication-grid label,
.buyer-grid label,
.prescription-full-field {
    display: grid;
    gap: 7px;
    font-weight: 700;
    font-size: 14px;
}


.prescription-divider {
    height: 1px;
    background: var(--line);
    margin:
        26px
        0;
}


.medication-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}


#medication-list {
    display: grid;
    gap: 15px;
}


.medication-card {
    border:
        1px solid
        var(--line);
    border-radius: 16px;
    padding: 18px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fbfa
        );
}


.medication-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}


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


.medication-name-field {
    grid-column:
        span 2;
}


.medication-instructions-field {
    grid-column:
        span 2;
}


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


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


.prescription-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}


@media (
    max-width: 900px
) {

    .prescription-intro-card {
        display: grid;
    }

    .prescription-security-note {
        min-width: 0;
    }

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

    .medication-name-field,
    .medication-instructions-field {
        grid-column:
            1 / -1;
    }

}


@media (
    max-width: 640px
) {

    .special-prescription-top-grid,
    .medication-grid,
    .buyer-grid {
        grid-template-columns:
            1fr;
    }

    .buyer-full,
    .medication-name-field,
    .medication-instructions-field {
        grid-column:
            auto;
    }

    .medication-heading {
        display: grid;
    }

    .medication-heading .btn {
        width: 100%;
    }

}


/* ==========================================================
   RECEITAS ESTRUTURADAS V3
========================================================== */

.prescription-v3-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 18px;
}


.prescription-v3-intro h2 {
    margin:
        4px
        0
        7px;
}


.prescription-v3-intro p {
    margin-bottom: 0;
}


.prescription-v3-professional {
    display: grid;
    gap: 4px;
    min-width: 260px;
    padding: 15px 17px;
    border:
        1px solid
        var(--line);
    border-radius: 14px;
    background: #f6faf9;
}


.prescription-v3-professional span {
    font-size: 13px;
}


.prescription-v3-warning {
    margin-bottom: 18px;
    border-left:
        4px solid
        #d49b36;
    background: #fffaf0;
}


.prescription-v3-warning p {
    margin:
        7px
        0
        13px;
}


.prescription-v3-errors {
    margin-bottom: 18px;
    border-left:
        4px solid
        #b42318;
}


.prescription-v3-form-card {
    max-width: 1180px;
}


.prescription-v3-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}


.prescription-v3-section-head h3 {
    margin:
        0
        0
        4px;
}


.prescription-v3-section-head p {
    margin: 0;
}


.prescription-v3-section-copy {
    flex: 1;
}


.prescription-v3-medication-head {
    align-items: center;
}


.prescription-v3-top-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );
    gap: 16px;
}


.prescription-v3-top-grid label,
.prescription-v3-medication-grid label,
.prescription-v3-buyer-grid label,
.prescription-v3-full {
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
}


.prescription-v3-divider {
    height: 1px;
    margin:
        28px
        0;
    background: var(--line);
}


#medication-list {
    display: grid;
    gap: 18px;
}


.prescription-v3-medication-card {
    padding: 19px;
    border:
        1px solid
        #d9e5e2;
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7faf9
        );
}


.prescription-v3-medication-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 17px;
}


.prescription-v3-medication-card-head strong {
    color: #4c6e71;
    font-size: 12px;
    letter-spacing: .08em;
}


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


.field-medication-name {
    grid-column:
        span 2;
}


.field-medication-note {
    grid-column:
        span 2;
}


.prescription-v3-example {
    display: grid;
    gap: 3px;
    margin-top: 15px;
    padding:
        11px
        13px;
    border-radius: 10px;
    background: #eef6f4;
}


.prescription-v3-example span {
    color: #6c7e80;
    font-size: 11px;
}


.prescription-v3-example strong {
    font-size: 12px;
}


.prescription-v3-example small {
    color: #53696b;
}


.prescription-v3-buyer-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );
    gap: 15px;
}


.prescription-v3-buyer-grid .buyer-full {
    grid-column:
        1 / -1;
}


.prescription-v3-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}


/* Atalhos em Documentos */

.prescription-quick-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}


.prescription-quick-actions-copy h3 {
    margin:
        3px
        0
        4px;
}


.prescription-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


@media (
    max-width: 900px
) {

    .prescription-v3-intro,
    .prescription-quick-actions {
        display: grid;
    }


    .prescription-v3-professional {
        min-width: 0;
    }


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


    .field-medication-name,
    .field-medication-note {
        grid-column:
            1 / -1;
    }

}


@media (
    max-width: 640px
) {

    .prescription-v3-top-grid,
    .prescription-v3-medication-grid,
    .prescription-v3-buyer-grid {
        grid-template-columns:
            1fr;
    }


    .field-medication-name,
    .field-medication-note,
    .prescription-v3-buyer-grid .buyer-full {
        grid-column:
            auto;
    }


    .prescription-v3-medication-head {
        display: grid;
    }


    .prescription-v3-medication-head .btn {
        width: 100%;
    }

}


/* ==========================================================
   AUTOCOMPLETE MEDICAMENTOS ANVISA V3
========================================================== */

.medication-autocomplete {
    position: relative;
    width: 100%;
}


.medication-autocomplete > input {
    width: 100%;
}


.medication-autocomplete > input.medication-official-selected {
    border-color: #6f9b92;
    background:
        linear-gradient(
            0deg,
            rgba(
                198,
                219,
                210,
                .18
            ),
            rgba(
                198,
                219,
                210,
                .18
            )
        ),
        #ffffff;
}


.medication-autocomplete-menu {
    position: absolute;
    z-index: 1200;
    top:
        calc(
            100%
            + 6px
        );
    left: 0;
    right: 0;
    max-height: 390px;
    overflow-y: auto;
    border:
        1px solid
        #cfdedb;
    border-radius: 13px;
    background: #ffffff;
    box-shadow:
        0
        16px
        40px
        rgba(
            29,
            58,
            63,
            .16
        );
}


.medication-autocomplete-menu[hidden] {
    display: none;
}


.medication-autocomplete-option {
    display: grid;
    width: 100%;
    gap: 5px;
    padding:
        12px
        14px;
    border: 0;
    border-bottom:
        1px solid
        #edf2f1;
    background: #ffffff;
    color: #173340;
    text-align: left;
    cursor: pointer;
}


.medication-autocomplete-option:first-child {
    border-radius:
        12px
        12px
        0
        0;
}


.medication-autocomplete-option:last-child {
    border-bottom: 0;
    border-radius:
        0
        0
        12px
        12px;
}


.medication-autocomplete-option:hover,
.medication-autocomplete-option.is-active {
    background: #eef6f4;
}


.medication-autocomplete-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}


.medication-autocomplete-main strong {
    color: #173340;
    font-size: 13px;
    line-height: 1.35;
}


.medication-anvisa-badge {
    flex: 0 0 auto;
    padding:
        3px
        7px;
    border-radius: 999px;
    background: #e6f1ee;
    color: #4c6e71;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
}


.medication-autocomplete-ingredient {
    display: block;
    color: #627779;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
}


.medication-autocomplete-loading,
.medication-autocomplete-empty {
    display: grid;
    gap: 5px;
    padding:
        14px;
    color: #627779;
    font-size: 12px;
}


.medication-autocomplete-empty strong {
    color: #435d60;
}


.medication-autocomplete-empty span {
    line-height: 1.45;
}


.medication-catalog-help {
    display: block;
    margin:
        -2px
        0
        1px;
    font-weight: 500;
    line-height: 1.4;
}


@media (
    max-width: 640px
) {

    .medication-autocomplete-menu {
        max-height: 330px;
    }


    .medication-autocomplete-option {
        padding:
            11px
            12px;
    }

}


/* ==========================================================
   PACIENTES CENTRAL V1
========================================================== */

.patient-registry-intro,
.patient-database-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}


.patient-registry-intro h2,
.patient-database-summary h2 {
    margin:
        4px
        0
        6px;
}


.patient-registry-intro p,
.patient-database-summary p {
    margin: 0;
}


.patient-registry-form {
    max-width: 1100px;
}


.patient-section-title {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}


.patient-section-title h3 {
    margin:
        0
        0
        4px;
}


.patient-section-title p {
    margin: 0;
}


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


.patient-field {
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
}


.patient-field-wide {
    grid-column:
        1 / -1;
}


.patient-registry-divider {
    height: 1px;
    margin:
        28px
        0;
    background: var(--line);
}


.patient-professional-select {
    display: grid;
    gap: 7px;
    max-width: 620px;
    font-weight: 700;
}


.patient-professional-fixed {
    display: grid;
    gap: 5px;
    max-width: 620px;
    padding: 15px 17px;
    border:
        1px solid
        #d4e1de;
    border-radius: 13px;
    background: #f4f9f7;
}


.patient-professional-fixed > span {
    color: #6b7d7f;
    font-size: 12px;
    font-weight: 700;
}


.patient-professional-fixed > strong {
    color: #385e61;
    font-size: 15px;
}


.patient-professional-fixed > small {
    color: #6b7d7f;
}


.patient-registry-info {
    max-width: 760px;
    margin-top: 18px;
    padding:
        13px
        15px;
    border-left:
        4px solid
        #9ac6cf;
    border-radius:
        0
        10px
        10px
        0;
    background: #f5faf9;
}


.patient-registry-info p {
    margin:
        5px
        0
        0;
    color: #607476;
    font-size: 13px;
    line-height: 1.55;
}


.patient-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}


.patient-form-errors,
.error {
    color: #a23a3a;
}


.patient-database-summary {
    align-items: center;
}


.patient-total {
    display: grid;
    min-width: 145px;
    padding:
        14px
        18px;
    border:
        1px solid
        #d6e3e0;
    border-radius: 14px;
    background: #f5faf9;
    text-align: center;
}


.patient-total strong {
    color: #4c6e71;
    font-size: 28px;
    line-height: 1;
}


.patient-total span {
    margin-top: 5px;
    color: #6c7e80;
    font-size: 11px;
}


.patient-filter-card {
    margin-bottom: 18px;
}


.patient-filter-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );
    gap: 14px;
    align-items: end;
}


.patient-filter-grid label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}


.patient-filter-search {
    grid-column:
        span 2;
}


.patient-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}


.patient-central-table td {
    vertical-align: top;
}


.patient-central-table td small {
    display: block;
    margin-top: 4px;
    color: #778688;
    font-size: 11px;
}


.patient-name-link {
    color: #385e61;
    font-weight: 800;
}


.patient-professional-chip {
    display: inline-flex;
    margin:
        0
        4px
        4px
        0;
    padding:
        4px
        7px;
    border-radius: 999px;
    background: #edf5f3;
    color: #4c6e71;
    font-size: 10px;
    font-weight: 700;
}


.patient-never-seen {
    color: #8a7770;
    font-size: 12px;
}


.patient-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}


@media (
    max-width: 1000px
) {

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

}


@media (
    max-width: 680px
) {

    .patient-registry-intro,
    .patient-database-summary {
        display: grid;
    }


    .patient-total {
        min-width: 0;
    }


    .patient-fields-grid,
    .patient-filter-grid {
        grid-template-columns:
            1fr;
    }


    .patient-field-wide,
    .patient-filter-search {
        grid-column:
            auto;
    }

}


/* ==========================================================
   PACIENTE LOOKUP V2
========================================================== */

.patient-identity-grid {
    display: grid;
    grid-template-columns:
        2fr
        1fr
        1fr;
    gap: 14px;
}


.patient-identity-grid label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}


.patient-lookup-status {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    padding:
        13px
        15px;
    border-radius: 12px;
    border:
        1px solid
        transparent;
    font-size: 12px;
}


.patient-lookup-status[hidden] {
    display: none;
}


.patient-lookup-status strong {
    font-size: 13px;
}


.patient-lookup-status span {
    line-height: 1.5;
}


.patient-lookup-status.is-loading {
    border-color: #d7e5e2;
    background: #f5faf9;
    color: #5f7476;
}


.patient-lookup-status.is-success {
    border-color: #b8d6cd;
    background: #eef8f4;
    color: #3f6961;
}


.patient-lookup-status.is-info {
    border-color: #c8dde2;
    background: #f1f8fa;
    color: #4c6e71;
}


.patient-lookup-status.is-error {
    border-color: #ebc5c5;
    background: #fff5f5;
    color: #913e3e;
}


@media (
    max-width: 760px
) {

    .patient-identity-grid {
        grid-template-columns:
            1fr;
    }

}


/* ==========================================================
   PEDIATRIA V3
========================================================== */

.patient-identity-grid.pediatric {
    display: grid;
    grid-template-columns:
        2fr
        1fr
        1fr;
    gap: 14px;
}


.patient-identity-grid.pediatric label,
.patient-responsible-grid label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}


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


@media (
    max-width: 760px
) {

    .patient-identity-grid.pediatric,
    .patient-responsible-grid {
        grid-template-columns:
            1fr;
    }

}


/* ==========================================================
   PATIENT EDIT V4
========================================================== */

.patient-edit-warning {
    display: grid;
    gap: 5px;
    margin-top: 22px;
    padding:
        13px
        15px;
    border:
        1px solid
        #d9e5e2;
    border-radius: 12px;
    background: #f6faf9;
}


.patient-edit-warning strong {
    color: #4c6e71;
    font-size: 13px;
}


.patient-edit-warning span {
    color: #637779;
    font-size: 12px;
    line-height: 1.5;
}



/* ==========================================================
   SECRETARY_WORKSPACE_V1
   ========================================================== */

.secretary-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.secretary-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
}

.secretary-welcome h2,
.secretary-section-head h2,
.secretary-form-title h2,
.secretary-agenda-card h2 {
    margin: 4px 0 0;
}

.secretary-welcome p,
.secretary-form-title p {
    margin: 7px 0 0;
}

.secretary-eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: .12em;
    font-weight: 800;
    color: var(--muted);
}

.secretary-day-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.secretary-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 28px;
}

.secretary-stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.secretary-stat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.secretary-stat strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.secretary-section-head {
    margin: 8px 0 12px;
}

.secretary-room-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.secretary-room-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    min-height: 140px;
    box-shadow: var(--shadow);
}

.secretary-room-card.is-busy {
    border-color: #e6b8b8;
}

.secretary-room-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.secretary-room-top > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.secretary-room-top small {
    color: var(--muted);
}

.secretary-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.secretary-badge.free {
    background: #e9f4ed;
    color: #315f43;
}

.secretary-badge.busy {
    background: #f9e9e9;
    color: #8b3535;
}

.secretary-room-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 18px;
}

.secretary-agenda-card {
    margin-top: 8px;
}

.secretary-table-sub {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

.secretary-booking-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.secretary-form-section {
    padding: 22px;
}

.secretary-form-title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.secretary-step {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
}

.secretary-form-title p {
    color: var(--muted);
}

.secretary-patient-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    position: relative;
}

.secretary-patient-search label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 700;
}

.secretary-search-results {
    margin-top: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.secretary-patient-result {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font: inherit;
}

.secretary-patient-result:last-child {
    border-bottom: 0;
}

.secretary-patient-result:hover {
    background: #f5f8f6;
}

.secretary-patient-result span {
    color: var(--muted);
    font-size: 13px;
}

.secretary-search-empty {
    padding: 13px 14px;
    color: var(--muted);
}

.secretary-search-empty.error {
    color: var(--red);
}

.secretary-selected-patient {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #b9d8c4;
    background: #eef7f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.secretary-selected-patient > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.secretary-selected-patient small {
    color: #4f725d;
    font-weight: 700;
}

.secretary-selected-patient span {
    color: var(--muted);
    font-size: 13px;
}

.secretary-subtitle {
    margin: 25px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
    font-size: 14px;
}

.secretary-subtitle small {
    font-weight: 500;
    color: var(--muted);
}

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

.secretary-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    font-weight: 700;
}

.secretary-field > small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.secretary-field.span-2 {
    grid-column: span 2;
}

.secretary-field .errorlist,
.secretary-form-alert .errorlist {
    list-style: none;
    padding: 0;
    margin: 2px 0 0;
    color: var(--red);
    font-size: 12px;
    font-weight: 600;
}

.secretary-form-alert {
    border-radius: 12px;
    padding: 13px 15px;
}

.secretary-form-alert.error {
    border: 1px solid #e7baba;
    background: #fff0f0;
    color: #8b3030;
}

.secretary-address-help {
    margin: -2px 0 13px;
    padding: 10px 12px;
    background: #f5f8f6;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
}

.secretary-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.secretary-field-status {
    font-size: 11px;
    min-height: 16px;
    color: var(--muted);
}

.secretary-field-status.success {
    color: #37694a;
}

.secretary-field-status.error {
    color: var(--red);
}

.secretary-availability {
    margin-top: 20px;
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 16px;
    transition: .2s ease;
}

.secretary-availability.neutral {
    background: #f7f8f7;
}

.secretary-availability.checking {
    background: #f7f7ef;
    border-color: #d9d2a8;
}

.secretary-availability.available {
    background: #eef8f1;
    border-color: #acd1b9;
}

.secretary-availability.unavailable {
    background: #fff1f1;
    border-color: #e4b8b8;
}

.secretary-availability-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.secretary-availability p {
    margin: 10px 0 0;
}

.secretary-alternatives {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.secretary-alternatives > p {
    font-size: 12px;
    margin: 5px 0 10px;
}

.secretary-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
}

.secretary-chip {
    border: 1px solid #b9c9be;
    background: #fff;
    border-radius: 999px;
    padding: 7px 10px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
}

.secretary-chip:hover {
    border-color: var(--green);
}

.secretary-submit-bar {
    position: sticky;
    bottom: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 45px rgba(32,48,42,.16);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.secretary-submit-bar > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.secretary-submit-bar span {
    color: var(--muted);
    font-size: 12px;
}

.secretary-submit {
    min-width: 190px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {

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

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

@media (max-width: 760px) {

    .secretary-welcome {
        align-items: stretch;
        flex-direction: column;
    }

    .secretary-day-nav {
        justify-content: flex-start;
    }

    .secretary-stats,
    .secretary-room-grid,
    .secretary-form-grid {
        grid-template-columns: 1fr;
    }

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

    .secretary-patient-search {
        grid-template-columns: 1fr;
    }

    .secretary-patient-result {
        flex-direction: column;
        gap: 3px;
    }

    .secretary-selected-patient {
        align-items: flex-start;
        flex-direction: column;
    }

    .secretary-submit-bar {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .secretary-submit {
        width: 100%;
    }
}


/* SERVICE_EDITOR_V2 */

.service-editor {
    max-width: 980px;
}

.service-editor-intro {
    margin-bottom: 24px;
}

.service-editor-intro h2,
.service-config-head h2,
.service-new-panel-head h3 {
    margin-top: 0;
    margin-bottom: 6px;
}

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

.service-editor .field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.service-editor .field-group label {
    font-weight: 700;
}

.service-editor .field-group input,
.service-editor .field-group select,
.service-editor .field-group textarea {
    width: 100%;
}

.service-editor .field-help {
    font-size: 0.88rem;
    opacity: 0.76;
    line-height: 1.35;
}

.service-editor .field-error {
    font-size: 0.88rem;
    font-weight: 700;
}

.service-new-action {
    margin-top: 18px;
}

.service-new-panel {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.018);
}

.service-new-panel[hidden] {
    display: none !important;
}

.service-new-panel-head {
    margin-bottom: 18px;
}

.service-config-section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.10);
}

.service-config-head {
    margin-bottom: 20px;
}

.money-field {
    display: flex;
    align-items: stretch;
}

.money-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    font-weight: 700;
}

.money-field input {
    border-radius: 0 10px 10px 0 !important;
}

.duration-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.duration-field input {
    flex: 1;
}

.duration-field span {
    white-space: nowrap;
    font-size: 0.92rem;
    opacity: 0.8;
}

.service-active-row {
    margin-top: 20px;
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
}

.check-row input {
    width: auto !important;
}

.service-form-actions {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-alert.error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(150, 0, 0, 0.20);
}

@media (max-width: 760px) {

    .service-editor-grid {
        grid-template-columns: 1fr;
    }

    .service-form-actions {
        flex-direction: column-reverse;
    }

    .service-form-actions .btn {
        width: 100%;
        text-align: center;
    }

}



/* PROFESSIONAL_AVAILABILITY_UI_V1 */

.availability-card {
    max-width: 1120px;
}

.availability-summary {
    margin: 16px 0 22px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(76, 110, 113, 0.08);
}

.availability-header-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.availability-header-grid label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.availability-header-grid input {
    width: 100%;
}

.availability-week {
    display: grid;
    gap: 10px;
}

.availability-day {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.availability-day-name {
    font-weight: 800;
    padding-top: 9px;
}

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

.availability-period {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 7px;
    align-items: center;
}

.availability-period input {
    width: 100%;
}

.availability-period span {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 900px) {

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

    .availability-day {
        grid-template-columns: 1fr;
    }

    .availability-day-name {
        padding-top: 0;
    }

    .availability-periods {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   DOCUMENT_HEADER_STANDARD_V3_START
   SISTEMA ACOLHER
   Cabeçalho institucional compartilhado
   ========================================================== */

.acolher-document-header {
    box-sizing: border-box;
    display: grid;
    grid-template-columns:
        minmax(105px, 145px)
        minmax(0, 1fr)
        minmax(105px, 145px);
    align-items: center;
    width: 100%;
    gap: 20px;
    padding: 0;
    margin: 0;
    break-inside: avoid;
    page-break-inside: avoid;
}

.acolher-document-brand {
    box-sizing: border-box;
    min-width: 0;
    min-height: 82px;
    display: flex;
    align-items: center;
}

.acolher-document-brand-clinic {
    justify-content: flex-start;
}

.acolher-document-brand-professional {
    justify-content: flex-end;
}

.acolher-document-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.acolher-document-logo-clinic {
    max-width: 118px;
    max-height: 80px;
}

.acolher-document-logo-professional {
    max-width: 132px;
    max-height: 80px;
}

.acolher-document-identification {
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
}

.acolher-document-clinic-name {
    display: block;
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
}

.acolher-document-clinic-contact {
    display: block;
    margin-top: 3px;
    max-width: 100%;
    font-size: 10px;
    line-height: 1.3;
    opacity: .78;
}

.acolher-document-professional-data {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 8px;
    row-gap: 2px;
    margin-top: 7px;
    max-width: 100%;
    font-size: 10.5px;
    line-height: 1.3;
}

.acolher-document-professional-name {
    flex-basis: 100%;
    display: block;
    font-size: 12px;
    line-height: 1.25;
}

.acolher-document-professional-registry {
    font-weight: 700;
}

.acolher-document-clinic-fallback {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-size: 14px;
}

.acolher-document-clinic-fallback span {
    margin-top: 3px;
}

.acolher-document-header-line {
    width: 100%;
    height: 1px;
    margin: 13px 0 18px;
    background: #d6e3e3;
    break-inside: avoid;
    page-break-inside: avoid;
}


@media print {

    .acolher-document-header {
        grid-template-columns:
            115px
            minmax(0, 1fr)
            115px;
        gap: 14px;
    }

    .acolher-document-brand {
        min-height: 70px;
    }

    .acolher-document-logo-clinic {
        max-width: 100px;
        max-height: 68px;
    }

    .acolher-document-logo-professional {
        max-width: 110px;
        max-height: 68px;
    }

    .acolher-document-header-line {
        margin-top: 10px;
        margin-bottom: 15px;
    }

}


@media screen and (max-width: 700px) {

    .acolher-document-header {
        grid-template-columns:
            82px
            minmax(0, 1fr)
            82px;
        gap: 9px;
    }

    .acolher-document-brand {
        min-height: 58px;
    }

    .acolher-document-logo-clinic,
    .acolher-document-logo-professional {
        max-width: 76px;
        max-height: 56px;
    }

    .acolher-document-clinic-name {
        font-size: 14px;
    }

    .acolher-document-professional-name {
        font-size: 11px;
    }

    .acolher-document-clinic-contact,
    .acolher-document-professional-data {
        font-size: 9px;
    }

}

/* DOCUMENT_HEADER_STANDARD_V3_END */


/* ==========================================================
   DOCUMENT_FOOTER_STANDARD_V1_START
   SISTEMA ACOLHER
   Rodapé institucional compartilhado
   ========================================================== */

.acolher-document-footer {
    box-sizing: border-box;
    width: 100%;
    margin-top: 28px;
    padding-top: 0;
    color: #4c5f61;
    font-size: 9.5px;
    line-height: 1.35;
    break-inside: avoid;
    page-break-inside: avoid;
}

.acolher-document-footer-rule {
    width: 100%;
    height: 1px;
    margin-bottom: 8px;
    background: #d6e3e3;
}

.acolher-document-footer-main {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.acolher-document-footer-system,
.acolher-document-footer-professional {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 6px;
}

.acolher-document-footer-professional {
    justify-content: flex-end;
    text-align: right;
}

.acolher-document-footer-system strong,
.acolher-document-footer-professional strong {
    font-weight: 700;
}

.acolher-document-footer-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 2px;
}

.acolher-document-footer-dots i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.acolher-document-footer-dots i:first-child {
    background: #feccbf;
}

.acolher-document-footer-dots i:last-child {
    background: #9ac6cf;
}

.acolher-document-footer-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 5px;
    color: #718385;
    font-size: 8.8px;
}

.acolher-document-footer-integrity strong {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    letter-spacing: .15px;
}

.acolher-document-footer-preview {
    font-style: italic;
}


@media print {

    .acolher-document-footer {
        margin-top: 22px;
        font-size: 8.5px;
    }

    .acolher-document-footer-meta {
        font-size: 8px;
    }

}


@media screen and (max-width: 700px) {

    .acolher-document-footer-main {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .acolher-document-footer-professional {
        justify-content: flex-start;
        text-align: left;
    }

}

/* DOCUMENT_FOOTER_STANDARD_V1_END */


/* DOCUMENT_HEADER_STANDARD_V4_START */


/* ============================================================
   SISTEMA ACOLHER
   CABECALHO OFICIAL DOS DOCUMENTOS — V4

   COM LOGOMARCA:
   LOGO PROFISSIONAL | IDENTIFICACAO | CLINICA

   SEM LOGOMARCA:
   IDENTIFICACAO | CLINICA
============================================================ */


.acolher-document-header-v4 {

    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 30fr)
        minmax(0, 36fr)
        minmax(0, 34fr);

    align-items: center;

    column-gap: 3mm;

    padding:
        1mm
        0
        3.8mm;

    margin: 0;

    box-sizing: border-box;
}


/* ============================================================
   LOGOMARCA PROFISSIONAL
============================================================ */


.acolher-doc-v4-professional-brand {

    min-width: 0;

    min-height: 28mm;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}


.acolher-doc-v4-professional-logo {

    display: block;

    width: auto;

    height: auto;

    max-width: 43mm;

    max-height: 29mm;

    margin: 0 auto;

    object-fit: contain;
}


/* ============================================================
   IDENTIFICACAO PROFISSIONAL
============================================================ */


.acolher-doc-v4-professional-data {

    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    gap: 1mm;
}


.acolher-doc-v4-professional-name {

    display: block;

    margin: 0;

    color: #243c42;

    font-size: 13pt;

    line-height: 1.12;

    font-weight: 800;
}


.acolher-doc-v4-professional-specialty {

    display: block;

    margin: 0;

    color: #324b50;

    font-size: 9.5pt;

    line-height: 1.15;

    font-weight: 500;
}


.acolher-doc-v4-professional-registry {

    display: block;

    margin: 0;

    color: #243c42;

    font-size: 9.5pt;

    line-height: 1.15;

    font-weight: 800;
}


/* ============================================================
   CLINICA ACOLHER
============================================================ */


.acolher-doc-v4-clinic {

    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    gap: .55mm;
}


.acolher-doc-v4-clinic-logo-wrap {

    width: 100%;

    min-height: 20mm;

    display: flex;

    align-items: center;

    justify-content: center;
}


.acolher-doc-v4-clinic-logo {

    display: block;

    width: auto;

    height: auto;

    max-width: 29mm;

    max-height: 24mm;

    margin:
        0
        auto;

    object-fit: contain;
}


.acolher-doc-v4-clinic-name {

    display: block;

    margin:
        .5mm
        auto
        0;

    color: #243c42;

    font-size: 9pt;

    line-height: 1.12;

    font-weight: 800;

    text-align: center;
}


.acolher-doc-v4-clinic-address {

    display: block;

    width: 100%;

    max-width: 60mm;

    margin:
        .25mm
        auto
        0;

    color: #324b50;

    font-size: 7.6pt;

    line-height: 1.20;

    text-align: center;
}


.acolher-doc-v4-clinic-phone {

    display: block;

    width: 100%;

    max-width: 60mm;

    margin:
        .15mm
        auto
        0;

    color: #243c42;

    font-size: 7.6pt;

    line-height: 1.16;

    font-weight: 800;

    text-align: center;
}


/* ============================================================
   FALLBACK CLINICA
============================================================ */


.acolher-doc-v4-clinic-fallback {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: #4c6e71;

    text-align: center;
}


.acolher-doc-v4-clinic-fallback strong {

    font-size: 8pt;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.acolher-doc-v4-clinic-fallback span {

    margin-top: .6mm;

    font-size: 18pt;

    font-weight: 700;
}


/* ============================================================
   LINHA INSTITUCIONAL TRICOLOR
============================================================ */


.acolher-document-header-line-v4 {

    width: 100%;

    height: 1.6mm;

    margin:
        0
        0
        5mm;

    border: 0;

    background:
        linear-gradient(
            to right,

            #9ac6cf 0%,
            #9ac6cf 33.333%,

            #c6dbd2 33.333%,
            #c6dbd2 66.666%,

            #feccbf 66.666%,
            #feccbf 100%
        );

    -webkit-print-color-adjust: exact;

    print-color-adjust: exact;
}


/* ============================================================
   SEM LOGOMARCA PROFISSIONAL
============================================================ */


.acolher-document-header-no-professional-logo {

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    column-gap: 10mm;
}


.acolher-document-header-no-professional-logo
.acolher-doc-v4-professional-brand {

    display: none;
}


.acolher-document-header-no-professional-logo
.acolher-doc-v4-professional-data {

    grid-column: 1;
}


.acolher-document-header-no-professional-logo
.acolher-doc-v4-clinic {

    grid-column: 2;
}


/* ============================================================
   RESPONSIVO
============================================================ */


@media screen and (max-width: 700px) {

    .acolher-document-header-v4 {

        grid-template-columns: 1fr;

        row-gap: 5mm;
    }


    .acolher-document-header-v4
    .acolher-doc-v4-professional-brand,

    .acolher-document-header-v4
    .acolher-doc-v4-professional-data,

    .acolher-document-header-v4
    .acolher-doc-v4-clinic {

        grid-column: 1;
    }


    .acolher-document-header-no-professional-logo {

        grid-template-columns: 1fr;
    }
}


/* ============================================================
   IMPRESSAO
============================================================ */


@media print {

    .acolher-document-header-v4 {

        break-inside: avoid;

        page-break-inside: avoid;
    }


    .acolher-doc-v4-professional-logo,

    .acolher-doc-v4-clinic-logo,

    .acolher-document-header-line-v4 {

        -webkit-print-color-adjust: exact;

        print-color-adjust: exact;
    }
}


/* DOCUMENT_HEADER_STANDARD_V4_END */



/* PROFESSIONAL_IDENTITY_V2_START */

.acolher-doc-v4-registry-separator {

    display: inline-block;

    margin:
        0
        .8mm;

    color: #9ac6cf;
}


/* PROFESSIONAL_IDENTITY_V2_END */


/* DOCUMENT_HEADER_VISUAL_V4_2_OVERRIDE_START */


/* ============================================================
   SISTEMA ACOLHER
   CABECALHO V4.2 — AJUSTE VISUAL FINAL

   27% LOGO PROFISSIONAL
   35% IDENTIFICACAO
   38% CLINICA ACOLHER
============================================================ */


.acolher-document-header-v4 {

    grid-template-columns:
        minmax(0, 27fr)
        minmax(0, 35fr)
        minmax(0, 38fr);

    column-gap: 2.5mm;
}


/* ------------------------------------------------------------
   LOGOMARCA PROFISSIONAL
------------------------------------------------------------ */


.acolher-doc-v4-professional-brand {

    min-height: 28mm;
}


.acolher-doc-v4-professional-logo {

    max-width: 41mm;

    max-height: 28mm;
}


/* ------------------------------------------------------------
   CLINICA ACOLHER
------------------------------------------------------------ */


.acolher-doc-v4-clinic-logo-wrap {

    min-height: 25mm;
}


.acolher-doc-v4-clinic-logo {

    max-width: 36mm;

    max-height: 29mm;
}


.acolher-doc-v4-clinic-name {

    font-size: 9.4pt;
}


.acolher-doc-v4-clinic-address {

    max-width: 68mm;

    font-size: 7.9pt;

    line-height: 1.18;
}


.acolher-doc-v4-clinic-phone {

    max-width: 68mm;

    font-size: 7.9pt;

    line-height: 1.16;
}


/* ------------------------------------------------------------
   REGISTROS PROFISSIONAIS
------------------------------------------------------------ */


.acolher-doc-v4-professional-registry {

    white-space: nowrap;
}


/* ------------------------------------------------------------
   IMPRESSAO
------------------------------------------------------------ */


@media print {

    .acolher-document-header-v4 {

        grid-template-columns:
            minmax(0, 27fr)
            minmax(0, 35fr)
            minmax(0, 38fr);

        column-gap: 2.5mm;
    }


    .acolher-doc-v4-professional-logo {

        max-width: 41mm;

        max-height: 28mm;
    }


    .acolher-doc-v4-clinic-logo {

        max-width: 36mm;

        max-height: 29mm;
    }


    .acolher-doc-v4-clinic-address,

    .acolher-doc-v4-clinic-phone {

        max-width: 68mm;
    }

}


/* DOCUMENT_HEADER_VISUAL_V4_2_OVERRIDE_END */

/* SIDEBAR_GROUPED_MENU_V1_START */


/* =====================================================
   MENU LATERAL AGRUPADO
===================================================== */


.sidebar {

    overflow-y: auto;
}


.sidebar nav.sidebar-nav-grouped {

    display: flex !important;

    flex-direction: column !important;

    grid-template-columns: none !important;

    gap: 4px;

    width: 100%;
}



/* =====================================================
   ITEM PRINCIPAL
===================================================== */


.sidebar-nav-grouped .sidebar-main-link,
.sidebar-nav-grouped .sidebar-menu-group > summary {

    width: 100%;

    min-height: 40px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding: 10px 12px;

    border-radius: 10px;

    color: var(--ink);

    font-weight: 700;

    line-height: 1.2;

    cursor: pointer;

    user-select: none;

    transition:
        background .16s ease,
        color .16s ease;
}



.sidebar-nav-grouped .sidebar-main-link:hover,
.sidebar-nav-grouped .sidebar-menu-group > summary:hover {

    background:
        rgba(
            154,
            198,
            207,
            .16
        );
}



.sidebar-nav-grouped .sidebar-main-link.active {

    background:
        rgba(
            154,
            198,
            207,
            .24
        );

    color:
        var(
            --primary-dark,
            var(--green-dark)
        );
}



/* =====================================================
   GRUPOS
===================================================== */


.sidebar-nav-grouped .sidebar-menu-group {

    margin: 0;

    padding: 0;

    border: 0;
}



.sidebar-nav-grouped
.sidebar-menu-group
> summary {

    list-style: none;
}



.sidebar-nav-grouped
.sidebar-menu-group
> summary::-webkit-details-marker {

    display: none;
}



.sidebar-nav-grouped
.sidebar-menu-group
> summary::marker {

    content: "";
}



.sidebar-nav-grouped
.sidebar-menu-group.group-active
> summary {

    background:
        rgba(
            154,
            198,
            207,
            .18
        );

    color:
        var(
            --primary-dark,
            var(--green-dark)
        );
}



/* =====================================================
   SETA
===================================================== */


.sidebar-nav-grouped
.sidebar-menu-chevron {

    flex: 0 0 auto;

    font-size: 20px;

    line-height: 1;

    color: var(--muted);

    transform: rotate(0deg);

    transition:
        transform .16s ease;
}



.sidebar-nav-grouped
.sidebar-menu-group[open]
.sidebar-menu-chevron {

    transform:
        rotate(90deg);
}



/* =====================================================
   SUBMENU
===================================================== */


.sidebar-nav-grouped
.sidebar-submenu {

    display: flex;

    flex-direction: column;

    gap: 2px;

    margin:
        3px
        0
        6px
        10px;

    padding:
        3px
        0
        3px
        10px;

    border-left:
        1px solid
        rgba(
            76,
            110,
            113,
            .18
        );
}



.sidebar-nav-grouped
.sidebar-submenu a {

    display: block;

    width: 100%;

    padding:
        8px
        10px;

    border-radius: 8px;

    color: var(--muted);

    font-size: 13px;

    font-weight: 600;

    line-height: 1.25;
}



.sidebar-nav-grouped
.sidebar-submenu a:hover {

    background:
        rgba(
            198,
            219,
            210,
            .28
        );

    color: var(--ink);
}



.sidebar-nav-grouped
.sidebar-submenu a.active {

    background:
        rgba(
            198,
            219,
            210,
            .42
        );

    color:
        var(
            --primary-dark,
            var(--green-dark)
        );

    font-weight: 800;
}



/* =====================================================
   BADGE DE NOTIFICAÇÕES
===================================================== */


.sidebar-nav-grouped
.badge {

    margin-left: auto;
}



/* =====================================================
   TABLET
===================================================== */


@media (max-width: 980px) {

    .sidebar
    nav.sidebar-nav-grouped {

        display: flex !important;

        grid-template-columns:
            none !important;
    }


    .sidebar-nav-grouped
    .sidebar-submenu {

        margin-left: 8px;
    }

}



/* =====================================================
   CELULAR
===================================================== */


@media (max-width: 640px) {

    .sidebar
    nav.sidebar-nav-grouped {

        display: flex !important;

        grid-template-columns:
            none !important;
    }


    .sidebar-nav-grouped
    .sidebar-main-link,

    .sidebar-nav-grouped
    .sidebar-menu-group
    > summary {

        min-height: 42px;
    }

}


/* SIDEBAR_GROUPED_MENU_V1_END */


/* ==========================================================
   ATTENDANCE_WORKFLOW_V2_START
   ========================================================== */

.attendance-main-card {
    overflow: hidden;
}

.attendance-title-row,
.attendance-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.attendance-title-row h2,
.attendance-section-head h2 {
    margin-top: 4px;
    margin-bottom: 5px;
}

.attendance-status-pill {
    flex: 0 0 auto;
    font-weight: 700;
}

.attendance-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.attendance-info-grid > div {
    padding: 14px;
    border: 1px solid rgba(76, 110, 113, 0.14);
    border-radius: 12px;
    background: rgba(198, 219, 210, 0.18);
}

.attendance-info-grid span {
    display: block;
    margin-bottom: 5px;
    font-size: 0.78rem;
    color: #667879;
}

.attendance-info-grid strong {
    display: block;
    line-height: 1.35;
}

.attendance-flow {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.attendance-flow-step {
    min-height: 76px;
    padding: 11px 9px;
    border: 1px solid rgba(76, 110, 113, 0.16);
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.attendance-flow-step span {
    display: flex;
    width: 27px;
    height: 27px;
    margin: 0 auto 7px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(154, 198, 207, 0.28);
    color: #4C6E71;
    font-size: 0.78rem;
    font-weight: 800;
}

.attendance-flow-step strong {
    font-size: 0.82rem;
    line-height: 1.2;
}

.attendance-flow-step.is-current {
    border-color: #4C6E71;
    background: rgba(170, 217, 227, 0.22);
    box-shadow: 0 0 0 2px rgba(76, 110, 113, 0.05);
}

.attendance-flow-step.is-current span {
    background: #4C6E71;
    color: #fff;
}

.attendance-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.attendance-actions form {
    margin: 0;
}

.attendance-action-note {
    padding: 11px 14px;
    border-radius: 10px;
    background: rgba(170, 217, 227, 0.20);
    color: #4C6E71;
    font-weight: 600;
}

.attendance-action-note.is-success {
    background: rgba(198, 219, 210, 0.40);
}

.attendance-callout {
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 10px;
    font-weight: 650;
}

.attendance-callout.is-danger {
    background: rgba(254, 204, 191, 0.46);
}

.attendance-callout.is-warning {
    background: rgba(254, 204, 191, 0.28);
}

.attendance-calls-card {
    margin-top: 18px;
}

.attendance-calls {
    display: grid;
    gap: 9px;
    margin-top: 15px;
}

.attendance-call {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 15px;
    border: 1px solid rgba(76, 110, 113, 0.18);
    border-radius: 12px;
    background: rgba(170, 217, 227, 0.18);
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.attendance-call:hover {
    transform: translateY(-1px);
    border-color: rgba(76, 110, 113, 0.40);
    background: rgba(170, 217, 227, 0.28);
}

.attendance-call p {
    margin: 4px 0 0;
    color: #5f7071;
}

.attendance-call > span {
    flex: 0 0 auto;
    font-weight: 700;
    color: #4C6E71;
}

.attendance-room-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(198, 219, 210, 0.45);
    color: #4C6E71;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.attendance-room-state.is-busy {
    background: rgba(254, 204, 191, 0.58);
    color: #704f47;
}

.attendance-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #4C6E71;
}

.attendance-live-indicator > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4C6E71;
    box-shadow: 0 0 0 4px rgba(76, 110, 113, 0.10);
}

.secretary-room-current .btn {
    margin-top: 10px;
}

.secretary-room-next small {
    display: block;
    margin-top: 3px;
    color: #667879;
}

@media (max-width: 1100px) {

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

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

}

@media (max-width: 700px) {

    .attendance-title-row,
    .attendance-section-head {
        flex-direction: column;
    }

    .attendance-info-grid {
        grid-template-columns: 1fr;
    }

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

    .attendance-actions {
        align-items: stretch;
    }

    .attendance-actions form,
    .attendance-actions .btn {
        width: 100%;
    }

    .attendance-call {
        align-items: flex-start;
    }

}

/* ==========================================================
   ATTENDANCE_WORKFLOW_V2_END
   ========================================================== */



/* ==========================================================
   FINANCE_V2_CSS_START
   ========================================================== */

.finance-filter-card {
    margin-bottom: 18px;
}

.finance-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
}

.finance-filter label {
    display: grid;
    gap: 5px;
}

.finance-filter label span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #5f7071;
}

.finance-filter input,
.finance-mini-form select {
    min-height: 39px;
    border: 1px solid rgba(76,110,113,.22);
    border-radius: 9px;
    padding: 7px 10px;
    background: #fff;
}

.finance-kpis {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(170px, 1fr)
        );
    gap: 12px;
    margin-bottom: 18px;
}

.finance-kpi {
    padding: 16px;
    border: 1px solid rgba(76,110,113,.16);
    border-radius: 13px;
    background: #fff;
}

.finance-kpi span {
    display: block;
    margin-bottom: 7px;
    font-size: .78rem;
    color: #667879;
}

.finance-kpi strong {
    font-size: 1.25rem;
    color: #35575a;
}

.finance-quick-grid,
.finance-account-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );
    gap: 13px;
    margin-top: 18px;
}

.finance-quick {
    display: grid;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.finance-quick strong {
    font-size: 1rem;
}

.finance-quick span {
    color: #667879;
    line-height: 1.4;
}

.finance-account-card {
    position: relative;
}

.finance-eyebrow {
    display: block;
    margin-bottom: 5px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: #668184;
}

.finance-account-balance {
    margin: 14px 0 4px;
    font-size: 1.45rem;
    font-weight: 800;
    color: #35575a;
}

.finance-config-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(76,110,113,.12);
}

.finance-config-row:last-child {
    border-bottom: 0;
}

.finance-config-row small {
    display: block;
    margin-top: 4px;
    color: #667879;
}

.finance-config-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.finance-config-actions form,
.finance-inline {
    margin: 0;
}

.finance-action-details {
    margin-bottom: 7px;
}

.finance-action-details summary {
    cursor: pointer;
    font-weight: 700;
    color: #4C6E71;
}

.finance-mini-form {
    display: grid;
    gap: 7px;
    min-width: 210px;
    padding-top: 8px;
}

.finance-overdue,
.finance-warning {
    display: block;
    margin-top: 4px;
    font-size: .72rem;
    font-weight: 800;
    color: #985d50;
}

.finance-form-card {
    max-width: 760px;
}

.finance-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.finance-section-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 700px) {

    .finance-filter {
        align-items: stretch;
    }

    .finance-filter label,
    .finance-filter input,
    .finance-filter .btn {
        width: 100%;
    }

    .finance-config-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .finance-config-actions {
        justify-content: flex-start;
    }

}

/* ==========================================================
   FINANCE_V2_CSS_END
   ========================================================== */



/* ==========================================================
   FINANCE_V3_BANK_CSS_START
   ========================================================== */

.bank-upload-form {
    max-width: 760px;
}

.bank-upload-form p {
    margin-bottom: 13px;
}

.bank-upload-form input[type="file"],
.bank-upload-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(76,110,113,.22);
    border-radius: 9px;
    background: #fff;
    padding: 8px 10px;
}

.bank-import-card,
.bank-import-summary {
    margin-bottom: 18px;
}

.bank-description {
    max-width: 420px;
    margin-top: 3px;
    line-height: 1.35;
    font-size: .82rem;
    color: #5b6d6e;
}

.bank-value-in,
.bank-value-out {
    white-space: nowrap;
}

.bank-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(76,110,113,.09);
    color: #4C6E71;
    font-size: .72rem;
    font-weight: 800;
}

.bank-status-conciliado {
    background: rgba(104,150,129,.15);
}

.bank-status-ignorado {
    background: rgba(120,120,120,.10);
}

.bank-status-possivel_duplicidade {
    background: rgba(210,160,90,.18);
}

.bank-status-sugerido {
    background: rgba(154,198,207,.22);
}

.bank-actions-cell {
    min-width: 230px;
}

.bank-actions-cell > form {
    margin: 0 0 7px 0;
}

.bank-action-details {
    margin-bottom: 8px;
}

.bank-action-details summary {
    cursor: pointer;
    color: #4C6E71;
    font-size: .78rem;
    font-weight: 800;
}

.bank-action-form {
    display: grid;
    gap: 7px;
    margin-top: 7px;
    padding: 9px;
    border-radius: 9px;
    background: rgba(76,110,113,.045);
}

.bank-action-form select,
.bank-action-form input {
    width: 100%;
    min-height: 36px;
    border: 1px solid rgba(76,110,113,.20);
    border-radius: 7px;
    background: #fff;
    padding: 6px 8px;
    font-size: .78rem;
}

.bank-last-balance {
    display: block;
    margin-top: 7px;
    color: #4C6E71;
}

.bank-reconciliation-table table {
    min-width: 1120px;
}

@media (max-width: 800px) {

    .bank-actions-cell {
        min-width: 200px;
    }

}

/* ==========================================================
   FINANCE_V3_BANK_CSS_END
   ========================================================== */



/* ==========================================================
   FINANCE_V3_2_8_MOVEMENTS_CSS_START
   Layout da tela Movimentacoes sem estilos inline.
   Compativel com a politica CSP do Sistema Acolher.
   ========================================================== */


.finance-movements-kpis {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    margin-bottom: 16px;
}


.finance-movements-account-grid {
    margin-top: 0;
    margin-bottom: 16px;
}


.finance-movements-account-card {
    padding: 15px 18px;
    min-height: 0;
}


.finance-movements-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}


.finance-movements-account-main {
    min-width: 0;
    flex: 1 1 auto;
}


.finance-movements-account-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}


.finance-movements-account-name {
    margin: 0;
    line-height: 1.25;
}


.finance-movements-account-value {
    flex: 0 0 auto;
    text-align: right;
}


.finance-movements-account-balance {
    display: block;
    font-size: 1.35rem;
    line-height: 1.2;
    color: #35575a;
}


.finance-movements-ofx {
    display: block;
    margin-top: 4px;
}


.finance-movements-summary {
    margin-bottom: 18px;
}


.finance-movements-summary h2 {
    margin-bottom: 5px;
}


.finance-movements-summary p {
    margin: 0;
}


.finance-movements-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
}


.finance-movements-tabs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    flex: 0 1 auto;
}


.finance-movements-period {
    margin: 0 0 0 auto;
    align-items: flex-end;
    flex: 0 0 auto;
    flex-wrap: nowrap;
}


.finance-movements-empty {
    padding: 17px 4px;
}


@media (max-width: 1100px) {

    .finance-movements-toolbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }


    .finance-movements-period {
        margin-left: 0;
    }

}


@media (max-width: 700px) {

    .finance-movements-kpis {
        grid-template-columns: 1fr;
    }


    .finance-movements-account-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }


    .finance-movements-account-value {
        text-align: left;
    }


    .finance-movements-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }


    .finance-movements-tabs {
        width: 100%;
    }


    .finance-movements-period {
        width: 100%;
    }

}


/* ==========================================================
   FINANCE_V3_2_8_MOVEMENTS_CSS_END
   ========================================================== */



/* ==========================================================
   FINANCE_V3_2_8_1_CSP_HOTFIX_START
   Remove o ultimo layout inline da tela Movimentacoes.
   ========================================================== */

.finance-movements-account-type {
    display: block;
    margin-bottom: 3px;
}

/* ==========================================================
   FINANCE_V3_2_8_1_CSP_HOTFIX_END
   ========================================================== */


/* ACOLHER_MEDICAL_RECORD_PRINT_V9_START */

@page {
    size: A4;
    margin:
        10mm
        0
        12mm
        0;
}


@media print {

    html,
    body.print-page {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }


    body.print-page > main {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }


    /*
     * Mantemos exatamente a margem que ficou boa no V8.
     */
    .medical-record-content-shell {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        box-sizing: border-box !important;

        padding-left: 12mm !important;
        padding-right: 12mm !important;
    }


    .medical-record-content-shell *,
    .clean-record,
    .clean-record-summary,
    .clean-record-section,
    .document-content,
    .reference-growth-v5,
    .ref-v5-grid,
    .ref-v5-card {
        box-sizing: border-box !important;
    }


    .clean-record,
    .clean-record-summary,
    .clean-record-section,
    .document-content {
        width: 100% !important;
        max-width: 100% !important;
    }


    .clean-record-section div,
    .document-content {
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }


    /*
     * Crescimento começa em página própria.
     * Assim título, explicação e gráficos permanecem juntos.
     */
    .reference-growth-v5 {
        width: 100% !important;
        max-width: 100% !important;

        margin:
            0 !important;

        padding:
            0 !important;

        page-break-before:
            always !important;

        break-before:
            page !important;
    }


    /*
     * Peso e estatura lado a lado.
     * IMC fica centralizado logo abaixo.
     */
    .ref-v5-grid {
        display: grid !important;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            ) !important;

        column-gap:
            5mm !important;

        row-gap:
            5mm !important;

        width:
            100% !important;

        max-width:
            100% !important;

        align-items:
            start !important;
    }


    .ref-v5-card {
        display: block !important;

        width:
            auto !important;

        min-width:
            0 !important;

        max-width:
            100% !important;

        margin:
            0 !important;

        padding:
            2.5mm !important;

        border:
            0.25mm
            solid
            #dbe3e7 !important;

        border-radius:
            2mm !important;

        page-break-inside:
            avoid !important;

        break-inside:
            avoid-page !important;
    }


    /*
     * Terceiro gráfico: IMC.
     */
    .ref-v5-card:nth-child(3) {
        grid-column:
            1 / -1 !important;

        width:
            calc(
                50%
                - 2.5mm
            ) !important;

        justify-self:
            center !important;
    }


    .ref-v5-card h4 {
        margin:
            0
            0
            1.5mm
            0 !important;

        font-size:
            11pt !important;

        line-height:
            1.2 !important;

        page-break-after:
            avoid !important;

        break-after:
            avoid-page !important;
    }


    .ref-v5-meta {
        margin:
            0
            0
            1.5mm
            0 !important;

        font-size:
            8.5pt !important;

        line-height:
            1.2 !important;
    }


    .ref-v5-card svg {
        display:
            block !important;

        width:
            100% !important;

        max-width:
            100% !important;

        height:
            auto !important;

        page-break-inside:
            avoid !important;

        break-inside:
            avoid-page !important;
    }


    .ref-v5-legend {
        margin-top:
            1mm !important;

        font-size:
            7.5pt !important;

        line-height:
            1.2 !important;

        page-break-before:
            avoid !important;

        break-before:
            avoid-page !important;
    }


    .reference-growth-v5 > h3 {
        margin:
            0
            0
            2mm
            0 !important;

        page-break-after:
            avoid !important;

        break-after:
            avoid-page !important;
    }


    .reference-growth-v5 > .subtitle {
        margin:
            0
            0
            4mm
            0 !important;

        page-break-after:
            avoid !important;

        break-after:
            avoid-page !important;
    }

}

/* ACOLHER_MEDICAL_RECORD_PRINT_V9_END */


/* PROFESSIONAL_DASHBOARD_ICLINIC_V2_START */

.pro-dashboard-v2 {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.pro-day-v2 {
    min-height: 665px;
    padding: 18px 14px;
    background: #fff;
    border: 1px solid #dce5e8;
    border-radius: 5px;
}

.pro-day-v2 h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 500;
}

.pro-day-v2-empty {
    margin: 0;
    color: #667a81;
    font-size: 13px;
    line-height: 1.5;
}

.pro-day-v2-list {
    display: grid;
    gap: 8px;
}

.pro-day-v2-item {
    display: grid;
    gap: 4px;
    padding: 11px;
    color: #223940;
    text-decoration: none;
    border: 1px solid #dce5e8;
    border-radius: 5px;
    background: #fafcfd;
}

.pro-day-v2-item:hover {
    background: #f1f8fa;
    border-color: #9fc6cc;
}

.pro-day-v2-item strong {
    font-size: 13px;
    line-height: 1.25;
}

.pro-day-v2-item span {
    color: #647d85;
    font-size: 11px;
}

.pro-main-v2 {
    min-width: 0;
}

.pro-filter-v2 {
    display: flex;
    align-items: end;
    gap: 14px;
    min-height: 58px;
    margin-bottom: 16px;
}

.pro-filter-v2 label {
    display: grid;
    gap: 5px;
}

.pro-filter-v2 label > span {
    color: #526970;
    font-size: 12px;
}

.pro-filter-v2 select,
.pro-filter-v2 input {
    height: 38px;
    min-width: 240px;
    padding: 0 12px;
    border: 1px solid #d2dde1;
    border-radius: 4px;
    background: #fff;
    color: #30474e;
}

.pro-filter-professional {
    width: 46%;
    margin-left: auto;
}

.pro-filter-professional select {
    width: 100%;
}

.pro-custom-period {
    display: flex;
    align-items: end;
    gap: 7px;
}

.pro-custom-period input {
    min-width: 145px;
}

.pro-custom-period .btn {
    height: 38px;
}

.pro-custom-period.is-hidden {
    display: none;
}


/* KPIs */

.pro-kpis-v2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #dce5e8;
    border-radius: 5px;
    overflow: hidden;
}

.pro-kpi-v2 {
    height: 138px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e8eef0;
    text-align: center;
}

.pro-kpi-v2:last-child {
    border-right: 0;
}

.pro-kpi-v2 strong {
    font-size: 38px;
    line-height: 1;
    font-weight: 500;
}

.pro-kpi-v2 span {
    margin-top: 10px;
    font-size: 12px;
}

.pro-kpi-v2 small {
    margin-top: 15px;
    font-size: 18px;
    line-height: 1;
}

.pro-kpi-v2.scheduled strong,
.pro-kpi-v2.scheduled small {
    color: #899ca4;
}

.pro-kpi-v2.confirmed strong,
.pro-kpi-v2.confirmed span,
.pro-kpi-v2.confirmed small {
    color: #087de3;
}

.pro-kpi-v2.attended strong,
.pro-kpi-v2.attended span,
.pro-kpi-v2.attended small {
    color: #46ae43;
}

.pro-kpi-v2.missed strong,
.pro-kpi-v2.missed span,
.pro-kpi-v2.missed small {
    color: #ef2d2d;
}


/* QUATRO CARDS */

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

.pro-card-v2,
.pro-chart-v2 {
    min-width: 0;
    background: #fff;
    border: 1px solid #dce5e8;
    border-radius: 5px;
}

.pro-card-v2 {
    min-height: 375px;
    padding: 18px;
}

.pro-card-v2 h3,
.pro-chart-v2 h3 {
    margin: 0 0 15px;
    color: #0064c8;
    font-size: 16px;
    font-weight: 500;
}

.pro-card-v2 h4 {
    margin: 18px 0 6px;
    color: #0064c8;
    font-size: 14px;
    font-weight: 500;
}

.pro-card-v2 canvas {
    display: block;
    width: 100%;
    max-width: 100%;
}


/* LEGENDAS */

.pro-v2-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 13px;
    margin-top: 3px;
    color: #63757c;
    font-size: 10px;
}

.pro-v2-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pro-v2-legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.pro-v2-legend .blue {
    background: #1685e5;
}

.pro-v2-legend .blue-light {
    background: #91c5ee;
}

.pro-v2-legend .orange {
    background: #ff9914;
}

.pro-v2-legend .orange-light {
    background: #ffbd59;
}

.pro-v2-legend .cyan {
    background: #92c7f0;
}

.pro-v2-legend .cyan-dark {
    background: #45c6df;
}

.pro-v2-legend .gray {
    background: #dfe4e7;
}

.pro-v2-legend-small {
    font-size: 9px;
}


/* SEXO */

.pro-sex-v2 {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid #edf1f2;
}

.pro-sex-v2-item {
    display: flex;
    align-items: center;
}

.pro-sex-v2-item canvas {
    width: 68px !important;
    height: 68px !important;
    flex: 0 0 68px;
}

.pro-sex-v2-item > div {
    display: grid;
    gap: 2px;
}

.pro-sex-v2-item strong {
    color: #2476d2;
    font-size: 11px;
}

.pro-sex-v2-item:nth-child(2) strong {
    color: #925ce5;
}

.pro-sex-v2-item span {
    color: #647980;
    font-size: 9px;
}


/* DONUTS */

.pro-donut-v2-wrap {
    position: relative;
}

.pro-donut-v2-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pro-donut-v2-center strong {
    color: #969b9e;
    font-size: 44px;
    line-height: 1;
    font-weight: 300;
}

.pro-donut-v2-center span {
    margin-top: 4px;
    color: #9ca6aa;
    font-size: 10px;
}


/* DURAÇÃO */

.pro-duration-v2 {
    min-height: 108px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #34555f;
}

.pro-duration-v2 > span {
    margin-right: 7px;
    font-size: 30px;
}

.pro-duration-v2 strong {
    font-size: 39px;
    line-height: 1;
    font-weight: 300;
}

.pro-duration-v2 em {
    margin-left: 5px;
    font-size: 23px;
    font-style: normal;
}


/* GRÁFICOS */

.pro-chart-v2 {
    padding: 18px 20px;
    margin-bottom: 16px;
}

.pro-chart-v2 canvas {
    display: block;
    width: 100%;
    max-width: 100%;
}

.pro-bottom-v2 {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(245px, 1fr);
    gap: 16px;
}

.pro-bottom-v2 .pro-chart-v2 {
    margin-bottom: 0;
}


/* ANIVERSÁRIOS */

.pro-birthday-v2 {
    min-height: 290px;
    text-align: center;
}

.pro-birthday-avatar {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 22px auto 12px;
    border-radius: 50%;
    background: #d3d3d3;
    color: #fff;
    font-size: 28px;
}

.pro-birthday-v2 > strong,
.pro-birthday-v2 > span,
.pro-birthday-v2 > small {
    display: block;
}

.pro-birthday-v2 > strong {
    color: #40575f;
    font-size: 13px;
}

.pro-birthday-v2 > span {
    margin-top: 5px;
    color: #2673c4;
    font-size: 10px;
}

.pro-birthday-age {
    color: #0878e0 !important;
    font-size: 12px !important;
}

.pro-birthday-v2 > small {
    margin-top: 9px;
    color: #77898f;
}

.pro-birthday-v2 .btn {
    margin-top: 14px;
}


/* RESPONSIVIDADE */

@media (max-width: 1250px) {

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

}

@media (max-width: 950px) {

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

    .pro-day-v2 {
        min-height: auto;
    }

    .pro-filter-v2 {
        flex-wrap: wrap;
    }

    .pro-filter-professional {
        width: 100%;
        margin-left: 0;
    }

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

    .pro-bottom-v2 {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .pro-cards-v2,
    .pro-kpis-v2 {
        grid-template-columns: 1fr;
    }

    .pro-custom-period {
        flex-wrap: wrap;
    }

}

/* PROFESSIONAL_DASHBOARD_ICLINIC_V2_END */


/* PROFESSIONAL_AGENDA_ICLINIC_V1_START */

.professional-agenda-v1 {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}


/* ==========================================================
   PACIENTES DO DIA
   ========================================================== */

.agenda-today-panel {
    min-height: 660px;
    padding: 18px 14px;
    background: #ffffff;
    border: 1px solid #dce5e8;
    border-radius: 5px;
}

.agenda-today-panel h2 {
    margin: 0 0 18px;
    color: #263f47;
    font-size: 20px;
    font-weight: 500;
}

.agenda-today-empty {
    margin: 0;
    color: #657a82;
    font-size: 13px;
    line-height: 1.5;
}

.agenda-today-list {
    display: grid;
    gap: 8px;
}

.agenda-today-patient {
    display: grid;
    gap: 4px;
    padding: 11px;
    border: 1px solid #dce5e8;
    border-radius: 5px;
    background: #fafcfd;
    color: #223940;
    text-decoration: none;
}

.agenda-today-patient:hover {
    border-color: #88b9c2;
    background: #f2f8fa;
}

.agenda-today-patient strong {
    font-size: 13px;
    line-height: 1.25;
}

.agenda-today-patient span {
    color: #667e86;
    font-size: 11px;
}


/* ==========================================================
   AREA PRINCIPAL
   ========================================================== */

.agenda-main {
    min-width: 0;
}

.agenda-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 18px;
}

.agenda-professional-name {
    margin: 0 0 18px;
    color: #0870d4;
    font-size: 23px;
    font-weight: 400;
}

.agenda-search-wrap {
    position: relative;
    width: min(450px, 100%);
}

.agenda-search {
    width: 100%;
    height: 50px;
    padding: 0 48px 0 16px;
    border: 1px solid #d6e0e4;
    border-radius: 4px;
    background: #ffffff;
    color: #304950;
    font-size: 14px;
}

.agenda-search:focus {
    outline: none;
    border-color: #82b3dc;
    box-shadow: 0 0 0 2px rgba(40, 130, 210, .10);
}

.agenda-search-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #587e94;
    font-size: 24px;
    pointer-events: none;
}


/* ==========================================================
   ACOES SUPERIORES
   ========================================================== */

.agenda-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.agenda-action-card {
    width: 108px;
    min-height: 74px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    border: 1px solid #d5e0e4;
    border-radius: 4px;
    background: #ffffff;
    color: #324b54;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.agenda-action-card:hover {
    background: #f6fafb;
    border-color: #a9c8cf;
}

.agenda-action-icon {
    color: #75919b;
    font-size: 20px;
    line-height: 1;
}

.agenda-action-card strong {
    font-size: 10px;
    line-height: 1.25;
}


/* ==========================================================
   CARD DO CALENDARIO
   ========================================================== */

.agenda-calendar-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce5e8;
    border-radius: 5px;
}

.agenda-calendar-toolbar {
    min-height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 13px 18px;
    border-bottom: 1px solid #dce5e8;
}

.agenda-nav-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.agenda-nav-button,
.agenda-today-button {
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6dfe3;
    background: #ffffff;
    color: #405963;
    text-decoration: none;
}

.agenda-nav-button {
    width: 34px;
    font-size: 20px;
}

.agenda-today-button {
    padding: 0 12px;
    margin-left: -1px;
    font-size: 11px;
    font-weight: 600;
}

.agenda-nav-button + .agenda-nav-button,
.agenda-today-button + .agenda-nav-button {
    margin-left: -1px;
}

.agenda-nav-button:hover,
.agenda-today-button:hover {
    background: #f2f7f9;
}

.agenda-date-form {
    margin-left: 10px;
}

.agenda-date-form input {
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d6dfe3;
    border-radius: 3px;
    background: #ffffff;
    color: #405963;
    font-size: 11px;
}

.agenda-range {
    margin-left: 10px;
    color: #61757c;
    font-size: 11px;
    white-space: nowrap;
}

.agenda-mode-switch {
    display: flex;
}

.agenda-mode-switch a {
    min-width: 55px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6dfe3;
    background: #ffffff;
    color: #455c64;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
}

.agenda-mode-switch a + a {
    margin-left: -1px;
}

.agenda-mode-switch a.active {
    position: relative;
    z-index: 1;
    color: #0876dc;
    border-color: #7fb1dc;
    background: #f1f8ff;
}


/* ==========================================================
   CALENDARIO
   ========================================================== */

.agenda-calendar {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
}

.agenda-mode-week .agenda-days-header,
.agenda-mode-week .agenda-grid-body {
    min-width: 1050px;
    display: grid;
    grid-template-columns:
        72px
        repeat(7, minmax(135px, 1fr));
}

.agenda-mode-day .agenda-days-header,
.agenda-mode-day .agenda-grid-body {
    min-width: 720px;
    display: grid;
    grid-template-columns:
        72px
        minmax(640px, 1fr);
}


/* ==========================================================
   CABECALHO DOS DIAS
   ========================================================== */

.agenda-days-header {
    position: sticky;
    top: 0;
    z-index: 15;
    background: #ffffff;
    border-bottom: 1px solid #d8e1e5;
}

.agenda-time-header {
    min-height: 57px;
    border-right: 1px solid #dce5e8;
}

.agenda-day-header {
    min-height: 57px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #dce5e8;
    color: #455e67;
    text-align: center;
}

.agenda-day-header:last-child {
    border-right: 0;
}

.agenda-day-header strong {
    font-size: 11px;
    font-weight: 500;
}

.agenda-day-header span {
    margin-top: 3px;
    font-size: 10px;
}

.agenda-day-header.is-today {
    color: #0877de;
    background: #fffef1;
}


/* ==========================================================
   CORPO DA GRADE
   ========================================================== */

.agenda-grid-body {
    position: relative;
    align-items: start;
}

.agenda-time-axis {
    position: relative;
    border-right: 1px solid #dce5e8;
    background: #ffffff;
}

.agenda-time-label {
    position: absolute;
    right: 9px;
    transform: translateY(-50%);
    color: #597079;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

.agenda-day-column {
    position: relative;
    overflow: hidden;
    border-right: 1px solid #dce5e8;
    background: #ffffff;
}

.agenda-day-column:last-child {
    border-right: 0;
}

.agenda-day-column.is-today {
    background: #fffef1;
}

.agenda-grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    border-top: 1px solid #e2e8eb;
    pointer-events: none;
}

.agenda-grid-line:nth-child(3n) {
    border-top-style: dashed;
}


/* ==========================================================
   INDISPONIBILIDADE
   ========================================================== */

.agenda-unavailable-block {
    position: absolute;
    left: 5px;
    right: 5px;
    z-index: 2;
    background:
        repeating-linear-gradient(
            -45deg,
            #f1f1f1,
            #f1f1f1 7px,
            #ececec 7px,
            #ececec 14px
        );
    border: 1px solid #dedede;
    opacity: .90;
}


/* ==========================================================
   AGENDAMENTOS
   ========================================================== */

.agenda-appointment {
    position: absolute;
    left: 4px;
    right: 4px;
    z-index: 8;
    display: block;
    overflow: hidden;
    padding: 5px 7px;
    border: 1px solid #74b6e3;
    border-radius: 2px;
    background: #a9d8f5;
    color: #337da9;
    text-decoration: none;
    box-sizing: border-box;
}

.agenda-appointment:hover {
    z-index: 12;
    filter: brightness(.98);
    box-shadow: 0 2px 7px rgba(50, 80, 95, .16);
}

.agenda-appointment-time {
    display: block;
    font-size: 9px;
    line-height: 1.15;
}

.agenda-appointment-patient {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
}

.agenda-appointment small {
    display: block;
    margin-top: 2px;
    font-size: 8px;
    line-height: 1.1;
}


/* STATUS */

.agenda-appointment.status-scheduled {
    background: #a9d8f5;
    border-color: #73b7e6;
    color: #337da9;
}

.agenda-appointment.status-confirmed {
    background: #9fd1f3;
    border-color: #569fd4;
    color: #246f9e;
}

.agenda-appointment.status-waiting {
    background: #fff0b6;
    border-color: #e3c45f;
    color: #836b21;
}

.agenda-appointment.status-in-progress {
    background: #ccebc9;
    border-color: #76bd70;
    color: #39783b;
}

.agenda-appointment.status-completed {
    background: #d8edda;
    border-color: #8ac78c;
    color: #427d45;
}

.agenda-appointment.status-cancelled {
    background: #eeeeee;
    border-color: #c7c7c7;
    color: #8b8b8b;
    text-decoration: line-through;
}

.agenda-appointment.status-missed {
    background: #f8d4d4;
    border-color: #dd8a8a;
    color: #a54b4b;
}

.agenda-search-hidden {
    display: none !important;
}


/* ==========================================================
   HORARIO ATUAL
   ========================================================== */

.agenda-current-time {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 20;
    height: 2px;
    background: #f02b2b;
    pointer-events: none;
}

.agenda-current-time i {
    position: absolute;
    left: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f02b2b;
}


/* ==========================================================
   RESPONSIVIDADE
   ========================================================== */

@media (max-width: 1200px) {

    .professional-agenda-v1 {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .agenda-top {
        align-items: flex-start;
    }

}

@media (max-width: 900px) {

    .professional-agenda-v1 {
        grid-template-columns: 1fr;
    }

    .agenda-today-panel {
        min-height: auto;
    }

    .agenda-top {
        flex-direction: column;
    }

    .agenda-actions {
        width: 100%;
    }

    .agenda-action-card {
        flex: 1;
    }

    .agenda-calendar-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media (max-width: 600px) {

    .agenda-nav-group {
        flex-wrap: wrap;
        gap: 5px;
    }

    .agenda-date-form {
        margin-left: 0;
    }

    .agenda-range {
        width: 100%;
        margin-left: 0;
    }

}


/* ==========================================================
   IMPRESSAO
   ========================================================== */

@media print {

    .sidebar,
    .agenda-today-panel,
    .agenda-actions,
    .agenda-search-wrap,
    .agenda-calendar-toolbar {
        display: none !important;
    }

    .shell {
        display: block !important;
    }

    .content,
    .main,
    main {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .professional-agenda-v1 {
        display: block !important;
    }

    .agenda-calendar-card {
        border: 0;
    }

    .agenda-calendar {
        overflow: visible;
    }

    .agenda-mode-week .agenda-days-header,
    .agenda-mode-week .agenda-grid-body {
        min-width: 0;
        grid-template-columns:
            58px
            repeat(7, minmax(0, 1fr));
    }

    .agenda-day-column.is-today,
    .agenda-day-header.is-today {
        background: #ffffff !important;
    }

}

/* PROFESSIONAL_AGENDA_ICLINIC_V1_END */


/* PROFESSIONAL_AGENDA_POLISH_V2_START */


/* Mais area util para a agenda */
.professional-agenda-v1 {
    grid-template-columns:
        220px
        minmax(0, 1fr);

    gap: 16px;
}


/* Busca mais proxima da proporcao do iClinic */
.agenda-top > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.agenda-search-wrap {
    width: min(
        520px,
        100%
    );
}


/* Evita scrollbar vertical dentro da agenda.
   A rolagem vertical passa a ser a da pagina. */
.agenda-calendar {
    overflow-x: auto;
    overflow-y: hidden;
}


/* Indisponibilidade mais discreta */
.agenda-unavailable-block {
    background: #f1f2f2;
    border: 1px solid #e2e4e5;
    opacity: .92;
}


/* Destaque atual mais leve */
.agenda-day-column.is-today,
.agenda-day-header.is-today {
    background: #fffdf0;
}


/* Ajustes de proporcao */
.agenda-calendar-toolbar {
    min-height: 58px;
    padding-top: 11px;
    padding-bottom: 11px;
}

.agenda-day-header {
    min-height: 54px;
}


/* Cartoes um pouco mais limpos */
.agenda-appointment {
    left: 5px;
    right: 5px;
    padding: 5px 6px;
}

.agenda-appointment-time {
    font-size: 9px;
}

.agenda-appointment-patient {
    font-size: 9.5px;
    line-height: 1.18;
}

.agenda-appointment small {
    font-size: 8px;
}


/* Primeiro e ultimo horario nao ficam cortados */
.agenda-time-label:first-child {
    transform: translateY(3px);
}

.agenda-time-label:last-child {
    transform: translateY(-100%);
}


/* Linhas um pouco mais suaves */
.agenda-grid-line {
    border-top-color: #e5eaec;
}


/* Painel lateral mais proporcional */
.agenda-today-panel {
    padding: 18px 13px;
}

.agenda-today-panel h2 {
    font-size: 19px;
}


/* Mantem responsividade */
@media (max-width: 900px) {

    .professional-agenda-v1 {
        grid-template-columns: 1fr;
    }

}


/* PROFESSIONAL_AGENDA_POLISH_V2_END */


/* PROFESSIONAL_LOCKED_BOOKING_V1_START */

.professional-locked-field {
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 8px 11px;
    border: 1px solid #d8e3e7;
    border-radius: 4px;
    background: #f5f9fa;
}

.professional-locked-field strong {
    color: #29464f;
    font-size: 13px;
}

.professional-locked-field span {
    color: #6c8188;
    font-size: 11px;
}

/* PROFESSIONAL_LOCKED_BOOKING_V1_END */


/* WAITLIST_WORKSPACE_V1_START */

.waitlist-page {
    display: grid;
    gap: 18px;
}

.waitlist-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #e2e8ea;
    border-radius: 8px;
    background: #fff;
}

.waitlist-eyebrow {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #72868c;
}

.waitlist-hero h2 {
    margin: 0 0 3px;
}

.waitlist-hero p {
    margin: 0;
    color: #667a80;
}

.waitlist-kpis {
    display: flex;
    gap: 10px;
}

.waitlist-kpis > div {
    min-width: 88px;
    padding: 10px 14px;
    text-align: center;
    border: 1px solid #e4eaec;
    border-radius: 7px;
    background: #f8fafb;
}

.waitlist-kpis strong,
.waitlist-kpis span {
    display: block;
}

.waitlist-kpis strong {
    font-size: 18px;
}

.waitlist-kpis span {
    margin-top: 2px;
    font-size: 11px;
    color: #72868c;
}

.waitlist-layout {
    display: grid;
    grid-template-columns: minmax(300px, 370px) 1fr;
    gap: 18px;
    align-items: start;
}

.waitlist-new-card,
.waitlist-list-card {
    margin: 0;
}

.waitlist-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.waitlist-patient-results {
    display: grid;
    gap: 4px;
    margin-top: 5px;
}

.waitlist-patient-result {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border: 1px solid #dde5e7;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

.waitlist-patient-result:hover {
    background: #f6f9fa;
}

.waitlist-patient-result span {
    color: #75888e;
    font-size: 12px;
}

.waitlist-selected-patient {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 7px;
    padding: 10px;
    border: 1px solid #d9e5e7;
    border-radius: 6px;
    background: #f5f9fa;
}

.waitlist-selected-patient strong,
.waitlist-selected-patient span {
    display: block;
}

.waitlist-selected-patient span {
    margin-top: 2px;
    color: #6f8389;
    font-size: 12px;
}

.waitlist-list-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.waitlist-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.waitlist-tabs a {
    padding: 7px 9px;
    border: 1px solid #dfe6e8;
    border-radius: 5px;
    text-decoration: none;
    color: #64777d;
    font-size: 12px;
    font-weight: 600;
}

.waitlist-tabs a.active {
    background: #eef5f5;
    border-color: #cbdcdc;
    color: #35565c;
}

.waitlist-items {
    display: grid;
    gap: 9px;
}

.waitlist-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-top: 1px solid #edf1f2;
}

.waitlist-item:first-child {
    border-top: 0;
}

.waitlist-item-main {
    display: flex;
    gap: 11px;
    min-width: 0;
}

.waitlist-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf4f4;
    font-weight: 700;
    color: #49686d;
}

.waitlist-item-main strong,
.waitlist-item-main span,
.waitlist-item-main small {
    display: block;
}

.waitlist-item-main span {
    margin-top: 3px;
    color: #52676c;
}

.waitlist-item-main small {
    margin-top: 4px;
    color: #7b8b90;
}

.waitlist-item-meta {
    min-width: 180px;
    text-align: right;
}

.waitlist-item-meta small {
    display: block;
    margin-top: 5px;
    color: #7c8e93;
}

.waitlist-item-meta p {
    max-width: 320px;
    margin: 8px 0;
    color: #596d72;
    font-size: 12px;
}

.waitlist-priority {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 12px;
    background: #f0f3f4;
    font-size: 11px;
    font-weight: 700;
    color: #63757a;
}

.waitlist-priority.high {
    background: #fff0e7;
    color: #9a582c;
}

.waitlist-empty {
    padding: 40px 20px;
    text-align: center;
    color: #72858a;
}

@media (max-width: 950px) {

    .waitlist-layout {
        grid-template-columns: 1fr;
    }

    .waitlist-hero {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media (max-width: 650px) {

    .waitlist-form-grid {
        grid-template-columns: 1fr;
    }

    .waitlist-item {
        flex-direction: column;
    }

    .waitlist-item-meta {
        text-align: left;
    }

}

/* WAITLIST_WORKSPACE_V1_END */


/* ==========================================================
   AGENDA OBSERVATIONS V1
   ========================================================== */

.agenda-observation-page {
    display: grid;
    gap: 20px;
}

.agenda-observation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.agenda-observation-header h2 {
    margin: 4px 0;
}

.agenda-observation-header p {
    margin: 0;
    opacity: .7;
}

.agenda-observation-eyebrow {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .6;
}

.agenda-observation-warning {
    display: grid;
    gap: 5px;
    padding: 15px 17px;
    border: 1px solid #eadca7;
    border-radius: 14px;
    background: #fffbed;
    color: #66551d;
}

.agenda-observation-warning span {
    line-height: 1.5;
}

.agenda-observation-filter-card,
.agenda-observation-form-card,
.agenda-observation-list-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 20px;
}

.agenda-observation-filter {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.agenda-observation-filter label,
.agenda-observation-form label {
    display: grid;
    gap: 6px;
}

.agenda-observation-filter label > span,
.agenda-observation-form label > span {
    font-size: .86rem;
    font-weight: 700;
}

.agenda-observation-filter input,
.agenda-observation-filter select,
.agenda-observation-form input,
.agenda-observation-form textarea {
    border: 1px solid #d9dde3;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    font: inherit;
}

.agenda-observation-form textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    line-height: 1.5;
}

.agenda-observation-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.agenda-observation-section-title h3 {
    margin: 0 0 4px;
}

.agenda-observation-section-title p {
    margin: 0;
    opacity: .65;
}

.agenda-observation-period {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 180px));
    gap: 12px;
    margin-bottom: 14px;
}

.agenda-observation-text {
    width: 100%;
}

.agenda-observation-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.agenda-observation-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f1f3f5;
    font-weight: 700;
}

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

.agenda-observation-item {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 15px;
    background: #fafbfc;
}

.agenda-observation-item-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.agenda-observation-period-label {
    display: block;
    margin-bottom: 3px;
}

.agenda-observation-author {
    display: block;
    font-size: .8rem;
    opacity: .62;
}

.agenda-observation-content {
    margin-top: 12px;
    white-space: normal;
    line-height: 1.55;
}

.agenda-observation-item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.agenda-observation-item-actions form {
    margin: 0;
}

.agenda-observation-link,
.agenda-observation-delete {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: .84rem;
    cursor: pointer;
    text-decoration: underline;
}

.agenda-observation-delete {
    color: #a32929;
}

.agenda-observation-empty {
    padding: 25px 12px;
    text-align: center;
    opacity: .62;
}


@media (max-width: 760px) {

    .agenda-observation-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .agenda-observation-period {
        grid-template-columns: 1fr 1fr;
    }

    .agenda-observation-item-top {
        flex-direction: column;
    }

}


/* AGENDA_OBSERVATIONS_CSS_V1_END */
