:root {
    --logistics-sidebar: 220px;
    --logistics-sidebar-collapsed: 76px;
    --logistics-border: #e4e9f1;
    --logistics-muted: #718096;
    --logistics-orange: #ff6b00;
    --logistics-bg: #f5f7fb;
}

[data-theme="dark"] {
    --logistics-bg: #0F1117;
    --logistics-border: rgba(255, 255, 255, 0.08);
    --logistics-muted: #9CA3B8;
}

@media (min-width: 769px) {
    #entApp, #pcpApp, #mfApp {
        --mp-menu-width: var(--logistics-sidebar-collapsed);
        --mp-menu-header-height: 78px;
        --sidebar-width: var(--logistics-sidebar-collapsed);
    }

    #entApp > .sidebar, #pcpApp > .sidebar, #mfApp > .sidebar {
        z-index: 1200;
        width: var(--logistics-sidebar-collapsed);
        overflow-x: hidden;
        box-shadow: 1px 0 0 #e5eaf1;
        transition: width .22s ease, box-shadow .22s ease;
    }

    #entApp > .main-content, #pcpApp > .main-content, #mfApp > .main-content {
        margin-left: var(--logistics-sidebar-collapsed);
        width: calc(100% - var(--logistics-sidebar-collapsed));
        transition: margin-left .22s ease, width .22s ease;
    }

    #entApp > .sidebar:hover,
    #entApp > .sidebar:focus-within,
    #pcpApp > .sidebar:hover,
    #pcpApp > .sidebar:focus-within,
    #mfApp > .sidebar:hover,
    #mfApp > .sidebar:focus-within {
        width: var(--logistics-sidebar);
        overflow-x: visible;
        box-shadow: 12px 0 34px rgba(15, 23, 42, .13);
    }

    #entApp > .sidebar:not(:hover):not(:focus-within) .sidebar-brand-logo--expanded,
    #pcpApp > .sidebar:not(:hover):not(:focus-within) .sidebar-brand-logo--expanded,
    #mfApp > .sidebar:not(:hover):not(:focus-within) .sidebar-brand-logo--expanded {
        display: none;
    }

    #entApp > .sidebar:not(:hover):not(:focus-within) .sidebar-brand-logo--collapsed,
    #pcpApp > .sidebar:not(:hover):not(:focus-within) .sidebar-brand-logo--collapsed,
    #mfApp > .sidebar:not(:hover):not(:focus-within) .sidebar-brand-logo--collapsed {
        display: block;
    }

    #entApp > .sidebar:hover .sidebar-brand-logo--expanded,
    #entApp > .sidebar:focus-within .sidebar-brand-logo--expanded,
    #pcpApp > .sidebar:hover .sidebar-brand-logo--expanded,
    #pcpApp > .sidebar:focus-within .sidebar-brand-logo--expanded,
    #mfApp > .sidebar:hover .sidebar-brand-logo--expanded,
    #mfApp > .sidebar:focus-within .sidebar-brand-logo--expanded {
        display: block;
    }

    #entApp > .sidebar:hover .sidebar-brand-logo--collapsed,
    #entApp > .sidebar:focus-within .sidebar-brand-logo--collapsed,
    #pcpApp > .sidebar:hover .sidebar-brand-logo--collapsed,
    #pcpApp > .sidebar:focus-within .sidebar-brand-logo--collapsed,
    #mfApp > .sidebar:hover .sidebar-brand-logo--collapsed,
    #mfApp > .sidebar:focus-within .sidebar-brand-logo--collapsed {
        display: none;
    }

    #entApp > .sidebar:not(:hover):not(:focus-within) .nav-item,
    #pcpApp > .sidebar:not(:hover):not(:focus-within) .nav-item,
    #mfApp > .sidebar:not(:hover):not(:focus-within) .nav-item {
        justify-content: center;
        padding-inline: 8px;
    }

    #entApp > .sidebar:not(:hover):not(:focus-within) .nav-item span,
    #pcpApp > .sidebar:not(:hover):not(:focus-within) .nav-item span,
    #mfApp > .sidebar:not(:hover):not(:focus-within) .nav-item span,
    #entApp > .sidebar:not(:hover):not(:focus-within) .ent-nav-sub,
    #pcpApp > .sidebar:not(:hover):not(:focus-within) .ent-nav-sub,
    #mfApp > .sidebar:not(:hover):not(:focus-within) .ent-nav-sub,
    #entApp > .sidebar:not(:hover):not(:focus-within) .sidebar-footer .user-details,
    #pcpApp > .sidebar:not(:hover):not(:focus-within) .sidebar-footer .user-details,
    #mfApp > .sidebar:not(:hover):not(:focus-within) .sidebar-footer .user-details,
    #entApp > .sidebar:not(:hover):not(:focus-within) .ent-side-brand > div:last-child {
        display: none;
    }

    #entApp > .sidebar:not(:hover):not(:focus-within) .sidebar-footer,
    #pcpApp > .sidebar:not(:hover):not(:focus-within) .sidebar-footer,
    #mfApp > .sidebar:not(:hover):not(:focus-within) .sidebar-footer {
        padding-inline: 10px;
    }

    #entApp > .sidebar:not(:hover):not(:focus-within) .ent-side-brand,
    #pcpApp > .sidebar:not(:hover):not(:focus-within) .user-info,
    #mfApp > .sidebar:not(:hover):not(:focus-within) .user-info {
        justify-content: center;
    }

    #entApp .sidebar-toggle,
    #pcpApp .sidebar-toggle,
    #mfApp .sidebar-toggle {
        display: none;
    }
}

