/* HR Asociații — variabile globale (specificație) */
:root {
    --color-primary: #D97706;
    --color-primary-light: #F59E0B;
    --color-primary-dark: #92400E;
    --color-primary-darker: #78350F;
    --color-accent: #FBBF24;
    --bg-main: linear-gradient(160deg, #FFFBF0 0%, #FFF7ED 25%, #FEF3E2 50%, #FFF9F0 75%, #FFFDF8 100%);
    --bg-card: rgba(255, 255, 255, 0.65);
    --bg-card-hover: rgba(255, 255, 255, 0.85);
    --border-light: rgba(217, 119, 6, 0.08);
    --border-medium: rgba(217, 119, 6, 0.15);
    --text-primary: #78350F;
    --text-secondary: #92400E;
    --text-muted: rgba(180, 83, 9, 0.5);
    --shadow-card: 0 4px 20px rgba(180, 83, 9, 0.04);
    --color-success: #22C55E;
    --color-warning: #FBBF24;
    --color-danger: #EF4444;
    --color-info: #3B82F6;
    --sidebar-width: 270px;
    --sidebar-collapsed: 72px;
    --header-height: 74px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-main);
    background-attachment: fixed;
    line-height: 1.5;
}

/* Ecrane auth fullscreen */
.page-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

.auth-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 60% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 45%);
    animation: floatGlow 18s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    from { opacity: 0.85; transform: scale(1); }
    to { opacity: 1; transform: scale(1.03); }
}

.auth-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.fade-in {
    animation: fadeIn 0.55s ease-out both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    margin-bottom: 1rem;
    filter: drop-shadow(0 8px 24px rgba(217, 119, 6, 0.25));
}

.auth-logo img {
    border-radius: 0;
    background: transparent;
}

.auth-logo-fallback {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-card), 0 0 40px rgba(251, 191, 36, 0.15);
}

.auth-title {
    margin: 0 0 0.35rem;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.auth-subtitle {
    margin: 0 0 1.75rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    padding: 1.75rem;
    text-align: left;
}

.auth-card {
    margin-top: 0.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-medium);
    border-radius: var(--border-radius);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 22px rgba(217, 119, 6, 0.45);
}

.btn-block {
    width: 100%;
    margin-top: 0.25rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

.btn-ghost:hover {
    background: var(--bg-card-hover);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #B91C1C;
}

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

/* --- Selectare asociație (Faza 2) --- */
.auth-wrap--wide {
    max-width: 560px;
}

.page-select-asoc .form-input {
    margin-bottom: 0.75rem;
}

.select-asoc-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.link-logout-discrete {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.link-logout-discrete:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.35);
}

.select-asoc-card {
    max-height: min(60vh, 420px);
    display: flex;
    flex-direction: column;
}

.select-asoc-hint {
    margin: 0.25rem 0 0.5rem;
}

.asoc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
    border-top: 1px solid var(--border-light);
}

.asoc-item-form {
    margin: 0;
}

.asoc-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    border: none;
    border-bottom: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    font-family: inherit;
    color: var(--text-primary);
    transition: background 0.2s, box-shadow 0.2s;
}

.asoc-item:hover {
    background: var(--bg-card-hover);
    box-shadow: inset 3px 0 0 var(--color-primary);
}

.asoc-item-cif {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary-dark);
}

.asoc-item-nume {
    display: block;
    font-weight: 600;
    margin-top: 0.15rem;
}

.asoc-item-legal {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.12rem;
    line-height: 1.3;
}

.asoc-item-adr {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.asoc-item[hidden],
.asoc-list li[hidden] {
    display: none !important;
}

/* --- Layout aplicație (sidebar + header) --- */
.app-layout {
    margin: 0;
    min-height: 100vh;
    display: flex;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-main);
    background-attachment: fixed;
}

.app-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.1) 0%, transparent 42%),
        radial-gradient(circle at 90% 10%, rgba(217, 119, 6, 0.08) 0%, transparent 38%),
        radial-gradient(circle at 70% 90%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
}

.app-shell {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 1;
    transition: margin-left 0.25s ease;
}

.app-layout.sidebar-collapsed .app-shell {
    margin-left: var(--sidebar-collapsed);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    z-index: 40;
    display: flex;
    flex-direction: column;
    background: rgba(255, 251, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--border-medium);
    box-shadow: 4px 0 24px rgba(120, 53, 15, 0.06);
    transition: width 0.25s ease, transform 0.25s ease;
}

.app-layout.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed);
}

