/* Auto-generated: 1px = 0.052vw, 1rem = 0.832vw (16px base) */
@media (min-width: 991px) {
:root {
    --green: #8ebe21;
    --green-dark: #6f9a18;
    --green-light: #a8d44a;
    --navy: #275671;
    --navy-dark: #1a3d4f;
    --navy-light: #3a7a9e;
    --bg: #eef2f6;
    --bg-soft: #f7f9fc;
    --white: #ffffff;
    --border: #dde5ee;
    --border-soft: #e8eef4;
    --text: #275671;
    --text-muted: #6b8499;
    --success: #1f9d63;
    --error: #e25555;
    --warning: #e8a020;
    --shadow-sm: 0 0.104vw 0.416vw rgba(39, 86, 113, 0.06);
    --shadow: 0 0.416vw 1.664vw rgba(39, 86, 113, 0.1);
    --shadow-lg: 0 1.04vw 2.6vw rgba(39, 86, 113, 0.14);
    --radius: 0.832vw;
    --radius-sm: 0.52vw;
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sidebar-w: 14.56vw;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== LOGIN ===== */
.login-body {
    min-height: 100vh;
    background: #ffffff;
}

.login-split {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.12vw 2.08vw;
    background: #ffffff;
}

.login-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(24.7vw, 37.7vw) minmax(31.2vw, 42.224vw);
    gap: clamp(3.9vw, 8vw, 7.176vw);
    align-items: center;
    width: auto;
    max-width: 83.2vw;
}

.login-split-bg {
    position: absolute;
    inset: 0;
    background-color: #3d1a6e;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    z-index: 0;
}

.login-split-fade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(25, 8, 50, 0.42) 0%,
        rgba(45, 15, 85, 0.22) 30%,
        rgba(120, 60, 160, 0.08) 48%,
        rgba(220, 200, 235, 0.4) 58%,
        rgba(255, 255, 255, 0.85) 68%,
        #ffffff 78%,
        #ffffff 100%
    );
    pointer-events: none;
}

.login-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.login-brand {
    color: #ffffff;
    max-width: 39vw;
}

.login-brand-logo {
    max-height: 10.556vw;
    max-width: 32.5vw;
    margin-bottom: 2.6vw;
    object-fit: contain;
}

.login-brand h1 {
    font-size: 3.2448vw;
    font-weight: 800;
    margin-bottom: 1.3vw;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-shadow: 0 0.104vw 0.624vw rgba(0, 0, 0, 0.18);
}

.login-brand p {
    font-size: 1.456vw;
    line-height: 1.7;
    opacity: 0.94;
    margin-bottom: 2.34vw;
}

.login-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.196vw;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 1.04vw;
    font-size: 1.352vw;
    opacity: 0.95;
}

.login-features li::before {
    content: '';
    width: 0.78vw;
    height: 0.78vw;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0.728vw rgba(142, 190, 33, 0.7);
    flex-shrink: 0;
}

.login-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
}

.login-card {
    width: 100%;
    max-width: 42.224vw;
    background: #ffffff;
    border-radius: 1.82vw;
    padding: 4.576vw 4.16vw 4.888vw;
    box-shadow: 0 1.56vw 4.68vw rgba(39, 86, 113, 0.12), 0 0.52vw 1.3vw rgba(39, 86, 113, 0.06);
    border: 0.052vw solid var(--border-soft);
}

.login-card h2 {
    font-size: 2.808vw;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.78vw;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 3.12vw;
    font-size: 1.352vw;
    line-height: 1.5;
}

.login-form .form-group {
    margin-bottom: 1.82vw;
}

.login-form .form-group label {
    font-size: 1.04vw;
    margin-bottom: 0.78vw;
    letter-spacing: 0.04em;
}

.login-form .form-group input {
    padding: 1.3vw 1.456vw;
    font-size: 1.352vw;
    background: #f8fafb;
    border-radius: 0.936vw;
}

