/*
===========================================
   MOH Alfresco eLibrary - Modern Theme v3.1
===========================================
*/

/* 1. DESIGN TOKENS ------------------------------------------------------ */
:root {
    --moh-surface-0: #f8fafc;
    --moh-surface-1: #ffffff;
    --moh-surface-2: #f1f5f9;
    --moh-surface-glass: rgba(248, 250, 252, 0.85);
    --moh-border: rgba(15, 23, 42, 0.08);
    --moh-border-strong: rgba(15, 23, 42, 0.16);
    --moh-text-strong: #0f172a;
    --moh-text-subtle: #1f2937;
    --moh-text-muted: #64748b;
    --moh-primary: #006241;
    --moh-primary-dark: #004c32;
    --moh-primary-contrast: #f2fbf7;
    --moh-primary-soft: rgba(0, 98, 65, 0.08);
    --moh-primary-ring: rgba(0, 98, 65, 0.35);
    --moh-accent: #2563eb;
    --moh-success: #0f9d58;
    --moh-warning: #f59e0b;
    --moh-danger: #dc2626;
    --moh-danger-strong: #b91c1c;
    --moh-radius-lg: 18px;
    --moh-radius-md: 12px;
    --moh-radius-sm: 8px;
    --moh-shadow-lg: 0 25px 55px -40px rgba(15, 23, 42, 0.35);
    --moh-shadow-md: 0 12px 30px -20px rgba(15, 23, 42, 0.2);
    --moh-shadow-sm: 0 6px 16px -10px rgba(15, 23, 42, 0.18);
    --moh-font-display: 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
    --moh-font-sans: 'Inter', 'SF Pro Text', 'Segoe UI', sans-serif;
}
@media (max-width: 768px) {
    .documents-card__table {
        min-width: 640px;
    }

    .documents-card__table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .documents-card__table {
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    .documents-card__table-wrapper::-webkit-scrollbar {
        height: 8px;
    }

    .documents-card__table-wrapper::-webkit-scrollbar-track {
        background: rgba(15, 23, 42, 0.06);
        border-radius: 999px;
    }

    .documents-card__table-wrapper::-webkit-scrollbar-thumb {
        background: rgba(15, 23, 42, 0.25);
        border-radius: 999px;
    }

    .documents-card__table-wrapper {
        margin: 0 -0.75rem;
        padding: 0 0.75rem 0.5rem;
    }
}


/* 2. GLOBAL BACKDROP ----------------------------------------------------- */
.alfresco-container,
.alfresco-elibrary-container {
    font-family: var(--moh-font-sans);
    background:
        radial-gradient(circle at 10% 20%, rgba(96, 165, 250, 0.14), transparent 45%),
        radial-gradient(circle at 90% 10%, rgba(125, 211, 252, 0.16), transparent 50%),
        var(--moh-surface-0);
    color: var(--moh-text-strong);
    min-height: 100%;
    padding-bottom: 2.5rem;
    position: relative;
}

.alfresco-container.min-h-screen {
    min-height: 50vh;
}

.alfresco-container::before,
.alfresco-elibrary-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 118, 110, 0.05), transparent 35%);
    pointer-events: none;
}

.alfresco-container > *,
.alfresco-elibrary-container > * {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--moh-font-display);
    letter-spacing: -0.01em;
    color: var(--moh-text-strong);
}

p {
    color: var(--moh-text-muted);
}

/* 3. ELEVATED PANELS ----------------------------------------------------- */
.alfresco-card {
    background: var(--moh-surface-1);
    border-radius: var(--moh-radius-lg);
    border: 1px solid var(--moh-border);
    box-shadow: var(--moh-shadow-md);
    padding: 1.85rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}


/* HERO --------------------------------------------------------------- */
.portal-hero {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: clamp(2.2rem, 4vw, 3.2rem) clamp(1.6rem, 3vw, 2.75rem);
    border-radius: clamp(18px, 3vw, 26px);
    background: linear-gradient(135deg, rgba(0, 98, 65, 0.1), rgba(37, 99, 235, 0.08));
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--moh-shadow-md);
    position: relative;
    overflow: hidden;
    align-items: stretch;
}

.portal-hero::after {
    content: "";
    position: absolute;
    top: clamp(-18%, -10vw, -8%);
    right: clamp(-18%, -12vw, -10%);
    width: clamp(260px, 32vw, 360px);
    height: clamp(260px, 32vw, 360px);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 68%);
    opacity: 0.75;
    pointer-events: none;
    transform: rotate(10deg);
}

