:root {
    --sidebar-width: 270px;
    --primary: #2563eb;
    --body-bg: #f5f7fb;
    --sidebar-bg: #111827;
    --sidebar-link: #d1d5db;
    --sidebar-link-hover: #ffffff;
	--sidebar-open-width: 260px;
    --sidebar-collapsed-width: 78px;
    --sidebar-bg: #243748;
    --sidebar-active: #1598e6;
}

body {
    background: var(--body-bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================
   Sidebar retrátil
========================= */

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-open-width);
    min-width: var(--sidebar-open-width);
    height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    background: var(--sidebar-bg);
    color: #d7e1ea;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    transition: 
        width .35s cubic-bezier(.22, 1, .36, 1),
        min-width .35s cubic-bezier(.22, 1, .36, 1),
        box-shadow .35s ease;
    overflow-x: hidden;
}

.main-content {
    margin-left: var(--sidebar-open-width);
    width: calc(100% - var(--sidebar-open-width));
    min-height: 100vh;
    transition: 
        margin-left .35s cubic-bezier(.22, 1, .36, 1),
        width .35s cubic-bezier(.22, 1, .36, 1);
}

/* Marca */
.sidebar-brand {
    height: 82px;
    display: flex;
    align-items: center;
    padding: 16px 18px;
    flex: 0 0 82px;
}

.brand-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #0d6efd;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    flex: 0 0 46px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    white-space: nowrap;
}

.brand-text strong {
    color: #fff;
    font-size: 16px;
}

.brand-text small {
    color: #b8c4cf;
    font-size: 13px;
}

/* Menu */
.sidebar-menu {
    padding: 8px 12px 70px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.sidebar-menu a {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 14px;
    color: #c6d3df;
    text-decoration: none;
    border-radius: 10px;
    position: relative;
    margin-bottom: 4px;
    transition: 
        background .25s ease,
        color .25s ease,
        padding .35s cubic-bezier(.22, 1, .36, 1);
    white-space: nowrap;
}

.sidebar-menu a i {
    font-size: 18px;
    width: 22px;
    min-width: 22px;
    text-align: center;
}

.sidebar-menu a span {
    font-size: 15px;
    font-weight: 500;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.sidebar-menu a.active,
.sidebar-menu a.active-menu {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-weight: 700;
}

.sidebar-menu a.active::before,
.sidebar-menu a.active-menu::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 6px;
    bottom: 6px;
    width: 4px;
    border-radius: 0 6px 6px 0;
    background: var(--sidebar-active);
}

.sidebar-section {
    color: #7f94a8;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    padding: 18px 14px 8px;
    white-space: nowrap;
}

/* Botão inferior */
.sidebar-bottom-toggle {
    position: absolute;
    right: 16px;
    bottom: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #d7e1ea;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: 
        background .25s ease,
        color .25s ease,
        transform .35s cubic-bezier(.22, 1, .36, 1);
}

.sidebar-bottom-toggle:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.sidebar-bottom-toggle i {
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

/* Botão superior no topbar */
.topbar-menu-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #666;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 24px;
    margin-right: 12px;
}

.topbar-menu-toggle:hover {
    background: #f1f5f9;
    color: #333;
}

/* Estado recolhido */
body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
    min-width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}

body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .sidebar-menu span,
body.sidebar-collapsed .sidebar-section,
body.sidebar-collapsed .sidebar-bottom-toggle span {
    display: none !important;
}

body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

body.sidebar-collapsed .brand-left {
    justify-content: center;
}

body.sidebar-collapsed .sidebar-menu {
    padding-left: 10px;
    padding-right: 10px;
}

body.sidebar-collapsed .sidebar-menu a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

body.sidebar-collapsed .sidebar-menu a.active::before,
body.sidebar-collapsed .sidebar-menu a.active-menu::before {
    left: -10px;
}

