/* ============================================
   OPEN ORDERS – UNIVERSAL STYLE SHEET
   StreetBox COMMAND – QuickBooks Look
============================================ */

/* TABLE UNIVERSAL */
.table-green {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 2px solid #00994d;
    border-radius: 12px;
    overflow: hidden;
    font-family: Segoe UI, sans-serif;
    font-size: 14px;
}

.table-green thead th {
    background: #00994d;
    color: white;
    padding: 12px 10px;
    text-align: left;
    font-size: 15px;
    border-right: 1px solid #007f3f;
}

.table-green tbody td {
    padding: 10px;
    border-bottom: 1px solid #e6e6e6;
    transition: 0.18s ease-in-out;
    cursor: pointer;
}

.table-green tbody tr:hover {
    background: #e9fff3;
}

/* STATUS COLORS */
.status-paid {
    color: #00994d;
    font-weight: bold;
}

.status-open {
    color: #ff8f3a;
    font-weight: bold;
}

.status-overdue {
    color: #cc0000;
    font-weight: bold;
}

/* BADGE */
.badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: bold;
}

.badge-green {
    background: #00994d;
    color: white;
}

.badge-orange {
    background: #ff8f3a;
    color: black;
}

.badge-red {
    background: #cc0000;
    color: white;
}

/* FILTERS UNIVERSAL */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-bar input,
.filter-bar select {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1.6px solid #00994d;
    font-size: 14px;
    width: 180px;
}

/* TOTALS BOX */
.totals-summary {
    margin-top: 22px;
    padding: 20px;
    background: white;
    border: 2px solid #00994d;
    border-radius: 12px;
    width: 360px;
    font-size: 16px;
}

.totals-summary div {
    margin-bottom: 8px;
}

/* LINK STYLE */
a.invoice-link {
    text-decoration: none;
    color: #00994d;
    font-weight: bold;
}

a.invoice-link:hover {
    color: #ff8f3a;
}

/* ROW HIGHLIGHT BASED ON AGE */
.row-recent {
    background: #fafffd;
}

.row-old {
    background: #fff5f5;
}