.login-form .btn {
    margin-top: 1.3vw;
    padding: 1.352vw 1.82vw;
    font-size: 1.352vw;
    border-radius: 0.936vw;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.496vw;
    height: 2.496vw;
    border-radius: 0.728vw;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    font-weight: 800;
    font-size: 0.7072vw;
    letter-spacing: 0.05em;
    margin-bottom: 1.04vw;
}

.brand-mark-lg {
    width: 3.744vw;
    height: 3.744vw;
    font-size: 0.9152vw;
    border-radius: 1.04vw;
    margin-bottom: 1.456vw;
}

/* ===== APP LAYOUT ===== */
.app {
    display: flex;
    min-height: 100vh;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 61, 79, 0.5);
    backdrop-filter: blur(0.208vw);
    z-index: 199;
    opacity: 0;
    transition: opacity var(--transition);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar {
    width: var(--sidebar-w);
    background-color: #3d1a6e;
    background-image: url(../images/login-left-bg.png);
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    box-shadow: 0.208vw 0 1.248vw rgba(0, 0, 0, 0.12);
}

.sidebar-brand {
    padding: 1.456vw 1.248vw;
    border-bottom: 0.052vw solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.sidebar-logo {
    max-height: 4.576vw;
    max-width: 18.72vw;
    object-fit: contain;
}

.sidebar-title {
    display: block;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.7904vw;
    margin-top: 0.416vw;
}

.sidebar-nav {
    flex: 1;
    padding: 1.04vw 0.728vw;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.728vw;
    padding: 0.676vw 0.832vw;
    border-radius: var(--radius-sm);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.7488vw;
    margin-bottom: 0.208vw;
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateX(0.104vw);
}

.nav-link.active {
    background: #72a11a;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0.104vw 0.52vw rgba(114, 161, 26, 0.35);
}

.nav-icon {
    width: 1.144vw;
    text-align: center;
    flex-shrink: 0;
}

.nav-icon i {
    font-size: 0.7904vw;
    color: #ffffff;
    opacity: 0.85;
    transition: opacity var(--transition), color var(--transition);
}

.nav-link:hover .nav-icon i {
    color: #ffffff;
    opacity: 1;
}

.nav-link.active .nav-icon i {
    color: #fff;
}

.sidebar-footer {
    padding: 1.04vw 0.832vw;
    border-top: 0.052vw solid rgba(255, 255, 255, 0.3);
}

.user-card {
    display: flex;
    gap: 0.624vw;
    align-items: center;
    margin-bottom: 0.728vw;
    padding: 0.624vw;
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--radius-sm);
    box-shadow: 0 0.104vw 0.624vw rgba(0, 0, 0, 0.08);
}

.user-avatar {
    width: 2.184vw;
    height: 2.184vw;
    border-radius: 0.624vw;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7072vw;
    flex-shrink: 0;
}

.user-info {
    min-width: 0;
}