.portal-hero__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
    padding-bottom: clamp(0.85rem, 1.5vw, 1.25rem);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.portal-hero__content {
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 1.2vw, 1.25rem);
    width: 100%;
    position: relative;
    z-index: 1;
    margin-top: clamp(0.6rem, 1vw, 0.9rem);
}

.portal-hero__logout {
    flex-shrink: 0;
    min-width: 128px;
}

.portal-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.7);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    box-shadow: 0 10px 30px -20px rgba(15, 23, 42, 0.5);
}

.portal-hero__title {
    font-size: clamp(2.5rem, 4.2vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--moh-text-strong);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
    max-width: 100%;
}

.portal-hero__title-prefix {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.15rem;
}

.portal-hero__title-agency {
    font-weight: 700;
    color: #0f172a;
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.portal-hero__title-agency::after {
    content: "";
    display: inline-block;
    width: 2.5rem;
    height: 0.35rem;
    background: linear-gradient(90deg, rgba(0, 98, 65, 0.2), rgba(37, 99, 235, 0));
    border-radius: 999px;
    transform: translateY(0.3rem);
}

.portal-hero__title--compressed {
    font-size: clamp(2.05rem, 3.1vw, 2.7rem);
    line-height: 1.15;
    gap: 0.3rem;
}

.portal-hero__title--dense {
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
    line-height: 1.12;
    gap: 0.25rem;
}

.portal-hero__title--dense .portal-hero__title-prefix {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

.portal-hero__title--dense .portal-hero__title-agency {
    line-height: 1.18;
}

.portal-hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(15, 23, 42, 0.68);
    max-width: 48ch;
    margin: 0;
}

@media (min-width: 640px) {
    .portal-hero {
        gap: clamp(2.4rem, 3vw, 3.2rem);
    }

    .portal-hero__header {
        align-items: flex-start;
    }
}

@media (max-width: 639px) {
    .portal-hero {
        padding: 2rem 1.5rem;
    }

    .portal-hero__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding-bottom: 1.1rem;
        width: 100%;
    }

    .portal-hero__logout {
        align-self: stretch;
        width: 100%;
    }

    .portal-hero__title {
        max-width: 100%;
    }
}

.alfresco-card h2,
.alfresco-card h3 {
    color: var(--moh-text-subtle);
    margin-bottom: 0.85rem;
    font-weight: 600;
}

/* 4. BUTTONS ------------------------------------------------------------- */
.btn,
.alfresco-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--moh-radius-md);
    padding: 0.55rem 1.1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: 0.9rem;
    line-height: 1.3;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    cursor: pointer;
    font-family: var(--moh-font-sans);
    border: 1px solid transparent;
    background-color: var(--moh-surface-2);
    color: var(--moh-text-subtle);
    box-shadow: none;
}

.btn:hover,
.alfresco-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.btn:active,
.alfresco-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn:focus-visible,
.alfresco-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.15);
}

.btn-primary,
.alfresco-btn--primary {
    background-color: var(--moh-primary);
    color: #ffffff;
    border-color: var(--moh-primary);
}

.btn-primary:hover,
.alfresco-btn--primary:hover {
    background-color: var(--moh-primary-dark);
    border-color: var(--moh-primary-dark);
}

.btn-primary:focus-visible,
.alfresco-btn--primary:focus-visible,
.alfresco-btn--secondary:focus-visible {
    box-shadow: 0 0 0 3px var(--moh-primary-ring);
}

.btn-danger,
.alfresco-btn--danger {
    background-color: var(--moh-danger);
    color: #ffffff;
    border-color: var(--moh-danger);
}

.btn-danger:hover,
.alfresco-btn--danger:hover {
    background-color: var(--moh-danger-strong);
    border-color: var(--moh-danger-strong);
}

.modal-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 32px 60px -45px rgba(15, 23, 42, 0.65);
    padding: 2.4rem;
    width: min(540px, 92vw);
}

.modal-card__close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(248, 250, 252, 0.75);
    color: rgba(15, 23, 42, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.18s ease;
}

.modal-card__close:hover {
    background: rgba(15, 23, 42, 0.08);
    color: var(--moh-text-strong);
    border-color: rgba(15, 23, 42, 0.18);
}

