:root {
    --color-primary: #1e3a5f;
    --color-primary-light: #2d5a8e;
    --color-accent: #c9a227;
    --color-bg: #f4f6f9;
    --color-surface: #ffffff;
    --color-text: #1a2332;
    --color-muted: #64748b;
    --color-border: #e2e8f0;
    --color-success: #15803d;
    --color-warning: #b45309;
    --color-danger: #b91c1c;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}

a { color: var(--color-primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.topbar {
    background: var(--color-primary);
    color: #fff;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.topbar__menu {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 8px;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.15rem;
    cursor: pointer;
}

.topbar__lead {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.topbar__user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    opacity: 0.9;
}

.topbar__brand { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; }
.topbar__meta { font-size: 0.875rem; opacity: 0.9; }

.shell { display: flex; flex: 1; min-height: 0; }

.sidebar {
    width: 240px;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    padding: 1rem 0;
}

.sidebar__section {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    font-weight: 600;
}

.sidebar__link {
    display: block;
    padding: 0.65rem 1.25rem;
    color: var(--color-text);
    border-left: 3px solid transparent;
}

.sidebar__link:hover,
.sidebar__link--active {
    background: #eef2f7;
    border-left-color: var(--color-accent);
    text-decoration: none;
}

.content { flex: 1; padding: 1.5rem; overflow: auto; }

.page-header { margin-bottom: 1.5rem; }
.page-header h1 { margin: 0 0 0.25rem; font-size: 1.5rem; }
.page-header p { margin: 0; color: var(--color-muted); }

.grid { display: grid; gap: 1rem; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.stat-card__label { font-size: 0.8rem; color: var(--color-muted); margin-bottom: 0.35rem; }
.stat-card__value { font-size: 1.75rem; font-weight: 700; color: var(--color-primary); }

.stat-card--filter {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.stat-card--filter:hover {
    text-decoration: none;
    border-color: var(--color-accent);
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.12);
    transform: translateY(-1px);
}

.stat-card--filter.stat-card--active {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.12);
}

.stat-card--warning .stat-card__value { color: var(--color-warning); }
.stat-card--info .stat-card__value { color: #1d4ed8; }
.stat-card--success .stat-card__value { color: var(--color-success); }
.stat-card--danger .stat-card__value { color: var(--color-danger); }

.sicil-doc-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.sicil-doc-filters__field {
    margin: 0;
    flex: 1 1 180px;
    min-width: 0;
}

.leave-review-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
}

.leave-review-meta span {
    color: var(--color-muted);
}

.leave-review-note {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--color-text);
}

.leave-review-note--muted {
    color: var(--color-muted);
}

.form-error {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--color-danger);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: #dcfce7; color: var(--color-success); }
.badge-warning { background: #fef3c7; color: var(--color-warning); }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-neutral { background: #f1f5f9; color: var(--color-muted); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-light); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 50%, #1a2332 100%);
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.auth-card h1 { margin: 0 0 0.25rem; font-size: 1.4rem; }
.auth-card p { margin: 0 0 1.5rem; color: var(--color-muted); font-size: 0.9rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.875rem; font-weight: 600; }
.form-control {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font: inherit;
}

.form-control:focus {
    outline: 2px solid rgba(45, 90, 142, 0.35);
    border-color: var(--color-primary-light);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-error { background: #fef2f2; color: var(--color-danger); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--color-success); border: 1px solid #bbf7d0; }

.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.table th { color: var(--color-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }

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

.badge-danger { background: #fee2e2; color: var(--color-danger); }

.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover { background: #991b1b; }

.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table td { vertical-align: top; }

.table-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
    min-width: 8.5rem;
}

.table-actions--inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
}

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    line-height: 1.25;
    white-space: nowrap;
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover { background: #e5e7eb; }

.btn-outline {
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    background: #f8fafc;
    text-decoration: none;
}

.text-muted { color: var(--color-muted); }

/* ——— Personel profil & sicil ——— */
.profile-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 55%, #1a4d7a 100%);
    color: #fff;
    border-radius: calc(var(--radius) + 4px);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.profile-hero__main {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.profile-hero__avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.profile-hero__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.profile-hero__name {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    line-height: 1.2;
}

.profile-hero__meta {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    opacity: 0.9;
    word-break: break-word;
}

.profile-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}

.profile-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    text-align: center;
}

.profile-stat__value {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}

.profile-stat__label {
    display: block;
    font-size: 0.72rem;
    opacity: 0.85;
    margin-top: 0.15rem;
}

.profile-hero__alert {
    margin-top: 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.profile-hero__alert--danger { background: rgba(185, 28, 28, 0.25); }
.profile-hero__alert--warning { background: rgba(180, 83, 9, 0.28); }

.profile-tabs {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    padding: 0.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    width: fit-content;
    max-width: 100%;
}

.profile-tabs__link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.profile-tabs__link:hover {
    color: var(--color-text);
    text-decoration: none;
    background: #f8fafc;
}

.profile-tabs__link--active {
    background: var(--color-primary);
    color: #fff;
}

.profile-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.profile-dossier--grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.profile-dossier--stack {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.dossier-tabs {
    display: flex;
    gap: 0.35rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 1rem;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
}

.dossier-tabs__btn {
    flex: 0 0 auto;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-muted);
    border-radius: 10px;
    padding: 0.55rem 0.95rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.dossier-tabs__btn:hover {
    color: var(--color-text);
    background: #f8fafc;
}

.dossier-tabs__btn.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.dossier-panels {
    min-height: 200px;
}

.dossier-panel[hidden] {
    display: none !important;
}

.profile-dossier {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.profile-dossier__wide {
    grid-column: 1 / -1;
}

.field-list {
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.field-row {
    display: grid;
    grid-template-columns: minmax(120px, 38%) 1fr;
    gap: 0.65rem;
    align-items: start;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.field-row:last-child {
    border-bottom: none;
}

.field-row__label {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-muted);
    font-weight: 600;
}

.field-row__value {
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.92rem;
    word-break: break-word;
}

.field-row__edit,
.panel-head .field-row__edit {
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-primary);
    border-radius: 6px;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.field-row__edit:hover {
    background: #f8fafc;
}

.table--compact th,
.table--compact td {
    padding: 0.55rem 0.65rem;
    font-size: 0.85rem;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 1rem;
    align-items: start;
}

.profile-sidebar {
    display: grid;
    gap: 1rem;
}

.profile-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.1rem 1.2rem;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.panel-head__title {
    margin: 0;
    font-size: 1.05rem;
}

.panel-head__desc {
    margin: 0.2rem 0 0;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.panel-head__link {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.form-sections .form-section {
    border: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.form-sections .form-section legend {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
    padding: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.form-grid--full { grid-column: 1 / -1; }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.assignment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.assignment-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    background: #f8fafc;
}

.assignment-card__title {
    font-weight: 600;
    font-size: 0.92rem;
}

.assignment-card__role {
    color: var(--color-muted);
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.mini-doc + .mini-doc { margin-top: 0.85rem; }

.mini-doc__head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.4rem;
}

.mini-doc__title {
    font-size: 0.88rem;
    font-weight: 600;
}

.mini-doc__meta {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
}

.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar--lg { height: 8px; }

.progress-bar__fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2d5a8e, #3b82f6);
    border-radius: inherit;
}

.empty-state--compact {
    padding: 1rem;
    font-size: 0.9rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.quick-action-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.quick-action-card__summary {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem 1rem;
    cursor: pointer;
}

.quick-action-card__summary::-webkit-details-marker { display: none; }

.quick-action-card__summary small {
    display: block;
    color: var(--color-muted);
    font-size: 0.78rem;
    margin-top: 0.1rem;
}

.quick-action-card__icon { font-size: 1.35rem; }

.quick-action-card__body {
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--color-border);
}

.quick-action-card[open] .quick-action-card__summary {
    background: #f8fafc;
}

.doc-list {
    display: grid;
    gap: 0.85rem;
}

.doc-card {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1rem;
    background: #fcfdff;
}

.doc-card__header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.doc-card__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.doc-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.doc-card__meta {
    color: var(--color-muted);
    font-size: 0.82rem;
    margin: 0.5rem 0;
}

.doc-card__progress {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-top: 0.3rem;
}

.doc-card__file {
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.signature-card {
    margin: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.65rem;
    background: #fff;
}

.signature-card figcaption {
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
    color: var(--color-muted);
}

.signature-card figcaption strong {
    display: block;
    color: var(--color-text);
}

.signature-card img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.signature-card time {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--color-muted);
}

@media (max-width: 960px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .profile-tabs {
        width: 100%;
        border-radius: 12px;
    }

    .profile-tabs__link {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .app-admin .topbar__menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .app-admin .topbar__user {
        display: none;
    }

    .app-admin .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1100;
        width: min(86vw, 290px);
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        box-shadow: 8px 0 30px rgba(15, 23, 42, 0.18);
    }

    .app-admin.admin-sidebar-open .sidebar {
        transform: translateX(0);
    }

    .app-admin.admin-sidebar-open .shell::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1050;
    }

    .app-admin .content {
        padding: 1rem;
    }
}

@media (max-width: 560px) {
    .profile-hero__stats {
        grid-template-columns: 1fr;
    }

    .profile-hero__main {
        align-items: flex-start;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

.project-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 16rem;
}

.project-chip {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: #f3f4f6;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1.35;
}

.personnel-table .personnel-contact__muted {
    color: var(--color-muted);
    font-size: 0.8rem;
}

.milad-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.milad-modal[hidden] {
    display: none;
}

.milad-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.milad-modal__dialog {
    position: relative;
    width: min(100%, 440px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.milad-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.milad-modal__title {
    margin: 0;
    font-size: 1.05rem;
}

.milad-modal__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0.15rem 0.35rem;
}

.milad-modal__close:hover {
    color: var(--color-text);
}

.milad-modal__body {
    padding: 1rem 1.25rem 0.25rem;
}

.milad-modal__meta {
    margin: 0 0 1rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.milad-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.25rem 1.25rem;
}

body.milad-modal-open {
    overflow: hidden;
}

.personnel-search {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.personnel-search__field {
    flex: 1 1 280px;
    margin-bottom: 0;
    min-width: 0;
}

@media (max-width: 768px) {
    .shell { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--color-border); }
}

/* Vardiya takvimi — sürükle-bırak */
.shift-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.75rem;
    min-height: 320px;
}

@media (max-width: 1100px) {
    .shift-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .shift-calendar { grid-template-columns: 1fr; }
}

.shift-calendar__day {
    background: var(--color-surface, #f8fafc);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.shift-calendar__day--today {
    border-color: var(--color-primary-light, #2d5a8e);
    box-shadow: 0 0 0 1px rgba(45, 90, 142, 0.2);
}

.shift-calendar__header {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.shift-calendar__weekday { font-weight: 600; }
.shift-calendar__date { color: var(--color-muted); }

.shift-calendar__dropzone {
    flex: 1;
    padding: 0.5rem;
    min-height: 120px;
    transition: background 0.15s;
}

.shift-calendar__dropzone--over {
    background: rgba(45, 90, 142, 0.08);
    outline: 2px dashed var(--color-primary-light, #2d5a8e);
    outline-offset: -4px;
    border-radius: 0 0 10px 10px;
}

.shift-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent, #c9a227);
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.5rem;
    cursor: grab;
    font-size: 0.8rem;
}

.shift-card--dragging { opacity: 0.5; cursor: grabbing; }
.shift-card__name { font-weight: 600; margin-bottom: 0.15rem; }
.shift-card__meta { color: var(--color-muted); font-size: 0.75rem; }
.shift-card__time { margin-top: 0.25rem; font-weight: 600; color: var(--color-primary, #1e3a5f); }
.shift-card__note { margin-top: 0.2rem; font-style: italic; color: var(--color-muted); font-size: 0.72rem; }

.shift-card__delete {
    position: absolute;
    top: 2px;
    right: 2px;
    margin: 0;
}

.shift-card__delete button {
    background: none;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 4px;
}

.shift-card__delete button:hover { color: var(--color-danger); }

.shift-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.shift-toast--ok { background: #f0fdf4; color: var(--color-success); border: 1px solid #bbf7d0; }
.shift-toast--err { background: #fef2f2; color: var(--color-danger); border: 1px solid #fecaca; }

/* CEO salt okunur mod */
.readonly-banner {
    background: linear-gradient(90deg, #1e3a5f, #2d5a8e);
    color: #fff;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    position: sticky;
    top: 0;
    z-index: 200;
}

.readonly-banner__icon { margin-right: 0.35rem; }

.badge-info { background: #dbeafe; color: #1d4ed8; }

.read-only-admin form[method="POST"]:not(.allow-readonly) button[type="submit"],
.read-only-admin form[method="post"]:not(.allow-readonly) button[type="submit"] {
    display: none !important;
}

.read-only-admin .shift-card { cursor: not-allowed; opacity: 0.85; }
.read-only-admin .shift-card[draggable="true"] { pointer-events: none; }

.payroll-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.payroll-summary__card {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border);
    border-radius: var(--radius, 10px);
    padding: 0.75rem 1rem;
}

.payroll-summary__label {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.payroll-summary__value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }

.payroll-hours-hint {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

.payroll-slip-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    background: var(--color-surface);
}

.payroll-slip-card__summary {
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    list-style: none;
}

.payroll-slip-card__summary::-webkit-details-marker { display: none; }

.payroll-slip-card__body {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.payroll-slip-card__label {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-transform: uppercase;
}

.payroll-adjustment-list {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

.btn-warning {
    background: var(--color-warning);
    color: #1e293b;
}

.pwa-banner {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #1e3a5f, #2d5a8e);
    color: #fff;
    padding: 1rem 1rem 1rem 0.85rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: pwa-slide-in 0.35s ease-out;
}

@keyframes pwa-slide-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.pwa-banner[hidden] {
    display: none !important;
}

.pwa-banner__close {
    position: absolute;
    top: 0.35rem;
    right: 0.45rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
}

.pwa-banner__icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.pwa-banner__body {
    flex: 1;
    min-width: 180px;
    padding-right: 1.5rem;
}

.pwa-banner__body strong {
    display: block;
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
}

.pwa-banner__body > span {
    display: block;
    opacity: 0.92;
    font-size: 0.84rem;
    line-height: 1.45;
}

.pwa-banner__steps {
    margin: 0.55rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
}

.pwa-ios-share {
    display: inline-block;
    font-weight: 700;
}

.pwa-banner__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.pwa-banner__actions .btn-primary {
    background: #c9a227;
    border-color: #c9a227;
    color: #1a2332;
    font-weight: 600;
}

.pwa-banner__actions .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
    .pwa-banner {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        z-index: 1000;
        margin-bottom: 0;
        padding-top: 1.1rem;
    }

    .content:has(#pwa-install-banner:not([hidden])) {
        padding-bottom: 5.5rem;
    }
}

/* Konum izni banner — nöbet / devriye formları */
.geo-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: #fff8e6;
    border: 1px solid #e6c200;
    border-radius: 8px;
    color: #1a2332;
}

.geo-banner[hidden] {
    display: none !important;
}

.geo-banner__icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.geo-banner__body {
    flex: 1;
    min-width: 160px;
}

.geo-banner__body strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.geo-banner__body > span {
    display: block;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #4a5568;
}

.geo-banner__steps {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #4a5568;
}

.geo-banner__actions {
    display: flex;
    align-items: center;
    width: 100%;
}

.geo-banner--geofence {
    background: #fdecea;
    border-color: #e57373;
}

.geo-banner__actions .btn-primary {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff;
}

/* Push bildirim izni banner — PWA dahil her modda görünür */
.push-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.35);
    position: relative;
}

.push-banner[hidden] {
    display: none !important;
}

.push-banner__close {
    position: absolute;
    top: 0.5rem;
    right: 0.65rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
}

.push-banner__icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.push-banner__body {
    flex: 1;
    min-width: 180px;
    padding-right: 1.5rem;
}

.push-banner__body strong {
    display: block;
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
}

.push-banner__body > span {
    display: block;
    opacity: 0.92;
    font-size: 0.84rem;
    line-height: 1.45;
}

.push-banner__steps {
    margin: 0.55rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
}

.push-banner__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.push-banner__actions .btn-primary {
    background: #c9a227;
    border-color: #c9a227;
    color: #1a2332;
    font-weight: 600;
}

.push-banner__actions .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
    .push-banner {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
        z-index: 1001;
        margin-bottom: 0;
    }

    body.has-bottom-nav .push-banner {
        bottom: calc(4.25rem + env(safe-area-inset-bottom));
    }

    body:has(#milad-push-banner:not([hidden])) .content {
        padding-bottom: 7rem;
    }

    body.has-bottom-nav:has(#milad-push-banner:not([hidden])) .content {
        padding-bottom: 10rem;
    }
}

.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        background: var(--color-surface, #fff);
        border-top: 1px solid var(--color-border, #e2e8f0);
        padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom));
        justify-content: space-around;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    }

    .bottom-nav__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
        font-size: 0.7rem;
        color: var(--color-muted);
        text-decoration: none;
        padding: 0.35rem 0.5rem;
        min-width: 3.5rem;
    }

    .bottom-nav__link--active {
        color: var(--color-primary, #1e3a5f);
        font-weight: 600;
    }

    .bottom-nav__icon {
        font-size: 1.15rem;
        line-height: 1;
    }

    body.has-bottom-nav .content {
        padding-bottom: 4.5rem;
    }

    body.has-bottom-nav .sidebar {
        display: none;
    }

    body.has-bottom-nav .shell {
        grid-template-columns: 1fr;
    }

    .bottom-nav__link--menu {
        border: none;
        background: none;
        cursor: pointer;
        font: inherit;
    }

    .mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 1100;
    }

    .mobile-menu[hidden] {
        display: none;
    }

    .mobile-menu__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
    }

    .mobile-menu__sheet {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: min(85vh, 640px);
        background: var(--color-surface, #fff);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        padding-bottom: env(safe-area-inset-bottom);
        animation: mobile-menu-slide-up 0.22s ease-out;
    }

    @keyframes mobile-menu-slide-up {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .mobile-menu__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.1rem 0.5rem;
        border-bottom: 1px solid var(--color-border, #e2e8f0);
        flex-shrink: 0;
    }

    .mobile-menu__title {
        margin: 0;
        font-size: 1.05rem;
    }

    .mobile-menu__close {
        border: none;
        background: none;
        font-size: 1.75rem;
        line-height: 1;
        cursor: pointer;
        color: var(--color-muted);
        padding: 0.15rem 0.35rem;
    }

    .mobile-menu__nav {
        overflow-y: auto;
        padding: 0.75rem 0.85rem 1rem;
    }

    .mobile-menu__nav .sidebar__section {
        margin-top: 0.75rem;
    }

    .mobile-menu__nav .sidebar__link {
        display: block;
        padding: 0.7rem 0.85rem;
        border-radius: 8px;
        margin-bottom: 0.15rem;
    }

    body.personel-menu-open {
        overflow: hidden;
    }
}

.sicil-template-form {
    max-width: 840px;
}

.sicil-template-form__pages-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0 0.5rem;
}

.sicil-template-form__pages-header h3 {
    margin: 0;
    font-size: 1rem;
}

.sicil-template-form__page-count {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.sicil-template-form__hint {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.sicil-template-form__page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
