:root {
    --iadk-primary: #6366f1;
    --sidebar-width: 17.5rem;
    --sidebar-bg: #0b1120;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #fff;
    --sidebar-brand: #818cf8;
}

body {
    min-height: 100vh;
    background-color: #f4f6f9;
}

body.app-body {
    margin: 0;
}

footer {
    margin-top: auto;
}

.stat-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.leave-stat-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 4.5rem;
}

.leave-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
}

.leave-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.leave-stat-card--total {
    background: linear-gradient(135deg, #eef2ff, #fff);
    border: 1px solid #c7d2fe;
}

.leave-stat-card--remaining {
    background: linear-gradient(135deg, #ecfdf5, #fff);
    border: 1px solid #a7f3d0;
}

.leave-stat-card--accent {
    background: linear-gradient(135deg, #fff7ed, #fff);
    border: 1px solid #fed7aa;
}

.employee-dashboard .employee-stat-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.06);
    min-height: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.employee-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.employee-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
}

.employee-stat-card--remaining {
    background: linear-gradient(135deg, #f0fdf4, #fff);
    border: 1px solid #bbf7d0;
}

.employee-period-link {
    color: #2563eb;
}

.employee-profile-dl dt {
    font-weight: 500;
}

.employee-attendance-row {
    gap: 0.75rem;
}

.employee-table thead th {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: #64748b;
}

.leave-request-context {
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.leave-summary-dl .leave-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 1rem;
}

.leave-summary-dl dt {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

.leave-summary-dl dd {
    margin: 0;
    font-size: 0.9rem;
}

.leave-summary-row--total {
    border-top: 2px solid #e2e8f0;
    margin-top: 0.25rem;
    padding-top: 0.65rem;
}

.leave-summary-row--remaining {
    border-bottom: none;
}

.leave-report-document {
    max-width: 52rem;
    margin: 0 auto;
    padding: 2rem;
}

.leave-report-org {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.leave-report-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0.5rem 0;
    letter-spacing: 0.02em;
}

.leave-report-meta {
    font-size: 0.85rem;
    color: #64748b;
}

.leave-report-section {
    margin-bottom: 1.5rem;
}

.leave-report-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.35rem;
    margin-bottom: 0.75rem;
}

.leave-report-table .label {
    width: 40%;
    color: #64748b;
}

.leave-report-balance td {
    padding: 0.35rem 0.5rem;
}

.leave-report-signature {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    min-height: 5.5rem;
}

.leave-report--aktvendim .leave-report-document {
    border: 2px solid #334155;
    padding: 1rem 1.25rem;
}

.leave-report--aktvendim .leave-report-title {
    font-size: 1.15rem;
    margin: 0.25rem 0;
}

.leave-report--aktvendim .leave-report-org,
.leave-report--aktvendim .leave-report-meta {
    font-size: 0.78rem;
    line-height: 1.3;
}

.leave-report--aktvendim .leave-report-section {
    margin-bottom: 0.65rem;
}

.leave-report--aktvendim .leave-report-section-title {
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
    padding-bottom: 0.2rem;
}

.leave-report--aktvendim .leave-report-table td,
.leave-report--aktvendim .leave-report-balance td {
    padding: 0.12rem 0.35rem;
    font-size: 0.82rem;
    line-height: 1.25;
}

.leave-report--aktvendim .leave-report-signature {
    padding: 0.5rem 0.65rem;
    min-height: 3.25rem;
    font-size: 0.82rem;
}

.leave-report--aktvendim .leave-report-footer {
    font-size: 0.75rem;
}

.leave-report--aktvendim .leave-report-balance {
    max-width: 20rem;
}

.avans-signature-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avans-signature-block {
    width: 33%;
    min-width: 9rem;
}

.avans-signature-line {
    border-bottom: 1px solid #334155;
    height: 1.75rem;
    margin-bottom: 0.25rem;
}

.report-body {
    background: #fff;
    padding: 1.5rem;
}

@media print {
    .no-print { display: none !important; }
    .leave-report-document { box-shadow: none !important; }
    .leave-report--aktvendim .leave-report-document {
        border: 1px solid #334155 !important;
        padding: 0.5rem 0.75rem !important;
        max-width: 100% !important;
    }
    .leave-report--aktvendim .leave-report-title {
        font-size: 1rem !important;
    }
    .leave-report--aktvendim .leave-report-section {
        margin-bottom: 0.45rem !important;
        page-break-inside: avoid;
    }
    .leave-report--aktvendim .leave-report-table td,
    .leave-report--aktvendim .leave-report-balance td {
        padding: 0.08rem 0.25rem !important;
        font-size: 0.75rem !important;
    }
    .leave-report--aktvendim .leave-report-signature {
        padding: 0.35rem 0.5rem !important;
        min-height: 2.75rem !important;
    }
    .leave-report--aktvendim .leave-report-compact-row > [class*="col-"],
    .leave-report--aktvendim .leave-report-bottom-row > [class*="col-"] {
        flex: 0 0 auto;
        width: 50%;
    }
    .leave-report--aktvendim .leave-report-bottom-row > .col-md-5 {
        width: 42%;
    }
    .leave-report--aktvendim .leave-report-bottom-row > .col-md-7 {
        width: 58%;
    }
    .report-body {
        padding: 0.35rem !important;
    }
    @page {
        margin: 10mm;
        size: A4;
    }
    body { background: #fff !important; }
}

.page-header {
    margin-bottom: 1.5rem;
}

.table-actions .btn {
    margin-right: 0.25rem;
}

.badge-status {
    font-size: 0.85rem;
}

.card-section {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.module-page {
    padding: 0;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(13, 110, 253, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(30, 41, 59, 0.5) 0%, transparent 50%),
        linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
}

.login-card-split {
    width: 400px;
    max-width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.login-card-header {
    background: linear-gradient(145deg, #1e293b 0%, #151829 100%);
    padding: 32px 28px 28px;
    text-align: center;
    color: #fff;
    position: relative;
}

.login-brand-box {
    display: inline-flex;
    justify-content: center;
    margin: 0 auto 18px;
    padding: 12px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.login-brand-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.login-brand-as {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
}

.login-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
}

.login-brand-text-block {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.login-brand-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.05rem;
}

.login-brand-tagline {
    color: #64748b;
    font-size: 0.68rem;
    margin-top: 2px;
}

.login-card-company {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.login-card-subtitle {
    margin: 0;
    font-size: 0.88rem;
    color: #94a3b8;
}

.login-card-body {
    padding: 28px;
    background: #fff;
}

.login-form .login-field {
    margin-bottom: 1.15rem;
}

.login-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.82rem;
    color: #1e293b;
}

.login-input {
    display: block;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 0.95rem;
}

.login-input:focus {
    outline: none;
    border-color: #0d6efd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.14);
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.35rem;
}

.login-checkbox {
    width: 17px;
    height: 17px;
    accent-color: #0d6efd;
}

.login-remember-label {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

.login-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    font-weight: 650;
    font-size: 0.95rem;
    cursor: pointer;
}

.faza-pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.faza-item {
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    min-height: 110px;
}

.faza-item.faza-aktuale {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
    background: #f8fbff;
}

.faza-item.faza-perfunduar {
    border-color: #198754;
    background: #f6fff9;
}

.faza-item.faza-ne-pritje {
    opacity: 0.85;
}

.procurement-workflow-steps .workflow-step {
    flex: 1 1 8rem;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    min-width: 7rem;
}

.workflow-step-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #e9ecef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.workflow-step-label {
    font-size: 0.75rem;
    line-height: 1.2;
}

.workflow-step--done {
    border-color: #198754;
    background: #f6fff9;
}

.workflow-step--done .workflow-step-num {
    background: #198754;
    color: #fff;
}

.workflow-step--active {
    border-color: #0d6efd;
    background: #eef4ff;
}

.workflow-step--active .workflow-step-num {
    background: #0d6efd;
    color: #fff;
}

.workflow-step--pending {
    opacity: 0.75;
}

.workflow-step--danger {
    border-color: #dc3545;
    background: #fff5f5;
}

.workflow-step--danger .workflow-step-num {
    background: #dc3545;
    color: #fff;
}

.blerje-workflow-print .workflow-step {
    flex: 1 1 7rem;
    min-width: 6rem;
}

.blerje-hapi-aktual {
    border-left: 4px solid #0d6efd;
}

@media print {
    .blerje-workflow-print .workflow-step--active {
        border-width: 2px;
        font-weight: 600;
    }

    .blerje-hapat-table .table-primary {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.faza-numri {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faza-aktuale .faza-numri {
    background: #0d6efd;
    color: #fff;
}

.faza-perfunduar .faza-numri {
    background: #198754;
    color: #fff;
}

.faza-perfunduar .faza-numri {
    background: #198754;
    color: #fff;
}

.faza-emri {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    min-height: 2.6rem;
}

.projekt-te-dhenat th,
.projekt-te-dhenat td {
    vertical-align: middle;
}

.projekt-form-header {
    background: #f8f9fa;
}

/* ---- App shell & sidebar (Worksuite style) ---- */

.app-shell {
    min-height: 100vh;
    background: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.06) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.05) 0, transparent 45%);
}

.app-layout-row {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.sidebar-panel {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    color: var(--sidebar-text);
    background-color: var(--sidebar-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.18), transparent),
        linear-gradient(180deg, #0f172a 0%, #020617 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 4px 0 32px -12px rgba(0, 0, 0, 0.45);
    z-index: 1040;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.25rem;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    min-width: 0;
}

.sidebar-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
    flex-shrink: 0;
}

.sidebar-brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-close,
.sidebar-open {
    border: none;
    background: transparent;
    color: inherit;
    padding: 0.35rem;
    border-radius: 0.5rem;
    line-height: 0;
}

.sidebar-close {
    color: #94a3b8;
}

.sidebar-open {
    color: #475569;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.125rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    position: relative;
    transition: background 0.2s, color 0.2s;
}

.sidebar-link--idle {
    color: #94a3b8;
}

.sidebar-link--idle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

.sidebar-link--active {
    color: #fff;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.sidebar-link--sub {
    padding: 0.5rem 0.625rem;
    font-weight: 500;
    border-radius: 0.5rem;
}

.sidebar-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.sidebar-link-icon--idle {
    background: rgba(255, 255, 255, 0.04);
    color: #64748b;
}

.sidebar-link--idle:hover .sidebar-link-icon--idle {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.sidebar-link-icon--active {
    background: rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
}

.sidebar-link-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #475569;
    flex-shrink: 0;
    margin-left: 0.35rem;
}

.sidebar-link-dot--active {
    background: #818cf8;
    box-shadow: 0 0 8px rgba(129, 140, 248, 0.6);
}

.sidebar-link-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-link-glow {
    position: absolute;
    inset-block: 0.25rem;
    inset-inline-start: 0;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, #a5b4fc 0%, #6366f1 100%);
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.5);
}

.sidebar-nav-group {
    padding: 0.125rem 0;
}

.sidebar-nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.125rem;
    border: none;
    border-radius: 0.75rem;
    background: transparent;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav-toggle:hover,
.sidebar-nav-toggle.is-open {
    background: rgba(255, 255, 255, 0.04);
    color: #f1f5f9;
}

.sidebar-nav-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: #818cf8;
    flex-shrink: 0;
    transition: background 0.2s;
}

.sidebar-nav-toggle.is-open .sidebar-nav-toggle-icon {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
}

.sidebar-nav-toggle-label {
    flex: 1;
    min-width: 0;
}

.sidebar-nav-toggle-chevron {
    flex-shrink: 0;
    color: #475569;
    transition: transform 0.2s;
}

.sidebar-nav-toggle.is-open .sidebar-nav-toggle-chevron {
    transform: rotate(180deg);
    color: #94a3b8;
}

.sidebar-submenu {
    display: none;
    margin: 0.25rem 0 0.5rem 1.25rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-submenu.is-open {
    display: block;
}

.sidebar-nav-group--nested {
    margin: 0.15rem 0 0.35rem 0.5rem;
}

.sidebar-nav-toggle--sub {
    width: 100%;
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
    color: #94a3b8;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.sidebar-submenu--nested {
    margin-left: 0.75rem;
    padding-left: 0.5rem;
}

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-user-meta {
    min-width: 0;
}

.sidebar-user-name {
    display: block;
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-logout-btn {
    border: none;
    background: none;
    padding: 0;
    color: #f87171;
    font-size: 0.75rem;
    cursor: pointer;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    z-index: 1035;
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 4.25rem;
    padding: 0 1.25rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.app-topbar-title {
    flex: 1;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-topbar-user {
    font-size: 0.875rem;
    color: #64748b;
}

.app-content {
    flex: 1;
    padding: 1.25rem 1.5rem 1.5rem;
}

.app-footer {
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 991.98px) {
    .sidebar-panel {
        position: fixed;
        inset-block: 0;
        inset-inline-start: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .sidebar-panel.is-mobile-open {
        transform: translateX(0);
    }

    .sidebar-backdrop.is-visible {
        display: block;
    }
}

/* Prania — pasqyra mujore */
.attendance-page .attendance-filters .form-label {
    font-size: 0.75rem;
    font-weight: 500;
}

.attendance-grid-card {
    overflow: hidden;
}

.attendance-legend {
    background: #f8fafc;
    padding: 1rem 1.25rem;
}

.attendance-legend-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #64748b;
    margin: 0;
}

.attendance-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.8rem;
    color: #475569;
}

.attendance-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.attendance-grid-scroll {
    overflow: auto;
    max-height: calc(100vh - 22rem);
}

.attendance-grid {
    min-width: max-content;
    border-collapse: separate;
    border-spacing: 0;
}

.attendance-grid-head th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    white-space: nowrap;
    vertical-align: bottom;
    padding: 0.55rem 0.35rem;
}

.attendance-grid-employee {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 220px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    padding: 0.65rem 1rem !important;
}

.attendance-grid-total {
    position: sticky;
    right: 0;
    z-index: 2;
    min-width: 72px;
    text-align: center;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    padding: 0.65rem 0.75rem !important;
    font-size: 0.85rem;
}

.attendance-grid-day-head {
    width: 2.1rem;
    min-width: 2.1rem;
    text-align: center;
    padding: 0.55rem 0.15rem !important;
}

.attendance-grid-day {
    text-align: center;
    vertical-align: middle;
    padding: 0.35rem 0.15rem !important;
    border-bottom: 1px solid #f1f5f9;
}

.attendance-employee-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.attendance-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.attendance-employee-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #0f172a;
}

.attendance-employee-role {
    font-size: 0.72rem;
    color: #64748b;
}

.attendance-day-link {
    display: inline-flex;
    text-decoration: none;
}

.attendance-day-link:hover {
    opacity: 0.8;
}

.attendance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.45rem;
}

.attendance-icon svg {
    width: 0.95rem;
    height: 0.95rem;
}

.attendance-icon--empty {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.attendance-icon--present {
    background: #d1fae5;
    color: #059669;
}

.attendance-icon--late {
    background: #e0f2fe;
    color: #0284c7;
}

.attendance-icon--half_day {
    background: #e0e7ff;
    color: #4f46e5;
}

.attendance-icon--absent {
    background: #f1f5f9;
    color: #94a3b8;
}

.attendance-icon--leave {
    background: #ffe4e6;
    color: #e11d48;
}

.attendance-icon--holiday {
    background: #fef3c7;
    color: #d97706;
}

.attendance-grid tbody tr:hover .attendance-grid-employee,
.attendance-grid tbody tr:hover .attendance-grid-total {
    background: #f8fafc;
}

.attendance-view-switcher {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.attendance-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    color: #64748b;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.attendance-view-btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

.attendance-view-btn:hover:not(.is-disabled) {
    background: #f1f5f9;
    color: #2563eb;
}

.attendance-view-btn.is-active {
    background: #2563eb;
    color: #fff;
}

.attendance-view-btn.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.attendance-legend-note {
    font-size: 0.8rem;
    color: #475569;
}

.attendance-grid-day-abbr {
    font-size: 0.62rem !important;
    letter-spacing: 0.02em;
}

.attendance-grid-day-sub {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    padding-top: 0 !important;
}

.attendance-hour-cell {
    display: inline-block;
    min-width: 2rem;
    padding: 0.15rem 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #1e293b;
    text-decoration: none;
    border-radius: 0.35rem;
}

.attendance-hour-cell:hover {
    background: #eff6ff;
}

.attendance-hour-cell--absent {
    color: #e11d48;
}

.attendance-hour-cell--empty {
    color: #cbd5e1;
}

.attendance-map-card {
    padding: 0;
}

.attendance-map-hint {
    background: #f0f9ff;
    color: #0369a1;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid #e0f2fe;
}

.attendance-map {
    height: 500px;
    width: 100%;
    background: #f1f5f9;
}

.attendance-map-empty {
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

/* Këshillat agronomike */
.keshilla-card { transition: box-shadow 0.15s; }
.keshilla-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.keshilla-card-img { width: 100%; height: 160px; object-fit: cover; border-radius: 0.75rem 0.75rem 0 0; }
.keshilla-hero-img { max-height: 380px; object-fit: cover; }
.keshilla-content { line-height: 1.75; font-size: 0.95rem; }
.keshilla-editor { font-family: inherit; }

.keshilla-koment {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}
.keshilla-koment--fermer { background: #f0fdf4; border-left: 3px solid #22c55e; }
.keshilla-koment--admin  { background: #eff6ff; border-left: 3px solid #3b82f6; }
.keshilla-koment--pergjigje { margin-left: 1.5rem; border-left: 3px solid #a5b4fc; }
.keshilla-koment-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }

.keshilla-info-dl dt { font-size: 0.8rem; color: #64748b; font-weight: 600; margin-top: 0.5rem; }
.keshilla-info-dl dd { margin-bottom: 0; }

/* Farmer portal */
.farmer-keshilla-page { max-width: 1100px; }

.keshilla-fermer-card {
    border-radius: 0.75rem;
    transition: box-shadow 0.15s, transform 0.15s;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.keshilla-fermer-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); transform: translateY(-2px); color: inherit; }
.keshilla-fermer-card--urgent { border: 2px solid #fca5a5; }

.keshilla-fermer-img { width: 100%; height: 140px; object-fit: cover; border-radius: 0.75rem 0.75rem 0 0; }
.keshilla-fermer-placeholder {
    width: 100%; height: 100px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0.75rem 0.75rem 0 0;
}

.kategoria-card { transition: box-shadow 0.15s; }
.kategoria-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