#entApp .sidebar-header, #pcpApp .sidebar-header, #mfApp .sidebar-header {
    min-height: 78px;
    padding: 12px 10px;
}

#entApp .sidebar-brand-logo--expanded,
#pcpApp .sidebar-brand-logo--expanded,
#mfApp .sidebar-brand-logo--expanded {
    width: 146px;
    max-width: 146px;
    max-height: 54px;
    object-fit: contain;
}

#entApp .sidebar-nav, #pcpApp .sidebar-nav, #mfApp .sidebar-nav {
    gap: 3px;
    padding: 10px 8px;
}

#entApp .sidebar-nav .nav-item,
#pcpApp .sidebar-nav .nav-item,
#mfApp .sidebar-nav .nav-item {
    min-height: 43px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: .84rem;
    gap: 11px;
}

#entApp .sidebar-nav .nav-item i,
#pcpApp .sidebar-nav .nav-item i,
#mfApp .sidebar-nav .nav-item i {
    width: 20px;
    font-size: 1rem;
}

#entApp .ent-side-brand__mark {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    font: inherit;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}

#entApp .ent-side-brand__mark:hover,
#entApp .ent-side-brand__mark.is-open {
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, .14);
}

#entApp .ent-side-brand__mark img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

#entApp .ent-side-brand__mark img[hidden],
#entApp .ent-side-brand__mark span[hidden] {
    display: none;
}

#entApp .ent-avatar-control {
    position: relative;
    flex: 0 0 auto;
}

#entApp .ent-avatar-menu {
    position: absolute;
    z-index: 50;
    bottom: calc(100% + 11px);
    left: 0;
    width: 162px;
    padding: 6px;
    border: 1px solid #dfe5ed;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .18);
    animation: ent-avatar-menu-in .16s ease-out both;
}

#entApp .ent-avatar-menu[hidden] { display: none; }

#entApp .ent-avatar-menu::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 18px;
    width: 10px;
    height: 10px;
    border-right: 1px solid #dfe5ed;
    border-bottom: 1px solid #dfe5ed;
    background: #fff;
    transform: rotate(45deg);
}

#entApp .ent-avatar-menu button {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

#entApp .ent-avatar-menu button:hover { background: #fff4eb; color: #d95500; }
#entApp .ent-avatar-menu button:disabled { opacity: .65; cursor: wait; }

@keyframes ent-avatar-menu-in {
    from { opacity: 0; transform: translateY(5px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ent-profile-modal {
    position: fixed;
    z-index: 6500;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ent-profile-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity .18s ease;
}

.ent-profile-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(430px, calc(100vw - 32px));
    padding: 26px;
    border: 1px solid #e1e7ef;
    border-radius: 18px;
    background: #fff;
    color: #172033;
    text-align: center;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
    opacity: 0;
    transform: translateY(12px) scale(.985);
    transition: opacity .18s ease, transform .18s ease;
}

.ent-profile-modal.is-open .ent-profile-modal__backdrop { opacity: 1; }
.ent-profile-modal.is-open .ent-profile-modal__dialog { opacity: 1; transform: none; }

.ent-profile-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: #f5f7fa;
    color: #64748b;
    cursor: pointer;
}

.ent-profile-modal__close:hover { background: #fff1f2; color: #dc2f3c; }

.ent-profile-modal__header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-right: 38px;
    text-align: left;
}

.ent-profile-modal__icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: #fff1f2;
    color: #e63946;
}

