:root{
    --primary:#0057b8;
    --primary-dark:#003f87;
    --primary-deep:#002f66;
    --primary-soft:#eaf3ff;
    --accent:#2f80ed;
    --ink:#122033;
    --muted:#6b778c;
    --bg:#f4f7fb;
    --surface:#ffffff;
    --border:#dfe6ef;
    --success:#11875d;
    --warning:#d98a00;
    --danger:#c43c47;
    --shadow:0 10px 30px rgba(27,57,91,.08);
    --shadow-strong:0 18px 44px rgba(17,48,83,.14);
    --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);font-family:"Segoe UI",Arial,sans-serif;color:var(--ink);line-height:1.5}
button,input,select,textarea{font:inherit}

.app-shell{display:flex;min-height:100vh}
.sidebar{width:276px;min-height:100vh;position:sticky;top:0;align-self:flex-start;background:linear-gradient(180deg,#003f87 0%,#00336f 55%,#002958 100%);color:#fff;display:flex;flex-direction:column;box-shadow:10px 0 35px rgba(0,48,105,.12);z-index:10}
.brand{display:flex;align-items:center;gap:14px;padding:25px 22px 21px;border-bottom:1px solid rgba(255,255,255,.14)}
.brand-symbol{width:48px;height:48px;border-radius:15px;background:#fff;color:var(--primary);display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(0,0,0,.16);font-weight:900;font-size:25px;letter-spacing:-2px;transform:skew(-5deg)}
.brand-symbol span{transform:skew(5deg)}
.brand-copy{min-width:0}.brand-company{display:block;font-size:10px;font-weight:800;letter-spacing:1.45px;color:rgba(255,255,255,.78);white-space:nowrap}.brand-company-dark{color:var(--primary);font-size:10px}.brand-system{font-weight:800;font-size:24px;line-height:1.05;letter-spacing:.6px}.brand small{display:block;color:rgba(255,255,255,.65);font-size:12px;margin-top:2px}
.sidebar-label{padding:22px 22px 8px;color:rgba(255,255,255,.48);text-transform:uppercase;letter-spacing:1.25px;font-size:10px;font-weight:800}.sidebar-label-inline{padding:21px 10px 8px}
.menu{padding:0 12px 16px}.menu a{display:flex;align-items:center;gap:13px;color:rgba(255,255,255,.75);padding:12px 14px;border-radius:12px;text-decoration:none;font-size:14px;font-weight:600;margin:3px 0;transition:.2s ease;position:relative}.menu a i{font-size:17px;width:20px;text-align:center}.menu a:hover{color:#fff;background:rgba(255,255,255,.1);transform:translateX(2px)}.menu a.active{color:var(--primary-deep);background:#fff;box-shadow:0 8px 22px rgba(0,0,0,.14)}.menu a.active:before{content:"";position:absolute;left:-12px;top:10px;bottom:10px;width:4px;border-radius:0 4px 4px 0;background:#67b2ff}
.sidebar-footer{margin-top:auto;padding:20px 22px 24px;border-top:1px solid rgba(255,255,255,.12);font-size:10px;letter-spacing:.4px;color:rgba(255,255,255,.6)}.sidebar-footer span,.sidebar-footer strong{display:block}.sidebar-footer strong{color:#fff;margin-top:2px}

.main-content{flex:1;min-width:0}.topbar{height:78px;background:rgba(255,255,255,.97);display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:8;backdrop-filter:blur(10px)}
.search-form{width:min(540px,62%);display:flex;align-items:center;gap:11px;padding:11px 16px;background:#f4f7fb;border:1px solid transparent;border-radius:12px;transition:.2s}.search-form:focus-within{background:#fff;border-color:#90bff4;box-shadow:0 0 0 4px rgba(0,87,184,.08)}.search-form i{color:var(--primary)}.search-form input{width:100%;border:0;outline:0;background:transparent;color:var(--ink)}.search-form input::placeholder{color:#98a3b3}
.user-area{display:flex;align-items:center;gap:12px}.user-data{display:flex;flex-direction:column;text-align:right}.user-data strong{font-size:13px}.user-data small{color:var(--muted);font-size:11px}.user-badge{width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,var(--primary),var(--primary-dark));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;box-shadow:0 7px 18px rgba(0,87,184,.22)}
.page-content{padding:30px 32px 44px;max-width:1680px;margin:0 auto}.app-alert{border:0;border-left:4px solid currentColor;border-radius:12px;box-shadow:var(--shadow)}

.btn{border-radius:10px;font-weight:650;padding:.55rem .9rem;transition:.18s ease}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--primary);border-color:var(--primary);box-shadow:0 7px 16px rgba(0,87,184,.18)}.btn-primary:hover,.btn-primary:focus{background:var(--primary-dark);border-color:var(--primary-dark)}.btn-outline-primary{color:var(--primary);border-color:#87b5e8}.btn-outline-primary:hover{background:var(--primary);border-color:var(--primary)}.btn-outline-secondary{color:#566273;border-color:#ccd5e1}.btn-icon{width:40px;height:40px;padding:0;display:inline-flex;align-items:center;justify-content:center}.btn-logout{background:#fff;border:1px solid var(--border);color:#64748b}.btn-logout:hover{background:#f0f5fb;color:var(--primary)}

.dashboard-title{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:23px}.dashboard-title h2,.page-title h2{margin:0;font-size:28px;font-weight:800;letter-spacing:-.5px}.dashboard-title p,.page-title p{margin:5px 0 0;color:var(--muted)}
.dashboard-title:before{content:"";display:block;position:absolute}.dashboard-section{margin-top:20px}.section-title{display:flex;align-items:center;gap:11px;margin-bottom:15px}.section-title:before{content:"";width:5px;height:24px;border-radius:4px;background:var(--primary)}.section-title h4{margin:0;font-size:19px;font-weight:800}

.card-soft,.form-card,.lote-expansivel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.card-soft{padding:22px}.form-card{padding:24px}.metric{display:flex;gap:16px;align-items:center;position:relative;overflow:hidden}.metric:after{content:"";position:absolute;right:-24px;bottom:-34px;width:90px;height:90px;border-radius:50%;background:rgba(0,87,184,.05)}.metric i{width:50px;height:50px;border-radius:15px;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:23px;flex:0 0 auto}.metric h2{margin:0;font-weight:800;font-size:29px}.metric span{color:var(--muted);font-size:13px;font-weight:600}

.lote-card{background:#fff;border-radius:18px;padding:20px;box-shadow:var(--shadow);border:1px solid var(--border);border-left:6px solid #94a3b8;min-height:250px;transition:.22s ease}.lote-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-strong)}.lote-header{display:flex;align-items:center;gap:15px;margin-bottom:15px}.lote-icon{width:62px;height:62px;border-radius:16px;display:flex;align-items:center;justify-content:center;box-shadow:0 9px 22px rgba(0,0,0,.14);flex-shrink:0}.lote-icon img{width:40px;height:40px}.lote-header h5{margin:0;font-size:18px;font-weight:800}.lote-header small{color:var(--muted)}.lote-status,.status{display:inline-block;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:800}.lote-total{color:var(--muted);font-size:12px;font-weight:700}.lote-resumo{display:grid;grid-template-columns:1fr 1fr;gap:7px;font-size:13px;color:#435066}
.status-ok{border-left-color:#19a974}.status-ok .lote-status,.status-ok:not(.lote-card){background:#dff7ed;color:#08704b}.status-danger{border-left-color:#dc4c58}.status-danger .lote-status{background:#ffe7e9;color:#9d2833}.status-warning{border-left-color:#efa72e}.status-warning .lote-status{background:#fff2d8;color:#925c00}.status-partial{border-left-color:#6177d9}.status-partial .lote-status{background:#e9edff;color:#3549a8}.status-neutral{border-left-color:#7c8798}.status-neutral .lote-status{background:#edf1f5;color:#4c5868}.status-cli{background:#e4f0ff;color:#0d5aa8}.status-tec{background:#fff0d2;color:#8b5900}.status-man{background:#ffe4e7;color:#9d2833}

.table-modern{width:100%;background:#fff;border-radius:14px;overflow:hidden;border-collapse:separate;border-spacing:0}.table-modern th,.table thead th{background:#f5f8fc;color:#5f6e82;padding:13px 14px;font-size:11px;text-transform:uppercase;letter-spacing:.45px;border-bottom:1px solid var(--border);font-weight:800}.table-modern td,.table tbody td{padding:14px;border-top:1px solid #edf1f6;vertical-align:middle}.table-modern tbody tr:hover,.table tbody tr:hover{background:#f8fbff}.table-modern tbody tr:first-child td{border-top:0}.actions{display:flex;gap:7px;flex-wrap:wrap}

.form-label{font-size:13px;font-weight:700;color:#39485c}.form-control,.form-select{border:1px solid #ccd6e3;border-radius:10px;padding:.68rem .78rem;color:var(--ink);background-color:#fff}.form-control:focus,.form-select:focus{border-color:#6ba9ed;box-shadow:0 0 0 .22rem rgba(0,87,184,.1)}

.lote-expansivel{padding:0;overflow:hidden}.lote-expansivel summary{list-style:none;cursor:pointer;padding:16px 18px;display:flex;justify-content:space-between;align-items:center;gap:16px;background:#f7f9fc}.lote-expansivel summary::-webkit-details-marker{display:none}.lote-expansivel summary::before{content:"›";font-size:22px;line-height:1;color:var(--primary);font-weight:800;transition:.2s}.lote-expansivel[open] summary::before{transform:rotate(90deg)}.lote-expansivel-titulo{display:flex;flex-direction:column;gap:2px;flex:1}.lote-expansivel-titulo span{font-weight:800}.lote-expansivel-titulo small{color:var(--muted)}.lote-check{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--border);border-radius:999px;padding:8px 12px;font-size:13px;font-weight:700;color:#435066;cursor:pointer}.lote-expansivel .table-responsive{padding:0 16px 16px}

/* Autenticação */
.auth-page{min-height:100vh;background:#eef3f9}.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.08fr) minmax(420px,.92fr)}.auth-showcase{position:relative;overflow:hidden;background:linear-gradient(145deg,#00336f 0%,#0057b8 63%,#1474d4 100%);color:#fff;padding:64px;display:flex;align-items:center}.auth-showcase:before{content:"";position:absolute;width:460px;height:460px;border-radius:50%;border:1px solid rgba(255,255,255,.12);right:-140px;top:-120px}.auth-showcase:after{content:"";position:absolute;width:620px;height:620px;border-radius:50%;border:1px solid rgba(255,255,255,.08);left:-330px;bottom:-410px}.auth-showcase-content{position:relative;z-index:2;max-width:620px}.corporate-signature{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:1.6px;font-size:12px}.corporate-mark{width:38px;height:38px;background:#fff;color:var(--primary);display:inline-flex;align-items:center;justify-content:center;border-radius:11px;font-size:21px;letter-spacing:-1px;transform:skew(-5deg)}.auth-eyebrow{margin-top:92px;font-size:11px;font-weight:800;letter-spacing:1.7px;color:#a9d3ff}.auth-showcase h1{font-size:clamp(38px,5vw,64px);line-height:1.02;letter-spacing:-2.1px;margin:17px 0 24px;font-weight:800;max-width:700px}.auth-showcase p{font-size:18px;line-height:1.65;color:rgba(255,255,255,.78);max-width:560px}.auth-highlight{display:flex;gap:14px;align-items:center;margin-top:42px;padding:17px 18px;border:1px solid rgba(255,255,255,.17);background:rgba(255,255,255,.08);border-radius:15px;max-width:470px;backdrop-filter:blur(5px)}.auth-highlight i{font-size:26px}.auth-highlight strong,.auth-highlight span{display:block}.auth-highlight span{font-size:12px;color:rgba(255,255,255,.7);margin-top:2px}.auth-scale-decoration{position:absolute;right:52px;bottom:36px;display:flex;gap:8px;align-items:flex-end;opacity:.16}.auth-scale-decoration span{width:12px;border-radius:7px;background:#fff}.auth-scale-decoration span:nth-child(1){height:64px}.auth-scale-decoration span:nth-child(2){height:112px}.auth-scale-decoration span:nth-child(3){height:168px}
.auth-panel{background:#fff;display:flex;align-items:center;justify-content:center;padding:48px}.auth-panel-centered{min-height:100vh}.auth-card{width:min(100%,490px)}.auth-brand{display:flex;align-items:center;gap:15px;margin-bottom:43px}.auth-brand .brand-symbol{background:linear-gradient(145deg,var(--primary),var(--primary-dark));color:#fff;width:52px;height:52px;box-shadow:0 9px 24px rgba(0,87,184,.22)}.auth-brand h2{margin:0;font-size:26px;font-weight:850;letter-spacing:.4px}.auth-brand p{color:var(--muted);font-size:12px;margin:2px 0 0}.auth-heading{margin-bottom:25px}.auth-heading h3{font-size:30px;font-weight:800;letter-spacing:-.6px;margin:0}.auth-heading p{color:var(--muted);margin:7px 0 0}.input-icon{position:relative}.input-icon i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#8190a3}.input-icon .form-control{padding-left:42px}.auth-card .btn-lg{min-height:50px;display:flex;justify-content:center;align-items:center;gap:12px}.auth-footer{text-align:center;margin-top:34px;color:#95a1b1;font-size:11px;text-transform:uppercase;letter-spacing:.7px;font-weight:700}.step-badge{display:inline-block;background:var(--primary-soft);color:var(--primary);font-size:10px;text-transform:uppercase;letter-spacing:.8px;padding:5px 9px;border-radius:999px;font-weight:800;margin-bottom:12px}.auth-page-simple{background:linear-gradient(145deg,#edf4fc,#f9fbfd)}

@media(max-width:1100px){.auth-layout{grid-template-columns:1fr}.auth-showcase{min-height:360px;padding:42px}.auth-eyebrow{margin-top:52px}.auth-showcase h1{font-size:42px}.auth-panel{padding:42px 24px}}
@media(max-width:850px){body{overflow-x:hidden}.app-shell{display:block}.sidebar{width:100%;min-height:auto;position:relative}.brand{padding:17px}.sidebar-label,.sidebar-footer{display:none}.menu{display:flex;overflow-x:auto;gap:7px;padding:10px 12px}.menu a{min-width:max-content;margin:0;padding:10px 12px}.menu a.active:before{display:none}.main-content{width:100%}.topbar{position:relative;height:auto;padding:12px;gap:10px;flex-wrap:wrap}.search-form{width:100%;order:2}.page-content{padding:18px 14px 32px}.dashboard-title h2{font-size:23px}.row{margin-left:0;margin-right:0}.col-md-3,.col-md-4,.col-lg-4,.col-lg-8{padding-left:0;padding-right:0}.lote-card,.card-soft,.form-card{border-radius:14px;padding:16px}.lote-resumo{grid-template-columns:1fr}.lote-icon{width:54px;height:54px;border-radius:14px}.lote-icon img{width:34px;height:34px}.table-modern,.table{display:block;width:100%;overflow-x:auto;white-space:nowrap}.d-flex.justify-content-between{gap:10px}.auth-showcase{display:none}.auth-panel{min-height:100vh;padding:30px 22px}.auth-brand{margin-bottom:34px}}
@media(max-width:560px){.user-data{display:none}.brand-copy small{display:none}.brand{gap:10px}.brand-symbol{width:42px;height:42px}.menu a span{display:none}.menu a{min-width:44px;justify-content:center}.page-content{padding:16px 10px 28px}.btn{max-width:100%}.actions .btn{width:auto}.lote-expansivel summary{flex-direction:column;align-items:flex-start}.lote-check{width:100%;border-radius:10px}.auth-heading h3{font-size:26px}}

/* Identidade visual oficial Prix */
.brand-logo-wrap{
    width:58px;
    height:58px;
    flex:0 0 58px;
    border-radius:50%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:3px;
    box-shadow:0 10px 26px rgba(0,0,0,.2);
}
.brand-logo{width:100%;height:100%;display:block;object-fit:contain;border-radius:50%}
.user-badge-logo{background:#fff;padding:2px;border:1px solid var(--border);overflow:hidden}
.user-badge-logo img{width:100%;height:100%;display:block;object-fit:contain;border-radius:50%}
.auth-logo-wrap{
    width:64px;
    height:64px;
    flex:0 0 64px;
    border-radius:50%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:3px;
    box-shadow:0 10px 28px rgba(0,87,184,.18);
}
.auth-logo{width:100%;height:100%;display:block;object-fit:contain;border-radius:50%}
.corporate-logo-wrap{
    width:52px;
    height:52px;
    flex:0 0 52px;
    border-radius:50%;
    background:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:2px;
    box-shadow:0 10px 25px rgba(0,0,0,.18);
}
.corporate-logo-wrap img{width:100%;height:100%;display:block;object-fit:contain;border-radius:50%}

@media(max-width:850px){
    .brand-logo-wrap{width:48px;height:48px;flex-basis:48px}
}
@media(max-width:560px){
    .brand-logo-wrap{width:42px;height:42px;flex-basis:42px}
    .auth-logo-wrap{width:58px;height:58px;flex-basis:58px}
}


/* Correção definitiva de renderização do logo Prix */
.brand-logo,
.user-badge-logo img,
.auth-logo,
.corporate-logo-wrap img {
    filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    isolation: isolate;
    image-rendering: auto;
}

/* Conta do usuário e segurança */
.user-menu-button{display:flex;align-items:center;gap:11px;border:0;background:transparent;padding:5px 7px 5px 10px;border-radius:13px;color:var(--ink);transition:.18s}
.user-menu-button:hover,.user-menu-button:focus{background:#f2f6fb;outline:0}
.user-chevron{font-size:11px;color:var(--muted)}
.user-dropdown{min-width:245px;border:1px solid var(--border);border-radius:14px;padding:8px;box-shadow:var(--shadow-strong)}
.user-dropdown-header{padding:10px 12px 12px;border-bottom:1px solid var(--border);margin-bottom:5px;display:flex;flex-direction:column}
.user-dropdown-header strong{font-size:14px}.user-dropdown-header span{font-size:12px;color:var(--muted)}
.user-dropdown .dropdown-item{display:flex;align-items:center;gap:10px;border-radius:9px;padding:10px 11px;font-size:13px;font-weight:600}
.user-dropdown .dropdown-item i{width:18px;color:var(--primary)}
.user-dropdown .dropdown-item:hover{background:var(--primary-soft);color:var(--primary-dark)}
.user-dropdown form{margin:0}.user-dropdown .dropdown-logout{width:100%;color:var(--danger)}.user-dropdown .dropdown-logout i{color:var(--danger)}
.profile-summary{text-align:center;height:100%}.profile-avatar{width:86px;height:86px;border-radius:24px;margin:2px auto 17px;background:linear-gradient(145deg,var(--primary),var(--primary-dark));color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:850;box-shadow:0 12px 28px rgba(0,87,184,.25)}
.profile-summary h3{font-size:21px;font-weight:800;margin:0 0 9px}.profile-login{margin:18px 0 22px;color:var(--muted)}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.profile-info-item{padding:17px 18px;border:1px solid var(--border);background:#f9fbfd;border-radius:13px;display:flex;flex-direction:column;gap:5px}.profile-info-item span{font-size:11px;text-transform:uppercase;letter-spacing:.55px;color:var(--muted);font-weight:750}.profile-info-item strong{font-size:14px}
.password-heading{display:flex;align-items:center;gap:16px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--border)}.password-heading h4{font-weight:800;margin:0}.password-heading p{color:var(--muted);margin:3px 0 0}.password-icon{width:54px;height:54px;border-radius:16px;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:24px}
.password-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:15px 17px;border-radius:13px;background:#f4f8fd;border:1px solid #dce9f8;font-size:13px}.password-rules strong{grid-column:1/-1}.password-rules span{color:#536274}.password-rules i{color:var(--success);margin-right:5px}
.password-force-switch{padding:14px 15px 14px 48px;border:1px solid var(--border);border-radius:12px;background:#f9fbfd;min-height:51px}.password-force-switch .form-check-input{margin-left:-33px}.password-force-switch .form-check-label{font-weight:650;font-size:13px}
.account-status-strip{display:flex;flex-wrap:wrap;gap:12px 24px;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:#f8fafc;color:var(--muted);font-size:12px}.account-status-strip i{color:var(--primary);margin-right:5px}.account-status-strip strong{color:var(--ink)}
.status-warning{background:#fff4d9;color:#9a6300}.status-danger{background:#fdebed;color:#a92d39}
@media(max-width:850px){.profile-grid,.password-rules{grid-template-columns:1fr}.user-menu-button .user-data{display:none}}