body.sidebar-collapsed .sidebar-bottom-toggle {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

body.sidebar-collapsed .sidebar-bottom-toggle i {
    transform: rotate(180deg);
}

/* Expandir temporariamente ao passar o mouse */
body.sidebar-collapsed.sidebar-hover .sidebar {
    width: var(--sidebar-open-width);
    min-width: var(--sidebar-open-width);
    box-shadow: 12px 0 30px rgba(0, 0, 0, .18);
}

body.sidebar-collapsed.sidebar-hover .brand-text,
body.sidebar-collapsed.sidebar-hover .sidebar-menu span,
body.sidebar-collapsed.sidebar-hover .sidebar-section,
body.sidebar-collapsed.sidebar-hover .sidebar-bottom-toggle span {
    display: flex !important;
}

body.sidebar-collapsed.sidebar-hover .sidebar-section {
    display: block !important;
}

body.sidebar-collapsed.sidebar-hover .sidebar-brand {
    justify-content: flex-start;
    padding: 16px 18px;
}

body.sidebar-collapsed.sidebar-hover .sidebar-menu {
    padding-left: 12px;
    padding-right: 12px;
}

body.sidebar-collapsed.sidebar-hover .sidebar-menu a {
    justify-content: flex-start;
    padding: 0 14px;
}

body.sidebar-collapsed.sidebar-hover .sidebar-bottom-toggle {
    left: auto;
    right: 16px;
    transform: none;
}

body.sidebar-collapsed.sidebar-hover .sidebar-bottom-toggle i {
    transform: rotate(180deg);
}

/* Mobile */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-open-width);
        min-width: var(--sidebar-open-width);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

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

    body.sidebar-collapsed .main-content {
        margin-left: 0;
        width: 100%;
    }
}
.auth-body {
    background: linear-gradient(135deg, #0f172a, #2563eb);
}

.login-card {
    width: 100%;
    max-width: 430px;
    border-radius: 22px;
}

.logo-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
}

/*
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: white;
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
}

.sidebar-brand {
    height: 76px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand small {
    display: block;
    color: #9ca3af;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: #2563eb;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.sidebar-menu {
    padding: 16px 12px;
}

.sidebar-menu a {
    color: var(--sidebar-link);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 4px;
    transition: .2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, .09);
    color: var(--sidebar-link-hover);
}

.sidebar-section {
    color: #6b7280;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    padding: 18px 14px 8px;
}

.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

body.sidebar-collapsed .sidebar {
    width: 78px;
}

body.sidebar-collapsed .sidebar .brand-text,
body.sidebar-collapsed .sidebar span,
body.sidebar-collapsed .sidebar .menu-section-title {
    display: none !important;
}

body.sidebar-collapsed .sidebar a {
    justify-content: center;
}

body.sidebar-collapsed .main-content {
    margin-left: 78px;
}

.sidebar {
    transition: width .2s ease;
}

.main-content {
    transition: margin-left .2s ease;
}
*/

