/* Hub Migliorshop Pay: reuses Google Ads' CRM tokens and structure. */
#hub-view .hub-pay[hidden],#hub-pay-dialog[hidden],#hub-pay-history[hidden]{display:none!important}
#hub-view .hub-pay{min-width:0;padding:2px 0}
#hub-view .hub-pay__header h2{color:var(--hub-title);font-size:24px;margin:0}
#hub-view .hub-pay__header p{color:var(--hub-muted);font-size:13px;margin:6px 0 0}
#hub-view .hub-pay__refresh{display:inline-flex;align-items:center;gap:7px}
#hub-view .hub-pay__refresh svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
#hub-view .hub-pay__summary{grid-template-columns:repeat(3,minmax(0,1fr))}
#hub-view .hub-pay__filters{
  grid-template-columns:minmax(200px,1.4fr) minmax(130px,.65fr) minmax(150px,.65fr) minmax(135px,.65fr) auto;
}
#hub-view .hub-pay__table-wrap{overflow-x:auto;border:1px solid var(--hub-border);border-radius:12px;margin-top:12px;background:#fff}
#hub-view .hub-pay__table{
  width:100%;min-width:1020px;table-layout:fixed;border-collapse:collapse;
  color:var(--hub-text);font-size:12px;text-align:left;
}
#hub-view .hub-pay__table thead th{
  padding:13px 12px;border-bottom:1px solid #0e2166;background:#0e2166;
  color:#fff;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.025em;
}
#hub-view .hub-pay__table th:nth-child(1){width:23%}
#hub-view .hub-pay__table th:nth-child(2){width:12%}
#hub-view .hub-pay__table th:nth-child(3){width:13%}
#hub-view .hub-pay__table th:nth-child(4){width:16%}
#hub-view .hub-pay__table th:nth-child(5){width:17%}
#hub-view .hub-pay__table th:nth-child(6){width:9%}
#hub-view .hub-pay__table th:nth-child(7){width:10%;text-align:right}
#hub-view .hub-pay__table td{padding:12px;border-bottom:1px solid var(--hub-border);vertical-align:middle;overflow-wrap:anywhere}
#hub-view .hub-pay__table tr:hover{background:var(--hub-soft)}
#hub-view .hub-pay__table tr:last-child td{border-bottom:0}
#hub-view .hub-pay__table .hub-client{display:flex;flex-direction:column;gap:5px}
#hub-view .hub-pay__table .hub-client strong{color:var(--hub-title);font-size:13px}
#hub-view .hub-pay__table .hub-client small{color:var(--hub-muted);font-size:11px}
#hub-view .hub-pay__table .hub-pay__highlight{color:var(--hub-primary);font-size:14px}
#hub-view .hub-pay__notes{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:250px}
#hub-view .hub-pay__actions{display:flex;justify-content:flex-end;align-items:center;gap:6px}
#hub-view .hub-pay__actions button{
  display:grid;place-items:center;flex:0 0 33px;width:33px;min-width:33px;
  height:33px;min-height:33px;padding:6px;border:1px solid var(--hub-border-strong);
  border-radius:8px;background:#fff;color:var(--hub-title);cursor:pointer;
}
#hub-view .hub-pay__actions button:hover{background:#eef6ff;color:var(--hub-primary);border-color:var(--hub-primary)}
#hub-view .hub-pay__actions svg{
  width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}
#hub-view .hub-pay__none{text-align:center;color:var(--hub-muted);padding:30px 12px!important}
#hub-view .hub-pay__filters input[type="number"]{min-width:0}
.hub-pay__modal .hub-dialog__panel{max-width:min(760px,calc(100vw - 32px));max-height:92vh;overflow-y:auto}
.hub-pay__form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.hub-pay__form-grid label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;color:#0e2166;font-weight:650}
.hub-pay__form-grid label> :is(input,select,textarea){
  display:block;width:100%;min-width:0;min-height:42px;box-sizing:border-box;
  padding:9px 11px;border:1px solid #c9d4e3;border-radius:9px;
  background:#fff;color:#1f2a44;font-size:13px;
}
.hub-pay__form-grid textarea{resize:vertical}
.hub-pay__form-grid .hub-pay__form-company,.hub-pay__form-grid .hub-pay__form-notes{grid-column:1/-1}
.hub-pay__form-grid input[readonly]{background:#f6f8fb;color:#475467}
.hub-pay__form{padding:18px 20px}
.hub-pay__history{display:grid;gap:10px;padding:16px 20px;max-height:52vh;overflow-y:auto}
.hub-pay__history-entry{display:grid;gap:6px;padding:13px 15px;background:#f8fafc;border:1px solid #dfe6f0;border-radius:11px}
.hub-pay__history-entry strong{color:#0e2166;font-size:13px}
.hub-pay__history-entry small{color:#667085;font-size:11px}
@media(max-width:950px){
 #hub-view .hub-pay__filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 #hub-view .hub-pay__filters .hub-search{grid-column:1/-1}
}
@media(max-width:640px){
 #hub-view .hub-pay__header{flex-direction:column}
 #hub-view .hub-pay__summary{grid-template-columns:minmax(0,1fr)}
 #hub-view .hub-pay__filters{grid-template-columns:minmax(0,1fr)}
 #hub-view .hub-pay__filters .hub-search{grid-column:1}
 .hub-pay__form-grid{grid-template-columns:minmax(0,1fr)}
 .hub-pay__form-grid .hub-pay__form-company,.hub-pay__form-grid .hub-pay__form-notes{grid-column:1}
 #hub-view .hub-subnav{flex-wrap:wrap}
}

#hub-view #hub-migliorshop-pay .hub-pay__table tbody tr[data-pay-row-id]{cursor:pointer}
#hub-view #hub-migliorshop-pay .hub-pay__table tbody tr[data-pay-row-id]:focus-visible{outline:2px solid #1769d2;outline-offset:-2px}
#hub-view #hub-migliorshop-pay .hub-pay__table th:nth-child(7){text-align:center}
#hub-view #hub-migliorshop-pay .hub-pay__actions{justify-content:center}