.modal-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--moh-primary);
    background: rgba(0, 98, 65, 0.12);
}

.modal-card__icon svg {
    width: 26px;
    height: 26px;
}

.modal-card__icon--accent {
    color: var(--moh-accent);
    background: rgba(37, 99, 235, 0.12);
}

.modal-card__icon--danger {
    color: var(--moh-danger);
    background: rgba(220, 38, 38, 0.12);
}

.modal-card__header {
    margin-bottom: 1.75rem;
}

.modal-card__title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--moh-text-strong);
    margin-bottom: 0.5rem;
}

.modal-card__subtitle {
    color: var(--moh-text-muted);
    font-size: 0.95rem;
}

.modal-card__form {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

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

.modal-card__field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.modal-card__field textarea {
    min-height: 180px;
    resize: vertical;
    white-space: pre-wrap;
}

.modal-card__toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--moh-radius-md);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.03);
}

.modal-card__toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--moh-primary);
}

.modal-card__file {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-card__file > input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.modal-card__file-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: var(--moh-radius-md);
    padding: 0.85rem 1.1rem;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.22);
    color: var(--moh-accent);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.modal-card__file-trigger:hover {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.32);
}

.modal-card__file-hint {
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.55);
}

.modal-card__actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0.5rem;
}

.modal-card__actions .btn {
    min-width: 140px;
}

.modal-card--danger {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 245, 0.9));
    border: 1px solid rgba(220, 38, 38, 0.12);
}

@media (max-width: 640px) {
    .modal-card {
        padding: 1.8rem;
    }

    .modal-card__grid {
        grid-template-columns: 1fr;
    }

    .modal-card__actions {
        flex-direction: column;
        align-items: stretch;
    }
}


.btn-danger:focus-visible,
.alfresco-btn--danger:focus-visible {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}

.btn-neutral,
.alfresco-btn--neutral {
    background-color: var(--moh-surface-2);
    color: var(--moh-text-subtle);
    border-color: rgba(15, 23, 42, 0.12);
}

.btn-neutral:hover,
.alfresco-btn--neutral:hover {
    background-color: var(--moh-surface-1);
    border-color: rgba(15, 23, 42, 0.2);
    color: var(--moh-text-strong);
}

.alfresco-btn--secondary {
    background-color: var(--moh-primary-contrast);
    color: var(--moh-primary);
    border-color: rgba(0, 98, 65, 0.3);
}

.alfresco-btn--secondary:hover {
    background-color: rgba(0, 98, 65, 0.12);
    color: var(--moh-primary-dark);
    border-color: rgba(0, 98, 65, 0.4);
}

.alfresco-btn__icon {
    width: 1rem;
    height: 1rem;
}



.documents-card__actions {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
}

.action-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: rgba(15, 23, 42, 0.6);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.action-icon svg {
    width: 18px;
    height: 18px;
    color: currentColor;
    transition: color 0.2s ease;
}

.action-icon:hover,
.action-icon:focus-visible {
    background: rgba(0, 98, 65, 0.15);
    border-color: rgba(0, 98, 65, 0.35);
    color: var(--moh-primary);
    transform: translateY(-1px);
}

.action-icon:hover svg,
.action-icon:focus-visible svg {
    color: currentColor;
}

.action-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 0.35rem 0.55rem;
    border-radius: 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.action-icon:hover::after,
.action-icon:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, -2px);
}

.delete-button:hover,
.delete-button:focus-visible {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.28);
    color: var(--moh-danger);
}

/* 5. FORMS -------------------------------------------------------------- */
.form-label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.6);
    margin-bottom: 0.35rem;
}

.form-input,
.alfresco-search-input,
.alfresco-filter-select,
.alfresco-sort-by-select {
    width: 100%;
    border-radius: var(--moh-radius-md);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: white;
    color: var(--moh-text-subtle);
    padding: 0.8rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input::placeholder,
.alfresco-search-input::placeholder { color: rgba(100, 116, 139, 0.55); }

.form-input:focus,
.alfresco-search-input:focus,
.alfresco-filter-select:focus,
.alfresco-sort-by-select:focus {
    outline: none;
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 0 0 3px var(--moh-primary-ring);
    background: white;
    color: var(--moh-text-strong);
}

.form-input[disabled] { opacity: 0.65; cursor: not-allowed; }

#year.form-input option,
#edit-year.form-input option,
.alfresco-filter-select option { background: white; color: var(--moh-text-subtle); }

/* 6. LOADING & FEEDBACK ------------------------------------------------- */
.spinner,
.spinner-dark {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.25);
    border-top-color: var(--moh-primary);
    animation: spin 0.8s linear infinite;
}

