*{box-sizing:border-box}

:root{
    --primary:#183f72;
    --primary-dark:#102e55;
    --background:#f4f6f9;
    --border:#e1e6ed;
    --text:#17202a;
    --muted:#687386;
}

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

.login-body{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#edf1f6;
}

.login-card{
    width:min(430px,92vw);
    background:#fff;
    padding:42px;
    border-radius:16px;
    box-shadow:0 14px 40px rgba(20,40,70,.12);
}

.brand-mark{
    width:62px;
    height:62px;
    border-radius:14px;
    background:var(--primary);
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    margin-bottom:22px;
}

.login-card h1{
    margin:0;
    font-size:30px;
}

.subtitle{
    margin:6px 0 28px;
    color:var(--muted);
}

label{
    display:block;
    font-weight:600;
    margin:18px 0 7px;
}

input{
    width:100%;
    height:48px;
    padding:0 14px;
    border:1px solid #ccd3dc;
    border-radius:8px;
    font-size:16px;
}

button{
    width:100%;
    height:50px;
    margin-top:24px;
    border:0;
    border-radius:8px;
    background:var(--primary);
    color:white;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}

.login-note{
    text-align:center;
    color:var(--muted);
    font-size:13px;
    margin-top:25px;
}

.alert{
    padding:12px;
    background:#fff0f0;
    border:1px solid #efcccc;
    border-radius:7px;
    margin:20px 0;
}

.topbar{
    height:70px;
    background:#fff;
    border-bottom:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 28px;
}

.topbar strong{
    font-size:21px;
    color:var(--primary);
}

.topbar span{
    margin-left:12px;
    color:var(--muted);
}

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

.account small{
    color:var(--muted);
}

.account a{
    color:var(--primary);
    text-decoration:none;
    margin-left:10px;
}

.layout{
    display:grid;
    grid-template-columns:235px 1fr;
    min-height:calc(100vh - 70px);
}

aside{
    background:var(--primary-dark);
    padding:24px 14px;
}

aside a{
    display:block;
    padding:12px 14px;
    color:#dbe6f4;
    text-decoration:none;
    border-radius:7px;
    margin-bottom:3px;
}

aside a:hover,
aside a.active{
    background:rgba(255,255,255,.11);
    color:#fff;
}

.menu-title{
    color:#8fa9c7;
    font-size:11px;
    text-transform:uppercase;
    margin:28px 14px 8px;
    letter-spacing:.08em;
}

main{
    padding:32px;
}

.page-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.page-title h1{
    margin:0;
    font-size:27px;
}

.page-title p{
    margin:5px 0 0;
    color:var(--muted);
}

.status-development{
    background:#fff3cd;
    padding:8px 12px;
    border-radius:20px;
    font-size:13px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:11px;
    padding:22px;
}

.card span{
    display:block;
    color:var(--muted);
    font-size:14px;
}

.card strong{
    display:block;
    font-size:31px;
    margin-top:10px;
}

.panel{
    margin-top:22px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:11px;
    padding:25px;
}

.panel h2{
    margin-top:0;
}

.panel p{
    color:var(--muted);
}

.info-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
    margin-top:25px;
}

.info-grid div{
    padding:16px;
    background:#f7f9fb;
    border-radius:8px;
}

.info-grid strong,
.info-grid span{
    display:block;
}

.info-grid span{
    margin-top:5px;
    color:var(--muted);
}

.status-off{
    color:#a94442!important;
}

@media(max-width:900px){
    .layout{
        grid-template-columns:1fr;
    }

    aside{
        display:none;
    }

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

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

@media(max-width:550px){
    main{
        padding:18px;
    }

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

    .topbar span{
        display:none;
    }

    .account small{
        display:none;
    }
}

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

.mini-brand{
    width:40px;
    height:40px;
    border-radius:9px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--primary);
    color:#fff;
    font-weight:700;
}

.btn-primary,
.btn-secondary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 16px;
    border-radius:7px;
    text-decoration:none;
    font-weight:600;
    font-size:14px;
}

.btn-primary{
    background:var(--primary);
    color:#fff;
}

.btn-secondary{
    background:#fff;
    color:var(--primary);
    border:1px solid #ccd5df;
}

.page-actions{
    display:flex;
    gap:10px;
}

.cards.compact{
    grid-template-columns:repeat(3,1fr);
    max-width:800px;
    margin-bottom:20px;
}

