/* ==========================================================================
   Nitro Simracing - Complaint Report Form
   ========================================================================== */

.sn-denuncias-presentar--v2 {
    display: grid;
    gap: 18px;
    padding: 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 0% 0%, rgba(209, 17, 8, 0.16), transparent 28%),
        radial-gradient(circle at 100% 100%, rgba(30, 76, 168, 0.16), transparent 28%),
        linear-gradient(155deg, rgba(8, 13, 24, 0.96), rgba(10, 16, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.03),
        0 24px 56px rgba(0,0,0,0.42);
}

.sn-denuncias-presentar--v2 .tor-cal-card {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.012)),
        rgba(10, 16, 28, 0.82);
    overflow: hidden;
}

.sn-denuncias-presentar--v2 .tor-cal-card-head {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sn-denuncias-presentar--v2 .tor-cal-card-body {
    padding: 18px 20px 20px;
}

.sn-denuncias-presentar--v2 .sn-shell__title {
    color: #f7fbff;
    font: 800 1.08rem/1 "Akshar", var(--sn-font-sans, system-ui);
    text-transform: uppercase;
}

.sn-denuncias-presentar--v2 .sn-table-wrap {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.01)),
        rgba(9, 14, 24, 0.88);
    overflow: auto;
}

.sn-denuncias-presentar--v2 .sn-table thead th {
    background: rgba(8, 13, 24, 0.84);
    color: rgba(174, 189, 214, 0.86);
    font: 800 0.74rem/1 var(--sn-font-sans, system-ui);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sn-denuncias-presentar--v2 .sn-table tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.012);
}

.sn-denuncias-presentar--v2 .sn-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.018);
}

.sn-denuncias-presentar--v2 .sn-table td {
    color: #eef4ff;
    vertical-align: middle;
}

.sn-denuncias-presentar--v2 .sn-actions .sn-btn,
.sn-denuncias-presentar--v2 .sn-actions .tor-btn {
    min-width: 124px;
    justify-content: center;
}

.sn-denuncias-presentar--v2 .sesion-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--sesion-color, rgba(255,255,255,0.25)) 55%, rgba(255,255,255,0.14));
    background: color-mix(in srgb, var(--sesion-color, rgba(255,255,255,0.1)) 16%, rgba(255,255,255,0.05));
    color: #f5f8ff;
    font: 800 0.72rem/1 var(--sn-font-sans, system-ui);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sn-denuncias-presentar--v2 .tor-countdown {
    display: inline-grid;
    gap: 6px;
    min-width: 124px;
}

.sn-denuncias-presentar--v2 .cd-label {
    color: rgba(174, 189, 214, 0.72);
    font: 800 0.68rem/1 var(--sn-font-sans, system-ui);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sn-denuncias-presentar--v2 .cd-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #f6fbff;
    font: 800 0.95rem/1 "Akshar", var(--sn-font-sans, system-ui);
}

body .sn-denuncias-presentar__modal {
    z-index: 2147483001;
}

body .sn-denuncias-presentar__dialog {
    width: min(980px, calc(100vw - 28px));
    max-width: 980px;
    max-height: 88vh;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    background:
        radial-gradient(circle at 0% 0%, rgba(209, 17, 8, 0.15), transparent 26%),
        radial-gradient(circle at 100% 100%, rgba(30, 76, 168, 0.18), transparent 26%),
        linear-gradient(155deg, rgba(8, 13, 24, 0.98), rgba(10, 16, 28, 0.99));
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.03),
        0 28px 64px rgba(0,0,0,0.48);
}

body .sn-denuncias-presentar__header {
    display: grid;
    gap: 8px;
    position: relative;
    padding-right: 64px;
}

body .sn-denuncias-presentar__header .sn-modal__title {
    color: #f7fbff;
    font: 800 1.22rem/1 "Akshar", var(--sn-font-sans, system-ui);
    text-transform: uppercase;
}

body .sn-denuncias-presentar__header .sn-config-instructions-label,
body .sn-denuncias-presentar__header .sn-config-notas-head {
    color: rgba(174, 189, 214, 0.82);
}

body .sn-denuncias-presentar__header .sn-modal__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08) !important;
    background: linear-gradient(180deg, rgba(34, 13, 13, 0.88), rgba(20, 9, 9, 0.96)) !important;
    color: #f4f7ff !important;
    box-shadow: none !important;
}

body .sn-denuncias-presentar__header .sn-modal__close:hover,
body .sn-denuncias-presentar__header .sn-modal__close:focus-visible {
    background: linear-gradient(180deg, rgba(64, 18, 18, 0.94), rgba(31, 11, 11, 1)) !important;
    border-color: rgba(201, 13, 5, 0.34) !important;
    color: #fff !important;
    transform: none !important;
}

