.orders-panel { min-width:0; }
.orders-classification { margin-top:0; }
.orders-table .orders-category-label { display:inline-block; padding:2px 7px; border-radius:5px; background:#e8edf5; color:#425772; font-weight:600; }
.orders-panel svg,.orders-dialog svg,.order-topic-badge svg,.order-topic-ordered svg { width:20px; height:20px; flex-shrink:0; }
.orders-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:6px 0 12px; }
.orders-tabs { display:flex; flex-wrap:wrap; gap:5px; }
.orders-tabs button { display:inline-flex; align-items:center; gap:8px; border:1px solid #cedee5; border-radius:8px; background:#edf4f6; color:#264b63; padding:9px 12px; font:inherit; cursor:pointer; }
.orders-tabs button.active { background:#123c5b; border-color:#123c5b; color:white; }
.orders-tabs small { padding:1px 6px; border-radius:10px; background:#ffffff80; color:#123c5b; font-weight:700; }
.orders-tools,.orders-row-tools { display:flex; align-items:center; justify-content:flex-end; gap:5px; }
.orders-tools > button { display:inline-flex; align-items:center; gap:6px; }
.orders-search { display:flex; align-items:center; gap:8px; max-width:480px; margin-bottom:14px; padding:0 12px; border:1px solid #cbd9e3; border-radius:8px; background:white; }
.orders-search input { flex:1; min-width:0; border:0; background:transparent; padding:10px 0; color:inherit; font:inherit; }
.orders-search:focus-within { outline:2px solid #278575; outline-offset:1px; }
.orders-search input:focus { outline:0; }
.orders-table-scroll { overflow:auto; border:1px solid #cfdee5; border-radius:10px; }
.orders-table { width:100%; border-collapse:collapse; font-size:.88rem; background:white; }
.orders-table th { text-align:left; white-space:nowrap; background:#dfebef; color:#173c53; padding:10px 12px; }
.orders-table td { padding:11px 12px; border-top:1px solid #dce6eb; vertical-align:middle; }
.orders-table tbody tr:nth-child(even) { background:#eef5f7; }
.orders-table tbody tr:hover { background:#e5f1ee; }
.orders-table td:first-child { min-width:190px; }
.orders-table th:last-child { text-align:right; }
.orders-table td:nth-child(3) { min-width:150px; }
.orders-title { display:block; border:0; padding:0; background:transparent; color:#123c5b; font:inherit; font-weight:700; text-align:left; cursor:pointer; }
.orders-table a { display:inline-flex; align-items:center; gap:5px; margin-top:5px; }
.orders-table small { display:block; color:#526b7b; margin-top:4px; }
.orders-row-note { max-width:400px; max-height:3.6em; overflow:hidden; white-space:pre-wrap; overflow-wrap:anywhere; }
.orders-tool { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; padding:7px; border:1px solid #cbd9e3; border-radius:7px; background:white; color:#214d6b; cursor:pointer; }
.orders-tool:hover { background:#dcece7; border-color:#80aa9a; }
.orders-tool:disabled { opacity:.45; cursor:not-allowed; }
.orders-tool[data-order-action=cancel] { color:#b04437; }
.orders-status { display:inline-block; padding:5px 9px; border-radius:12px; font-size:.78rem; font-weight:700; white-space:nowrap; }
.orders-status.requested { color:#8a520e; background:#fff0d7; }
.orders-status.ordered { color:#1c567e; background:#deedfa; }
.orders-status.delivered { color:#236643; background:#dcf0df; }
.orders-status.cancelled { color:#7b4e4a; background:#f4e5e2; }
.orders-empty { text-align:center; color:#526b7b; padding:24px!important; }
.orders-overlay { z-index:1800; padding:12px; }
.orders-dialog { width:min(700px,calc(100vw - 24px)); max-width:700px; max-height:calc(100dvh - 24px); overflow:auto; display:block; }
.dashboard-main:has(.orders-panel) { min-width:0; }
.orders-dialog-head,.orders-dialog-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; }
.orders-dialog-head h2 { display:flex; align-items:center; gap:8px; margin:0; font-size:1.2rem; }
.orders-dialog-actions { justify-content:flex-end; margin:16px 0 0; }
.orders-dialog fieldset { display:grid; gap:14px; padding:0; margin:0; border:0; min-width:0; }
.orders-dialog label { display:grid; gap:6px; font-size:.88rem; min-width:0; }
.orders-dialog input,.orders-dialog textarea,.orders-dialog select { box-sizing:border-box; width:100%; min-width:0; padding:9px 10px; border:1px solid #bbcfdc; border-radius:7px; background:white; color:inherit; font:inherit; }
.orders-dialog textarea { resize:vertical; }
.orders-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:8px; }
.orders-view h3 { margin:0 0 8px; }
.orders-view dl { display:grid; gap:8px; margin:16px 0; }
.orders-view dl > div { display:grid; grid-template-columns:150px minmax(0,1fr); gap:10px; }
.orders-view dt { color:#526b7b; }
.orders-view dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.orders-view > a { display:inline-flex; gap:6px; align-items:center; }
.disposition-topic-tags .order-topic-badge,.disposition-topic-tags .order-topic-ordered { display:inline-flex; align-items:center; gap:5px; color:#1d5b53; border-color:#96c5b8; background:#e3f2ec; }
.disposition-topic-tags .order-topic-ordered { font-weight:700; background:#d5e8f7; color:#204b74; border-color:#8eb4d0; }
@media(max-width:650px) {
 .orders-heading { align-items:flex-start; }
 .orders-tabs { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .orders-tabs button { flex:1; font-size:.78rem; padding:8px; }
 .orders-table { min-width:860px; }
 .orders-search { max-width:none; }
 .orders-tools { margin-left:auto; }
 .orders-form-grid { grid-template-columns:1fr; }
 .orders-view dl > div { grid-template-columns:110px minmax(0,1fr); }
 .orders-dialog-head h2 { font-size:1rem; }
}
.orders-overview h2 { margin:8px 0 20px; font-size:1.15rem; color:#28465d; }
.orders-area-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; max-width:960px; }
.orders-area-card { --area-accent:#235a88; display:grid; grid-template-columns:48px minmax(0,1fr); align-content:start; column-gap:16px; row-gap:8px; min-width:0; padding:24px; border:1px solid #d2dfe7; border-top:4px solid var(--area-accent); border-radius:10px; background:white; color:#244158; text-align:left; font:inherit; cursor:pointer; box-shadow:0 3px 12px #173c5308; }
.orders-area-card.is-booking,.orders-area-view.is-booking { --area-accent:#227567; }
.orders-area-card:hover { border-color:var(--area-accent); box-shadow:0 5px 18px #173c5314; }
.orders-area-card:focus-visible { outline:3px solid var(--area-accent); outline-offset:3px; }
.orders-area-card > strong { font-size:1.2rem; }
.orders-area-icon { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:10px; background:#edf3f7; color:var(--area-accent,#235a88); flex-shrink:0; }
.orders-area-icon svg { width:26px; height:26px; }
.orders-area-card > .orders-area-icon { grid-row:1 / span 4; }
.orders-area-description { color:#5d7180; font-size:.88rem; line-height:1.5; }
.orders-area-count { color:#496275; font-size:.83rem; }
.orders-area-open { margin-top:12px; color:var(--area-accent); font-size:.88rem; font-weight:700; }
.orders-area-view { --area-accent:#235a88; }
.orders-back { display:inline-flex; align-items:center; gap:7px; padding:6px 0; margin:0 0 12px; border:0; background:transparent; color:#496b83; font:inherit; font-size:.85rem; cursor:pointer; }
.orders-area-heading { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:0 0 18px; margin:0 0 20px; border-bottom:2px solid var(--area-accent); }
.orders-area-heading h2 { font-size:1.15rem; margin:0; color:#244158; }
.orders-area-heading p { font-size:.85rem; color:#5d7180; margin:4px 0 0; }
.orders-area-heading .orders-tools { margin-left:auto; }
.orders-filterbar { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; }
.orders-filterbar > label { display:grid; gap:6px; min-width:145px; color:#526b7b; font-size:.8rem; }
.orders-filterbar select { min-width:0; height:40px; padding:7px 10px; border:1px solid #cbd9e3; border-radius:7px; background:white; color:#244158; font:inherit; font-size:.88rem; }
.orders-filterbar > .orders-search { display:flex; flex:1; margin:0; min-width:180px; height:40px; box-sizing:border-box; }
.orders-filterbar .orders-search input { font-size:.88rem; }
.orders-status-filters { display:flex; flex-wrap:wrap; gap:8px; }
.orders-status-filter { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:8px 12px; border:1px solid currentColor; border-radius:8px; font:inherit; font-size:.85rem; cursor:pointer; }
.orders-status-filter.is-all { color:#264b63; background:#edf4f6; }
.orders-status-filter.is-requested { color:#8a520e; background:#fff0d7; }
.orders-status-filter.is-ordered { color:#1c567e; background:#deedfa; }
.orders-status-filter.is-closed { color:#236643; background:#dcf0df; }
.orders-status-filter span { padding:1px 6px; border-radius:10px; background:#ffffffa6; font-weight:700; }
.orders-status-filter[aria-pressed="true"] { outline:2px solid currentColor; outline-offset:2px; font-weight:700; }
.orders-status-filter:hover { box-shadow:inset 0 0 0 1px currentColor; }
.orders-status-filter:focus-visible { outline:3px solid #123c5b; outline-offset:3px; }
.orders-result-count { color:#526b7b; font-size:.8rem; margin:14px 0 8px; }
.orders-area-view .orders-table-scroll { max-height:min(65dvh,700px); }
.orders-area-view .orders-table th { position:sticky; top:0; z-index:1; }
.orders-pagination { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:12px; margin-top:14px; font-size:.85rem; }
@media(max-width:650px) {
 .orders-area-grid { grid-template-columns:1fr; gap:14px; }
 .orders-area-card { padding:18px; }
 .orders-area-heading .orders-tools { width:100%; }
 .orders-filterbar > label { flex:1; }
 .orders-filterbar > .orders-search { flex-basis:100%; max-width:none; }
 .orders-status-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
}