.sidebar-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 1rem 0.85rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.sidebar-brand-sigla-link {
    display: block;
    flex: 1;
    min-width: 0;
    text-decoration: none;
}

.sidebar-brand-sigla {
    display: block;
    width: 100%;
    max-width: 210px;
    height: auto;
    background: transparent;
}

.brand-sigla {
    display: block;
    max-width: 100%;
    height: auto;
    background: transparent;
}

.auth-logo--sigla {
    margin-bottom: 1.25rem;
}

.auth-sigla {
    width: min(320px, 92vw);
    margin: 0 auto;
}

.doc-preview-dialog {
    width: min(1100px, 96%);
    height: min(92vh, 920px);
}

.doc-preview-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background: #525659;
    min-height: 0;
}

.doc-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
}

.doc-preview-body .pdf-modal-frame {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.app-layout.sidebar-collapsed .sidebar-brand-sigla-link {
    display: none;
}

.sidebar-close-mobile {
    display: none;
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
}

.sidebar-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.sidebar-logo-img {
    border-radius: 10px;
}

.sidebar-logo-text {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 800;
    color: var(--color-primary-darker);
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
}

.sidebar-logo-text.is-visible {
    display: flex;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: opacity 0.2s;
}

.app-layout.sidebar-collapsed .sidebar-brand-text {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

.sidebar-brand-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.sidebar-brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Schimbare asociație (sidebar) */
.sidebar-asoc {
    position: relative;
    margin: 0 0.75rem 0.5rem;
    flex-shrink: 0;
}

.sidebar-asoc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
    padding: 0.85rem 1rem;
    margin-bottom: 0.15rem;
    border: 1px solid rgba(217, 119, 6, 0.35);
    border-radius: var(--border-radius);
    background: rgba(217, 119, 6, 0.14);
    color: #b91c1c;
    font: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45), 0 2px 6px rgba(194, 65, 12, 0.25);
}

.sidebar-asoc-toggle:hover {
    background: rgba(217, 119, 6, 0.18);
    color: var(--text-primary);
}

.sidebar-asoc-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.sidebar-asoc-cif {
    font-weight: 800;
    font-size: 0.95rem;
    color: #b91c1c;
}