.search-bar{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.search-bar input{
    flex:1;
}

.search-bar button{
    width:auto;
    margin:0;
    padding:0 20px;
}

.table-wrap{
    overflow:auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

th{
    text-align:left;
    color:var(--muted);
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.04em;
    padding:12px;
    border-bottom:1px solid var(--border);
}

td{
    padding:15px 12px;
    border-bottom:1px solid var(--border);
    vertical-align:middle;
}

td small{
    display:block;
    color:var(--muted);
    margin-top:4px;
}

.actions{
    text-align:right;
}

.actions a{
    color:var(--primary);
    text-decoration:none;
    font-weight:600;
}

.badge{
    display:inline-block;
    border-radius:20px;
    padding:5px 9px;
    font-size:12px;
}

.badge.success{
    background:#e8f6ee;
    color:#267448;
}

.badge.danger{
    background:#fdecec;
    color:#a13d3d;
}

.badge.info{
    background:#e9f1fb;
    color:#285d96;
}

.muted{
    color:var(--muted);
}

.empty{
    text-align:center;
    color:var(--muted);
    padding:40px;
}

.form-panel{
    max-width:1000px;
}

.form-section{
    padding-bottom:25px;
    margin-bottom:25px;
    border-bottom:1px solid var(--border);
}

.form-section:last-of-type{
    border-bottom:0;
}

.form-section h2{
    font-size:18px;
    margin:0 0 18px;
}

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

.field label{
    margin:0 0 7px;
}

.field select{
    width:100%;
    height:48px;
    border:1px solid #ccd3dc;
    border-radius:8px;
    padding:0 12px;
    background:#fff;
    font-size:15px;
}

.field small{
    display:block;
    margin-top:6px;
    color:var(--muted);
}

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

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

.form-actions button{
    width:auto;
    margin:0;
    padding:0 20px;
}

.flash{
    margin-bottom:20px;
    padding:14px 16px;
    border-radius:8px;
}

.flash.success{
    background:#e9f7ef;
    color:#276944;
}

.flash.error{
    background:#fdecec;
    color:#963838;
}

.two-columns{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.two-columns .panel{
    margin-top:0;
}

.inline-form{
    display:flex;
    gap:10px;
}

.inline-form input{
    flex:1;
}

.inline-form button{
    width:auto;
    margin:0;
    padding:0 18px;
}

.simple-list{
    list-style:none;
    margin:20px 0 0;
    padding:0;
}

.simple-list li{
    padding:11px 5px;
    border-bottom:1px solid var(--border);
}

@media(max-width:800px){

    .form-grid,
    .two-columns{
        grid-template-columns:1fr;
    }

    .span-2{
        grid-column:auto;
    }

    .cards.compact{
        grid-template-columns:1fr;
    }

    .page-actions{
        flex-direction:column;
    }
}

.section-help{
    color:var(--muted);
    margin:-8px 0 20px;
}

.schedule-panel{
    max-width:none;
}

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

.schedule-table{
    min-width:900px;
}

.schedule-table input[type=time]{
    min-width:120px;
    height:42px;
}

.schedule-table input[type=checkbox]{
    width:auto;
    height:auto;
}

.switch-label{
    display:flex;
    align-items:center;
    gap:7px;
    margin:0;
    font-weight:400;
}

.input-suffix{
    display:flex;
    align-items:center;
}

.input-suffix input{
    border-radius:8px 0 0 8px;
}

.input-suffix span{
    height:48px;
    display:flex;
    align-items:center;
    padding:0 12px;
    border:1px solid #ccd3dc;
    border-left:0;
    border-radius:0 8px 8px 0;
    background:#f6f8fa;
    color:var(--muted);
}

.sidebar a.active{
    background:rgba(255,255,255,.12);
    font-weight:600;
}

.brand-text{
    display:flex;
    align-items:baseline;
    gap:14px;
}

.brand-text strong{
    font-size:20px;
}

.brand-text span{
    color:var(--muted);
}

.dashboard-cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin-bottom:22px;
}

.dashboard-main h2{
    margin-top:0;
}

.dashboard-status-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
    margin-top:25px;
}

.status-box{
    background:#f5f7f9;
    padding:16px;
    border-radius:8px;
}

.status-box strong,
.status-box span{
    display:block;
}

.status-box span{
    color:var(--muted);
    margin-top:4px;
}

.status-box .status-disabled{
    color:#c24646;
}

.development-badge{
    display:inline-flex;
    align-items:center;
    padding:8px 14px;
    border-radius:20px;
    background:#fff0c9;
    font-size:13px;
}

.development-panel{
    text-align:center;
    padding:60px 30px;
}

.development-icon{
    width:64px;
    height:64px;
    margin:0 auto 18px;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--primary);
    color:#fff;
    font-weight:700;
    font-size:18px;
}

.development-panel h2{
    margin:0 0 10px;
}

.development-panel p{
    color:var(--muted);
}

.status-notice{
    max-width:650px;
    margin:25px auto 0;
    padding:15px;
    border-radius:8px;
    background:#fff5f5;
    color:#8f3d3d;
}

.status-notice strong{
    display:block;
    margin-bottom:4px;
}

@media(max-width:1000px){

    .dashboard-cards{
        grid-template-columns:repeat(2,1fr);
    }

    .dashboard-status-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:650px){

    .dashboard-cards{
        grid-template-columns:1fr;
    }

    .brand-text span{
        display:none;
    }
}

/* ==================================================
   IDENTIDADE VISUAL - COLEGIO CRISTAO PLENITUDE
   ================================================== */

.ccp-logo{
    display:block;
    object-fit:contain;
}

.header-logo{
    width:52px;
    height:52px;
    flex:0 0 52px;
}

.ccp-logo-placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--primary);
    color:#fff;
    font-weight:700;
}

.ccp-logo-placeholder.header-logo{
    width:42px;
    height:42px;
    border-radius:9px;
    flex:0 0 42px;
}

.login-logo-image{
    display:block;
    width:180px;
    max-width:70%;
    height:auto;
    max-height:145px;
    object-fit:contain;
    margin:0 0 18px;
}

.ccp-logo-placeholder.login-logo-image{
    width:62px;
    height:62px;
    border-radius:14px;
    margin:0 0 20px;
}

.topbar{
    min-height:72px;
}

.brand-area{
    min-width:0;
}

.brand-text strong{
    color:#123b70;
}

.sidebar{
    box-shadow:
        inset -1px 0
        rgba(255,255,255,.04);
}

.sidebar a{
    transition:
        background .15s ease,
        padding-left .15s ease;
}

.sidebar a:hover{
    background:rgba(255,255,255,.08);
}

.sidebar a.active{
    background:rgba(255,255,255,.13);
}

.card,
.panel{
    box-shadow:
        0 1px 2px
        rgba(20,40,70,.025);
}

button,
.btn-primary,
.btn-secondary{
    transition:
        transform .1s ease,
        opacity .15s ease,
        box-shadow .15s ease;
}

button:hover,
.btn-primary:hover{
    opacity:.95;
}

.btn-primary:active,
button:active{
    transform:translateY(1px);
}

@media(max-width:700px){

    .header-logo{
        width:42px;
        height:42px;
        flex-basis:42px;
    }

    .login-logo-image{
        width:145px;
    }
}

.ponto-filter{
    display:flex;
    gap:14px;
    align-items:flex-end;
    margin-bottom:22px;
}

.ponto-filter label{
    display:flex;
    flex-direction:column;
    gap:7px;
    font-weight:600;
}

.ponto-filter input{
    min-width:190px;
}

.table-wrap{
    width:100%;
    overflow-x:auto;
}

.data-table{
    width:100%;
    border-collapse:collapse;
}

.data-table th{
    text-align:left;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.03em;
    color:var(--muted);
    padding:13px 12px;
    border-bottom:1px solid #dce3eb;
}

.data-table td{
    padding:16px 12px;
    border-bottom:1px solid #e5eaf0;
    vertical-align:middle;
}

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

.punch-list{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.punch-list span{
    padding:5px 8px;
    border-radius:6px;
    background:#eef3f8;
    font-size:13px;
}

.balance-negative{
    color:#b42318;
    font-weight:700;
}

.balance-positive{
    color:#16794b;
    font-weight:700;
}

.status-pill{
    display:inline-flex;
    padding:6px 9px;
    border-radius:20px;
    white-space:nowrap;
    font-size:12px;
    font-weight:600;
    background:#eef2f6;
}

.status-complete{
    background:#e8f7ef;
    color:#16794b;
}

.status-incomplete,
.status-missing{
    background:#fff1ee;
    color:#b42318;
}

.status-day_off{
    background:#eef2f6;
}

.status-worked_day_off{
    background:#fff4d8;
    color:#805b00;
}

.simulator-warning{
    padding:16px 18px;
    margin-bottom:24px;
    border-radius:8px;
    background:#fff4d8;
    color:#6f5100;
}

.simulator-warning strong{
    display:block;
    margin-bottom:5px;
}

.empty-state{
    padding:35px 15px;
    text-align:center;
    color:var(--muted);
}

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

.field{
    display:flex;
    flex-direction:column;
    gap:7px;
    font-weight:600;
}

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

.field input,
.field select{
    width:100%;
}

@media(max-width:750px){

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

    .ponto-filter{
        align-items:stretch;
        flex-direction:column;
    }
}

.occurrence-filters{
    display:grid;
    grid-template-columns:2fr 1fr 1fr auto;
    gap:14px;
    align-items:end;
    margin-bottom:24px;
}

.occurrence-filters label{
    display:flex;
    flex-direction:column;
    gap:7px;
    font-weight:600;
}

.occurrence-filters input,
.occurrence-filters select{
    width:100%;
}

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

.detail-grid div{
    padding:16px;
    border:1px solid #e3e8ee;
    border-radius:8px;
}

.detail-grid span,
.detail-description > span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:6px;
}

