/* 2026 operational UI refresh */
:root {
    --sidebar-width: 252px;
    --sidebar-collapsed-width: 72px;
    --bg-start: #f6f7f9;
    --bg-end: #f6f7f9;
    --panel: #ffffff;
    --line: #d9dee7;
    --line-strong: #c3cbd6;
    --text: #18202a;
    --muted: #667085;
    --accent: #0f766e;
    --accent-dark: #115e59;
    --accent-soft: #e7f5f2;
    --success-soft: #ecfdf3;
    --warning-soft: #fff7e6;
    --danger-soft: #fff1f0;
    --shadow-soft: none;
    --shadow-card: none;
}

html,
body {
    background: #f6f7f9;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: #f6f7f9;
    font-size: 15px;
}

body * {
    letter-spacing: 0 !important;
}

a {
    text-underline-offset: 0.16em;
}

.workspace-layout {
    background: #f6f7f9;
}

.workspace-sidebar-inner {
    gap: 10px;
    padding: 12px;
    background: #20262e;
    border-right: 1px solid #111820;
    box-shadow: none;
}

.workspace-sidebar-header {
    align-items: center;
    gap: 8px;
}

.workspace-brand {
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: #252d36;
}

.workspace-brand-kicker {
    color: #7dd3c7;
    font-size: 0.66rem;
}

.workspace-brand-title {
    font-size: 1rem;
    font-weight: 750;
}