.spinner-dark { width: 2.5rem; height: 2.5rem; border-width: 4px; }

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 1rem 1.2rem;
    border-radius: var(--moh-radius-md);
    background: white;
    color: var(--moh-text-subtle);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--moh-shadow-md);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2000;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(15, 157, 88, 0.35); color: #166534; }
.toast.error { border-color: rgba(220, 38, 38, 0.35); color: #b91c1c; }
.toast.info { border-color: rgba(37, 99, 235, 0.35); color: #1d4ed8; }

/* 7. MODALS ------------------------------------------------------------- */
.alfresco-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.alfresco-modal[aria-hidden="false"] { display: flex; }

.alfresco-modal-content {
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--moh-radius-lg);
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--moh-shadow-lg);
}

.alfresco-modal .close-modal {
    background: rgba(148, 163, 184, 0.15);
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--moh-text-muted);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.alfresco-modal .close-modal:hover { background: rgba(148, 163, 184, 0.22); }

/* 8. DASHBOARD & TABLE --------------------------------------------------- */
#alfresco-dashboard.loading .alfresco-card { opacity: 0.55; filter: saturate(0.8); }

#alfresco-dashboard .alfresco-card {
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
    padding: 1.65rem 1.45rem;
}

#alfresco-dashboard .alfresco-card h3 {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: rgba(100, 116, 139, 0.85);
}

#alfresco-dashboard .alfresco-card > p {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--moh-text-subtle);
    margin: 0;
}

.dashboard-stat {
    border: none;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.dashboard-stat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
    mix-blend-mode: screen;
    pointer-events: none;
}

.dashboard-stat__label {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

.dashboard-stat__value {
    font-size: 2.6rem;
    font-weight: 700;
    margin-top: 0.4rem;
}

.dashboard-stat--total {
    background: linear-gradient(135deg, rgba(0, 98, 65, 0.12), rgba(29, 78, 216, 0.1));
    color: var(--moh-primary-dark);
}

.dashboard-stat--total .dashboard-stat__label {
    color: rgba(0, 98, 65, 0.75);
}

.dashboard-stat--total .dashboard-stat__value {
    color: var(--moh-primary);
}

.dashboard-stat--visible {
    background: linear-gradient(135deg, rgba(15, 157, 88, 0.12), rgba(16, 185, 129, 0.06));
    color: #047857;
}

.dashboard-stat--visible .dashboard-stat__label {
    color: rgba(4, 120, 87, 0.7);
}

.dashboard-stat--visible .dashboard-stat__value {
    color: #059669;
}

.dashboard-stat--hidden {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(249, 115, 22, 0.08));
    color: #b45309;
}

.dashboard-stat--hidden .dashboard-stat__label {
    color: rgba(180, 83, 9, 0.72);
}

.dashboard-stat--hidden .dashboard-stat__value {
    color: #d97706;
}

.upload-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    border-radius: var(--moh-radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 50px -35px rgba(15, 23, 42, 0.45);
    padding: 2.5rem;
    overflow: hidden;
}

.upload-card::before {
    content: "";
    position: absolute;
    inset: -20% 40% auto -20%;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 98, 65, 0.18), transparent 55%);
    opacity: 0.65;
    pointer-events: none;
}

.upload-card::after {
    content: "";
    position: absolute;
    inset: 30% -10% -30% auto;
    width: 340px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 60%);
    opacity: 0.5;
    pointer-events: none;
}

.upload-card__header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.upload-card__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 98, 65, 0.12);
    color: var(--moh-primary);
    box-shadow: inset 0 0 0 1px rgba(0, 98, 65, 0.12);
}

.upload-card__title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--moh-text-strong);
    margin-bottom: 0.35rem;
}

.upload-card__subtitle {
    color: var(--moh-text-muted);
    font-size: 0.95rem;
    max-width: 42rem;
}

.upload-card__form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

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