.user-info strong {
    display: block;
    color: var(--navy);
    font-size: 0.7322vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info small {
    display: block;
    color: var(--text-muted);
    font-size: 0.624vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-badge {
    display: inline-block;
    margin-top: 0.208vw;
    padding: 0.104vw 0.416vw;
    border-radius: 1.04vw;
    background: rgba(114, 161, 26, 0.15);
    color: #5a8015;
    font-size: 0.5658vw;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sidebar-footer .btn-ghost {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    border: 0.052vw solid rgba(255, 255, 255, 0.45);
}

.sidebar-footer .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.main {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    background: #ffffff;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 0.832vw;
    padding: 1.456vw 1.872vw 0;
}

.page-eyebrow {
    font-size: 0.624vw;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green);
    margin-bottom: 0.208vw;
}

.page-header h1 {
    font-size: 1.5392vw;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.26vw;
    background: var(--white);
    border: 0.052vw solid var(--border);
    border-radius: 0.52vw;
    padding: 0.52vw;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 1.04vw;
    height: 0.104vw;
    background: var(--navy);
    border-radius: 0.104vw;
    transition: var(--transition);
}

.page-content {
    padding: 1.248vw 1.872vw 2.08vw;
}

/* ===== ALERTS ===== */
.alert {
    margin: 0 1.872vw 0;
    padding: 0.728vw 1.04vw;
    border-radius: var(--radius-sm);
    font-size: 0.7488vw;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.52vw;
    animation: slideDown 0.3s ease;
    margin: 0 !important;
    margin-bottom: 20px !important;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-0.416vw); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: rgba(31, 157, 99, 0.1);
    color: var(--success);
    border: 0.052vw solid rgba(31, 157, 99, 0.25);
}

.alert-error {
    background: rgba(226, 85, 85, 0.1);
    color: var(--error);
    border: 0.052vw solid rgba(226, 85, 85, 0.25);
    margin: 0 !important;
    margin-bottom: 1.04vw !important;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.416vw;
    padding: 0.572vw 1.144vw;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.7322vw;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    box-shadow: 0 0.208vw 0.728vw rgba(142, 190, 33, 0.35);
}

.btn-primary:hover {
    transform: translateY(-0.104vw);
    box-shadow: 0 0.416vw 1.04vw rgba(142, 190, 33, 0.4);
}

.btn-secondary {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 0.208vw 0.728vw rgba(39, 86, 113, 0.25);
}

.btn-secondary:hover {
    background: var(--navy-dark);
    transform: translateY(-0.104vw);
}

.btn-accent {
    background: linear-gradient(135deg, #f5b731, #e8a020);
    color: #fff;
    box-shadow: 0 0.208vw 0.728vw rgba(232, 160, 32, 0.3);
}

.btn-outline {
    background: var(--white);
    border: 0.078vw solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--green);
    color: var(--green-dark);
    background: rgba(142, 190, 33, 0.04);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 0.052vw solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.btn-danger {
    background: var(--error);
    color: #fff;
}

.btn-danger:hover {
    background: #c94444;
    transform: translateY(-0.052vw);
}

.btn-sm { padding: 0.364vw 0.728vw; font-size: 0.6656vw; }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: 0.416vw; flex-wrap: wrap; }

/* ===== FORMS ===== */
.form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.456vw 1.664vw;
    box-shadow: var(--shadow);
    border: 0.052vw solid var(--border-soft);
    margin-bottom: 1.248vw;
    animation: fadeIn 0.35s ease;
}

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

.form-card h3 {
    color: var(--navy);
    margin-bottom: 1.144vw;
    font-size: 0.9152vw;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12.48vw, 1fr));
    gap: 0.936vw;
}

.form-group {
    margin-bottom: 0.936vw;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.6822vw;
    margin-bottom: 0.416vw;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.624vw 0.832vw;
    border: 0.078vw solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.7654vw;
    color: var(--text);
    background: var(--bg-soft);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 0.208vw rgba(142, 190, 33, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0b4c4;
}

.form-actions {
    display: flex;
    gap: 0.624vw;
    margin-top: 0.416vw;
    flex-wrap: wrap;
}

.inline-form { display: inline; }

/* ===== TOOLBAR & FILTERS ===== */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.248vw;
    flex-wrap: wrap;
    gap: 0.832vw;
}

.toolbar p {
    color: var(--text-muted);
    font-size: 0.7904vw;
}

.filters {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.144vw 1.352vw;
    box-shadow: var(--shadow-sm);
    border: 0.052vw solid var(--border-soft);
    margin-bottom: 1.248vw;
    display: flex;
    flex-wrap: wrap;
    gap: 0.832vw;
    align-items: flex-end;
}

.filters .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 7.8vw;
}

.field-hint {
    font-size: 0.6822vw;
    color: var(--text-muted);
    margin: 0.208vw 0 0.52vw;
}

.email-list {
    display: flex;
    flex-direction: column;
    gap: 0.416vw;
}

.email-row {
    display: flex;
    gap: 0.416vw;
    align-items: center;
}

.email-row input {
    flex: 1;
}

