﻿html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100dvh;
    display: flex;
    justify-content: center; /* ✅ center horizontally */
    align-items: center; /* ✅ center vertically */
    background-color: white;
    overflow: auto;
}

.container, .navbar, .footer {
       display: none;
}

.main-container {
    display: grid;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    box-sizing: border-box;
    /* ✅ Force it to behave like a centered block */
    margin: 0 auto;
    align-self: center;
    justify-self: center;
    padding: 10px;
}

.app-icon {
    max-width: 150px;
    max-height: 150px; /* adjust based on your layout */
    object-fit: contain;
}

.main-grid {
    display: grid;
    width: 100vw;
    height: auto;
    min-height: 0;
    overflow: auto;
    grid-template-columns: 400px 1fr;
    grid-template-rows: 100px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.icon-cell, .header-cell {
    background-color: whitesmoke;
    border-bottom: 1px solid #ccc;
}

.icon-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #ccc;
}

.header-cell {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Push left/right */
    background-color: whitesmoke;
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
}

    /* Style the text box */
    .header-cell input[type="text"] {
        flex: 1;
        margin-right: 10px;
        padding: 8px;
        font-size: 1rem;
        background-color: whitesmoke;
        border: none;
        border-radius: 4px;
    }

    /* Style the Close button */
    .header-cell button {
        padding: 8px 16px;
        font-size: 1rem;
        background-color: #d9534f;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

        .header-cell button:hover {
            background-color: #c9302c;
        }

  .list-cell {
    padding: 10px;
    overflow-y: auto;
    border-right: 1px solid #ccc;
    background-color: whitesmoke;
}



.firm-id-box {
    width: 100%;
    margin-bottom: 10px;
    padding: 6px;
    font-size: 0.95rem;
    font-weight: bold;
    background-color: whitesmoke; /* matches layout */
    border: 1px solid whitesmoke; /* ✅ blended border */
    border-radius: 4px;
    text-align: center;
    color: #333;
}

.report-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.report-list a {
    color: #007bff;
    text-decoration: none;
}

.section-header {
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
    padding-left: 0; /* 🔄 No indent */
    color: #333;
    cursor: default;
}

.report-item {
    padding-left: 20px;
    margin-bottom: 6px;
}

    .report-item a {
        text-decoration: none;
        color: #007bff;
    }

.report-item a:hover {
    text-decoration: underline;
}


.report-title-stack {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-right: 10px;
}

    .report-title-stack input[type="text"] {
        padding: 8px;
        font-size: 1rem;
        background-color: whitesmoke;
        border: none;
        border-radius: 4px;
    }

#lastRefresh {
    font-size: 0.85rem;
    color: gray;
    padding-top: 2px;
}

.iframe-cell {
    overflow: auto;
    min-height: 0;
    background-color: white;
    border: none;
}

    .iframe-cell #reportContainer {
        width: 100%;
        height: 100%;
        border: none;
    }

#sqlResultsBox canvas {
    width: 100% !important;
    height: 400px !important;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