.ent-profile-modal__header span { color: #8a98aa; font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.ent-profile-modal__header h2 { margin: 2px 0 0; font-size: 1.13rem; }

.ent-profile-modal__preview {
    position: relative;
    display: grid;
    place-items: center;
    width: 116px;
    height: 116px;
    margin: 25px auto 14px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a18, #ef3e4a);
    color: #fff;
    box-shadow: 0 0 0 1px #fed7d9, 0 14px 32px rgba(239, 62, 74, .2);
    font-size: 1.65rem;
    font-weight: 800;
}

.ent-profile-modal__preview img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ent-profile-modal__preview img[hidden],
.ent-profile-modal__preview span[hidden] { display: none; }

.ent-profile-modal__preview button {
    position: absolute;
    right: -2px;
    bottom: 2px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #ef3e4a;
    color: #fff;
    cursor: pointer;
}

.ent-profile-modal__dialog > strong { display: block; font-size: 1.03rem; }
.ent-profile-modal__dialog > p { max-width: 330px; margin: 7px auto 0; color: #718096; font-size: .78rem; line-height: 1.55; }

.ent-profile-modal__actions {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 9px;
    margin-top: 22px;
}

.ent-profile-modal__actions button { min-height: 44px; }

#entApp .topbar, #pcpApp .topbar, #mfApp .topbar {
    min-height: 70px;
    padding: 10px 20px;
}

#entApp .page-content, #pcpApp .page-content, #mfApp .page-content {
    padding: 16px 20px 26px;
    background: var(--logistics-bg);
}

#entApp .ent-panel,
#entApp .ent-card,
#pcpApp .pcp-panel,
#mfApp .card-panel {
    border: 1px solid var(--logistics-border);
    border-radius: 13px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .035);
}

#entApp .ent-overview-card {
    padding: 16px 18px;
}

#entApp .ent-kpi-grid, #entApp .ent-kpi-row {
    gap: 10px;
}

#entApp .ent-kpi {
    min-height: 84px;
    padding: 13px 14px;
    border-radius: 11px;
}

#entApp .ent-toolbar, #entApp .ent-filter-grid {
    align-items: end;
    gap: 10px;
}

#entApp .ent-candidates {
    display: grid;
    gap: 7px;
}

#entApp .ent-cand {
    min-height: 74px;
    padding: 11px 14px;
    border-radius: 10px;
}

.ent-pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 56px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--logistics-border);
    color: var(--logistics-muted);
    font-size: .82rem;
}

.ent-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ent-pagination button {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #dbe2ec;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ent-pagination button:hover:not(:disabled),
.ent-pagination button.is-active {
    border-color: var(--logistics-orange);
    background: var(--logistics-orange);
    color: #fff;
}

.ent-pagination button:disabled {
    opacity: .42;
    cursor: default;
}

.ent-page-gap {
    display: inline-grid;
    place-items: center;
    width: 24px;
    color: var(--logistics-muted);
}

#entApp .ent-form-feedback {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 600;
}

#entApp .ent-form-feedback[hidden] { display: none; }

#entApp .ent-form-feedback.is-error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b42318;
}

#entApp .ent-form-feedback.is-success {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

#entApp input.is-invalid,
#entApp .ent-password-wrap:has(input.is-invalid) {
    border-color: #e5484d !important;
    box-shadow: 0 0 0 3px rgba(229, 72, 77, .12) !important;
}

.ent-toast-stack {
    position: fixed;
    z-index: 100000;
    top: 18px;
    right: 18px;
    display: grid;
    gap: 9px;
    width: min(390px, calc(100vw - 28px));
    pointer-events: none;
}

.ent-toast {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 16px 45px rgba(15, 23, 42, .18);
    font-size: .86rem;
    font-weight: 650;
    pointer-events: auto;
    animation: ent-toast-in .22s ease-out both;
}

