/* ==========================================================================
   Nitro Simracing - Tournament Complaints
   ========================================================================== */

.tor-denuncias--v2 {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 0% 0%, rgba(209, 17, 8, 0.18), transparent 28%),
        radial-gradient(circle at 100% 100%, rgba(30, 76, 168, 0.18), 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);
}

.tor-denuncias--v2::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
}

.tor-denuncias--v2 > * {
    position: relative;
    z-index: 1;
}

.tor-den-section {
    display: grid;
    gap: 12px;
}

.tor-den-subtitle {
    margin: 0;
    color: #f7fbff;
    font: 800 1.02rem/1 "Akshar", var(--sn-font-sans, system-ui);
    text-transform: uppercase;
}

.tor-denuncias--v2 .sn-table-wrap {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
        linear-gradient(155deg, rgba(11, 17, 30, 0.98), rgba(15, 22, 38, 0.98));
    overflow: auto;
}

.tor-denuncias-table {
    width: 100%;
}

.tor-denuncias-table thead th {
    background: rgba(8, 13, 24, 0.82);
    color: #aebdd6;
    font: 800 0.74rem/1 var(--sn-font-sans, system-ui);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

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

.tor-denuncias-table td {
    color: #eef4ff;
    vertical-align: middle;
}

.tor-fase-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f5f8ff;
    font: 800 0.72rem/1 var(--sn-font-sans, system-ui);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tor-fase-timer {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: rgba(174, 189, 214, 0.9);
    font: 800 0.72rem/1 var(--sn-font-sans, system-ui);
}

.tor-den-detalle {
    min-width: 118px;
    justify-content: center;
    border-radius: 16px !important;
    border: 1px solid rgba(201, 13, 5, 0.52) !important;
    background: linear-gradient(135deg, #c90d05, #7f0903) !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(140, 13, 7, 0.28) !important;
}

.tor-den-detalle:hover,
.tor-den-detalle:focus-visible {
    border-color: rgba(255, 120, 109, 0.82) !important;
    background: linear-gradient(135deg, #df1d11, #941007) !important;
    color: #fff !important;
}

.tor-den-detalle:disabled,
.tor-den-detalle[disabled] {
    opacity: 0.52;
    filter: grayscale(0.08);
    cursor: not-allowed;
}

.tor-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 6px;
}

.tor-pager-info {
    color: rgba(174, 189, 214, 0.82);
    font: 700 0.88rem/1.2 var(--sn-font-sans, system-ui);
}

body #tor-denuncias-modal-global .tor-den-modal {
    width: min(1160px, calc(100vw - 36px));
    max-width: 1160px;
    max-height: min(88vh, 920px);
    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 #tor-denuncias-modal-global .sn-modal__header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body #tor-denuncias-modal-global .tor-den-modal__header {
    display: grid;
    gap: 14px;
    align-items: stretch;
}

body #tor-denuncias-modal-global .tor-den-modal__header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body #tor-denuncias-modal-global .sn-modal__body {
    display: grid;
    gap: 16px;
    overflow: auto;
}

body #tor-denuncias-modal-global .tor-den-modal__tabs {
    margin: 0;
    width: 100%;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    align-items: center;
    scrollbar-width: none;
}

body #tor-denuncias-modal-global .tor-den-modal__tabs::-webkit-scrollbar {
    display: none;
}

body #tor-denuncias-modal-global .tor-den-modal__tabs > button {
    flex: 0 0 auto;
}

body #tor-denuncias-modal-global .den-tab {
    min-width: 0;
}

body #tor-denuncias-modal-global .den-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body #tor-denuncias-modal-global .den-summary-card,
body #tor-denuncias-modal-global .den-block,
body #tor-denuncias-modal-global .den-add-form {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012)),
        rgba(10, 16, 28, 0.82);
}

body #tor-denuncias-modal-global .den-summary-card {
    display: grid;
    gap: 6px;
    padding: 14px;
}

body #tor-denuncias-modal-global .den-summary-card__label,
body #tor-denuncias-modal-global .den-block__head span {
    color: rgba(174, 189, 214, 0.8);
    font: 800 0.72rem/1 var(--sn-font-sans, system-ui);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body #tor-denuncias-modal-global .den-summary-card__value {
    color: #f5f8ff;
    font: 800 1.06rem/1.1 "Akshar", var(--sn-font-sans, system-ui);
}

