/* Tarun Sangha • Super Admin WhatsApp Gateway Switch • 2026-11 */
.ts-gws-entry{display:flex;flex-direction:column;gap:10px;margin-bottom:14px;padding:13px 16px;border:1px solid #bfdbfe;background:linear-gradient(110deg,#f0fdf4,#eff6ff);border-radius:13px;color:#0f172a;box-shadow:0 1px 5px #0f172a0c;overflow-anchor:none}
.ts-gws-entry-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.ts-gws-entry-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ts-gws-entry .ts-gws-entry-title{display:flex;align-items:center;gap:8px;font-weight:750;font-size:14px}
.ts-gws-entry .ts-gws-entry-note{font-size:12px;color:#475569;margin-top:3px}
.ts-gws-primary{background:#166534!important;color:#fff!important;border:0!important;border-radius:9px!important;padding:10px 15px!important;cursor:pointer!important;font:600 13px system-ui!important}
.ts-gws-primary:hover{background:#14532d!important}
.ts-gws-signal-btn{background:#fff7ed!important;color:#9a3412!important;border:1px solid #fdba74!important;border-radius:9px!important;padding:9px 14px!important;cursor:pointer!important;font:600 13px system-ui!important}
.ts-gws-signal-btn:hover{background:#ffedd5!important}
.ts-gws-signal-btn:disabled{opacity:.6!important;cursor:wait!important}
.ts-gws-inline-status{display:none;padding:9px 12px;border-radius:9px;font-size:12.5px;line-height:1.45;overflow-wrap:anywhere}
.ts-gws-inline-status.info{display:block;background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af}
.ts-gws-inline-status.ok{display:block;background:#ecfdf5;border:1px solid #a7f3d0;color:#166534}
.ts-gws-inline-status.error{display:block;background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
.ts-gws-primary:focus-visible,.ts-gws-btn:focus-visible,.ts-gws-dialog input:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.ts-gws-shade{position:fixed;inset:0;background:rgba(2,6,23,.74);z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:16px}
.ts-gws-dialog{max-height:min(92dvh,900px);width:min(780px,100%);overflow-y:auto;background:#fff;border-radius:16px;box-shadow:0 16px 48px #0006;color:#0f172a;font:14px/1.5 system-ui,sans-serif}
.ts-gws-header{background:#10283e;color:#fff;padding:20px 23px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ts-gws-header h2{font-size:20px;line-height:1.3;font-weight:750;margin:0 0 3px;color:#fff}
.ts-gws-header p{margin:0;color:#bed0de;font-size:12px}
.ts-gws-close{border:1px solid #7a91a9;border-radius:8px;background:transparent;color:#fff;font:700 22px/1 system-ui;min-width:35px;min-height:35px;cursor:pointer}
.ts-gws-body{padding:20px 23px 24px}
.ts-gws-current{padding:14px 16px;border-radius:11px;border:1px solid #cbd5e1;background:#f8fafc;margin-bottom:17px;display:grid;gap:5px}
.ts-gws-current h3{font-size:14px;font-weight:750;margin:0 0 3px}
.ts-gws-current div{font-size:12px;overflow-wrap:anywhere}
.ts-gws-current b{color:#334155}
.ts-gws-dialog label.ts-gws-field-label{font-size:12px;color:#334155;font-weight:700;display:block;margin:0 0 6px}
.ts-gws-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.ts-gws-span{grid-column:1/-1}
.ts-gws-dialog input.ts-gws-input{width:100%;min-width:0;border:1px solid #bac7d7;color:#0f172a;background:#fff;border-radius:9px;min-height:42px;box-sizing:border-box;padding:10px 12px;font:13px system-ui}
.ts-gws-hint{margin:6px 0 0;color:#64748b;font-size:11px}
.ts-gws-check{margin:17px 0 12px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.ts-gws-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:16px}
.ts-gws-btn{border:1px solid #cbd5e1;background:#f1f5f9;color:#0f172a;border-radius:9px;padding:10px 14px;cursor:pointer;font-size:13px;font-weight:650}
.ts-gws-btn:disabled{opacity:.5;cursor:not-allowed}
.ts-gws-test{background:#e0f2fe;border-color:#bae6fd;color:#075985}
.ts-gws-replace{background:#166534;border-color:#166534;color:#fff}
.ts-gws-message{display:none;padding:12px 14px;border-radius:9px;margin:12px 0;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.ts-gws-message.info{display:block;background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af}
.ts-gws-message.ok{display:block;background:#ecfdf5;border:1px solid #a7f3d0;color:#166534}
.ts-gws-message.error{display:block;background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
.ts-gws-warning{border-left:3px solid #eab308;background:#fffbeb;color:#713f12;padding:11px 14px;border-radius:7px;margin:15px 0;font-size:12px}
.ts-gws-history{margin-top:20px;padding-top:15px;border-top:1px solid #e2e8f0}
.ts-gws-history h3{font-size:13px;font-weight:750;margin:0 0 8px}
.ts-gws-history ul{list-style:none;padding:0;margin:0;max-height:135px;overflow-y:auto}
.ts-gws-history li{padding:7px 0;border-bottom:1px solid #edf2f7;font-size:11px;overflow-wrap:anywhere;color:#475569}
body.ts-gws-modal-open{overflow:hidden!important}
@media(max-width:600px){.ts-gws-grid{grid-template-columns:1fr}.ts-gws-dialog{max-height:95dvh}.ts-gws-header{padding:15px}.ts-gws-body{padding:16px}.ts-gws-shade{padding:9px}.ts-gws-actions{display:grid;grid-template-columns:1fr 1fr}.ts-gws-actions button:last-child{grid-column:1/-1}}

.ts-gws-dialog select.ts-gws-input{width:100%;max-width:100%;min-width:0;min-height:42px;border:1px solid #bac7d7;border-radius:9px;padding:10px 12px;background:#fff;color:#0f172a;font:13px system-ui}