.btn-remove-email {
    min-width: 1.976vw;
    padding-left: 0;
    padding-right: 0;
    font-size: 0.9152vw;
    line-height: 1;
}

.simple-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.416vw;
}

.simple-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.624vw;
    padding: 0.52vw 0.728vw;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    border: 0.052vw solid var(--border-soft);
}

.inline-toolbar {
    display: flex;
    gap: 0.624vw;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* ===== TABLE ===== */
.data-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 0.052vw solid var(--border-soft);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 0.832vw 1.04vw;
    text-align: left;
    border-bottom: 0.052vw solid var(--border-soft);
    font-size: 0.7488vw;
}

.data-table th {
    background: linear-gradient(180deg, var(--bg-soft), #f0f4f8);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.624vw;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr {
    transition: background var(--transition);
}

.data-table tbody tr:hover td {
    background: rgba(142, 190, 33, 0.03);
}

/* ===== STRIPES (RAPORTY) ===== */
.stripes {
    display: flex;
    flex-direction: column;
    gap: 0.728vw;
}

.stripe {
    display: flex;
    align-items: center;
    gap: 1.04vw;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.04vw 1.248vw;
    box-shadow: var(--shadow-sm);
    border: 0.052vw solid var(--border-soft);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stripe::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.208vw;
    background: linear-gradient(180deg, var(--green), var(--green-dark));
    border-radius: 0.208vw 0 0 0.208vw;
}

.stripe:hover {
    box-shadow: var(--shadow);
    transform: translateY(-0.104vw);
    border-color: rgba(142, 190, 33, 0.25);
}

.stripe-pending::before {
    background: linear-gradient(180deg, var(--warning), #d4920f);
}

.stripe-left {
    display: flex;
    align-items: center;
    gap: 0.936vw;
    flex: 1;
    min-width: 0;
}

.stripe-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 2.912vw;
    height: 2.912vw;
    background: linear-gradient(135deg, rgba(142, 190, 33, 0.12), rgba(142, 190, 33, 0.04));
    border-radius: 0.728vw;
    flex-shrink: 0;
}

.stripe-day {
    font-size: 1.04vw;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.stripe-month {
    font-size: 0.5824vw;
    font-weight: 600;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stripe-info strong {
    display: block;
    font-size: 0.7904vw;
    color: var(--navy);
    margin-bottom: 0.208vw;
}

.stripe-info small {
    color: var(--text-muted);
    font-size: 0.6656vw;
}

.stripe-files {
    display: flex;
    flex-direction: column;
    gap: 0.416vw;
    flex: 1;
    min-width: 0;
    max-width: 21.84vw;
}

.stripe-file-item {
    display: flex;
    align-items: center;
    gap: 0.52vw;
    padding: 0.416vw 0.624vw;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
}

.stripe-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.7322vw;
    color: var(--text-muted);
}

.stripe-file-actions {
    display: flex;
    gap: 0.312vw;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.existing-files-list {
    margin: 0;
    padding: 0 0 0 0.936vw;
    color: var(--text-muted);
    font-size: 0.7488vw;
}

.stripe-actions {
    display: flex;
    gap: 0.416vw;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.badge {
    display: inline-block;
    padding: 0.208vw 0.624vw;
    border-radius: 1.04vw;
    font-size: 0.599vw;
    font-weight: 600;
    margin-top: 0.312vw;
}

.badge-warning {
    background: rgba(232, 160, 32, 0.12);
    color: var(--warning);
}

.badge-success {
    background: rgba(31, 157, 99, 0.12);
    color: var(--success);
}

.badge-info {
    background: rgba(39, 86, 113, 0.1);
    color: var(--navy);
}

/* ===== SEARCH ===== */
.search-box { position: relative; }

.search-results {
    position: absolute;
    top: calc(100% + 0.208vw);
    left: 0;
    right: 0;
    background: var(--white);
    border: 0.078vw solid var(--border);
    border-radius: var(--radius-sm);
    max-height: 11.44vw;
    overflow-y: auto;
    z-index: 50;
    display: none;
    box-shadow: var(--shadow);
}

.search-results.active { display: block; }

.search-results div {
    padding: 0.624vw 0.832vw;
    cursor: pointer;
    font-size: 0.7488vw;
    transition: background var(--transition);
}

.search-results div:hover {
    background: rgba(142, 190, 33, 0.08);
    color: var(--green-dark);
}

/* ===== DROPZONE ===== */
.dropzone {
    border: 0.104vw dashed var(--border);
    border-radius: var(--radius);
    padding: 2.496vw 1.248vw;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: linear-gradient(180deg, var(--bg-soft), var(--white));
    position: relative;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--green);
    background: rgba(142, 190, 33, 0.04);
    transform: scale(1.01);
}

.dropzone-icon {
    font-size: 2.496vw;
    margin-bottom: 0.624vw;
    opacity: 0.7;
}

.dropzone p {
    color: var(--text-muted);
    font-size: 0.7488vw;
}

.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.7488vw;
    margin: -0.208vw 0 1.04vw;
}

.upload-progress { margin-top: 0.832vw; display: none; }
.upload-progress.active { display: block; }

.progress-bar {
    height: 0.416vw;
    background: var(--border);
    border-radius: 0.208vw;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--green), var(--green-light));
    border-radius: 0.208vw;
    transition: width 0.12s linear;
}