body #tor-denuncias-modal-global .den-summary-card__extra {
    color: rgba(174, 189, 214, 0.76);
    font-size: 0.84rem;
}

body #tor-denuncias-modal-global .den-block,
body #tor-denuncias-modal-global .den-add-form {
    padding: 14px;
}

body #tor-denuncias-modal-global .den-block__head {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

body #tor-denuncias-modal-global .den-block__head h5,
body #tor-denuncias-modal-global .den-add-title {
    margin: 0;
    color: #f7fbff;
    font: 800 0.98rem/1 "Akshar", var(--sn-font-sans, system-ui);
    text-transform: uppercase;
}

body #tor-denuncias-modal-global .den-invol-list,
body #tor-denuncias-modal-global .den-timeline {
    display: grid;
    gap: 10px;
}

body #tor-denuncias-modal-global .den-inv-item,
body #tor-denuncias-modal-global .den-com-item {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body #tor-denuncias-modal-global .den-com-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body #tor-denuncias-modal-global .den-com-user,
body #tor-denuncias-modal-global .den-inv-item {
    color: #eef4ff;
}

body #tor-denuncias-modal-global .den-com-date {
    color: rgba(174, 189, 214, 0.76);
    font-size: 0.82rem;
}

body #tor-denuncias-modal-global .den-com-text {
    color: #e8eef9;
    line-height: 1.5;
}

body #tor-denuncias-modal-global .den-adjuntos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body #tor-denuncias-modal-global .den-adj-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body #tor-denuncias-modal-global .den-adj-link {
    color: #8bc5ff;
    text-decoration: none;
}

body #tor-denuncias-modal-global .den-add-form {
    display: grid;
    gap: 12px;
}

body #tor-denuncias-modal-global .den-add-field,
body #tor-denuncias-modal-global .den-add-links,
body #tor-denuncias-modal-global .den-add-files {
    display: grid;
    gap: 8px;
}

body #tor-denuncias-modal-global .den-add-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    body #tor-denuncias-modal-global .den-summary-grid {
        grid-template-columns: 1fr;
    }
}

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

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

    .tor-denuncias-table thead {
        display: none;
    }

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

    .tor-denuncias-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);
    }

    .tor-denuncias-table tbody td {
        padding: 0;
        border: 0;
    }

    .tor-denuncias-table tbody td + td {
        margin-top: 10px;
    }

    .tor-denuncias-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;
    }

    .tor-den-detalle {
        width: 100%;
    }

    body #tor-denuncias-modal-global .tor-den-modal {
        width: min(100vw - 18px, 100%);
        max-height: 92vh;
        border-radius: 18px;
    }

    body #tor-denuncias-modal-global .tor-den-modal__header-main {
        align-items: flex-start;
    }

    body #tor-denuncias-modal-global .tor-den-modal__tabs {
        gap: 8px !important;
        padding: 8px !important;
    }

    body #tor-denuncias-modal-global .sn-modal__body {
        gap: 12px;
    }

    body #tor-denuncias-modal-global .den-com-head {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    body #tor-denuncias-modal-global .tor-den-modal {
        width: min(100vw - 12px, 100%);
    }

    body #tor-denuncias-modal-global .sn-modal__body,
    body #tor-denuncias-modal-global .den-block,
    body #tor-denuncias-modal-global .den-add-form,
    body #tor-denuncias-modal-global .den-summary-card {
        min-width: 0;
        width: 100%;
    }

    body #tor-denuncias-modal-global .den-block__head,
    body #tor-denuncias-modal-global .den-com-head,
    body #tor-denuncias-modal-global .den-add-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body #tor-denuncias-modal-global .den-inv-item,
    body #tor-denuncias-modal-global .den-com-user,
    body #tor-denuncias-modal-global .den-com-date,
    body #tor-denuncias-modal-global .den-com-text,
    body #tor-denuncias-modal-global .den-adj-link {
        overflow-wrap: anywhere;
    }
}