body .sn-denuncias-presentar__body {
    display: grid;
    gap: 18px;
}

body .sn-denuncias-presentar__body .sn-form-denuncia {
    display: grid;
    gap: 18px;
}

body .sn-denuncias-presentar__body .sn-flex.sn-gap-2 {
    align-items: flex-start;
}

body .sn-denuncias-presentar__body .sn-w-100,
body .sn-denuncias-presentar__body .sn-w-200 {
    min-width: 0;
}

body .sn-denuncias-presentar__body label {
    color: rgba(174, 189, 214, 0.86);
    font: 800 0.76rem/1 var(--sn-font-sans, system-ui);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body .sn-denuncias-presentar__body .sn-text-faint,
body .sn-denuncias-presentar__body .tor-note-sm,
body .sn-denuncias-presentar__body .sn-help {
    color: rgba(174, 189, 214, 0.76);
}

body .sn-denuncias-presentar__body .sn-input,
body .sn-denuncias-presentar__body .sn-form input:not([type="checkbox"]):not([type="radio"]),
body .sn-denuncias-presentar__body .sn-form textarea,
body .sn-denuncias-presentar__body .sn-form select {
    background: rgba(5, 8, 14, 0.92) !important;
    color: #eef4ff !important;
    border-color: rgba(255,255,255,0.09) !important;
}

body .sn-denuncias-presentar__body .sn-input::placeholder,
body .sn-denuncias-presentar__body .sn-form textarea::placeholder,
body .sn-denuncias-presentar__body .sn-form input::placeholder {
    color: rgba(174, 189, 214, 0.58) !important;
}

body .sn-denuncias-presentar__body textarea.sn-input,
body .sn-denuncias-presentar__body .sn-input--textarea,
body .sn-denuncias-presentar__body textarea {
    min-height: 188px;
    background: rgba(5, 8, 14, 0.96) !important;
    color: #eef4ff !important;
    border-radius: 20px !important;
}

body .sn-denuncias-presentar__body .sn-inv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body .sn-denuncias-presentar__body .sn-inv-chips .tor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(91, 129, 255, 0.34);
    background: linear-gradient(180deg, rgba(53, 76, 137, 0.55), rgba(37, 53, 95, 0.72));
    color: #eef4ff;
    font: 800 0.74rem/1 var(--sn-font-sans, system-ui);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body .sn-denuncias-presentar__body .sn-inv-chips [data-sn="rm-inv"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
}

body .sn-denuncias-presentar__body .sn-adjuntos {
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.01)),
        rgba(10, 16, 28, 0.76);
}

body .sn-denuncias-presentar__body .sn-adjuntos-dynamic {
    display: grid;
    gap: 12px;
}

body .sn-denuncias-presentar__body .sn-file-item {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

body .sn-denuncias-presentar__body .sn-adj-input input[type="file"],
body .sn-denuncias-presentar__body .sn-adj-input input[type="text"] {
    width: 100%;
}

body .sn-denuncias-presentar__body .sn-status {
    justify-self: start;
}

body .sn-denuncias-presentar__footer {
    gap: 10px;
}

body .sn-denuncias-presentar__footer .sn-btn {
    min-width: 164px;
}

body .sn-denuncias-presentar__footer .sn-btn--ghost {
    background: linear-gradient(180deg, rgba(49, 17, 17, 0.72), rgba(32, 10, 10, 0.82)) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #f3f7ff !important;
    box-shadow: none !important;
}

body .sn-denuncias-presentar__footer .sn-btn--ghost:hover,
body .sn-denuncias-presentar__footer .sn-btn--ghost:focus-visible {
    background: linear-gradient(180deg, rgba(72, 22, 22, 0.82), rgba(41, 11, 11, 0.9)) !important;
    border-color: rgba(201, 13, 5, 0.34) !important;
    color: #fff !important;
}

body .sn-denuncias-presentar__body [data-sn="add-adjunto"],
body .sn-denuncias-presentar__body [data-sn="remove-adjunto"] {
    justify-self: start;
}

body .sn-denuncias-presentar__body [data-sn="add-adjunto"] {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px !important;
    border: 1px solid rgba(201, 13, 5, 0.34) !important;
    background: linear-gradient(180deg, rgba(55, 15, 15, 0.74), rgba(34, 10, 10, 0.86)) !important;
    color: #f4f7ff !important;
    box-shadow: none !important;
}

body .sn-denuncias-presentar__body [data-sn="add-adjunto"]:hover,
body .sn-denuncias-presentar__body [data-sn="add-adjunto"]:focus-visible {
    background: linear-gradient(180deg, rgba(85, 21, 21, 0.82), rgba(46, 11, 11, 0.94)) !important;
    border-color: rgba(201, 13, 5, 0.5) !important;
    color: #fff !important;
    transform: none !important;
}

body .sn-denuncias-presentar__body [data-sn="add-adjunto"] i,
body .sn-denuncias-presentar__body [data-sn="remove-adjunto"] i {
    opacity: 0.95;
}

body .sn-denuncias-presentar__body [data-sn="remove-adjunto"] {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    background: rgba(255,255,255,0.05) !important;
    color: #f3f7ff !important;
    box-shadow: none !important;
}

body .sn-denuncias-presentar__body [data-sn="remove-adjunto"]:hover,
body .sn-denuncias-presentar__body [data-sn="remove-adjunto"]:focus-visible {
    background: rgba(255,255,255,0.09) !important;
    border-color: rgba(201, 13, 5, 0.24) !important;
    color: #fff !important;
    transform: none !important;
}

body .sn-denuncias-presentar__body .select2-container {
    width: 100% !important;
}

body .sn-denuncias-presentar__body .select2-container .select2-selection--single {
    min-height: 48px;
    border-radius: 14px;
    background: rgba(5, 8, 14, 0.92) !important;
    border-color: rgba(255,255,255,0.09) !important;
}

body .sn-denuncias-presentar__body .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #eef4ff !important;
}