.upload-progress.complete .progress-bar-fill {
    transition: none;
}

.upload-progress.error .progress-bar-fill {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
}

.upload-progress-label {
    margin-top: 0.416vw;
    font-size: 0.7072vw;
    color: var(--text-muted);
    font-weight: 500;
}

.upload-progress.error .upload-progress-label {
    color: #c0392b;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.624vw;
    margin-top: 1.248vw;
    padding-top: 0.832vw;
    border-top: 0.052vw solid var(--border);
}

.pagination-summary {
    margin: 0;
    font-size: 0.7488vw;
    color: var(--text-muted);
}

.pagination-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.312vw;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.872vw;
    height: 1.872vw;
    padding: 0 0.52vw;
    border: 0.052vw solid var(--border);
    border-radius: 0.416vw;
    background: var(--white);
    color: var(--navy);
    font-size: 0.7488vw;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

a.pagination-link:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

.pagination-link.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.pagination-link.disabled,
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.872vw;
    height: 1.872vw;
    padding: 0 0.52vw;
    color: var(--text-muted);
    font-size: 0.7488vw;
}

.pagination-link.disabled {
    opacity: 0.55;
}

/* ===== FILE GALLERY ===== */
.file-tabs {
    display: flex;
    gap: 0.52vw;
    margin-bottom: 1.248vw;
}

.file-tab {
    padding: 0.572vw 1.144vw;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 0.078vw solid var(--border);
    cursor: pointer;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.7322vw;
    color: var(--text-muted);
    transition: all var(--transition);
}

.file-tab:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

.file-tab.active {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0.208vw 0.728vw rgba(142, 190, 33, 0.3);
}

.file-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12.48vw, 1fr));
    gap: 0.936vw;
}

.file-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.248vw;
    box-shadow: var(--shadow-sm);
    border: 0.052vw solid var(--border-soft);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.156vw;
    background: linear-gradient(90deg, var(--green), var(--navy-light));
}

.file-card:hover {
    transform: translateY(-0.312vw);
    box-shadow: var(--shadow);
}

.file-card-icon {
    font-size: 2.08vw;
    margin-bottom: 0.728vw;
}

.file-card-name {
    font-weight: 700;
    font-size: 0.7654vw;
    color: var(--navy);
    margin-bottom: 0.416vw;
    word-break: break-word;
}

.file-card-meta {
    font-size: 0.6656vw;
    color: var(--text-muted);
    margin-bottom: 0.832vw;
    line-height: 1.5;
}

.file-card-actions {
    display: flex;
    gap: 0.312vw;
    flex-wrap: wrap;
}