.sidebar-asoc-nume {
    font-size: 0.82rem;
    font-weight: 600;
    color: #991b1b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-asoc-chev {
    flex-shrink: 0;
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.sidebar-asoc.is-open .sidebar-asoc-chev {
    transform: rotate(180deg);
}

.sidebar-asoc-panel {
    margin-top: 0.35rem;
    padding: 0;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(120, 53, 15, 0.08);
    max-height: min(50vh, 18rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-asoc-search {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid rgba(217, 119, 6, 0.35);
    background: rgba(255, 255, 255, 0.85);
    padding: 0.85rem 0.9rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #b91c1c;
    box-shadow: inset 0 2px 8px rgba(217, 119, 6, 0.2);
}

.sidebar-asoc-search::placeholder {
    color: #dc2626;
    font-weight: 700;
    opacity: 0.85;
}

.sidebar-asoc-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0.25rem 0.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.sidebar-asoc-panel--float {
    position: fixed;
    z-index: 2500;
    left: calc(var(--sidebar-collapsed) + 0.5rem);
    top: 5.5rem;
    width: min(280px, calc(100vw - var(--sidebar-collapsed) - 1.5rem));
    max-height: min(60vh, 22rem);
}

@media (max-width: 900px) {
    .sidebar-asoc-panel--float {
        position: absolute;
        left: 0.5rem !important;
        right: 0.5rem;
        width: auto !important;
        top: 100%;
        margin-top: 0.35rem;
    }
}

.sidebar-asoc-li[hidden] {
    display: none !important;
}

.sidebar-asoc-form {
    margin: 0;
}

.sidebar-asoc-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    width: 100%;
    padding: 0.78rem 0.75rem;
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.4);
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-asoc-item:hover {
    background: var(--bg-card-hover);
    box-shadow: inset 3px 0 0 var(--color-primary);
}

.sidebar-asoc-item.is-current {
    background: rgba(217, 119, 6, 0.12);
    font-weight: 600;
    cursor: default;
    box-shadow: inset 3px 0 0 var(--color-primary-dark);
}

.sidebar-asoc-item.is-current:hover {
    background: rgba(217, 119, 6, 0.14);
}

.sidebar-asoc-item-cif {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-primary-darker);
}

.sidebar-asoc-item-nume {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

.sidebar-asoc-item-legal {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.25;
    display: block;
    max-width: 100%;
}

.sidebar-asoc-empty {
    margin: 0;
    padding: 0.5rem 0.75rem 0.35rem;
    font-size: 0.8rem;
    text-align: center;
}

.sidebar-asoc-altlink {
    display: block;
    font-size: 0.72rem;
    text-align: center;
    color: var(--color-primary-dark);
    padding: 0.35rem 0.5rem 0.5rem;
    border-top: 1px solid var(--border-light);
    background: rgba(255, 251, 235, 0.5);
}

.sidebar-asoc--single {
    margin: 0 0.75rem 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    background: rgba(217, 119, 6, 0.1);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sidebar-asoc-single-label {
    display: block;
    font-weight: 700;
    color: var(--color-primary-darker);
}

.sidebar-asoc-single-nume {
    display: block;
    margin-top: 0.15rem;
    line-height: 1.3;
}

.app-layout.sidebar-collapsed .sidebar-asoc-nume,
.app-layout.sidebar-collapsed .sidebar-asoc-single-nume {
    display: none;
}

.app-layout.sidebar-collapsed .sidebar-asoc-toggle {
    padding: 0.45rem 0.35rem;
    justify-content: center;
}

.app-layout.sidebar-collapsed .sidebar-asoc-cif {
    font-size: 0.72rem;
}

.app-layout.sidebar-collapsed .sidebar-asoc--single {
    text-align: center;
}

.req-mark {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.25rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-primary);
}

.sidebar-link.is-active {
    background: rgba(217, 119, 6, 0.12);
    color: var(--color-primary-darker);
    font-weight: 600;
}

.sidebar-icon {
    width: 1.5rem;
    text-align: center;
    opacity: 0.85;
    flex-shrink: 0;
}

.app-layout.sidebar-collapsed .sidebar-label,
.app-layout.sidebar-collapsed .sidebar-badge {
    display: none;
}

.app-layout.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 0.65rem 0.5rem;
}

.sidebar-badge {
    margin-left: auto;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--color-danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-layout.sidebar-collapsed .sidebar-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    margin: 0;
    display: inline-flex;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
}

.sidebar-user-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.app-layout.sidebar-collapsed .sidebar-user {
    display: none;
}

.sidebar-logout {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--color-primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.sidebar-logout:hover {
    text-decoration: underline;
}

.app-layout.sidebar-collapsed .sidebar-logout {
    display: none;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(120, 53, 15, 0.25);
    z-index: 35;
}

.app-header {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.app-header-titles {
    min-width: 0;
}

.app-header-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.app-header-sub {
    margin: 0.1rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50vw;
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-header-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-medium);
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    border-color: var(--color-primary-light);
}

.btn-icon-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: var(--text-secondary);
}

.btn-bell {
    position: relative;
    text-decoration: none;
    font-size: 1.1rem;
}

.header-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--color-danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
}

.app-main {
    flex: 1;
    padding: 1.25rem;
    overflow-x: hidden;
}

.app-footer {
    padding: 0.65rem 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.35);
}

/* Dashboard */
.dashboard-band {
    border-radius: var(--radius-lg, 12px);
    padding: 1rem;
    margin-bottom: 1rem;
}

.dashboard-band--global {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 55%, #fcd34d 100%);
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.dashboard-band--asoc {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 55%, #fdba74 100%);
    border: 1px solid rgba(234, 88, 12, 0.22);
    margin-bottom: 1.25rem;
}

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

.dashboard-grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.dashboard-band-label {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary-darker);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-asoc-banner {
    text-align: center;
    margin: 0 0 1.25rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
    border: 2px solid rgba(234, 88, 12, 0.35);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 4px 24px rgba(120, 53, 15, 0.08);
}

.dashboard-asoc-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary-dark);
}

