:root {
    --hoj-green: #24543b;
    --hoj-green-dark: #183b2a;
    --hoj-amber: #b7791f;
    --hoj-red: #9f1239;
    --hoj-border: rgba(148, 163, 184, .28);
    --hoj-muted: #64748b;
    --hoj-surface: #ffffff;
    --hoj-soft: #f8fafc;
}

.dark {
    --hoj-border: rgba(148, 163, 184, .22);
    --hoj-muted: #94a3b8;
    --hoj-surface: rgba(15, 23, 42, .72);
    --hoj-soft: rgba(30, 41, 59, .72);
}

.hoj-page {
    display: grid;
    gap: 1.25rem;
}

.hoj-page-header,
.hoj-card,
.hoj-stat,
.hoj-empty {
    background: var(--hoj-surface);
    border: 1px solid var(--hoj-border);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.hoj-page-header {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hoj-eyebrow {
    color: var(--hoj-green);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dark .hoj-eyebrow {
    color: #86efac;
}

.hoj-title {
    margin: .2rem 0 0;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.1;
    font-weight: 850;
}

.hoj-subtitle {
    margin: .4rem 0 0;
    color: var(--hoj-muted);
    max-width: 62rem;
}

.hoj-card {
    padding: 1.1rem;
}

.hoj-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
}

.hoj-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.hoj-card-subtitle {
    margin: .25rem 0 0;
    color: var(--hoj-muted);
    font-size: .9rem;
}

.hoj-grid,
.hoj-grid-2,
.hoj-grid-3,
.hoj-grid-4 {
    display: grid;
    gap: 1rem;
}

.hoj-grid-2,
.hoj-grid-3,
.hoj-grid-4 {
    grid-template-columns: 1fr;
}

.hoj-stat {
    padding: 1rem;
}

.hoj-stat-label {
    color: var(--hoj-muted);
    font-size: .82rem;
    font-weight: 700;
}

.hoj-stat-value {
    margin-top: .45rem;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
}

.hoj-stat-help {
    margin-top: .45rem;
    color: var(--hoj-muted);
    font-size: .8rem;
}

.hoj-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.hoj-button {
    display: inline-flex;
    min-height: 2.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--hoj-border);
    padding: .55rem .85rem;
    font-size: .875rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease;
}

.hoj-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.hoj-button-primary {
    background: var(--hoj-green);
    border-color: var(--hoj-green);
    color: #fff;
}

.hoj-button-secondary {
    background: var(--hoj-soft);
    color: inherit;
}

.hoj-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .25rem .6rem;
    font-size: .75rem;
    font-weight: 850;
    white-space: nowrap;
}

.hoj-badge-ok {
    background: #dcfce7;
    color: #166534;
}

.hoj-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.hoj-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.hoj-badge-muted {
    background: var(--hoj-soft);
    color: var(--hoj-muted);
}

.hoj-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--hoj-border);
    border-radius: 14px;
}

.hoj-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.hoj-table th {
    background: var(--hoj-soft);
    color: var(--hoj-muted);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .06em;
    padding: .8rem .9rem;
    text-align: left;
    text-transform: uppercase;
}

.hoj-table td {
    border-top: 1px solid var(--hoj-border);
    padding: .85rem .9rem;
    vertical-align: top;
}

.hoj-table tbody tr:hover {
    background: rgba(36, 84, 59, .04);
}

.hoj-empty {
    padding: 2rem;
    text-align: center;
    color: var(--hoj-muted);
}

.hoj-filter-grid {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: end;
}

.hoj-input-label {
    display: block;
    margin-bottom: .35rem;
    color: var(--hoj-muted);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hoj-select {
    width: 100%;
    min-height: 2.45rem;
    border: 1px solid var(--hoj-border);
    border-radius: 10px;
    background: var(--hoj-surface);
    padding: .5rem .7rem;
    font-size: .9rem;
}

.hoj-textarea {
    width: 100%;
    min-height: 10rem;
    border: 1px solid var(--hoj-border);
    border-radius: 12px;
    background: var(--hoj-surface);
    padding: .8rem;
    font-size: .9rem;
    line-height: 1.5;
}

.hoj-check-toggle {
    display: inline-flex;
    min-height: 2.45rem;
    align-items: center;
    gap: .55rem;
    border: 1px solid var(--hoj-border);
    border-radius: 10px;
    background: var(--hoj-soft);
    padding: .55rem .7rem;
    font-weight: 750;
}

.hoj-checklist {
    display: grid;
    gap: .75rem;
}

.hoj-checklist-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--hoj-border);
    border-radius: 14px;
    padding: .9rem;
}

.hoj-progress {
    height: .55rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--hoj-soft);
}

.hoj-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: var(--hoj-green);
}

.hoj-shift-card {
    border: 1px solid var(--hoj-border);
    border-radius: 16px;
    background: var(--hoj-surface);
    padding: 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.hoj-shift-card.is-missing {
    border-color: rgba(245, 158, 11, .46);
}

.hoj-shift-card.is-ok {
    border-color: rgba(34, 197, 94, .34);
}

.hoj-shift-slot {
    border: 1px solid var(--hoj-border);
    border-radius: 14px;
    padding: .85rem;
    background: var(--hoj-soft);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.hoj-shift-slot.is-missing {
    border-color: rgba(245, 158, 11, .45);
    background: rgba(254, 243, 199, .38);
}

.hoj-shift-slot.is-ok {
    border-color: rgba(34, 197, 94, .35);
    background: rgba(220, 252, 231, .35);
}

@media (min-width: 760px) {
    .hoj-page-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

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

    .hoj-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media print {
    .hoj-no-print {
        display: none !important;
    }

    .hoj-page,
    .hoj-shift-card,
    .hoj-card {
        box-shadow: none !important;
    }
}