.ent-toast.is-error > i { color: #dc2626; }
.ent-toast.is-success > i { color: #059669; }

.ent-toast button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.ent-toast button:hover { background: #f1f5f9; }
.ent-toast.is-leaving { animation: ent-toast-out .18s ease-in both; }

#entApp .ent-btn-table.is-delete {
    border-color: transparent;
    color: #b42318;
}

#entApp .ent-btn-table.is-delete:hover {
    border-color: #fecaca;
    background: #fff1f2;
    color: #dc2626;
}

.ent-confirm {
    position: fixed;
    z-index: 6000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ent-confirm__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(15, 23, 42, .6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .18s ease;
}

.ent-confirm__dialog {
    position: relative;
    z-index: 1;
    width: min(440px, calc(100vw - 32px));
    padding: 26px;
    border: 1px solid #fee2e2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .3);
    opacity: 0;
    transform: translateY(12px) scale(.985);
    transition: opacity .18s ease, transform .18s ease;
}

.ent-confirm.is-open .ent-confirm__backdrop { opacity: 1; }
.ent-confirm.is-open .ent-confirm__dialog { opacity: 1; transform: none; }

.ent-confirm__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #fff1f2;
    color: #dc2626;
    font-size: 1.15rem;
}

.ent-confirm h2 { margin: 0 0 8px; color: #172033; font-size: 1.2rem; }
.ent-confirm p { margin: 0; color: #64748b; font-size: .88rem; line-height: 1.55; }

.ent-confirm__notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 11px 12px;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: .76rem;
    line-height: 1.45;
}

.ent-confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 20px;
}

.ent-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #dc2626;
    border-radius: 9px;
    background: #dc2626;
    color: #fff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.ent-btn-danger:hover { background: #b91c1c; }
.ent-btn-danger:disabled { opacity: .65; cursor: wait; }

@keyframes ent-toast-in {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ent-toast-out {
    to { opacity: 0; transform: translateY(-6px) scale(.98); }
}

body.ent-modal-open {
    overflow: hidden;
}

#entApp .ent-modal {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

#entApp .ent-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(4px);
    cursor: default;
    opacity: 0;
    transition: opacity .18s ease;
}

#entApp .ent-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 44px));
    max-height: calc(100vh - 44px);
    margin: 0;
    padding: 0 20px 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
    opacity: 0;
    transform: translateY(14px) scale(.985);
    transition: opacity .18s ease, transform .18s ease;
}

#entApp .ent-modal.is-open .ent-modal__backdrop { opacity: 1; }

#entApp .ent-modal.is-open .ent-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#entApp .ent-modal .ent-liberar__head {
    position: sticky;
    z-index: 4;
    top: 0;
    margin: 0 -20px 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5eaf1;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
}

#entApp .ent-modal .ent-liberar__brand img {
    max-width: 76px;
    max-height: 42px;
}

#entApp .ent-modal__close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-left: auto;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #fff;
    color: #526076;
    cursor: pointer;
}

#entApp .ent-modal__close:hover {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #dc2f3c;
}

#entApp .ent-modal .ent-liberar__alert {
    margin-bottom: 12px;
}

#entApp .ent-modal .ent-liberar__section {
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 12px;
}

#entApp .ent-modal .ent-detalhe__actions {
    position: sticky;
    z-index: 4;
    bottom: 0;
    margin: 4px -20px 0;
    padding: 14px 20px;
    border-top: 1px solid #e5eaf1;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
}

@media (max-width: 700px) {
    #entApp .ent-modal {
        align-items: flex-end;
        padding: 0;
    }

    #entApp .ent-modal__dialog {
        width: 100%;
        max-height: 94vh;
        border-radius: 18px 18px 0 0;
    }

    #entApp .ent-modal .ent-form-grid {
        grid-template-columns: 1fr;
    }

    #entApp .ent-modal .ent-form-grid > * {
        grid-column: auto !important;
    }
}

#entApp .ent-config-grid {
    display: grid;
    grid-template-columns: minmax(280px, .7fr) minmax(520px, 1.3fr);
    gap: 16px;
    align-items: start;
}

#entApp .ent-config-card {
    padding: 22px;
    overflow: hidden;
    background: linear-gradient(155deg, #fff 68%, #fff8f8 140%);
}

