/* ---------- GLOBAL ---------- */
body {
    font-family: "Segoe UI", Tahoma, Geneva, sans-serif;
    padding: 20px;
    background: #f0f2f5;
}

/* ---------- SUMMARY ---------- */
.summary-box {
    position: relative;
    width: 1400px;
    margin: 0 auto 25px;
    background: #fff;
    padding: 20px 20px 70px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.summary-heading {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e4d2b;
}

.summary-total { font-weight: 600; margin-bottom: 8px; }
.summary-line  { padding: 3px 0; }

.ok-text    { color: #28a745; }
.stale-text { color: #702963; }
.warn-text  { color: #f0ad4e; }
.down-text  { color: #000; }

/* ---------- SEARCH ---------- */
.search-box {
    margin: 12px 0;
    padding: 8px 12px;
    width: 300px;
    border-radius: 20px;
    border: 1px solid #ccc;
}

/* ---------- LEGEND ---------- */
.legend-box {
    background: #f8f9fb;
    border-left: 4px solid #1e4d2b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 13px;
}

.legend-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.legend-list {
    margin: 6px 0;
    padding-left: 18px;
}

.legend-list li {
    margin: 4px 0;
}

/* ---------- BUTTON ---------- */
.toggle-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
}

/* ---------- TABLE SCROLL CONTAINER ---------- */

.table-container {
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
}


/* ---------- TABLE ---------- */
table {
    width: 1400px;
    margin: auto;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}


thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #1e4d2b;
}

th a {
    color: #fff;
    padding: 12px;
    display: block;
    text-decoration: none;
    font-weight: 600;
}

td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}


/* ---------- STATES ---------- */
.stale-row td { background: #fff3cd; }
.warn-row  td { background: #f0ad4e; color: #fff; }
.down-row  td { background: #778899; color: #fff; text-decoration: line-through; }




/* ---------- BADGES ---------- */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.ok    { background: #28a745; color: #fff; }
.stale { background: #ffc107; color: #000; }
.warn  { background: #f0ad4e; color: #fff; }
.down  { background: #000; color: #fff; }

/* ---------- LOCATION ---------- */
.location-link {
    cursor: pointer;
    font-weight: 400;
    /*color: #1e4d2b;*/
    color: #000;
}
.location-link:hover { text-decoration: underline; }

/* ---------- HIDE ---------- */
.hidden { display: none; }

