:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --text: #172033;
    --muted: #667085;
    --border: #d9dee8;
    --primary: #1f5eff;
    --primary-dark: #1748c9;
    --danger: #b42318;
    --success: #067647;
    --warning: #b54708;
    --shadow: 0 1px 3px rgba(16, 24, 40, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: #174ea6; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { min-height: 64px; padding: 0 28px; display: flex; align-items: center; gap: 28px; background: #111827; color: white; box-shadow: var(--shadow); }
.brand { color: white; font-weight: 750; letter-spacing: .01em; font-size: 1.08rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 20px; flex: 1; }
.nav a, .user-menu a { color: #dbe4f3; }
.user-menu { display: flex; align-items: center; gap: 16px; font-size: .92rem; }
.container { max-width: 1320px; margin: 0 auto; padding: 26px; min-height: calc(100vh - 120px); }
.page-heading { margin-bottom: 18px; }
h1, h2 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.12rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.narrow, .login-card { max-width: 560px; margin-left: auto; margin-right: auto; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 20px; box-shadow: var(--shadow); }
.metric strong { display: block; font-size: 1.9rem; }
.metric span { color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 11px; text-align: left; border-bottom: 1px solid #e7eaf0; vertical-align: top; }
th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .045em; background: #fafbfc; }
tr:last-child td { border-bottom: 0; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.compact { gap: 11px; }
.span-2 { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-weight: 650; font-size: .9rem; }
input, select, textarea { width: 100%; border: 1px solid #c7ceda; border-radius: 7px; padding: 10px 11px; background: white; color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(31, 94, 255, .17); border-color: var(--primary); }
textarea { resize: vertical; }
.checkbox { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.checkbox input { width: auto; }
.help, .muted { color: var(--muted); font-size: .84rem; font-weight: 400; }
.actions, .filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters input { min-width: 220px; }
.filters select { width: auto; min-width: 145px; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--primary); border-radius: 7px; padding: 9px 14px; background: var(--primary); color: white; font-weight: 700; cursor: pointer; font-size: .9rem; }
.button:hover { background: var(--primary-dark); text-decoration: none; }
.button.secondary { background: white; color: #344054; border-color: #c7ceda; }
.button.secondary:hover { background: #f7f8fa; }
.alert { padding: 12px 14px; border-radius: 7px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-error { color: #7a271a; background: #fef3f2; border-color: #fecdca; }
.alert-success { color: #05603a; background: #ecfdf3; border-color: #abefc6; }
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: .76rem; font-weight: 750; background: #eef2f7; color: #344054; white-space: nowrap; }
.badge-status-open { background: #eef4ff; color: #3538cd; }
.badge-status-in_progress { background: #fff6ed; color: #b54708; }
.badge-status-waiting_client { background: #fdf2fa; color: #c11574; }
.badge-status-resolved { background: #ecfdf3; color: #067647; }
.badge-status-closed { background: #f2f4f7; color: #475467; }
.badge-priority-low { background: #f2f4f7; color: #475467; }
.badge-priority-normal { background: #eef4ff; color: #3538cd; }
.badge-priority-high { background: #fff6ed; color: #b54708; }
.badge-priority-urgent { background: #fef3f2; color: #b42318; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; }
.ticket-meta { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; color: var(--muted); margin-bottom: 14px; }
.ticket-main h2 { margin-bottom: 16px; font-size: 1.35rem; }
.ticket-side dl { margin: 0; display: grid; grid-template-columns: 88px 1fr; gap: 10px 12px; }
.ticket-side dt { color: var(--muted); font-size: .84rem; }
.ticket-side dd { margin: 0; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline { display: grid; gap: 13px; margin-top: 16px; }
.comment { border: 1px solid var(--border); border-radius: 8px; padding: 15px; background: #fbfcfe; }
.comment.internal { background: #fffaeb; border-color: #fedf89; }
.comment header { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.comment header strong { color: var(--text); }
.attachment { margin: 10px 0 0; }
.empty { color: var(--muted); padding: 12px 0; }
.footer { text-align: center; color: var(--muted); padding: 16px; font-size: .82rem; }
code { background: #f2f4f7; padding: 2px 5px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
@media (max-width: 900px) {
    .topbar { align-items: flex-start; flex-wrap: wrap; padding: 16px 20px; gap: 14px; }
    .nav { order: 3; width: 100%; overflow-x: auto; }
    .user-menu { margin-left: auto; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ticket-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .container { padding: 16px; }
    .metrics, .form-grid.two-column { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .card-header { align-items: stretch; flex-direction: column; }
    .filters { align-items: stretch; }
    .filters input, .filters select { width: 100%; min-width: 0; }
    .user-menu span { display: none; }
}

/* Version 2 client workspace */
.client-hero { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 24px 26px; margin-bottom: 0; border-radius: 10px 10px 0 0; }
.client-title-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.client-title-line h1 { font-size: 1.65rem; }
.client-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); margin-top: 8px; font-size: .9rem; }
.client-tabs { display: flex; overflow-x: auto; gap: 0; background: var(--surface); border: 1px solid var(--border); border-top: 0; box-shadow: var(--shadow); margin-bottom: 20px; }
.client-tabs a { display: inline-flex; align-items: center; gap: 7px; color: #475467; padding: 15px 18px 13px; border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 650; font-size: .9rem; }
.client-tabs a:hover { text-decoration: none; background: #fafbfc; color: var(--text); }
.client-tabs a.active { color: var(--text); border-bottom-color: #f43f78; }
.client-tabs a span { display: inline-flex; min-width: 20px; height: 20px; justify-content: center; align-items: center; border-radius: 999px; background: #eef2f7; color: #475467; font-size: .7rem; padding: 0 6px; }
.client-metrics .metric { color: inherit; }
.client-metrics .metric:hover { text-decoration: none; border-color: #aab6ca; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 20px; }
.detail-grid { display: grid; grid-template-columns: 130px 1fr; gap: 12px 18px; margin: 0; }
.detail-grid dt { color: var(--muted); font-size: .84rem; }
.detail-grid dd { margin: 0; min-width: 0; }
.compact-list { display: grid; gap: 1px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--border); }
.compact-list a { display: grid; gap: 3px; padding: 12px 14px; background: white; color: var(--text); }
.compact-list a:hover { text-decoration: none; background: #f8fafc; }
.compact-list span { color: var(--muted); font-size: .82rem; }
.compact-button { padding: 5px 8px; font-size: .75rem; }
.vault-secret { display: inline-block; max-width: 300px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #f2f4f7; border-radius: 5px; padding: 4px 7px; }
.vault-secret.revealed { background: #ecfdf3; color: #05603a; }
.vault-buttons { display: flex; gap: 6px; margin-top: 7px; }
.button-error { border-color: var(--danger) !important; color: var(--danger) !important; }
.article-list { display: grid; gap: 14px; }
.article-card { border: 1px solid var(--border); border-radius: 8px; padding: 17px; background: #fbfcfe; }
.article-card h3 { margin: 0 0 5px; font-size: 1rem; }
.article-card p { margin: 8px 0 0; }
.article-preview { color: #344054; }
.checklist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.checklist-card { display: block; color: var(--text); border: 1px solid var(--border); border-radius: 9px; padding: 17px; background: #fbfcfe; }
.checklist-card:hover { text-decoration: none; border-color: #aab6ca; background: white; }
.checklist-card h3 { margin: 0; font-size: 1rem; }
.checklist-card .card-header { margin-bottom: 8px; }
.progress { height: 8px; border-radius: 999px; background: #e7eaf0; overflow: hidden; margin: 14px 0 8px; }
.progress span { display: block; height: 100%; background: var(--primary); }
.progress.large { height: 12px; }
.checklist-summary { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .8rem; }
.checklist-items { display: grid; gap: 10px; margin-top: 16px; }
.checklist-item { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; padding: 13px; border: 1px solid var(--border); border-radius: 8px; background: #fbfcfe; }
.checklist-item.completed strong { color: var(--muted); text-decoration: line-through; }
.check-button { width: 26px; height: 26px; border: 2px solid #98a2b3; border-radius: 6px; background: white; cursor: pointer; font-weight: 800; color: white; }
.checklist-item.completed .check-button { background: var(--success); border-color: var(--success); }
.link-button { border: 0; background: transparent; color: #174ea6; cursor: pointer; padding: 2px; font: inherit; font-size: .85rem; }
.link-button.danger { color: var(--danger); }
.actions > input { flex: 1; min-width: 220px; }

@media (max-width: 900px) {
    .client-hero { align-items: flex-start; flex-direction: column; }
    .overview-grid { grid-template-columns: 1fr; }
    .checklist-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .client-hero { padding: 18px; }
    .client-tabs a { padding-left: 13px; padding-right: 13px; }
    .detail-grid { grid-template-columns: 1fr; gap: 4px; }
    .detail-grid dd { margin-bottom: 10px; }
    .checklist-summary { flex-direction: column; gap: 4px; }
}

/* Version 3 script library */
.page-toolbar { margin-bottom: 18px; }
.page-toolbar h1 { margin: 0 0 4px; }
.page-toolbar p { margin: 0; }
.inline-form { display: inline; }
.script-filters { margin-bottom: 18px; }
.badge-global { background: #ecfdf3; color: #067647; }
.script-type-powershell { background: #eef4ff; color: #3538cd; }
.script-type-cmd { background: #f2f4f7; color: #344054; }
.code-editor, .script-code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; tab-size: 4; }
.code-editor { min-height: 420px; line-height: 1.5; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.assignment-fieldset { border: 1px solid var(--border); border-radius: 9px; padding: 17px; display: grid; gap: 12px; }
.assignment-fieldset legend { font-weight: 750; padding: 0 7px; }
.radio-option { display: flex; grid-template-columns: none; flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fbfcfe; }
.radio-option input { width: auto; margin-top: 3px; }
.radio-option span { display: grid; gap: 3px; }
.radio-option small { color: var(--muted); font-weight: 400; }
.client-selector { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.client-selector.is-disabled { opacity: .55; pointer-events: none; }
.client-selector-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.client-selector-toolbar input { max-width: 360px; }
.client-selector-list { max-height: 310px; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); }
.client-choice { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; gap: 10px; padding: 11px 13px; background: white; font-weight: 600; }
.client-choice[hidden] { display: none; }
.client-choice input { width: auto; }
.client-choice span { display: flex; justify-content: space-between; gap: 10px; width: 100%; }
.client-choice small { color: var(--muted); font-weight: 400; }
.script-details { margin: 20px 0; }
.assigned-client-details { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 20px; }
.assigned-client-details summary { cursor: pointer; font-weight: 700; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.script-code-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 24px; }
.script-code-header h2 { margin: 0 0 10px; }
.script-code { background: #101828; color: #f2f4f7; border-radius: 9px; padding: 18px; overflow: auto; max-height: 720px; line-height: 1.5; white-space: pre; }
.script-code code { background: transparent; color: inherit; padding: 0; }

@media (max-width: 760px) {
    .client-selector-list { grid-template-columns: 1fr; }
    .client-selector-toolbar, .script-code-header { align-items: stretch; flex-direction: column; }
    .client-selector-toolbar input { max-width: none; }
}

/* Version 4 invoices */
.invoice-filters { margin-bottom: 18px; }
.invoice-metric-note { margin: -10px 0 18px; }
.badge-invoice-draft { background: #f2f4f7; color: #475467; }
.badge-invoice-sent { background: #eef4ff; color: #3538cd; }
.badge-invoice-partial { background: #fff6ed; color: #b54708; }
.badge-invoice-paid { background: #ecfdf3; color: #067647; }
.badge-invoice-overdue { background: #fef3f2; color: #b42318; }
.badge-invoice-void { background: #f2f4f7; color: #667085; text-decoration: line-through; }
.invoice-items-section { border: 1px solid var(--border); border-radius: 9px; padding: 17px; background: #fbfcfe; }
.invoice-items-section .card-header { margin-bottom: 12px; }
.invoice-items-table input { min-width: 170px; }
.invoice-items-table td:first-child input { min-width: 320px; }
.numeric-column { text-align: right; }
.invoice-number-input { text-align: right; min-width: 120px !important; }
.invoice-line-total { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.invoice-totals-preview { margin: 16px 0 0 auto; width: min(100%, 380px); display: grid; gap: 8px; }
.invoice-totals-preview > div { display: flex; justify-content: space-between; gap: 24px; padding: 5px 0; }
.invoice-grand-total { border-top: 2px solid var(--text); padding-top: 10px !important; font-size: 1.08rem; }
.invoice-page-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.invoice-document { max-width: 1040px; margin-left: auto; margin-right: auto; padding: 42px; }
.invoice-document-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; padding-bottom: 26px; border-bottom: 2px solid var(--text); }
.invoice-brand { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
.invoice-heading-block { text-align: right; display: grid; gap: 7px; justify-items: end; }
.invoice-heading-block h1 { font-size: 2.3rem; letter-spacing: .08em; }
.invoice-heading-block strong { font-size: 1.12rem; }
.invoice-address-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); gap: 36px; padding: 28px 0; }
.invoice-address-grid > div { display: grid; gap: 4px; align-content: start; }
.invoice-label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }
.invoice-meta-grid { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0; }
.invoice-meta-grid dt { color: var(--muted); }
.invoice-meta-grid dd { margin: 0; text-align: right; }
.invoice-title { margin: 4px 0 18px; font-size: 1.25rem; }
.invoice-print-table th.numeric-column, .invoice-print-table td.numeric-column { text-align: right; }
.invoice-summary-area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .65fr); gap: 40px; margin-top: 28px; }
.invoice-notes { display: grid; gap: 18px; }
.invoice-notes h3 { margin: 0 0 6px; font-size: .95rem; }
.invoice-notes p { margin: 0; }
.invoice-total-grid { display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; margin: 0; align-content: start; }
.invoice-total-grid dt { color: var(--muted); }
.invoice-total-grid dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.invoice-total-row { border-top: 1px solid var(--border); padding-top: 12px; font-weight: 800; color: var(--text) !important; }
.invoice-balance-row { border-top: 2px solid var(--text); padding-top: 12px; font-weight: 850; color: var(--text) !important; font-size: 1.05rem; }
.invoice-document-footer { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 14px; font-size: .78rem; }

@media (max-width: 760px) {
    .invoice-page-actions, .invoice-document-header { align-items: stretch; flex-direction: column; }
    .invoice-heading-block { text-align: left; justify-items: start; }
    .invoice-address-grid, .invoice-summary-area { grid-template-columns: 1fr; }
    .invoice-document { padding: 22px; }
}

@media print {
    body { background: white; }
    .topbar, .footer, .no-print, .alert { display: none !important; }
    .container { max-width: none; padding: 0; }
    .invoice-document { border: 0; box-shadow: none; margin: 0; max-width: none; padding: 0; }
    .invoice-document a { color: inherit; text-decoration: none; }
    .invoice-print-table { font-size: 11pt; }
    @page { margin: 16mm; }
}

/* Version 5 SLA policies and technician alerts */
.topbar-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.alert-center { position: relative; }
.alert-bell { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.07); color: white; cursor: pointer; }
.alert-bell:hover { background: rgba(255,255,255,.14); }
.alert-bell svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.alert-bell.has-alerts { background: #b42318; border-color: #fda29b; animation: alert-pulse 1.15s ease-in-out infinite; }
.alert-count { position: absolute; top: -6px; right: -7px; min-width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; border: 2px solid #111827; border-radius: 999px; background: #f04438; color: white; font-size: .67rem; font-weight: 850; }
@keyframes alert-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(240,68,56,.2); transform: scale(1); } 50% { box-shadow: 0 0 0 8px rgba(240,68,56,0); transform: scale(1.06); } }
.alert-panel { position: absolute; z-index: 1000; top: calc(100% + 12px); right: 0; width: min(430px, calc(100vw - 30px)); max-height: 560px; overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: white; color: var(--text); box-shadow: 0 18px 45px rgba(16,24,40,.22); }
.alert-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 16px; border-bottom: 1px solid var(--border); background: #f8fafc; }
.alert-panel-header > div { display: grid; gap: 2px; }
.alert-panel-header span { color: var(--muted); font-size: .78rem; }
.alert-list { max-height: 470px; overflow-y: auto; }
.alert-list .empty { padding: 22px 16px; margin: 0; text-align: center; }
.alert-item { display: grid; grid-template-columns: 10px 1fr auto; gap: 11px; padding: 14px 14px 13px; border-bottom: 1px solid #eaecf0; }
.alert-item:last-child { border-bottom: 0; }
.alert-severity { width: 10px; height: 10px; margin-top: 5px; border-radius: 999px; background: #98a2b3; }
.alert-item.severity-warning .alert-severity { background: #f79009; }
.alert-item.severity-critical .alert-severity { background: #d92d20; box-shadow: 0 0 0 4px #fee4e2; }
.alert-item-content { min-width: 0; display: grid; gap: 4px; }
.alert-item-content strong { font-size: .9rem; }
.alert-item-content p { margin: 0; color: #475467; font-size: .82rem; line-height: 1.4; }
.alert-item-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .75rem; }
.alert-dismiss { align-self: start; border: 0; background: transparent; color: #667085; cursor: pointer; font-size: 1.05rem; line-height: 1; padding: 2px 4px; }
.alert-dismiss:hover { color: var(--danger); }
.alert-toast-stack { position: fixed; z-index: 1200; top: 78px; right: 22px; width: min(420px, calc(100vw - 30px)); display: grid; gap: 12px; pointer-events: none; }
.alert-toast { pointer-events: auto; border: 1px solid #fda29b; border-left: 6px solid #d92d20; border-radius: 10px; padding: 15px 16px; background: white; box-shadow: 0 18px 38px rgba(16,24,40,.22); animation: alert-slide-in .24s ease-out; }
.alert-toast.warning { border-color: #fec84b; border-left-color: #f79009; }
.alert-toast-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.alert-toast h3 { margin: 0; font-size: .98rem; }
.alert-toast p { margin: 7px 0 12px; color: #475467; font-size: .86rem; }
.alert-toast-actions { display: flex; gap: 10px; align-items: center; }
.alert-toast-close { border: 0; background: transparent; cursor: pointer; color: #667085; font-size: 1.15rem; line-height: 1; }
@keyframes alert-slide-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }

.badge-sla-active { background: #eef4ff; color: #3538cd; }
.badge-sla-warning { background: #fff6ed; color: #b54708; }
.badge-sla-breached { background: #fef3f2; color: #b42318; animation: sla-badge-pulse 1.3s ease-in-out infinite; }
.badge-sla-met { background: #ecfdf3; color: #067647; }
.badge-sla-stopped { background: #f2f4f7; color: #475467; }
.sla-countdown { font-variant-numeric: tabular-nums; margin-left: 4px; }
.row-sla-warning td:first-child { box-shadow: inset 4px 0 0 #f79009; }
.row-sla-breached { background: #fff7f6; }
.row-sla-breached td:first-child { box-shadow: inset 4px 0 0 #d92d20; }
@keyframes sla-badge-pulse { 0%,100% { opacity: 1; } 50% { opacity: .62; } }

.sla-settings { border: 1px solid var(--border); border-radius: 9px; padding: 18px; display: grid; gap: 15px; }
.sla-settings legend { padding: 0 7px; font-weight: 800; }
.sla-toggle { padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.sla-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sla-settings-grid.is-disabled { opacity: .5; pointer-events: none; }
.input-group { display: flex; align-items: stretch; gap: 0; }
.input-group input { border-radius: 7px 0 0 7px; }
.input-group select, .input-suffix { width: auto; min-width: 112px; border-left: 0; border-radius: 0 7px 7px 0; }
.input-suffix { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid #c7ceda; background: #f8fafc; color: #475467; font-weight: 600; }

@media (max-width: 900px) {
    .topbar-actions { margin-left: auto; }
}
@media (max-width: 700px) {
    .sla-settings-grid { grid-template-columns: 1fr; }
    .alert-toast-stack { top: 94px; right: 15px; }
    .alert-panel { position: fixed; top: 72px; right: 15px; left: 15px; width: auto; }
}