.upload-card__field {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.upload-card__file-input {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upload-card__file-field {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-card__file-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: var(--moh-radius-md);
    padding: 0.85rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--moh-primary);
    background: rgba(0, 98, 65, 0.08);
    border: 1px solid rgba(0, 98, 65, 0.18);
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-card__file-trigger:hover {
    background: rgba(0, 98, 65, 0.16);
    border-color: rgba(0, 98, 65, 0.24);
}

.upload-card__file-hint {
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.55);
}

.upload-card__actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.upload-card__actions .btn {
    min-width: 160px;
}

.upload-card__actions .btn-primary {
    background: linear-gradient(135deg, var(--moh-primary), var(--moh-primary-dark));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 25px -12px rgba(0, 98, 65, 0.75);
}

.upload-card__actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--moh-primary-dark), #013724);
    transform: translateY(-1px);
}

.upload-card__actions .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px -12px rgba(0, 98, 65, 0.6);
}

.documents-card {
    background: var(--moh-surface-1);
    border-radius: 26px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 28px 60px -48px rgba(15, 23, 42, 0.55);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.documents-card__header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.documents-card__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.7);
    font-weight: 600;
}

.documents-card__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--moh-text-strong);
    margin-bottom: 0.35rem;
}

.documents-card__subtitle {
    color: var(--moh-text-muted);
    font-size: 0.96rem;
    max-width: 48rem;
}

.documents-card__toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.documents-card__filters {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: min(220px, 100%);
}

.documents-card__filter-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.85);
    font-weight: 600;
}

.documents-card__filter-select {
    border-radius: var(--moh-radius-md);
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.55rem 0.65rem;
    font-size: 0.9rem;
    color: var(--moh-text-subtle);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.documents-card__filter-select:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.documents-card__search {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: var(--moh-radius-md);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.02);
    padding: 0.65rem 0.95rem;
    color: rgba(100, 116, 139, 0.85);
    min-width: min(320px, 100%);
}

.documents-card__search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--moh-text-subtle);
    width: 100%;
}

.documents-card__body {
    position: relative;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.65), rgba(255, 255, 255, 0.9));
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 1.6rem;
}

@media (max-width: 900px) {
    .documents-card {
        padding: 1.75rem;
    }

    .documents-card__header {
        gap: 1.25rem;
    }

    .documents-card__toolbar {
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: stretch;
    }

    .documents-card__filters {
        width: 100%;
    }
}
    .documents-card__load-more {
        margin-top: 1.25rem;
    }
@media (max-width: 900px) {
    .upload-card {
        padding: 1.85rem;
    }

    .upload-card__grid {
        grid-template-columns: 1fr;
    }

    .upload-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .upload-card__icon {
        width: 3rem;
        height: 3rem;
        border-radius: 1rem;
    }
}

#file-list-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--moh-surface-1);
    border-radius: var(--moh-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--moh-shadow-md);
}

#file-list-table thead {
    background: var(--moh-surface-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    color: rgba(100, 116, 139, 0.8);
}

#file-list-table th,
#file-list-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

#file-list-table tbody tr { transition: background 0.22s ease, transform 0.22s ease; }

#file-list-table tbody tr:hover {
    background: rgba(15, 118, 110, 0.08);
    transform: translateY(-1px);
}

#file-list-empty {
    color: var(--moh-text-muted);
    background: rgba(15, 23, 42, 0.04);
    border-radius: var(--moh-radius-md);
}

/* 9. FRONT-FACING SHORTCODES -------------------------------------------- */

.alfresco-search-container,
.alfresco-search-wrapper,
.alfresco-search-icon { display: none; }

.elibrary-search {
    position: relative;
    margin-bottom: 2rem;
}

.elibrary-search__bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem 0.55rem 0.9rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 16px 36px -28px rgba(15, 23, 42, 0.4);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.elibrary-search__bar:focus-within {
    border-color: rgba(0, 98, 65, 0.3);
    box-shadow: 0 20px 48px -32px rgba(6, 95, 70, 0.4);
}

.elibrary-search__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(6, 95, 70, 0.12);
    color: var(--moh-primary);
}

.elibrary-search__icon svg {
    width: 18px;
    height: 18px;
}

.elibrary-search__input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.02rem;
    color: var(--moh-text-subtle);
    padding: 0.4rem 0;
}

.elibrary-search__input::placeholder {
    color: rgba(100, 116, 139, 0.6);
}

.elibrary-search__input:focus { outline: none; }

