:root {
    --color-slate: #3A4A5C;
    --color-terracotta: #C4633F;
    --color-bg: #F5F5F5;
    --color-border: #D0D5DD;
    --color-text: #1A1A2E;
    --color-muted: #6B7280;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
}

.ops-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ops-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
    background: var(--color-slate);
    color: #fff;
}

.ops-header__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
}

.ops-header__badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--color-terracotta);
}

.ops-header__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.btn-ops-outline {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #fff;
    font-size: 0.8125rem;
    cursor: pointer;
}

.btn-ops-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ops-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
}

.ops-tab {
    display: inline-block;
    padding: 0.85rem 1rem;
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.ops-tab:hover {
    color: var(--color-text);
}

.ops-tab.active {
    color: var(--color-terracotta);
    border-bottom-color: var(--color-terracotta);
}

.ops-content {
    flex: 1;
    padding: 1.5rem;
}

.ops-placeholder {
    color: var(--color-muted);
}

.ops-note {
    color: var(--color-muted);
    font-size: 0.875rem;
    max-width: 60ch;
}

/* Abrechnung tab (#1242) — this small shell has no shared table/button design system of its
   own yet (the .sa-table/.btn-sa-* classes AGENTS.md points to belong to the main Web app's
   CSS, which this project does not load), so these follow the existing ops-* naming already
   used above rather than either importing an unrelated stylesheet or styling inline. */
.ops-toolbar {
    margin-bottom: 1rem;
}

.ops-download-link {
    display: inline-block;
    text-decoration: none;
    border-color: var(--color-slate);
    color: var(--color-slate);
}

.ops-download-link:hover {
    background: rgba(58, 74, 92, 0.08);
}

.ops-error {
    color: #B3261E;
    font-size: 0.875rem;
}

.ops-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.ops-table th,
.ops-table td {
    text-align: left;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--color-border);
}

.ops-table th {
    color: var(--color-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ops-price-input {
    width: 7rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

/* .btn-ops-outline is also used here in the content area (light background), not just the
   header (dark background) it was designed for — the header's translucent-white styling only
   reads against --color-slate, so a light-surface variant is layered on via this scope. */
.ops-content .btn-ops-outline {
    border-color: var(--color-slate);
    color: var(--color-slate);
}

.ops-content .btn-ops-outline:hover {
    background: rgba(58, 74, 92, 0.08);
}

.ops-lead {
    color: var(--color-muted);
    max-width: 60ch;
}

.ops-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.ops-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.25rem;
}

.ops-card__title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.ops-card__description {
    margin: 0 0 1rem;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.ops-card__link {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--color-terracotta);
    color: var(--color-terracotta);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
}

.ops-card__link:hover {
    background: var(--color-terracotta);
    color: #fff;
}