.detail-description{
    margin:20px 0;
}

.review-note{
    margin:20px 0;
    padding:16px;
    border-radius:8px;
    background:#f4f6f8;
}

.review-actions{
    display:flex;
    gap:10px;
    margin-top:16px;
}

.btn-danger{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:7px;
    padding:10px 16px;
    background:#b42318;
    color:#fff;
    font-weight:600;
    cursor:pointer;
}

.status-approved{
    background:#e8f7ef;
    color:#16794b;
}

.status-rejected{
    background:#fff1ee;
    color:#b42318;
}

.status-pending{
    background:#fff4d8;
    color:#805b00;
}

@media(max-width:850px){

    .occurrence-filters{
        grid-template-columns:1fr;
    }

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

}

.adjustment-filter{
    display:grid;
    grid-template-columns:2fr 1fr auto;
    gap:14px;
    align-items:end;
    margin-bottom:24px;
}

.adjustment-filter label{
    display:flex;
    flex-direction:column;
    gap:7px;
    font-weight:600;
}

.adjustment-filter select,
.adjustment-filter input{
    width:100%;
}

.adjustment-employee{
    display:flex;
    justify-content:space-between;
    gap:15px;
    align-items:center;
    padding:16px 18px;
    margin-bottom:18px;
    border-radius:8px;
    background:#f4f6f8;
}

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

.adjustment-summary div{
    padding:16px;
    border:1px solid #e1e7ed;
    border-radius:8px;
}

.adjustment-summary span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:6px;
}

.adjustment-summary strong{
    font-size:19px;
}

.adjustment-actions{
    margin:18px 0 26px;
}

.section-heading{
    margin-top:28px;
    margin-bottom:12px;
    font-size:17px;
}

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

.original-punch-box{
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:18px;
    margin-bottom:22px;
    border:1px solid #dce3ea;
    border-radius:8px;
    background:#f7f9fb;
}

.original-punch-box span,
.original-punch-box small{
    color:var(--muted);
}

.original-punch-box strong{
    font-size:20px;
}

.warning-box{
    padding:16px;
    border-radius:8px;
    background:#fff4d8;
    color:#6f5100;
}

.empty-state.compact{
    padding:20px 10px;
}

.ponto-admin-actions{
    display:flex;
    justify-content:flex-end;
    margin-bottom:14px;
}

@media(max-width:800px){

    .adjustment-filter{
        grid-template-columns:1fr;
    }

    .adjustment-summary{
        grid-template-columns:1fr 1fr;
    }

}

@media(max-width:520px){

    .adjustment-summary{
        grid-template-columns:1fr;
    }

    .adjustment-employee{
        align-items:flex-start;
        flex-direction:column;
    }

}

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

.bank-card{
    padding:20px;
    border-radius:10px;
    background:#fff;
    border:1px solid #e2e7ec;
}

.bank-card span{
    display:block;
    color:var(--muted);
    font-size:13px;
    margin-bottom:8px;
}

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

.bank-filter{
    display:grid;
    grid-template-columns:1fr auto;
    gap:14px;
    align-items:end;
    margin-bottom:22px;
}

.bank-filter label,
.bank-period-filter label{
    display:flex;
    flex-direction:column;
    gap:7px;
    font-weight:600;
}

.bank-filter input{
    width:100%;
}

.bank-balance-highlight{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px;
    margin-bottom:18px;
    border-radius:10px;
    background:#fff;
    border:1px solid #e2e7ec;
}

.bank-balance-highlight span{
    color:var(--muted);
}

.bank-balance-highlight strong{
    font-size:27px;
}

.bank-period-filter{
    display:flex;
    flex-wrap:wrap;
    align-items:end;
    gap:14px;
    margin-bottom:22px;
}

.page-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

@media(max-width:750px){

    .bank-overview{
        grid-template-columns:1fr;
    }

    .bank-filter{
        grid-template-columns:1fr;
    }

    .bank-balance-highlight{
        align-items:flex-start;
        flex-direction:column;
        gap:8px;
    }

    .bank-period-filter{
        align-items:stretch;
        flex-direction:column;
    }

}

.closing-period{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    align-items:end;
    margin-bottom:20px;
}

.closing-period label{
    display:flex;
    flex-direction:column;
    gap:7px;
    font-weight:600;
}

.closing-period-title{
    margin:10px 0 22px;
    font-size:19px;
}

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

.closing-summary > div{
    padding:18px;
    background:#fff;
    border:1px solid #e2e7ec;
    border-radius:10px;
}

.closing-summary span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:7px;
}

.closing-summary strong{
    font-size:21px;
}

.closing-pending{
    margin-bottom:18px;
}

.closing-pending h2{
    margin-top:0;
}

.closing-status-box{
    display:flex;
    flex-direction:column;
    gap:5px;
    margin-bottom:20px;
}

.closing-status-box span,
.closing-status-box small{
    color:var(--muted);
}

.closing-status-box strong{
    font-size:20px;
}

.closing-action-form{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.success-box{
    padding:16px;
    margin-bottom:20px;
    border-radius:8px;
    background:#e8f7ef;
    color:#16633f;
}

.status-open{
    background:#fff4d8;
    color:#805b00;
}

.status-closed{
    background:#e7f0ff;
    color:#174ea6;
}

.status-accepted{
    background:#e8f7ef;
    color:#16794b;
}

@media(max-width:850px){

    .closing-summary{
        grid-template-columns:1fr 1fr;
    }

}

@media(max-width:520px){

    .closing-summary{
        grid-template-columns:1fr;
    }

    .closing-period{
        align-items:stretch;
        flex-direction:column;
    }

}

.sheet-filter{
    display:grid;
    grid-template-columns:2fr 1fr 1fr auto;
    gap:14px;
    align-items:end;
    margin-bottom:20px;
}

.sheet-filter label{
    display:flex;
    flex-direction:column;
    gap:7px;
    font-weight:600;
}

.sheet-period{
    margin-bottom:20px;
    font-size:19px;
    font-weight:700;
}

.sheet-document{
    background:#fff;
    border:1px solid #dde3e9;
    border-radius:10px;
    padding:24px;
}

.sheet-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-bottom:18px;
    margin-bottom:18px;
    border-bottom:2px solid #e1e6eb;
}

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

