/* GoodByte Mail operations UI V4: compatible with existing isolated CSS. */
.gbops{--gbops-primary:#075c72;--gbops-teal:#07958f;--gbops-text:#173a48;--gbops-muted:#657c86;--gbops-border:#dce7ec;--gbops-bg:#f5f8fa;--gbops-shadow:0 5px 20px rgba(8,48,63,.045);font-family:"DIN Next LT Arabic","Segoe UI",Tahoma,Arial,sans-serif;color:var(--gbops-text);background:var(--gbops-bg);padding:22px;min-height:100%;font-size:14px;line-height:1.6;box-sizing:border-box}
.gbops *, .gbops *::before,.gbops *::after{box-sizing:border-box}
.gbops a{color:#087b85;text-decoration:none}
.gbops a:hover{text-decoration:underline}
.gbops-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}
.gbops-head h1,.gbops .page-header h1{font-size:clamp(22px,2.2vw,29px);font-weight:800;line-height:1.4;color:#163d4c;margin:2px 0 5px}
.gbops-head p{margin:0;color:var(--gbops-muted);max-width:760px}
.gbops-eyebrow{font-size:11px;letter-spacing:.1em;font-weight:850;color:#0b8992}
.gbops-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.gbops .gbops-btn{min-height:38px;min-width:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #cadce3;background:#fff;color:#175264;border-radius:10px;padding:7px 13px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;text-decoration:none;white-space:nowrap}
.gbops .gbops-btn:hover:not(:disabled){border-color:#55a6af;text-decoration:none;filter:brightness(.98)}
.gbops .gbops-btn:focus-visible,.gbops input:focus-visible,.gbops select:focus-visible{outline:3px solid rgba(7,149,143,.25);outline-offset:2px}
.gbops .gbops-btn:disabled{opacity:.5;cursor:not-allowed}
.gbops .gbops-btn.primary{border-color:#086e7d;background:linear-gradient(135deg,#086376,#089a96);color:#fff}
.gbops .gbops-btn.secondary{background:#fff;color:#116779}
.gbops .gbops-btn.danger{background:#b83e47;border-color:#b83e47;color:white}
.gbops .gbops-btn.danger-outline{border-color:#dfb7b9;color:#a3333e;background:#fff}
.gbops .gbops-btn.small{min-height:31px;font-size:12px;padding:4px 10px}
.gbops-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:12px 0 19px}
.gbops-metric{display:flex;flex-direction:column;gap:4px;padding:15px 17px;min-height:101px;border:1px solid var(--gbops-border);border-radius:15px;background:#fff;box-shadow:var(--gbops-shadow)}
.gbops-metric span{font-size:13px;font-weight:600;color:var(--gbops-muted)}
.gbops-metric strong{font-size:26px;line-height:1.4;font-weight:800;color:#14516a;font-variant-numeric:tabular-nums}
.gbops-metric small{font-size:12px;color:var(--gbops-muted)}
.gbops-panel{background:#fff;border:1px solid var(--gbops-border);border-radius:15px;box-shadow:var(--gbops-shadow);margin-bottom:16px;overflow:hidden}
.gbops-panel-head{padding:16px 19px;border-bottom:1px solid #e9eef2;display:flex;align-items:center;justify-content:space-between;gap:12px}
.gbops-panel-head h2{font-size:17px;margin:0;color:#1e4c5d}
.gbops-panel-head a{font-size:13px;font-weight:700}
.gbops-filters{display:flex;align-items:flex-end;gap:12px;padding:14px 18px;flex-wrap:wrap}
.gbops-filters label,.gbops-form label{display:flex;flex-direction:column;gap:5px;flex:1 1 180px;font-size:13px;font-weight:650;color:#345762}
.gbops-filters input,.gbops-filters select,.gbops-form input,.gbops-form select{display:block;min-height:41px;padding:8px 11px;border:1px solid #cbdae0;border-radius:9px;background:#fff;color:#1e4554;width:100%;font:inherit;font-size:13px}
.gbops-filters label:has(input[type="date"]){flex:0 1 175px}
.gbops-inline{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700}
.gbops-form{display:flex;flex-direction:column;gap:12px;padding:18px}
.gbops-form label{flex:auto}
.gbops-form label small{font-size:12px;color:var(--gbops-muted);font-weight:400}
.gbops-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:12px 18px}
.gbops-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.gbops-table{border-collapse:collapse;width:100%;min-width:710px;font-size:13px;text-align:start}
.gbops-table th,.gbops-table td{padding:11px 13px;border-bottom:1px solid #e7edf0;text-align:start;vertical-align:middle}
.gbops-table th{background:#f7fafb;color:#5d7883;font-weight:750;white-space:nowrap}
.gbops-table tbody tr:hover{background:#f8fbfc}
.gbops-table tr:last-child td{border-bottom:0}
.gbops-table td{max-width:420px;overflow-wrap:anywhere}
.gbops-ltr{direction:ltr;text-align:left!important;unicode-bidi:plaintext}
.gbops-status{display:inline-flex;white-space:nowrap;align-items:center;padding:4px 10px;border-radius:100px;font-size:12px;font-weight:750;background:#edf3f5;color:#41606e}
.gbops-status.good{background:#e5f6ed;color:#167047}
.gbops-status.warn{background:#fff4d9;color:#876500}
.gbops-status.bad{background:#fbeaea;color:#9e3740}
.gbops-status.neutral{background:#eaf1f6;color:#486777}
.gbops-meta{font-size:12px;color:var(--gbops-muted);padding:4px 0 10px}
.gbops-muted{font-size:12px;color:var(--gbops-muted)}
.gbops-notice{padding:12px 14px;border-radius:11px;background:#eaf8f2;border:1px solid #b6decb;color:#116647;margin:11px 0 16px}
.gbops-notice.error{background:#fff3f2;border-color:#f0cbc8;color:#a4373d}
.gbops-confirm{display:flex;flex-direction:column;gap:9px;padding:15px;margin:12px 18px;border:1px solid #f0cba7;border-radius:12px;background:#fffbf2;color:#5d4531}
.gbops-confirm div{display:flex;gap:8px;flex-wrap:wrap}
.gbops-empty{text-align:center;padding:34px 18px;color:var(--gbops-muted);font-size:14px}
.gbops-pagination{padding:13px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--gbops-muted);font-size:13px}
.gbops-pagination div{display:flex;gap:8px}
.gbops-two-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.gbops-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;padding:18px}
.gbops-detail-grid>div{padding:12px;background:#f6fafb;border:1px solid #e9f0f2;border-radius:10px;min-width:0;display:flex;flex-direction:column;gap:4px}
.gbops-detail-grid small{color:var(--gbops-muted);font-size:12px}
.gbops-detail-grid strong{overflow-wrap:anywhere;font-size:13px}
.gbops-stack{padding:12px 18px;display:flex;flex-direction:column;gap:9px}
.gbops-alert{border:1px solid #e8edef;border-radius:10px;padding:11px;display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.gbops-alert span:last-of-type{flex:1;min-width:140px}
.gbops-footnote{margin:10px 18px 15px;font-size:12px;color:#667f87;line-height:1.8}
.gbops-technical{background:#f4f8fa;border:1px solid #e1eaf0;border-radius:10px;padding:15px;margin:12px 18px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;direction:auto;text-align:start;font-family:Consolas,monospace;font-size:12px;line-height:1.6}
.gbops .trace-page,.gbops .operations-page{padding:0}
.gbops .stats-grid{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))}
.gbops .stat-card strong{font-size:23px}
.gbops .page-header h1{margin-top:0}
.gbops .panel{border-radius:15px}
.gbops .status-badge{font-size:12px}
.gbops .trace-row{min-height:70px}
.gbops .backup-row{min-height:70px}
.gbops .field{font-size:13px}
.gbops .trace-row .details-cell .gbops-btn{margin-top:4px}
.gbops a.gbops-metric:hover{text-decoration:none;border-color:#95c6cb}
@media(max-width:950px){.gbops-two-cols{grid-template-columns:1fr}.gbops-head{flex-wrap:wrap}.gbops-toolbar{justify-content:flex-start}}
@media(max-width:680px){.gbops{padding:11px}.gbops-head{flex-direction:column;gap:12px}.gbops-head h1{font-size:22px}.gbops-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gbops-metric{padding:12px;min-height:88px}.gbops-metric strong{font-size:23px}.gbops-filters{padding:12px}.gbops-filters label{flex:1 1 100%}.gbops-panel-head{padding:12px}.gbops-pagination{flex-wrap:wrap}.gbops-alert{align-items:flex-start}.gbops-actions{padding:10px}.gbops .trace-page .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.gbops-metrics{grid-template-columns:1fr 1fr}.gbops-metric span{font-size:12px}.gbops-metric strong{font-size:21px}}
@media(prefers-reduced-motion:reduce){.gbops *{animation:none!important;transition:none!important}}

.gbops-trend{padding:16px 18px 5px;height:185px;display:flex;align-items:flex-end;gap:7px;overflow-x:auto}
.gbops-trend-item{height:100%;min-width:23px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px}
.gbops-trend-item span{min-height:5px;max-height:125px;width:75%;border-radius:6px 6px 0 0;background:linear-gradient(0deg,#0c6c84,#17ada3)}
.gbops-trend-item small{height:30px;font-size:10px;color:#71838c;white-space:nowrap}
