/* =========================================================
   GLOBAL
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #111827;
}

#app {
    height: 100vh;
    overflow: hidden;
}

a,
.btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #ffffff;
    background-color: #1b6ec2;
    border: 1px solid #1861ac;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

    .btn-primary:hover {
        background-color: #175aa3;
    }


/* =========================================================
   MAIN PORTAL LAYOUT
   ========================================================= */

.portal-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: #ffffff;
}

main {
    flex: 1;
    min-width: 0;
}

.main-area {
    flex: 1;
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
}

.content {
    min-height: 100%;
    background: #ffffff;
    padding: 0;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    width: 290px;
    height: 100vh;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: #003B5C;
    color: #ffffff;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
}



    .sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.24);
        border-radius: 8px;
    }

.sidebar-brand {
    padding: 18px 20px 14px;
}

.logo-box {
    width: 220px;
    height: 110px;
    padding: 12px;
    background: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 14px;
}

.company-logo {
    max-width: 190px !important;
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
} 



.portal-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.02em;
}


/* =========================================================
   SIDEBAR SEARCH
   ========================================================= */

.sidebar-search {
    margin: 10px 0 20px;
}

.sidebar-search-wrap {
    position: relative;
    width: 100%;
}

    .sidebar-search-wrap input {
        width: 100%;
        height: 44px;
        padding: 10px 38px 10px 12px;
        border-radius: 9px;
        border: 1px solid rgba(255, 255, 255, 0.20);
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        outline: none;
        font-size: 13px;
        transition: border-color 0.18s ease, background 0.18s ease;
    }

        .sidebar-search-wrap input::placeholder {
            color: rgba(255, 255, 255, 0.58);
        }

        .sidebar-search-wrap input:focus {
            border-color: #3EB1C8;
            background: rgba(255, 255, 255, 0.12);
        }

.sidebar-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease;
}

    .sidebar-search-clear:hover {
        background: rgba(255, 255, 255, 0.30);
    }


/* =========================================================
   SIDEBAR NAVIGATION
   ========================================================= */

.sidebar-nav {
    flex: 1;
    overflow: visible;
}

.sidebar-section {
    margin-top: 20px;
}

.section-title {
    margin-bottom: 9px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.52);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.env-pill {
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.env-prod {
    background: rgba(151, 215, 0, 0.18);
    border: 1px solid rgba(151, 215, 0, 0.28);
    color: #C9E6A3;
}

.env-qa {
    background: rgba(62, 177, 200, 0.18);
    border: 1px solid rgba(62, 177, 200, 0.35);
    color: #7FD0DD;
}

.env-dev {
    background: rgba(255, 184, 28, 0.18);
    border: 1px solid rgba(255, 184, 28, 0.35);
    color: #FFCE5C;
}

.env-other {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.nav-item {
    width: 100%;
    margin-bottom: 3px;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.74);
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.16s ease, color 0.16s ease;
}

    .nav-item:hover {
        background: rgba(62, 177, 200, 0.10);
        color: #ffffff;
    }

    .nav-item.active {
        background: rgba(62, 177, 200, 0.22);
        color: #ffffff;
        font-weight: 800;
        box-shadow: inset 4px 0 0 #3EB1C8;
    }


/* =========================================================
   PAGE HEADER / HERO
   ========================================================= */

.hero {
    width: 100%;
    min-height: 118px;
    padding: 28px 34px 24px;
    background: #ffffff;
    border-bottom: 1px solid #E5E9EE;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.hero-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.content .hero-title {
    display: block;
    margin: 0;
    color: #003B5C ;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-env-badge {
    padding: 4px 10px;
    border: 1px solid #F2D88C;
    border-radius: 8px;
    background: #FFF6E0;
    color: #3C2F07;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-subtitle {
    margin: 0;
    color: #666666;
    font-size: 14px;
}

    .hero-subtitle strong {
        color: #003B5C;
        font-weight: 700;
    }

.hero-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}



/* =========================================================
   SIDEBAR FOOTER / LOGOUT
   ========================================================= */

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.logout-btn {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

    .logout-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.28);
        color: #ffffff;
        text-decoration: none;
    }

.logout-icon {
    font-size: 17px;
    line-height: 1;
}



/* =========================================================
   ADMIN SYNC CONTROLS
   Visible only when rendered by ReportGrid.razor
   ========================================================= */

