/* Orders sidebar overrides - loaded last to ensure specificity */
.os-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:105000; }
.os-sidebar { display:none; position:fixed; right:0; top:0; bottom:0; width:96%; max-width:1600px; background:#fff; z-index:105001; overflow:auto; padding:22px; box-shadow:-6px 0 40px rgba(0,0,0,.45); border-radius:6px; }
.os-toolbar { display:flex; gap:8px; align-items:center; margin-bottom:12px; }
.os-form-row { display:flex; gap:12px; align-items:flex-end; margin-bottom:12px; flex-wrap:wrap; }
.os-flex-spacer { flex:1 }
.os-details-wrap { overflow:auto; max-height:50vh; border:1px solid #e4e7eb; padding:8px; border-radius:6px; }
.os-footer { display:flex; justify-content:flex-end; gap:8px; margin-top:12px }

#orderSidebar select,
#orderSidebar input[type="date"],
#orderSidebar input[type="file"],
#orderSidebar .os-cell,
#orderSidebar input[type="number"],
#orderSidebar input[type="text"]
{
    padding: 8px 10px;
    border: 1px solid #e4e7eb;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    box-shadow: none;
    display: inline-block;
}

.os-sidebar .btn {
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid transparent;
    box-shadow: none;
}
.os-sidebar .btn-default { background:#f5f6f8; color:#333; border-color:#e4e7eb; }
.os-sidebar .btn-primary { background:#b70000; color:#fff; border-color:#900; }
.os-sidebar .btn-success { background:#1b5e20; color:#fff; }
.os-sidebar .btn-info { background:#0288d1; color:#fff; }

/* Table cells input sizing */
.os-details-wrap .os-cell { width: 100%; box-sizing: border-box; }

@media (max-width: 800px) {
    .os-sidebar { width:100% !important; left:0; right:0; max-width:100% !important; }
    .os-sidebar select, .os-sidebar input { min-width: 0; width: 100%; }
}

/* simple animation */
.os-sidebar.showing { animation: osSlideIn .28s ease-out forwards; }
@keyframes osSlideIn { from { transform: translateX(8%); opacity: 0 } to { transform: translateX(0); opacity: 1 } }

/* Match InventaryConsult table look for Orders main list */
.iv-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ic-surface, #fff);
}
.iv-table thead tr {
    background: var(--ic-hover-bg, #f0f2f5);
    border-bottom: 2px solid var(--ic-border, #e4e7eb);
}
.iv-table thead th {
    padding: 9px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--ic-accent, #546e7a);
}
.iv-table tbody tr { border-bottom:1px solid var(--ic-border, #e4e7eb); }
.iv-table tbody tr:hover { background: var(--ic-hover-bg, #f0f2f5); }
.iv-table td { padding:8px 12px; color:var(--ic-text, #2d3748); vertical-align:middle; }

/* Neutralize vendor-red-theme classes applied globally */
.iv-table .bg-danger, .iv-table .text-danger, .iv-table .label-danger { background: transparent !important; color: inherit !important; }

/* Ensure striped rows don't show red backgrounds */
.iv-table.table-striped tbody tr:nth-of-type(odd) { background: transparent !important; }