#entApp .ent-config-card .ent-section-heading {
    margin-bottom: 24px;
}

#entApp .ent-config-field {
    display: grid;
    gap: 9px;
}

#entApp .ent-config-field label,
#entApp .ent-config-form label {
    color: #475569;
    font-size: .76rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .025em;
}

#entApp .ent-config-number {
    display: flex;
    align-items: stretch;
    max-width: 310px;
    height: 46px;
}

#entApp .ent-config-number input {
    width: 170px;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #cfd8e5;
    border-radius: 9px 0 0 9px;
    background: #fff;
    color: #172033;
    font: inherit;
    font-size: 1rem;
    font-weight: 750;
    outline: none;
    appearance: textfield;
}

#entApp .ent-config-number input:focus {
    border-color: #ef3e4a;
    box-shadow: inset 0 0 0 1px #ef3e4a;
}

#entApp .ent-config-number span {
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #dbe2ec;
    border-left: 0;
    border-radius: 0 9px 9px 0;
    background: #f8fafc;
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
}

#entApp .ent-config-field small {
    max-width: 360px;
    color: #7c8aa0;
    line-height: 1.5;
}

#entApp .ent-config-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

#entApp .ent-config-presets button {
    padding: 7px 11px;
    border: 1px solid #dde4ed;
    border-radius: 999px;
    background: #fff;
    color: #5b677a;
    font: inherit;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
}

#entApp .ent-config-presets button:hover,
#entApp .ent-config-presets button.is-active {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #d72e3c;
}

#entApp .ent-config-preview {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 8px;
    padding: 11px 12px;
    border: 1px solid #fde2e4;
    border-radius: 10px;
    background: #fff7f7;
    color: #8f3b42;
    font-size: .78rem;
    line-height: 1.45;
}

#entApp .ent-config-preview i { margin-top: 2px; color: #ef3e4a; }

#entApp .ent-config-form {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

#entApp .ent-config-col-1 { grid-column: span 1; }
#entApp .ent-config-col-2 { grid-column: span 2; }
#entApp .ent-config-col-3 { grid-column: span 3; }
#entApp .ent-config-col-4 { grid-column: span 4; }
#entApp .ent-config-col-5 { grid-column: span 5; }
#entApp .ent-config-col-6 { grid-column: span 6; }

#entApp .ent-config-form input {
    min-width: 0;
    width: 100%;
    height: 46px;
}

#entApp .ent-config-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding: 14px 18px;
    border-left: 4px solid #ef3e4a;
}

#entApp .ent-config-actions > div:first-child {
    display: grid;
    gap: 3px;
}

#entApp .ent-config-actions span {
    color: #7c8aa0;
    font-size: .78rem;
}

#entApp .ent-config-actions span i { margin-right: 5px; color: #0f9f78; }

@media (max-width: 1100px) {
    #entApp .ent-config-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    #entApp .ent-config-form { grid-template-columns: 1fr; }
    #entApp .ent-config-form > * { grid-column: auto; }
    #entApp .ent-config-actions { align-items: stretch; flex-direction: column; }
    #entApp .ent-config-actions .ent-actions { display: grid; }
}

@media (min-width: 1000px) {
    #entApp #tab-liberar .ent-toolbar--primary {
        display: grid;
        grid-template-columns: minmax(320px, 1fr) 190px auto;
    }

    #entApp #tab-lista .ent-toolbar--primary {
        display: grid;
        grid-template-columns: minmax(230px, 1.25fr) minmax(150px, .72fr) minmax(170px, .85fr) 148px 148px auto;
    }

    #entApp .ent-toolbar--primary > input,
    #entApp .ent-toolbar--primary > select,
    #entApp .ent-toolbar--primary > button {
        width: 100%;
        min-width: 0 !important;
        margin: 0;
    }

    #entApp .ent-list-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
    }

    #entApp .ent-list-head__actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-direction: row;
        gap: 9px;
        width: auto;
    }

    #entApp .ent-list-head__actions .ent-select--sm {
        width: 280px;
    }

    #entApp .ent-list-head__actions .ent-btn-ghost {
        width: auto;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    #entApp .page-content, #pcpApp .page-content, #mfApp .page-content {
        padding: 12px;
    }

    .ent-pagination-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
