:root {
    --ink: #17181c;
    --muted: #e8e2d4;
    --muted-text: #666b74;
    --surface: #ffffff;
    --canvas: #f4f1e8;
    --line: #d9d0bf;
    --yellow: #d5a928;
    --yellow-soft: #f4ead0;
    --green: #2d8a5f;
    --green-soft: #e4f2eb;
    --warning: #d18a1a;
    --warning-soft: #f8eed9;
    --red: #c84b4b;
    --red-soft: #f7e4e4;
    --blue: #336fbd;
    --blue-soft: #e7eef8;
    --shadow: 0 10px 30px rgba(23, 24, 28, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, "Segoe UI", "Noto Sans", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.topbar {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--yellow);
    border: 1px solid rgba(23, 26, 29, .9);
    border-radius: 13px;
    box-shadow: 3px 3px 0 var(--ink);
    font-size: 20px;
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 16px;
    letter-spacing: -.01em;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.environment-badge,
.state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.signed-in-user {
    color: var(--muted);
    font-size: 12px;
}

.logout-link {
    padding: 0;
    color: var(--ink);
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
}

.logout-form {
    margin: 0;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.login-shell {
    width: min(100% - 32px, 520px);
    margin: 48px auto;
}

.login-card {
    padding: clamp(30px, 7vw, 54px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.login-copy {
    margin: 58px 0 30px;
}

.login-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(38px, 7vw, 54px);
}

.login-copy p:last-child,
.login-session-note,
.configuration-note {
    color: var(--muted);
    line-height: 1.6;
}

.microsoft-button {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: #fff;
    background: #2f2f2f;
    border: 1px solid #2f2f2f;
    border-radius: 11px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.microsoft-button:hover {
    background: #171717;
}

.microsoft-button:disabled {
    color: var(--muted);
    background: #eceae4;
    border-color: var(--line);
    cursor: not-allowed;
}

.microsoft-logo {
    width: 19px;
    height: 19px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.microsoft-logo i:nth-child(1) { background: #f35325; }
.microsoft-logo i:nth-child(2) { background: #81bc06; }
.microsoft-logo i:nth-child(3) { background: #05a6f0; }
.microsoft-logo i:nth-child(4) { background: #ffba08; }

.login-alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    color: var(--red);
    background: var(--red-soft);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.configuration-note,
.login-session-note {
    margin: 16px 0 0;
    font-size: 11px;
    text-align: center;
}

.environment-badge {
    padding: 9px 13px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px var(--green-soft);
}

footer {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.dashboard-shell {
    width: min(1380px, calc(100% - 40px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

.dashboard-main {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.sidebar {
    position: sticky;
    top: 20px;
    padding: 18px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.sidebar-nav {
    display: grid;
    gap: 7px;
}

.sidebar-link {
    min-height: 48px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink);
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.sidebar-link-active {
    background: var(--yellow);
    border-color: rgba(23, 26, 29, .42);
    box-shadow: 2px 2px 0 rgba(23, 26, 29, .84);
}

.sidebar-link-disabled {
    color: var(--muted);
    background: rgba(255, 255, 255, .52);
    cursor: not-allowed;
}

.sidebar-link-disabled small {
    color: #8e918f;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sidebar-panel {
    margin-top: 18px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.sidebar-panel-heading {
    margin: 2px 2px 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sidebar-metric-grid {
    margin: 0;
    display: grid;
    gap: 10px;
}

.sidebar-metric-card {
    padding: 18px 16px 16px;
    border-radius: 16px;
    background: var(--canvas);
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr auto;
    gap: 8px 12px;
    min-height: 124px;
}

.sidebar-metric-card.primary {
    background: var(--yellow);
    border-color: rgba(23, 26, 29, .22);
}

.sidebar-metric-card.primary .sidebar-metric-label {
    color: rgba(23, 26, 29, .78);
}

.sidebar-metric-card.primary .sidebar-metric-title {
    color: var(--ink);
}

.sidebar-metric-card.primary .sidebar-metric-value {
    color: var(--ink);
}

.sidebar-metric-card.primary .sidebar-metric-desc {
    color: rgba(23, 26, 29, .8);
}

.sidebar-metric-card.primary .sidebar-metric-icon {
    background: rgba(23, 26, 29, .06);
    border-color: rgba(23, 26, 29, .32);
    color: var(--ink);
}

.sidebar-metric-title {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: rgba(23, 26, 29, .82);
    letter-spacing: .01em;
}

.sidebar-metric-label {
    display: none;
}

.sidebar-metric-value {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    margin: 0;
    font-size: 54px;
    font-weight: 900;
    line-height: .92;
    letter-spacing: -.04em;
    color: var(--ink);
}

.sidebar-metric-desc {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .02em;
}

.sidebar-metric-icon {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: end;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid rgba(23, 26, 29, .36);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
}

.sidebar-stats {
    margin: 0;
    display: grid;
    gap: 12px;
}

.sidebar-stats > div {
    display: grid;
    gap: 2px;
}

.sidebar-stats dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sidebar-stats dd {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: -.02em;
}

.sidebar-stats dd small {
    display: inline;
    margin-left: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
    text-transform: none;
}

.hero {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 12px 0 26px;
}

.dashboard-title {
    margin: 0;
    font-size: clamp(34px, 4.5vw, 52px);
    line-height: 1;
    letter-spacing: -.055em;
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 820px;
    margin-bottom: 22px;
    font-size: clamp(42px, 6.2vw, 76px);
    line-height: .98;
    letter-spacing: -.065em;
    font-weight: 800;
}

.hero-copy {
    max-width: 600px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.hero-time {
    min-width: 185px;
    padding-bottom: 8px;
    text-align: right;
}

.hero-time span,
.hero-time strong,
.hero-time small {
    display: block;
}

.hero-time span,
.hero-time small {
    color: var(--muted);
    font-size: 11px;
}

.hero-time strong {
    margin: 7px 0 4px;
    font-size: 20px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.metric {
    min-height: 190px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
}

.metric:last-child {
    border-right: 0;
}

.metric-primary {
    background: var(--yellow);
}

.metric-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.metric-primary .metric-label {
    color: rgba(23, 26, 29, .66);
}

.metric-value {
    margin: auto 0 13px;
    font-size: 50px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.06em;
}

.metric-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
}

.metric-primary .metric-detail {
    color: rgba(23, 26, 29, .72);
}

.metric-arrow,
.metric-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--ink);
    font-size: 15px;
}

.dashboard-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.panel {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.sync-panel {
    width: min(100%, 760px);
    min-height: 0;
    justify-self: start;
}

.activity-panel {
    width: 100%;
}

.activity-panel-primary {
    padding: clamp(28px, 4vw, 42px);
    border-color: rgba(23, 26, 29, .2);
    box-shadow: var(--shadow);
}

.activity-panel-primary .panel-heading h2 {
    font-size: clamp(26px, 3vw, 34px);
}

.snapshot-freshness {
    text-align: right;
}

.snapshot-freshness span,
.snapshot-freshness small {
    display: block;
}

.snapshot-freshness small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.activity-filters {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr 1fr .8fr auto auto;
    align-items: end;
    gap: 12px;
}

.activity-filters label {
    color: var(--muted);
    font-size: 10px;
}

.activity-filters input,
.activity-filters select {
    width: 100%;
    margin-top: 5px;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
}

.activity-filters button,
.activity-filters a {
    padding: 10px 13px;
    border-radius: 9px;
    font-size: 11px;
    white-space: nowrap;
}

.activity-filters button {
    border: 0;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
}

.activity-filters a {
    color: var(--muted);
    text-decoration: none;
}

.activity-table-wrap {
    margin-top: 22px;
    overflow-x: auto;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.activity-table th,
.activity-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #ece9e1;
}

.activity-table th {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.activity-table time {
    font-weight: 800;
}

.service-admin-info {
    margin-top: 32px;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(0, 2fr);
    align-items: center;
    gap: 28px;
    color: var(--muted);
    background: rgba(255, 255, 255, .68);
    border: 1px solid var(--line);
    border-radius: 18px;
    font-size: 11px;
}

.service-status-heading .eyebrow {
    margin-bottom: 7px;
}

.service-status-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    letter-spacing: -.025em;
}

.service-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.service-status-item {
    min-height: 68px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    background: var(--surface);
    border: 1px solid #ece9e1;
    border-radius: 13px;
}

.service-status-item span,
.service-status-item strong,
.service-status-item small {
    display: block;
}

.service-status-item strong {
    color: var(--ink);
    font-size: 12px;
}

.service-status-item small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.service-admin-info .status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
}

.today-activity-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.today-activity-list li {
    display: grid;
    grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1fr) auto minmax(100px, auto);
    align-items: center;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #ece9e1;
}

.today-activity-list li:last-child {
    border-bottom: 0;
}

.today-activity-list span,
.today-activity-list small {
    color: var(--muted);
}

.today-activity-list time {
    font-weight: 800;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.panel-heading h2 {
    margin-bottom: 0;
    font-size: 24px;
    letter-spacing: -.035em;
}

.state {
    padding: 8px 12px;
}

.state-ok {
    color: var(--green);
    background: var(--green-soft);
}

.state-error {
    color: var(--red);
    background: var(--red-soft);
}

.state-wait {
    color: #785e07;
    background: var(--yellow-soft);
}

.empty-state {
    margin-top: 42px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f8f7f3;
    border: 1px dashed #cbc6b9;
    border-radius: 16px;
}

.empty-state.compact {
    margin-top: 24px;
}

.empty-symbol {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #735b0b;
    background: var(--yellow-soft);
    border-radius: 14px;
    font-size: 24px;
}

.empty-state strong,
.empty-state p {
    display: block;
}

.empty-state strong {
    font-size: 14px;
}

.empty-state p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.sync-date {
    margin-top: 38px;
}

.sync-date span,
.sync-date strong {
    display: block;
}

.sync-date span {
    color: var(--muted);
    font-size: 11px;
}

.sync-date strong {
    margin-top: 5px;
    font-size: 22px;
}

.sync-stats {
    margin-top: 28px;
    display: flex;
    gap: 24px;
    color: var(--muted);
    font-size: 12px;
}

.sync-stats strong {
    color: var(--ink);
}

.service-list {
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid #ece9e1;
}

.service-list li:last-child {
    border-bottom: 0;
}

.service-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 800;
}

.service-ok {
    color: var(--green);
    background: var(--green-soft);
}

.service-ready {
    color: #785e07;
    background: var(--yellow-soft);
}

.service-list strong,
.service-list small {
    display: block;
}

.service-list strong {
    font-size: 13px;
}

.service-list small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.report-row {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.report-row small {
    color: var(--muted);
}

.employees-filters .search-label input {
    padding-left: 36px;
}

.employees-filters .search-label {
    position: relative;
}

.employees-filters .search-label::before {
    content: "🔍";
    position: absolute;
    left: 11px;
    bottom: 10px;
    font-size: 13px;
    opacity: .6;
}

.employees-table .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: .01em;
}

.employees-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.employees-table .num .cur {
    font-weight: 650;
    color: var(--muted);
    margin-left: 3px;
}

.employees-table .muted-cell {
    color: #a4a7a4;
    font-style: italic;
}

.employees-table th a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.employees-table th.sort-active a {
    color: var(--ink);
}

.system-email-link {
    color: var(--muted-text) !important;
    font-size: 11px;
    text-decoration: none;
}

.system-email-missing {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
}

.refresh-overlay {
    position: fixed;
    inset: 0;
    background: rgba(244, 241, 232, .72);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.refresh-overlay-card {
    width: min(480px, calc(100vw - 40px));
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(23, 24, 28, .10);
    padding: 28px 26px;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
}

.refresh-overlay-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--yellow-soft);
    color: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: coffeeSteam 2.2s ease-in-out infinite;
}

@keyframes coffeeSteam {
    0%, 100% { transform: translateY(0); opacity: .92; }
    50% { transform: translateY(-3px); opacity: 1; }
}

.refresh-overlay-title {
    margin: 2px 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
}

.refresh-overlay-copy {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted-text);
}

.refresh-overlay-copy strong {
    color: var(--ink);
}

.refresh-overlay-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: grid;
    gap: 6px;
}

.refresh-overlay-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--muted-text);
}

.refresh-overlay-steps .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--muted);
    flex: 0 0 8px;
}

.refresh-overlay-steps .dot-active {
    background: var(--yellow);
    box-shadow: 0 0 0 3px rgba(247, 201, 72, .18);
}

.refresh-overlay-steps .step-active {
    color: var(--ink);
    font-weight: 650;
}

.refresh-overlay-steps .step-done {
    color: var(--muted-text);
}

.refresh-overlay-steps .step-done .dot {
    background: #4f9b71;
    box-shadow: none;
}

.refresh-overlay-hint {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #faf7ef;
    border: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--muted-text);
}

@media (max-width: 640px) {
    .refresh-overlay-card {
        grid-template-columns: 1fr;
    }
}

.sort-indicator {
    font-size: 9px;
    color: var(--yellow);
    font-weight: 900;
}

.role-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    border: 1px solid transparent;
}

.role-admin {
    background: var(--yellow-soft);
    color: #6e5405;
    border-color: rgba(247, 201, 72, .6);
}

.role-field {
    background: var(--green-soft);
    color: #0f563e;
    border-color: rgba(23, 107, 77, .3);
}

.worker-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    margin: 2px 4px 2px 0;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
}

.worker-type.office {
    background: rgba(47, 85, 150, .11);
    color: #204581;
}

.worker-type.field {
    background: rgba(23, 107, 77, .13);
    color: #0f563e;
}

.pagination-bar {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.pagination-info {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.pagination-bar .pagination-arrows {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pagination-bar .pagination-arrows .pag-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 56px !important;
    height: 56px !important;
    padding: 0 14px !important;
    border-radius: 16px !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    background: var(--yellow) !important;
    color: var(--ink) !important;
    border: 1.5px solid rgba(23, 26, 29, .42) !important;
    box-shadow: 3px 3px 0 rgba(23, 26, 29, .72) !important;
    transition: transform .08s ease, box-shadow .08s ease, background .12s ease !important;
    cursor: pointer !important;
}

.pagination-bar .pagination-arrows a.pag-btn:hover {
    background: #f7c532 !important;
    border-color: rgba(23, 26, 29, .6) !important;
    text-decoration: none !important;
}

.pagination-bar .pagination-arrows a.pag-btn:active {
    transform: translate(3px, 3px) !important;
    box-shadow: 0 0 0 rgba(23, 26, 29, .72) !important;
    text-decoration: none !important;
}

.pagination-bar .pagination-arrows .pag-btn.pag-disabled {
    color: #8e918f !important;
    background: #ececec !important;
    border-color: rgba(120, 124, 122, .45) !important;
    box-shadow: 1.5px 1.5px 0 rgba(120, 124, 122, .3) !important;
    cursor: not-allowed !important;
}

.pagination-bar .pagination-arrows .pag-gap {
    display: inline-block;
    width: 18px;
    height: 1px;
    margin: 0 4px;
    background: transparent;
}

.page-size-form {
    display: inline-flex;
    align-items: end;
    gap: 8px;
}

.page-size-form label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.page-size-form select {
    margin-top: 5px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.employees-metrics .metric-value {
    font-size: 46px;
}

footer {
    padding: 34px 0 42px;
    display: flex;
    justify-content: space-between;
    color: var(--muted-text);
    font-size: 11px;
}

.topbar {
    width: min(1440px, calc(100% - 40px));
    padding: 18px 0 16px;
}

.brand-mark {
    background: var(--yellow);
    border: 1px solid rgba(23, 24, 28, 0.16);
    box-shadow: none;
    border-radius: 12px;
}

.brand small,
.signed-in-user,
.activity-filters label,
.employees-filters label,
.snapshot-freshness small,
.sidebar-panel-header small,
.service-status-item small,
.ops-list dt,
.empty-state p,
.workspace-copy,
.panel-meta small {
    color: var(--muted-text);
}

.logout-link {
    font-weight: 700;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}

.dashboard-shell {
    width: min(1440px, calc(100% - 40px));
    grid-template-columns: 260px minmax(0, 1fr) 300px;
    gap: 24px;
}

.sidebar,
.panel,
.service-admin-info {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.sidebar {
    top: 18px;
    padding: 16px;
    border-radius: 20px;
}

.sidebar-nav {
    gap: 8px;
}

.sidebar-link {
    min-height: 46px;
    padding: 11px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.sidebar-link-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-icon,
.sidebar-metric-icon svg,
.empty-symbol svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-link-active {
    background: rgba(213, 169, 40, 0.14);
    border-color: rgba(213, 169, 40, 0.32);
    box-shadow: none;
}

.sidebar-link-disabled {
    background: #faf8f2;
    color: var(--muted-text);
}

.sidebar-link-disabled small {
    color: var(--muted-text);
    font-size: 9px;
    letter-spacing: 0.08em;
}

.sidebar-panel {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
}

.sidebar-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.sidebar-panel-heading,
.eyebrow {
    margin: 0;
    color: var(--muted-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sidebar-metric-card {
    min-height: 132px;
    padding: 14px;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto 1fr;
    gap: 8px 10px;
    background: #fcfbf7;
    border-radius: 16px;
}

.sidebar-metric-title {
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
}

.sidebar-metric-value {
    margin: 0;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.sidebar-metric-desc {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    color: var(--muted-text);
}

.sidebar-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(213, 169, 40, 0.12);
    border: 1px solid rgba(213, 169, 40, 0.22);
    color: var(--yellow);
    align-self: start;
}

.dashboard-main {
    display: grid;
    gap: 18px;
}

.workspace-intro {
    padding: 8px 0 2px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-title {
    margin: 6px 0 10px;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.workspace-copy {
    max-width: 760px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.workspace-actions,
.filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.button {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.button-primary {
    background: var(--yellow);
    border-color: rgba(213, 169, 40, 0.45);
    color: var(--ink);
}

.button-secondary {
    background: #fff;
    color: var(--ink);
}

.activity-panel {
    padding: 24px;
    border-radius: 20px;
}

.panel-heading-compact {
    align-items: flex-start;
}

.panel-heading h2 {
    margin: 6px 0 0;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.panel-meta {
    min-width: 150px;
    text-align: right;
}

.panel-meta span {
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.panel-filters {
    margin-top: 20px;
    padding: 16px;
    background: #fbfaf6;
    border: 1px solid var(--line);
    border-radius: 16px;
    grid-template-columns: 1fr 1fr 1.2fr 1fr 0.9fr auto;
    gap: 12px;
}

.activity-table-wrap {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.cell-id {
    color: var(--muted-text);
    font-variant-numeric: tabular-nums;
}

.cell-strong {
    font-weight: 700;
}

.cell-time time {
    font-weight: 700;
    color: var(--blue);
    font-variant-numeric: tabular-nums;
}

.activity-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
}

.dashboard-rail {
    display: grid;
    gap: 18px;
}

.rail-card {
    padding: 20px;
    border-radius: 18px;
}

.state {
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 700;
}

.state-ok {
    color: var(--green);
    background: var(--green-soft);
}

.state-error {
    color: var(--red);
    background: var(--red-soft);
}

.state-wait {
    color: var(--warning);
    background: var(--warning-soft);
}

.state-neutral {
    color: var(--muted-text);
    background: #f4efe4;
}

.service-status-grid {
    margin-top: 16px;
    grid-template-columns: 1fr;
    gap: 10px;
}

.service-status-item {
    min-height: 62px;
    padding: 14px;
    gap: 12px;
    border-radius: 14px;
    background: #fcfbf7;
    border: 1px solid var(--line);
}

.service-status-item strong {
    color: var(--ink);
    font-size: 12px;
}

.ops-list {
    margin: 18px 0 0;
    display: grid;
    gap: 14px;
}

.ops-list div {
    padding-bottom: 14px;
    border-bottom: 1px solid #ece6d8;
}

.ops-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.ops-list dd {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.empty-state {
    margin-top: 18px;
    padding: 20px;
    background: #fbfaf6;
    border: 1px dashed var(--line);
}

.empty-symbol {
    width: 44px;
    height: 44px;
    color: var(--warning);
    background: var(--warning-soft);
}

@media (max-width: 900px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sidebar {
        position: static;
        padding: 14px;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
    }

    .sidebar-metric-grid,
    .service-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .topbar,
    .dashboard-shell,
    footer {
        width: min(100% - 28px, 1180px);
    }

    .brand small {
        display: none;
    }

    .environment-badge {
        padding: 8px 10px;
        font-size: 10px;
    }

    .signed-in-user {
        display: none;
    }

    .panel {
        padding: 24px;
    }

    .panel-filters,
    .activity-filters,
    .sidebar-nav,
    .sidebar-metric-grid,
    .service-status-grid {
        grid-template-columns: 1fr;
    }

    .panel-meta {
        text-align: left;
    }

    footer {
        gap: 10px;
        flex-direction: column;
    }
}

/* Dashboard redesign aligned to supplied reference */

body {
    background: #f4f1e8;
}

.topbar {
    width: min(1440px, calc(100% - 32px));
    padding: 14px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(217, 208, 191, 0.72);
}

.brand {
    gap: 12px;
}

.brand-mark {
    width: 30px;
    height: 30px;
    color: #7a6a35;
    background: #ece4cd;
    border: 0;
    border-radius: 10px;
}

.brand strong {
    font-size: 15px;
    font-weight: 700;
}

.brand small {
    font-size: 12px;
}

.user-actions {
    gap: 10px;
}

.environment-badge {
    padding: 8px 12px;
    background: #dfd6be;
    border: 0;
    color: #5f5428;
    font-size: 11px;
    font-weight: 700;
}

.account-chip {
    min-width: 180px;
    padding: 8px 12px;
    display: grid;
    gap: 2px;
    background: #fbf9f2;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.account-chip-label {
    color: var(--muted-text);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.signed-in-user {
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.logout-link {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
}

.dashboard-shell {
    width: min(1440px, calc(100% - 32px));
    grid-template-columns: 278px minmax(0, 1fr) 208px;
    gap: 16px;
}

.sidebar,
.panel {
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(23, 24, 28, 0.04);
}

.sidebar {
    padding: 12px;
}

.sidebar-block {
    margin-bottom: 8px;
}

.sidebar-section-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.sidebar-nav {
    gap: 6px;
}

.sidebar-link {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
}

.sidebar-link-active {
    background: #efe2b4;
    border-color: transparent;
}

.sidebar-link-disabled {
    background: transparent;
}

.sidebar-link-disabled small {
    font-size: 9px;
}

.sidebar-panel {
    margin-top: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #f9f7f1;
}

.sidebar-panel-header {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.sidebar-panel-heading {
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
}

.sidebar-panel-header small {
    line-height: 1.45;
    font-size: 11px;
}

.sidebar-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sidebar-metric-card {
    min-height: 102px;
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title icon"
        "value icon"
        "desc icon";
    gap: 6px 8px;
    background: #f4efe4;
    border: 1px solid #e3dbc9;
    border-radius: 14px;
}

.sidebar-metric-icon {
    grid-area: icon;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    align-self: center;
    border-radius: 8px;
    background: #ebe2ca;
}

.sidebar-metric-value {
    grid-area: value;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.sidebar-metric-title {
    grid-area: title;
    font-size: 11px;
    font-weight: 700;
}

.sidebar-metric-desc {
    grid-area: desc;
    font-size: 10px;
}

.sidebar-footnote {
    margin: 14px 4px 2px;
    padding-top: 12px;
    border-top: 1px solid #e6decd;
    color: var(--muted-text);
    font-size: 11px;
    line-height: 1.5;
}

.dashboard-main {
    gap: 14px;
}

.workspace-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 208px;
    gap: 16px;
    align-items: start;
}

.workspace-intro {
    display: block;
    padding: 8px 0 0;
}

.eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: 0.12em;
}

.dashboard-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.workspace-copy {
    max-width: 640px;
    font-size: 12px;
    line-height: 1.55;
}

.workspace-summary {
    display: grid;
    gap: 10px;
}

.update-card {
    padding: 14px 16px;
    background: #fbf9f3;
}

.update-card .eyebrow {
    margin-bottom: 6px;
}

.update-card-time {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.update-card-note {
    margin: 6px 0 0;
    color: var(--muted-text);
    font-size: 12px;
    line-height: 1.45;
}

.workspace-actions {
    justify-content: flex-start;
}

.button {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 12px;
}

.button-primary {
    background: #d5a928;
}

.report-analysis-button {
    min-height: 68px;
    padding: 0 28px;
    gap: 16px;
    border-radius: 24px;
    font-size: 24px;
}

.report-analysis-button .btn-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-analysis-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.report-analysis-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.report-analysis-form > .flex-1 {
    flex: 1 1 260px;
    max-width: 320px;
}

.report-source-toggle {
    min-height: 68px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    cursor: pointer;
}

.report-source-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.report-toggle-track {
    width: 48px;
    height: 27px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    background: #c8c2b6;
    border-radius: 999px;
    transition: background .2s ease;
}

.report-toggle-track span {
    width: 21px;
    height: 21px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(23, 24, 28, .22);
    transition: transform .2s ease;
}

.report-source-toggle input:checked + .report-toggle-track {
    background: var(--green);
}

.report-source-toggle input:checked + .report-toggle-track span {
    transform: translateX(21px);
}

.report-source-toggle input:focus-visible + .report-toggle-track {
    outline: 3px solid rgba(51, 111, 189, .3);
    outline-offset: 2px;
}

.report-toggle-copy strong,
.report-toggle-copy small {
    display: block;
}

.report-toggle-copy strong {
    font-size: 13px;
}

.report-toggle-copy small {
    margin-top: 3px;
    color: var(--muted-text);
    font-size: 10px;
}

.report-progress-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.report-progress-header,
.report-employee-heading,
.report-finished {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.report-finished[data-status="blocked"] {
    background: var(--red-soft);
    border-color: rgba(180, 35, 24, .3);
}

.report-finished[data-status="blocked"] #id-finished-msg strong {
    color: #9f2f2f;
}

.report-progress-header .heading-3 {
    margin: 5px 0 0;
    font-size: 21px;
}

.report-status-pill,
.report-stage-status,
.report-cell-status,
.report-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.report-status-pill {
    color: #8a5a08;
    background: var(--warning-soft);
}

.report-status-pill[data-status="completed"] {
    color: #146c48;
    background: var(--green-soft);
}

.report-status-pill[data-status="failed"] {
    color: #9f2f2f;
    background: var(--red-soft);
}

.report-stage-list {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.report-stage {
    min-height: 82px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    background: #faf8f2;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.report-stage-marker,
.report-step-number {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: #6d6555;
    background: #eee9dd;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
}

.report-stage-copy strong,
.report-stage-copy small,
.report-employee-heading strong,
.report-employee-heading small,
#id-finished-msg strong,
#id-finished-msg span,
.report-progress-table td strong,
.report-progress-table td small {
    display: block;
}

.report-stage-copy strong,
.report-employee-heading strong {
    font-size: 14px;
}

.report-stage-copy small,
.report-employee-heading small,
.report-progress-table td small {
    margin-top: 3px;
    color: var(--muted-text);
    font-size: 11px;
}

.report-stage-status {
    color: var(--muted-text);
    background: #eeeae1;
}

.report-stage[data-status="running"] {
    border-color: rgba(213, 169, 40, .75);
    box-shadow: 0 0 0 3px rgba(213, 169, 40, .14);
}

.report-stage[data-status="running"] .report-stage-marker {
    color: var(--ink);
    background: var(--yellow);
}

.report-stage[data-status="running"] .report-stage-status {
    color: #8a5a08;
    background: var(--warning-soft);
}

.report-stage[data-status="done"] .report-stage-marker {
    color: #fff;
    background: var(--green);
}

.report-stage[data-status="done"] .report-stage-status {
    color: #146c48;
    background: var(--green-soft);
}

.report-stage[data-status="failed"] .report-stage-marker,
.report-stage[data-status="failed"] .report-stage-status {
    color: #9f2f2f;
    background: var(--red-soft);
}

.report-employee-panel {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.report-employee-heading {
    padding: 17px 18px;
    background: #faf8f2;
}

.report-employee-heading > div:first-child {
    display: flex;
    align-items: center;
    gap: 14px;
}

.report-counter {
    font-size: 18px;
}

.report-progress-track {
    height: 7px;
    background: #ece8df;
}

#id-prepare-progressbar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--yellow), var(--green));
    transition: width .35s ease;
}

.report-progress-caption {
    padding: 8px 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted-text);
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
}

.report-table-wrap {
    max-height: 520px;
    overflow: auto;
}

.report-progress-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.report-progress-table th,
.report-progress-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #ece8df;
    text-align: left;
    vertical-align: middle;
}

.report-progress-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--muted-text);
    background: #f7f4ec;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.report-progress-table tbody tr:last-child td {
    border-bottom: 0;
}

.report-progress-table tbody tr:hover:not(.report-error-row) {
    background: #fcfbf7;
}

.report-progress-table th:first-child,
.report-progress-table td:first-child {
    width: 48px;
    text-align: center;
}

.report-row-number {
    color: var(--muted-text);
    font-variant-numeric: tabular-nums;
}

.report-cell-status[data-status="waiting"],
.report-result[data-result="waiting"],
.report-result[data-result="no_data"] {
    color: var(--muted-text);
    background: #eeeae1;
}

.report-cell-status[data-status="running"] {
    color: #8a5a08;
    background: var(--warning-soft);
}

.report-cell-status[data-status="done"],
.report-result[data-result="clean"] {
    color: #146c48;
    background: var(--green-soft);
}

.report-cell-status[data-status="failed"],
.report-cell-status[data-status="skipped"],
.report-result[data-result="error"] {
    color: #9f2f2f;
    background: var(--red-soft);
}

.report-result[data-result="warning"] {
    color: #8a5a08;
    background: var(--warning-soft);
}

.report-table-empty td {
    padding: 32px;
    color: var(--muted-text);
    text-align: center !important;
}

.report-error-row td {
    padding-top: 0;
    color: #9f2f2f;
    background: #fff8f7;
    font-size: 11px;
    line-height: 1.6;
}

.report-summary {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.report-summary > span {
    padding: 9px 12px;
    color: var(--muted-text);
    background: #faf8f2;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px;
}

.report-summary strong {
    margin-left: 5px;
    color: var(--ink);
}

.report-error-filter {
    min-height: 38px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted-text);
    background: #faf8f2;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.report-error-filter input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.report-error-filter .report-toggle-track {
    width: 38px;
    height: 22px;
    padding: 3px;
    flex: 0 0 38px;
}

.report-error-filter .report-toggle-track span {
    width: 16px;
    height: 16px;
}

.report-error-filter input:checked + .report-toggle-track {
    background: var(--green);
}

.report-error-filter input:checked + .report-toggle-track span {
    transform: translateX(16px);
}

.report-error-filter input:focus-visible + .report-toggle-track {
    outline: 3px solid rgba(51, 111, 189, .3);
    outline-offset: 2px;
}

.report-finished {
    margin-top: 18px;
    padding: 16px 18px;
    background: var(--green-soft);
    border: 1px solid rgba(45, 138, 95, .3);
    border-radius: 14px;
}

.report-finished[hidden],
.report-finished .button[hidden] {
    display: none;
}

#id-finished-msg strong {
    color: #146c48;
    font-size: 14px;
}

#id-finished-msg span {
    margin-top: 3px;
    color: var(--muted-text);
    font-size: 11px;
}

.report-finished-buttons {
    display: flex;
    gap: 10px;
}

.report-generation-page {
    display: grid;
    gap: 18px;
}

.report-generation-header {
    padding: 26px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.report-generation-header .heading-2 {
    margin: 5px 0 8px;
}

.report-generation-actions,
.report-generation-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-generation-actions form {
    margin: 0;
}

.report-generation-alert {
    padding: 15px 18px;
    border: 1px solid;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.report-generation-alert strong {
    margin-right: 4px;
}

.report-generation-alert-danger {
    color: #9f2f2f;
    background: var(--red-soft);
    border-color: rgba(200, 75, 75, .3);
}

.report-generation-alert-warning {
    color: #8a5a08;
    background: var(--warning-soft);
    border-color: rgba(209, 138, 26, .3);
}

.report-generation-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.report-generation-summary > div {
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.report-generation-summary span,
.report-generation-summary strong {
    display: block;
}

.report-generation-summary span {
    color: var(--muted-text);
    font-size: 11px;
}

.report-generation-summary strong {
    margin-top: 6px;
    font-size: 24px;
}

.report-generated-files {
    overflow: hidden;
}

.report-worker-table {
    width: 100%;
    border-collapse: collapse;
}

.report-generated-files .table-wrap {
    overflow-x: auto;
}

.report-worker-table th,
.report-worker-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.report-worker-table th {
    color: var(--muted-text);
    background: #faf8f2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.report-worker-table tbody tr {
    background: var(--surface);
    transition: background-color .15s ease;
}

.report-worker-table tbody tr:hover {
    background: var(--yellow-soft);
}

.report-worker-table .num {
    text-align: right;
    white-space: nowrap;
}

.report-worker-table code {
    color: var(--muted-text);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.report-worker-code {
    display: block;
    margin-top: 3px;
}

.report-hours-badge {
    display: inline-flex;
    min-width: 76px;
    justify-content: flex-end;
    color: var(--green);
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.report-generated-files .chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.report-generated-files .chip-success {
    color: var(--green);
    background: var(--green-soft);
    border-color: rgba(45, 138, 95, .25);
}

.report-generated-files .chip-muted {
    color: var(--muted-text);
    background: #f3f0e8;
}

.report-generated-files-heading {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.report-generated-files-heading .heading-3 {
    margin: 4px 0 0;
}

.report-generated-empty {
    padding: 44px 24px;
    text-align: center;
}

.report-generated-empty strong,
.report-generated-empty span {
    display: block;
}

.report-generated-empty span {
    margin-top: 7px;
    color: var(--muted-text);
    font-size: 12px;
}

.report-generation-footer {
    padding: 18px 22px;
    justify-content: space-between;
    background: #faf8f2;
    border-top: 1px solid var(--line);
}

.report-generation-footer p {
    margin: 0;
    color: var(--muted-text);
    font-size: 12px;
}

.report-delivery-page {
    display: grid;
    gap: 18px;
}

.report-delivery-header {
    padding: 26px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.report-delivery-header .heading-2,
.report-delivery-mode .heading-3 {
    margin: 5px 0 8px;
}

.report-delivery-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.report-delivery-send-button .btn-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-delivery-alert {
    padding: 15px 18px;
    border: 1px solid;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.report-delivery-alert-info {
    color: #245786;
    background: #edf6ff;
    border-color: rgba(51, 111, 189, .28);
}

.report-delivery-alert-danger {
    color: #9f2f2f;
    background: var(--red-soft);
    border-color: rgba(200, 75, 75, .3);
}

.report-email-composer {
    padding: 24px;
    display: grid;
    gap: 18px;
}

.report-email-composer-heading,
.report-email-editor-label,
.report-email-editor-actions,
.report-email-attachments-heading,
.report-email-attachment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.report-email-composer-heading .heading-3 {
    margin: 5px 0 7px;
}

.report-email-composer-heading p,
.report-email-editor-label small,
.report-email-attachments-heading small,
.report-email-attachment span {
    display: block;
    margin: 0;
    color: var(--muted-text);
    font-size: 11px;
    line-height: 1.5;
}

.report-email-subject {
    padding: 13px 16px;
    display: grid;
    gap: 4px;
    background: #f7f3ea;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.report-email-subject span {
    color: var(--muted-text);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.report-email-subject strong {
    font-size: 13px;
}

.report-email-editor-section,
.report-email-attachments {
    display: grid;
    gap: 10px;
}

.report-email-toolbar {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.report-email-toolbar button {
    min-width: 34px;
    min-height: 31px;
    padding: 4px 9px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.report-email-toolbar button:hover {
    border-color: var(--ink);
}

.report-email-editor {
    min-height: 245px;
    padding: 18px 20px;
    overflow: auto;
    color: var(--ink);
    background: #fff;
    border: 1px solid #cfc5b4;
    border-radius: 12px;
    line-height: 1.55;
    outline: none;
}

.report-email-editor:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(190, 68, 45, .12);
}

.report-email-editor p:first-child {
    margin-top: 0;
}

.report-email-editor p:last-child {
    margin-bottom: 0;
}

.report-email-upload {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.report-email-upload input[type="file"] {
    max-width: 300px;
    font-size: 11px;
}

.report-email-attachment-list {
    display: grid;
    gap: 8px;
}

.report-email-attachment {
    padding: 11px 13px;
    justify-content: flex-start;
    background: #faf8f2;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.report-email-attachment > :nth-child(2) {
    min-width: 0;
    flex: 1;
}

.report-email-file-icon {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--ink);
    border-radius: 10px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .03em;
}

.report-email-attachment-required {
    background: #eff7f0;
    border-color: rgba(54, 133, 75, .28);
}

.report-email-attachment-missing {
    background: var(--red-soft);
    border-color: rgba(200, 75, 75, .3);
}

.report-delivery-mode {
    padding: 20px 22px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto minmax(240px, .65fr);
    align-items: center;
    gap: 20px;
    transition: border-color .2s ease, background-color .2s ease;
}

.report-delivery-mode[data-test-mode="true"] {
    background: var(--warning-soft);
    border-color: rgba(209, 138, 26, .42);
}

.report-delivery-mode-copy p {
    margin: 0;
    max-width: 640px;
    color: var(--muted-text);
    font-size: 12px;
    line-height: 1.55;
}

.report-delivery-test-toggle {
    min-width: 245px;
}

.report-delivery-mode[data-test-mode="true"] .report-toggle-track {
    background: var(--warning);
}

.report-delivery-mode-target {
    padding: 13px 15px;
    background: #faf8f2;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.report-delivery-mode-target span,
.report-delivery-mode-target strong,
.report-delivery-mode-target small {
    display: block;
}

.report-delivery-mode-target span {
    color: var(--muted-text);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.report-delivery-mode-target strong {
    margin-top: 4px;
    font-size: 13px;
}

.report-delivery-mode-target small {
    margin-top: 4px;
    color: var(--muted-text);
    font-size: 10px;
}

.report-delivery-bulk-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.report-delivery-bulk-actions #bulk-selection-status {
    font-size: 11px;
}

.report-delivery-progress {
    padding: 17px 20px;
    background: #fbf9f3;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.report-delivery-progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
}

.report-delivery-progress-track {
    height: 7px;
    margin-top: 10px;
    overflow: hidden;
    background: #e8e2d4;
    border-radius: 999px;
}

.report-delivery-progress-track span {
    display: block;
    height: 100%;
    background: var(--green);
    border-radius: inherit;
    transition: width .4s ease;
}

.report-delivery-progress p {
    margin: 8px 0 0;
    color: var(--muted-text);
    font-size: 11px;
}

.report-delivery-summary {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.report-delivery-summary > div {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.report-delivery-summary span,
.report-delivery-summary strong {
    display: block;
}

.report-delivery-summary span {
    color: var(--muted-text);
    font-size: 10px;
}

.report-delivery-summary strong {
    margin-top: 5px;
    font-size: 21px;
    font-variant-numeric: tabular-nums;
}

.report-delivery-summary .is-success strong {
    color: var(--green);
}

.report-delivery-summary .is-danger strong {
    color: #b42318;
}

.report-delivery-list {
    overflow: hidden;
}

.report-delivery-list .table-wrap {
    overflow-x: auto;
}

.report-delivery-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
}

.report-delivery-table th,
.report-delivery-table td {
    padding: 14px 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.report-delivery-table th {
    color: var(--muted-text);
    background: #faf8f2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.report-delivery-table tbody tr {
    background: var(--surface);
    transition: background-color .15s ease;
}

.report-delivery-table tbody tr:hover {
    background: #fffdf7;
}

.report-delivery-check {
    width: 42px;
    text-align: center !important;
}

.report-delivery-enabled {
    width: 17px;
    height: 17px;
    accent-color: var(--green);
}

.report-delivery-employee {
    width: 225px;
}

.report-delivery-employee strong,
.report-delivery-employee span,
.report-delivery-employee code,
.report-delivery-employee small {
    display: block;
}

.report-delivery-employee code {
    max-width: 220px;
    margin-top: 8px;
    overflow: hidden;
    color: var(--muted-text);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-delivery-employee small,
.report-delivery-table td > small,
.report-delivery-sent-meta span,
.report-delivery-sent-meta small {
    margin-top: 4px;
    color: var(--muted-text);
    font-size: 10px;
}

.report-delivery-recipients {
    width: 360px;
}

.report-delivery-recipients label {
    display: block;
    margin: 0 0 4px;
    color: var(--muted-text);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.report-delivery-recipients label:not(:first-child) {
    margin-top: 8px;
}

.report-delivery-email {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    font: inherit;
    font-size: 11px;
    resize: vertical;
}

.report-delivery-email:focus {
    outline: 3px solid rgba(51, 111, 189, .16);
    border-color: #7ca7d8;
}

.report-delivery-email[readonly] {
    color: var(--muted-text);
    background: #f3f0e8;
}

.report-delivery-list .chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.report-delivery-list .chip-success {
    color: var(--green);
    background: var(--green-soft);
    border-color: rgba(45, 138, 95, .25);
}

.report-delivery-list .chip-danger {
    color: #9f2f2f;
    background: var(--red-soft);
    border-color: rgba(200, 75, 75, .25);
}

.report-delivery-list .chip-warning {
    color: #8a5a08;
    background: var(--warning-soft);
    border-color: rgba(209, 138, 26, .25);
}

.report-delivery-list .chip-muted {
    color: var(--muted-text);
    background: #f3f0e8;
}

.report-delivery-sent-meta strong,
.report-delivery-sent-meta span,
.report-delivery-sent-meta small {
    display: block;
}

.report-delivery-error {
    max-width: 175px;
    margin: 7px 0 0;
    overflow: hidden;
    color: #b42318;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-delivery-audit {
    width: 190px;
}

.report-delivery-audit details {
    margin-top: 9px;
    font-size: 10px;
}

.report-delivery-audit summary {
    color: var(--muted-text);
    cursor: pointer;
    font-weight: 700;
}

.report-delivery-history {
    max-height: 260px;
    margin-top: 8px;
    overflow-y: auto;
}

.report-delivery-history article {
    padding: 8px 0;
    border-top: 1px solid var(--line);
}

.report-delivery-history article strong,
.report-delivery-history article time,
.report-delivery-history article span {
    display: block;
    margin-top: 2px;
}

@media (max-width: 1180px) {
    .report-delivery-mode {
        grid-template-columns: 1fr 1fr;
    }

    .report-delivery-mode-copy {
        grid-column: 1 / -1;
    }

    .report-delivery-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .report-delivery-header,
    .report-delivery-actions,
    .report-delivery-mode,
    .report-generation-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .report-delivery-mode {
        grid-template-columns: 1fr;
    }

    .report-delivery-mode-copy {
        grid-column: auto;
    }

    .report-delivery-test-toggle,
    .report-delivery-actions .button {
        width: 100%;
    }

    .report-delivery-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-email-composer-heading,
    .report-email-editor-label,
    .report-email-editor-actions,
    .report-email-attachments-heading,
    .report-email-attachment {
        align-items: stretch;
        flex-direction: column;
    }

    .report-email-upload {
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
    }

    .report-email-upload input[type="file"],
    .report-email-upload .button,
    .report-email-editor-actions .button,
    .report-email-attachment .button {
        width: 100%;
        max-width: none;
    }

    .report-generated-files-heading,
    .report-delivery-bulk-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .report-delivery-bulk-actions .button {
        width: 100%;
    }
}

.button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .report-analysis-form {
        align-items: stretch;
        flex-direction: column;
    }

    .report-analysis-form > .flex-1 {
        max-width: none;
    }

    .report-source-toggle,
    .report-analysis-button {
        width: 100%;
    }

    .report-progress-card {
        padding: 18px;
    }

    .report-stage-list {
        grid-template-columns: 1fr;
    }

    .report-progress-header,
    .report-finished,
    .report-generation-header,
    .report-generation-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-generation-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-generation-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .report-table-wrap {
        overflow-x: auto;
    }

    .report-progress-table {
        min-width: 720px;
    }
}

.button-secondary {
    background: #faf8f2;
}

.button-compact {
    min-height: 48px;
    padding: 0 12px;
    line-height: 1.2;
}

.filters-card,
.activity-panel,
.rail-card {
    padding: 16px;
}

.filters-heading {
    margin-bottom: 12px;
}

.panel-heading h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.panel-subcopy {
    margin: 4px 0 0;
    color: var(--muted-text);
    font-size: 12px;
    line-height: 1.45;
}

.panel-filters {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: 0;
    grid-template-columns: 1fr 1fr 1.1fr .9fr .8fr auto;
    align-items: end;
}

.home-filters {
    grid-template-columns: 1fr 1fr 1.15fr 1.15fr .9fr .8fr auto;
}

.activity-filters label {
    font-size: 11px;
    font-weight: 600;
}

.panel-filters input,
.panel-filters select {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #f7f3ea;
    border: 1px solid var(--line);
    color: var(--ink);
    font: inherit;
}

.filter-actions {
    justify-content: flex-end;
}

.activity-table-wrap {
    margin-top: 10px;
    border: 0;
    background: transparent;
}

.activity-table th,
.activity-table td {
    padding: 12px 10px;
}

.activity-table th,
.employees-table th {
    background: transparent;
    border-bottom: 1px solid #d7cfbf;
    font-size: 10px;
}

.activity-table td,
.employees-table td {
    border-bottom: 1px solid #e8e1d3;
    font-size: 12px;
}

.activity-table tbody tr:hover,
.employees-table tbody tr:hover {
    background: #f9f6ef;
}

.cell-time time {
    display: inline-flex;
    min-height: 24px;
    padding: 0 10px;
    align-items: center;
    border-radius: 999px;
    background: #f2ede2;
    color: #4b4f56;
    font-size: 11px;
}

.activity-badge {
    min-height: 24px;
    padding: 0 10px;
    font-size: 10px;
}

.dashboard-rail {
    gap: 14px;
}

.service-status-grid,
.ops-cards {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.service-status-item {
    min-height: 0;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #ebe3d2;
    border-radius: 0;
    background: transparent;
}

.service-status-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.service-status-item strong {
    font-size: 13px;
}

.service-status-item small {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.45;
}

.state {
    min-height: 26px;
    padding: 0 10px;
    align-items: center;
    border-radius: 999px;
    font-size: 10px;
}

.ops-cards {
    grid-template-columns: 1fr;
}

.ops-card {
    padding: 12px;
    background: #f7f3ea;
    border-radius: 14px;
}

.ops-card p {
    margin: 0 0 8px;
    color: var(--muted-text);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ops-card strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
}

.ops-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted-text);
    font-size: 11px;
    line-height: 1.45;
}

footer {
    width: min(1440px, calc(100% - 32px));
}

@media (max-width: 1100px) {
    .dashboard-shell,
    .topbar,
    footer {
        width: min(100% - 24px, 1440px);
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .workspace-header {
        grid-template-columns: 1fr;
    }

    .panel-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Employees page tuning */

.employees-page .dashboard-shell {
    grid-template-columns: 278px minmax(0, 1fr);
}

.employees-page .pagination-bar .pagination-arrows .pag-btn {
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    box-shadow: 2px 2px 0 rgba(23, 26, 29, .55) !important;
}

.employees-page .pagination-bar .pagination-arrows .pag-btn.pag-disabled {
    box-shadow: 1px 1px 0 rgba(120, 124, 122, .25) !important;
}

@media (max-width: 1100px) {
    .employees-page .dashboard-shell {
        grid-template-columns: 1fr;
    }
}

/* Reports archive */

.reports-list-page .dashboard-shell {
    grid-template-columns: 278px minmax(0, 1fr);
}

.reports-filters {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.reports-filters .filter-actions {
    align-self: end;
}

.reports-table-wrap {
    overflow-x: auto;
}

.reports-table {
    min-width: 1120px;
}

.reports-table td {
    vertical-align: top;
}

.report-cell-note,
.report-file-name {
    display: block;
}

.report-cell-note {
    margin-top: 4px;
    color: var(--muted-text);
    font-size: 10px;
    line-height: 1.35;
}

.report-file-name {
    max-width: 220px;
    overflow: hidden;
    color: var(--ink);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-tag {
    display: block;
    width: fit-content;
    max-width: 210px;
    margin-bottom: 4px;
    padding: 4px 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #f2ede2;
    color: #4b4f56;
    font-size: 10px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-tag-person {
    background: #e9f1ec;
    color: #315446;
}

.reports-action-column {
    text-align: right;
    white-space: nowrap;
}

.report-download-button {
    display: inline-flex;
    gap: 7px;
}

.report-download-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1100px) {
    .reports-list-page .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .reports-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .reports-filters {
        grid-template-columns: 1fr;
    }
}
.problem-critical-text { color: #a63a2b; }
.problem-minor-text { color: #a36a13; }
.problems-table { min-width: 1080px; }
.problem-row-critical { background: rgba(166, 58, 43, 0.055); }
.problem-row-minor { background: rgba(190, 132, 34, 0.035); }
.problem-tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 260px; }
.problem-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}
.problem-tag-critical { color: #8f2e21; background: #f8d8d3; border: 1px solid #efb5ac; }
.problem-tag-minor { color: #76500f; background: #fff0c9; border: 1px solid #ead28d; }
.problem-settings-form { display: grid; gap: 18px; max-width: 720px; padding: 24px; }
.problem-settings-form label { display: grid; gap: 7px; font-weight: 700; }
.problem-settings-form input { max-width: 280px; }
.problem-form-error { color: #9d2d20; font-weight: 600; }