.prosba-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.728vw;
}

.prosba-link-item {
    display: flex;
    justify-content: space-between;
    gap: 0.832vw;
    align-items: flex-start;
    padding: 0.832vw 0.936vw;
    border: 0.052vw solid var(--border);
    border-radius: 0.728vw;
    background: #fafcfd;
}

.prosba-link-item strong {
    display: block;
    word-break: break-all;
    margin-bottom: 0.312vw;
    font-size: 0.728vw;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.52vw;
    font-weight: 600;
    cursor: pointer;
}

.form-group--checkbox {
    margin-bottom: 1.04vw;
}

.form-group--checkbox label.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 0.728vw;
    width: 100%;
    margin-bottom: 0;
    padding: 0.832vw 0.936vw;
    border: 0.078vw solid var(--border);
    border-radius: 0.624vw;
    background: var(--bg-soft);
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group--checkbox label.checkbox-option:hover {
    border-color: #c5d4e0;
    background: var(--white);
}

.form-group--checkbox label.checkbox-option:has(input:checked) {
    border-color: var(--green);
    background: rgba(142, 190, 33, 0.1);
    box-shadow: 0 0 0 0.208vw rgba(142, 190, 33, 0.08);
}

.form-group--checkbox input[type="checkbox"] {
    width: 1.04vw;
    height: 1.04vw;
    min-width: 1.04vw;
    margin-top: 0.104vw;
    padding: 0;
    border-radius: 0.208vw;
    accent-color: var(--green);
    cursor: pointer;
    flex-shrink: 0;
    background: var(--white);
}

.checkbox-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.208vw;
    min-width: 0;
}

.checkbox-option-text strong {
    color: var(--navy);
    font-size: 0.7904vw;
    font-weight: 600;
    line-height: 1.35;
}

.checkbox-option-text small {
    color: var(--text-muted);
    font-size: 0.7072vw;
    font-weight: 400;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: normal;
}

/* ===== STARS ===== */
.stars { display: flex; gap: 0.208vw; }

.star {
    font-size: 1.248vw;
    color: #dde3ea;
    cursor: default;
    transition: all 0.15s;
}