.elibrary-search__reset {
    border: none;
    background: rgba(248, 250, 252, 0.95);
    border-radius: 999px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(71, 85, 105, 0.7);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.elibrary-search__reset svg {
    width: 18px;
    height: 18px;
}

.elibrary-search__reset:hover,
.elibrary-search__reset:focus-visible {
    background: rgba(6, 95, 70, 0.12);
    color: var(--moh-primary);
    outline: none;
}

.elibrary-search__suggestions {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 26px 60px -48px rgba(15, 23, 42, 0.45);
    overflow: hidden;
    max-height: 280px;
    overflow-y: auto;
    z-index: 10;
}

.elibrary-search__suggestions div {
    padding: 0.85rem 1rem;
    color: var(--moh-text-subtle);
    transition: background 0.18s ease;
}

.elibrary-search__suggestions div:hover {
    background: rgba(6, 95, 70, 0.12);
    color: var(--moh-text-strong);
}

.elibrary-search__suggestion {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.elibrary-search__suggestion:last-child {
    border-bottom: none;
}

.elibrary-search__suggestion:hover {
    background: rgba(6, 95, 70, 0.08);
}

.elibrary-search__suggestion-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(15, 23, 42, 0.5);
    font-weight: 600;
}

.elibrary-search__suggestion-text {
    font-weight: 600;
    color: var(--moh-text-strong);
}

.elibrary-thumbnail {
    position: relative;
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.95));
    box-shadow: 0 12px 26px -24px rgba(15, 23, 42, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.elibrary-thumbnail img {
    mix-blend-mode: multiply;
}

.elibrary-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.elibrary-results-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.85rem;
    margin-bottom: 2rem;
    padding: 2rem 2.2rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.92));
    border-radius: 26px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 28px 64px -52px rgba(15, 23, 42, 0.65);
}

.elibrary-results-panel__info {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 38rem;
}

.elibrary-results-panel__eyebrow {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: rgba(15, 23, 42, 0.5);
}

.elibrary-results-panel__title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--moh-text-strong);
    letter-spacing: -0.01em;
}

.elibrary-results-panel__title .count-number,
.elibrary-results-panel__title .total-number {
    color: var(--moh-primary);
}

.elibrary-results-panel__hint {
    font-size: 0.92rem;
    color: rgba(71, 85, 105, 0.9);
}

.elibrary-results-panel__controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.elibrary-results-panel__control {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.elibrary-results-panel__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(71, 85, 105, 0.7);
    font-weight: 600;
}

.elibrary-results-panel__select {
    min-width: 200px;
    padding: 0.7rem 0.9rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #ffffff;
    font-size: 0.95rem;
    color: var(--moh-text-subtle);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.elibrary-results-panel__select:hover,
.elibrary-results-panel__select:focus-visible {
    border-color: rgba(0, 98, 65, 0.32);
    box-shadow: 0 0 0 3px rgba(0, 98, 65, 0.12);
    outline: none;
}


.elibrary-view-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-start;
    width: auto;
    max-width: 190px;
}

.elibrary-view-toggle__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(71, 85, 105, 0.7);
    font-weight: 600;
}

.elibrary-view-toggle__controls {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    background: rgba(248, 250, 252, 0.85);
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 0.35rem 0.4rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.elibrary-view-toggle__button {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: none;
    background: transparent;
    color: rgba(71, 85, 105, 0.8);
    padding: 0.4rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
}

.elibrary-view-toggle__button svg {
    width: 18px;
    height: 18px;
}

.elibrary-view-toggle__button:hover,
.elibrary-view-toggle__button:focus-visible,
.elibrary-view-toggle__button.active {
    background: rgba(15, 157, 88, 0.15);
    color: var(--moh-success);
    outline: none;
}

.elibrary-view-toggle__button.active svg,
.elibrary-view-toggle__button:hover svg {
    color: currentColor;
}

.alfresco-filters-container {
    background: white;
    border-radius: var(--moh-radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem;
    gap: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--moh-shadow-md);
}

.alfresco-filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--moh-radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.12);
    background-color: #ffffff;
    font-size: 0.95rem;
    color: var(--moh-text-subtle);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.alfresco-filter-select:focus-visible,
.alfresco-filter-select:hover {
    border-color: rgba(0, 98, 65, 0.25);
    box-shadow: 0 0 0 3px rgba(0, 98, 65, 0.12);
    outline: none;
}