.sheet-brand img{
    max-height:58px;
    max-width:180px;
}

.sheet-brand div{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.sheet-brand strong{
    font-size:18px;
}

.sheet-brand span{
    color:var(--muted);
}

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

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

.sheet-employee-info div{
    padding:12px;
    border:1px solid #e3e8ed;
    border-radius:7px;
}

.sheet-employee-info span,
.sheet-summary span{
    display:block;
    font-size:11px;
    color:var(--muted);
    margin-bottom:5px;
}

.sheet-day{
    white-space:nowrap;
}

.sheet-day small{
    display:block;
    color:var(--muted);
}

.sheet-punches{
    white-space:nowrap;
}

.sheet-summary{
    display:grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap:12px;
    margin-top:20px;
}

.sheet-summary div{
    padding:14px;
    border:1px solid #e3e8ed;
    border-radius:7px;
}

.sheet-summary strong{
    font-size:18px;
}

.sheet-closing-info,
.sheet-acceptance{
    margin-top:18px;
    padding:14px;
    background:#f5f7f9;
    border-radius:7px;
}

.sheet-signatures{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    margin-top:70px;
}

.sheet-signatures div{
    padding-top:8px;
    text-align:center;
    border-top:1px solid #333;
}

.sheet-signatures span{
    font-size:12px;
}

@media(max-width:900px){

    .sheet-filter{
        grid-template-columns:1fr 1fr;
    }

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

    .sheet-summary{
        grid-template-columns:1fr 1fr;
    }

}

@media(max-width:600px){

    .sheet-filter,
    .sheet-employee-info,
    .sheet-summary{
        grid-template-columns:1fr;
    }

    .sheet-header{
        align-items:flex-start;
        flex-direction:column;
        gap:12px;
    }

}

@media print{

    body{
        background:#fff !important;
    }

    .no-print,
    .sidebar,
    nav,
    .topbar{
        display:none !important;
    }

    main,
    .content,
    .main-content{
        margin:0 !important;
        padding:0 !important;
        width:100% !important;
        max-width:none !important;
    }

    .sheet-document{
        border:0;
        border-radius:0;
        padding:0;
    }

    .sheet-table{
        font-size:10px;
    }

    .sheet-table th,
    .sheet-table td{
        padding:5px;
    }

    .sheet-summary{
        break-inside:avoid;
    }

    .sheet-signatures{
        break-inside:avoid;
    }

    @page{
        size:A4 landscape;
        margin:10mm;
    }

}

.management-grid{
    display:grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr));
    gap:14px;
    margin-bottom:18px;
}

.management-card{
    display:flex;
    flex-direction:column;
    gap:5px;
    padding:19px;
    background:#fff;
    border:1px solid #e1e7ed;
    border-radius:10px;
    text-decoration:none;
    color:inherit;
}

.management-card:hover{
    border-color:#b8c4ce;
}

.management-card span{
    color:var(--muted);
    font-size:13px;
}

.management-card strong{
    font-size:27px;
}

.management-card small{
    color:var(--muted);
}

.dashboard-date{
    font-weight:600;
}

.dashboard-bank-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-bottom:18px;
}

.dashboard-bank-card{
    padding:19px;
    background:#fff;
    border:1px solid #e1e7ed;
    border-radius:10px;
}

.dashboard-bank-card span{
    display:block;
    color:var(--muted);
    font-size:13px;
    margin-bottom:7px;
}

.dashboard-bank-card strong{
    font-size:24px;
}

.dashboard-columns{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

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

.panel-heading h2{
    margin:0;
    font-size:18px;
}

.report-shortcuts{
    display:grid;
    gap:8px;
}

.report-shortcuts a{
    padding:11px 12px;
    border:1px solid #e3e8ed;
    border-radius:7px;
    text-decoration:none;
}

.dashboard-list{
    display:grid;
}

.dashboard-list > a{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding:11px 0;
    border-bottom:1px solid #edf0f3;
    text-decoration:none;
    color:inherit;
}

.dashboard-list > a:last-child{
    border-bottom:0;
}

.dashboard-list div{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.dashboard-list span,
.dashboard-list small{
    color:var(--muted);
    font-size:12px;
}

.report-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-bottom:15px;
}

.report-tabs a{
    padding:9px 12px;
    background:#fff;
    border:1px solid #dfe5ea;
    border-radius:7px;
    text-decoration:none;
    color:inherit;
}

.report-tabs a.active{
    font-weight:700;
    border-color:#7c8c99;
}

.report-filter{
    display:grid;
    grid-template-columns:
        1fr 1fr 2fr 2fr auto;
    gap:12px;
    align-items:end;
    margin-bottom:16px;
}

.report-filter label{
    display:flex;
    flex-direction:column;
    gap:6px;
    font-weight:600;
}

.report-toolbar{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:20px;
}

.report-heading-print{
    display:flex;
    flex-direction:column;
    gap:3px;
    margin-bottom:15px;
}

.report-heading-print strong{
    font-size:18px;
}

.report-heading-print span{
    color:var(--muted);
    font-size:13px;
}

.report-table{
    font-size:13px;
}

@media(max-width:1000px){

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

    .report-filter{
        grid-template-columns:1fr 1fr;
    }

}

@media(max-width:700px){

    .management-grid,
    .dashboard-bank-grid,
    .dashboard-columns{
        grid-template-columns:1fr;
    }

    .report-filter{
        grid-template-columns:1fr;
    }

}

@media print{

    .report-tabs,
    .report-filter,
    .report-toolbar{
        display:none !important;
    }

    .report-table{
        font-size:10px;
    }

    .report-table th,
    .report-table td{
        padding:5px;
    }

    @page{
        size:A4 landscape;
        margin:10mm;
    }

}

.admin-form-panel{
    max-width:900px;
}

.security-notice{
    padding:14px 16px;
    margin-bottom:18px;
    border:1px solid #d9e0e6;
    border-radius:8px;
    background:#f6f8fa;
    line-height:1.5;
}

.admin-separator{
    border:0;
    border-top:1px solid #e2e7eb;
    margin:30px 0;
}

.audit-filter{
    display:grid;
    grid-template-columns:
        1fr 1fr 2fr 2fr auto;
    gap:12px;
    align-items:end;
    margin-bottom:20px;
}

.audit-filter label{
    display:flex;
    flex-direction:column;
    gap:6px;
    font-weight:600;
}

.audit-detail dl,
.system-list{
    display:grid;
    grid-template-columns:190px 1fr;
    gap:10px 18px;
}

.audit-detail dt,
.system-list dt{
    font-weight:700;
}

.audit-detail dd,
.system-list dd{
    margin:0;
}

.audit-detail pre{
    white-space:pre-wrap;
    word-break:break-word;
    padding:14px;
    background:#f5f7f9;
    border-radius:7px;
    overflow:auto;
}

.admin-info-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-bottom:18px;
}