.topbar {
    height: 76px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.dashboard-card {
    border-radius: 18px;
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.card {
    border-radius: 18px;
}

.btn {
    border-radius: 10px;
}

.form-control,
.form-select {
    border-radius: 10px;
}

.table thead th {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

.page-link {
    border-radius: 10px;
    margin: 0 2px;
}

.modal-content {
    border: 0;
    border-radius: 18px;
}

.modal-header,
.modal-footer {
    border-color: #eef0f4;
}

.badge {
    font-weight: 600;
    padding: 6px 9px;
}

.btn-sm {
    border-radius: 9px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cliente-foto-box {
    width: 100%;
    max-width: 260px;
    height: 260px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cliente-sem-foto {
    color: #b5b5b5;
    text-align: center;
    text-transform: uppercase;
}

.cliente-sem-foto i {
    font-size: 90px;
    display: block;
    line-height: 1;
}

.cliente-sem-foto span {
    display: block;
    font-size: 14px;
    margin-top: 12px;
    font-weight: 600;
}

.cliente-foto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contato-section {
    border: 1px solid #d9eaf7;
    border-radius: 8px;
    overflow: hidden;
}

.contato-section-header {
    background: #eaf7ff;
    border-bottom: 1px solid #d9eaf7;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contato-section-body {
    padding: 16px;
}

.contato-row {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.cliente-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    flex: 0 0 auto;
}

.form-check-input {
    cursor: pointer;
}

.card-header h6 {
    font-size: 16px;
}

.cursor-pointer {
    cursor: pointer;
}

.modal-foto-content {
    border-radius: 4px;
}

.foto-editor-area {
    position: relative;
    min-height: 430px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#canvasFotoCliente {
    max-width: 100%;
    display: block;
}

.foto-editor-vazio {
    position: absolute;
    color: #aaa;
    font-size: 18px;
}

.foto-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.foto-editor-toolbar .btn {
    border-radius: 4px;
}

.cliente-row-click {
    cursor: pointer;
}

.cliente-row-click:hover {
    background: #f8fafc;
}

.cliente-view-card {
    min-height: 650px;
}

.cliente-dados-lista {
    margin: 0;
}

.cliente-dados-lista > div {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px;
    margin-bottom: 7px;
}

.cliente-dados-lista dt {
    font-weight: 700;
    color: #4b5563;
    text-align: right;
}

.cliente-dados-lista dd {
    margin: 0;
    color: #4b5563;
}

.cliente-extra-box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #e5e7eb;
}

.cliente-tabs .nav-link {
    color: #7a8ca5;
    font-size: 13px;
    border-radius: 0;
}

.cliente-tabs .nav-link.active {
    color: #111827;
    font-weight: 700;
}

.cliente-tabs .nav-link span {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dbe4ef;
    color: #52677f;
    font-size: 11px;
    margin-left: 3px;
}

.historico-empty {
    background: #f1f1f1;
    color: #777;
    font-size: 24px;
    padding: 36px;
    border-radius: 8px;
}

.cliente-side-actions {
    position: sticky;
    top: 90px;
}

.cliente-view-foto {
    width: 100%;
    min-height: 300px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
}

.cliente-view-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cliente-view-sem-foto {
    text-align: center;
    color: #b5b5b5;
    text-transform: uppercase;
}

.cliente-view-sem-foto i {
    display: block;
    font-size: 105px;
    line-height: 1;
}

.cliente-view-sem-foto span {
    display: block;
    margin-top: 12px;
    font-size: 18px;
    font-weight: 600;
}

.cliente-view-page .btn-primary {
    background: #1598e6;
    border-color: #1598e6;
}

.cliente-view-page .btn-primary:hover {
    background: #0d86ce;
    border-color: #0d86ce;
}

.receita-cliente-info {
    margin: 0;
}

.receita-cliente-info > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 8px;
    margin-bottom: 6px;
}

.receita-cliente-info dt {
    font-weight: 700;
    color: #4b5563;
    text-align: right;
}

.receita-cliente-info dd {
    margin: 0;
    color: #4b5563;
}

.receita-alerta {
    border-color: #ff9f43;
    background: #fff7ed;
    color: #6b4f28;
}

.receita-grade-wrapper {
    overflow-x: auto;
}

.receita-grade {
    min-width: 980px;
}

.receita-grade th {
    background: #f3f4f6;
    text-align: center;
    font-weight: 700;
    color: #4b5563;
    font-size: 13px;
}

.receita-grade td {
    vertical-align: middle;
}

.receita-grade input {
    min-width: 130px;
}

.receita-grupo {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-weight: 800;
    letter-spacing: 1px;
    background: #fff;
}

.receita-longe {
    color: #0d6efd;
    border: 1px solid #0d6efd !important;
}

.receita-perto {
    color: #dc3545;
    border: 1px solid #dc3545 !important;
}

.receita-olho {
    text-align: center;
    font-weight: 700;
}

.receita-anexo-card .card-header {
    background: #f5f5f5;
    font-weight: 500;
}

.receita-grade input {
    text-align: right;
    font-weight: 500;
}

.receita-grade input[name*="esferico"],
.receita-grade input[name*="cilindrico"],
.receita-grade input[name="adicao"] {
    color: #0d6efd;
}

.receita-grade input[name^="perto"] {
    color: #dc3545;
}

.receitas-historico-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.receitas-total {
    font-size: 34px;
    line-height: 1;
    font-weight: 300;
    color: #4b5563;
}

.receita-historico-card {
    border: 1px solid #1598e6;
    margin-bottom: 24px;
    background: #fff;
}

.receita-historico-title {
    background: #1598e6;
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
}

.receita-historico-body {
    padding: 28px;
}

.receita-resumo-card {
    min-height: 110px;
    border-radius: 7px;
    padding: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.receita-resumo-card i {
    font-size: 48px;
}

.receita-resumo-card small {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
}

.receita-resumo-card strong {
    display: block;
    font-size: 34px;
    font-weight: 700;
}

.receita-status-ok,
.receita-status-validade {
    background: linear-gradient(135deg, #2387c7, #1598e6);
}

.receita-status-vencida {
    background: linear-gradient(135deg, #dc3545, #f06565);
}

.receita-status-alerta {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.receita-meta {
    color: #555;
}

.receita-meta > div {
    margin-bottom: 6px;
}

.receita-meta strong {
    display: inline-block;
    width: 170px;
    text-align: right;
    margin-right: 8px;
}

.receita-historico-grade-wrapper {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 6px;
}

.receita-historico-grade {
    min-width: 860px;
    margin-bottom: 8px;
}

.receita-historico-grade th {
    background: #f3f4f6;
    text-align: center;
    font-weight: 700;
    color: #4b5563;
}

.receita-historico-grade td {
    text-align: center;
    color: #0d6efd;
}

.receita-historico-grade tbody tr:nth-child(n+3) td {
    color: #dc3545;
}

.receita-adicao-view {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding: 8px 14px;
    color: #555;
}

.receita-adicao-view span {
    min-width: 130px;
    border-bottom: 1px solid #e5e7eb;
    display: inline-block;
    text-align: right;
}

.receita-historico-actions .btn {
    margin: 4px;
}

@media (max-width: 768px) {
    .receitas-historico-header {
        display: block;
    }

    .receita-meta strong {
        width: auto;
        text-align: left;
        display: block;
    }

    .receita-resumo-card strong {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .receita-cliente-info > div {
        grid-template-columns: 1fr;
    }

    .receita-cliente-info dt {
        text-align: left;
    }
}

@media (max-width: 992px) {
    .cliente-side-actions {
        position: static;
    }

    .cliente-dados-lista > div {
        grid-template-columns: 1fr;
    }

    .cliente-dados-lista dt {
        text-align: left;
    }

    .historico-empty {
        font-size: 18px;
        padding: 24px;
    }
}

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

    .foto-editor-toolbar > div {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cliente-foto-box {
        max-width: 100%;
        height: 220px;
    }

    .page-header {
        display: block;
    }
}
/*
@media (max-width: 900px) {
    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .app-wrapper {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}
*/

.clientes-list-card {
    overflow: hidden;
}

.cliente-list-row {
    display: grid;
    grid-template-columns: 1.3fr 1.1fr 1.7fr auto;
    gap: 24px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background .15s ease;
}

.cliente-list-row:hover {
    background: #f8fafc;
}

.cliente-list-row:last-child {
    border-bottom: 0;
}

.cliente-list-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.cliente-list-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex: 0 0 46px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    display: grid;
    place-items: center;
}

.cliente-list-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cliente-list-sem-foto {
    width: 100%;
    height: 100%;
    color: #a1a1aa;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.cliente-list-nome {
    font-size: 17px;
    font-weight: 700;
    color: #4b5563;
    line-height: 1.2;
}

.cliente-list-empresa {
    color: #4b5563;
    font-size: 14px;
    margin-top: 3px;
}

.cliente-list-data {
    color: #4b5563;
    font-size: 14px;
    margin-top: 2px;
}

.cliente-list-contatos {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.cliente-list-contatos i {
    color: #374151;
    margin-right: 3px;
}

.cliente-list-endereco {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.4;
}

.cliente-list-badges {
    min-width: 190px;
    text-align: right;
    white-space: nowrap;
}

.cliente-list-badges .badge {
    background: #1598e6 !important;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 4px;
    margin-left: 4px;
    margin-bottom: 4px;
}

@media (max-width: 1200px) {
    .cliente-list-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cliente-list-badges {
        text-align: left;
        min-width: 0;
        white-space: normal;
    }
}

.print-body {
    background: #fff;
}

.receita-print {
    max-width: 980px;
}

.assinatura-linha {
    border-top: 1px solid #333;
    margin: 70px auto 8px;
    width: 80%;
}

@media print {
    body {
        background: #fff !important;
        font-size: 12px;
    }

    .receita-print {
        max-width: 100%;
        padding: 0 !important;
    }

    .receita-resumo-card,
    .btn,
    .no-print {
        display: none !important;
    }

    .table {
        font-size: 12px;
    }

    @page {
        margin: 12mm;
    }
}

.modal-impressao-receita {
    max-width: 82vw;
}

.receita-pdf-frame {
    width: 100%;
    height: 62vh;
    border: 0;
    background: #2f2f2f;
}

@media (max-width: 992px) {
    .modal-impressao-receita {
        max-width: 96vw;
    }

    .receita-pdf-frame {
        height: 70vh;
    }
}

.receita-pdf-frame {
    width: 100%;
    height: 65vh;
    border: 0;
    background: #2f2f2f;
}

.topbar {
    height: 76px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.topbar-menu-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #666;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 25px;
    margin-right: 14px;
}

.topbar-menu-toggle:hover {
    background: #f1f5f9;
    color: #333;
}

.funcionario-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #a1a1aa;
    flex: 0 0 42px;
}

.funcionario-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.funcionario-foto-box {
    width: 100%;
    max-width: 300px;
    height: 300px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.funcionario-foto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.funcionario-sem-foto {
    color: #b5b5b5;
    text-align: center;
    text-transform: uppercase;
}

.funcionario-sem-foto i {
    font-size: 95px;
    display: block;
    line-height: 1;
}

.funcionario-sem-foto span {
    display: block;
    font-size: 15px;
    margin-top: 12px;
    font-weight: 600;
}