.elibrary-filter-panel {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 32px 70px -58px rgba(15, 23, 42, 0.6);
}

.elibrary-filter-panel.is-filtered {
    border-color: rgba(0, 98, 65, 0.2);
    box-shadow: 0 35px 82px -60px rgba(6, 95, 70, 0.35);
}

.elibrary-filter-panel__top {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: space-between;
    align-items: flex-start;
}

.elibrary-filter-panel__meta {
    max-width: 36rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.elibrary-filter-panel__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(15, 23, 42, 0.55);
}

.elibrary-filter-panel__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--moh-text-strong);
    letter-spacing: -0.01em;
}

.elibrary-filter-panel__subtitle {
    font-size: 0.94rem;
    color: rgba(71, 85, 105, 0.95);
    line-height: 1.6;
}

.elibrary-filter-panel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.elibrary-filter-panel__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--moh-text-subtle);
}

.elibrary-filter-panel__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: rgba(71, 85, 105, 0.7);
    font-weight: 600;
}

.elibrary-filter-panel__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 0.48rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--moh-success);
    background: var(--moh-success);
    color: #ffffff;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.elibrary-filter-panel__reset:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.elibrary-filter-panel__reset:hover {
    background: #0b7a45;
    border-color: #0b7a45;
    color: #ffffff;
}

.elibrary-filter-panel__reset:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.35);
}

.elibrary-filter-panel__reset .alfresco-btn__icon {
    display: none;
}

.elibrary-filter-panel__reset-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    display: inline-block;
    line-height: 1;
}

.alfresco-results-header {
    background: white;
    border-radius: var(--moh-radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem 1.1rem;
    box-shadow: var(--moh-shadow-sm);
    margin-bottom: 1.6rem;
    color: var(--moh-text-subtle);
}

.alfresco-view-toggle {
    border-radius: var(--moh-radius-md);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    background: rgba(241, 245, 249, 0.6);
}

.alfresco-view-toggle .view-btn {
    border: none;
    background: transparent;
    padding: 0.55rem 0.85rem;
    color: var(--moh-text-muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.alfresco-view-toggle .view-btn.bg-gray-200,
.alfresco-view-toggle .view-btn:hover {
    background: rgba(15, 118, 110, 0.12) !important;
    color: var(--moh-text-strong) !important;
}

.alfresco-content-area {
    display: grid;
    gap: 1.4rem;
}

.alfresco-content-area.view-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.alfresco-content-area.view-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.alfresco-content-area .file-item-animate {
    background: white;
    border-radius: var(--moh-radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--moh-shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.alfresco-content-area .file-item-animate:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -24px rgba(15, 23, 42, 0.25);
    border-color: rgba(15, 118, 110, 0.24);
}

.alfresco-content-area .file-item-animate h3 {
    font-family: var(--moh-font-display);
    font-size: 1.05rem;
    color: var(--moh-text-subtle);
    margin-bottom: 0.65rem;
}

.alfresco-content-area .file-item-animate p {
    color: var(--moh-text-muted);
}

.alfresco-content-area .file-item-animate a {
    border-radius: var(--moh-radius-sm);
    font-weight: 600;
}

.alfresco-content-area .file-item-animate a:first-child {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: transparent;
    color: var(--moh-primary);
}

.alfresco-content-area .file-item-animate a:first-child:hover {
    background: rgba(15, 118, 110, 0.08);
}

.alfresco-content-area .file-item-animate a:last-child {
    background-color: var(--moh-primary);
    color: #ffffff;
    border: 1px solid var(--moh-primary);
}

/* 10. LOGIN EXPERIENCE -------------------------------------------------- */
.login-page-shell {
    padding: 2.5rem 1.5rem 3.5rem;
    background: transparent !important;
}

.login-page-shell::before {
    display: none !important;
}

.login-card {
    position: relative;
    display: grid;
    gap: 1.75rem;
    padding: 2.4rem;
    border-radius: 26px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.9));
    box-shadow: 0 28px 70px -48px rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(12px);
}

.login-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 27px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 98, 65, 0.35), rgba(37, 99, 235, 0.25));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.login-card__brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.login-card__badge {
    align-self: center;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(0, 98, 65, 0.12);
    color: var(--moh-primary);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-card__title {
    font-size: clamp(1.9rem, 2.3vw, 2.4rem);
    font-weight: 700;
    color: var(--moh-text-strong);
    line-height: 1.1;
}

.login-card__subtitle {
    color: var(--moh-text-muted);
    font-size: 0.98rem;
}

.login-card__form {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
    padding: 2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.login-card__form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-card__field {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.login-card__label {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.85);
}

.login-card__input-group {
    display: flex;
    align-items: center;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0 0.85rem;
}

.login-card__input-group:focus-within {
    border-color: rgba(0, 98, 65, 0.28);
    box-shadow: 0 0 0 3px rgba(0, 98, 65, 0.08);
}

.login-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, 0.5);
}