.stars-interactive .star { cursor: pointer; }
.stars-interactive .star:hover { transform: scale(1.25); }
.star.filled { color: #f5b731; }

/* ===== MODAL ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.04vw;
}

.modal.hidden { display: none; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 61, 79, 0.55);
    backdrop-filter: blur(0.312vw);
    animation: fadeIn 0.2s ease;
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 1.04vw;
    padding: 1.664vw;
    width: 100%;
    max-width: 24.96vw;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    animation: modalIn 0.3s ease;
}

.modal-content--prosba {
    max-width: 27.04vw;
    padding: 1.456vw 1.456vw 1.248vw;
}

.modal-content--prosba .modal-header {
    margin-bottom: 0.624vw;
}

.modal-content--prosba .modal-header h3 {
    margin: 0;
    padding-right: 0.624vw;
    line-height: 1.3;
}

.modal-lead {
    margin: 0 0 1.144vw;
    color: var(--text-muted);
    font-size: 0.7654vw;
    line-height: 1.55;
}

.modal-content--prosba .form-group:last-of-type {
    margin-bottom: 0;
}

.modal-content--prosba .modal-actions {
    margin-top: 1.04vw;
    padding-top: 0.208vw;
}

.modal-pdf {
    padding: 0.52vw;
    align-items: stretch;
}

.modal-pdf .modal-content-pdf {
    width: min(98vw, 66.56vw);
    max-width: none;
    height: min(96vh, 47.84vw);
    max-height: 96vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0.156vw solid var(--green);
    border-radius: 0.936vw;
}

.modal-header-pdf {
    margin-bottom: 0;
    padding: 0.832vw 1.144vw;
    background: linear-gradient(135deg, #275671, #1e4358);
    color: #fff;
    border-radius: 0.728vw 0.728vw 0 0;
    gap: 0.832vw;
}

.modal-header-pdf-text {
    min-width: 0;
    flex: 1;
}

.modal-header-pdf-label {
    display: block;
    font-size: 0.599vw;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 0.208vw;
}

.modal-header-pdf h3 {
    color: #fff;
    font-size: 0.832vw;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-header-pdf-actions {
    display: flex;
    align-items: center;
    gap: 0.52vw;
    flex-shrink: 0;
}

.btn-pdf-open-new {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn-pdf-open-new:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #fff;
    color: #fff;
}

.modal-close-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.modal-close-light:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.pdf-viewer-wrap {
    flex: 1;
    min-height: 0;
    padding: 0.728vw;
    background: #e8eef4;
}

.pdf-frame {
    width: 100%;
    height: 100%;
    min-height: calc(96vh - 5.72vw);
    border: none;
    border-radius: 0.52vw;
    background: #fff;
    box-shadow: 0 0.416vw 1.664vw rgba(39, 86, 113, 0.12);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(0.52vw); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.248vw;
}

.modal-header h3 {
    color: var(--navy);
    font-size: 0.9984vw;
    font-weight: 700;
}

.modal-close-btn {
    background: var(--bg-soft);
    border: none;
    width: 1.872vw;
    height: 1.872vw;
    border-radius: 0.52vw;
    font-size: 1.1648vw;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
}

.modal-close-btn:hover {
    background: var(--border);
    color: var(--navy);
}

.modal-actions {
    display: flex;
    gap: 0.624vw;
    justify-content: flex-end;
    margin-top: 1.248vw;
}

.hidden { display: none !important; }

.empty-state {
    text-align: center;
    padding: 3.744vw 1.248vw;
    color: var(--text-muted);
    background: var(--white);
    border-radius: var(--radius);
    border: 0.052vw dashed var(--border);
}

.empty-state-icon {
    font-size: 2.912vw;
    margin-bottom: 0.832vw;
    opacity: 0.5;
}

.rating-box {
    padding: 0.832vw 1.248vw 1.04vw;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: -0.52vw;
    margin-bottom: 0.728vw;
    border: 0.052vw solid var(--border-soft);
    border-top: none;
    box-shadow: var(--shadow-sm);
}

.rating-box small {
    color: var(--text-muted);
    font-size: 0.649vw;
}

.rating-box p {
    font-size: 0.7322vw;
    margin-top: 0.416vw;
    color: var(--text);
}

    .sidebar-logo {
        max-height: 4.576vw;
        max-width: 11.3vw;
        object-fit: contain;
    }

    .sidebar-firma-switch select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgb(255 255 255);
    color: #000000;
    padding-right: 46px;
}

.sidebar-firma-switch {
    padding: 0 18px 18px;
    background-color: white;
}
.sidebar-firma-switch label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(0 0 0);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 21px;
    margin-left: 1vw;
}
    .sidebar-firma-switch select {
        width: 100%;
        padding: 10px 12px;
        border-radius: var(--radius-sm);
        border: 0px solid rgb(0 0 0 / 13%);
        background: rgb(255 255 255);
        color: #000000;
        padding-right: 46px;
        border-bottom: 1px solid black;
        border-radius: 0px;
    }
        .sidebar-firma-switch {
        padding: 0 18px 18px;
        background-color: white;
        border-left: 5px solid #72a41b;
        border-right: 5px solid #72a41b;
    }
        .sidebar-firma-switch {
        padding: 0 18px 18px;
        background-color: white;
        border-left: 5px solid #72a41b;
        border-right: 5px solid #72a41b;
        width: 90%;
        margin: auto;
        border-radius: 0.5vw;
        border-bottom: 0px;
    }
    .sidebar-footer {
        padding: 1.04vw 0.832vw;
        border-top: 0px solid rgba(255, 255, 255, 0.3);
    }
}

@media (max-width:991px)
{
    .login-brand-logo {
        max-height: 96px;
        max-width: 280px;
        margin-bottom: 19px;
        object-fit: contain;
    }
}
