:root {
    --aa-primary: #405189;
    --aa-primary-dark: #152b52;
    --aa-bg: #f5f7ff;
    --aa-sidebar-width: 280px;
}

body.aa-body { margin: 0; background: var(--aa-bg); font-family: "Segoe UI", system-ui, sans-serif; }
.aa-shell { display: flex; min-height: 100vh; }
.aa-sidebar {
    width: var(--aa-sidebar-width);
    background: linear-gradient(180deg, var(--aa-primary-dark), var(--aa-primary));
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    overflow-y: auto;
    z-index: 100;
}
.aa-main { margin-left: var(--aa-sidebar-width); flex: 1; padding: 1.5rem; min-width: 0; }
.aa-brand { padding: 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.aa-brand-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
}
.aa-brand-link:hover { color: #fff; opacity: 0.92; }
.aa-brand-logo {
    display: block;
    max-height: 52px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}
.aa-brand-title { display: block; font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.aa-nav { padding: .5rem 0; flex: 1; }
.aa-nav-dashboard { font-weight: 600; margin-bottom: .25rem; }
.aa-nav-group { border-bottom: 1px solid rgba(255,255,255,.08); }
.aa-nav-group-toggle {
    width: 100%; display: flex; align-items: center; gap: .5rem;
    text-align: left; background: transparent; border: 0; color: #fff;
    padding: .65rem 1rem; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .03em; cursor: pointer;
}
.aa-nav-group-toggle:hover,
.aa-nav-group-toggle.expanded { background: rgba(255,255,255,.08); }
.aa-nav-group-label { flex: 1; }
.aa-nav-chevron {
    width: .5rem; height: .5rem; border-right: 2px solid rgba(255,255,255,.7);
    border-bottom: 2px solid rgba(255,255,255,.7); transform: rotate(45deg);
    transition: transform .2s; margin-right: .15rem;
}
.aa-nav-group-toggle.expanded .aa-nav-chevron,
.aa-nav-group-toggle[aria-expanded="true"] .aa-nav-chevron {
    transform: rotate(-135deg); margin-top: .2rem;
}
.aa-nav-icon {
    width: 1.1rem; height: 1.1rem; flex-shrink: 0; opacity: .9;
    background-size: contain; background-repeat: no-repeat; background-position: center;
}
.aa-icon-dashboard { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5V6a.5.5 0 0 1-1 0V4.5A.5.5 0 0 1 8 4M3.732 5.732a.5.5 0 0 1 .707 0l.915.914a.5.5 0 1 1-.708.708l-.914-.915a.5.5 0 0 1 0-.707M2 10a.5.5 0 0 1 .5-.5h1.586a.5.5 0 0 1 0 1H2.5A.5.5 0 0 1 2 10m9.5 0a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 0 1H12a.5.5 0 0 1-.5-.5m.754-4.246a.5.5 0 0 1-.708 0l-.914-.915a.5.5 0 0 1 .707-.707l.915.914a.5.5 0 0 1 0 .707M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6m0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8'/%3E%3C/svg%3E"); }
.aa-icon-gjenerale { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8.5 5.5a.5.5 0 0 0-1 0v3.362l-1.429 2.38a.5.5 0 1 0 .858.515l1.5-2.5A.5.5 0 0 0 8.5 9V5.5z'/%3E%3Cpath d='M6.5 0a.5.5 0 0 0 0 1H7v1.07a7.001 7.001 0 0 0-3.273 12.474l.602.602a.5.5 0 0 0 .707-.708L4.418 12.5A6 6 0 0 1 8 3.07V4h.5a.5.5 0 0 0 0-1h-2zM9.364 3.364a.5.5 0 0 1 .707 0l.707.707a.5.5 0 0 1-.707.707l-.707-.707a.5.5 0 0 1 0-.707m2.12 2.121a.5.5 0 0 1 .707 0l.707.707a.5.5 0 0 1-.707.707l-.707-.707a.5.5 0 0 1 0-.707'/%3E%3C/svg%3E"); }
.aa-icon-plani-i-auditimit { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5z'/%3E%3C/svg%3E"); }
.aa-icon-procesimi { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M11.534 7h3.932a.25.25 0 0 1 .192.41l-1.966 2.36a.25.25 0 0 1-.384 0l-1.966-2.36a.25.25 0 0 1 .192-.41m-11 2h3.932a.25.25 0 0 0 .192-.41L2.692 6.23a.25.25 0 0 0-.384 0l-1.966 2.36a.25.25 0 0 0 .192.41'/%3E%3C/svg%3E"); }
.aa-icon-auditimet { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M6 12.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5M3 8.062C3 6.76 4.235 5.765 5.53 5.886a26.6 26.6 0 0 0 4.94 0C11.765 5.765 13 6.76 13 8.062V13l-5 3-5-3z'/%3E%3C/svg%3E"); }
.aa-icon-audit-programi { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492M5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0'/%3E%3Cpath d='M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52z'/%3E%3C/svg%3E"); }
.aa-icon-importimet-dhe-analiza { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5z'/%3E%3C/svg%3E"); }
.aa-icon-mostrimi { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M2 2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z'/%3E%3C/svg%3E"); }
.aa-icon-ekzekutimi-i-auditimit { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3E%3Cpath d='M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05'/%3E%3C/svg%3E"); }
.aa-icon-follow-up { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2z'/%3E%3Cpath d='M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466'/%3E%3C/svg%3E"); }
.aa-icon-raportet { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z'/%3E%3C/svg%3E"); }
.aa-icon-siguria { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M5.338 1.59a61 61 0 0 0-2.837.856.48.48 0 0 0-.328.39c-.554 4.157.726 7.19 2.253 9.188a10.7 10.7 0 0 0 2.287 2.233c.346.244.652.42.893.533.12.057.218.095.293.118a.55.55 0 0 0 .101.025.615.615 0 0 0 .1-.025c.076-.023.174-.061.294-.118.24-.113.547-.29.893-.533a10.7 10.7 0 0 0 2.287-2.233c1.527-1.997 2.807-5.031 2.253-9.188a.48.48 0 0 0-.328-.39c-.651-.213-1.75-.56-2.837-.855C9.552 1.29 8.531 1.067 8 1.067c-.53 0-1.552.223-2.662.524z'/%3E%3C/svg%3E"); }
.aa-icon-arkiva { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5z'/%3E%3C/svg%3E"); }
.aa-icon-bulk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3E%3C/svg%3E"); }
.aa-nav-link {
    display: flex; align-items: center; gap: .35rem;
    color: rgba(255,255,255,.88); text-decoration: none;
    padding: .4rem 1rem .4rem 1.25rem; font-size: .82rem;
}
.aa-nav-link:hover, .aa-nav-link.active { background: rgba(255,255,255,.12); color: #fff; }
.aa-nav-sublink {
    padding-left: 2.35rem; font-size: .74rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .02em;
    color: rgba(171,185,232,.95);
}
.aa-nav-sublink.active { color: #fff; background: rgba(64,81,137,.85); }
.aa-nav-dash { opacity: .7; margin-right: .15rem; }
.aa-badge-soon {
    font-size: .65rem; background: rgba(255,193,7,.25); color: #ffc107; padding: .1rem .35rem;
    border-radius: 4px; margin-left: .35rem;
}
.aa-user-panel { padding: 1rem; border-top: 1px solid rgba(255,255,255,.15); }
.aa-user-name { font-size: .9rem; font-weight: 600; }
.aa-page-header { margin-bottom: 1.25rem; }
.aa-page-header h2 { color: var(--aa-primary-dark); margin-bottom: .25rem; }
.aa-panel {
    background: #fff; border: 1px solid rgba(64,81,137,.2); border-radius: 8px; padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(21,43,82,.06);
}
.aa-chart-panel { min-height: 260px; }
.aa-table thead th { background: var(--aa-primary); color: #fff; font-size: .78rem; }
.aa-table-scroll { max-height: 280px; overflow: auto; }
.aa-btn-primary { background: var(--aa-primary); border-color: var(--aa-primary); }
.aa-btn-primary:hover { background: var(--aa-primary-dark); border-color: var(--aa-primary-dark); }
.aa-approval-card {
    border: 1px solid #dee2e6; border-radius: 8px; padding: 1rem; background: #fafbff;
}
.aa-dash-approval {
    border: 1px solid var(--aa-primary);
    border-radius: 8px;
    background: #fff;
    margin-bottom: 0;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}
.aa-dash-approval-title {
    padding: .45rem .75rem;
    font-weight: 700;
    font-size: .92rem;
    color: var(--aa-primary-dark);
    background: linear-gradient(180deg, #eef2ff, #e8edff);
    border-bottom: 1px solid rgba(64,81,137,.2);
    letter-spacing: .02em;
}
.aa-dash-approval-grid {
    padding: .5rem .75rem 0;
    background: #fff;
    flex: 1;
    min-height: 220px;
}
.aa-dash-approval-row {
    width: 100%;
}
.aa-dash-approval-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}
.aa-dash-approval-row > [class*="col-"] .aa-dash-approval {
    width: 100%;
    flex: 1 1 auto;
}
.aa-dash-approval-grid-inner {
    min-height: 220px;
    height: 100%;
    width: 100%;
    border: 1px solid #dee2e6;
    background: #fff;
    overflow: auto;
}
.aa-dash-approval-grid-inner .table-responsive {
    width: 100%;
}
.aa-dash-approval-grid-inner .aa-table {
    width: 100%;
}
.aa-dash-approval-grid-inner .aa-table thead th {
    height: 22px;
    padding: .25rem .5rem;
    font-size: .75rem;
}
.aa-dash-approval-actions {
    padding: .5rem .75rem .75rem;
}
.aa-btn-dashboard {
    background: var(--aa-primary);
    color: #fff !important;
    border: 0;
    border-radius: 8px;
    padding: .4rem 1.1rem;
    min-width: 160px;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.aa-btn-dashboard:hover {
    background: var(--aa-primary-dark);
    color: #fff !important;
}
.aa-login-body {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--aa-primary-dark), var(--aa-primary));
}
.aa-login-card {
    width: 100%; max-width: 420px; background: #fff; border-radius: 12px; padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.aa-login-header { text-align: center; margin-bottom: 1.5rem; }
.aa-login-logo {
    display: block;
    max-height: 72px;
    max-width: 220px;
    width: auto;
    height: auto;
    margin: 0 auto 1rem;
    object-fit: contain;
}
.aa-login-header h1 { color: var(--aa-primary-dark); font-size: 1.75rem; margin-bottom: 0.35rem; }
.aa-login-product { color: #6c757d; font-size: 0.875rem; margin-bottom: 0; }

@media (max-width: 991px) {
    .aa-sidebar { position: relative; width: 100%; }
    .aa-main { margin-left: 0; }
    .aa-shell { flex-direction: column; }
}

.aa-universe-side-title {
    font-weight: 700;
    font-size: .85rem;
    color: var(--aa-primary-dark);
    margin-bottom: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* —— Audit Universe / Degët: layout i lartë si desktopi —— */
.aa-main:has(.aa-universe-page) {
    padding: .65rem .85rem 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}

.aa-universe-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: .55rem;
}

.aa-universe-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    background: linear-gradient(180deg, var(--aa-primary-dark), var(--aa-primary));
    color: #fff;
    padding: .55rem 1rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.aa-universe-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.aa-universe-year-form {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.aa-universe-label {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: rgba(255,255,255,.85);
    margin-bottom: .15rem;
}

.aa-universe-filters .aa-universe-label {
    color: var(--aa-primary-dark);
}

.aa-universe-input-year {
    width: 88px;
}

.aa-universe-btn-search {
    font-weight: 600;
    text-transform: uppercase;
}

.aa-universe-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: .55rem;
}

.aa-universe-form-scroll {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    overflow: hidden;
}

.aa-universe-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .65rem 1rem;
    background: #fff;
    border: 1px solid rgba(64,81,137,.22);
    border-radius: 8px;
    padding: .65rem 1rem;
    flex-shrink: 0;
}

.aa-universe-filter-item {
    display: flex;
    flex-direction: column;
    min-width: 130px;
}

.aa-universe-filter-wide { flex: 1 1 220px; min-width: 200px; }
.aa-universe-filter-narrow { flex: 0 0 110px; min-width: 100px; }

.aa-universe-filter-bqk {
    flex-direction: row;
    align-items: center;
    gap: .45rem;
    min-width: auto;
    padding-top: 1.1rem;
}

.aa-universe-filter-bqk .aa-universe-label { margin: 0; color: var(--aa-primary-dark); }

.aa-universe-details {
    background: #fff;
    border: 1px solid rgba(64,81,137,.22);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.aa-universe-details-body {
    padding: .65rem 1rem .85rem;
}

.aa-universe-details .aa-universe-filters {
    border: none;
    padding: 0;
    background: transparent;
}

.aa-universe-text-row {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    margin-top: .55rem;
}

.aa-universe-filter-kalkulo {
    flex: 0 0 auto;
    min-width: 110px;
}

.aa-btn-kalkulo {
    background: #e67e22;
    border-color: #c86414;
    color: #fff;
    font-weight: 600;
    min-height: 31px;
}

.aa-btn-kalkulo:hover {
    background: #d35400;
    border-color: #a04000;
    color: #fff;
}

.aa-universe-middle {
    display: flex;
    gap: .65rem;
    flex: 1 1 55%;
    min-height: 0;
}

.aa-universe-side-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #fff;
    border: 1px solid rgba(64,81,137,.22);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(21,43,82,.05);
}

.aa-universe-panel-head {
    background: var(--aa-primary);
    color: #fff;
    padding: .5rem .9rem;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    flex-shrink: 0;
}

.aa-universe-panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: .65rem .75rem;
    gap: .5rem;
    background: #f8f9fd;
}

.aa-universe-add-block {
    flex-shrink: 0;
    background: #fff;
    border: 1px solid rgba(64,81,137,.15);
    border-radius: 6px;
    padding: .6rem .65rem;
}

.aa-universe-textarea {
    resize: vertical;
    min-height: 52px;
    max-height: 120px;
}

.aa-universe-side-grid {
    flex: 1;
    min-height: 80px;
    overflow: auto;
    border: 1px solid rgba(64,81,137,.15);
    border-radius: 6px;
    background: #fff;
}

.aa-universe-pending-grid {
    flex: 0 0 auto;
    max-height: 120px;
    min-height: 0;
}

.aa-universe-side-grid .aa-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.aa-universe-cell-name {
    max-width: 180px;
    white-space: normal;
    font-size: .78rem;
}

.aa-universe-num {
    width: 64px;
    min-width: 64px;
}

.aa-universe-bottom {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid rgba(64,81,137,.22);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(21,43,82,.05);
}

.aa-universe-main-grid {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: #fff;
}

.aa-universe-main-grid .aa-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.aa-universe-head-grid {
    table-layout: fixed;
    width: 100%;
    min-width: 1280px;
}

.aa-universe-head-grid thead th {
    font-size: .72rem;
    white-space: nowrap;
    padding: .45rem .5rem;
}

.aa-universe-head-grid tbody td {
    font-size: .78rem;
    padding: .4rem .5rem;
    vertical-align: middle;
}

.aa-uni-col-id { width: 52px; }
.aa-uni-col-year { width: 52px; }
.aa-uni-col-num { width: 72px; text-align: center; white-space: nowrap; }
.aa-uni-col-bqk { width: 64px; }
.aa-uni-col-risk { width: 100px; white-space: nowrap; }

.aa-uni-col-dept { width: 110px; }
.aa-uni-col-audit { width: 130px; }
.aa-uni-col-aktiv { width: 120px; }
.aa-uni-col-kohe { width: 88px; text-align: center; }

.aa-universe-main-row-static {
    cursor: default;
}

.aa-universe-main-row-static:hover {
    background: inherit !important;
}
.aa-uni-col-desc {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aa-uni-bqk-yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 3px;
    background: #22c55e;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
}

.aa-universe-main-row {
    cursor: pointer;
}

.aa-universe-main-row:hover {
    background: rgba(64,81,137,.08) !important;
}

.aa-universe-main-row.is-selected {
    background: rgba(64,81,137,.18) !important;
    font-weight: 600;
}

.aa-universe-toolbar {
    flex-shrink: 0;
    background: var(--aa-primary);
    padding: .55rem 1rem;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .65rem;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 12px rgba(21, 43, 82, .12);
}

.aa-universe-toolbar .btn-light {
    font-weight: 600;
    text-transform: uppercase;
    font-size: .78rem;
    color: var(--aa-primary-dark);
}

.aa-universe-toolbar .btn-outline-light {
    font-weight: 600;
    text-transform: uppercase;
    font-size: .78rem;
    color: #fff;
    border-color: rgba(255,255,255,.55);
}

.aa-universe-toolbar .btn-outline-light:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

/* —— Audit Universe v2 (Planifikimi) —— */
.aa-main:has(.aa-universe-v2) {
    padding: 1rem 1.25rem 1.25rem;
    background: #eef1f8;
    overflow: auto;
    height: auto;
    min-height: 100vh;
}

.aa-universe-v2 {
    max-width: 1600px;
    margin: 0 auto;
    gap: 1rem;
}

.aa-uni-v2-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.aa-uni-v2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: linear-gradient(180deg, #283764, #405189);
    border-radius: 10px;
    padding: .65rem 1rem;
    box-shadow: 0 2px 8px rgba(21, 43, 82, .15);
    border: none;
}

.aa-uni-v2-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .03em;
}

.aa-uni-v2-year-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
}

.aa-uni-v2-header .aa-uni-v2-btn-primary {
    background: #fff;
    border: 1px solid #9ac1f0;
    color: #1a2b52;
}
.aa-uni-v2-header .aa-uni-v2-btn-primary:hover {
    background: #f5f8ff;
    color: #152b52;
}

.aa-uni-v2-header .aa-uni-v2-btn-outline {
    background: rgba(255, 255, 255, .95);
    border: 1px solid #9ac1f0;
    color: #1a2b52;
}
.aa-uni-v2-header .aa-uni-v2-btn-outline:hover { background: #fff; }

.aa-uni-v2-header .aa-uni-v2-btn-outline.is-disabled,
.aa-uni-v2-header .aa-uni-v2-btn-danger-outline.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.aa-uni-v2-header .aa-uni-v2-btn-danger-outline {
    background: rgba(255, 255, 255, .9);
    border: 1px solid #fecaca;
    color: #dc2626;
}

.aa-uni-v2-header .aa-uni-v2-btn-close {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
}
.aa-uni-v2-header .aa-uni-v2-btn-close:hover {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

.aa-uni-v2-header-main {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.aa-uni-v2-header-year-label {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .92);
    text-transform: uppercase;
    letter-spacing: .02em;
}

.aa-uni-v2-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
}

.aa-uni-v2-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 600;
    padding: .4rem .75rem;
    border-radius: 8px;
    line-height: 1.2;
}

.aa-uni-v2-ico { font-size: .9rem; opacity: .9; }

.aa-uni-v2-btn-primary {
    background: #3b82f6;
    border: 1px solid #2563eb;
    color: #fff;
}
.aa-uni-v2-btn-primary:hover { background: #2563eb; color: #fff; }

.aa-uni-v2-btn-outline {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #334155;
}
.aa-uni-v2-btn-outline:hover { background: #f8fafc; color: #1e293b; }

.aa-uni-v2-btn-danger-outline {
    background: #fff;
    border: 1px solid #fecaca;
    color: #dc2626;
}
.aa-uni-v2-btn-danger-outline:hover { background: #fef2f2; color: #b91c1c; }

.aa-uni-v2-btn-close {
    background: #ef4444;
    border: 1px solid #dc2626;
    color: #fff;
}
.aa-uni-v2-btn-close:hover { background: #dc2626; color: #fff; }

.aa-uni-v2-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.aa-uni-v2-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f4;
    box-shadow: 0 1px 4px rgba(21, 43, 82, .06);
    display: flex;
    flex-direction: column;
    min-height: 320px;
    max-height: 420px;
    overflow: hidden;
}

.aa-uni-v2-card-title {
    margin: 0;
    padding: .75rem 1rem;
    font-size: .82rem;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #eef2f8;
    background: #fafbfd;
}

.aa-uni-v2-card-body {
    padding: .85rem 1rem 1rem;
    overflow-y: auto;
    flex: 1;
}

.aa-uni-v2-card-body-stack {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    min-height: 0;
    overflow: hidden;
}

.aa-uni-v2-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: .25rem;
}

.aa-uni-v2-field { margin-bottom: .65rem; }
.aa-uni-v2-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin-bottom: .65rem;
}
.aa-uni-v2-field-kohe { max-width: 120px; }
.aa-uni-v2-field-sm { min-width: 0; margin-bottom: 0; }

.aa-uni-v2-inline {
    display: flex;
    gap: .45rem;
}
.aa-uni-v2-inline .form-control { flex: 1; min-width: 0; }

.aa-uni-v2-btn-search {
    background: var(--aa-primary);
    border-color: var(--aa-primary-dark);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}
.aa-uni-v2-btn-search:hover { background: var(--aa-primary-dark); color: #fff; }

.aa-uni-v2-textarea { resize: vertical; min-height: 64px; }
.aa-uni-v2-process-select { font-size: .75rem; color: #64748b; }
.aa-uni-v2-bqk {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 0;
}

.aa-uni-v2-subblock {
    flex-shrink: 0;
    padding: .55rem;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.aa-uni-v2-btn-add {
    background: var(--aa-primary);
    border-color: var(--aa-primary-dark);
    color: #fff;
    font-weight: 600;
}

.aa-uni-v2-factor-scroll {
    flex: 1;
    min-height: 120px;
    overflow: auto;
    border: 1px solid #e8edf5;
    border-radius: 8px;
    background: #fff;
}

.aa-uni-v2-factor-table thead th,
.aa-uni-v2-activ-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    font-size: .72rem;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.aa-uni-v2-factor-table tbody td {
    font-size: .78rem;
    vertical-align: middle;
    border-color: #f1f5f9;
}

.aa-uni-v2-vleresim {
    width: 4rem;
    margin-left: auto;
    text-align: center;
}

.aa-uni-v2-risk-footer {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: .55rem;
    align-items: end;
    padding-top: .35rem;
    border-top: 1px solid #eef2f8;
}

.aa-uni-v2-btn-kalkulo {
    background: #f97316;
    border: 1px solid #ea580c;
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    padding: .45rem .85rem;
    border-radius: 8px;
    white-space: nowrap;
}
.aa-uni-v2-btn-kalkulo:hover { background: #ea580c; color: #fff; }

.aa-uni-v2-plan {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f4;
    box-shadow: 0 1px 4px rgba(21, 43, 82, .06);
    display: flex;
    flex-direction: column;
    min-height: 220px;
    max-height: 360px;
    overflow: hidden;
}

.aa-uni-v2-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #eef2f8;
    flex-shrink: 0;
}

.aa-uni-v2-plan-title {
    margin: 0;
    font-size: .88rem;
    font-weight: 700;
    color: #1e293b;
}

.aa-uni-v2-plan-search {
    width: 220px;
    border-radius: 8px;
    border-color: #e2e8f0;
}

.aa-uni-v2-plan-grid {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.aa-uni-v2-plan-table {
    table-layout: fixed;
    min-width: 1200px;
    margin: 0;
}

.aa-uni-v2-plan-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f8fafc;
    font-size: .7rem;
    font-weight: 700;
    color: #475569;
    text-transform: none;
    border-bottom: 1px solid #e2e8f0;
    padding: .55rem .5rem;
    white-space: nowrap;
}

.aa-uni-v2-plan-table tbody td {
    font-size: .78rem;
    padding: .5rem .5rem;
    border-color: #f1f5f9;
    vertical-align: middle;
}

.aa-uni-v2-plan-table tbody tr:nth-child(even) { background: #fafbfd; }

.aa-uni-v2-plan-footer {
    padding: .45rem 1rem;
    border-top: 1px solid #eef2f8;
    font-size: .75rem;
    color: #64748b;
    flex-shrink: 0;
    background: #fafbfd;
}

.aa-uni-v2-empty {
    padding: 1.25rem;
    color: #64748b;
    margin: 0;
}

.aa-uni-risk-badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}
.aa-uni-risk-high { background: #fee2e2; color: #b91c1c; }
.aa-uni-risk-medium { background: #ffedd5; color: #c2410c; }
.aa-uni-risk-low { background: #dcfce7; color: #15803d; }

.aa-universe-v2 .aa-universe-main-row.is-selected {
    background: #dbeafe !important;
}

@media (max-width: 1200px) {
    .aa-uni-v2-cards { grid-template-columns: 1fr; }
    .aa-uni-v2-card { max-height: none; }
    .aa-uni-v2-plan { max-height: none; }
}

@media (max-width: 991px) {
    .aa-main:has(.aa-universe-page) {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    .aa-universe-form-scroll {
        overflow: visible;
    }
    .aa-universe-middle {
        flex-direction: column;
        flex: 0 0 auto;
        min-height: 260px;
    }
    .aa-universe-side-grid {
        min-height: 120px;
        max-height: 240px;
    }
    .aa-universe-bottom {
        flex: 0 0 auto;
        min-height: 160px;
    }
    .aa-universe-toolbar {
        position: sticky;
        bottom: 0;
    }
}

/* —— OUTSTADIN —— */
.aa-main:has(.aa-outstanding-page) {
    padding: .65rem .85rem 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}

.aa-outstanding-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: .55rem;
}

.aa-outstanding-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    background: linear-gradient(180deg, var(--aa-primary-dark), var(--aa-primary));
    color: #fff;
    padding: .55rem 1rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.aa-outstanding-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.aa-outstanding-year-form {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.aa-outstanding-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0;
}

.aa-outstanding-input-year {
    width: 100px;
}

.aa-outstanding-btn-search {
    font-weight: 600;
    text-transform: uppercase;
}

.aa-outstanding-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: .55rem;
}

.aa-outstanding-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid rgba(64,81,137,.22);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(21,43,82,.05);
}

.aa-outstanding-panel-head {
    background: var(--aa-primary);
    color: #fff;
    padding: .5rem .9rem;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    flex-shrink: 0;
}

.aa-outstanding-grid-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: #fff;
}

.aa-outstanding-grid thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    white-space: nowrap;
}

.aa-outstanding-grid tfoot td {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #eef2ff;
    border-top: 2px solid var(--aa-primary);
    font-size: .78rem;
}

.aa-outstanding-footer strong {
    color: var(--aa-primary-dark);
}

.aa-outstanding-input-date {
    min-width: 130px;
}

.aa-outstanding-input-num {
    min-width: 90px;
    text-align: right;
}

.aa-outstanding-grid tbody td {
    vertical-align: middle;
    font-size: .78rem;
    white-space: nowrap;
}

.aa-outstanding-toolbar {
    flex-shrink: 0;
    background: var(--aa-primary);
    padding: .55rem 1rem;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .65rem;
}

.aa-outstanding-toolbar .btn-light {
    font-weight: 600;
    text-transform: uppercase;
    font-size: .78rem;
    color: var(--aa-primary-dark);
}

.aa-outstanding-toolbar .btn-outline-light {
    font-weight: 600;
    text-transform: uppercase;
    font-size: .78rem;
    color: #fff;
    border-color: rgba(255,255,255,.55);
}

.aa-outstanding-toolbar .btn-outline-light:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

@media (max-width: 991px) {
    .aa-main:has(.aa-outstanding-page) {
        height: auto;
        overflow: visible;
    }
    .aa-outstanding-grid-wrap {
        min-height: 400px;
    }
}

/* —— DITET E STAFIT —— */
.aa-main:has(.aa-ditet-page) {
    padding: .65rem .85rem 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}

.aa-ditet-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: .55rem;
}

.aa-ditet-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    background: linear-gradient(180deg, var(--aa-primary-dark), var(--aa-primary));
    color: #fff;
    padding: .55rem 1rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.aa-ditet-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.aa-ditet-year-form {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.aa-ditet-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0;
}

.aa-ditet-input-year { width: 100px; }
.aa-ditet-btn-search { font-weight: 600; text-transform: uppercase; }

.aa-ditet-summary { flex-shrink: 0; }

.aa-ditet-stat {
    background: #fff;
    border: 1px solid rgba(64,81,137,.2);
    border-radius: 8px;
    padding: .55rem .85rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.aa-ditet-stat-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--aa-primary-dark);
    letter-spacing: .03em;
}

.aa-ditet-stat-value {
    font-size: 1.25rem;
    color: var(--aa-primary);
}

.aa-ditet-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid rgba(64,81,137,.22);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(21,43,82,.05);
}

.aa-ditet-panel-head {
    background: var(--aa-primary);
    color: #fff;
    padding: .5rem .9rem;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    flex-shrink: 0;
}

.aa-ditet-panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: .65rem .75rem;
    background: #f8f9fd;
}

.aa-ditet-add-form {
    flex-shrink: 0;
    background: #fff;
    border: 1px solid rgba(64,81,137,.15);
    border-radius: 6px;
    padding: .6rem .65rem;
}

.aa-ditet-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.aa-ditet-grid-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(64,81,137,.15);
    border-radius: 6px;
}

.aa-ditet-grid thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    white-space: nowrap;
    font-size: .72rem;
}

.aa-ditet-grid tbody td {
    vertical-align: middle;
    font-size: .75rem;
    white-space: nowrap;
}

.aa-ditet-sticky-col {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 2px 0 4px rgba(21,43,82,.06);
}

.aa-ditet-grid thead .aa-ditet-sticky-col {
    z-index: 4;
    background: var(--aa-primary);
}

.aa-ditet-num {
    width: 58px;
    min-width: 58px;
    padding: .15rem .3rem;
    text-align: center;
}

.aa-ditet-readonly {
    display: inline-block;
    min-width: 80px;
    padding: 0 .15rem;
}

.aa-ditet-actions-col {
    width: 36px;
    text-align: center;
    position: sticky;
    right: 0;
    background: #fff;
    z-index: 2;
}

.aa-ditet-toolbar {
    flex-shrink: 0;
    background: var(--aa-primary);
    padding: .55rem 1rem;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .65rem;
}

.aa-ditet-toolbar .btn-light {
    font-weight: 600;
    text-transform: uppercase;
    font-size: .78rem;
    color: var(--aa-primary-dark);
}

.aa-ditet-toolbar .btn-outline-light {
    font-weight: 600;
    text-transform: uppercase;
    font-size: .78rem;
    color: #fff;
    border-color: rgba(255,255,255,.55);
}

.aa-ditet-toolbar .btn-outline-light:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

@media (max-width: 991px) {
    .aa-main:has(.aa-ditet-page) {
        height: auto;
        overflow: visible;
    }
    .aa-ditet-grid-wrap { min-height: 420px; }
}

/* —— PLANI I AUDITIMIT —— */
.aa-main:has(.aa-plani-audit-page) {
    padding: .75rem 1rem 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--aa-header-h, 0px));
    overflow: hidden;
    box-sizing: border-box;
}

.aa-plani-audit-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: .75rem;
}

.aa-plani-audit-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: linear-gradient(135deg, var(--aa-primary-dark) 0%, var(--aa-primary) 55%, #5a6dab 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(21, 43, 82, .18);
}

.aa-plani-audit-hero-text { flex: 1; min-width: 200px; }

.aa-plani-audit-title {
    margin: 0 0 .25rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.aa-plani-audit-subtitle {
    margin: 0;
    font-size: .82rem;
    opacity: .88;
    font-weight: 400;
}

.aa-plani-audit-filter-card {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    padding: .65rem .85rem;
    backdrop-filter: blur(4px);
    min-width: 260px;
}

.aa-plani-audit-filter-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.aa-plani-audit-label {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .35rem;
    opacity: .9;
}

.aa-plani-audit-input-year {
    width: 88px;
    border-radius: 8px;
    border: 0;
    font-weight: 600;
    text-align: center;
}

.aa-plani-audit-btn-search {
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
}

.aa-plani-audit-board {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: .75rem;
}

.aa-plani-audit-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid #e2e8f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(21, 43, 82, .06);
}

.aa-plani-audit-panel-top { flex: 0 1 42%; min-height: 200px; }
.aa-plani-audit-panel-bottom { flex: 1 1 52%; min-height: 260px; }

.aa-plani-audit-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem 1rem;
    background: linear-gradient(180deg, #f8faff, #eef2ff);
    border-bottom: 1px solid #e2e8f8;
    flex-shrink: 0;
}

.aa-plani-audit-panel-title {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.aa-plani-audit-panel-title strong {
    display: block;
    font-size: .88rem;
    color: var(--aa-primary-dark);
    font-weight: 700;
}

.aa-plani-audit-panel-title small {
    display: block;
    font-size: .72rem;
    color: #64748b;
    font-weight: 400;
}

.aa-plani-audit-panel-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--aa-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.aa-plani-audit-badge {
    font-size: .72rem;
    font-weight: 600;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: #e2e8f8;
    color: var(--aa-primary-dark);
    white-space: nowrap;
}

.aa-plani-audit-badge-accent {
    background: #dbeafe;
    color: #1e40af;
}

.aa-plani-audit-panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: .75rem;
    background: #fafbff;
}

.aa-plani-audit-universe-form,
.aa-plani-audit-detail-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.aa-plani-audit-panel-actions {
    flex-shrink: 0;
    padding-top: .65rem;
    border-top: 1px dashed #dbe3f5;
    margin-top: .65rem;
}

.aa-plani-audit-btn-add {
    font-weight: 600;
    border-radius: 8px;
}

.aa-plani-audit-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

.aa-plani-audit-empty p {
    margin: 0 0 .35rem;
    font-weight: 600;
    color: #475569;
}

.aa-plani-audit-empty small { font-size: .78rem; }

.aa-plani-grid-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: #fff;
    border: 1px solid #e2e8f8;
    border-radius: 10px;
}

.aa-plani-grid-universe-head .aa-uni-v2-plan-table {
    table-layout: fixed;
    min-width: 1180px;
}

.aa-plani-grid-universe-head .aa-uni-v2-plan-table thead th {
    background: var(--aa-primary);
    color: #fff;
    font-size: .7rem;
    white-space: nowrap;
}

.aa-plani-grid {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.aa-plani-grid thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--aa-primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: .55rem .65rem;
    border-bottom: 2px solid var(--aa-primary-dark);
    white-space: nowrap;
}

.aa-plani-grid tbody tr {
    transition: background .15s ease;
}

.aa-plani-grid tbody tr:nth-child(even) {
    background: #f8faff;
}

.aa-plani-grid tbody tr:hover {
    background: #eef2ff;
}

.aa-plani-row-selected {
    background: #e0e7ff !important;
}

.aa-plani-grid tbody td {
    font-size: .78rem;
    vertical-align: middle;
    padding: .45rem .65rem;
    border-bottom: 1px solid #eef2f8;
    color: #1e293b;
}

.aa-plani-col-wrap,
.aa-plani-cell-wrap {
    min-width: 180px;
    max-width: 320px;
    white-space: normal !important;
    line-height: 1.45;
}

.aa-plani-col-desc,
.aa-plani-cell-desc {
    min-width: 200px;
    max-width: 360px;
    white-space: normal !important;
    line-height: 1.45;
}

.aa-plani-col-tm,
.aa-plani-cell-tm {
    width: 64px;
    text-align: center;
}

.aa-plani-check-col {
    width: 44px;
    text-align: center;
    vertical-align: middle;
}

.aa-plani-check-col .form-check-input {
    margin: 0;
    cursor: pointer;
}

.aa-plani-risk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: .75rem;
}

.aa-plani-risk-1 { background: #dcfce7; color: #166534; }
.aa-plani-risk-2 { background: #fef9c3; color: #854d0e; }
.aa-plani-risk-3 { background: #ffedd5; color: #c2410c; }
.aa-plani-risk-4,
.aa-plani-risk-5 { background: #fee2e2; color: #b91c1c; }

.aa-plani-weight {
    font-weight: 600;
    color: var(--aa-primary);
}

.aa-plani-readonly {
    color: #475569;
}

.aa-plani-grid .form-control-sm {
    border-radius: 6px;
    border-color: #cbd5e1;
    font-size: .78rem;
    padding: .25rem .45rem;
    transition: border-color .15s, box-shadow .15s;
}

.aa-plani-grid .form-control-sm:focus {
    border-color: var(--aa-primary);
    box-shadow: 0 0 0 3px rgba(64, 81, 137, .15);
}

.aa-plani-num { width: 58px; min-width: 58px; text-align: center; }

.aa-plani-tm {
    width: 52px;
    min-width: 52px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 auto;
}

.aa-plani-tm-marked {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}

.aa-plani-type-input { min-width: 110px; }
.aa-plani-text-input { min-width: 140px; }

.aa-plani-actions-col {
    width: 44px;
    text-align: center;
    position: sticky;
    right: 0;
    background: inherit;
    z-index: 2;
    box-shadow: -4px 0 8px rgba(21, 43, 82, .04);
}

.aa-plani-grid tbody tr:nth-child(even) .aa-plani-actions-col { background: #f8faff; }
.aa-plani-grid tbody tr:nth-child(odd) .aa-plani-actions-col { background: #fff; }
.aa-plani-grid tbody tr:hover .aa-plani-actions-col { background: #eef2ff; }

.aa-plani-delete-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: .85rem;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

.aa-plani-delete-btn:hover {
    background: #fecaca;
    transform: scale(1.05);
}

.aa-plani-audit-toolbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    background: #fff;
    border: 1px solid #e2e8f8;
    border-radius: 12px;
    padding: .65rem 1rem;
    margin-bottom: .65rem;
    box-shadow: 0 2px 8px rgba(21, 43, 82, .05);
}

.aa-plani-audit-toolbar-hint {
    font-size: .78rem;
    color: #64748b;
}

.aa-plani-audit-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.aa-plani-audit-toolbar-btn {
    font-weight: 600;
    border-radius: 8px;
    font-size: .78rem;
}

@media (max-width: 991px) {
    .aa-main:has(.aa-plani-audit-page) {
        height: auto;
        overflow: visible;
    }
    .aa-plani-audit-board { min-height: auto; }
    .aa-plani-audit-panel-top { min-height: 280px; }
    .aa-plani-audit-panel-bottom { min-height: 360px; }
    .aa-plani-audit-hero { flex-direction: column; }
    .aa-plani-audit-filter-card { width: 100%; }
    .aa-plani-audit-toolbar { flex-direction: column; align-items: stretch; }
    .aa-plani-audit-toolbar-actions { justify-content: flex-end; }
}

/* PLANI VJETOR I PUNËS */
.aa-main:has(.aa-plani-vjetor-page) {
    height: calc(100vh - var(--aa-header-h, 56px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.aa-plani-vjetor-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: .75rem 1rem 0;
}

.aa-plani-vjetor-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
    flex-shrink: 0;
}

.aa-plani-vjetor-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #152b52;
}

.aa-plani-vjetor-year-form {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.aa-plani-vjetor-label {
    font-size: .72rem;
    font-weight: 700;
    color: #405189;
    margin: 0;
    text-transform: uppercase;
}

.aa-plani-vjetor-input-year { width: 100px; }
.aa-plani-vjetor-btn-search { font-weight: 600; text-transform: uppercase; }

.aa-plani-vjetor-form {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.aa-plani-vjetor-layout {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 0;
    border: 1px solid #c9d4ef;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f6ff;
}

.aa-plani-vjetor-tabs {
    flex: 0 0 210px;
    background: #2f4070;
    padding: .35rem 0;
    overflow-y: auto;
}

.aa-plani-vjetor-tabs .nav-link {
    color: #c9d4ef;
    background: transparent;
    border: none;
    border-radius: 0;
    text-align: left;
    font-size: .78rem;
    font-weight: 600;
    padding: .65rem 1rem;
    white-space: normal;
    box-shadow: none;
}

.aa-plani-vjetor-tabs button.nav-link {
    width: 100%;
    background-color: transparent;
}

.aa-plani-vjetor-tabs .nav-link:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.aa-plani-vjetor-tabs .nav-link.active {
    background: #fff;
    color: #152b52;
    font-weight: 700;
}

.aa-plani-vjetor-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 1rem;
    background: #f1f6ff;
}

.aa-plani-vjetor-field-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #405189;
    margin-bottom: .35rem;
}

.aa-plani-vjetor-text {
    font-size: .85rem;
    min-height: 420px;
    resize: vertical;
}

.aa-plani-vjetor-page7-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.aa-plani-vjetor-summary { flex-shrink: 0; }

.aa-plani-vjetor-stat {
    background: #fff;
    border: 1px solid #d8e2f8;
    border-radius: 6px;
    padding: .5rem .75rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.aa-plani-vjetor-stat span {
    font-size: .72rem;
    color: #6b7a99;
    text-transform: uppercase;
}

.aa-plani-vjetor-stat strong {
    font-size: 1.1rem;
    color: #152b52;
}

.aa-plani-vjetor-grid-wrap {
    overflow: auto;
    max-height: 520px;
    border: 1px solid #d8e2f8;
    border-radius: 6px;
    background: #fff;
}

.aa-plani-vjetor-grid thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #405189;
    color: #fff;
    font-size: .72rem;
    white-space: nowrap;
}

.aa-plani-vjetor-grid tbody td {
    font-size: .72rem;
    vertical-align: middle;
    white-space: nowrap;
}

.aa-plani-vjetor-sticky-col {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 2px 0 4px rgba(0,0,0,.06);
}

.aa-plani-vjetor-grid thead .aa-plani-vjetor-sticky-col {
    z-index: 3;
    background: #405189;
}

.aa-plani-vjetor-num {
    width: 58px;
    min-width: 58px;
    padding: .15rem .25rem;
    font-size: .72rem;
}

.aa-plani-vjetor-readonly {
    display: inline-block;
    min-width: 48px;
    padding: .1rem .2rem;
}

.aa-plani-vjetor-actions-col {
    width: 36px;
    text-align: center;
    position: sticky;
    right: 0;
    background: #fff;
}

.aa-plani-vjetor-toolbar {
    flex-shrink: 0;
    display: flex;
    gap: .5rem;
    padding: .65rem 0;
    margin-top: .5rem;
    background: #405189;
    border-radius: 8px;
    justify-content: center;
}

.aa-plani-vjetor-toolbar .btn-light {
    font-weight: 600;
    min-width: 90px;
    text-transform: uppercase;
}

.aa-plani-vjetor-toolbar .btn-outline-light {
    font-weight: 600;
    min-width: 90px;
    text-transform: uppercase;
    border-color: rgba(255,255,255,.5);
    color: #fff;
}

.aa-plani-vjetor-toolbar .btn-outline-light:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

.aa-plani-vjetor-send-form select {
    max-width: 220px;
}

.aa-plani-vjetor-topbar .aa-program-status-badge {
    margin-left: auto;
    align-self: center;
}

.aa-plani-vjetor-empty {
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #d8e2f8;
}

.aa-rbia-plan-table,
.aa-rbia-staff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .72rem;
}

.aa-rbia-plan-table th,
.aa-rbia-plan-table td,
.aa-rbia-staff-table th,
.aa-rbia-staff-table td {
    border: 1px solid #c5cee8;
    padding: .3rem .4rem;
    vertical-align: top;
}

.aa-rbia-plan-table th,
.aa-rbia-staff-table th {
    background: #405189;
    color: #fff;
    font-weight: 600;
}

.aa-rbia-plan-table tr:nth-child(even) td { background: #f5f7ff; }
.aa-rbia-plan-table .tm-mark { font-weight: 700; text-align: center; }
.aa-rbia-plan-table .rbia-totals-row td { background: #e8ecf7; font-weight: 600; }
.aa-rbia-staff-table td:first-child { font-weight: 600; background: #f8f9fc; }

@media (max-width: 991px) {
    .aa-main:has(.aa-plani-vjetor-page) {
        height: auto;
        overflow: visible;
    }
    .aa-plani-vjetor-layout { flex-direction: column; }
    .aa-plani-vjetor-tabs {
        flex: 0 0 auto;
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .aa-plani-vjetor-tabs .nav-link { white-space: nowrap; }
    .aa-plani-vjetor-page7-grid { grid-template-columns: 1fr; }
}

/* AUDIT NAVIGATOR (FrmAuditNavigator) */
.aa-main:has(.aa-navigator-page) {
    height: calc(100vh - var(--aa-header-h, 56px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.aa-navigator-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: .75rem 1rem 0;
    background: #e8f0ff;
}

.aa-navigator-header-bar {
    background: #1e40af;
    color: #fff;
    border-radius: 8px 8px 0 0;
    padding: .5rem 1rem;
    margin-bottom: 0;
}

.aa-navigator-page-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.aa-navigator-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    background: #fff;
    border: 1px solid #d8e2f8;
    border-top: none;
    padding: .75rem 1rem;
    flex-shrink: 0;
}

.aa-navigator-search-form,
.aa-navigator-save-days-form {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.aa-navigator-label {
    font-size: .72rem;
    font-weight: 700;
    color: #405189;
    margin: 0;
    text-transform: uppercase;
}

.aa-navigator-input-audit { width: 120px; }

.aa-navigator-board {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1.75fr 1fr 1fr;
    gap: .75rem;
    margin-top: .75rem;
    overflow: hidden;
}

.aa-navigator-col {
    background: #dbeafe;
    border-radius: 10px;
    padding: .65rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.aa-navigator-col-title {
    font-size: .78rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 .5rem;
    text-transform: uppercase;
}

.aa-navigator-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .125rem;
    padding-right: .15rem;
}

.aa-navigator-step-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    min-height: 28px;
    overflow: hidden;
}

.aa-navigator-step-link {
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    padding: .35rem .6rem;
    border-radius: 0;
    display: block;
}

.aa-navigator-step-link:hover { color: #fff; opacity: .92; }

.aa-navigator-cycle-form { margin: 0; }
.aa-navigator-cycle-btn {
    border: none;
    background: rgba(0,0,0,.15);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 0;
    font-size: .75rem;
    cursor: pointer;
}
.aa-navigator-cycle-btn:hover { background: rgba(0,0,0,.28); }

.aa-navigator-badge {
    min-width: 78px;
    text-align: center;
    font-size: .58rem;
    font-weight: 700;
    color: #fff;
    padding: .35rem .3rem;
    border-radius: 0;
    background: rgba(0,0,0,.15);
}

.aa-navigator-st-done { background: #2ea44f; }
.aa-navigator-st-done .aa-navigator-step-link { background: #2ea44f; }

.aa-navigator-st-process { background: #f59e0b; }
.aa-navigator-st-process .aa-navigator-step-link { background: #f59e0b; }

.aa-navigator-st-open { background: #2e60bb; }
.aa-navigator-st-open .aa-navigator-step-link { background: #2e60bb; }

.aa-navigator-st-idle { background: #464b5a; }
.aa-navigator-st-idle .aa-navigator-step-link { background: #464b5a; }

.aa-navigator-status-form { margin: 0; }
.aa-navigator-status-btn {
    width: 100%;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    text-align: left;
    padding: .4rem .65rem;
    cursor: pointer;
}
.aa-navigator-status-btn:hover { filter: brightness(1.05); }

.aa-navigator-days-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .25rem;
    background: #fff;
    border-radius: 8px;
    padding: .15rem .25rem;
    min-height: 28px;
}

.aa-navigator-days-label {
    flex: 1;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .35rem .6rem;
    border-radius: 6px;
}

.aa-navigator-days-input {
    width: 50px;
    min-height: 26px;
    padding: .15rem .25rem;
    text-align: center;
    font-weight: 600;
}

.aa-navigator-days-0 .aa-navigator-days-label { background: #464b5a; }
.aa-navigator-days-fast .aa-navigator-days-label { background: #2ea44f; }
.aa-navigator-days-normal .aa-navigator-days-label { background: #28a745; }
.aa-navigator-days-slow .aa-navigator-days-label { background: #f59e0b; }
.aa-navigator-days-late .aa-navigator-days-label { background: #dc3545; }

.aa-navigator-toolbar {
    flex-shrink: 0;
    display: flex;
    gap: .5rem;
    padding: .65rem 0;
    margin-top: .5rem;
    background: #1e40af;
    border-radius: 8px;
    justify-content: center;
}

.aa-navigator-toolbar .btn-light {
    font-weight: 600;
    min-width: 100px;
    text-transform: uppercase;
}

.aa-navigator-toolbar .btn-outline-light {
    font-weight: 600;
    min-width: 100px;
    text-transform: uppercase;
    border-color: rgba(255,255,255,.5);
    color: #fff;
}

.aa-navigator-empty {
    margin-top: .75rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid #d8e2f8;
    border-radius: 8px;
}

.aa-navigator-modal-backdrop {
    background: rgba(15, 23, 42, .55);
}

@media (max-width: 1100px) {
    .aa-main:has(.aa-navigator-page) { height: auto; overflow: visible; }
    .aa-navigator-board { grid-template-columns: 1fr; overflow: visible; }
    .aa-navigator-col { min-height: 280px; }
}

/* LETRA INFORMUESE */
.aa-main:has(.aa-leter-page) {
    height: calc(100vh - var(--aa-header-h, 56px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: .75rem 1rem 0;
}

.aa-leter-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: auto;
    gap: .75rem;
}

.aa-leter-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: linear-gradient(135deg, var(--aa-primary-dark) 0%, var(--aa-primary) 55%, #5a6dab 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(21, 43, 82, .18);
}

.aa-leter-hero-text { flex: 1; min-width: 200px; }

.aa-leter-title {
    margin: 0 0 .25rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.aa-leter-subtitle {
    margin: 0;
    font-size: .82rem;
    opacity: .88;
}

.aa-leter-generate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.aa-leter-gen-btn {
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
}

.aa-leter-search-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    background: #fff;
    border: 1px solid #e2e8f8;
    border-radius: 12px;
    padding: .75rem 1rem;
    box-shadow: 0 2px 8px rgba(21, 43, 82, .05);
    flex-shrink: 0;
}

.aa-leter-search-form {
    display: flex;
    align-items: flex-end;
    gap: .65rem;
    flex-wrap: wrap;
}

.aa-leter-field {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.aa-leter-label {
    font-size: .68rem;
    font-weight: 700;
    color: #405189;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.aa-leter-input-audit { width: 130px; border-radius: 8px; font-weight: 600; }
.aa-leter-select-dept { min-width: 150px; max-width: 220px; border-radius: 8px; }
.aa-leter-pick-btn, .aa-leter-search-btn { border-radius: 8px; font-weight: 600; }

.aa-leter-status-badge {
    background: #e8edff;
    color: #1e3a8a;
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem .85rem;
    border-radius: 999px;
}

.aa-leter-main-form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
    min-height: 0;
}

.aa-leter-dates-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem;
    background: #fff;
    border: 1px solid #e2e8f8;
    border-radius: 12px;
    padding: .75rem 1rem;
    flex-shrink: 0;
}

.aa-leter-dates-strip .form-control-sm { border-radius: 8px; min-width: 130px; }
.aa-leter-field-days .form-control-sm { width: 72px; min-width: 72px; text-align: center; font-weight: 700; }
.aa-leter-field-manager { flex: 1; min-width: 160px; }
.aa-leter-manager-readonly { background: #f8faff !important; color: #475569; font-weight: 600; }

.aa-leter-field-check { justify-content: center; padding-bottom: .35rem; }
.aa-leter-check-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    color: #475569;
    margin: 0;
    white-space: nowrap;
}

.aa-leter-custom-period {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: .65rem .85rem;
    flex-shrink: 0;
}

.aa-leter-grids { flex-shrink: 0; }

.aa-leter-grid-panel {
    background: #fff;
    border: 1px solid #e2e8f8;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(21, 43, 82, .04);
}

.aa-leter-grid-head {
    background: linear-gradient(180deg, #eef2ff, #e2e8f8);
    color: var(--aa-primary-dark);
    font-size: .72rem;
    font-weight: 700;
    padding: .5rem .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid #dbe3f5;
}

.aa-leter-grid-panel .table-responsive {
    flex: 1;
    min-height: 120px;
    max-height: 180px;
    overflow: auto;
}

.aa-leter-grid-panel .aa-table thead th {
    font-size: .68rem;
    padding: .4rem .5rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

.aa-leter-grid-panel .aa-table tbody td {
    font-size: .75rem;
    padding: .35rem .5rem;
    vertical-align: middle;
}

.aa-leter-grid-add {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: .5rem .65rem !important;
}

.aa-leter-row-del {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 6px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: .8rem;
    cursor: pointer;
    line-height: 1;
}

.aa-leter-row-del:hover { background: #fecaca; }

.aa-leter-docs-strip {
    display: flex;
    align-items: flex-end;
    gap: .75rem;
    background: #fff;
    border: 1px solid #e2e8f8;
    border-radius: 12px;
    padding: .75rem 1rem;
    flex-shrink: 0;
}

.aa-leter-docs-text { flex: 1; min-width: 0; }
.aa-leter-template-btn { border-radius: 8px; font-weight: 600; white-space: nowrap; margin-bottom: .1rem; }

.aa-leter-panel {
    background: #fff;
    border: 1px solid #e2e8f8;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-shadow: 0 2px 8px rgba(21, 43, 82, .05);
}

.aa-leter-letter-panel { flex: 1; min-height: 220px; }

.aa-leter-panel-head {
    background: linear-gradient(180deg, #f8faff, #eef2ff);
    color: var(--aa-primary-dark);
    font-size: .78rem;
    font-weight: 700;
    padding: .55rem .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid #e2e8f8;
}

.aa-leter-panel-body { padding: .75rem; flex: 1; overflow: auto; }

.aa-leter-remarks {
    font-size: .85rem;
    line-height: 1.55;
    min-height: 280px;
    resize: vertical;
    border-radius: 10px;
    border-color: #cbd5e1;
}

.aa-leter-remarks:focus {
    border-color: var(--aa-primary);
    box-shadow: 0 0 0 3px rgba(64, 81, 137, .12);
}

textarea.aa-leter-editable:not([readonly]) {
    background-color: #fff;
    cursor: text;
}

textarea.aa-leter-editable[readonly] {
    background-color: #f1f5f9;
    cursor: not-allowed;
}

.aa-leter-approval-panel { flex-shrink: 0; }
.aa-leter-approval-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: .75rem;
    margin-bottom: .5rem;
    background: #fafbff;
}

.aa-leter-send-approval {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: .75rem 1rem;
    flex-shrink: 0;
}

.aa-leter-approval-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin-top: .35rem;
}

.aa-leter-approval-row .form-select { max-width: 320px; border-radius: 8px; }

.aa-leter-toolbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    background: #fff;
    border: 1px solid #e2e8f8;
    border-radius: 12px;
    padding: .65rem 1rem;
    margin-bottom: .65rem;
    box-shadow: 0 2px 8px rgba(21, 43, 82, .05);
}

.aa-leter-toolbar-hint { font-size: .78rem; color: #64748b; }
.aa-leter-toolbar-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.aa-leter-toolbar-actions .btn { border-radius: 8px; font-weight: 600; font-size: .78rem; }

.aa-leter-empty {
    padding: 2.5rem 1.5rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    color: #64748b;
}

.aa-leter-empty p { margin: 0 0 .35rem; font-weight: 600; color: #475569; }
.aa-leter-empty small { font-size: .78rem; }

.aa-leter-modal-backdrop { background: rgba(15, 23, 42, .55); }
.aa-leter-template-item {
    border-bottom: 1px solid #e2e8f0;
    padding: .75rem 0;
}

@media (max-width: 991px) {
    .aa-main:has(.aa-leter-page) { height: auto; overflow: visible; }
    .aa-leter-page { overflow: visible; }
    .aa-leter-hero { flex-direction: column; }
    .aa-leter-dates-strip { flex-direction: column; align-items: stretch; }
    .aa-leter-toolbar { flex-direction: column; align-items: stretch; }
    .aa-leter-toolbar-actions { justify-content: flex-end; }
}

/* Auditimet: takimi hyres/daljes, kuadri ligjor, bulk leter */
.aa-main:has(.aa-auditimet-page) {
    height: calc(100vh - var(--aa-header-h, 56px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.aa-auditimet-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: .75rem 1rem 0;
    overflow: hidden;
    background: #f1f6ff;
}

.aa-auditimet-header-bar {
    background: #405189;
    color: #fff;
    border-radius: 8px 8px 0 0;
    padding: .5rem 1rem;
}

.aa-auditimet-title { margin: 0; font-size: 1rem; font-weight: 700; text-align: center; }

.aa-auditimet-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    background: transparent;
    border: 0;
    padding: .85rem .75rem;
}

.aa-auditimet-search-form {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.aa-auditimet-date-field {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.aa-auditimet-label {
    font-size: .72rem;
    font-weight: 700;
    color: #405189;
    margin: 0;
    text-transform: uppercase;
}

.aa-auditimet-input-audit { width: 130px; }

.aa-auditimet-topbar .btn-primary {
    min-width: 142px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
}

.aa-auditimet-date-field .form-control { width: 145px; }

.aa-auditimet-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.aa-auditimet-panel {
    background: #d1d1d1;
    border: 1px solid #b8b8b8;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin-top: .75rem;
}

.aa-auditimet-panel-head {
    background: transparent;
    color: #152b52;
    font-size: .7rem;
    font-weight: 700;
    padding: .45rem 0;
    text-transform: uppercase;
}

.aa-auditimet-panel-body {
    display: flex;
    flex: 1;
    min-height: 0;
    padding: 0;
    overflow: auto;
}

.aa-auditimet-remarks { font-size: .85rem; min-height: 280px; resize: vertical; }

.aa-auditimet-document {
    width: min(100%, 850px);
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 2.5rem 3.5rem;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, .25);
    font-family: Arial, sans-serif;
    font-size: .85rem;
    line-height: 1.45;
    resize: none;
}

.aa-auditimet-document:focus {
    box-shadow: 0 0 0 2px rgba(64, 81, 137, .3);
}

.aa-auditimet-toolbar {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    background: #405189;
    padding: .5rem .75rem;
    margin-top: .75rem;
    border-radius: 0 0 8px 8px;
    flex-shrink: 0;
}

.aa-auditimet-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #d8e2f8;
    border-radius: 8px;
    margin-top: .75rem;
    padding: 2rem;
}

.aa-auditimet-modal-backdrop { background: rgba(15, 23, 42, .55); }

.aa-kuadri-page .aa-kuadri-upload-panel { flex: 0 0 auto; }
.aa-kuadri-page .aa-kuadri-grid-panel { flex: 1; min-height: 200px; }
.aa-kuadri-type-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.aa-bulk-page .aa-bulk-filters { align-items: center; }
.aa-bulk-count {
    font-size: .78rem;
    font-weight: 700;
    color: #405189;
    background: #e8edff;
    padding: .35rem .75rem;
    border-radius: 999px;
}

.aa-bulk-grid-panel { flex: 1; min-height: 0; margin-top: .75rem; }
.aa-bulk-transfer-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #d8e2f8;
    border-radius: 8px;
    padding: .75rem 1rem;
    margin-top: .75rem;
    flex-shrink: 0;
}

.aa-bulk-transfer-bar .form-select { min-width: 180px; max-width: 260px; }
.aa-bulk-transfer-bar .aa-bulk-audit-input { width: 140px; font-weight: 600; }

@media (max-width: 991px) {
    .aa-main:has(.aa-auditimet-page) { height: auto; overflow: visible; }
    .aa-auditimet-page { overflow: visible; }
}

/* TRANSFERO AUDIT PROGRAMIN */
.aa-main:has(.aa-transfer-page) {
    height: calc(100vh - var(--aa-header-h, 56px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: .75rem 1rem 0;
}

.aa-transfer-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: .75rem;
    overflow: auto;
}

.aa-transfer-hero {
    background: linear-gradient(135deg, var(--aa-primary-dark) 0%, var(--aa-primary) 55%, #5a6dab 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(21, 43, 82, .18);
}

.aa-transfer-title { margin: 0 0 .25rem; font-size: 1.15rem; font-weight: 700; }
.aa-transfer-subtitle { margin: 0; font-size: .82rem; opacity: .88; }

.aa-transfer-panel {
    background: #fff;
    border: 1px solid #e2e8f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(21, 43, 82, .05);
    flex-shrink: 0;
}

.aa-transfer-grid-panel { flex: 1; min-height: 200px; display: flex; flex-direction: column; }

.aa-transfer-panel-head {
    background: linear-gradient(180deg, #f8faff, #eef2ff);
    color: var(--aa-primary-dark);
    font-size: .78rem;
    font-weight: 700;
    padding: .6rem 1rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid #e2e8f8;
}

.aa-transfer-panel-body { padding: 1rem; }

.aa-transfer-form { margin-bottom: .75rem; }

.aa-transfer-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.aa-transfer-field { flex: 1; min-width: 240px; }

.aa-transfer-label {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    color: #405189;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .35rem;
}

.aa-transfer-input-row {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.aa-transfer-input-row .form-control { border-radius: 8px; font-weight: 600; flex: 1; }
.aa-transfer-input-row .btn { border-radius: 8px; font-weight: 600; white-space: nowrap; }

.aa-transfer-load-btn { border-radius: 8px; font-weight: 600; align-self: flex-end; }

.aa-transfer-action-form {
    display: flex;
    justify-content: flex-end;
    padding-top: .75rem;
    border-top: 1px dashed #dbe3f5;
}

.aa-transfer-btn {
    font-weight: 700;
    border-radius: 10px;
    padding: .5rem 1.5rem;
    min-width: 200px;
}

.aa-transfer-badge {
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    text-transform: none;
    letter-spacing: 0;
}

.aa-transfer-grid-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    max-height: 420px;
}

.aa-transfer-grid thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    font-size: .72rem;
    white-space: nowrap;
}

.aa-transfer-grid tbody td {
    font-size: .78rem;
    vertical-align: middle;
}

.aa-transfer-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #64748b;
}

.aa-transfer-empty p { margin: 0; font-weight: 500; }

.aa-transfer-toolbar {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    background: #fff;
    border: 1px solid #e2e8f8;
    border-radius: 12px;
    padding: .65rem 1rem;
    margin-bottom: .65rem;
}

.aa-transfer-modal-backdrop { background: rgba(15, 23, 42, .55); }

@media (max-width: 991px) {
    .aa-main:has(.aa-transfer-page) { height: auto; overflow: visible; }
    .aa-transfer-fields { flex-direction: column; align-items: stretch; }
    .aa-transfer-action-form { justify-content: stretch; }
    .aa-transfer-btn { width: 100%; }
}

/* PROGRAMI I AUDITIMIT */
.aa-main:has(.aa-program-page) {
    height: calc(100vh - var(--aa-header-h, 56px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.aa-program-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: .75rem 1rem 0;
    background: #f1f6ff;
    overflow: hidden;
}

.aa-program-detail-page { overflow: auto; }

.aa-program-header-bar {
    background: #405189;
    color: #fff;
    border-radius: 8px 8px 0 0;
    padding: .5rem 1rem;
}

.aa-program-title { margin: 0; font-size: 1rem; font-weight: 700; text-align: center; }
.aa-program-subtitle { text-align: center; font-size: .78rem; opacity: .9; margin-top: .15rem; }

.aa-program-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #d8e2f8;
    border-top: none;
    padding: .75rem 1rem;
}

.aa-program-search-form,
.aa-program-process {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.aa-program-label {
    font-size: .72rem;
    font-weight: 700;
    color: #405189;
    margin: 0;
    text-transform: uppercase;
}

.aa-program-input-audit { width: 130px; }
.aa-program-process .form-control { min-width: 220px; font-weight: 600; }

.aa-program-panel {
    background: #fff;
    border: 1px solid #d8e2f8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin-top: .75rem;
    overflow: hidden;
}

.aa-program-detail-form .aa-program-panel {
    flex: 0 0 auto;
    overflow: visible;
    margin-top: .65rem;
}

.aa-program-panel-head {
    background: #405189;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: .45rem .75rem;
    text-transform: uppercase;
}

.aa-program-panel-body { padding: .75rem; flex: 1; overflow: auto; }

.aa-program-empty {
    margin-top: .75rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid #d8e2f8;
    border-radius: 8px;
}

.aa-program-toolbar {
    flex-shrink: 0;
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    background: #405189;
    padding: .5rem .75rem;
    margin-top: .75rem;
    border-radius: 0 0 8px 8px;
}

.aa-program-toolbar .btn-light,
.aa-program-toolbar .btn-outline-light { font-weight: 600; min-width: 90px; }

.aa-program-modal-backdrop { background: rgba(15, 23, 42, .55); }

.aa-program-bank-page { gap: .65rem; }
.aa-program-bank-grid-wrap { max-height: 220px; overflow: auto; }
.aa-program-bank-body-grid { max-height: 280px; }
.aa-program-bank-select-table tbody tr.is-selected { background: rgba(64, 81, 137, .12); }
.aa-program-bank-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem .75rem;
}
.aa-program-bank-field textarea { min-height: 5.5rem; resize: vertical; font-size: .8rem; }
.aa-program-bank-field-meta { display: flex; flex-direction: column; }
.aa-program-bank-toolbar { flex-wrap: wrap; gap: .35rem; }

/* Programi i Auditimit — UI v2 (kartat, header i bardhë) */
.aa-program-ui-v2 {
    background: #f4f6fb;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
}

.aa-program-ui-v2 .aa-program-v2-shell {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.aa-program-v2-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: .85rem 1.15rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    flex-shrink: 0;
}

.aa-program-v2-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.02em;
}

.aa-program-v2-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1;
    min-width: 220px;
    max-width: 520px;
}

.aa-program-v2-search .form-control {
    border-radius: 10px;
    border-color: #cbd5e1;
    font-size: .875rem;
}

.aa-program-v2-search .btn-primary {
    border-radius: 10px;
    font-weight: 600;
    padding-left: 1rem;
    padding-right: 1rem;
}

.aa-program-v2-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}

.aa-program-v2-actions .btn {
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
}

.aa-program-v2-actions .btn-outline-secondary {
    border-color: #cbd5e1;
    color: #334155;
    background: #fff;
}

.aa-program-v2-actions .btn-outline-danger {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fff;
}

.aa-program-v2-actions .btn-primary.aa-program-v2-close {
    background: #2563eb;
    border-color: #2563eb;
}

.aa-program-v2-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: .5rem;
}

.aa-program-v2-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
    overflow: hidden;
}

.aa-program-v2-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.aa-program-v2-card-head h3 {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a;
}

.aa-program-v2-card-head .subtitle {
    font-size: .8rem;
    color: #64748b;
    font-weight: 500;
}

.aa-program-v2-filter {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 200px;
    max-width: 280px;
}

.aa-program-v2-filter input {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: .8rem;
    padding: .35rem .65rem;
}

.aa-program-v2-table-wrap {
    overflow: auto;
    max-height: 240px;
}

.aa-program-v2-table-wrap.is-tall { max-height: 320px; }

.aa-program-v2-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8125rem;
}

.aa-program-v2-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .55rem .75rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.aa-program-v2-table tbody td {
    padding: .55rem .75rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.aa-program-v2-table tbody tr {
    cursor: pointer;
    transition: background .12s ease;
}

.aa-program-v2-table tbody tr:hover { background: #f8fafc; }

.aa-program-v2-table tbody tr.is-selected {
    background: #eff6ff;
}

.aa-program-v2-table tbody tr.is-selected td:first-child .aa-program-v2-radio {
    border-color: #2563eb;
    box-shadow: inset 0 0 0 3px #fff;
    background: #2563eb;
}

.aa-program-v2-radio {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    vertical-align: middle;
}

.aa-program-v2-table-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .55rem 1rem;
    font-size: .75rem;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.aa-program-v2-pager {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.aa-program-v2-pager button {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    font-size: .75rem;
    color: #475569;
    line-height: 1;
}

.aa-program-v2-pager button:disabled { opacity: .45; cursor: default; }

.aa-program-v2-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.aa-program-v2-form-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: .85rem .9rem;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.aa-program-v2-form-card-head {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .15rem;
}

.aa-program-v2-form-card-head .icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 800;
    color: #fff;
}

.aa-program-v2-form-card-head .icon.is-info { background: #3b82f6; }
.aa-program-v2-form-card-head .icon.is-shield { background: #8b5cf6; }
.aa-program-v2-form-card-head .icon.is-check { background: #10b981; }

.aa-program-v2-field label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: .2rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.aa-program-v2-field textarea,
.aa-program-v2-field .form-control,
.aa-program-v2-field .form-select {
    border-radius: 10px;
    border-color: #e2e8f0;
    font-size: .8125rem;
    background: #fff;
}

.aa-program-v2-field textarea { min-height: 4.5rem; resize: vertical; }

.aa-program-v2-badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
}

.aa-program-v2-badge.is-ok { background: #dcfce7; color: #166534; }
.aa-program-v2-badge.is-warn { background: #ffedd5; color: #c2410c; }
.aa-program-v2-badge.is-muted { background: #f1f5f9; color: #475569; }

.aa-program-v2-row-actions {
    display: flex;
    align-items: center;
    gap: .25rem;
    white-space: nowrap;
}

.aa-program-v2-row-actions a,
.aa-program-v2-row-actions button {
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: .75rem;
    font-weight: 600;
    padding: .2rem .35rem;
    border-radius: 6px;
    text-decoration: none;
}

.aa-program-v2-row-actions a:hover { background: #eff6ff; }

.aa-program-v2-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: .875rem;
}

.aa-main:has(.aa-program-ui-v2),
.aa-main:has(.aa-mostrimi-v2-page) {
    background: #f4f6fb;
}

/* Mostrimi — faqe e plotë vertikale (të gjithë rreshtat pa clip) */
.aa-main:has(.aa-mostrimi-v2-page) {
    height: auto;
    min-height: calc(100vh - var(--aa-header-h, 56px));
    overflow: auto;
}

.aa-mostrimi-v2-page.aa-program-page {
    flex: none;
    min-height: auto;
    height: auto;
    overflow: visible;
}

.aa-mostrimi-v2-page .aa-program-v2-scroll {
    flex: none;
    min-height: auto;
    overflow: visible;
}

.aa-mostrimi-v2-page .aa-program-v2-shell {
    flex: none;
    min-height: auto;
}

/* Mostrimi — UI v2 */
.aa-mostrimi-v2-page.aa-program-ui-v2 { padding-top: .85rem; }

.aa-mostrimi-v2-tabs {
    display: flex;
    gap: .35rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0;
}

.aa-mostrimi-v2-tabs button {
    border: none;
    background: transparent;
    font-size: .8125rem;
    font-weight: 600;
    color: #64748b;
    padding: .5rem 1rem;
    border-radius: 10px 10px 0 0;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
}

.aa-mostrimi-v2-tabs button.is-active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: #fff;
}

.aa-mostrimi-v2-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.aa-mostrimi-v2-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: .75rem;
    margin-bottom: .75rem;
    align-items: start;
}

.aa-mostrimi-v2-square {
    max-height: 230px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.aa-mostrimi-v2-square::-webkit-scrollbar,
.aa-mostrimi-v2-square-right .aa-mostrimi-v2-checks-in-square::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.aa-mostrimi-v2-square::-webkit-scrollbar-thumb,
.aa-mostrimi-v2-square-right .aa-mostrimi-v2-checks-in-square::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

.aa-mostrimi-v2-duo .aa-program-v2-card-head {
    padding: .45rem .65rem;
    flex-shrink: 0;
}

.aa-mostrimi-v2-duo .aa-program-v2-card-head h3 {
    font-size: .82rem;
}

.aa-mostrimi-v2-duo .aa-program-v2-card-head .subtitle {
    font-size: .68rem;
}

.aa-mostrimi-v2-square-block {
    flex: 0 0 auto;
}

.aa-mostrimi-v2-square-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0 .65rem;
    flex-shrink: 0;
}

.aa-mostrimi-v2-duo .aa-mostrimi-v2-kpi-row {
    margin-bottom: .45rem;
    gap: .45rem;
}

.aa-mostrimi-v2-duo .aa-mostrimi-v2-kpi {
    padding: .4rem .55rem;
    min-width: 0;
}

.aa-mostrimi-v2-duo .aa-mostrimi-v2-kpi strong {
    font-size: .9rem;
}

.aa-mostrimi-v2-duo .aa-mostrimi-v2-kpi label {
    font-size: .62rem;
}

.aa-mostrimi-v2-checks-in-square {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: .45rem .65rem .55rem;
    gap: .35rem .4rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    align-content: start;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.aa-mostrimi-v2-checks-in-square .aa-mostrimi-criteria-check {
    min-height: 2rem;
    padding: .28rem .4rem;
    font-size: .68rem;
}

.aa-mostrimi-v2-square-right {
    max-height: 230px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.aa-mostrimi-v2-square-right .aa-mostrimi-v2-checks-in-square {
    overflow: visible;
    flex: 0 0 auto;
}

.aa-mostrimi-v2-methods-card {
    margin-bottom: 1rem;
}

.aa-mostrimi-v2-method-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(118px, 1fr));
    gap: .45rem;
    padding: .85rem 1rem .5rem;
    overflow-x: auto;
}

.aa-mostrimi-v2-method-panel {
    border: 1px solid #475569;
    border-radius: 8px;
    background: #f1f5f9;
    min-height: 132px;
    padding: .35rem .4rem .45rem;
    display: flex;
    flex-direction: column;
}

.aa-mostrimi-v2-method-panel-short {
    min-height: 80px;
    justify-content: flex-start;
}

.aa-mostrimi-v2-method-panel .panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .25rem;
    margin-bottom: .35rem;
}

.aa-mostrimi-v2-method-panel .panel-title {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin: 0;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #0f172a;
    line-height: 1.2;
}

.aa-mostrimi-v2-method-panel .panel-title input {
    margin: 0;
    flex-shrink: 0;
}

.aa-mostrimi-v2-method-panel .corner-input {
    width: 2.35rem;
    min-width: 2.35rem;
    padding: .1rem .2rem;
    text-align: center;
    font-size: .7rem;
    height: 1.35rem;
}

.aa-mostrimi-v2-method-panel .panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.aa-mostrimi-v2-method-panel .panel-body-split {
    flex-direction: row;
    gap: .3rem;
}

.aa-mostrimi-v2-method-panel .panel-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.aa-mostrimi-v2-method-panel .panel-lbl {
    font-size: .58rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #334155;
    line-height: 1.1;
}

.aa-mostrimi-v2-method-panel .form-control-sm {
    font-size: .72rem;
    padding: .15rem .25rem;
    min-height: 1.45rem;
    border-radius: 4px;
    background: #fff;
}

.aa-mostrimi-v2-strip-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    padding: 0 1rem 1rem;
    border-top: 1px solid #f1f5f9;
    margin-top: .25rem;
    padding-top: .75rem;
}

.aa-mostrimi-v2-method-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .55rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: .72rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
}

.aa-mostrimi-v2-method-pill:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.aa-mostrimi-v2-method-pill input {
    margin: 0;
    flex-shrink: 0;
}

.aa-mostrimi-v2-methods-in-square .aa-mostrimi-v2-method-actions {
    min-width: 0;
}

.aa-mostrimi-v2-kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: .75rem;
}

.aa-mostrimi-v2-kpi {
    flex: 1;
    min-width: 140px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: .65rem .85rem;
}

.aa-mostrimi-v2-kpi label {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: .15rem;
}

.aa-mostrimi-v2-kpi strong {
    font-size: 1.15rem;
    color: #1d4ed8;
    font-weight: 800;
}

.aa-mostrimi-v2-mini-table {
    width: 100%;
    font-size: .75rem;
    border-collapse: collapse;
}

.aa-mostrimi-v2-mini-table th,
.aa-mostrimi-v2-mini-table td {
    padding: .35rem .5rem;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.aa-mostrimi-v2-mini-table th {
    color: #64748b;
    font-weight: 600;
    font-size: .68rem;
    text-transform: uppercase;
}

.aa-mostrimi-v2-checks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .45rem .65rem;
    padding: 1rem;
}

.aa-mostrimi-v2-checks .aa-mostrimi-criteria-check {
    border-radius: 10px;
    padding: .45rem .55rem;
    font-size: .78rem;
}

.aa-mostrimi-v2-methods-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1rem;
    align-items: start;
}

.aa-mostrimi-v2-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: .65rem;
}

.aa-mostrimi-v2-method {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: .65rem .7rem;
    background: #fafbfc;
    transition: border-color .15s, box-shadow .15s;
}

.aa-mostrimi-v2-method:has(input[type=checkbox]:checked) {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
    background: #fff;
}

.aa-mostrimi-v2-method-head {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .45rem;
}

.aa-mostrimi-v2-method-head input { margin: 0; }

.aa-mostrimi-v2-method .form-control {
    font-size: .75rem;
    border-radius: 8px;
    margin-bottom: .35rem;
}

.aa-mostrimi-v2-method-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 160px;
}

.aa-mostrimi-v2-method-actions .btn-primary {
    border-radius: 10px;
    font-weight: 700;
    padding: .55rem 1rem;
}

.aa-mostrimi-v2-criteria-pane {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 1rem;
}

.aa-mostrimi-v2-criteria-side {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.aa-mostrimi-v2-gen-grid-scroll,
.aa-mostrimi-v2-gen-grid .aa-program-v2-table-wrap {
    max-height: none;
    overflow: visible;
}

.aa-mostrimi-v2-gen-grid .aa-program-v2-table {
    font-size: .75rem;
    white-space: nowrap;
}

.aa-mostrimi-v2-gen-grid .aa-program-v2-table td,
.aa-mostrimi-v2-gen-grid .aa-program-v2-table th {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aa-mostrimi-v2-tab-pane { display: none; }
.aa-mostrimi-v2-tab-pane.is-active { display: block; }

.aa-mostrimi-v2-footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem 1rem;
    padding: .85rem 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-top: 1rem;
}

.aa-mostrimi-v2-footer-bar .aa-program-v2-field label {
    font-size: .68rem;
}

.aa-mostrimi-v2-risk-high { background: #fee2e2; color: #b91c1c; }
.aa-mostrimi-v2-risk-med { background: #fef3c7; color: #b45309; }
.aa-mostrimi-v2-risk-low { background: #dcfce7; color: #166534; }

@media (max-width: 992px) {
    .aa-mostrimi-v2-split { grid-template-columns: 1fr; }
    .aa-mostrimi-v2-duo { grid-template-columns: 1fr; }
    .aa-mostrimi-v2-checks-in-square { grid-template-columns: repeat(2, 1fr); }
    .aa-mostrimi-v2-methods-wrap { grid-template-columns: 1fr; }
    .aa-mostrimi-v2-criteria-pane { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .aa-program-bank-form-grid { grid-template-columns: 1fr; }
    .aa-program-v2-cards { grid-template-columns: 1fr; }
    .aa-program-v2-top { flex-direction: column; align-items: stretch; }
    .aa-program-v2-search { max-width: none; }
    .aa-program-v2-actions { justify-content: flex-end; }
}

@media (max-width: 991px) {
    .aa-main:has(.aa-program-page) { height: auto; overflow: visible; }
    .aa-program-page { overflow: visible; }
}

.aa-program-send-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #d8e2f8;
    border-radius: 8px;
    padding: .75rem 1rem;
    margin-top: .75rem;
}

.aa-program-send-bar .form-select { min-width: 220px; max-width: 320px; }

.aa-program-status-badge {
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem .75rem;
    border-radius: 999px;
}

.aa-program-status-badge.is-approved { background: #d1fae5; color: #166534; }
.aa-program-status-badge.is-pending { background: #ffedd5; color: #c2410c; }

.aa-program-review-page .aa-approval-card {
    background: #f8fafc;
    border: 1px solid #d8e2f8;
    border-radius: 8px;
    padding: .85rem 1rem;
}

/* ── Importimet & Analiza ── */
.aa-main:has(.aa-import-page) {
    height: auto;
    min-height: 0;
    overflow: auto;
}

.aa-import-page {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding-bottom: 1.5rem;
}

.aa-import-hero {
    background: linear-gradient(135deg, #0f2d5c 0%, #1a4a8a 100%);
    color: #f8fafc;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
}

.aa-import-title { margin: 0 0 .25rem; font-size: 1.15rem; font-weight: 700; }
.aa-import-subtitle { margin: 0; font-size: .82rem; opacity: .88; }

.aa-import-panel {
    background: #fff;
    border: 1px solid #e2e8f8;
    border-radius: 12px;
    overflow: hidden;
}

.aa-import-panel-head {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f8;
    padding: .55rem 1rem;
    font-size: .78rem;
    font-weight: 600;
    color: #334155;
}

.aa-import-panel-body { padding: 1rem; }

.aa-import-upload-row,
.aa-import-input-row,
.aa-import-field-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.aa-import-label {
    font-size: .75rem;
    font-weight: 600;
    color: #475569;
    min-width: 110px;
}

.aa-import-upload-form input[type="file"] { max-width: 420px; }

.aa-import-grid-panel .aa-import-panel-body { padding: 0; }

.aa-import-grid-wrap {
    overflow: auto;
    max-height: none;
    flex: 1;
    min-height: 0;
}

.aa-import-micro-page .aa-import-grid-wrap {
    max-height: calc(100vh - 280px);
}

.aa-import-micro-page {
    padding-bottom: 0;
}

.aa-main:has(.aa-import-micro-page) {
    height: calc(100vh - var(--aa-header-h, 56px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.aa-import-micro-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid #d8e2f8;
    border-top: none;
    padding: .75rem 1rem;
}

.aa-import-micro-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    width: 100%;
}

.aa-import-micro-btn { min-width: 130px; font-weight: 600; }

.aa-import-micro-path {
    flex: 1;
    min-width: 220px;
    max-width: 520px;
    background: #fff;
}

.aa-import-micro-grid-panel {
    margin-top: .75rem;
}

.aa-import-micro-group-hint {
    background: #e8edf8;
    color: #64748b;
    font-size: .78rem;
    font-style: italic;
    padding: .45rem .75rem;
    border-bottom: 1px solid #d8e2f8;
}

.aa-import-micro-toolbar { margin-top: .75rem; border-radius: 0 0 8px 8px; }

.aa-fshirje-import-page {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 0;
}

.aa-fshirje-import-panel {
    margin-top: .75rem;
    background: #fff;
    border: 1px solid #d8e2f8;
    border-radius: 8px;
    overflow: hidden;
}

.aa-fshirje-import-panel-head {
    background: #f8fafc;
    border-bottom: 1px solid #d8e2f8;
    padding: .55rem .85rem;
    font-size: .82rem;
    font-weight: 700;
    color: #334155;
}

.aa-fshirje-import-panel-body {
    padding: 1rem .85rem 1.1rem;
}

.aa-fshirje-import-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.aa-fshirje-import-label {
    font-size: .82rem;
    color: #334155;
    margin: 0;
    min-width: 130px;
}

.aa-fshirje-import-input {
    flex: 1;
    min-width: 180px;
    max-width: 320px;
}

.aa-fshirje-import-pick { min-width: 72px; }

.aa-fshirje-import-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.aa-fshirje-import-delete {
    min-width: 180px;
    font-weight: 700;
    padding: .45rem 1rem;
}

.aa-fshirje-import-page .aa-program-toolbar {
    margin-top: .75rem;
    border-radius: 0 0 8px 8px;
}

.aa-portofolio-page {
    overflow: auto;
    padding-bottom: .75rem;
}

.aa-main:has(.aa-portofolio-page) {
    height: calc(100vh - var(--aa-header-h, 56px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.aa-portofolio-topbar { border-radius: 0; }

.aa-portofolio-import-input {
    width: 170px;
    max-width: 170px;
}

.aa-portofolio-section {
    margin-top: .65rem;
    flex: 0 0 auto;
    overflow: visible;
}

.aa-portofolio-section-head {
    background: #405189;
    color: #fff;
    padding: .45rem .75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .35rem;
}

.aa-portofolio-section-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.aa-portofolio-confidential {
    font-size: .62rem;
    opacity: .85;
    letter-spacing: .02em;
}

.aa-portofolio-lista-panel {
    margin-top: .75rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.aa-portofolio-lista-panel .aa-import-grid-wrap {
    max-height: calc(100vh - 240px);
}

.aa-portofolio-dega-block + .aa-portofolio-dega-block {
    border-top: 1px solid #e2e8f8;
}

.aa-portofolio-dega-label {
    background: #eef2fb;
    color: #405189;
    font-size: .78rem;
    font-weight: 700;
    padding: .4rem .75rem;
    border-bottom: 1px solid #d8e2f8;
}

.aa-portofolio-section .aa-import-grid-wrap {
    max-height: 360px;
}

@@media print {
    @page {
        size: A4 landscape;
        margin: 8mm 6mm;
    }

    body.aa-body .aa-sidebar,
    body.aa-body .aa-program-toolbar,
    body.aa-body .aa-program-topbar,
    body.aa-body .aa-portofolio-topbar,
    body.aa-body .aa-program-modal-backdrop {
        display: none !important;
    }

    body.aa-body .aa-shell {
        display: block !important;
    }

    body.aa-body .aa-main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    .aa-portofolio-page {
        overflow: visible !important;
        padding: 0 !important;
    }

    .aa-portofolio-section .aa-import-grid-wrap,
    .aa-portofolio-lista-panel .aa-import-grid-wrap {
        max-height: none !important;
        overflow: visible !important;
    }

    .aa-portofolio-section,
    .aa-portofolio-dega-block {
        page-break-inside: avoid;
    }

    .aa-import-grid {
        font-size: 7pt;
        table-layout: fixed;
    }

    .aa-import-grid th,
    .aa-import-grid td {
        padding: 2px 3px;
        word-wrap: break-word;
    }
}

.aa-sherndarje-page {
    overflow: auto;
    padding-bottom: .75rem;
}

.aa-main:has(.aa-sherndarje-page) {
    height: calc(100vh - var(--aa-header-h, 56px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.aa-sherndarje-grid-wrap {
    max-height: calc(100vh - 250px);
}

.aa-sherndarje-total-row td {
    background: #fef9c3;
    font-weight: 700;
}

@media (max-width: 991px) {
    .aa-main:has(.aa-sherndarje-page) { height: auto; overflow: visible; }
    .aa-sherndarje-page { overflow: visible; }
    .aa-sherndarje-grid-wrap { max-height: 480px; }
}

@media (max-width: 991px) {
    .aa-main:has(.aa-portofolio-page) { height: auto; overflow: visible; }
    .aa-portofolio-page { overflow: visible; }
    .aa-portofolio-import-input { width: 100%; max-width: none; }
    .aa-main:has(.aa-import-micro-page) { height: auto; overflow: visible; }
    .aa-import-micro-page { overflow: visible; }
    .aa-import-micro-page .aa-import-grid-wrap { max-height: 480px; }
    .aa-import-micro-controls { flex-direction: column; align-items: stretch; }
    .aa-import-micro-path { max-width: none; }
    .aa-fshirje-import-row { flex-direction: column; align-items: stretch; }
    .aa-fshirje-import-input { max-width: none; }
    .aa-fshirje-import-actions { justify-content: stretch; }
    .aa-fshirje-import-delete { width: 100%; }
}

.aa-import-grid thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    font-size: .72rem;
    white-space: nowrap;
    background: #f1f5f9;
}

.aa-import-grid tbody td {
    font-size: .78rem;
    vertical-align: middle;
    white-space: nowrap;
}

.aa-import-empty,
.aa-import-grid-note {
    padding: 1.5rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: .82rem;
}

.aa-import-action-form {
    display: flex;
    justify-content: flex-end;
}

.aa-import-btn { min-width: 160px; }

.aa-import-badge {
    font-size: .72rem;
    background: #dbeafe;
    color: #1e40af;
    padding: .15rem .5rem;
    border-radius: 999px;
}

@media (max-width: 991px) {
    .aa-import-input-row { flex-direction: column; align-items: stretch; }
    .aa-import-action-form { justify-content: stretch; }
    .aa-import-btn { width: 100%; }
}

.aa-mostrimi-page {
    overflow: auto;
    padding-bottom: .75rem;
    background: linear-gradient(180deg, #f4f7fc 0%, #eef2f8 100%);
    border-radius: 12px;
    padding: .85rem;
}

.aa-mostrimi-page .aa-mostrimi-topbar,
.aa-mostrimi-import-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem .75rem;
    padding: .85rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 4px 14px rgba(64, 81, 137, .05);
}

.aa-mostrimi-page .aa-mostrimi-topbar {
    margin-bottom: 1rem;
}

.aa-mostrimi-import-row {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8eef5;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e8eef5;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

.aa-mostrimi-stat {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #64748b;
    margin-left: auto;
    padding: .35rem .7rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 999px;
}

.aa-mostrimi-stat strong {
    color: #1e3a8a;
    font-size: .88rem;
    font-weight: 700;
}

.aa-mostrimi-section { margin-bottom: 1rem; }

.aa-mostrimi-main-panel {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06), 0 12px 32px rgba(64, 81, 137, .08);
    overflow: hidden;
}

.aa-mostrimi-main-panel .aa-program-panel-head {
    background: linear-gradient(135deg, #405189 0%, #2d3a66 100%);
    font-size: .8rem;
    letter-spacing: .06em;
    padding: .65rem 1rem;
}

.aa-mostrimi-main-panel .aa-program-panel-body {
    padding: 1rem 1.15rem 1.15rem;
    background: #fff;
}

.aa-mostrimi-import-input {
    width: 5.5rem;
    text-align: center;
    font-weight: 700;
}

.aa-mostrimi-types-form {
    margin-bottom: .75rem;
}

.aa-mostrimi-types-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem 1rem;
    margin-top: .85rem;
    padding: .85rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.aa-mostrimi-types-actions .aa-mostrimi-field {
    background: #fff;
    min-width: 7rem;
    padding: .5rem .65rem;
}

.aa-mostrimi-types-actions .aa-mostrimi-field .form-control {
    border: 1.5px solid #dbe3f0;
    border-radius: 10px;
    padding: .35rem .5rem;
    background: #f8fafc;
}

.aa-mostrimi-types-actions .aa-mostrimi-field .form-control:focus {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(64, 81, 137, .12) !important;
}

.aa-mostrimi-action-btn {
    min-width: 10rem;
    font-weight: 700;
    letter-spacing: .03em;
    border-radius: 10px;
    padding: .45rem 1rem;
    box-shadow: 0 2px 6px rgba(64, 81, 137, .18);
    transition: transform .15s ease, box-shadow .15s ease;
}

.aa-mostrimi-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 81, 137, .22);
}

.aa-mostrimi-action-btn.btn-outline-primary {
    box-shadow: none;
    background: #fff;
}

.aa-mostrimi-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1 20%, #cbd5e1 80%, transparent);
    margin: 1rem 0;
}

/* —— Modern inputs —— */
.aa-mostrimi-page .form-control,
.aa-mostrimi-page .form-select {
    border: 1.5px solid #dbe3f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    font-size: .88rem;
    padding: .42rem .65rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.aa-mostrimi-page .form-control:hover,
.aa-mostrimi-page .form-select:hover {
    border-color: #94a3b8;
    background: #fff;
}

.aa-mostrimi-page .form-control:focus,
.aa-mostrimi-page .form-select:focus {
    border-color: #405189;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(64, 81, 137, .12);
    outline: 0;
}

.aa-mostrimi-page .form-control-sm {
    min-height: 2.15rem;
}

.aa-mostrimi-page .aa-program-label,
.aa-mostrimi-field label.form-label,
.aa-mostrimi-control-block label.form-label,
.aa-mostrimi-audit-field .aa-program-label {
    display: block;
    margin-bottom: .35rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.25;
}

.aa-mostrimi-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: .7rem;
    align-items: stretch;
}

.aa-mostrimi-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .55rem .65rem .6rem;
    background: linear-gradient(180deg, #fafbfd 0%, #f4f7fb 100%);
    border: 1px solid #e4eaf3;
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.aa-mostrimi-field:hover {
    border-color: #c7d2e4;
    background: #fff;
}

.aa-mostrimi-field:focus-within {
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
}

.aa-mostrimi-field label.form-label {
    max-width: none;
    margin-bottom: 0;
    white-space: normal;
}

.aa-mostrimi-field .form-control {
    border: 0;
    background: transparent;
    box-shadow: none !important;
    padding: .1rem 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a8a;
}

.aa-mostrimi-field .form-control:focus {
    background: transparent;
}

.aa-mostrimi-field .aa-mostrimi-name-input {
    margin-top: .15rem !important;
    border-top: 1px dashed #dbe3f0 !important;
    border-radius: 0 0 8px 8px !important;
    padding-top: .35rem !important;
    font-size: .75rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-align: left;
}

.aa-mostrimi-num-input {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.aa-mostrimi-count-input {
    width: 5.5rem;
    min-width: 5.5rem;
    max-width: 5.5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
}

.aa-mostrimi-name-input {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.aa-mostrimi-count-input-wide {
    width: 100%;
    max-width: 100%;
    text-align: center;
    font-weight: 700;
}

.aa-mostrimi-criteria-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(160px, 200px) minmax(0, 1fr);
    gap: .85rem;
    min-height: 214px;
    align-items: stretch;
    padding: .65rem;
    background: linear-gradient(180deg, #fafbfd 0%, #f6f8fc 100%);
    border: 1px solid #e4eaf3;
    border-radius: 14px;
}

.aa-mostrimi-criteria-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem .55rem;
    align-content: start;
    padding: .35rem .25rem;
}

.aa-mostrimi-criteria-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .38rem .5rem;
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all .15s ease;
}

.aa-mostrimi-criteria-check:hover {
    background: #eef2ff;
    color: #1e3a8a;
    border-color: #93c5fd;
}

.aa-mostrimi-check-box {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 2px solid #94a3b8;
    border-radius: 5px;
    background: #fff;
    position: relative;
    transition: all .15s ease;
}

.aa-mostrimi-criteria-check.is-active {
    color: #1e3a8a;
    background: #eef2ff;
    border-color: #405189;
    box-shadow: 0 2px 8px rgba(64, 81, 137, .12);
}

.aa-mostrimi-criteria-check.is-active .aa-mostrimi-check-box {
    border-color: #405189;
    background: linear-gradient(135deg, #405189 0%, #2d3a66 100%);
}

.aa-mostrimi-criteria-check.is-active .aa-mostrimi-check-box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.aa-mostrimi-criteria-controls-col {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: .35rem .55rem;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.aa-mostrimi-criteria-form {
    height: 100%;
}

.aa-mostrimi-control-block label.form-label {
    margin-bottom: .25rem;
}

.aa-mostrimi-total-block {
    text-align: center;
    margin-top: .15rem;
}

.aa-mostrimi-criteria-grid-pane {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.aa-mostrimi-criteria-table-scroll {
    flex: 1;
    overflow: auto;
    max-height: 166px;
}

.aa-mostrimi-criteria-table .form-control {
    min-height: 1.85rem;
    padding: .25rem .4rem;
    font-size: .82rem;
    border-radius: 8px;
}

.aa-mostrimi-grid-panel {
    margin-top: .85rem;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06), 0 12px 32px rgba(64, 81, 137, .08);
    overflow: hidden;
}

.aa-mostrimi-grid-panel .aa-program-panel-body {
    min-height: 280px;
    background: #fff;
}

.aa-mostrimi-sample-scroll {
    max-height: calc(100vh - 520px);
    min-height: 280px;
}

.aa-mostrimi-audit-search {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.aa-mostrimi-sample-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1rem;
    min-width: 5.5rem;
    padding: .35rem .75rem;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1.5px solid #93c5fd;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(64, 81, 137, .12);
}

.aa-mostrimi-sample-total-label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1;
}

.aa-mostrimi-sample-total strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.1;
}

.aa-mostrimi-audit-search .btn {
    width: 100%;
    white-space: nowrap;
}

.aa-mostrimi-audit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem 1rem;
}

.aa-mostrimi-audit-field {
    flex: 0 0 auto;
    min-width: 150px;
}

.aa-mostrimi-audit-field-date {
    min-width: 160px;
}

.aa-mostrimi-dept-hint {
    margin-top: .25rem;
    font-size: .72rem;
    font-weight: 600;
    color: #405189;
    letter-spacing: .02em;
}

.aa-mostrimi-criteria-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
    font-size: .72rem;
    background: #f1f5f9;
}

.aa-mostrimi-criteria-table td {
    font-size: .78rem;
    vertical-align: middle;
}

.aa-mostrimi-pct-cell {
    width: 4.75rem;
}

.aa-mostrimi-criteria-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: #64748b;
    font-size: .85rem;
    text-align: center;
    background: #fafbfd;
}

.aa-mostrimi-total {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--aa-primary-dark);
    padding: .55rem .85rem;
    background: #fff;
    border: 1.5px solid #dbeafe;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(64, 81, 137, .06);
}

.aa-mostrimi-total strong {
    font-size: 1.05rem;
    color: #1e3a8a;
}

.aa-mostrimi-total.is-valid {
    background: #ecfdf5;
    border-color: #86efac;
    color: #047857;
}

.aa-mostrimi-total.is-valid strong {
    color: #047857;
}

.aa-mostrimi-total.is-invalid {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.aa-mostrimi-total.is-invalid strong {
    color: #b91c1c;
}

.aa-mostrimi-footer-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
    margin-top: .85rem;
}

.aa-mostrimi-page .aa-table-scroll {
    max-height: 420px;
    overflow: auto;
}

.aa-mostrimi-page .aa-program-toolbar {
    border-radius: 12px;
    margin-top: .85rem;
    box-shadow: 0 4px 14px rgba(21, 43, 82, .2);
}

.aa-mostrimi-page .aa-program-toolbar .btn {
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: .02em;
}

.aa-mostrimi-page .btn-primary {
    background: linear-gradient(135deg, #405189 0%, #334874 100%);
    border-color: #334874;
}

.aa-mostrimi-page .btn-primary:hover {
    background: linear-gradient(135deg, #334874 0%, #2d3a66 100%);
    border-color: #2d3a66;
}

/* EKZEKUTIMI — grid fills down to toolbar */
.aa-ekzekutimi-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
}

.aa-ekzekutimi-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.aa-ekzekutimi-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: .85rem 1rem !important;
}

.aa-ekzekutimi-body .aa-mostrimi-import-row,
.aa-ekzekutimi-body .aa-program-empty,
.aa-ekzekutimi-body > .small {
    flex-shrink: 0;
}

.aa-ekzekutimi-grid-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    height: 100%;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.aa-koment-audituari-grid th,
.aa-koment-audituari-grid td {
    vertical-align: top;
}

.aa-koment-audituari-grid .aa-koment-context-col {
    white-space: normal;
    min-width: 200px;
    max-width: 280px;
    font-weight: 500;
}

.aa-koment-audituari-grid .aa-grid-cell-wrap {
    white-space: normal;
    min-width: 140px;
    max-width: 260px;
}

.aa-koment-audituari-grid .aa-gjetja-col,
.aa-koment-audituari-grid .aa-koment-col {
    min-width: 220px;
    max-width: 320px;
}

.aa-koment-audituari-grid textarea.form-control {
    min-height: 4rem;
    resize: vertical;
}

.aa-menaxhim-gjetje-grid .aa-menaxhim-row.is-selected td {
    background: #e8eef9;
}

.aa-menaxhim-main-scroll {
    max-height: 42vh;
}

.aa-menaxhim-details-host {
    flex-shrink: 0;
}

.aa-menaxhim-details-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.aa-menaxhim-detail-panel {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.aa-menaxhim-detail-head {
    background: #405189;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: .45rem .65rem;
    letter-spacing: .02em;
}

.aa-menaxhim-detail-body {
    flex: 1;
    min-height: 0;
    max-height: 220px;
    overflow: auto;
    padding: .25rem;
}

@@media (max-width: 1100px) {
    .aa-menaxhim-details-panels {
        grid-template-columns: 1fr;
    }
}

.aa-menaxher-main-scroll {
    max-height: 42vh;
}

.aa-menaxher-grid .aa-menaxher-row.is-selected td {
    background: #e8eef9;
}

.aa-menaxher-grid .aa-sel-col {
    width: 42px;
    text-align: center;
}

.aa-menaxher-comment-panel {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: .75rem 1rem;
}

.aa-menaxher-comment {
    min-height: 120px;
    resize: vertical;
}

.aa-ekzekutimi-edit-form {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.aa-ekzekutimi-page .aa-program-toolbar {
    flex-shrink: 0;
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.aa-ekzekutimi-page .aa-table-scroll {
    max-height: none;
}

.aa-grid-search-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    flex-shrink: 0;
    margin-bottom: .65rem;
    padding: .55rem .75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #dbe3f0;
    border-radius: 12px;
}

.aa-grid-search-input {
    flex: 1 1 220px;
    max-width: 420px;
    min-height: 2.15rem;
    border-radius: 10px !important;
    font-weight: 600;
}

.aa-grid-search-count {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: #405189;
    margin-left: auto;
}

.aa-ekzekutimi-body .aa-grid-search-bar {
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .aa-mostrimi-criteria-layout {
        grid-template-columns: 1fr;
    }

    .aa-mostrimi-criteria-controls-col {
        border-left: 0;
        border-right: 0;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        padding: .75rem 0;
    }

    .aa-mostrimi-criteria-checks {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .aa-mostrimi-fields-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .aa-mostrimi-stat {
        margin-left: 0;
    }

    .aa-mostrimi-sample-scroll {
        max-height: 480px;
    }
}

/* RAPORTI FINAL — raport ekzekutimi */
.aa-main:has(.aa-raport-page) {
    height: calc(100vh - var(--aa-topbar-h, 52px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.aa-raport-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: .75rem 1rem 1rem;
    gap: .65rem;
}

.aa-raport-header {
    background: linear-gradient(180deg, #405189, #364574);
    color: #fff;
    border-radius: 8px;
    padding: .55rem 1rem;
    flex-shrink: 0;
}

.aa-raport-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.aa-raport-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: .55rem;
}

.aa-raport-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    padding: .55rem .75rem;
    background: #f4f6fc;
    border: 1px solid #d8e0f4;
    border-radius: 8px;
    flex-shrink: 0;
}

.aa-raport-label {
    font-size: .78rem;
    font-weight: 700;
    color: #405189;
    margin: 0;
}

.aa-raport-audit-input {
    width: 140px;
    border-radius: 6px;
    font-weight: 600;
}

.aa-raport-btn-ai {
    background: #405189;
    border-color: #405189;
}

.aa-raport-ai-status {
    margin-left: auto;
    font-size: .72rem;
    color: #64748b;
    font-weight: 600;
}

.aa-raport-approval-status {
    font-size: .72rem;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    padding: .15rem .55rem;
}

.aa-raport-send-approval {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-left: .25rem;
    padding-left: .5rem;
    border-left: 1px solid rgba(255,255,255,.25);
}

.aa-raport-send-label {
    font-size: .72rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
    white-space: nowrap;
}

.aa-raport-send-select {
    min-width: 180px;
    max-width: 220px;
}

.aa-raport-toolbar .aa-raport-send-approval {
    border-left: 1px solid #d8e0f4;
    padding-left: .55rem;
    margin-left: .15rem;
}

.aa-raport-toolbar .aa-raport-send-label {
    color: #405189;
}

.aa-raport-ocr-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    padding: .45rem .75rem;
    background: #f8faff;
    border: 1px dashed #c5d0ef;
    border-radius: 8px;
}

.aa-raport-ocr-file {
    max-width: 320px;
}

.aa-raport-risk-row {
    display: flex;
    gap: .75rem;
    flex-shrink: 0;
}

.aa-raport-risk {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 140px;
    padding: .35rem .65rem;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,.08);
}

.aa-raport-risk-high { background: #f8d7da; }
.aa-raport-risk-medium { background: #fff3cd; }
.aa-raport-risk-low { background: #fff9db; }

.aa-raport-risk-label {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    min-width: 52px;
}

.aa-raport-risk-input {
    width: 56px;
    border: 0;
    background: rgba(255,255,255,.75);
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
    font-size: .9rem;
    padding: .15rem;
}

.aa-raport-workspace {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: .65rem;
    flex: 1;
    min-height: 0;
}

.aa-raport-nav {
    background: linear-gradient(180deg, #405189 0%, #2f3d6b 100%);
    border-radius: 8px;
    padding: .45rem .35rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.aa-raport-nav-btn {
    border: 0;
    background: transparent;
    color: #dbe4ff;
    text-align: left;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.25;
    padding: .45rem .55rem;
    border-radius: 6px;
    cursor: pointer;
}

.aa-raport-nav-btn:hover,
.aa-raport-nav-btn.active {
    background: rgba(255,255,255,.14);
    color: #fff;
}

.aa-raport-editor {
    position: relative;
    background: #d9dde6;
    border: 1px solid #b8c0d4;
    border-radius: 8px;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.25rem;
}

.aa-raport-field {
    display: none;
}

.aa-raport-field.is-active {
    display: block;
}

.aa-raport-rich-panel {
    width: 100%;
    max-width: 210mm;
    min-height: 520px;
    margin: 0 auto;
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .12);
    overflow: hidden;
}

.aa-raport-rich-panel.is-active {
    display: flex;
    flex-direction: column;
}

.aa-raport-quill-host {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.aa-raport-quill-host .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: .45rem .65rem;
    font-family: "Segoe UI", sans-serif;
}

.aa-raport-quill-host .ql-container.ql-snow {
    border: 0;
    flex: 1;
    font-family: "Calibri", "Segoe UI", sans-serif;
    font-size: 11pt;
    line-height: 1.55;
    color: #111;
}

.aa-raport-quill-host .ql-editor {
    min-height: 460px;
    padding: 18mm 16mm;
}

.aa-raport-quill-host .ql-editor.ql-blank::before {
    color: #94a3b8;
    font-style: normal;
}

.aa-raport-rich-panel.has-toc-preview .aa-raport-quill-host .ql-editor {
    min-height: 320px;
}

.aa-raport-toc-preview {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: .65rem .85rem .75rem;
}

.aa-raport-toc-preview-head {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #405189;
    margin-bottom: .45rem;
}

.aa-raport-toc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    background: #fff;
}

.aa-raport-toc-table th,
.aa-raport-toc-table td {
    border: 1px solid #dbe3f0;
    padding: .3rem .45rem;
    text-align: left;
}

.aa-raport-toc-table th:last-child,
.aa-raport-toc-table td:last-child {
    width: 5rem;
    text-align: center;
    font-weight: 700;
}

.aa-raport-toc-table th {
    background: #eef2fb;
}

.aa-raport-toc-empty {
    margin: 0;
    font-size: .8rem;
    color: #64748b;
}

.aa-raport-findings {
    max-width: 210mm;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .12);
    min-height: 520px;
    padding: .5rem;
    overflow: auto;
}

.aa-raport-findings-scroll {
    max-height: 100%;
    overflow: auto;
}

.aa-raport-empty {
    padding: 2rem;
    color: #64748b;
}

.aa-raport-footer {
    display: flex;
    gap: .5rem;
    padding: .55rem .75rem;
    background: #405189;
    border-radius: 8px;
    flex-shrink: 0;
}

.aa-raport-footer .btn-outline-light {
    border-color: rgba(255,255,255,.45);
    color: #fff;
}

@media (max-width: 992px) {
    .aa-main:has(.aa-raport-page) { height: auto; overflow: visible; }
    .aa-raport-workspace { grid-template-columns: 1fr; }
    .aa-raport-nav {
        flex-direction: row;
        flex-wrap: wrap;
        max-height: 160px;
    }
    .aa-raport-rich-panel { min-height: 320px; }
    .aa-raport-quill-host .ql-editor { min-height: 280px; }
}

/* ---- Manuali i përdoruesit ---- */
.aa-manual-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 1.25rem 2rem;
}

.aa-manual-header {
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid #405189;
}

.aa-manual-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e2f5c;
    margin: 0 0 .25rem;
}

.aa-manual-subtitle {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
}

.aa-manual-body {
    font-size: .92rem;
    line-height: 1.55;
    color: #1e293b;
}

.aa-manual-body h1 { font-size: 1.35rem; margin: 1.5rem 0 .75rem; color: #1e2f5c; }
.aa-manual-body h2 { font-size: 1.15rem; margin: 1.25rem 0 .5rem; color: #334155; border-bottom: 1px solid #e2e8f0; padding-bottom: .25rem; }
.aa-manual-body h3 { font-size: 1rem; margin: 1rem 0 .4rem; color: #405189; }
.aa-manual-body p { margin: 0 0 .65rem; }
.aa-manual-body ul, .aa-manual-body ol { margin: 0 0 .75rem 1.25rem; padding: 0; }
.aa-manual-body li { margin-bottom: .25rem; }
.aa-manual-body table {
    width: 100%;
    border-collapse: collapse;
    margin: .75rem 0 1rem;
    font-size: .85rem;
}
.aa-manual-body th, .aa-manual-body td {
    border: 1px solid #cbd5e1;
    padding: .35rem .5rem;
    text-align: left;
    vertical-align: top;
}
.aa-manual-body th { background: #f1f5f9; font-weight: 700; }
.aa-manual-body code {
    background: #f1f5f9;
    padding: .1rem .3rem;
    border-radius: 3px;
    font-size: .85em;
}
.aa-manual-body pre {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: .75rem 1rem;
    overflow-x: auto;
    font-size: .82rem;
    margin: .75rem 0;
}
.aa-manual-body blockquote {
    border-left: 3px solid #405189;
    margin: .75rem 0;
    padding: .35rem .75rem;
    background: #f8fafc;
    color: #475569;
}
.aa-manual-body hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.25rem 0;
}
.aa-manual-body a { color: #405189; }

.aa-manual-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: .75rem auto 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(30, 47, 92, .08);
}

.aa-manual-body em {
    display: block;
    text-align: center;
    font-size: .82rem;
    color: #64748b;
    margin: -.35rem 0 1rem;
    font-style: italic;
}

/* Heat Map & API docs panels */
.aa-compliance-section { margin-bottom: 1.75rem; }
.aa-compliance-section-title {
    font-size: .95rem; font-weight: 700; color: var(--aa-primary-dark);
    border-bottom: 2px solid var(--aa-primary); padding-bottom: .35rem; margin-bottom: 1rem;
}
.aa-compliance-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    box-shadow: 0 2px 8px rgba(30, 47, 92, .05);
}

.aa-heatmap-wrap { max-width: 560px; margin: 0 auto 1rem; }
.aa-heatmap-grid {
    display: grid;
    grid-template-columns: 2.5rem repeat(5, 1fr);
    grid-template-rows: 1.75rem repeat(5, 72px);
    gap: 4px;
}
.aa-heatmap-corner { grid-column: 1; grid-row: 1; }
.aa-heatmap-axis-x, .aa-heatmap-axis-y {
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 600; color: #64748b;
}
.aa-heatmap-axis-x { grid-row: 1; }
.aa-heatmap-axis-y { grid-column: 1; }
.aa-heatmap-y-label, .aa-heatmap-x-label {
    text-align: center; font-size: .78rem; font-weight: 600; color: #475569; margin: .5rem 0;
}
.aa-heat-cell {
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; font-weight: 700; font-size: 1.1rem;
    border: 1px solid rgba(0,0,0,.06);
}
.aa-heat-empty { background: #f1f5f9; color: #94a3b8; }
.aa-heat-low { background: #fef3c7; color: #92400e; }
.aa-heat-medium { background: #fde68a; color: #78350f; }
.aa-heat-high { background: #fecaca; color: #991b1b; }
.aa-deadline-overdue { background: #fef2f2 !important; }
.aa-deadline-urgent { background: #fffbeb !important; }
.aa-deadline-panel { border-left: 4px solid #f59e0b; }

/* Dashboard KPI & workflow sidebar */
.aa-kpi-row { margin-top: .25rem; }
.aa-kpi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: .85rem 1rem;
    height: 100%;
    box-shadow: 0 2px 8px rgba(30, 47, 92, .04);
    border-left: 4px solid var(--aa-primary);
}
.aa-kpi-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #64748b;
    margin-bottom: .25rem;
}
.aa-kpi-value {
    display: block;
    font-size: 1.45rem;
    line-height: 1.2;
    color: var(--aa-primary-dark);
}
.aa-kpi-plan { border-left-color: #6366f1; }
.aa-kpi-process { border-left-color: #0ea5e9; }
.aa-kpi-done { border-left-color: #22c55e; }
.aa-kpi-plan-real { border-left-color: #8b5cf6; }
.aa-kpi-findings { border-left-color: #f59e0b; }
.aa-kpi-late { border-left-color: #ef4444; }
.aa-kpi-risk { border-left-color: #dc2626; }
.aa-kpi-fraud { border-left-color: #b91c1c; }
.aa-fraud-panel { border-left: 4px solid #dc2626; }

.aa-nav-workflow {
    padding-left: 1.75rem !important;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: rgba(255,255,255,.95);
}
.aa-nav-workflow .aa-nav-dash {
    color: #fde68a;
    font-weight: 800;
    margin-right: .2rem;
}
.aa-nav-workflow.active {
    background: rgba(255,255,255,.14);
    color: #fff;
}
.aa-nav-workflow strong {
    font-weight: 800;
}

/* Menytë e reja sipas planit të auditimit */
.aa-nav-new {
    font-weight: 800 !important;
    color: #fff !important;
}
.aa-nav-new strong {
    font-weight: 800;
}
.aa-nav-sublink.aa-nav-new.active {
    color: #fff !important;
    background: rgba(255,255,255,.18);
}
.aa-nav-group-new .aa-nav-group-label {
    font-weight: 800;
    color: #fde68a;
}

.aa-row-clickable {
    cursor: pointer;
}
.aa-row-clickable:hover {
    background: rgba(64, 81, 137, .1) !important;
}
.aa-mashtrimet-grid .aa-row-clickable td:first-child {
    font-weight: 600;
    color: var(--aa-primary-dark);
}
.aa-mashtrimet-grid .aa-priority-high {
    background: #dc3545;
    color: #fff;
}
.aa-mashtrimet-grid .aa-priority-med {
    background: #fd7e14;
    color: #fff;
}
.aa-mashtrimet-grid .aa-priority-low {
    background: #6c757d;
    color: #fff;
}
.aa-mashtrimet-grid .aa-priority-overdue {
    background: #212529;
    color: #fff;
}