body .select2-dropdown {
    background: rgba(10, 16, 28, 0.98) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
}

body .select2-search--dropdown {
    padding: 10px !important;
}

body .select2-search--dropdown .select2-search__field {
    background: rgba(5, 8, 14, 0.94) !important;
    color: #eef4ff !important;
    border-color: rgba(255,255,255,0.09) !important;
}

@media (max-width: 900px) {
    body .sn-denuncias-presentar__body .sn-flex.sn-gap-2 {
        flex-direction: column;
    }

    body .sn-denuncias-presentar__body .sn-w-200 {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .sn-denuncias-presentar--v2 {
        gap: 14px;
        padding: 14px;
        border-radius: 20px;
    }

    .sn-denuncias-presentar--v2 .tor-cal-card-head,
    .sn-denuncias-presentar--v2 .tor-cal-card-body {
        padding: 14px;
    }

    .sn-denuncias-presentar--v2 .sn-table,
    .sn-denuncias-presentar--v2 .sn-table thead,
    .sn-denuncias-presentar--v2 .sn-table tbody,
    .sn-denuncias-presentar--v2 .sn-table tr,
    .sn-denuncias-presentar--v2 .sn-table th,
    .sn-denuncias-presentar--v2 .sn-table td {
        display: block;
        width: 100%;
    }

    .sn-denuncias-presentar--v2 .sn-table thead {
        display: none;
    }

    .sn-denuncias-presentar--v2 .sn-table tbody {
        display: grid;
        gap: 12px;
        padding: 10px;
    }

    .sn-denuncias-presentar--v2 .sn-table tbody tr {
        padding: 12px;
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,0.08);
        background:
            linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.01)),
            rgba(11, 17, 30, 0.9);
    }

    .sn-denuncias-presentar--v2 .sn-table tbody td {
        padding: 0;
        border: 0;
    }

    .sn-denuncias-presentar--v2 .sn-table tbody td + td {
        margin-top: 10px;
    }

    .sn-denuncias-presentar--v2 .sn-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        color: rgba(174, 189, 214, 0.78);
        font: 800 0.68rem/1 var(--sn-font-sans, system-ui);
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .sn-denuncias-presentar--v2 .sn-actions .sn-btn,
    .sn-denuncias-presentar--v2 .sn-actions .tor-btn {
        width: 100%;
    }

    body .sn-denuncias-presentar__dialog {
        width: min(100vw - 18px, 100%);
        max-height: 92vh;
        border-radius: 18px;
    }

    body .sn-denuncias-presentar__footer {
        flex-direction: column-reverse;
    }

    body .sn-denuncias-presentar__footer .sn-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    body .sn-denuncias-presentar__header {
        align-items: flex-start;
        gap: 10px;
    }

    body .sn-denuncias-presentar__dialog {
        width: min(100vw - 12px, 100%);
        max-height: 94vh;
    }

    body .sn-denuncias-presentar__body {
        padding: 14px;
    }

    body .sn-denuncias-presentar__body .sn-form-denuncia,
    body .sn-denuncias-presentar__body .sn-flex.sn-gap-2,
    body .sn-denuncias-presentar__body .sn-add-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
