/* Hub BRT: visual language shared with Hub Google Ads and Migliorshop Pay. */
#hub-view #hub-brt[hidden], #hub-brt-dialog[hidden], #hub-brt-history[hidden], #hub-brt-import-dialog[hidden] {display:none!important}
#hub-view .hub-brt{min-width:0;padding:2px 0}
#hub-view .hub-brt__header h2{color:var(--hub-title);font-size:24px;margin:0}
#hub-view .hub-brt__header p{color:var(--hub-muted);font-size:13px;margin:6px 0 0}
#hub-view .hub-brt__summary{grid-template-columns:repeat(3,minmax(0,1fr))}
#hub-view .hub-brt__filters{grid-template-columns:minmax(220px,2fr) minmax(170px,.6fr) auto}
#hub-view .hub-brt__table-wrap{overflow-x:auto;border:1px solid var(--hub-border);border-radius:12px;margin-top:12px;background:#fff}
#hub-view .hub-brt__table{width:100%;min-width:1050px;table-layout:fixed;border-collapse:collapse;color:var(--hub-text);font-size:12px}
#hub-view .hub-brt__table th{padding:13px 12px;border-bottom:1px solid #0e2166;background:#0e2166;color:white;font-size:11px;text-align:left;text-transform:uppercase}
#hub-view .hub-brt__table th:nth-child(1){width:21%}
#hub-view .hub-brt__table th:nth-child(2){width:14%}
#hub-view .hub-brt__table th:nth-child(3){width:16%}
#hub-view .hub-brt__table th:nth-child(4){width:12%}
#hub-view .hub-brt__table th:nth-child(5){width:12%}
#hub-view .hub-brt__table th:nth-child(6){width:9%;text-align:center}
#hub-view .hub-brt__table th:nth-child(7){width:16%;text-align:center}
#hub-view .hub-brt__table td{padding:12px;border-bottom:1px solid var(--hub-border);vertical-align:middle;overflow-wrap:anywhere}
#hub-view .hub-brt__table tr:hover{background:var(--hub-soft)}
#hub-view .hub-brt__table tr:last-child td{border-bottom:0}
#hub-view .hub-brt__table .hub-client{display:grid;gap:5px}
#hub-view .hub-brt__table .hub-client strong{font-size:13px;color:var(--hub-title)}
#hub-view .hub-brt__table .hub-client small{font-size:11px;color:var(--hub-muted)}
#hub-view .hub-brt__actions{display:flex;justify-content:center;gap:5px}
#hub-view .hub-brt__actions button{display:grid;place-items:center;width:33px;height:33px;min-width:33px;padding:6px;border:1px solid var(--hub-border-strong);border-radius:8px;background:#fff;color:var(--hub-title);cursor:pointer}
#hub-view .hub-brt__actions button:hover{background:#eef6ff;color:var(--hub-primary);border-color:var(--hub-primary)}
#hub-view .hub-brt__actions svg{width:16px;height:16px}
#hub-view .hub-brt__empty{padding:30px 10px!important;text-align:center;color:var(--hub-muted)}
.hub-brt__modal .hub-dialog__panel{max-width:min(1000px,calc(100vw - 26px));max-height:93vh;overflow-y:auto}
.hub-brt__form{padding:17px 21px}
.hub-brt__company{display:grid;gap:7px;color:#0e2166;font-size:12px;font-weight:700;margin-bottom:16px}
.hub-brt__company input,.hub-brt__field-grid input,.hub-brt__import input{width:100%;box-sizing:border-box;min-height:40px;padding:9px 11px;border:1px solid #c9d4e3;border-radius:8px;background:white;color:#1f2a44;font-size:13px}
.hub-brt__form input:disabled{background:#f4f7fb;color:#475467}
.hub-brt__field-group{border:1px solid #dfe6f0;border-radius:11px;padding:14px;margin:0 0 14px}
.hub-brt__field-group legend{font-size:14px;font-weight:750;color:#0e2166;padding:0 8px}
.hub-brt__field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hub-brt__field-grid label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;color:#0e2166;font-weight:650}
.hub-brt__field-grid small{color:#667085;font-size:10px;font-weight:400}
.hub-brt__form .hub-dialog__footer{padding:16px 0 0}
.hub-brt__history{padding:16px 21px;display:grid;gap:10px;max-height:60vh;overflow-y:auto}
.hub-brt__history-item{border:1px solid #dfe6f0;border-radius:11px;padding:14px;background:#f8fafc}
.hub-brt__history-item strong{color:#0e2166}
.hub-brt__history-item time{display:block;color:#667085;font-size:11px;margin:6px 0}
.hub-brt__history-item p{font-size:12px;margin:6px 0;overflow-wrap:anywhere}
.hub-brt__import{padding:17px 21px;display:grid;gap:13px}
.hub-brt__import>label{font-size:12px;font-weight:650;color:#0e2166;display:grid;gap:7px}
.hub-brt__import-actions{display:flex;gap:8px;flex-wrap:wrap}
.hub-brt__preview{max-height:50vh;overflow-y:auto;min-width:0}
.hub-brt__preview-wrap{overflow-x:auto}
.hub-brt__preview table{border-collapse:collapse;width:100%;min-width:730px;font-size:12px}
.hub-brt__preview th{background:#0e2166;color:white;padding:10px;text-align:left}
.hub-brt__preview td{padding:10px;border-bottom:1px solid #dfe6f0;vertical-align:top;overflow-wrap:anywhere}
.hub-brt__preview td small{display:block;color:#667085;margin-top:3px}
.hub-brt__preview input{min-width:200px}
@media(max-width:900px){
 #hub-view .hub-brt__filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hub-brt__field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
 #hub-view .hub-brt__header{flex-direction:column}
 #hub-view .hub-brt__summary,#hub-view .hub-brt__filters{grid-template-columns:minmax(0,1fr)}
 .hub-brt__field-grid{grid-template-columns:minmax(0,1fr)}
 .hub-brt__form{padding:12px}
}
/* Each of the eight headers has its own width; keep status/actions under their headings. */
#hub-view #hub-brt .hub-brt__table td[data-label="Stato"],
#hub-view #hub-brt .hub-brt__table td[data-label="Azioni"]{text-align:center}
#hub-view #hub-brt .hub-brt__table td[data-label="Stato"] .hub-brt__state{margin-inline:auto}
#hub-view #hub-brt .hub-brt__table tbody tr[data-brt-row-id]{cursor:pointer}
#hub-view #hub-brt .hub-brt__table tbody tr[data-brt-row-id]:focus-visible{outline:2px solid #1769d2;outline-offset:-2px}

/* Destructive BRT action and CRM-style double-confirmation dialog. */
#hub-view #hub-brt .hub-brt__actions .hub-brt__delete-action{color:#b42318!important;border-color:#f0c6c3!important;background:#fff8f7!important}
#hub-view #hub-brt .hub-brt__actions .hub-brt__delete-action:hover{color:#8a1c14!important;border-color:#e08a83!important;background:#ffedec!important}
#hub-brt-delete[hidden]{display:none!important}
#hub-brt-delete .hub-dialog__panel{max-width:min(660px,calc(100vw - 32px));max-height:calc(100dvh - 36px);overflow-y:auto}
#hub-brt-delete .hub-convention__modal-mark{background:#fff0ee!important;color:#b42318!important}
#hub-brt-delete .hub-brt__delete-form{display:grid;gap:15px;padding:22px 24px;background:#f6f8fc;color:#253752}
#hub-brt-delete .hub-brt__delete-warning{margin:0;padding:14px 16px;border-radius:10px;border:1px solid #f3c7c2;background:#fff5f4;color:#82332a;line-height:1.6;font-size:13px}
#hub-brt-delete .hub-brt__delete-form label{display:grid;gap:7px;font-size:12px;color:#334964;font-weight:650}
#hub-brt-delete .hub-brt__delete-form label strong{color:#0e2166}
#hub-brt-delete .hub-brt__delete-form input{min-height:44px;width:100%;border:1px solid #c9d4e3;border-radius:9px;background:#fff;padding:10px 12px;color:#182841;font-size:13px}
#hub-brt-delete .hub-brt__delete-form input:focus-visible{outline:2px solid #1e78d8;outline-offset:1px}
#hub-brt-delete [data-brt-delete-error]{margin:0;color:#b42318;text-align:left}
#hub-brt-delete .hub-dialog__footer{display:flex;justify-content:flex-end;gap:10px;padding:12px 0 0}
#hub-brt-delete .hub-brt__delete-submit{background:#b42318;border:1px solid #b42318;border-radius:9px;color:#fff;font-weight:750;padding:10px 16px;cursor:pointer}
#hub-brt-delete .hub-brt__delete-submit:hover:not(:disabled){background:#8c211b}
#hub-brt-delete .hub-brt__delete-submit:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:600px){#hub-brt-delete .hub-brt__delete-form{padding:16px}#hub-brt-delete .hub-dialog__footer{flex-wrap:wrap}}

/* Four icons must fit the last column without covering the previous cell. */
#hub-view #hub-brt .hub-brt__actions{gap:4px}
#hub-view #hub-brt .hub-brt__actions button{width:32px;min-width:32px;height:32px}
