/* /Components/WorkMonthCalendar.razor.rz.scp.css */
.tc-page[b-aowz1m08ym] {
    --tc-green: #1D9E75;
    --tc-blue:  #185FA5;
    max-width: 480px; margin: 0 auto; padding: 0 12px 80px;
}

.tc-summary-row[b-aowz1m08ym] { display: flex; gap: 10px; margin-bottom: 16px; }
.tc-card[b-aowz1m08ym] { flex: 1; background: #f8f9fa; border-radius: 8px; padding: 12px; text-align: center; font-size: 0.85rem; }
.tc-card strong[b-aowz1m08ym] { display: block; font-size: 1.4rem; color: var(--tc-green); }

.tc-cal-header[b-aowz1m08ym] { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tc-cal-header button[b-aowz1m08ym] { background: none; border: none; font-size: 1.6rem; color: var(--tc-blue); padding: 4px 12px; cursor: pointer; line-height: 1; touch-action: manipulation; }
.tc-cal-header span[b-aowz1m08ym] { font-weight: 600; font-size: 1.05rem; text-transform: capitalize; }

.tc-cal-grid[b-aowz1m08ym] { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; touch-action: none; }
.tc-cal-dow[b-aowz1m08ym] { text-align: center; font-size: 0.7rem; color: #888; padding-bottom: 4px; font-weight: 600; }
.tc-cal-day[b-aowz1m08ym] { position: relative; text-align: center; padding: 6px 2px 2px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; user-select: none; min-height: 36px; touch-action: manipulation; background: none; border: none; width: 100%; color: inherit; line-height: inherit; font-family: inherit; }
.tc-cal-day:hover[b-aowz1m08ym] { background: #e8f4fd; }
.tc-cal-day.today[b-aowz1m08ym] { border: 2px solid var(--tc-blue); }
.tc-cal-day.selected[b-aowz1m08ym] { background: var(--tc-blue); color: white; }
.tc-cal-day.selected .tc-dot[b-aowz1m08ym] { background: white; }
.tc-cal-day.has-hours[b-aowz1m08ym] { font-weight: 700; }
.tc-dot[b-aowz1m08ym] { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--tc-green); margin: 2px auto 0; }

.tc-day-detail[b-aowz1m08ym] { margin-top: 0; }
.tc-day-header[b-aowz1m08ym] { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tc-day-header h6[b-aowz1m08ym] { margin: 0; font-weight: 600; text-transform: capitalize; }
.tc-sheet-close[b-aowz1m08ym] { margin-left: auto; background: none; border: none; font-size: 1.6rem; line-height: 1; color: #888; cursor: pointer; padding: 0 4px; }
.tc-locked-badge[b-aowz1m08ym] { font-size: 0.75rem; background: #fff3cd; color: #856404; border: 1px solid #ffc107; border-radius: 12px; padding: 2px 8px; white-space: nowrap; }
.tc-entry-row[b-aowz1m08ym] { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #f8f9fa; border-radius: 8px; margin-bottom: 8px; }
.tc-entry-row span[b-aowz1m08ym] { flex: 1; font-size: 0.9rem; }
.tc-btn-edit[b-aowz1m08ym] { background: none; border: 1px solid var(--tc-blue); color: var(--tc-blue); border-radius: 6px; padding: 3px 10px; font-size: 0.8rem; cursor: pointer; white-space: nowrap; }
.tc-btn-delete[b-aowz1m08ym] { background: none; border: none; color: #dc3545; font-size: 1.2rem; cursor: pointer; padding: 0 4px; line-height: 1; }
.tc-entry-confirm[b-aowz1m08ym] { background: #fff3f3; border: 1px solid #f5c2c7; flex-wrap: wrap; gap: 8px; }
.tc-confirm-text[b-aowz1m08ym] { flex: 1 1 100%; font-size: 0.85rem; color: #842029; }
.tc-btn-confirm-yes[b-aowz1m08ym] { background: #dc3545; color: white; border: none; border-radius: 6px; padding: 5px 14px; font-size: 0.85rem; cursor: pointer; white-space: nowrap; }
.tc-btn-confirm-no[b-aowz1m08ym] { background: none; border: 1px solid #adb5bd; color: #495057; border-radius: 6px; padding: 5px 14px; font-size: 0.85rem; cursor: pointer; white-space: nowrap; }
.tc-btn-add[b-aowz1m08ym] { display: block; width: 100%; margin-top: 4px; padding: 10px; border: 2px dashed #ccc; border-radius: 8px; background: none; color: var(--tc-blue); cursor: pointer; font-size: 0.9rem; }

.tc-overlay[b-aowz1m08ym] { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1000; }
.tc-sheet[b-aowz1m08ym] { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-radius: 16px 16px 0 0; padding: 24px 20px 36px; z-index: 1001; transform: translateY(100%); transition: transform 0.28s ease; max-width: 480px; margin: 0 auto; }
.tc-sheet.open[b-aowz1m08ym] { transform: translateY(0); }
.tc-sheet h5[b-aowz1m08ym] { margin-bottom: 16px; font-weight: 600; }
.tc-field-row[b-aowz1m08ym] { display: flex; gap: 12px; margin-bottom: 14px; }
.tc-field-row > div[b-aowz1m08ym] { flex: 1; }
.tc-sheet label[b-aowz1m08ym] { display: block; font-size: 0.8rem; color: #555; margin-bottom: 4px; }
.tc-sheet[b-aowz1m08ym]  .form-control, .tc-sheet[b-aowz1m08ym]  .form-select { border-radius: 8px; }
.tc-btn-save[b-aowz1m08ym] { width: 100%; padding: 12px; background: var(--tc-green); color: white; border: none; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-bottom: 10px; }
.tc-btn-cancel[b-aowz1m08ym] { width: 100%; padding: 10px; background: none; border: 1px solid #ccc; border-radius: 10px; font-size: 0.95rem; cursor: pointer; }

@media (max-width: 360px) {
    .tc-card[b-aowz1m08ym] { padding: 8px; }
    .tc-cal-day[b-aowz1m08ym] { min-height: 28px; padding: 4px 2px 2px; }
}

/* Røde dager — søndager + helligdager (faste + bevegelige) */
.tc-cal-day.red-day[b-aowz1m08ym] { color: var(--bs-danger); font-weight: 700; }
.tc-cal-day.red-day.selected[b-aowz1m08ym] { background: var(--bs-danger); color: #fff; }

/* Helligdagsnavn i bottom-sheet-modalen */
.tc-red-day-label[b-aowz1m08ym] {
    font-size: 0.85rem;
    color: var(--bs-danger);
    margin-top: -8px;
    margin-bottom: 14px;
}

/* ✎-markør i kalender-celle (admin-endret dag) */
.tc-cal-day .tc-edit-mark[b-aowz1m08ym] {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.7rem;
    color: #d97706; /* amber-600 */
    line-height: 1;
    pointer-events: none;
}
.tc-cal-day.selected .tc-edit-mark[b-aowz1m08ym] { color: #fff; }

/* ⟳-markør i kalender-celle (dag med usynkronisert endring) */
.tc-cal-day .pending-marker[b-aowz1m08ym] {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.7em;
    color: #b58900;
    line-height: 1;
    pointer-events: none;
}
.tc-cal-day.selected .pending-marker[b-aowz1m08ym] { color: #fff; }

/* Stack-layout for entry-rader så sub-linjer ligger under hovedlinjen */
.tc-entry-stack[b-aowz1m08ym] { flex-direction: column; align-items: stretch; gap: 4px; }
.tc-entry-stack .tc-entry-main[b-aowz1m08ym] { display: flex; align-items: center; gap: 8px; }
.tc-entry-stack .tc-entry-main span[b-aowz1m08ym] { flex: 1; }

/* Description-sub-linje i day-detail */
.tc-description-line[b-aowz1m08ym] {
    font-size: 0.8rem;
    color: #495057;
    font-style: italic;
    padding-left: 2px;
}

/* Admin-audit-sub-linje i day-detail */
.tc-audit-line[b-aowz1m08ym] {
    font-size: 0.78rem;
    color: #6c757d;
    padding-left: 2px;
}

/* Required-hint under beskrivelses-textarea i bottom-sheet */
.tc-required-hint[b-aowz1m08ym] {
    display: block;
    font-size: 0.75rem;
    color: #d97706;
    margin-top: 4px;
}

/* Klient-validerings-feilmelding i bottom-sheet */
.tc-save-error[b-aowz1m08ym] {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* Helligdag-toast — fast posisjon, over sheet-laget, klikk for å lukke */
.tc-holiday-toast[b-aowz1m08ym] {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 1100;
    max-width: 90%;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    cursor: pointer;
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-pku75iqpo2] {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Plass slik at innholdet ikke skjules bak den faste statuslinjen */
.container-narrow[b-pku75iqpo2] {
    padding-bottom: 3rem;
}

.status-bar[b-pku75iqpo2] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0.4rem 1rem;
    background-color: #f7f7f7;
    border-top: 1px solid #d6d5d5;
    font-size: 0.8125rem;
    color: #495057;
}

.status-bar-inner[b-pku75iqpo2] {
    display: block;
    max-width: 480px;
    margin: 0 auto;
}

main[b-pku75iqpo2] {
    flex: 1;
}

.sidebar[b-pku75iqpo2] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-pku75iqpo2] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-pku75iqpo2]  a, .top-row[b-pku75iqpo2]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-pku75iqpo2]  a:hover, .top-row[b-pku75iqpo2]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-pku75iqpo2]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-pku75iqpo2] {
        justify-content: space-between;
    }

    .top-row[b-pku75iqpo2]  a, .top-row[b-pku75iqpo2]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-pku75iqpo2] {
        flex-direction: row;
    }

    .sidebar[b-pku75iqpo2] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-pku75iqpo2] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-pku75iqpo2]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-pku75iqpo2], article[b-pku75iqpo2] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Pages/DocPage.razor.rz.scp.css */
.doc[b-mh0aqr8tt6] {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 4px 80px;
}

.doc section[b-mh0aqr8tt6] {
    margin-bottom: 1.5rem;
}

.doc h2[b-mh0aqr8tt6] {
    margin-top: 1.25rem;
    scroll-margin-top: 1rem;
}

.doc-toc[b-mh0aqr8tt6] {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 12px 12px 28px;
    margin-bottom: 1.5rem;
}

.doc-toc ul[b-mh0aqr8tt6] {
    margin: 0;
    padding-left: 1rem;
}

.doc-toc li[b-mh0aqr8tt6] {
    margin: 4px 0;
    font-size: 0.9rem;
}

.doc ol[b-mh0aqr8tt6],
.doc ul[b-mh0aqr8tt6] {
    padding-left: 1.25rem;
}

.doc li[b-mh0aqr8tt6] {
    margin: 4px 0;
}