.login-card__icon svg {
    width: 22px;
    height: 22px;
}

.login-card__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.85rem;
    font-size: 1rem;
    color: var(--moh-text-subtle);
    font-family: var(--moh-font-sans);
}

.login-card__input::placeholder {
    color: rgba(100, 116, 139, 0.65);
}

.login-card__toggle {
    border: none !important;
    background: none !important;
    color: #111827;
    padding: 0.35rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-card__toggle:hover,
.login-card__toggle:focus-visible {
    background: none !important;
    color: #111827;
}

.login-card__toggle:focus-visible {
    outline: 2px solid rgba(0, 98, 65, 0.25);
    outline-offset: 2px;
    box-shadow: none;
}

.login-card__toggle svg {
    width: 22px;
    height: 22px;
}

.login-card__toggle-icon--visible {
    display: none;
}

.login-card__toggle--active .login-card__toggle-icon--visible {
    display: inline-flex;
}

.login-card__toggle--active .login-card__toggle-icon--hidden {
    display: none;
}

.login-card__footer {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 0.5rem;
}

.login-card__submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 1.35rem;
    font-size: 1.02rem;
    border-radius: 16px;
    min-height: 3.25rem;
    background: linear-gradient(135deg, #0a5a3f, #0c8a64);
    border-color: transparent;
    box-shadow: 0 18px 35px -22px rgba(10, 90, 63, 0.65);
    color: #ffffff !important;
}

.login-card__submit-label {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.login-card__submit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.15rem;
}

.login-card__submit-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.18s ease;
    stroke: currentColor;
    fill: none;
}

.login-card__submit:hover svg {
    transform: translateX(2px);
}

.login-card__submit:hover {
    background: linear-gradient(135deg, #094f36, #0a7a57);
    color: #ffffff !important;
}

.login-card__submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 122, 87, 0.3);
    color: #ffffff !important;
}

.login-card__meta {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.55);
}

@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.6rem;
        gap: 1.4rem;
    }

    .login-card__form {
        padding: 1.7rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.7rem 1.2rem;
        border-radius: 22px;
    }

    .login-card__form {
        padding: 1.4rem 1.2rem;
    }

    .login-card__input {
        padding: 0.75rem 0.6rem;
    }

    .login-card__submit {
        font-size: 1rem;
        padding: 0.9rem 1.05rem;
        min-height: 3rem;
    }
}

/* 11. RESPONSIVE -------------------------------------------------------- */
@media (max-width: 1024px) {
    .alfresco-card { padding: 1.55rem; }
    .alfresco-content-area.view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .alfresco-content-area.view-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .upload-card__body,
    .documents-card__body,
    .elibrary-filter-panel {
        padding: 1.75rem 1.9rem;
        gap: 1.5rem;
    }

    .elibrary-filter-panel__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .elibrary-filter-panel {
        border-radius: 18px;
        padding: 1.5rem;
    }

    .elibrary-filter-panel__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .elibrary-filter-panel__reset {
        width: 100%;
        justify-content: center;
    }
}

/* 12. UTILITIES --------------------------------------------------------- */
.pill,
.badge,
.alfresco-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--moh-text-subtle);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.badge-success { background: rgba(15, 157, 88, 0.12); color: #166534; }
.badge-warning { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.badge-danger { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }

/* 13. ANIMATIONS -------------------------------------------------------- */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.file-item-animate { animation: fadeUp 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) forwards; }
.alfresco-load-more-wrapper {
    display: flex;
    justify-content: center;
}

.alfresco-load-more {
    min-width: 220px;
}

.is-hidden { display: none !important; }
.text-muted { color: var(--moh-text-muted) !important; }



