.stt-tracker,
.stt-admin-wrap {
    --stt-border: #d7dde5;
    --stt-text: #17202a;
    --stt-muted: #5b6775;
    --stt-surface: #ffffff;
    --stt-soft: #f5f7fa;
    --stt-blue: #1769aa;
    --stt-green: #16834a;
    --stt-red: #b42318;
    color: var(--stt-text);
}

.stt-tracker {
    max-width: 820px;
    margin: 24px auto;
    padding: 0;
    font-size: 16px;
}

.stt-tracker-header,
.stt-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.stt-tracker-header h2,
.stt-section-heading h2,
.stt-panel h2 {
    margin: 0;
    color: var(--stt-text);
    letter-spacing: 0;
}

.stt-period-label,
.stt-section-heading span,
.stt-row-meta,
.stt-empty {
    color: var(--stt-muted);
}

.stt-employee-list {
    display: grid;
    gap: 10px;
}

.stt-employee-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(190px, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 76px;
    padding: 14px;
    border: 1px solid var(--stt-border);
    border-radius: 8px;
    background: var(--stt-surface);
    box-sizing: border-box;
}

.stt-employee-row.is-clocked-in {
    border-color: rgba(22, 131, 74, 0.45);
    box-shadow: inset 4px 0 0 var(--stt-green);
}

.stt-person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.stt-person strong {
    overflow-wrap: anywhere;
}

.stt-current-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--stt-soft);
    color: var(--stt-text);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.stt-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.95em;
}

.stt-state,
.stt-week-total strong,
[data-stt-role="counter"],
[data-stt-role="hours"],
[data-stt-role="pay"] {
    font-variant-numeric: tabular-nums;
}

.stt-clock-button {
    min-width: 106px;
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    background: var(--stt-blue);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.stt-clock-button:hover,
.stt-clock-button:focus {
    background: #0f578f;
    color: #ffffff;
}

.stt-clock-button:disabled {
    background: #b7c0ca;
    cursor: not-allowed;
}

.stt-employee-row.is-clocked-in .stt-clock-button {
    background: var(--stt-red);
}

.stt-employee-row.is-clocked-in .stt-clock-button:hover,
.stt-employee-row.is-clocked-in .stt-clock-button:focus {
    background: #8f1d14;
}

.stt-message {
    display: none;
    margin: 8px 0 14px;
    padding: 10px 12px;
    border-left: 4px solid var(--stt-green);
    background: #edf8f2;
    color: #0d5f35;
}

.stt-message.is-visible {
    display: block;
}

.stt-message.is-error {
    border-left-color: var(--stt-red);
    background: #fff0ee;
    color: var(--stt-red);
}

.stt-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.stt-panel {
    padding: 16px;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    background: #ffffff;
}

.stt-form,
.stt-employee-edit-form,
.stt-toggle-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
}

.stt-form label,
.stt-employee-edit-form label {
    display: grid;
    gap: 4px;
    min-width: 180px;
}

.stt-form label span,
.stt-employee-edit-form label span {
    font-weight: 600;
}

.stt-form input,
.stt-employee-edit-form input {
    min-height: 36px;
}

.stt-admin-table-wrap {
    overflow-x: auto;
}

.stt-summary-table th,
.stt-entry-table th,
.stt-daily-table th {
    font-weight: 700;
}

.stt-summary-table .stt-employee-row {
    display: table-row;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.stt-summary-table .stt-employee-row.is-clocked-in td:first-child {
    box-shadow: inset 4px 0 0 var(--stt-green);
}

.stt-status-pill {
    display: inline-flex;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f0f2f4;
    color: #3f4852;
    font-size: 12px;
    font-weight: 700;
}

.stt-status-pill.is-active {
    background: #e8f5ee;
    color: #11663a;
}

.stt-status-pill.is-inactive {
    background: #f1f1f1;
    color: #6d747c;
}

.stt-employee-manager {
    display: grid;
    gap: 10px;
}

.stt-daily-hours-form {
    display: grid;
    gap: 12px;
}

.stt-daily-table input[type="number"] {
    width: 92px;
    min-height: 34px;
}

.stt-daily-table input[type="number"]:disabled {
    background: #f1f1f1;
    color: #7a7f86;
}

.stt-daily-note {
    margin: 0;
}

.stt-employee-editor {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--stt-border);
    border-radius: 8px;
    background: var(--stt-soft);
}

.stt-empty {
    margin: 10px 0 0;
}

@media (max-width: 760px) {
    .stt-tracker-header,
    .stt-section-heading,
    .stt-employee-editor {
        align-items: stretch;
        flex-direction: column;
    }

    .stt-employee-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .stt-person,
    .stt-row-meta {
        justify-content: space-between;
    }

    .stt-clock-button {
        width: 100%;
    }

    .stt-admin-grid {
        grid-template-columns: 1fr;
    }

    .stt-form,
    .stt-employee-edit-form,
    .stt-toggle-form {
        align-items: stretch;
        flex-direction: column;
    }

    .stt-form label,
    .stt-employee-edit-form label {
        min-width: 0;
    }
}