.dashboard-asoc-cif {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dashboard-asoc-title {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
}

.asoc-curenta {
    color: #dc2626 !important;
    font-weight: 700;
}

.app-header-asoc.asoc-curenta {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.dashboard-asoc-adm {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
    color: var(--color-primary-dark);
}

.stat-card--click {
    text-decoration: none !important;
    color: inherit;
    display: block;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.65);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.stat-card--click:hover,
.stat-card--click:focus-visible {
    text-decoration: none !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(120, 53, 15, 0.18);
    border-color: var(--color-primary-dark);
    background: rgba(255, 255, 255, 0.92);
}

.stat-card--click .stat-card-label,
.stat-card--click .stat-card-hint,
.stat-card--click .stat-card-value,
.stat-card--click .stat-card-cta {
    text-decoration: none !important;
}

.stat-card-cta {
    display: inline-block;
    margin-top: 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    text-decoration: none !important;
}

.dashboard-co-alerts {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(120, 53, 15, 0.15);
}

.dashboard-co-alert {
    margin: 0.25rem 0;
    font-size: 0.85rem;
}

.dashboard-co-alert a {
    color: var(--color-primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.dashboard-co-alert a:hover {
    text-decoration: underline;
}

.list-search {
    min-width: 12rem;
    max-width: 18rem;
}

.list-search-empty::after {
    content: 'Niciun rezultat pentru căutare.';
    display: block;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cell-audit {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.app-header-adm {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card {
    padding: 1.25rem;
}

.stat-card-label {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-card-value {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-darker);
    line-height: 1.1;
}

.stat-card-value--sm {
    font-size: 1.25rem;
}

.stat-card-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.panel {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

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

.panel-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.panel-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    text-decoration: none;
}

.panel-link:hover {
    text-decoration: underline;
}

.notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notif-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item.is-unread {
    border-left: 3px solid var(--color-primary);
    padding-left: 0.65rem;
    margin-left: -0.65rem;
}

.notif-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notif-msg {
    display: block;
    line-height: 1.35;
}

.notif-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.notif-list--full {
    max-height: min(70vh, 32rem);
    overflow-y: auto;
}

.notif-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.notif-row .form-inline {
    flex-shrink: 0;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.45);
}

@media (max-width: 900px) {
    .app-shell {
        margin-left: 0;
    }

    .app-layout.sidebar-collapsed .app-shell {
        margin-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        width: min(var(--sidebar-width), 88vw);
    }

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

    .app-layout.sidebar-collapsed .sidebar {
        width: min(var(--sidebar-width), 88vw);
        transform: translateX(-100%);
    }

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

    .sidebar-close-mobile {
        display: block;
    }

    .sidebar-brand-text,
    .sidebar-label,
    .sidebar-badge,
    .sidebar-user,
    .sidebar-logout {
        opacity: 1 !important;
        width: auto !important;
        pointer-events: auto !important;
    }

    .app-layout.sidebar-collapsed .sidebar-label,
    .app-layout.sidebar-collapsed .sidebar-badge {
        display: inline-flex;
    }

    .btn-icon-bar:nth-child(1),
    .btn-icon-bar:nth-child(2),
    .btn-icon-bar:nth-child(3) {
        transform: none !important;
        opacity: 1 !important;
    }

    .app-layout.sidebar-open .btn-icon-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }

    .app-layout.sidebar-open .btn-icon-bar:nth-child(2) {
        opacity: 0 !important;
    }

    .app-layout.sidebar-open .btn-icon-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }
}

@media (min-width: 901px) {
    .sidebar-backdrop {
        display: none !important;
    }
}

/* --- Faza 3: formulare, toolbar, flash --- */
.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #166534;
}

.alert-warning {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.35);
    color: var(--color-primary-darker);
}

.flash-toast {
    margin-bottom: 1rem;
}

.page-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-toolbar-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    max-width: 720px;
}

.form-row-anaf {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
}

.form-row-anaf .form-group--btn-anaf .btn {
    white-space: nowrap;
}

.form-grid-contract {
    max-width: 720px;
}

.form-group-span2 {
    grid-column: 1 / -1;
}

.form-group-check {
    display: flex;
    align-items: center;
}

.form-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-check input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--color-primary);
}

