/* Ledighetsansökan v10 — feature-specific V2 styles */
@import url('../../../Shared/css/layout-blueprint.css');

:focus-visible { outline: 2px solid var(--vklass-focus, #1976d2); outline-offset: 2px; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 2px; }

.tab-content { display: none; }
.tab-content.is-active { display: block; }
.sub-tab-content { display: none; }
.sub-tab-content.is-active { display: block; }
.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.vk-layout--app-main, .lav10-index-body { min-height: 100vh; min-height: 100dvh; }
.vk-layout[inert] { pointer-events: none; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 10000; background: var(--cl-hard, #26418f); color: var(--white); padding: 8px 12px; border-radius: 4px; }
.skip-link:focus { left: 8px; }

.lav10-page { max-width: 1180px; margin: 0 auto; padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
.lav10-page-header { margin-bottom: 18px; }
.lav10-eyebrow { margin: 0 0 4px; color: var(--gray-dark); font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; }
.lav10-page h1, .lav10-index h1 { margin: 0 0 8px; font-size: 2rem; font-weight: 400; color: var(--gray-darker); }
.lav10-lead { color: var(--gray-dark); margin: 0 0 16px; max-width: 78ch; }

.lav10-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--cl-super-soft, #dbe1f5); border-left: 4px solid var(--cl-hard, #26418f); padding: 13px 16px; margin: 0 0 16px; }
.lav10-summary h2 { margin: 0; font-size: 1rem; font-weight: 500; }
.lav10-summary p { margin: 0; }
.lav10-summary-help { width: 24px; height: 24px; border-radius: 50%; background: var(--cl-hard, #26418f); color: var(--white); display: inline-grid; place-items: center; font-family: 'Material Icons'; font-size: 16px; }

.lav10-shortcuts__bar { min-height: 48px; background: #26418f; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-weight: 500; }
.lav10-shortcuts__bar--secondary { margin-bottom: 13px; background: #1b2f6f; }
.lav10-link-button { background: transparent; border: 0; color: #fff; text-decoration: underline; cursor: pointer; }
.lav10-scope { margin: 0 0 12px; padding: 10px 13px; background: var(--white); border: 1px solid var(--gray-lighter); }

.lav10-filter { background: var(--white); border: 1px solid var(--gray-lighter); margin-bottom: 14px; position: relative; }
.lav10-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 16px; }
.lav10-filter-actions { display: flex; gap: 10px; margin-top: 16px; }
.lav10-status-line { margin: 10px 0; color: var(--gray-dark); }
.lav10-error { color: #b00020; margin: 6px 0 0; }
.lav10-help, .lav10-counter, .lav10-muted { color: var(--gray-dark); font-size: .875rem; }

.lav10-table-wrap { margin-top: 12px; }
.lav10-table table { width: 100%; border-collapse: separate; border-spacing: 0 3px; }
.lav10-table th, .lav10-admin-table th { text-align: left; color: var(--gray-darker); font-size: .75rem; font-weight: 500; border-bottom: 2px solid var(--gray-lighter); padding: 10px 13px; background: var(--white); }
.lav10-table td { padding: 8px 13px; vertical-align: middle; }
.lav10-table .vk-table__item-row td { background: #dbe1f5; }
.lav10-table .vk-table__item-expansion td { background: var(--white); border: 1px solid var(--gray-lighter); border-top: 0; padding: 13px; }
.lav10-person { display: flex; align-items: center; gap: 9px; }
.lav10-person__name { display: block; color: var(--gray-darker); }
.lav10-person__meta, .lav10-row-meta { display: block; color: var(--gray-dark); font-size: .8125rem; }
.lav10-date-link { color: var(--gray-darker) !important; text-decoration: underline; background: transparent; border: 0; padding: 0; font: inherit; cursor: pointer; }
.lav10-expand { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--cl-hard); cursor: pointer; }
.lav10-expansion-grid { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 12px; }
.lav10-expansion-grid dt { color: var(--gray-dark); font-size: .75rem; text-transform: uppercase; }
.lav10-expansion-grid dd { margin: 0; }
.lav10-expansion-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.lav10-empty { padding: 24px; color: var(--gray-dark); }

.vk-badge { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 15px; border-radius: 15px; color: #fff; font-size: 12px; text-transform: uppercase; }
.vk-badge.positive { background: #2e7d32; }
.vk-badge.negative { background: #b00020; }
.vk-badge.pending { background: #b45309; }
.vk-badge.neutral { background: #767676; }
.vk-badge .material-icons { font-size: 15px; }

.lav10-fab { position: fixed; right: 32px; bottom: calc(32px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; border: 0; background: #2e7d32; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.28); display: grid; place-items: center; cursor: pointer; z-index: 8; }

.vk-dialog {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.vk-dialog.vk-dialog--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.mdc-dialog__scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.mdc-dialog__container {
    position: relative;
    z-index: 1;
}
.mdc-dialog__surface {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.mdc-dialog__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
    margin-bottom: 16px;
}
.mdc-dialog__content {
    padding: 0 24px;
}
.mdc-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 13px;
    padding: 16px 24px 24px;
}
.lav10-dialog { z-index: 10000; }
.lav10-dialog-surface { width: min(760px, calc(100vw - 32px)); max-height: 100dvh; display: flex; flex-direction: column; }
.lav10-dialog-content { overflow-y: auto; min-height: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.lav10-dialog-actions { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.lav10-icon-button { border: 0; background: transparent; cursor: pointer; border-radius: 50%; width: 36px; height: 36px; }
.lav10-dialog-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: var(--gray-lightest); padding: 12px; margin: 0 0 16px; }
.lav10-dialog-overview dt { color: var(--gray-dark); font-size: .75rem; text-transform: uppercase; }
.lav10-dialog-overview dd { margin: 0; }
.lav10-field { margin: 14px 0; display: grid; gap: 4px; }
.lav10-field label { font-weight: 500; }
.lav10-field input, .lav10-field select, .lav10-field textarea, .lav10-filter input, .lav10-filter select { min-height: 36px; border: 1px solid var(--gray-light); border-radius: 4px; padding: 7px 10px; background: var(--white); color: var(--gray-darker); font: inherit; }
.lav10-fieldset { border: 1px solid var(--gray-lighter); padding: 10px 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.lav10-preview { border: 1px solid var(--gray-lighter); border-left: 4px solid var(--cl-hard); padding: 12px; background: var(--white); }
.lav10-preview h3 { margin-top: 0; }
.v2-validation-summary { background: #fff4e5; border-left: 4px solid #ef6c00; padding: 10px 12px; margin-bottom: 12px; }
.lav10-checkbox { display: inline-flex; gap: 8px; align-items: center; }

.lav10-student-card { background: var(--white); border: 1px solid var(--gray-lighter); padding: 16px; margin-bottom: 16px; }
.lav10-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--gray-lighter); margin: 8px 0 16px; }
.lav10-tab { border: 0; background: transparent; padding: 12px 18px; border-bottom: 3px solid transparent; cursor: pointer; }
.lav10-tab.is-active { border-bottom-color: var(--cl-hard); color: var(--cl-hard); font-weight: 500; }
.lav10-admin-table table { width: 100%; border-collapse: collapse; }
.lav10-admin-table td { padding: 10px 13px; border-bottom: 1px solid var(--gray-lighter); }
.lav10-admin .admin-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-submenu-sidebar .admin-submenu-item { color: #26418f; }

.lav10-index { max-width: 1100px; margin: 0 auto; padding: 32px 18px; }
.lav10-index-hero { background: var(--white); border: 1px solid var(--gray-lighter); padding: 28px; margin-bottom: 22px; }
.lav10-role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.lav10-role-card { display: block; padding: 18px; background: var(--white); border: 1px solid var(--gray-lighter); color: var(--gray-darker); text-decoration: none; min-height: 180px; }
.lav10-role-card:hover { background: var(--cl-super-soft); }
.lav10-role-card .material-icons { color: var(--cl-hard); font-size: 34px; }
.mockup-demo { margin: 0 0 24px; background: var(--white); border: 1px solid var(--gray-lighter); padding: 16px; }
.mockup-demo video { width: 100%; border-radius: 4px; }

body.dark-mode .lav10-table .vk-table__item-row td,
body.dark-mode .lav10-summary,
body.dark-mode .lav10-role-card:hover { background: var(--cl-super-soft); }
body.dark-mode .lav10-shortcuts__bar { background: #1f315f; }
body.dark-mode .lav10-shortcuts__bar--secondary { background: #162342; }

@media (max-width: 720px) {
  .lav10-filter-grid, .lav10-expansion-grid, .lav10-dialog-overview { grid-template-columns: 1fr; }
  .lav10-table { overflow-x: auto; display: block; }
  .lav10-admin .admin-card__header { flex-direction: column; }
}
