/* ========================================
   DEVICE REQUESTS PAGE STYLES (DeviceRequests.razor)
   ======================================== */

/* ---------- Pages/DeviceRequests.razor ---------- */
.device-requests-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--surface-solid-accent, rgba(var(--color-primary-rgb), 0.12));
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-heading {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    color: var(--color-primary);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-title i {
    color: var(--color-primary);
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-title:focus,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-title:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-heading p {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.8rem;
    line-height: 1.4;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .panel-title-row p {
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.64);
    line-height: 1.4;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-loading {
    min-height: 18rem;
    display: grid;
    place-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-metric {
    min-width: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.14);
    border-radius: var(--surface-radius, 8px);
    background: var(--surface-solid-base, rgba(255, 255, 255, 0.02));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .metric-label {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .metric-value {
    display: block;
    margin-top: 0.2rem;
    color: var(--color-primary);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    border-radius: 6px;
    background: var(--surface-solid-base, rgba(255, 255, 255, 0.02));
    overflow-x: auto;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 30px;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    border-radius: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-tab.active {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.15);
    color: var(--color-primary);
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-tab:hover:not(.active) {
    background: rgba(var(--color-primary-rgb), 0.05);
    border-color: rgba(var(--color-primary-rgb), 0.3);
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(var(--color-primary-rgb), 0.18);
    color: #00d8ff;
    font-size: 0.75rem;
    font-weight: 800;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-panel {
    padding: 0.9rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    border-radius: var(--surface-radius, 8px);
    background: var(--surface-solid-base, rgba(255, 255, 255, 0.02));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .panel-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .panel-title-row h3 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-empty,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .inline-empty {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 5rem;
    padding: 1rem;
    border: 1px dashed rgba(var(--color-primary-rgb), 0.18);
    border-radius: 6px;
    background: rgba(var(--color-primary-rgb), 0.03);
    color: rgba(255, 255, 255, 0.62);
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-list {
    display: grid;
    gap: 0.75rem;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-row,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-row:hover,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-row:hover {
    background: rgba(var(--color-primary-rgb), 0.05);
    border-color: rgba(var(--color-primary-rgb), 0.2);
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-row-main {
    min-width: 0;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-type {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    color: #00d8ff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .transfer-row .request-type {
    color: #f6ad55;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-row h4,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-row h4 {
    margin: 0;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.84rem;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-reason,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-comment {
    margin: 0.65rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-comment {
    color: rgba(255, 255, 255, 0.58);
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .status-pill,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.4rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .status-pill.pending {
    background: rgba(246, 173, 85, 0.14);
    color: #f6ad55;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .status-pill.approved,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-pill.monitor {
    background: rgba(72, 187, 120, 0.14);
    color: #68d391;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .status-pill.rejected {
    background: rgba(245, 101, 101, 0.14);
    color: #fc8181;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .status-pill.neutral {
    background: rgba(160, 174, 192, 0.14);
    color: #a0aec0;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-pill.control {
    background: rgba(var(--color-primary-rgb), 0.16);
    color: #00d8ff;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-section {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 800;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-row {
    align-items: center;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-dialog-header {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 26, 34, 0.98);
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-dialog-header.danger i {
    color: #fc8181;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-dialog-header h5 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-dialog-header i {
    color: #00d8ff;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-dialog-body {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.88);
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .approval-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .approval-summary > div {
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    min-width: 0;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .approval-summary strong {
    display: block;
    margin-top: 0.25rem;
    overflow-wrap: anywhere;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .summary-label {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .approval-notice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(246, 173, 85, 0.32);
    border-radius: 8px;
    background: rgba(246, 173, 85, 0.1);
    line-height: 1.45;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .approval-notice i {
    margin-top: 0.15rem;
    color: #f6ad55;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-choice-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.76);
    font-weight: 800;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-choice.selected {
    border-color: rgba(var(--color-primary-rgb), 0.55);
    background: rgba(var(--color-primary-rgb), 0.14);
    color: #ffffff;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .dialog-field {
    display: grid;
    gap: 0.45rem;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .dialog-field label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 800;
}

:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    :where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-metrics,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .device-requests-page {
        padding: 0.6rem;
    }

    :where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-header,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-row,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-row {
        flex-direction: column;
    }

    :where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-section-grid,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .approval-summary,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .access-choice-group {
        grid-template-columns: 1fr;
    }

    :where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-header .e-btn,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-actions,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-actions .e-btn,
:where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-dialog-actions .e-btn {
        width: 100%;
    }

    :where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .request-actions {
        align-items: stretch;
    }

    :where(.device-requests-page, .device-requests-page ~ .lbsa-mobile-dialog-host) .requests-tab {
        min-height: 44px;
    }
}

