/* Layout: left 2/3 for tables, right 1/3 for other content */
.dashboard-container-alert_testing {
    display: flex;
    flex-direction: row;
    width: 100vw;
    min-height: 80vh;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

#tables-container-alert_testing {
    flex: 2 1 0;
    max-width: 66vw;
    padding: 10px 10px 10px 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    gap: 15px;
}

.region-table-container-alert_testing {
    background: linear-gradient(135deg, #202020 0%, #3f3f3f 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 18px 24px;
    margin-bottom: 0;
    color: #ffffff;
}

.region-table-container-alert_testing h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.region-table-container-alert_testing table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, #202020 0%, #3f3f3f 100%);
    color: #ffffff;
    font-size: 0.98rem;
}

.region-table-container-alert_testing th, .region-table-container-alert_testing td {
    padding: 7px 10px;
    border-bottom: 1px solid #000000;
    text-align: left;
    min-height: 38px;
    height: 38px;
    vertical-align: middle;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

.region-table-container-alert_testing th {
    background: #000000;
    font-weight: 500;
    color: #ffffff;
}

.region-table-container-alert_testing td {
    border-bottom: #f1f3f6 1px solid;
    border-right: #f1f3f6 1px solid;
}

.region-table-container-alert_testing tr:last-child td {
    border-bottom: none;
}

.region-table-container-alert_testing td.loading,
.region-table-container-alert_testing td.error {
    text-align: center;
    color: #888;
    font-style: italic;
}

.region-table-container-alert_testing tr:hover {
    background: #4d4d4d;
}

.region-table-container-alert_testing td {
    transition: background 0.2s;
}

.region-table-container-alert_testing td[style*="opacity: 0.6"] {
    color: #bbb !important;
}

.dk1-planned {
    background: #023867ff !important;
    color: #fff !important;
    transition: background 0.2s;
}
.dk1-planned:hover {
    background: #01234d !important;
}

.dk1-unplanned {
    background: #e8463eff !important;
    color: #fff !important;
    transition: background 0.2s;
}
.dk1-unplanned:hover {
    background: #b22c22 !important;
}

.dk2-planned {
    background: #786726 !important;
    color: #ffffff !important;
    transition: background 0.2s;
}
.dk2-planned:hover {
    background: #88781c !important;
}

.dk2-unplanned {
    background: #e8463eff !important;
    color: #fff !important;
    transition: background 0.2s;
}
.dk2-unplanned:hover {
    background: #b22c22 !important;
}

.nordic-planned {
    background: #540b6a !important; 
    color: #fff !important;
    transition: background 0.2s;
}
.nordic-planned:hover {
    background: #5b0b76 !important; 
}

.nordic-unplanned {
    background: #e8463eff !important; 
    color: #fff !important;
    transition: background 0.2s;
}
.nordic-unplanned:hover {
    background: #b22c22 !important;
}

.nucs-planned {
    background: rgb(39, 112, 135) !important; 
    color: #fff !important;
    transition: background 0.2s;
}

.nucs-planned:hover {
    background: rgb(28, 90, 109) !important; 
}

.nl-planned {
    background: #653413 !important;
    color: #fff !important;
    transition: background 0.2s;
}

.nl-planned:hover {
    background: #7a3f12 !important; 
}

@media (max-width: 900px) {
    #tables-container-alert_testing {
        max-width: 100vw;
        padding: 8px;
    }
    .dashboard-container-alert_testing {
        flex-direction: column;
    }
}

.dashboard-container-alert_testing::after {
    display: none !important;
    content: none !important;
}

.table-scroll { 
    height: 370px; 
    overflow-y: auto;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.table-scroll::-webkit-scrollbar {
    width: 10px;
    background: #232323;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: #6e6e6e;
    border-radius: 8px;
    border: 2px solid #232323;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.table-scroll {
    scrollbar-color: #6c6c6c #232323;
    scrollbar-width: thin;
}

.cell-preview-popup {
    position: fixed;
    z-index: 9999;
    max-width: 600px;
    min-width: 220px;
    padding: 18px 24px;
    background: #222;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    font-size: 1.08rem;
    line-height: 1.5;
    pointer-events: none;
    white-space: pre-line;
    word-break: break-word;
    opacity: 0.98;
    transition: opacity 0.15s;
}

#right-side-alert_testing {
    flex: 1 1 0;
    max-width: 33vw;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 9px 9px 9px 9px;
    background-color: inherit;
}

.info-box-grid.info-box.invoice {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.info-box-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.info-box.invoice {
    grid-row: 1;
    grid-column: span 1;
    min-height: 90px;
    font-size: 3rem;
    padding: 32px 16px;
}

.info-box.invoice .info-box-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 400;
}

.info-box:not(.invoice) {
    font-size: 1.1rem;
    min-height: 60px;
    padding: 18px 16px;
}

@media (max-width: 1200px) {
    .info-box-grid {
        grid-template-columns: 1fr;
    }
    .info-box.invoice {
        min-height: 60px;
        font-size: 1.3rem;
        padding: 20px 10px;
    }
}

.info-box-grid-invoices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.info-box-grid-status {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

@media (max-width: 1200px) {
    .info-box-grid-invoices,
    .info-box-grid-status {
        grid-template-columns: 1fr;
    }
    .info-box.invoice {
        min-height: 60px;
        font-size: 1.3rem;
        padding: 20px 10px;
    }
}

.info-box {
    background: linear-gradient(135deg, #232323 0%, #353535 100%);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    padding: 9px 9px;
    color: #88fe88;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, color 0.2s;
}

.info-box.negative {
    color: #fd5757;
}

.info-box-title {
    font-size: 1rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

@media (max-width: 900px) {
    #right-side-alert_testing {
        max-width: 100vw;
        min-width: 0;
        padding: 8px;
    }
    .info-box-grid {
        grid-template-columns: 1fr;
    }
}

.invoice-positive {
    color: #22c55e !important; 
}
.invoice-negative {
    color: #fd5757 !important; 
}

.status-positive {
    color: #22c55e !important; 
}
.status-negative {
    color: #fd5757 !important; 
}

#alert-testing-graphs {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 10px 0 10px 0;
}

.graph-container {
    background: linear-gradient(135deg, #23272f 0%, #181a1f 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 16px 16px 16px 16px;
    border: 1.5px solid #333;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: box-shadow 0.2s;
}

.graph-container:hover {
    box-shadow: 0 8px 32px rgba(223, 202, 202, 0.18);
}

.graph-container canvas {
    background: linear-gradient(135deg, #23272f 0%, #181a1f 100%);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    padding: 10px;
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 8px;
    border: 1px solid #333;
    min-height: 320px;
    transition: box-shadow 0.2s;
}

@media (max-width: 900px) {
    #alert-testing-graphs {
        max-width: 100vw;
        padding: 12px 0 12px 0;
    }
    .graph-container {
        padding: 10px 6px 10px 6px;
    }
    .graph-container canvas {
        min-height: 180px;
    }
}