.system-count-grid{
    display:grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr));
    gap:12px;
}

.system-count-grid div{
    padding:14px;
    border:1px solid #e1e6eb;
    border-radius:8px;
}

.system-count-grid span{
    display:block;
    font-size:12px;
    color:var(--muted);
    margin-bottom:5px;
}

.system-count-grid strong{
    font-size:22px;
}

.checkbox-field{
    display:flex !important;
    flex-direction:row !important;
    align-items:center;
    gap:8px !important;
}

@media(max-width:900px){

    .audit-filter{
        grid-template-columns:1fr 1fr;
    }

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

    .system-count-grid{
        grid-template-columns:1fr 1fr;
    }

}

@media(max-width:600px){

    .audit-filter,
    .system-count-grid{
        grid-template-columns:1fr;
    }

    .audit-detail dl,
    .system-list{
        grid-template-columns:1fr;
    }

}

.import-summary-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.import-summary-grid div{
    border:1px solid #e1e6eb;
    border-radius:8px;
    padding:14px;
}

.import-summary-grid span{
    display:block;
    font-size:12px;
    color:var(--muted);
    margin-bottom:5px;
}

.import-summary-grid strong{
    font-size:20px;
}

@media(max-width:800px){
    .import-summary-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:500px){
    .import-summary-grid{
        grid-template-columns:1fr;
    }
}

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

.ops-card{
    background:#fff;
    border:1px solid #e1e6eb;
    border-radius:10px;
    padding:18px;
}

.ops-card span{
    display:block;
    font-size:13px;
    color:var(--muted);
    margin-bottom:7px;
}

.ops-card strong{
    font-size:26px;
}

.ops-status{
    display:inline-block;
    border-radius:999px;
    padding:4px 9px;
    font-size:11px;
    font-weight:700;
}

.ops-ok{
    background:#e8f7ee;
}

.ops-warning{
    background:#fff5d9;
}

.ops-error{
    background:#fdeaea;
}

.ops-info{
    background:#edf3f8;
}

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

.diagnostic-grid div{
    border:1px solid #e1e6eb;
    border-radius:8px;
    padding:14px;
}

.diagnostic-grid span{
    display:block;
    font-size:12px;
    color:var(--muted);
    margin-bottom:5px;
}

@media(max-width:850px){

    .ops-cards{
        grid-template-columns:1fr 1fr;
    }

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

@media(max-width:520px){

    .ops-cards,
    .diagnostic-grid{
        grid-template-columns:1fr;
    }
}

.readiness-flow{
    display:grid;
    gap:10px;
    margin-bottom:20px;
}

.readiness-step{
    display:flex;
    gap:14px;
    align-items:center;
    background:#fff;
    border:1px solid #e1e6eb;
    border-radius:10px;
    padding:15px;
}

.readiness-number{
    display:flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border-radius:50%;
    font-weight:700;
    flex:0 0 34px;
    background:#edf3f8;
}

.readiness-step.ready{
    border-left:4px solid #3b8f5a;
}

.readiness-step.waiting{
    border-left:4px solid #d4a72c;
}

.readiness-step strong{
    display:block;
    margin-bottom:4px;
}

.readiness-step span{
    display:block;
    color:var(--muted);
    font-size:13px;
}

.preimport-list{
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:12px;
    margin-top:18px;
}

.preimport-list div{
    border:1px solid #e1e6eb;
    border-radius:8px;
    padding:14px;
}

.preimport-list strong{
    display:block;
    margin-bottom:5px;
}

.preimport-list span{
    color:var(--muted);
    font-size:13px;
}

@media(max-width:700px){

    .preimport-list{
        grid-template-columns:1fr;
    }
}

.portal-login-notice{
    margin-top:20px;
    padding:14px;
    border-radius:8px;
    background:#f5f7f9;
    font-size:13px;
    line-height:1.5;
}

.portal-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.checkbox-line{
    display:flex;
    gap:9px;
    align-items:flex-start;
    margin:16px 0;
}

.checkbox-line input{
    width:auto;
    margin-top:3px;
}

.employee-portal .security-notice{
    margin-bottom:20px;
}

@media(max-width:700px){

    .portal-actions{
        display:grid;
        grid-template-columns:1fr;
    }

    .portal-actions a{
        text-align:center;
    }
}

.portal-adjustment-detail{
    font-size:12px;
    color:var(--muted);
    margin-top:4px;
}

.employee-portal table td{
    vertical-align:top;
}

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

.flex-schedule-form{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(160px,1fr));
    gap:12px;
    align-items:end;
    margin-top:18px;
}

.flex-schedule-form .checkbox-line{
    margin:0;
    min-height:42px;
    align-items:center;
}

.flex-schedule-form button{
    min-height:42px;
}

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

.health-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:18px;
    display:flex;
    flex-direction:column;
    gap:7px;
}

.health-label{
    font-size:.9rem;
    color:#6b7280;
}

.health-card strong{
    font-size:1.35rem;
}

.health-card small{
    color:#6b7280;
}

.health-ok{
    color:#15803d;
}

.health-attention{
    color:#b45309;
}

.health-critical{
    color:#b91c1c;
}

.health-unknown{
    color:#6b7280;
}

.health-neutral{
    color:#374151;
}

.health-service-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(180px,1fr));
    gap:12px;
}

.health-service{
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:14px;
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.health-data-grid,
.health-device-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(180px,1fr));
    gap:14px;
}

.health-data-grid > div,
.health-device-grid > div{
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:14px;
    display:flex;
    flex-direction:column;
    gap:5px;
}

.health-data-grid span,
.health-device-grid span{
    color:#6b7280;
    font-size:.88rem;
}

.health-data-grid strong,
.health-device-grid strong{
    font-size:1.05rem;
}

.health-security-note{
    margin-top:14px;
    color:#6b7280;
    font-size:.9rem;
}

/* =========================================================
   PONTO CCP - DESIGN SYSTEM 2026
   PACOTE 20 - MODERNIZACAO GLOBAL
   ========================================================= */

