/* 2 CUCA — Eventos V80 */
.ev-page-head{margin-bottom:16px}.ev-page-head h2{font-size:22px;font-weight:900;color:#172b44}.ev-page-head p{font-size:12px;color:#667085;margin-top:5px}
.ev-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.ev-stat{padding:15px 17px;border:1px solid #eee4da;background:#fff;border-radius:12px;box-shadow:0 2px 10px #251b1209}
.ev-stat span{display:block;font-size:11px;color:#667085;font-weight:700}.ev-stat strong{display:block;font-size:26px;color:#9c4e00;margin-top:6px}
.ev-create{border-top:3px solid #ea7600}.ev-actions{display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap;margin-top:17px}
.ev-layout{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:18px;align-items:start}
.ev-list-box{position:relative}.ev-list{display:flex;flex-direction:column;gap:7px;margin-top:12px;max-height:720px;overflow:auto}
.ev-event-row{display:flex;justify-content:space-between;align-items:flex-start;gap:7px;padding:12px;text-align:left;width:100%;background:#fff;border:1px solid #eae0d5;border-radius:10px;cursor:pointer}
.ev-event-row:hover{background:#fff9f1}.ev-event-row.selected{border-color:#ea7600;background:#fff8ec;box-shadow:inset 3px 0 #ea7600}
.ev-event-row strong{display:block;font-size:12px;color:#302a25}.ev-event-row small{display:block;font-size:10px;color:#777284;margin-top:5px}
.ev-phase{font-size:10px;font-weight:800;border-radius:99px;padding:5px 8px;display:inline-flex;align-items:center;white-space:nowrap;background:#f1f1f0;color:#5c5363}
.ev-phase.compras{background:#fff1d6;color:#925700}.ev-phase.pronto{background:#def7ea;color:#107d43}.ev-phase.despachado{background:#dceafa;color:#1859a3}.ev-phase.finalizado{background:#eee;color:#5b5960}
.ev-details>.card{margin-bottom:15px}.ev-title-line{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ev-title-line h3{font-size:18px;font-weight:900;color:#2b2927}.ev-title-line p{font-size:11px;color:#777068;margin-top:5px}
.ev-steps{display:flex;gap:6px;flex-wrap:wrap;margin-top:20px}.ev-steps>span{font-size:10px;flex:1 1 82px;background:#f3efe9;color:#80766c;border-radius:7px;padding:9px 7px;text-align:center;font-weight:800}
.ev-steps>span.done{background:#ffefda;color:#ad5600}.ev-steps>span.here{background:#ea7600;color:white}
.ev-budget{font-size:11px;color:#666;margin-top:14px}.ev-description{font-size:12px;color:#5c5960;line-height:1.6;margin-bottom:12px}
.ev-group{margin-top:15px}.ev-group h4{font-size:12px;color:#a95100;margin:0 0 8px;padding-bottom:7px;border-bottom:1px solid #f0e2d0}
.ev-item-line{display:grid;grid-template-columns:minmax(0,1fr) 90px 75px;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #f2eee8}
.ev-item-line b{font-size:12px;display:block;overflow-wrap:anywhere}.ev-item-line small{font-size:10px;color:#757075;display:block;margin-top:4px}
.ev-inline-fields{display:flex;align-items:end;gap:9px;flex-wrap:wrap}.ev-inline-fields label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;flex:1;min-width:135px}.ev-inline-fields label:first-child{flex:3;min-width:200px}
.ev-inline-fields button{height:35px}.ev-details .table-responsive{max-width:100%}.ev-details table th,.ev-details table td{white-space:normal;vertical-align:middle;min-width:75px}
.ev-details table .input-ctrl{width:88px;min-width:68px}.ev-details .ev-shopping-table .input-ctrl{width:100%;min-width:175px}.ev-table-sub{display:block;font-size:10px;color:#86796b;margin-top:5px}
.ev-muted{font-size:12px;color:#7c7268;margin-top:10px}.ev-empty{padding:40px 25px;text-align:center;color:#86786c;font-size:12px}
.ev-agenda-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.ev-agenda-tabs button{border:1px solid #ebdfce;border-radius:10px;background:#fff;padding:12px 16px;cursor:pointer;font-size:12px;font-weight:800;color:#725a42}.ev-agenda-tabs button.active{background:#ea7600;border-color:#ea7600;color:#fff}.ev-agenda-tabs strong{margin-left:5px}
.ev-agenda-list{display:flex;flex-direction:column;gap:10px}.ev-agenda-card{background:#fff;border:1px solid #f0e3d1;border-radius:12px;display:flex;align-items:center;gap:15px;padding:15px}.ev-agenda-card .ev-agenda-date{flex:none;background:#fff4e7;border-radius:9px;font-size:11px;color:#ad5600;font-weight:900;padding:11px}.ev-agenda-card>div{flex:1;min-width:120px}.ev-agenda-card b{font-size:13px;color:#312a25}.ev-agenda-card p{font-size:11px;color:#75717a;margin-top:5px}
@media(max-width:900px){.ev-layout{grid-template-columns:1fr}.ev-stats{grid-template-columns:repeat(2,1fr)}.ev-list{max-height:235px}}
@media(max-width:600px){.ev-stats{gap:7px}.ev-stat{padding:12px}.ev-stat strong{font-size:21px}.ev-agenda-card{align-items:flex-start;flex-wrap:wrap;gap:9px}.ev-agenda-card>button{margin-left:auto}.ev-title-line{flex-direction:column}.ev-details>.card{padding:13px}.ev-item-line{grid-template-columns:minmax(0,1fr) 75px auto;gap:5px}.ev-item-line .input-ctrl{width:75px}}

/* V81 — Cards ampliados e visibilidade da agenda */
.ev-stats{gap:16px;margin-bottom:23px}
.ev-stat{min-height:104px;padding:21px 21px;border-radius:15px;display:flex;flex-direction:column;justify-content:center}
.ev-stat span{font-size:12px}
.ev-stat strong{font-size:30px;line-height:1.18;margin-top:10px}
.ev-agenda-tabs button{min-height:52px;padding:15px 21px;font-size:13px;border-radius:13px}
.ev-agenda-card{min-height:90px;padding:20px 22px;gap:18px;border-radius:15px}
.ev-agenda-card b{font-size:15px}.ev-agenda-card p{font-size:12px}
.ev-agenda-card .ev-agenda-date{font-size:12px;padding:13px 14px}
.ev-agenda-card>button{padding:11px 17px;font-size:12px}
.ev-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:1500;padding:18px}
.ev-modal.is-open{display:flex}
.ev-modal-backdrop{position:absolute;inset:0;background:rgba(25,14,24,.66);backdrop-filter:blur(3px)}
.ev-modal-panel{position:relative;z-index:1;background:#fff;border:1px solid #ead9c6;border-radius:19px;box-shadow:0 22px 80px rgba(31,10,22,.24);padding:24px;width:min(100%,820px);max-height:min(88vh,860px);overflow-y:auto;overscroll-behavior:contain}
.ev-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;padding-bottom:13px;border-bottom:1px solid #ede2d5}
.ev-modal-head h2{font-size:19px;font-weight:900;color:#3b2e23;margin:0}
.ev-modal-close{width:38px;height:38px;border:1px solid #ead8c6;border-radius:10px;font-size:26px;line-height:1;color:#653b13;background:#fff;cursor:pointer}
.ev-modal-close:hover{background:#fff2df}
.ev-agenda-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ev-agenda-overview>div{border:1px solid #f0e1cb;border-radius:12px;background:#fffaf4;padding:14px 15px;overflow-wrap:anywhere}
.ev-agenda-overview>div>span{font-size:11px;color:#77685d;display:block;margin-bottom:8px}
.ev-agenda-overview>div>strong{font-size:14px;color:#3d3126;font-weight:850}
.ev-agenda-modal-subtitle{font-weight:900;font-size:14px;color:#6e3d13;margin:22px 0 12px}
.ev-agenda-detail-table{min-width:790px}
.ev-agenda-detail-table th,.ev-agenda-detail-table td{font-size:11px;padding:10px 8px;text-align:left}
.estoque-editor-panel{width:min(100%,650px)}
.estoque-edit-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.estoque-edit-full{grid-column:1/-1}
@media(max-width:700px){
 .ev-stats{gap:10px}.ev-stat{min-height:91px;padding:16px}.ev-stat strong{font-size:25px}
 .ev-agenda-card{min-height:85px;padding:16px 14px}
 .ev-modal{padding:10px}.ev-modal-panel{padding:15px;max-height:93vh}
 .ev-agenda-overview{grid-template-columns:1fr 1fr;gap:8px}
 .ev-agenda-overview>div{padding:12px}
 .estoque-edit-form{grid-template-columns:1fr}
}
@media(max-width:400px){.ev-agenda-overview{grid-template-columns:1fr}}

/* V82 — Sem coluna lateral de Eventos cadastrados; navegação operacional com retorno */
.ev-operation-tabs{display:flex;gap:10px;margin:4px 0 15px;flex-wrap:wrap}
.ev-operation-tabs button{border:1px solid #e8d6c1;background:#fff;border-radius:13px;padding:14px 19px;min-height:48px;color:#754a24;font-size:12px;font-weight:850;cursor:pointer}
.ev-operation-tabs button.active{background:#ea7600;border-color:#ea7600;color:#fff}
.ev-select-box{display:flex;flex-direction:column;gap:10px;margin-bottom:17px;max-width:100%}
.ev-select-box label{font-weight:850;font-size:12px;color:#3a2a1d}
.ev-select-box select{max-width:640px;min-height:43px;font-size:13px}
.ev-blank-faltante{min-height:25px}
.ev-details{width:100%;min-width:0}
.ev-details table .input-ctrl{width:100px;max-width:100%}
@media(max-width:650px){.ev-operation-tabs button{flex:1 1 100%;padding:13px}.ev-select-box{padding:14px}}

/* V83 — Editar carga: quatro colunas, categorias e tipografia ligeiramente ampliada */
.ev-card-carga .ev-description{font-size:13px;line-height:1.6}
.ev-card-carga .ev-carga-table{width:100%;border-collapse:collapse}
.ev-card-carga .ev-carga-table thead th{font-size:13px;font-weight:800;letter-spacing:.01em}
.ev-card-carga .ev-carga-table tbody td{font-size:13px;padding:13px 11px}
.ev-card-carga .ev-carga-table .ev-carga-produto{font-size:13.5px;line-height:1.4;display:block}
.ev-card-carga .ev-carga-table .ev-table-sub{font-size:11px}
.ev-card-carga .ev-carga-table .ev-carga-quantidade{font-size:13.5px;font-weight:800}
.ev-card-carga .ev-carga-table .ev-carga-group th{background:#fff3e3;border-top:1px solid #f0d8b9;border-bottom:1px solid #f0d8b9;color:#a95100;text-align:left;padding:11px 12px;font-size:13px;font-weight:900}
.ev-card-carga .ev-carga-group span{font-size:11px;margin-left:9px;font-weight:600;color:#946943}
.ev-card-carga .ev-carga-acoes{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ev-card-carga .ev-carga-acoes .btn,.ev-card-carga .ev-carga-editar{font-size:12px;min-height:34px}
.ev-card-carga .ev-carga-input{width:100px;max-width:100%;font-size:13px}
.ev-card-carga .ev-carga-table th:first-child{min-width:165px}
@media(max-width:550px){.ev-card-carga .table-responsive{overflow-x:auto}.ev-card-carga .ev-carga-table{min-width:510px}}

/* V84: padronização visual 2 CUCA */
.ev-operation-tabs[hidden]{display:none!important}
.ev-stat{border-top:3px solid #f28b0b}
.ev-stat:nth-child(3){border-top-color:#d1760d}
.ev-stat:nth-child(4){border-top-color:#718096}
.ev-phase.pronto{background:#ffebd2;color:#a95100}
.ev-phase.despachado{background:#fff1dd;color:#975208}
.ev-half-return{display:flex;align-items:center;gap:6px;min-width:132px}
.ev-half-return .input-ctrl{min-width:65px;width:76px!important}
.ev-half-button{border:1px solid #ea7600;color:#a95100;background:#fff7ec;border-radius:9px;padding:9px 10px;cursor:pointer;font-size:14px;font-weight:900;white-space:nowrap}
.ev-half-button:hover{background:#ffead1}
.ev-half-button:disabled{opacity:.45;cursor:not-allowed}

/* V85: Retorno sem cards; escolher evento apenas pelo seletor. */
.ev-select-box select{width:100%;max-width:640px}
.ev-select-box select:disabled{background:#f5f4f6;color:#726a74;cursor:not-allowed}

/* V86 — identidade operacional laranja e telas independentes */
:root{--ev-accent:#f28a00;--ev-accent-dark:#b75d00;--ev-accent-soft:#fff3e3}
#view-dashboard .dashboard-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}
#view-dashboard .dashboard-summary .kpi-card{min-height:125px;padding:22px 24px;display:flex;flex-direction:column;justify-content:center;border-top:3px solid var(--ev-accent);border-radius:15px}
#view-dashboard .dashboard-summary .kpi-val{font-size:29px;margin:8px 0}
#view-dashboard .dashboard-status,#view-dashboard .dashboard-actions{margin-bottom:18px}
.dashboard-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.dashboard-go{border:1px solid #eadfcf;background:#fff;border-radius:12px;padding:15px;text-align:left;display:flex;align-items:center;gap:12px;color:#303239;cursor:pointer;min-height:76px}
.dashboard-go:hover{border-color:#f28a00;background:#fff8ef}
.dashboard-go[hidden]{display:none!important}
.dashboard-go>span:nth-child(2){display:grid;gap:5px;flex:1}
.dashboard-go strong{font-size:13px}.dashboard-go small{color:#6c7180;font-size:11px}
.dashboard-go-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:11px;background:#fff0d9;color:#b75d00;font-weight:900}
.ev-page-head h2{color:#172b44;font-size:24px}.ev-page-head p{font-size:13px;line-height:1.55}
.ev-phase.separacao,.ev-phase.planejamento{background:#fff2df;color:#925000}
.ev-steps>span.here{background:#f28a00;color:#fff}
.ev-steps>span.done{background:#fff1d9;color:#a45700}
.ev-agenda-tabs button.active{background:#f28a00;border-color:#f28a00;color:#fff}
.ev-card-carga .ev-carga-table .ev-carga-group th{background:#fff0d9;border-color:#ead5b2;color:#965000}
.ev-phase.pronto{background:#ffedd4;color:#9c5200}
.ev-phase.despachado{background:#fff1dd;color:#965000}
.ev-half-button{background:#fff5e5;border-color:#f28a00;color:#a45300}
.ev-half-button:hover{background:#ffebc9}
.ev-modal-backdrop{background:rgba(24,31,40,.55)}
.ev-modal-panel{border-color:#e9ddc9}.ev-modal-head h2{color:#172b44}
.ev-agenda-overview>div{background:#fffbf6;border-color:#ebdfce}
.ev-event-row.selected{border-color:#f28a00;box-shadow:inset 3px 0 #f28a00;background:#fff9f0}
.ev-operation-tabs button.active{background:#f28a00;border-color:#f28a00}
#view-eventos .ev-select-box,#view-editar-carga .ev-select-box,#view-retorno-eventos .ev-select-box{border-top:3px solid #f28a00}
#view-eventos .ev-details .card,#view-editar-carga .ev-details .card,#view-retorno-eventos .ev-details .card{margin-bottom:15px}
#view-retorno-eventos .btn-green{background:#e8790a;color:#fff}
#view-editar-carga .ev-carga-editar:hover{background:#fff1dc;color:#974900}
@media(max-width:960px){#view-dashboard .dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#view-dashboard .dashboard-summary{grid-template-columns:1fr}.dashboard-shortcuts{grid-template-columns:1fr}.ev-details .table-responsive{overflow-x:auto}.ev-page-head h2{font-size:21px}}

/* V101 — conferência de materiais frágeis e regularização */
.v101-reg-panel{border-top:3px solid #e97805}.v101-reg-item{padding:15px 0;border-bottom:1px solid #f2e7da}
.v101-reg-item strong{font-size:13px}.v101-reg-item small{display:block;margin-top:4px;color:#8b725a;font-size:11px}
.v101-reg-fields{display:flex;gap:9px;align-items:flex-end;flex-wrap:wrap;margin-top:11px}
.v101-reg-fields label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:750;min-width:105px}
.v101-reg-fields label:nth-child(2){flex:1;min-width:180px}
.v101-reg-fields .btn{min-height:37px}.v101-reg-history{margin-top:20px;color:#785839;font-size:12px}
.v101-reg-history summary{cursor:pointer;font-weight:850}.v101-reg-history>div{margin-top:10px;padding:8px;border-bottom:1px solid #efeadf}
.v101-reg-note{font-size:11px;line-height:1.5;color:#8c6e52}.v101-return-table{min-width:730px}