.sync-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 10px 15px;
    border: 1px solid #DCE0E5;
    border-radius: 11px;
    background: #F7F8FA;
}

.sync-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #97D700;
}

.sync-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sync-label {
    color: #888888;
    font-size: 10px;
    text-transform: uppercase;
}

.sync-value {
    color: #003B5C;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.refresh-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 11px;
    background: #003B5C;
    color: #ffffff;
    cursor: pointer;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.22s ease, transform 0.25s ease;
}

    .refresh-btn:hover:not(:disabled) {
        background: #007396;
        transform: rotate(180deg);
    }

    .refresh-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }


/* =========================================================
   REPORT CARDS GRID
   ========================================================= */

.report-grid {
    width: 100%;
    padding: 28px 34px 36px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
    align-items: start;
}

.report-card {
    position: relative;
    min-height: 255px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #DCE0E5;
    border-radius: 14px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

    .report-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #003B5C 0%, #3EB1C8 100%);
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .report-card:hover {
        border-color: #003B5C;
        transform: translateY(-5px);
        box-shadow: 0 14px 30px rgba(0, 59, 92, 0.12);
    }

        .report-card:hover::before {
            opacity: 1;
        }

.report-card-body {
    padding: 20px;
    flex: 1;
}

.report-card-header {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.report-card-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid #DCE8EE;
    border-radius: 10px;
    background: linear-gradient(135deg, #E6F1FB 0%, #F2F7FA 100%);
    color: #007396;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-card h4 {
    margin: 0;
    color: #003B5C;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.card-workspace-meta,
.report-location {
    margin-top: 4px;
    color: #007396;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.report-desc {
    margin: 0;
    color: #5F5E5A;
    font-size: 13px;
    line-height: 1.65;
}

.report-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.report-tag {
    padding: 4px 9px;
    border: 1px solid #D4E2EC;
    border-radius: 6px;
    background: #F2F7FA;
    color: #005878;
    font-size: 10.5px;
    font-weight: 600;
}

.report-card-footer {
    padding: 13px 20px;
    border-top: 1px solid #ECEEF1;
    background: #FAFBFC;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.report-footer-left {
    min-width: 0;
    flex: 1;
}

.report-updated {
    color: #888780;
    font-size: 11.5px;
    font-weight: 500;
}

.open-report-btn {
    padding: 7px 11px;
    border-radius: 8px;
    color: #003B5C;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

    .open-report-btn span {
        transition: transform 0.22s ease;
    }

    .open-report-btn:hover {
        background: #003B5C;
        color: #ffffff;
        text-decoration: none;
        transform: translateY(-1px);
    }

        .open-report-btn:hover span {
            transform: translateX(5px);
        }


/* =========================================================
   EMPTY REPORT STATE
   Class matches ReportGrid.razor
   ========================================================= */

.empty-reports-state {
    margin: 32px 34px;
    padding: 46px 24px;
    border: 1px dashed #CFD8DF;
    border-radius: 16px;
    background: #FAFBFC;
    text-align: center;
}

    .empty-reports-state h3 {
        margin: 0 0 9px;
        color: #003B5C;
        font-size: 21px;
        font-weight: 700;
    }

    .empty-reports-state p {
        margin: 0;
        color: #666666;
        font-size: 14px;
    }


/* =========================================================
   SYNC LOADING OVERLAY
   ========================================================= */

.sync-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sync-loader-box {
    padding: 28px 36px;
    border: 1px solid #D8D6CC;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.sync-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid #E6E6E6;
    border-top-color: #003B5C;
    border-radius: 50%;
    animation: sync-spin 0.8s linear infinite;
}

.sync-loader-text {
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

@keyframes sync-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-root {
    min-height: 100vh;
    display: flex;
    font-family: "Open Sans", Arial, sans-serif;
    background: #ffffff;
}

.login-left {
    position: relative;
    width: 52%;
    overflow: hidden;
    background: #003B5C;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
}

.geo-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #3EB1C8;
}

.geo-accent {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    border: 40px solid #007396;
    border-radius: 50%;
    opacity: 0.25;
}

.geo-accent2 {
    position: absolute;
    right: 60px;
    bottom: 60px;
    width: 100px;
    height: 100px;
    border: 20px solid #3EB1C8;
    border-radius: 50%;
    opacity: 0.18;
}

.login-logo-area {
    position: relative;
    z-index: 1;
    margin-bottom: 48px;
}

.login-logo {
    max-width: 230px;
    padding: 14px;
    border-radius: 10px;
    background: #ffffff;
}

.hero-text {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-eyebrow {
    margin-bottom: 14px;
    color: #3EB1C8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-desc {
    max-width: 360px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.7;
}

.login-right {
    width: 48%;
    background: #F7F6F1;
    padding: 48px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 36px;
}

.form-greeting {
    margin-bottom: 8px;
    color: #003B5C;
    font-size: 28px;
    font-weight: 700;
}

.form-sub {
    color: #555555;
    font-size: 15px;
    line-height: 1.5;
}

.btn-login {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    background: #003B5C;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.15s ease, transform 0.1s ease;
}

    .btn-login:hover {
        background: #007396;
        color: #ffffff;
    }

    .btn-login:active {
        transform: scale(0.99);
    }

.form-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #DDDDDD;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-badge {
    color: #666666;
    font-size: 12px;
}

.env-badge {
    padding: 4px 10px;
    border: 1px solid rgba(62, 177, 200, 0.3);
    border-radius: 20px;
    background: rgba(62, 177, 200, 0.12);
    color: #007396;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* LOGIN PAGE HERO CONTENT */

/* Login page hero title only */
.login-left .hero-title {
    margin: 0 0 14px;
    color: #ffffff !important;
    background: transparent !important;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

    .login-left .hero-title span,
    .login-left .hero-title strong {
        color: #ffffff !important;
        background: transparent !important;
    }

.login-left .hero-desc {
    color: rgba(255, 255, 255, 0.82);
}

/* Bottom login branding text */
.login-brand-footer,
.login-brand-footer span,
.login-brand-footer p {
    color: #ffffff !important;
}
/* =========================================================
   ADMIN / TEMPORARY TEST PAGES
   Keep until admin test pages are removed
   ========================================================= */

.admin-page {
    min-height: 100vh;
    padding: 34px;
    background: #F7F7F4;
}

.admin-header h2 {
    margin: 0;
    color: #111827;
    font-size: 26px;
}

.admin-header p {
    margin-top: 6px;
    color: #666666;
}

.tag-form-card,
.tag-list-card {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #DDDDDD;
    border-radius: 14px;
    background: #ffffff;
}

    .tag-form-card h4,
    .tag-list-card h4 {
        margin: 0 0 16px;
    }

.tag-form-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr auto;
    gap: 12px;
}

    .tag-form-grid input,
    .tag-form-grid select,
    .tag-form-card select,
    .tag-form-card input {
        padding: 10px 12px;
        border: 1px solid #CFCFCF;
        border-radius: 8px;
        background: #ffffff;
    }

.tag-table {
    width: 100%;
    border-collapse: collapse;
}

    .tag-table th,
    .tag-table td {
        padding: 12px;
        border-bottom: 1px solid #EEEEEE;
        text-align: left;
        font-size: 14px;
    }

    .tag-table th {
        color: #555555;
        font-weight: 700;
    }

.tag-message,
.tag-action-message {
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px solid #BADBCC;
    border-radius: 8px;
    background: #E7F6EE;
    color: #0F5132;
    font-size: 14px;
    font-weight: 600;
}

.tag-delete-btn {
    padding: 7px 12px;
    border: none;
    border-radius: 8px;
    background: #FEE2E2;
    color: #991B1B;
    cursor: pointer;
}

.tag-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-chip {
    padding: 8px 14px;
    border: 1px solid #CFCFCF;
    border-radius: 20px;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    font-size: 14px;
}

    .tag-chip:hover {
        background: #F3F4F6;
    }

    .tag-chip.assigned {
        border-color: #003B5C;
        background: #003B5C;
        color: #ffffff;
    }

.assigned-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.assigned-tag {
    padding: 7px 12px;
    border-radius: 18px;
    background: #E7F2FF;
    color: #003B5C;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .report-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 900px) {
    html,
    body {
        overflow: auto;
    }

    #app {
        height: auto;
        overflow: visible;
    }

    .portal-shell {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .main-area {
        height: auto;
        overflow: visible;
    }

    .hero {
        padding: 24px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-right {
        width: 100%;
        justify-content: flex-start;
    }

    .report-grid {
        padding: 22px 20px;
        grid-template-columns: 1fr;
    }

    .empty-reports-state {
        margin: 22px 20px;
    }

    .login-root {
        flex-direction: column;
    }

    .login-left,
    .login-right {
        width: 100%;
    }

    .tag-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Report Viewer Modal - Phase 1
   Purpose:
   Shows a full-screen-style modal when user clicks View Report.
   Actual Power BI embedding will be added in Phase 2.
================================ */

/* Dark blurred background over entire portal */
.report-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* Main modal container */
.report-modal {
    width: min(96vw, 1600px);
    height: 92vh;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Modal top header */
.report-modal-header {
    min-height: 88px;
    padding: 18px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Left side: back button + report details */
.report-modal-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

    /* Report title inside modal */
    .report-modal-left h2 {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        color: #111827;
    }

/* Workspace/environment text */
.modal-report-meta {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

/* Keeps report title and workspace/environment stacked vertically */
.modal-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Tags shown in modal header */
.modal-report-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}


/* Back to Reports button */
.modal-back-btn {
    background: #ffffff;
    color: #0b3a67;
    border: 2px solid #0b3a67;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .modal-back-btn:hover {
        background: #0b3a67;
        color: #ffffff;
        transform: translateY(-1px);
    }

/* Right-side modal actions */
.report-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Full Screen button - placeholder for now */
.modal-fullscreen-btn {
    background: #111827;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
}

/* X close button */
.modal-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-size: 24px;
    line-height: 1;
}

/* Modal body area where Power BI iframe/embed will go later */
.report-modal-body {
    flex: 1;
    background: #f9fafb;
    padding: 18px;
    overflow: hidden;
}

/* Temporary placeholder until Phase 2 embedding */
.embedded-placeholder {
    height: 100%;
    border: 2px dashed #cbd5e1;
    border-radius: 18px;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

/* Makes View Report button behave like a button but keep existing styling */
.open-report-btn {
    border: none;
    cursor: pointer;
}

/* Power BI JavaScript SDK embed container */

.powerbi-embed-container {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px;
    background: #ffffff;
}

/* Modal header back button */
.btn-modal-back {
    display: flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 0.5px solid #DCE0E5;
    color: #003B5C;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

    .btn-modal-back:hover {
        background: #F2F7FA;
        border-color: #007396;
        color: #007396;
    }

/* Modal header full screen button */
.btn-modal-fullscreen {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #003B5C;
    border: none;
    color: #ffffff;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

    .btn-modal-fullscreen:hover {
        background: #007396;
    }

/* Modal title and workspace metadata */
.modal-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-report-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #5F5E5A;
    font-size: 12.5px;
    font-weight: 500;
}

.modal-env-badge {
    background: #EAF3F7;
    color: #003B5C;
    border: 1px solid #CFE3EC;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.reports-page-body {
    background: #f7f8fa;
    padding: 32px 34px;
    min-height: calc(100vh - 150px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px 0;
    color: #003B5C;
    text-transform: uppercase;
    letter-spacing: 2px;
}

    .section-header h3 {
        font-size: 13px;
        font-weight: 800;
        margin: 0;
    }

    .section-header small {
        margin-left: auto;
        color: #777;
        text-transform: none;
        letter-spacing: normal;
        font-size: 13px;
    }

.recently-viewed-row {
    display: flex;
    gap: 14px;
    margin-bottom: 32px;
    overflow-x: auto;
}

.recent-report-card {
    min-width: 210px;
    background: #ffffff;
    border: 1px solid #dce0e5;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}

    .recent-report-card:hover {
        border-color: #007396;
    }

.recent-report-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eef6fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-report-card strong {
    display: block;
    color: #003B5C;
    font-size: 14px;
}

.recent-report-card small {
    color: #777;
    font-size: 12px;
}

/* Mobile Layout */

@media (max-width: 768px) {
    .btn-modal-fullscreen {
        display: none;
    }

    .btn-modal-fullscreen {
        display: none;
    }
}

@media (max-width: 768px) {
    .report-modal {
        width: 100vw;
        height: 100dvh;
        max-width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
        overflow: hidden;
    }

    .report-modal-body {
        height: calc(100dvh - 120px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .powerbi-embed-container {
        width: 100%;
        height: 100%;
        min-height: 650px;
    }
}