:root{
    --ccp-navy:#0b2340;
    --ccp-navy-2:#102f55;
    --ccp-blue:#174f87;
    --ccp-blue-soft:#eaf2fb;
    --ccp-bg:#f4f7fb;
    --ccp-surface:#ffffff;
    --ccp-border:#e3eaf2;
    --ccp-text:#172033;
    --ccp-muted:#69778c;
    --ccp-green:#15803d;
    --ccp-red:#b42318;
    --ccp-amber:#b76e00;
    --ccp-radius:14px;
    --ccp-shadow:0 8px 28px rgba(15,35,60,.07);
    --ccp-shadow-lg:0 18px 50px rgba(15,35,60,.12);
}

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

body{
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        Helvetica,
        sans-serif;
    background:var(--ccp-bg);
    color:var(--ccp-text);
    line-height:1.45;
}

/* ---------- TOPO ---------- */

.topbar{
    position:sticky;
    top:0;
    z-index:50;
    min-height:78px;
    height:auto;
    padding:10px 28px;
    background:rgba(255,255,255,.97);
    border-bottom:1px solid var(--ccp-border);
    box-shadow:0 2px 14px rgba(15,35,60,.04);
}

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

.ccp-logo.header-logo,
.header-logo{
    width:52px;
    height:52px;
    max-width:52px;
    max-height:52px;
    object-fit:contain;
    flex:0 0 52px;
}

.brand-text{
    display:flex;
    flex-direction:column;
    min-width:0;
}

.brand-text strong,
.topbar .brand-text strong{
    font-size:20px;
    line-height:1.15;
    color:var(--ccp-navy);
    font-weight:800;
    letter-spacing:-.02em;
}

.brand-text span,
.topbar .brand-text span{
    margin:4px 0 0;
    color:var(--ccp-muted);
    font-size:12px;
    font-weight:600;
}

.account{
    gap:12px;
    font-weight:700;
    color:#25324a;
}

.account small{
    display:inline-flex;
    align-items:center;
    min-height:26px;
    padding:4px 9px;
    border-radius:999px;
    background:var(--ccp-blue-soft);
    color:var(--ccp-blue);
    font-size:11px;
    font-weight:800;
}

.account a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:7px 12px;
    border:1px solid var(--ccp-border);
    border-radius:9px;
    background:#fff;
    color:var(--ccp-navy);
    font-size:13px;
    font-weight:700;
    transition:.18s ease;
}

.account a:hover{
    background:#f6f9fc;
    border-color:#cad7e5;
}

/* ---------- ESTRUTURA ---------- */

.layout{
    grid-template-columns:258px minmax(0,1fr);
    min-height:calc(100vh - 78px);
}

.sidebar,
aside.sidebar{
    background:
        linear-gradient(
            180deg,
            #0b2340 0%,
            #0e2b4d 55%,
            #0a203a 100%
        );
    padding:24px 14px 32px;
    border-right:1px solid rgba(255,255,255,.04);
}

.sidebar a{
    position:relative;
    display:flex;
    align-items:center;
    min-height:43px;
    padding:10px 13px 10px 16px;
    margin:3px 0;
    border-radius:10px;
    color:#cbd8e8;
    font-size:14px;
    font-weight:650;
    transition:
        background .16s ease,
        color .16s ease,
        transform .16s ease;
}

.sidebar a:hover{
    background:rgba(255,255,255,.075);
    color:#fff;
    transform:translateX(2px);
}

.sidebar a.active{
    background:
        linear-gradient(
            90deg,
            rgba(64,137,205,.30),
            rgba(64,137,205,.12)
        );
    color:#fff;
    box-shadow:
        inset 3px 0 0 #62a6df;
}

.menu-title{
    margin:28px 14px 9px;
    color:#7f9bb9;
    font-size:10px;
    font-weight:800;
    letter-spacing:.12em;
}

main{
    width:100%;
    min-width:0;
    max-width:1680px;
    padding:34px 38px 48px;
    margin:0 auto;
}

/* ---------- TITULOS ---------- */

.page-title{
    gap:22px;
    margin-bottom:25px;
}

.page-title h1{
    margin:0;
    color:var(--ccp-navy);
    font-size:28px;
    line-height:1.18;
    font-weight:800;
    letter-spacing:-.025em;
}

.page-title p{
    margin:7px 0 0;
    color:var(--ccp-muted);
    font-size:14px;
}

.dashboard-date{
    display:inline-flex;
    align-items:center;
    padding:8px 12px;
    border:1px solid var(--ccp-border);
    border-radius:10px;
    background:#fff;
    color:var(--ccp-muted);
    font-size:13px;
}

/* ---------- PAINEIS ---------- */

.panel{
    background:var(--ccp-surface);
    border:1px solid var(--ccp-border);
    border-radius:var(--ccp-radius);
    box-shadow:var(--ccp-shadow);
    padding:22px;
}

.panel h2{
    color:var(--ccp-navy);
}

.panel-heading{
    padding-bottom:13px;
    border-bottom:1px solid #edf1f5;
}

.panel-heading a{
    color:var(--ccp-blue);
    font-weight:700;
    text-decoration:none;
}

/* ---------- CARDS ---------- */

.management-grid{
    gap:16px;
}