.form-actions {
    margin-top: 0.25rem;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-inline {
    display: inline-flex;
    margin: 0;
    vertical-align: middle;
}

.col-actions {
    white-space: nowrap;
    text-align: right;
}

.col-actions .btn,
.col-actions .form-inline {
    margin-left: 0.35rem;
}

.btn-danger-text {
    color: #B91C1C !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

.btn-danger-text:hover {
    background: rgba(239, 68, 68, 0.08) !important;
}

.cell-muted {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.panel-form {
    margin-bottom: 1.25rem;
}

select.form-input {
    cursor: pointer;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-span2 {
        grid-column: 1;
    }

    .col-actions {
        text-align: left;
        white-space: normal;
    }

    .col-actions .btn,
    .col-actions .form-inline {
        margin-left: 0;
        margin-top: 0.35rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-inline-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.form-input-inline {
    width: auto;
    min-width: 10rem;
    margin-bottom: 0;
}

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

.badge-in_asteptare {
    background: rgba(251, 191, 36, 0.35);
    color: var(--color-primary-darker);
}

.badge-aprobat {
    background: rgba(34, 197, 94, 0.2);
    color: #166534;
}

.badge-respins {
    background: rgba(239, 68, 68, 0.15);
    color: #B91C1C;
}

.form-check-inline {
    margin: 0;
}

.concediu-regula {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.45;
    color: #b91c1c;
}

.concediu-regula--live {
    margin-top: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--border-radius);
    background: rgba(254, 226, 226, 0.65);
    border: 1px solid rgba(185, 28, 28, 0.35);
}

.zile-preview {
    margin: 0.25rem 0 0;
    font-size: 1.1rem;
}

.raport-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.raport-actions code {
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.raport-admin-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: 28rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.raport-admin-block {
    border-left: 3px solid var(--color-primary);
    padding-left: 0.85rem;
}

.raport-admin-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.raport-admin-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    white-space: nowrap;
}

.raport-admin-asoc {
    margin: 0.35rem 0 0.65rem 0.75rem;
}

.raport-admin-asoc-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.raport-admin-ang {
    margin-left: 1rem;
    font-size: 0.9rem;
    padding: 0.1rem 0;
}

.raport-admin-summary {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.form-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 0.35rem;
}

.pontaj-meta {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.pontaj-meta-luna {
    margin: 0.35rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.pontaj-scroll-wrap {
    overflow-x: auto;
    padding: 0.5rem;
}

.pontaj-table {
    border-collapse: collapse;
    font-size: 0.72rem;
    min-width: 100%;
}

.pontaj-table th,
.pontaj-table td {
    border: 1px solid rgba(120, 53, 15, 0.2);
    padding: 0.2rem 0.15rem;
    text-align: center;
    vertical-align: middle;
}

.pontaj-sticky {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
}

.pontaj-col-nume {
    left: 2.2rem;
    min-width: 7.5rem;
    text-align: left !important;
    padding-left: 0.4rem !important;
}

.pontaj-col-functie {
    left: 9.8rem;
    min-width: 5.5rem;
    max-width: 7rem;
    text-align: left !important;
    padding-left: 0.35rem !important;
    font-size: 0.68rem;
}

.pontaj-col-nr {
    min-width: 2rem;
    left: 0;
}

.pontaj-table--has-functie .pontaj-col-norma {
    left: 15.5rem;
}

.pontaj-col-norma {
    left: 9.8rem;
    min-width: 2.4rem;
}

.pontaj-col-zi {
    min-width: 1.65rem;
    max-width: 2rem;
}

.pontaj-th-weekend {
    background: #e8e8e8;
}

.pontaj-th-libera {
    background: #a8a8a8;
    color: #1f2937;
}

.pontaj-cell--weekend,
.pontaj-cell--gol.pontaj-cell--weekend {
    background: #ececec;
}

.pontaj-cell--libera,
.pontaj-cell--gol.pontaj-cell--libera {
    background: #a8a8a8;
    color: #1f2937;
}

.pontaj-legenda {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.pontaj-legenda-weekend {
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: #ececec;
}

.pontaj-legenda-libera {
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: #a8a8a8;
    color: #1f2937;
}

.pontaj-cell--co {
    background: #fff7ed;
    font-weight: 700;
    color: #c2410c;
}

.pontaj-cell--cm {
    background: #fef2f2;
    font-weight: 700;
    color: #b91c1c;
}

.pontaj-input {
    width: 100%;
    max-width: 2.2rem;
    min-width: 1.4rem;
    padding: 0.1rem;
    font-size: 0.7rem;
    text-align: center;
    border: 1px solid transparent;
    background: transparent;
}

.pontaj-input:focus {
    border-color: var(--color-primary);
    background: #fff;
}

.pontaj-col-tot {
    min-width: 3.2rem;
    font-size: 0.65rem;
    line-height: 1.2;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    max-height: 5rem;
    white-space: nowrap;
}

.pontaj-col-tot-val {
    font-weight: 600;
    min-width: 2.8rem;
}

/* --- Previzualizare PDF (modal) --- */
body.pdf-modal-open {
    overflow: hidden;
}

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

.pdf-modal[hidden] {
    display: none !important;
}

.pdf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 20, 10, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pdf-modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(960px, 100%);
    height: min(88vh, 900px);
    border-radius: var(--border-radius-lg, 12px);
    border: 1px solid var(--border-light);
    background: var(--bg-card, #fff);
    box-shadow: 0 20px 50px rgba(120, 53, 15, 0.25);
    overflow: hidden;
}

.pdf-modal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-light);
    background: rgba(255, 251, 235, 0.9);
}

.pdf-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.pdf-modal-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pdf-modal-frame {
    flex: 1;
    width: 100%;
    border: none;
    background: #525659;
}
