#group-nave{display:grid;grid-template-columns:minmax(90px,.9fr) minmax(110px,1.2fr) auto;gap:6px;align-content:start;align-items:center}#group-nave>label{grid-column:1/-1;margin-bottom:0}#group-nave .form-input{margin:0;min-width:0;width:100%}#group-nave .vessel-inline-add{font:inherit;font-size:10px;border:1px solid var(--border-color);background:transparent;color:var(--text-primary);border-radius:4px;padding:8px 5px;cursor:pointer}#group-nave .vessel-inline-add:disabled{display:none}#group-nave:has(.vessel-inline-add:disabled){grid-template-columns:minmax(90px,.9fr) minmax(110px,1.2fr)}
#client-header-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;max-width:210px;line-height:1.1}#client-header-brand img{max-width:140px;height:21px;object-fit:contain}#client-header-brand span{font-size:10px;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#client-header-brand[hidden],#client-header-brand img[hidden],.system-title[hidden]{display:none!important}#client-header-site{border:0;background:transparent;color:inherit;cursor:pointer;padding:3px 0;font:inherit;text-align:left}#client-header-site:disabled{cursor:default}#client-header-site:not(:disabled):after{content:'⌄';font-size:11px;margin-left:6px}#client-header-site:focus-visible{outline:2px solid currentColor;outline-offset:3px}.top-bar:has(#client-header-brand:not([hidden])){min-height:52px}
/* Segmentación por cliente: lista de emplazamientos con semáforo + formulario del cliente. */
.seg-help{font-size:12px;color:var(--text-muted);margin:14px 0 18px;line-height:1.6}
.seg-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:20px;align-items:start}
.seg-sites{display:flex;flex-direction:column;gap:10px;position:sticky;top:0}
.seg-legend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 12px;font-size:11px;color:var(--text-muted)}.seg-legend li{display:flex;align-items:center;gap:6px}
.seg-dot{display:inline-block;flex:0 0 auto;width:11px;height:11px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(15,23,42,.12)}
.seg-dot[data-state=ok]{background:#00b34c}.seg-dot[data-state=pending]{background:#ffd41f}.seg-dot[data-state=overdue]{background:#ed303c}.seg-dot[data-state=none]{background:#94a3b8}
.seg-site-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:62vh;overflow:auto}
.seg-site{width:100%;display:flex;flex-direction:column;gap:3px;text-align:left;padding:10px 12px;border:1px solid var(--border-color,#e2e8f0);border-radius:8px;background:#fff;color:var(--text-primary,#1e293b);font:inherit;font-size:13px;cursor:pointer}
.seg-site:hover{background:#f6f8fb}.seg-site[aria-current=true]{border-color:#2563eb;box-shadow:inset 3px 0 0 #2563eb;background:#f5f8ff}
.seg-site-name{display:flex;align-items:center;gap:8px;font-weight:500}.seg-site small{font-size:11px;color:var(--text-muted)}
.seg-empty{font-size:12px;color:var(--text-muted);padding:12px;border:1px dashed var(--border-color,#cbd5e1);border-radius:8px;margin:0}
#seg-form{min-width:0}#seg-form fieldset{border:1px solid var(--border-color,#e2e8f0);border-radius:8px;padding:14px 16px 16px;margin:0 0 14px;min-width:0}
#seg-form legend{padding:0 6px;font-size:12px;font-weight:600;color:var(--text-primary,#1e293b)}
.seg-form-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.seg-form-head h3{margin:0;font-size:16px}.seg-form-head small{font-size:11px;color:var(--text-muted)}
.seg-status{display:flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--border-color,#e2e8f0);border-radius:8px;background:#fff;max-width:420px}.seg-status .seg-dot{width:16px;height:16px}.seg-status strong{display:block;font-size:13px}.seg-status small{display:block;font-size:11px;color:var(--text-muted);line-height:1.4}
.seg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px 18px}.seg-grid label,.seg-logo-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:400}.seg-grid small,.seg-hint{font-size:11px;color:var(--text-muted);line-height:1.5}
.seg-grid .seg-check{flex-direction:row;align-items:center;gap:8px;align-self:center}.seg-check input{width:16px;height:16px;margin:0}
.seg-logo-field{grid-column:1/-1}.seg-logo-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.seg-logo-row img{max-width:200px;max-height:56px;object-fit:contain;padding:6px;border:1px solid var(--border-color,#e2e8f0);border-radius:6px;background:#fff}.seg-logo-row img[hidden],#seg-logo-empty[hidden]{display:none}#seg-logo-empty{font-size:12px;color:var(--text-muted)}.seg-file{cursor:pointer}
.seg-notice{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:6px}.seg-notice select,.seg-notice>.custom-select{flex:0 0 240px;max-width:240px;margin:0}
.seg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.seg-actions{display:flex;justify-content:flex-end;margin:8px 0 16px}#seg-feedback{font-size:12px;line-height:1.6;color:#21684d;margin:6px 0 0}#seg-feedback.seg-error{color:#a42935}
@media(max-width:900px){.seg-layout{grid-template-columns:1fr}.seg-sites{position:static}.seg-site-list{max-height:none}}
@media(max-width:640px){#client-header-brand{max-width:110px}#client-header-brand span{max-width:110px;font-size:9px}#client-header-brand img{max-width:100px;height:19px}#client-header-site{max-width:140px}#client-header-site .top-bar-site{max-width:120px;overflow:hidden;text-overflow:ellipsis;display:inline-block;vertical-align:middle}}

#group-nave{display:block}.vessel-fields-row{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr) auto;gap:6px;align-items:center}.vessel-fields-row:has(.vessel-inline-add:disabled){grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr)}#group-nave .vessel-fields-row .form-input{margin:0;min-width:0;width:100%}