.management-card{
    position:relative;
    min-height:128px;
    justify-content:center;
    padding:20px 21px;
    border:1px solid var(--ccp-border);
    border-radius:var(--ccp-radius);
    box-shadow:var(--ccp-shadow);
    overflow:hidden;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.management-card:before{
    content:"";
    position:absolute;
    left:0;
    top:18px;
    bottom:18px;
    width:3px;
    border-radius:0 4px 4px 0;
    background:#4b8fc8;
}

.management-card:hover{
    transform:translateY(-2px);
    border-color:#c9d8e7;
    box-shadow:0 14px 32px rgba(15,35,60,.10);
}

.management-card span{
    color:var(--ccp-muted);
    font-weight:700;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.035em;
}

.management-card strong{
    margin:2px 0;
    color:var(--ccp-navy);
    font-size:31px;
    font-weight:800;
    letter-spacing:-.035em;
}

.management-card small{
    font-size:12px;
}

.dashboard-bank-grid{
    gap:16px;
}

.dashboard-bank-card{
    padding:21px;
    border:1px solid var(--ccp-border);
    border-radius:var(--ccp-radius);
    box-shadow:var(--ccp-shadow);
}

.dashboard-bank-card span{
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.035em;
    font-size:11px;
}

.dashboard-bank-card strong{
    font-size:27px;
}

/* ---------- TABELAS ---------- */

.table-wrap{
    border:1px solid var(--ccp-border);
    border-radius:12px;
    overflow:auto;
    background:#fff;
}

table{
    width:100%;
    border-collapse:collapse;
}

table thead th{
    background:#f7f9fc;
    color:#536176;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.035em;
    border-bottom:1px solid var(--ccp-border);
}

table th,
table td{
    padding:12px 13px;
}

table tbody td{
    border-bottom:1px solid #edf1f5;
}

table tbody tr:last-child td{
    border-bottom:0;
}

table tbody tr:hover{
    background:#fafcff;
}

/* ---------- FORMULARIOS ---------- */

input,
select,
textarea{
    border:1px solid #cfd9e5;
    border-radius:9px;
    background:#fff;
    color:var(--ccp-text);
    transition:
        border-color .16s ease,
        box-shadow .16s ease;
}

input:focus,
select:focus,
textarea:focus{
    outline:none;
    border-color:#5a93c5;
    box-shadow:0 0 0 3px rgba(55,118,175,.12);
}

label{
    color:#354258;
    font-size:13px;
    font-weight:700;
}

/* ---------- BOTOES ---------- */

button,
.btn-primary,
.btn-secondary,
a.btn-primary,
a.btn-secondary{
    border-radius:9px;
    font-weight:750;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.btn-primary,
a.btn-primary,
button.btn-primary{
    background:
        linear-gradient(
            180deg,
            #1b568f,
            #154775
        );
    color:#fff;
    border:1px solid #154775;
    box-shadow:0 4px 10px rgba(23,79,135,.15);
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover{
    transform:translateY(-1px);
    box-shadow:0 7px 16px rgba(23,79,135,.20);
}

.btn-secondary,
a.btn-secondary,
button.btn-secondary{
    background:#fff;
    color:var(--ccp-navy);
    border:1px solid #ccd8e5;
}

.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover{
    background:#f6f9fc;
    border-color:#b9c9da;
}

/* ---------- ALERTAS ---------- */

.flash,
.alert,
.security-notice,
.portal-login-notice{
    border-radius:11px;
}

.flash.success{
    border:1px solid #b9dfc5;
    background:#effaf2;
    color:#166534;
}

.flash.error,
.alert{
    border:1px solid #f0c4c4;
    background:#fff4f4;
    color:#9f1d1d;
}

.security-notice{
    border:1px solid #cfe0f0;
    background:#f1f7fc;
    color:#28435e;
}

/* ---------- DASHBOARD ---------- */

.dashboard-columns{
    gap:20px;
}

.report-shortcuts{
    gap:9px;
}

.report-shortcuts a{
    position:relative;
    padding:12px 14px;
    border:1px solid var(--ccp-border);
    border-radius:9px;
    color:#2c3b50;
    background:#fbfcfe;
    font-weight:650;
    transition:.16s ease;
}

.report-shortcuts a:hover{
    background:#f2f7fb;
    border-color:#cbd9e6;
    transform:translateX(2px);
}

.dashboard-list > a{
    padding:13px 2px;
}

/* ---------- SAUDE DO SISTEMA ---------- */

.health-grid{
    gap:16px;
}

.health-card{
    position:relative;
    min-height:130px;
    justify-content:center;
    border:1px solid var(--ccp-border);
    border-radius:var(--ccp-radius);
    box-shadow:var(--ccp-shadow);
    padding:20px;
    overflow:hidden;
}

.health-card:before{
    content:"";
    position:absolute;
    left:0;
    top:18px;
    bottom:18px;
    width:3px;
    background:#4b8fc8;
    border-radius:0 4px 4px 0;
}

.health-label{
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.health-card strong{
    font-size:24px;
    font-weight:800;
}

.health-service,
.health-data-grid > div,
.health-device-grid > div{
    border-color:var(--ccp-border);
    border-radius:10px;
    background:#fbfcfe;
}

/* ---------- RELATORIOS ---------- */

.report-tabs{
    gap:8px;
    padding:5px;
    border:1px solid var(--ccp-border);
    border-radius:12px;
    background:#fff;
    box-shadow:0 4px 16px rgba(15,35,60,.04);
}

.report-tabs a{
    border-radius:8px;
    font-weight:700;
}

.report-tabs a.active{
    background:var(--ccp-navy);
    color:#fff;
}

.report-filter{
    background:#f8fafc;
    border:1px solid #e8edf3;
    border-radius:11px;
    padding:16px;
}

.report-toolbar{
    gap:9px;
}

.report-heading-print{
    margin:20px 0 15px;
    padding:15px 18px;
    border-left:4px solid var(--ccp-blue);
    background:#f7fafd;
    border-radius:0 9px 9px 0;
}

/* ---------- ESPELHO / FOLHA DE PONTO ---------- */

.sheet-document{
    border:1px solid #dce5ee;
    border-radius:14px;
    box-shadow:var(--ccp-shadow);
    padding:28px;
}

.sheet-header{
    border-bottom:2px solid var(--ccp-navy);
    padding-bottom:18px;
}

.sheet-brand{
    gap:16px;
}

.sheet-brand img{
    width:68px;
    height:68px;
    max-width:68px;
    max-height:68px;
    object-fit:contain;
}

.sheet-brand strong{
    color:var(--ccp-navy);
    font-size:20px;
    font-weight:800;
}

.sheet-brand span{
    font-size:13px;
}

.sheet-reference{
    padding:9px 13px;
    border-radius:9px;
    background:#f1f6fb;
    color:var(--ccp-navy);
}

.sheet-employee-info div,
.sheet-summary div{
    border-color:#dfe7ef;
    border-radius:9px;
    background:#fbfcfe;
}

.sheet-employee-info span,
.sheet-summary span{
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.035em;
}

.sheet-summary strong{
    color:var(--ccp-navy);
}

/* ---------- LOGIN GLOBAL ---------- */

.login-body{
    position:relative;
    padding:30px 18px;
    background:
        radial-gradient(
            circle at 18% 18%,
            rgba(61,128,190,.16),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #eaf1f8 0%,
            #f6f8fb 48%,
            #e8f0f7 100%
        );
}

.login-body:before{
    content:"";
    position:fixed;
    inset:0 auto 0 0;
    width:min(38vw,520px);
    background:
        linear-gradient(
            160deg,
            #0b2340,
            #123d68
        );
    z-index:0;
}

.login-card{
    position:relative;
    z-index:1;
    width:min(470px,94vw);
    margin-left:min(25vw,300px);
    padding:42px 44px;
    border:1px solid rgba(255,255,255,.85);
    border-radius:18px;
    box-shadow:var(--ccp-shadow-lg);
}

.login-card .login-logo,
.ccp-logo.login-logo{
    display:block;
    width:92px;
    height:92px;
    max-width:92px;
    max-height:92px;
    object-fit:contain;
    margin:0 auto 18px;
}

.login-card h1{
    text-align:center;
    color:var(--ccp-navy);
    font-size:29px;
    font-weight:800;
    letter-spacing:-.025em;
}

.login-card .subtitle,
.login-card > p{
    text-align:center;
    color:var(--ccp-muted);
}

.login-card label{
    margin-top:16px;
}

.login-card input{
    height:48px;
}

.login-card button{
    min-height:49px;
    margin-top:22px;
}

.login-note{
    border-top:1px solid #edf1f5;
    padding-top:18px;
    margin-top:24px;
}

.portal-login-notice{
    margin-top:22px;
    padding:14px;
    border:1px solid #d5e3ef;
    background:#f4f8fc;
    color:#506176;
    text-align:center;
    font-size:12px;
}

/* ---------- PORTAL FUNCIONARIO ---------- */

.employee-portal main{
    max-width:1500px;
}

.employee-portal .ops-card{
    border-radius:var(--ccp-radius);
    border-color:var(--ccp-border);
    box-shadow:var(--ccp-shadow);
}

.employee-portal .portal-actions{
    gap:10px;
}

/* ---------- EMPTY STATES ---------- */

.empty-state{
    padding:30px;
    border:1px dashed #cfd9e4;
    border-radius:12px;
    background:#fafcfe;
    color:var(--ccp-muted);
    text-align:center;
}

/* ---------- RESPONSIVIDADE ---------- */

@media(max-width:1100px){

    .layout{
        grid-template-columns:220px minmax(0,1fr);
    }

    main{
        padding:28px 24px 40px;
    }

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

}

@media(max-width:760px){

    .topbar{
        position:relative;
        padding:10px 14px;
        gap:12px;
    }

    .ccp-logo.header-logo,
    .header-logo{
        width:44px;
        height:44px;
        flex-basis:44px;
    }

    .brand-text span{
        display:none;
    }

    .account{
        font-size:12px;
    }

    .account small{
        display:none;
    }

    .layout{
        display:block;
        min-height:auto;
    }

    .sidebar,
    aside.sidebar{
        display:flex;
        overflow-x:auto;
        gap:5px;
        padding:9px 10px;
        border-right:0;
        border-bottom:1px solid rgba(255,255,255,.08);
    }

    .sidebar a{
        flex:0 0 auto;
        min-height:38px;
        margin:0;
        padding:8px 12px;
        white-space:nowrap;
    }

    .sidebar a.active{
        box-shadow:none;
        background:#1c568c;
    }

    .menu-title{
        display:none;
    }

    main{
        padding:22px 14px 34px;
    }

    .page-title{
        align-items:flex-start;
        flex-direction:column;
    }

    .management-grid,
    .dashboard-bank-grid,
    .dashboard-columns{
        grid-template-columns:1fr;
    }

    .management-card{
        min-height:108px;
    }

    .login-body:before{
        width:100%;
        height:210px;
        bottom:auto;
    }

    .login-card{
        margin:90px auto 0;
        padding:34px 26px;
    }

}

@media(max-width:480px){

    .brand-text strong,
    .topbar .brand-text strong{
        font-size:17px;
    }

    .account{
        gap:5px;
    }

    .account a{
        margin-left:2px;
        padding:6px 9px;
    }

    .page-title h1{
        font-size:24px;
    }

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

    .panel{
        padding:17px;
    }

    .login-card{
        padding:30px 21px;
    }

}

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

@media print{

    html,
    body{
        background:#fff !important;
        color:#111 !important;
    }

    .topbar,
    .sidebar,
    .no-print,
    nav.report-tabs,
    .report-filter,
    .report-toolbar{
        display:none !important;
    }

    .layout{
        display:block !important;
        min-height:0 !important;
    }

    main{
        display:block !important;
        width:100% !important;
        max-width:none !important;
        margin:0 !important;
        padding:0 !important;
    }

    .panel,
    .sheet-document{
        box-shadow:none !important;
    }

    .sheet-document{
        border:0 !important;
        border-radius:0 !important;
        padding:0 !important;
    }

    .sheet-header{
        display:flex !important;
        border-bottom:2px solid #1b365d !important;
    }

    .sheet-brand img{
        display:block !important;
        width:58px !important;
        height:58px !important;
        object-fit:contain !important;
    }

    .report-heading-print{
        display:flex !important;
        justify-content:space-between;
        gap:20px;
        border-left:0 !important;
        border-bottom:2px solid #1b365d;
        border-radius:0;
        padding:0 0 10px !important;
        background:#fff !important;
    }

    table{
        break-inside:auto;
    }

    tr{
        break-inside:avoid;
        break-after:auto;
    }

    thead{
        display:table-header-group;
    }

    .sheet-summary,
    .sheet-signatures{
        break-inside:avoid;
    }

}


/* CABECALHO INSTITUCIONAL DE RELATORIOS */

.report-institutional-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:0 0 14px;
    padding:14px 16px;
    border:1px solid var(--ccp-border);
    border-radius:11px;
    background:#fbfcfe;
}

.report-institutional-brand{
    display:flex;
    align-items:center;
    gap:13px;
}

.report-institutional-brand .report-logo,
.ccp-logo.report-logo{
    width:54px;
    height:54px;
    max-width:54px;
    max-height:54px;
    object-fit:contain;
}

.report-institutional-brand div{
    display:flex;
    flex-direction:column;
}

.report-institutional-brand strong{
    color:var(--ccp-navy);
    font-size:17px;
    font-weight:800;
}

.report-institutional-brand span{
    color:var(--ccp-muted);
    font-size:12px;
}

@media print{

    .report-institutional-header{
        display:flex !important;
        padding:0 0 10px !important;
        margin:0 0 8px !important;
        border:0 !important;
        border-bottom:2px solid #1b365d !important;
        border-radius:0 !important;
        background:#fff !important;
    }

    .report-institutional-brand .report-logo,
    .ccp-logo.report-logo{
        display:block !important;
        width:58px !important;
        height:58px !important;
        object-fit:contain !important;
    }

    .report-institutional-brand strong{
        font-size:18px !important;
    }

}


.login-access-type{
    display:inline-block;
    margin-top:5px;
    color:var(--ccp-blue);
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.06em;
}


.employee-portal .sidebar{
    background:
        linear-gradient(
            180deg,
            #0b2340 0%,
            #12375f 100%
        );
}

.employee-portal .page-title h1{
    color:var(--ccp-navy);
}

.employee-portal .ops-cards{
    gap:16px;
}

.employee-portal .ops-card{
    position:relative;
    overflow:hidden;
    padding:20px;
    background:#fff;
}

.employee-portal .ops-card:before{
    content:"";
    position:absolute;
    left:0;
    top:18px;
    bottom:18px;
    width:3px;
    background:#4b8fc8;
}

.employee-portal .ops-card span{
    color:var(--ccp-muted);
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.035em;
}

.employee-portal .ops-card strong{
    color:var(--ccp-navy);
    font-size:26px;
}

