/*!
 Copyright (c) 2020, 2025, Oracle and/or its affiliates.
 */

/* =========================================================
   SIDE NAVIGATION — SPACING AND SEPARATORS
   ========================================================= */

/* Reduce indentation and excess spacing */
.t-TreeNav .a-TreeView-node .a-TreeView-content {
    padding-inline: 8px !important;
}

/* Keep labels from reserving unnecessary space */
.t-TreeNav .a-TreeView-label {
    margin-inline-start: 4px !important;
    padding-inline: 0 !important;
    min-width: 0 !important;
    white-space: normal !important;
}

/* Prevent nested levels from adding extra margin */
.t-TreeNav .a-TreeView-node {
    margin-inline-start: 0 !important;
}

/* Subtle separators between menu items */
.t-TreeNav .a-TreeView-node > .a-TreeView-content {
    border-bottom: 1px solid rgba(100, 116, 139, 0.16) !important;
}

/* No separator after the last item in each group */
.t-TreeNav .a-TreeView-node:last-child > .a-TreeView-content {
    border-bottom-color: transparent !important;
}


/* =========================================================
   CLASSIC REPORT — MODERN HEADER AND TABLE
   ========================================================= */

.t-Report,
.t-Region .t-Report {
    width: 100%;
    border: 1px solid var(--sd-border, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    background: var(--sd-card, #ffffff);
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.t-Report table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 0;
}

/* Header */
.t-Report thead th,
.t-Report th.t-Report-colHead {
    background: var(--sd-primary, #176B65) !important;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: start;
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 3px solid var(--sd-accent, #2D8C91) !important;
    white-space: normal;
    vertical-align: middle;
}

.t-Report thead th:first-child {
    border-start-start-radius: 10px;
}

.t-Report thead th:last-child {
    border-start-end-radius: 10px;
}

/* Body cells */
.t-Report tbody td {
    padding: 12px 16px !important;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--sd-fg, #1e293b);
    border: 0 !important;
    border-bottom: 1px solid var(--sd-border, #e2e8f0) !important;
    background: var(--sd-card, #ffffff);
    vertical-align: middle;
}

/* Alternating rows */
.t-Report tbody tr:nth-child(even) td {
    background: var(--sd-bg, #f8fafc);
}

/* Row hover */
.t-Report tbody tr:hover td {
    background: var(--sd-muted, #f1f5f9);
    transition: background 150ms ease;
}

/* Last row */
.t-Report tbody tr:last-child td {
    border-bottom: 0 !important;
}

/* Links */
.t-Report tbody td a {
    color: var(--sd-primary, #176B65);
    font-weight: 600;
    text-decoration: none;
}

.t-Report tbody td a:hover {
    text-decoration: underline;
}


/* =========================================================
   INTERACTIVE REPORT — MODERN, THEME-AWARE DESIGN
   ========================================================= */

/* Report containers */
.t-IRR-region,
.t-IRR-region .a-IRR,
.t-IRR-region .a-IRR-tableContainer {
    border-radius: 12px;
}

/* Toolbar */
.t-IRR-region .a-IRR-toolbar {
    padding: 12px 14px;
    background: var(--sd-bg, #f4f7fa);
    border: 1px solid var(--sd-border, #e2e8f0);
    border-radius: 12px 12px 0 0;
}

/* Search field */
.t-IRR-region .a-IRR-search-field {
    border-radius: 8px;
    border-color: var(--sd-border, #dbe2ea);
    background: var(--sd-card, #ffffff);
}

/* Column headers */
.t-IRR-region .a-IRR-table thead th,
.t-IRR-region .a-IRR-table th,
.a-IRR table.a-IRR-table thead th {
    background: var(--sd-primary, #176B65) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 13px 14px !important;
    border: 0 !important;
    border-bottom: 3px solid var(--sd-accent, #2D8C91) !important;
    text-align: start;
    white-space: normal;
    vertical-align: middle;
}

/* Force header text, links, sorting controls and icons to white */
.t-IRR-region .a-IRR-table thead th *,
.t-IRR-region .a-IRR-table thead th a,
.t-IRR-region .a-IRR-table thead th button,
.t-IRR-region .a-IRR-table thead th .a-IRR-headerLink,
.t-IRR-region .a-IRR-table thead th .a-Icon,
.a-IRR table.a-IRR-table thead th *,
.a-IRR .a-IRR-headerLink,
.a-IRR .a-IRR-headerLabel {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Keep header text white on hover and focus */
.t-IRR-region .a-IRR-table thead th a:hover,
.t-IRR-region .a-IRR-table thead th a:focus,
.t-IRR-region .a-IRR-table thead th button:hover,
.t-IRR-region .a-IRR-table thead th button:focus,
.a-IRR table.a-IRR-table thead th a:hover,
.a-IRR table.a-IRR-table thead th a:focus {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Search and toolbar controls */
.t-IRR-region .a-IRR-toolbar button,
.t-IRR-region .a-IRR-toolbar .a-Button {
    border-radius: 8px;
}

/* Body cells */
.t-IRR-region .a-IRR-table tbody td {
    padding: 11px 14px !important;
    border-bottom: 1px solid var(--sd-border, #e2e8f0) !important;
    color: var(--sd-fg, #1e293b);
    background: var(--sd-card, #ffffff);
    vertical-align: middle;
}

/* Alternating rows */
.t-IRR-region .a-IRR-table tbody tr:nth-child(even) td {
    background: var(--sd-bg, #f8fafc);
}

/* Row hover */
.t-IRR-region .a-IRR-table tbody tr:hover td {
    background: var(--sd-muted, #eef5f4) !important;
}

/* Links inside report data */
.t-IRR-region .a-IRR-table tbody td a {
    color: var(--sd-primary, #176B65);
    font-weight: 600;
    text-decoration: none;
}

.t-IRR-region .a-IRR-table tbody td a:hover {
    text-decoration: underline;
}

/* Pagination and controls */
.t-IRR-region .a-IRR-pagination,
.t-IRR-region .a-IRR-controlsContainer {
    border-color: var(--sd-border, #e2e8f0);
}


/* =========================================================
   RESPONSIVE SPACING
   ========================================================= */

@media (max-width: 640px) {
    .t-Report thead th,
    .t-Report tbody td {
        padding: 10px 12px !important;
        font-size: 0.8125rem;
    }

    .t-IRR-region .a-IRR-table thead th,
    .t-IRR-region .a-IRR-table tbody td {
        padding: 9px 10px !important;
        font-size: 0.8125rem;
    }
}



