/* Planning — Order Book CSS */

.oob-chart-wrap {
    max-width: 1200px;
    margin: 16px auto 24px;
    padding: 0 16px;
}

.oob-table-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

/* Month section */
.oob-month-section {
    margin-bottom: 24px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.oob-month-current {
    border-color: #e67e22;
    box-shadow: 0 0 0 2px rgba(230,126,34,.25);
}

.oob-month-past {
    opacity: .75;
}

.oob-month-no-date {
    border-color: #bbb;
}

/* Month header */
.oob-month-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.oob-month-current .oob-month-header {
    background: #fff3e0;
}

.oob-month-label {
    font-weight: 700;
    font-size: 15px;
}

.oob-month-total {
    font-size: 13px;
    color: #555;
    margin-left: auto;
}

/* Table */
.oob-lines-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.oob-lines-table th {
    background: #f9f9f9;
    border-bottom: 2px solid #e0e0e0;
    padding: 6px 10px;
    text-align: left;
    white-space: nowrap;
    font-weight: 600;
}

.oob-lines-table td {
    padding: 5px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.oob-lines-table tr:last-child td {
    border-bottom: none;
}

.oob-num {
    text-align: right;
}

/* Row states */
.oob-row-done td {
    color: #888;
    text-decoration: line-through;
}

.oob-row-overdue td {
    background: #fff5f5;
    color: #c0392b;
}

/* Status badges */
.oob-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.oob-action-open     { background: #fdebd0; color: #e67e22; }
.oob-action-closed   { background: #d5f5e3; color: #27ae60; }
.oob-action-delivered{ background: #d5f5e3; color: #27ae60; }
.oob-action-done     { background: #d5f5e3; color: #27ae60; }
.oob-action-cancelled{ background: #f2f3f4; color: #888; }

/* Tab active */
.pl-tab-active {
    font-weight: 700;
    border-bottom: 2px solid currentColor;
}
