
/* v2.7.197 — invoice-history server-filtered controls */
.gns-history-filters-v197{display:flex;flex-direction:column;gap:12px;min-width:0}
.gns-history-period{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:10px;border:1px solid #d9e4f1;background:#f7fafe;border-radius:9px}
.gns-history-period label{display:flex;flex-direction:column;gap:4px;min-width:130px;flex:0 1 auto;color:#28445f}
.gns-history-period .gns-history-search{flex:1 1 230px}
.gns-history-input-caption{font-size:11px;font-weight:750}
.gns-history-period input,.gns-history-period select{width:100%;min-height:36px;padding:7px 9px;border-radius:6px;border:1px solid #c3d4e7;background:#fff;color:#1e3a55}
.gns-history-period .gns-history-reset{min-height:36px;white-space:nowrap;border:1px solid #bdcfe2;color:#345c7e;background:#fff;border-radius:7px;padding:6px 11px}
.gns-history-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.gns-history-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px 10px;min-height:75px;text-align:left;border:1px solid #d4e2f0;border-radius:9px;background:#fff;color:#214261;cursor:pointer;transition:border-color .14s,background .14s}
.gns-history-card:hover{background:#f2f8ff;border-color:#89aed8}
.gns-history-card.active{background:#eaf3ff;border:2px solid #3174bc;padding:11px 9px}
.gns-history-card[aria-pressed=true]{box-shadow:0 0 0 1px #cde1f8}
.gns-history-card-label{font-size:11px;font-weight:700;line-height:1.2}
.gns-history-card strong{font-size:20px;line-height:1.1;font-variant-numeric:tabular-nums}
.gns-history-result-label{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#345675}
.gns-history-pagination{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;font-size:12px}
.gns-history-pagination span{margin-right:auto}
.gns-history-pagination button{padding:6px 10px;border-radius:6px;border:1px solid #c3d4e7;background:#fff}
.gns-history-pagination button:disabled{opacity:.55;cursor:default}
@media(max-width:900px){.gns-history-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:530px){.gns-history-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.gns-history-period label{flex:1 1 100%}}


/* v2.7.198: invoice delivery event detail dialog. Keep the table in place. */
.gns-invoice-event-overlay{
 position:fixed!important;inset:0!important;z-index:2147482000!important;
 display:flex;align-items:center;justify-content:center;
 padding:20px;background:rgba(14,30,53,.64);
 overscroll-behavior:contain;
}
.gns-invoice-event-dialog{
 width:min(690px,100%);max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);
 overflow:auto;overscroll-behavior:contain;background:#fff;color:#173550;
 border-radius:14px;border:1px solid #cbd8e5;
 box-shadow:0 24px 80px rgba(8,29,55,.32);outline:none;position:relative;
}
.gns-invoice-event-dialog:focus-visible{outline:3px solid #5794db;outline-offset:2px}
.gns-invoice-event-header{
 position:sticky;top:0;z-index:2;background:#f5f9ff;
 border-bottom:1px solid #dbe6f3;padding:18px 20px;
 display:flex;justify-content:space-between;gap:18px;align-items:start;
}
.gns-invoice-event-header h3{margin:0 0 6px;font-size:19px;line-height:1.25;color:#153b61}
.gns-invoice-event-header p{margin:0;color:#496883;font-size:13px;overflow-wrap:anywhere}
.gns-invoice-event-close{
 font-size:26px!important;font-weight:400!important;line-height:1!important;
 width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;
 background:#fff!important;color:#264863!important;border:1px solid #cbd8e5!important;
 border-radius:9px!important;cursor:pointer;
}
.gns-invoice-event-close:hover{background:#eaf2fd!important}
.gns-invoice-event-body{padding:20px;display:flex;flex-direction:column;gap:15px}
.gns-invoice-event-summary{
 display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;
 padding:10px 12px;border-radius:9px;background:#f2f6fb;border:1px solid #dbe5f0;
 font-size:13px;font-weight:650
}
.gns-invoice-event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.gns-invoice-event-time{
 display:flex;flex-direction:column;gap:5px;padding:12px;
 background:#f9fbff;border:1px solid #dce5ef;border-radius:9px;
 min-width:0;overflow-wrap:anywhere;
}
.gns-invoice-event-time span{font-size:12px;color:#53708d}
.gns-invoice-event-time strong{font-size:13px;color:#1b3b58;font-variant-numeric:tabular-nums}
.gns-invoice-event-information{display:grid;gap:4px;font-size:13px;overflow-wrap:anywhere}
.gns-invoice-event-information strong{font-size:12px;color:#496883}
.gns-invoice-event-error{
 padding:13px;border-radius:9px;border:1px solid #f3bea9;background:#fff2ec;
 color:#8a351f;overflow-wrap:anywhere;font-size:13px
}
.gns-invoice-event-error p{margin:6px 0 0;white-space:pre-wrap}
.gns-invoice-event-hint{font-size:12px;color:#5f7388;margin:0}
.gns-invoice-event-footer{
 position:sticky;bottom:0;background:#fff;border-top:1px solid #dce6ef;
 padding:12px 20px;display:flex;justify-content:space-between;align-items:center;gap:10px
}
.gns-invoice-event-footer span{color:#75889b;font-size:12px}
.gns-invoice-event-dismiss{background:#2867a4!important;color:#fff!important;
 border:1px solid #2867a4!important;border-radius:8px!important;
 padding:10px 22px!important;font-weight:700;cursor:pointer}
.gns-invoice-event-dismiss:hover{background:#1c558b!important}
@media(max-width:600px){
 .gns-invoice-event-overlay{padding:10px}
 .gns-invoice-event-dialog{max-height:calc(100dvh - 20px)}
 .gns-invoice-event-grid{grid-template-columns:1fr}
 .gns-invoice-event-body{padding:14px}
 .gns-invoice-event-header{padding:14px}
}