.sidebar-toggle,
.mobile-sidebar-toggle {
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.sidebar-toggle {
    flex-basis: 42px;
}

.sidebar-toggle-glyph {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.mobile-sidebar-toggle {
    top: 14px;
    left: 14px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.workspace-nav {
    gap: 4px;
}

.workspace-sidebar .nav-link {
    min-height: 40px;
    padding: 7px 8px;
    border-radius: 8px;
    color: #cbd5e1;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    transform: none;
}

.workspace-sidebar .nav-link:hover,
.workspace-sidebar .nav-link:focus-visible {
    color: #ffffff;
    background: #2b3440;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transform: none;
}

.workspace-sidebar .nav-link.active {
    color: #ffffff;
    background: #123d3a;
    border-color: #1f6d66;
    box-shadow: inset 3px 0 0 #7dd3c7;
}

.nav-glyph {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 6px;
    color: #b9c4d0;
    background: #2b3440;
}

.workspace-sidebar .nav-link.active .nav-glyph {
    color: #ffffff;
    background: rgba(125, 211, 199, 0.16);
}

.nav-title {
    font-size: 0.9rem;
    font-weight: 650;
}

.workspace-sidebar-footer {
    gap: 8px;
    padding-top: 12px;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.workspace-user,
.workspace-logout {
    border-radius: 8px;
    background: #252d36;
    border-color: rgba(255, 255, 255, 0.08);
}

.workspace-user {
    padding: 9px 10px;
}

.workspace-user-avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 6px;
    background: #3a4654;
}

.workspace-collapsed-tooltip {
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.workspace-content {
    padding: 20px 24px 32px;
}

.surface-stack {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    gap: 14px;
}

.page-header {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.page-kicker {
    margin-bottom: 4px;
    font-size: 0.72rem;
    color: #7a8594;
}

.page-title {
    font-size: 1.55rem;
    line-height: 1.18;
    font-weight: 760;
}

.page-subtitle,
.section-subtitle {
    max-width: 780px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.91rem;
    line-height: 1.45;
}

.card,
.metric-card,
.dashboard-alert-card,
.dashboard-health-card,
.dashboard-monitor-panel,
.dashboard-monitor-row,
.dashboard-bulk-row,
.dashboard-context-item,
.filters-shell,
.workspace-tabs,
.settings-summary-card,
.settings-callout,
.settings-routing-block,
.settings-routing-card,
.incidents-next-step,
.incidents-block__content,
.incidents-context-grid,
.incidents-answer-panel,
.responses-message-box,
.group-nav-summary__item,
.stores-summary__item,
.store-cue,
.mode-toggle {
    border-radius: 8px;
    box-shadow: none;
    background: #ffffff;
    border-color: var(--line);
}

.card {
    overflow: clip;
}

.card-header {
    padding: 12px 14px;
    background: #f9fafb;
    border-bottom-color: var(--line);
}

.card-body {
    padding: 14px;
}

.card-footer {
    padding: 12px 14px;
    background: #f9fafb;
    border-top-color: var(--line);
}

.section-title {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 760;
}

.metric-grid,
.dashboard-alert-grid,
.dashboard-health-grid,
.dashboard-context-grid {
    gap: 10px;
}

.dashboard-alert-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.dashboard-alert-card {
    gap: 8px;
    padding: 13px 14px;
    border-left: 4px solid #9aa4b2;
}

.dashboard-alert-card--danger {
    border-left-color: #dc2626;
    background: #fff7f7;
}

.dashboard-alert-card--warning {
    border-left-color: #b45309;
    background: #fffaf0;
}

.dashboard-alert-card--neutral {
    border-left-color: #667085;
}

.dashboard-alert-card__label,
.metric-label,
.dashboard-context-item__label,
.stores-summary__label,
.settings-summary-card__label,
.group-nav-summary__label,
.incidents-next-step__label,
.incidents-block__label {
    color: #667085;
    font-size: 0.72rem;
    font-weight: 760;
    text-transform: uppercase;
}

.dashboard-alert-card__value,
.metric-value,
.dashboard-context-item__value,
.stores-summary__value,
.settings-summary-card__value,
.group-nav-summary__value,
.stat-value {
    color: var(--text);
    font-size: 1.72rem;
    line-height: 1.1;
    font-weight: 760;
}

.dashboard-alert-card__value,
.metric-value {
    margin-top: 4px;
}

.dashboard-alert-card__note,
.metric-note,
.dashboard-context-item__note,
.stores-summary__note,
.settings-summary-card__note,
.dashboard-health-card__meta,
.dashboard-health-card__note,
.dashboard-monitor-row__meta,
.dashboard-bulk-row__meta,
.dashboard-bulk-row__stats {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.42;
    font-weight: 500;
}

.dashboard-alert-card__cta {
    padding: 0.42rem 0.62rem;
    border-radius: 6px;
    background: #ffffff;
    border-color: var(--line);
    color: #0f766e;
    font-weight: 700;
}

.dashboard-alert-card__cta:hover,
.dashboard-alert-card__cta:focus-visible,
.dashboard-bulk-row:hover,
.dashboard-bulk-row:focus-visible,
.settings-section-nav__link:hover,
.settings-section-nav__link:focus-visible,
.responses-chip:hover,
.responses-chip:focus-visible,
.group-nav-summary__item:hover,
.group-nav-summary__item:focus-visible {
    border-color: #8fcac4;
    background: #f3fbf9;
    box-shadow: none;
    transform: none;
}

.dashboard-status-line {
    gap: 8px;
    margin-top: 10px;
}

.dashboard-status-pill,
.dashboard-health-card__state,
.badge,
.responses-status-badge,
.responses-chip,
.responses-chip__count,
.settings-section-nav__link,
.settings-routing-badge,
.settings-help,
.incidents-table__cue,
.workspace-tab__badge {
    border-radius: 6px;
}

.dashboard-status-pill {
    padding: 0.28rem 0.5rem;
    font-size: 0.72rem;
}

.dashboard-status-text {
    font-weight: 650;
}

.dashboard-status-meta {
    font-size: 0.86rem;
}

.metric-card {
    padding: 13px 14px 16px;
    border-left: 4px solid #0f766e;
}

.metric-card::after {
    display: none;
}

.dashboard-metric-suffix {
    margin-left: 6px;
    font-size: 0.86rem;
}

.dashboard-health-card {
    padding: 13px 14px;
    border-top: 3px solid #64748b;
}

.dashboard-health-card--success {
    border-top-color: #16a34a;
    background: #f7fff9;
}

.dashboard-health-card--warning {
    border-top-color: #b45309;
    background: #fffaf0;
}

.dashboard-health-card--info {
    border-top-color: #0f766e;
    background: #f3fbf9;
}

.dashboard-health-card__title,
.dashboard-monitor-panel__header h3,
.dashboard-monitor-row__title,
.dashboard-bulk-row__title,
.settings-routing-card__title,
.incidents-detail-title,
.store-cue__title,
.mode-toggle__label {
    font-weight: 760;
}

.dashboard-health-card__state {
    padding: 0.26rem 0.45rem;
    background: #f9fafb;
    font-size: 0.72rem;
}

.dashboard-monitor-grid {
    gap: 10px;
    margin-top: 12px;
}

.dashboard-monitor-panel {
    padding: 13px 14px;
}

.dashboard-monitor-panel__header {
    margin-bottom: 10px;
}

.dashboard-monitor-list,
.dashboard-bulk-list {
    gap: 8px;
}

.dashboard-monitor-row,
.dashboard-bulk-row {
    padding: 10px 11px;
    background: #ffffff;
}

.dashboard-progress {
    height: 6px;
    margin: 9px 0 7px;
    border-radius: 4px;
    background: #e6eaf0;
}

.dashboard-progress span {
    border-radius: 4px;
    background: #0f766e;
}

.dashboard-empty-state {
    padding: 12px;
    border-radius: 8px;
    background: #f9fafb;
    font-weight: 600;
}

.dashboard-context-item,
.stores-summary__item,
.settings-summary-card {
    padding: 12px 14px;
}

.dashboard-context-item__value,
.stores-summary__value,
.settings-summary-card__value {
    margin-top: 6px;
}

.workspace-tabs {
    gap: 4px;
    padding: 4px;
    background: #edf1f5;
}

.workspace-tab {
    padding: 8px 12px;
    border-radius: 6px;
    color: #475467;
    font-weight: 700;
}

.workspace-tab:hover {
    background: #ffffff;
}

.workspace-tab.active {
    color: #ffffff;
    background: #0f766e;
    box-shadow: none;
}

.filters-shell {
    gap: 12px;
    padding: 12px;
    background: #ffffff;
}

.filters-grid {
    gap: 10px;
}

.filter-bar .btn,
.btn,
.btn-sm,
.page-link,
.form-control,
.form-select,
.alert,
.alert-error,
code {
    border-radius: 6px !important;
}

.btn {
    padding: 0.52rem 0.78rem;
    font-weight: 700;
}

.btn-sm {
    padding: 0.36rem 0.56rem;
}

.btn-primary {
    border-color: #0f766e;
    background: #0f766e;
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: #115e59;
    background: #115e59;
}

.btn-outline-primary {
    color: #0f766e;
    border-color: #8fcac4;
    background: #f3fbf9;
}

.btn-outline-primary:hover {
    color: #0b4f49;
    border-color: #0f766e;
    background: #e7f5f2;
}

.btn-outline-secondary {
    color: #344054;
    border-color: var(--line-strong);
    background: #ffffff;
}

.form-label {
    margin-bottom: 5px;
    color: #344054;
    font-size: 0.86rem;
}

.form-control,
.form-select {
    min-height: 40px;
    padding: 0.5rem 0.65rem;
    border-color: var(--line-strong);
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.table-responsive {
    border-radius: 8px;
    border: 1px solid var(--line);
}

.table > thead > tr > th {
    padding: 10px 12px;
    background: #f9fafb;
    color: #667085;
    font-size: 0.75rem;
}

.table > tbody > tr > td {
    padding: 11px 12px;
    border-color: var(--line);
    background: #ffffff;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background: #fbfcfd;
}

.page-link {
    padding: 0.5rem 0.68rem;
    border: 1px solid var(--line);
    box-shadow: none;
}

.page-link:hover {
    color: #0f766e;
    background: #f3fbf9;
}

.page-item.active .page-link {
    border-color: #0f766e;
    background: #0f766e;
}

.badge,
.responses-status-badge,
.responses-chip,
.settings-routing-badge,
.incidents-table__cue {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
}

.settings-summary-grid,
.stores-summary {
    gap: 10px;
}

.settings-section-nav {
    gap: 6px;
}

.settings-section-nav__link,
.responses-chip {
    padding: 0.42rem 0.62rem;
}

.settings-callout,
.settings-routing-block,
.settings-routing-card,
.incidents-next-step,
.incidents-block__content,
.incidents-context-grid,
.incidents-answer-panel,
.responses-message-box,
.group-nav-summary__item,
.store-cue {
    padding: 12px;
}

.settings-callout--primary,
.incidents-next-step--primary,
.store-cue--primary,
.responses-message-box--user {
    background: #f3fbf9;
    border-color: #8fcac4;
}

.settings-routing-badge--info,
.responses-status-badge--info,
.responses-chip--info,
.incidents-table__cue--primary {
    color: #0f766e;
    background: #e7f5f2;
    border-color: #8fcac4;
}

.group-nav-summary {
    gap: 8px;
    margin-top: 10px;
}

.group-nav-summary__item {
    min-width: 180px;
}

.group-nav-summary__item--accent {
    background: #f3fbf9;
    border-color: #8fcac4;
}

.incidents-layout {
    gap: 12px;
}

.incidents-detail-card {
    top: 12px;
}

.incidents-detail-title {
    font-size: 1.12rem;
}

.incidents-meta,
.incidents-context-grid {
    gap: 8px 10px;
}

.responses-chip.is-active {
    border-color: #0f766e;
    box-shadow: inset 3px 0 0 #0f766e;
}

.responses-message-box--user {
    border-left-color: #0f766e;
}

.mode-toggle-list {
    gap: 6px;
}

.mode-toggle {
    padding: 8px 9px;
}

.quick-empty {
    padding: 18px;
}

.alert,
.alert-error {
    padding: 12px 14px;
    box-shadow: none;
}

.login-container {
    width: min(100% - 32px, 420px);
    max-width: none;
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.login-card {
    width: 100%;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
    background: #ffffff;
}

.login-title {
    margin-bottom: 18px;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 760;
    text-align: left;
}

.login-card .form-group {
    margin-bottom: 12px;
}

.login-card label {
    margin-bottom: 5px;
    color: #344054;
    font-size: 0.86rem;
    font-weight: 700;
}

.login-card .btn-primary {
    width: 100%;
    margin-top: 4px;
}

@media (min-width: 992px) {
    body[data-sidebar="collapsed"] .workspace-sidebar-inner {
        padding-inline: 10px;
    }

    body[data-sidebar="collapsed"] .sidebar-toggle,
    body[data-sidebar="collapsed"] .workspace-sidebar .nav-link,
    body[data-sidebar="collapsed"] .workspace-user {
        width: 42px;
    }

    body[data-sidebar="collapsed"] .workspace-sidebar .nav-link {
        min-height: 42px;
    }

    body[data-sidebar="collapsed"] .workspace-sidebar .nav-link .nav-glyph,
    body[data-sidebar="collapsed"] .workspace-user-avatar {
        width: 30px;
        height: 30px;
        border-radius: 6px;
    }
}

@media (max-width: 1199.98px) {
    .workspace-content {
        padding: 18px 18px 28px;
    }
}

@media (max-width: 991.98px) {
    .workspace-sidebar {
        width: min(84vw, 304px);
    }

    .workspace-content {
        padding: 72px 14px 24px;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 14px;
    }

    .page-title {
        font-size: 1.35rem;
    }

    .card-header,
    .card-body,
    .card-footer {
        padding: 12px;
    }

    .dashboard-alert-grid,
    .dashboard-health-grid,
    .dashboard-context-grid,
    .dashboard-monitor-grid,
    .metric-grid,
    .split-grid,
    .settings-summary-grid,
    .stores-summary {
        grid-template-columns: 1fr;
    }
}
