/* Administración Caja v3.67 · Siniestros compactos y ficha cronológica en panel */
.ac367-claim-page{display:flex;flex-direction:column;min-height:0;height:calc(100dvh - 170px)}
.ac367-claim-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid #acbfca;padding:5px 0 9px;min-height:40px}
.ac367-claim-buttons{display:flex;align-items:center;gap:9px;flex:none}
.ac367-claim-buttons h1{margin:0;font-size:19px;color:#183144}
.ac367-claim-buttons .btn{font-weight:750;padding:7px 11px}
.ac367-tabs{display:flex;align-items:center;gap:3px}
.ac367-tabs button{padding:6px 10px;font-size:12px;font-weight:750;border:1px solid #b6c4ce;background:#edf3f7;color:#314d60;border-radius:4px;cursor:pointer}
.ac367-tabs button.active{background:#f6d65c;border-color:#c39f30;color:#2b2c28}
.ac367-tabs button:hover{background:#ffe8a2}
.ac367-claim-search{display:flex;gap:5px;margin-left:auto;align-items:center}
.ac367-claim-search input{height:30px;min-width:125px;max-width:230px}
.ac367-split{display:grid;grid-template-columns:minmax(290px,40%) minmax(360px,1fr);gap:9px;flex:1;min-height:0;padding-top:8px}
.ac367-list,.ac367-detail{background:white;border:1px solid #b8c7d0;min-height:0;overflow:auto}
.ac367-list{border-radius:6px}
.ac367-detail{border-radius:6px}
.ac367-claim-rows{display:flex;flex-direction:column}
.ac367-claim-row{border:0;border-left:5px solid #85919b;border-bottom:1px solid #dfe8ed;padding:7px 10px;background:#fff;cursor:pointer;min-width:0}
.ac367-claim-row:nth-child(even){background:#f7f9fa}
.ac367-claim-row:hover{background:#ffefba}
.ac367-claim-row.is-selected{background:#fff4ce;box-shadow:inset 0 0 0 1px #d5ac32}
.ac367-claim-row.ac367-reported{border-left-color:#e0ad1a}
.ac367-claim-row.ac367-closed{border-left-color:#2e9866}
.ac367-row-top{display:flex;align-items:center;gap:5px;justify-content:space-between}
.ac367-row-top strong{font-size:12px;color:#142c40;font-weight:750;line-height:1.25}
.ac367-state{flex:0 0 auto;font-size:10px;font-weight:750;background:#e7edf0;color:#415464;border-radius:4px;padding:3px 5px}
.ac367-state.ac367-reported{background:#ffde73;color:#58440d}
.ac367-state.ac367-closed{background:#d8f3e3;color:#18623b}
.ac367-row-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#3f596c;margin-top:3px}
.ac367-row-case{font-size:10px;color:#647687;margin-top:2px}
.ac367-group{margin:3px;border:1px solid #c8d5de;border-radius:5px;overflow:hidden}
.ac367-group summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;padding:7px 10px;background:#eaf2f7;font-size:12px;font-weight:800;color:#25485f}
.ac367-group summary small{font-size:11px;background:#396b8a;padding:2px 7px;border-radius:9px;color:white}
.ac367-group summary:hover{background:#ffecaa}
.ac367-group .ac367-claim-row{border-left-width:4px}
.ac367-detail-inner{padding:12px 15px 20px;display:flex;flex-direction:column;gap:11px;min-width:0}
.ac367-detail-head{display:flex;gap:15px;align-items:start;justify-content:space-between;border-bottom:1px solid #d6e2e9;padding-bottom:7px}
.ac367-detail-head h2{font-size:17px;font-weight:850;color:#122d41;margin:2px 0 0}
.ac367-detail-community{font-size:12px;font-weight:750;color:#356780}
.ac367-detail-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 14px}
.ac367-detail-meta>div{display:flex;flex-direction:column;min-width:0;gap:2px}
.ac367-detail-meta small{font-size:10px;color:#526b7c;font-weight:750;text-transform:uppercase}
.ac367-detail-meta strong{font-size:12px;color:#142e41;overflow-wrap:anywhere}
.ac367-detail-phases{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid #dce5ea;padding:3px 0 10px}
.ac367-phase{font-size:11px;font-weight:800;border-radius:5px;padding:6px 10px;border:1px solid #bbc9d2;background:#eff2f4;color:#405768;cursor:pointer}
.ac367-phase.ac367-reported{border-color:#d8b44b;background:#fff6cf;color:#79600d}
.ac367-phase.ac367-closed{border-color:#98cdb5;background:#e6f7ee;color:#287249}
.ac367-phase.ac367-pending.active{background:#687783;color:white}
.ac367-phase.ac367-reported.active{background:#ffce3e;color:#372d0a}
.ac367-phase.ac367-closed.active{background:#25945a;color:white}
.ac367-background{border:1px solid #d5e1e8;border-radius:5px;background:#f8fafb}
.ac367-background summary{font-size:11px;font-weight:750;padding:6px 9px;color:#38566a;cursor:pointer}
.ac367-background>div{white-space:pre-wrap;font-size:12px;padding:6px 9px;color:#2e4050;max-height:180px;overflow:auto}
.ac367-note-form{display:flex;flex-direction:column;gap:5px}
.ac367-note-form label{font-size:12px;font-weight:800;color:#2b465b}
.ac367-note-form textarea{min-height:120px;resize:vertical;border:1px solid #a8becb;font-size:13px;line-height:1.48;padding:9px;color:#1c3040;border-radius:6px;background:#fff;box-sizing:border-box;width:100%}
.ac367-note-actions{display:flex;justify-content:space-between;gap:9px;align-items:center}
.ac367-note-actions small{font-size:10px;color:#667788}
.ac367-note-actions .btn{font-weight:750;white-space:nowrap}
.ac367-section-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #bdd1de;padding-bottom:5px;margin-bottom:8px}
.ac367-section-head h3{font-size:14px;font-weight:850;color:#1c3d53;margin:0}
.ac367-section-head span{font-size:11px;color:#678093}
.ac367-log-entry{border-left:3px solid #aac6da;padding:6px 9px 8px;margin-bottom:8px;background:#f2f7fb;border-radius:0 5px 5px 0}
.ac367-log-entry:nth-child(even){background:#f8fafb;border-left-color:#d2dce3}
.ac367-log-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px;border-bottom:1px solid #dfe9ef;padding-bottom:4px}
.ac367-log-head time{font-size:11px;font-weight:800;color:#28516d}
.ac367-log-head strong{font-size:10px;color:#4e667a}
.ac367-log-content{font-size:13px;line-height:1.46;white-space:pre-wrap;overflow-wrap:anywhere;padding-top:6px;color:#193043}
.ac367-empty,.ac367-empty-note,.ac367-blank{padding:17px;font-size:12px;color:#728597}
.ac367-blank h2{font-size:16px}
.ac367-claim-foot{color:#6a7c89;font-size:10px;padding-top:3px}
.ac367-community-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ac367-community-heading h1{font-size:19px;margin:0}
.ac367-community-table td{font-size:12px;padding:6px 8px}
.ac367-community-table th{padding:8px}
.ac367-community-toolbar{padding:4px 0 9px}
.ac367-trash-notice{padding:10px;background:#fff1de;color:#7c4e15;font-weight:700;font-size:12px;border-radius:5px}
@media(max-width:1080px){.ac367-claim-page{height:auto;min-height:calc(100dvh - 180px)}.ac367-split{grid-template-columns:1fr;min-height:700px}.ac367-list{max-height:260px}.ac367-detail{min-height:440px}}
@media(max-width:620px){.ac367-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.ac367-note-actions{align-items:flex-start;flex-direction:column}}
/* La ficha de servicios ocupa el ancho real del cuadro; columnas alineadas en todas las filas. */
.dialog:has(.ac363-service-area){width:min(1080px,96vw)!important;max-height:94dvh;padding:15px 18px}
.dialog:has(.ac363-service-area) .dialog-head{margin-bottom:9px}
.dialog:has(.ac363-service-area) .ac363-tabs{margin-bottom:7px}
.ac363-service-area{gap:5px!important}
.ac363-cards{display:flex!important;flex-direction:column!important;width:100%;min-width:0;align-items:stretch!important;overflow-x:auto}
.ac363-card.ac366-service{flex:0 0 auto!important;align-self:stretch!important;width:100%!important;max-width:100%!important;min-width:650px!important;box-sizing:border-box!important;grid-template-columns:minmax(115px,1.05fr) minmax(165px,1.5fr) minmax(115px,.9fr) minmax(190px,1fr)!important;gap:7px!important;min-height:32px!important;padding:4px 7px!important}
.ac366-controls{width:100%!important;display:flex!important;justify-content:flex-end!important;gap:3px!important}
.ac366-provider strong{font-size:12px!important}
.ac366-service-type{font-size:11px!important}
.ac366-methods span,.ac366-mail{font-size:10px!important}
.ac363-tag{max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ac366-icon{width:23px;height:23px;flex-basis:23px}
