:root {
    --omega-red: #e30613;
    --omega-red-dark: #b8040f;
    --omega-navy: #0d1424;
    --omega-navy-2: #111827;
    --omega-bg: #f4f6f8;
    --omega-border: #dfe5ec;
    --omega-text: #111827;
    --omega-muted: #667085;
    --omega-card: #ffffff;
    --shadow: 0 12px 32px rgba(15, 23, 42, .08);
    --radius: 16px;
}

/* TASK 038 — HOLD pozostaje czytelny bez zmiany globalnej palety panelu. */
.service-hold-badge{display:inline-flex;align-items:center;gap:.3rem;padding:.18rem .48rem;border:1px solid #d6a94f;border-radius:999px;background:#fff8e8;color:#76500a;font-size:.68rem;font-weight:800;letter-spacing:.04em;line-height:1.25}
.service-hold-surface{box-shadow:inset 3px 0 0 #d6a94f}
.service-hold-reason{margin:.55rem 0 0;color:#5c4b2b;font-size:.86rem;line-height:1.45}
.service-edit-hold-notice{display:flex;align-items:flex-start;gap:.7rem;margin:0 0 1rem;padding:.8rem .9rem;border:1px solid #ead8ad;border-radius:10px;background:#fffaf0;color:#5c4b2b}
.service-edit-hold-notice strong{color:#5b4211;font-size:.88rem}.service-edit-hold-notice p{margin:.25rem 0 0;font-size:.82rem}.service-edit-hold-notice small{display:block;margin-top:.25rem;color:#806b43;font-size:.72rem}
.service-hold-actions{margin:.7rem 0 1rem;padding:.75rem;border:1px solid #ead8ad;border-radius:10px;background:#fffdf7}
.service-hold-actions form{display:flex;align-items:flex-end;gap:.65rem;flex-wrap:wrap}
.service-hold-actions label{display:grid;gap:.3rem;flex:1 1 280px;font-size:.78rem;font-weight:700;color:#5c4b2b}
.service-hold-actions textarea{min-height:58px;resize:vertical}
.service-hold-card .field textarea{min-height:92px;resize:vertical}
.service-hold-history article{padding:.75rem 0;border-bottom:1px solid var(--border-color,#e7e7e7)}
.service-hold-history article:last-child{border-bottom:0}
.service-hold-history article>strong,.service-hold-history article>span,.service-hold-history article>small{display:block}
.service-hold-history article>span,.service-hold-history article>small{margin-top:.2rem;color:#747474;font-size:.76rem}
.service-hold-history article>p{margin:.38rem 0;font-size:.84rem;line-height:1.4}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--omega-bg);
    color: var(--omega-text);
}
a { color: inherit; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar {
    width: 250px;
    background: var(--omega-navy);
    color: #fff;
    padding: 20px 16px;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    overflow-y: auto;
}
.brand-box { display: flex; align-items: center; gap: 12px; padding: 4px 6px 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--omega-red), #7a0610);
    font-size: 25px; font-weight: 900;
}
.brand-name { font-size: 20px; font-weight: 900; line-height: 1; }
.brand-sub { margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.62); }
.side-nav { display: grid; gap: 6px; margin-top: 18px; }
.side-nav a {
    display: block; text-decoration: none; padding: 12px 13px; border-radius: 12px;
    color: rgba(255,255,255,.78); font-weight: 700; font-size: 14px;
}
.side-nav a:hover, .side-nav a.is-active { background: rgba(227, 6, 19, .95); color: #fff; }
.side-nav a.is-disabled { opacity: .45; cursor: not-allowed; }
.main-area { margin-left: 250px; width: calc(100% - 250px); }
.topbar {
    height: 78px; background: #fff; border-bottom: 1px solid var(--omega-border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 26px; position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-size: 22px; font-weight: 900; }
.topbar-subtitle { font-size: 13px; color: var(--omega-muted); margin-top: 4px; }
.user-box { display: flex; align-items: center; gap: 11px; }
.user-avatar { width: 38px; height: 38px; border-radius: 999px; background: var(--omega-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.user-meta { display: grid; line-height: 1.15; }
.user-meta strong { font-size: 13px; }
.user-meta span { font-size: 12px; color: var(--omega-muted); margin-top: 3px; }
.content { padding: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card {
    position: relative; overflow: hidden;
    background: var(--omega-navy); color: #fff;
    border-radius: var(--radius); padding: 20px 18px;
    box-shadow: var(--shadow); min-height: 118px;
}
.stat-card:after {
    content: ""; position: absolute; right: -28px; bottom: -32px; width: 118px; height: 118px;
    border-radius: 999px; background: rgba(227,6,19,.45);
}
.stat-value { font-size: 31px; font-weight: 900; letter-spacing: -.03em; position: relative; z-index: 1; }
.stat-title { margin-top: 6px; font-size: 13px; font-weight: 900; text-transform: uppercase; position: relative; z-index: 1; }
.stat-sub { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.68); position: relative; z-index: 1; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--omega-border); margin-bottom: 18px; }
.tabs a { text-decoration: none; padding: 12px 18px; border: 1px solid var(--omega-border); border-bottom: 0; background: #fff; border-radius: 12px 12px 0 0; font-size: 13px; font-weight: 900; color: var(--omega-navy); }
.tabs a.is-active { background: var(--omega-red); color: #fff; border-color: var(--omega-red); }
.panel-card { background: #fff; border: 1px solid var(--omega-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.card-title { margin: 0 0 14px; font-size: 18px; font-weight: 900; }
.notice { border: 1px solid #ffd2d6; background: #fff8f8; border-left: 5px solid var(--omega-red); padding: 13px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .search { flex: 1; }
input, select, textarea {
    width: 100%; border: 1px solid #cfd7e2; border-radius: 10px;
    padding: 11px 12px; font-size: 14px; line-height: 1.25; background: #fff; color: var(--omega-text);
}
input, select { padding-block: 7px; }
textarea { min-height: 112px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; text-decoration: none; border-radius: 10px; padding: 11px 15px; font-size: 13px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--omega-red); color: #fff; }
.btn-primary:hover { background: var(--omega-red-dark); }
.btn-dark { background: var(--omega-navy); color: #fff; }
.btn-light { background: #fff; border: 1px solid var(--omega-border); color: var(--omega-navy); }
.btn-ghost { background: #f6f7f9; color: var(--omega-navy); border: 1px solid var(--omega-border); }
.btn-small { padding: 8px 10px; font-size: 12px; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--omega-border); }
table { width: 100%; border-collapse: collapse; min-width: 980px; background: #fff; }
th { background: var(--omega-navy); color: #fff; text-align: left; padding: 13px 12px; font-size: 12px; text-transform: uppercase; }
td { padding: 13px 12px; border-top: 1px solid #eef1f5; font-size: 14px; vertical-align: middle; }
tr:hover td { background: #fbfcfd; }
.badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.badge-status-nowe { background: #e9f2ff; color: #175cd3; }
.badge-status-w_diagnozie { background: #dbeafe; color: #1d4ed8; }
.badge-status-do_wyceny { background: #efe4ff; color: #6d28d9; }
.badge-status-czeka_na_akceptacje { background: #fef3c7; color: #92400e; }
.badge-status-w_naprawie { background: #dcfce7; color: #166534; }
.badge-status-czeka_na_czesci { background: #ffedd5; color: #9a3412; }
.badge-status-do_konsultacji { background: #fee2e2; color: #991b1b; }
.badge-status-zrobione { background: #e0e7ff; color: #3730a3; }
.badge-status-zakonczone { background: #d1fae5; color: #065f46; }
.badge-status-do_wysylki { background: #e0e7ff; color: #3730a3; }
.badge-status-reklamacja { background: #fecaca; color: #7f1d1d; }
.badge-status-realizowane { background: #dcfce7; color: #166534; }
.badge-status-naprawione_do_wyceny { background: #efe4ff; color: #6d28d9; }
.badge-status-wycenione_do_wysylki { background: #e0e7ff; color: #3730a3; }
.badge-status-zakonczone_bez_naprawy { background: #e5e7eb; color: #374151; }
.badge-priority-niski { background: #e5e7eb; color: #374151; }
.badge-priority-sredni { background: #fef3c7; color: #92400e; }
.badge-priority-wysoki { background: #fed7aa; color: #9a3412; }
.badge-priority-ekspres { background: #fee2e2; color: #991b1b; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-row-full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 900; color: #344054; margin-bottom: 7px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-box { background: #fbfcfd; border: 1px solid var(--omega-border); border-radius: 13px; padding: 14px; }
.detail-label { font-size: 12px; text-transform: uppercase; font-weight: 900; color: var(--omega-muted); margin-bottom: 6px; }
.detail-value { font-size: 15px; font-weight: 700; white-space: pre-wrap; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #f4f6f8, #e9edf3); }
.login-box { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--omega-border); border-radius: 18px; box-shadow: var(--shadow); padding: 30px; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.login-brand .brand-mark { flex: 0 0 auto; }
.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; padding: 11px 12px; border-radius: 10px; margin-top: 14px; font-size: 14px; }
.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; padding: 11px 12px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.service-order-create-next-actions { display: none; }
.empty { padding: 30px; text-align: center; color: var(--omega-muted); }
@media (max-width: 980px) {
    .sidebar { position: static; width: 100%; }
    .app-shell { display: block; }
    .main-area { margin-left: 0; width: 100%; }
    .topbar { height: auto; gap: 16px; align-items: flex-start; flex-direction: column; padding: 18px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid, .detail-grid { grid-template-columns: 1fr; }
    .toolbar { flex-direction: column; align-items: stretch; }
}

/* TASK-003 — kompaktowe przyjęcie, reklamacje R i gęsta lista Serwisu. */
.service-device-complaint-button {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    padding: 0;
    border: 1px solid #cbd3dd;
    border-radius: 50%;
    background: #fff;
    color: #344054;
    font: 900 14px/1 inherit;
    cursor: pointer;
}
.service-device-complaint-button:hover { border-color: #b60000; color: #940000; }
.service-device-complaint-button.is-active,
.service-device-complaint-button[aria-pressed="true"] {
    border-color: #b60000;
    background: #b60000;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(182,0,0,.12);
}
.service-complaint-reference { position: relative; margin-top: 8px; }
.service-complaint-reference[hidden] { display: none; }
.service-complaint-reference > label { color: #8f0000; }
.service-complaint-reference > small { display: block; margin-top: 4px; color: #667085; font-size: 9.5px; line-height: 1.35; }
.service-complaint-results {
    position: absolute;
    z-index: 30;
    right: 0;
    left: 0;
    max-height: 260px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #cfd7e2;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15,23,42,.16);
}
.service-complaint-results[hidden] { display: none; }
.service-complaint-result {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 8px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #243044;
    text-align: left;
    cursor: pointer;
}
.service-complaint-result:hover,
.service-complaint-result:focus-visible { background: #fff1f1; outline: 0; }
.service-complaint-result strong { font-size: 11px; }
.service-complaint-result span,
.service-complaint-result-empty { color: #667085; font-size: 9.5px; }
.service-complaint-result-empty { display: block; padding: 9px; }

body.page-order-create .content { padding-top: 14px; padding-bottom: 14px; }
body.page-order-create .service-intake-form { width: min(1180px,100%); }
body.page-order-create .service-intake-head { padding: 13px 16px 11px; }
body.page-order-create .service-intake-head h2 { font-size: 21px; }
body.page-order-create .service-intake-meta {
    grid-template-columns: minmax(170px,.75fr) minmax(150px,.6fr) minmax(240px,1.2fr) minmax(180px,.75fr);
    gap: 9px;
    padding: 11px 16px 10px;
}
body.page-order-create .service-intake-devices { gap: 8px; padding: 11px 16px 8px; }
body.page-order-create .service-intake-device { padding: 10px; border-radius: 10px; }
body.page-order-create .service-intake-device-head { margin-bottom: 7px; }
body.page-order-create .service-intake-device-fields {
    grid-template-columns: minmax(210px,.9fr) minmax(240px,.8fr) minmax(300px,1.25fr);
    gap: 9px;
}
body.page-order-create .service-intake-device-fields input,
body.page-order-create .service-intake-device-fields textarea,
body.page-order-create .service-intake-meta input { min-height: 38px; padding-top: 7px; padding-bottom: 7px; }
body.page-order-create .service-intake-device-fields textarea { height: 52px; min-height: 52px; }
body.page-order-create .service-intake-add { width: calc(100% - 32px); margin: 0 16px 10px; }
body.page-order-create .service-intake-actions { padding: 10px 16px; }

body.page-order-edit .service-order-form-compact .panel-card { margin-bottom: 12px; padding: 14px; }
body.page-order-edit .service-order-form-compact .service-section-head { margin-bottom: 10px; }
body.page-order-edit .service-order-form-compact .service-device-card { padding: 11px; }
body.page-order-edit .service-order-form-compact .service-device-complaint {
    grid-template-columns: 42px minmax(300px,1fr);
    align-items: start;
    margin-top: 4px;
}
body.page-order-edit .service-order-form-compact .service-edit-complaint-button { margin-top: 22px; }
body.page-order-edit .service-order-form-compact .service-intake-add { width: 100%; margin: 10px 0 0; }

/* TASK-037A — edycja Z korzysta z lekkiego układu Przyjęcia. */
body.page-order-edit .content { padding-top: 14px; padding-bottom: 14px; }
body.page-order-edit .service-order-edit-intake { width: min(1180px,100%); }
body.page-order-edit .service-order-edit-intake .service-intake-head { padding: 9px 12px 7px; }
body.page-order-edit .service-order-edit-intake .service-intake-head h2 { margin: 2px 0 0; font-size: 20px; }
body.page-order-edit .service-order-edit-intake .service-intake-meta { grid-template-columns: minmax(170px,.7fr) minmax(150px,.6fr) minmax(360px,1.7fr); gap: 6px; padding: 7px 12px 6px; }
body.page-order-edit .service-order-edit-intake .service-intake-meta .field label,
body.page-order-edit .service-order-edit-intake .service-intake-device-fields .field label { margin-bottom: 2px; }
body.page-order-edit .service-order-edit-intake .service-client-selection { min-height: 0; margin-top: 2px; }
body.page-order-edit .service-order-edit-intake .service-intake-devices { gap: 6px; padding: 7px 12px 5px; }
body.page-order-edit .service-order-edit-intake .service-intake-device { padding: 7px; }
body.page-order-edit .service-order-edit-intake .service-intake-device-head { margin-bottom: 5px; }
body.page-order-edit .service-order-edit-intake .service-intake-device-fields { grid-template-columns: minmax(260px,.9fr) minmax(360px,1.25fr); gap: 7px; }
body.page-order-edit .service-order-edit-intake .service-intake-device-fields input,
body.page-order-edit .service-order-edit-intake .service-intake-device-fields textarea { box-sizing: border-box; height: 40px; min-height: 40px; }
body.page-order-edit .service-order-edit-intake .service-intake-device-fields textarea { overflow-y: hidden; padding-top: 8px; padding-bottom: 8px; resize: vertical; }
body.page-order-edit .service-order-edit-intake .service-intake-add { width: calc(100% - 24px); min-height: 38px; margin: 0 12px 6px; }
body.page-order-edit .service-order-edit-intake .service-intake-actions { gap: 7px; padding: 7px 12px; }
body.page-order-edit .service-order-edit-intake .service-intake-actions .btn { min-height: 38px; }
body.page-order-edit .service-edit-waybills { margin-top: 7px; padding-top: 7px; border-top: 1px solid #e1e6ed; }
body.page-order-edit .service-edit-waybills > strong { display: block; margin-bottom: 5px; color: #344054; font-size: 10px; }
body.page-order-edit .service-edit-waybills .service-edit-attachments-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
body.page-order-edit .service-edit-waybills .service-edit-attachments-grid img { height: 58px; }

@media (max-width: 820px) {
    body.page-order-edit .service-order-edit-intake .service-intake-meta,
    body.page-order-edit .service-order-edit-intake .service-intake-device-fields { grid-template-columns: 1fr; }
    body.page-order-edit .service-order-edit-intake .service-intake-device-head { align-items: flex-start; }
    body.page-order-edit .service-order-edit-intake .service-intake-device-head-actions { flex-wrap: wrap; justify-content: flex-end; }
    body.page-order-edit .service-edit-waybills .service-edit-attachments-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

body.page-orders .content { padding-top: 14px; }
body.page-orders .stats-grid.stats-grid-pro {
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 8px;
    margin-bottom: 10px;
}
body.page-orders .stat-card.stat-card-pro {
    display: grid;
    min-height: 76px;
    grid-template-columns: 32px 42px minmax(0,1fr) 14px;
    grid-template-rows: 1fr 1fr;
    column-gap: 7px;
    padding: 9px 10px;
    border-radius: 12px;
}
body.page-orders .stat-card-pro .stat-icon {
    position: static;
    width: 32px;
    height: 32px;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    margin: 0;
    border-radius: 9px;
}
body.page-orders .stat-card-pro .stat-icon .omega-icon { width: 17px; height: 17px; }
body.page-orders .stat-card-pro .stat-value {
    position: static;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 25px;
}
body.page-orders .stat-card-pro .stat-title {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    margin: 0;
    font-size: 11.5px;
    line-height: 1.15;
}
body.page-orders .stat-card-pro .stat-sub {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    margin: 2px 0 0;
    font-size: 9.5px;
    line-height: 1.2;
}
body.page-orders .stat-card-pro .stat-trend {
    position: static;
    grid-column: 4;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 14px;
}
body.page-orders .service-orders-card { padding: 12px; }
.service-workload-toggle[aria-expanded="true"]{background:#e8f2ed;border-color:#b9d4c7;color:#275c49}.service-workload-toggle{gap:7px}.service-workload-panel{margin-top:14px;padding:17px 18px;border:1px solid #dce7e1;border-radius:12px;background:#f8fbf9}.service-workload-panel[hidden]{display:none}.service-workload-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.service-workload-head h3{margin:0 0 4px;color:#26354a;font-size:18px}.service-workload-head p{margin:0;color:#667085;font-size:13px}.service-workload-head label{display:grid;gap:4px;min-width:220px;color:#667085;font-size:11px;font-weight:700;text-transform:uppercase}.service-workload-head select{min-height:36px;text-transform:none}.service-workload-state{padding:35px;text-align:center;color:#667085}.service-workload-chart{display:grid;grid-template-columns:repeat(8,minmax(70px,1fr));gap:14px;min-height:250px;margin-top:18px;padding:20px 12px 0;border-bottom:1px solid #cad8d1;background:repeating-linear-gradient(to bottom,transparent 0,transparent 49px,#e1e9e5 50px)}.service-workload-bar-item{display:grid;grid-template-rows:190px auto;gap:8px;min-width:0;color:#344054;text-align:center;text-decoration:none}.service-workload-bar-plot{display:flex;position:relative;align-items:flex-end;justify-content:center;height:190px}.service-workload-bar-plot strong{position:absolute;bottom:calc(var(--bar-height,0%) + 5px);top:auto;font-size:13px}.service-workload-bar-plot i{display:block;width:min(52px,70%);min-height:2px;border-radius:6px 6px 2px 2px;background:#4f8a72}.service-workload-bar-item:hover i,.service-workload-bar-item:focus i{background:#326a54}.service-workload-name{min-width:0;font-size:12px;font-weight:650;line-height:1.25;overflow-wrap:anywhere}.service-workload-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;color:#667085;font-size:12px}.service-workload-pagination nav{display:flex;gap:5px}.service-workload-pagination button{min-width:32px;height:32px;border:1px solid #d8e1dc;border-radius:7px;background:#fff;color:#344054}.service-workload-pagination button[aria-current="page"]{background:#dfeee7;border-color:#a9cdbd;color:#275c49;font-weight:800}.service-workload-pagination button:disabled{opacity:.4}
@media(max-width:1000px){.service-workload-chart{grid-template-columns:repeat(4,minmax(70px,1fr))}}
@media(max-width:700px){.service-workload-toggle-label{display:none}.service-workload-panel{padding:14px 12px}.service-workload-head{flex-direction:column}.service-workload-head label{width:100%;min-width:0}.service-workload-chart{grid-template-columns:repeat(4,minmax(55px,1fr));gap:7px;padding-inline:3px}.service-workload-bar-plot i{width:min(38px,72%)}.service-workload-name{font-size:10px}.service-workload-pagination{align-items:flex-start;flex-direction:column}}
.service-workload-bar-plot i{position:absolute;bottom:0}
.service-workload-panel{padding:13px 16px}.service-workload-head h3{font-size:16px}.service-workload-head p{font-size:12px}.service-workload-chart{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;min-height:0;height:176px;margin-top:12px;padding:0;border:0;background:none;overflow:hidden}.service-workload-axis{display:flex;flex-direction:column;justify-content:space-between;height:142px;padding-top:1px;color:#84908a;font-size:10px;text-align:right}.service-workload-bars{display:grid;grid-auto-flow:column;grid-auto-columns:82px;justify-content:start;gap:10px;height:176px;overflow:hidden;background:repeating-linear-gradient(to bottom,#e3e8e6 0,#e3e8e6 1px,transparent 1px,transparent 35.5px)}.service-workload-bar-item{grid-template-rows:142px 28px;gap:5px}.service-workload-bar-plot{height:142px}.service-workload-bar-plot i{width:38px;background:#1f6fd1}.service-workload-bar-item:hover i,.service-workload-bar-item:focus i{background:#165daF}.service-workload-bar-plot strong{font-size:11px;color:#344054}.service-workload-name{display:-webkit-box;max-height:28px;font-size:10px;line-height:1.2;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.service-workload-pagination{margin-top:9px;font-size:11px}.service-workload-pagination button{min-width:28px;height:28px}.service-workload-pagination nav{gap:4px}
@media(max-width:1000px){.service-workload-chart{grid-template-columns:26px minmax(0,1fr)}.service-workload-bars{grid-auto-columns:76px;gap:8px}}
@media(max-width:700px){.service-workload-panel{padding:12px 10px}.service-workload-chart{height:168px}.service-workload-axis{height:136px}.service-workload-bars{grid-auto-columns:62px;height:168px;background-size:auto}.service-workload-bar-item{grid-template-rows:136px 27px}.service-workload-bar-plot{height:136px}.service-workload-bar-plot i{width:30px}.service-workload-name{font-size:9px}}
body.page-orders .service-workload-toggle{display:grid;width:38px;height:36px;min-height:36px;padding:0;place-items:center}body.page-orders .service-workload-toggle .omega-icon{width:17px;height:17px}
.service-workload-head-controls{display:flex;align-items:end;gap:7px}.service-workload-head-controls label{min-width:220px}.service-workload-close{display:grid;width:36px;height:36px;min-height:36px;padding:0;place-items:center;color:#667085;font-size:20px;line-height:1}.service-workload-close:hover,.service-workload-close:focus{background:#edf2ef;border-color:#cbd8d1;color:#344054}
@media(max-width:700px){.service-workload-head-controls{width:100%}.service-workload-head-controls label{min-width:0;flex:1}.service-workload-close{flex:0 0 36px}}
body.page-orders .service-list-heading { margin-bottom: 9px; }
body.page-orders .service-filter { gap: 7px; margin-bottom: 9px; padding: 8px; border-radius: 11px; }
body.page-orders .service-filter .field label { margin-bottom: 3px; font-size: 9.5px; }
body.page-orders .service-filter input,
body.page-orders .service-filter select,
body.page-orders .service-filter .btn { height: 34px; min-height: 34px; }
body.page-orders .service-orders-table th { padding: 7px 9px; }
body.page-orders .service-orders-table td { padding: 6px 9px; }
body.page-orders .service-order-device-line,
body.page-orders .service-inline-assignment { height: 52px; min-height: 52px; padding: 4px 0; }
body.page-orders .service-inline-control select,
body.page-orders .service-inline-assignment select { height: 32px; }
body.page-orders .service-device-warranty-indicator { width: 25px; height: 25px; flex-basis: 25px; font-size: 11px; }

@media (max-width: 1500px) and (min-width: 981px) {
    body.page-orders .service-filter { grid-template-columns: minmax(200px,1.4fr) repeat(3,minmax(120px,1fr)) auto auto; }
    body.page-orders .service-filter-search { grid-column: span 2; }
}
@media (max-width: 980px) {
    body.page-order-create .service-intake-meta,
    body.page-order-create .service-intake-device-fields { grid-template-columns: 1fr; }
    body.page-orders .stats-grid.stats-grid-pro { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.page-orders .stat-card.stat-card-pro { min-height: 82px; }
}
@media (max-width: 620px) {
    body.page-orders .service-order-save-success { display: grid; gap: 12px; padding: 14px; }
    body.page-orders .service-order-create-next-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
    body.page-orders .service-order-create-next-actions .btn { width: 100%; min-height: 44px; }
    .service-device-complaint-button { width: 44px; height: 44px; flex-basis: 44px; }
    body.page-order-create .content { padding-top: 12px; }
    body.page-order-create .service-intake-head { padding: 12px; }
    body.page-order-create .service-intake-meta { padding: 10px 12px 9px; }
    body.page-order-create .service-intake-devices { padding: 10px 12px 7px; }
    body.page-order-create .service-intake-add { width: calc(100% - 24px); min-height: 44px; margin: 0 12px 10px; }
    body.page-order-create .service-intake-actions { padding: 10px 12px 12px; }
    body.page-order-create .service-intake-device-fields textarea { height: 74px; min-height: 74px; }
    body.page-order-edit .service-order-form-compact .service-device-complaint { grid-template-columns: 1fr; }
    body.page-order-edit .service-order-form-compact .service-edit-complaint-button { margin-top: 0; }
    body.page-orders .content { padding-top: 12px; }
    body.page-orders .stats-grid.stats-grid-pro { gap: 7px; }
    body.page-orders .stat-card.stat-card-pro {
        min-height: 88px;
        grid-template-columns: 28px 34px minmax(0,1fr);
        padding: 8px;
    }
    body.page-orders .stat-card-pro .stat-icon { width: 28px; height: 28px; }
    body.page-orders .stat-card-pro .stat-value { font-size: 22px; }
    body.page-orders .stat-card-pro .stat-title { font-size: 10.5px; }
    body.page-orders .stat-card-pro .stat-sub { font-size: 8.5px; }
    body.page-orders .stat-card-pro .stat-trend { display: none; }
    body.page-orders .service-filter { grid-template-columns: 1fr 1fr; }
    body.page-orders .service-filter-search { grid-column: 1 / -1; }
}

/* TASK-017: trwały raport naprawy i recenzja Kierownika */
.repair-review-shell { min-width: 0; }
.repair-review-card,
.repair-review-empty { min-width: 0; border: 1px solid #dce4ee; border-radius: 10px; background: #f8fafc; }
.repair-review-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; color: #667085; }
.repair-review-empty strong { color: #344054; font-size: 11px; letter-spacing: .04em; }
.repair-review-empty span { font-size: 11px; }
.repair-review-card { padding: 14px; }
.repair-review-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.repair-review-card > header > div { display: flex; align-items: baseline; gap: 9px; }
.repair-review-card > header span:first-child { color: #344054; font-size: 11px; font-weight: 850; letter-spacing: .045em; }
.repair-review-card > header strong { color: #667085; font-size: 10px; }
.repair-review-meta { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; margin: 0 0 10px; }
.repair-review-meta > div { min-width: 0; padding: 8px 9px; border-radius: 7px; background: #fff; }
.repair-review-meta dt { color: #667085; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.repair-review-meta dd { margin: 3px 0 0; overflow-wrap: anywhere; color: #1d2939; font-size: 11px; font-weight: 750; }
.repair-review-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.repair-review-flags span { padding: 4px 7px; border-radius: 999px; background: #e9eef4; color: #475467; font-size: 9.5px; font-weight: 750; }
.repair-review-flags .is-active { background: #fff3cd; color: #7a5400; }
.repair-review-flags .is-alert { background: #fee4e2; color: #b42318; }
.repair-review-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.repair-review-section { min-width: 0; margin-top: 8px; padding: 9px 10px; border-radius: 7px; background: #fff; }
.repair-review-section > strong { display: block; margin-bottom: 5px; color: #475467; font-size: 9.5px; text-transform: uppercase; letter-spacing: .035em; }
.repair-review-section p { margin: 0; overflow-wrap: anywhere; color: #253148; font-size: 11px; line-height: 1.45; }
.repair-review-section ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 5px; margin: 0; padding: 0; list-style: none; }
.repair-review-section li { min-width: 0; color: #253148; font-size: 10.5px; font-weight: 750; }
.repair-review-section li small { display: block; overflow-wrap: anywhere; color: #667085; font-weight: 500; }
.repair-review-section li .repair-review-action-detail { margin-top: 2px; color: #253148; font-size: 11px; font-weight: 800; }
.repair-review-card > footer { margin-top: 10px; padding: 9px 10px; border-left: 3px solid #315d9b; border-radius: 5px; background: #fff; }
.repair-review-card > footer > strong,
.repair-review-card > footer > span { display: block; }
.repair-review-card > footer > strong { color: #253148; font-size: 11px; }
.repair-review-card > footer > span { margin-top: 2px; color: #667085; font-size: 9.5px; }
.repair-review-card > footer p { margin: 6px 0 0; overflow-wrap: anywhere; color: #344054; font-size: 10.5px; }
.repair-review-card.is-compact { margin-top: 12px; padding: 11px; border-color: #cfd9e5; background: #fff; }
.repair-review-card.is-compact .repair-review-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
.repair-review-card.is-compact .repair-review-section,
.repair-review-card.is-compact .repair-review-meta > div { background: #f5f7fa; }
.repair-review-none { background: #edf1f5; color: #667085; }
.repair-review-pending { background: #fff3cd; color: #7a5400; }
.repair-review-approved { background: #dcfae6; color: #067647; }
.repair-review-rejected { background: #fee4e2; color: #b42318; }
.repair-review-draft { background: #e8eff8; color: #315d9b; }
.repair-review-decision { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; margin-top: 12px; }
.repair-review-decision label { min-width: 0; }
.repair-review-decision label > span { display: block; margin-bottom: 4px; color: #475467; font-size: 10px; font-weight: 750; }
.repair-review-decision textarea { width: 100%; min-height: 58px; resize: vertical; }
.repair-review-decision > div { display: flex; gap: 7px; }
.repair-review-history { margin-top: 10px; }
.repair-review-history summary { cursor: pointer; color: #475467; font-size: 10.5px; font-weight: 750; }
.repair-review-history p { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 9px; margin: 7px 0 0; padding: 7px 9px; border-radius: 6px; background: #f5f7fa; }
.repair-review-history p strong { color: #253148; font-size: 10.5px; }
.repair-review-history p span { color: #667085; font-size: 9.5px; text-align: right; }
.repair-review-history p small { grid-column: 1 / -1; overflow-wrap: anywhere; color: #475467; }
.service-view-repair-report { margin: 10px 0; }
.service-preview-report-link { text-align: right; }
.service-preview-report-link a { color: #315d9b; font-weight: 750; }
@media (max-width: 760px) {
    .repair-review-meta,
    .repair-review-card.is-compact .repair-review-meta,
    .repair-review-columns { grid-template-columns: 1fr 1fr; }
    .repair-review-decision { grid-template-columns: 1fr; }
    .repair-review-decision > div { flex-wrap: wrap; }
    .repair-review-decision .btn { flex: 1 1 150px; }
}

/* TASK-004B — finalny widok kolejki pracy według projektu szefa. */
body.page-orders .stats-grid.stats-grid-pro {
    gap: 10px;
    margin-bottom: 12px;
}
body.page-orders .stat-card.stat-card-pro {
    min-height: 76px;
    border-color: #e5e9ef;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
body.page-orders .service-orders-card { padding: 12px; }
body.page-orders .service-orders-heading { min-height: 42px; margin-bottom: 5px; }
body.page-orders .service-orders-heading .card-title { color: #26354a; }
body.page-orders .service-orders-table { border-color: #e3e8ef; border-radius: 9px; }
body.page-orders .service-orders-table td.service-order-zone-cell {
    background: #fff;
    color: #344054;
}
body.page-orders .service-orders-table td.service-order-zone-cell + td.service-order-zone-cell {
    border-right: 1px solid #e3e8ef;
}
body.page-orders .service-orders-table td.service-device-zone-cell {
    background: #f7f8fa;
}
body.page-orders .service-orders-table td.service-device-zone-status-oczekujace {
    background: #f3f4f6;
}
body.page-orders .service-orders-table td.service-device-zone-status-realizowane {
    background: #eaf4fd;
}
body.page-orders .service-orders-table td.service-device-zone-status-czeka_na_czesci,
body.page-orders .service-orders-table td.service-device-zone-status-oczekuje_na_czesci {
    background: #fff3dc;
}
body.page-orders .service-orders-table td.service-device-zone-status-naprawione_do_wyceny,
body.page-orders .service-orders-table td.service-device-zone-status-naprawione_do_odbioru {
    background: #f3edfb;
}
body.page-orders .service-orders-table td.service-device-zone-status-oczekuje_na_decyzje_wyceny,
body.page-orders .service-orders-table td.service-device-zone-status-oczekuje_na_review {
    background: #fff0e5;
}
body.page-orders .service-orders-table td.service-device-zone-status-wycenione_do_wysylki {
    background: #e8f7f5;
}
body.page-orders .service-orders-table td.service-device-zone-status-zakonczone {
    background: #eaf7ed;
}
body.page-orders .service-orders-table td.service-device-zone-status-zakonczone_bez_naprawy {
    background: #f4eeee;
}
.service-release-action {
    max-width: 124px;
    padding: 5px 7px;
    border: 1px solid #24835a;
    border-radius: 7px;
    background: #eaf7ef;
    color: #17633f;
    font: 800 9px/1.2 inherit;
    cursor: pointer;
}
.service-release-action:hover,
.service-release-action:focus-visible { background: #24835a; color: #fff; }
[data-service-release-form] { margin: 0; }
body.page-orders .service-status-select[data-value="oczekuje_na_decyzje_wyceny"] {
    border-color: #e6ad7e; background: #fff0e5; color: #8a4613;
}
body.page-orders .service-status-select[data-value="oczekuje_na_review"] {
    border-color: #d9a36f; background: #fff2e7; color: #7c4518;
}
body.page-orders .service-status-select option[value="oczekuje_na_decyzje_wyceny"],
body.page-orders .service-status-select option[value="oczekuje_na_review"] {
    background: #fff0e5; color: #8a4613;
}
body.page-orders .service-flags-inline { min-height: 24px; align-items: center; }
body.page-orders .service-prequote-badge,
body.page-orders .service-device-warranty-indicator { box-shadow: none; }
body.page-orders .service-inline-control select,
body.page-orders .service-inline-assignment select { border-radius: 7px; }
body.page-orders .service-row-actions { width: 100%; }

@media (min-width: 981px) {
    body.page-orders .stats-grid.stats-grid-pro { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    body.page-orders .service-orders-table table { min-width: 1180px; }
    body.page-orders .service-orders-table .service-width-order { width: 132px; }
    body.page-orders .service-orders-table .service-width-client { width: 158px; }
    body.page-orders .service-orders-table .service-width-number { width: 38px; }
    body.page-orders .service-orders-table .service-width-device { width: auto; }
    body.page-orders .service-orders-table .service-width-complaint { width: 76px; }
    body.page-orders .service-orders-table .service-width-priority { width: 108px; }
    body.page-orders .service-orders-table .service-width-status { width: 168px; }
    body.page-orders .service-orders-table .service-width-technician { width: 168px; }
    body.page-orders .service-orders-table .service-width-edit { width: 68px; }
    body.page-orders .service-orders-table th {
        height: 34px;
        padding: 6px 7px;
        color: #526071;
        font-size: 9px;
        letter-spacing: .035em;
        background: #f7f9fb;
    }
    body.page-orders .service-orders-table td { padding: 4px 7px; }
    body.page-orders .service-orders-table tbody > tr { height: 46px; }
    body.page-orders .service-orders-table .service-col-number { width: auto; }
    body.page-orders .service-orders-table .service-col-complaint { width: auto; text-align: left; }
    body.page-orders .service-orders-table .service-col-edit { width: auto; text-align: center; }
    body.page-orders .service-device-row .service-inline-control select,
    body.page-orders .service-device-row .service-inline-assignment select {
        height: 34px;
        min-height: 34px;
        max-height: 34px;
        padding-top: 5px;
        padding-bottom: 5px;
        font-size: 11px;
    }
    body.page-orders .service-multiorder-badge { margin-top: 5px; }
    body.page-orders .service-order-device-count { margin-top: 4px; }
}

@media (min-width: 1200px) {
    body.page-orders .stat-card.stat-card-pro { min-height: 76px; padding: 10px 12px 9px 58px; }
    body.page-orders .stat-card-pro .stat-icon { top: 14px; left: 12px; width: 36px; height: 36px; }
    body.page-orders .stat-card-pro .stat-value { top: 9px; left: 58px; font-size: 21px; }
    body.page-orders .stat-card-pro .stat-title { margin-top: 22px; }
    body.page-orders .stat-card-pro .stat-sub { margin-top: 3px; }
}

@media (min-width: 981px) and (max-width: 1370px) {
    body.page-orders .service-orders-card { padding: 10px; }
    body.page-orders .service-orders-table table { min-width: 1120px; }
    body.page-orders .service-orders-table .service-width-order { width: 122px; }
    body.page-orders .service-orders-table .service-width-client { width: 145px; }
    body.page-orders .service-orders-table .service-width-complaint { width: 68px; }
    body.page-orders .service-orders-table .service-width-status { width: 158px; }
    body.page-orders .service-orders-table .service-width-technician { width: 156px; }
}

@media (min-width: 621px) and (max-width: 980px) {
    body.page-orders .stats-grid.stats-grid-pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.page-orders .stats-grid.stats-grid-pro > :last-child { grid-column: 1 / -1; }
    body.page-orders .service-orders-table tbody > tr {
        border: 1px solid #e1e6ed;
        box-shadow: 0 2px 7px rgba(15, 23, 42, .035);
    }
}

@media (max-width: 620px) {
    body.page-orders .stats-grid.stats-grid-pro { grid-template-columns: 1fr; gap: 7px; }
    body.page-orders .stat-card.stat-card-pro { min-height: 70px; }
    body.page-orders .service-orders-table tbody { gap: 8px; }
    body.page-orders .service-orders-table tbody > tr {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 10px;
        border: 1px solid #dfe5ec;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
    }
    body.page-orders .service-device-row.is-order-first > [data-label],
    body.page-orders .service-device-row.is-order-continuation > [data-label],
    body.page-orders .service-device-row.is-order-first > .service-device-cell,
    body.page-orders .service-device-row.is-order-continuation > .service-device-cell,
    body.page-orders .service-device-row.is-order-first > .service-col-complaint,
    body.page-orders .service-device-row.is-order-continuation > .service-col-complaint,
    body.page-orders .service-device-row.is-order-first > .service-col-status,
    body.page-orders .service-device-row.is-order-continuation > .service-col-status,
    body.page-orders .service-device-row.is-order-first > .service-col-technician,
    body.page-orders .service-device-row.is-order-continuation > .service-col-technician,
    body.page-orders .service-device-row.is-order-first > .service-col-edit,
    body.page-orders .service-device-row.is-order-continuation > .service-col-edit {
        grid-column: 1;
        grid-row: auto;
    }
    body.page-orders .service-device-row.is-order-first > [data-label="Nr"],
    body.page-orders .service-device-row.is-order-continuation > [data-label="Nr"] { display: none; }
    body.page-orders .service-orders-table td.service-device-zone-cell {
        padding: 6px;
        border-radius: 7px;
        background: var(--service-mobile-zone, #f7f8fa) !important;
    }
    body.page-orders .service-orders-table td.service-device-zone-status-oczekujace { --service-mobile-zone: #f3f4f6; }
    body.page-orders .service-orders-table td.service-device-zone-status-realizowane { --service-mobile-zone: #eaf4fd; }
    body.page-orders .service-orders-table td.service-device-zone-status-czeka_na_czesci { --service-mobile-zone: #fff3dc; }
    body.page-orders .service-orders-table td.service-device-zone-status-naprawione_do_wyceny { --service-mobile-zone: #f3edfb; }
    body.page-orders .service-orders-table td.service-device-zone-status-oczekuje_na_decyzje_wyceny,
    body.page-orders .service-orders-table td.service-device-zone-status-oczekuje_na_review { --service-mobile-zone: #fff0e5; }
    body.page-orders .service-orders-table td.service-device-zone-status-wycenione_do_wysylki { --service-mobile-zone: #e8f7f5; }
    body.page-orders .service-orders-table td.service-device-zone-status-zakonczone { --service-mobile-zone: #eaf7ed; }
    body.page-orders .service-orders-table td.service-device-zone-status-zakonczone_bez_naprawy { --service-mobile-zone: #f4eeee; }
    body.page-orders .service-row-actions { justify-content: flex-end; }
}

/* TASK-004B.1 — final visual polish według projektu szefa. */
body.page-orders .service-orders-table td.service-device-zone-status-wycenione_do_wysylki,
body.page-orders .service-orders-table td.service-device-zone-status-bez_naprawy_do_wysylki {
    background: #f8efed;
}
body.page-orders .service-status-select[data-value="wycenione_do_wysylki"] {
    border-color: #a8d8d3;
    background: #edf9f7;
    color: #176963;
}
body.page-orders .service-status-select[data-value="bez_naprawy_do_wysylki"] {
    border-color: #e0b8b5;
    background: #fff4f3;
    color: #a23b35;
}
body.page-orders .service-priority-select[data-value="niski"] { border-color: #b9dcc4; background: #f3faf5; color: #286b40; }
body.page-orders .service-priority-select[data-value="sredni"] { border-color: #bcd4ea; background: #f3f8fd; color: #285d8d; }
body.page-orders .service-priority-select[data-value="wysoki"] { border-color: #e8d0a8; background: #fff8ec; color: #89591a; }
body.page-orders .service-priority-select[data-value="ekspres"] { border-color: #e8baba; background: #fff2f2; color: #a52d2d; }
body.page-orders .service-status-select[data-value="oczekujace"] { border-color: #d4d9df; background: #f8f9fa; color: #4f5b69; }
body.page-orders .service-status-select[data-value="realizowane"] { border-color: #b9d5ec; background: #f1f7fc; color: #285f90; }
body.page-orders .service-status-select[data-value="czeka_na_czesci"] { border-color: #ead3a9; background: #fff8e9; color: #865c17; }
body.page-orders .service-status-select[data-value="naprawione_do_wyceny"] { border-color: #d2c5e8; background: #f8f4fc; color: #684e94; }
body.page-orders .service-status-select[data-value="zakonczone"] { border-color: #b9dcc4; background: #f2faf4; color: #286b40; }

body.page-orders .service-status-select[data-value="zakonczone_bez_naprawy"] { border-color: #dec7c5; background: #fbf5f4; color: #80514e; }
body.page-orders .service-device-row .service-priority-select,
body.page-orders .service-device-row .service-status-select {
    box-shadow: 0 1px 1px rgba(15, 23, 42, .025);
    font-weight: 650;
}
body.page-orders .service-device-cell .table-main,
body.page-orders .service-device-cell .service-preview-trigger {
    font-weight: 575;
}
body.page-orders .service-orders-table td[data-label="Klient"] {
    vertical-align: middle;
}
body.page-orders .service-orders-table td[data-label="Klient"] .table-main {
    font-weight: 450;
}
body.page-orders .service-orders-table td[data-label="Klient"] .table-sub {
    color: #7b8797;
    font-size: 9.5px;
    font-weight: 400;
}
@media (min-width: 981px) {
    body.page-orders .service-orders-table .service-col-complaint { padding-right: 4px; padding-left: 5px; }
    body.page-orders .service-orders-table .service-col-control { padding-right: 3px; padding-left: 3px; }
    body.page-orders .service-orders-table .service-col-technician { padding-right: 4px; padding-left: 3px; }
}
@media (max-width: 620px) {
    body.page-orders .service-orders-table td.service-device-zone-status-wycenione_do_wysylki,
    body.page-orders .service-orders-table td.service-device-zone-status-bez_naprawy_do_wysylki {
        --service-mobile-zone: #f8efed;
    }
}

@media (max-width: 460px) {
    .repair-review-card { padding: 10px; }
    .repair-review-card > header,
    .repair-review-empty { align-items: flex-start; flex-direction: column; }
    .repair-review-meta,
    .repair-review-card.is-compact .repair-review-meta,
    .repair-review-columns { grid-template-columns: 1fr; }
    .repair-review-history p { grid-template-columns: 1fr; }
    .repair-review-history p span { text-align: left; }
}

.field-error {
    display: block;
    margin-top: 3px;
    color: #b42318;
    font-size: .72rem;
    line-height: 1.25;
}
[aria-invalid="true"] {
    border-color: #d92d20 !important;
    box-shadow: 0 0 0 1px rgba(217, 45, 32, .12);
}

/* Omega Panel 4.6 — zwijane grupy nawigacji */
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-group {
    border-radius: 11px;
}

.nav-group-toggle {
    width: 100%;
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255,255,255,.84);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.nav-group-toggle:hover,
.nav-group-toggle:focus-visible,
.nav-group.is-open > .nav-group-toggle {
    background: rgba(255,255,255,.075);
    color: #fff;
}

.nav-group-toggle:focus-visible {
    outline: 2px solid rgba(255,255,255,.75);
    outline-offset: 2px;
}

.nav-group-label {
    flex: 1;
}

.nav-group-chevron {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .62;
    transition: transform .18s ease;
}

.nav-group.is-open .nav-group-chevron {
    transform: rotate(90deg);
}

.nav-group-items {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .22s ease, opacity .15s ease, padding .2s ease;
}

.nav-group.is-open .nav-group-items {
    max-height: 360px;
    opacity: 1;
    padding: 4px 0 5px 12px;
}

.nav-group-items .nav-link {
    position: relative;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13.5px;
}

.nav-group-items .nav-link::before {
    content: '';
    position: absolute;
    left: -7px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.32);
}

.nav-group-items .nav-link.is-active::before {
    background: #fff;
}

.nav-group-items .nav-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
}

.nav-group-items .omega-icon {
    width: 17px;
    height: 17px;
}

@media (prefers-reduced-motion: reduce) {
    .nav-group-chevron,
    .nav-group-items {
        transition: none;
    }
}

/* TASK-003A — szerokie przyjęcie, klient intake i zwijane filtry listy. */
body.page-order-create .content {
    padding: 10px 12px;
    overflow-x: hidden;
}
body.page-order-create .service-intake-form {
    width: calc(100% - 24px);
    max-width: 1600px;
    min-width: 0;
    margin: 0 auto;
}
body.page-order-create .service-intake-meta {
    grid-template-columns: minmax(160px, .65fr) minmax(145px, .55fr) minmax(430px, 1.7fr) minmax(180px, .7fr);
}
body.page-order-create .service-client-field { min-width: 0; }
.service-client-picker-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto auto;
    gap: 6px;
    align-items: start;
}
.service-waybill-camera {
    display: grid;
    width: 34px;
    min-width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    cursor: pointer;
}
.service-waybill-camera svg { width: 17px; height: 17px; fill: currentColor; }
.service-waybill-camera input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.service-waybill-camera.is-uploading { cursor: wait; opacity: .65; }
.service-waybill-camera:focus-within { outline: 3px solid rgba(31,111,209,.2); outline-offset: 2px; }
.service-waybill-pending { margin-top: 6px; padding: 7px 8px; border: 1px solid #d8e1eb; border-radius: 8px; background: #f8fafc; }
.service-waybill-pending[hidden] { display: none; }
.service-waybill-pending-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.service-waybill-pending-head strong { color: #344054; font-size: 9.5px; }
.service-waybill-pending-head [role="status"] { color: #667085; font-size: 9px; }
.service-waybill-pending-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.service-waybill-pending-item { position: relative; width: 72px; }
.service-waybill-pending-item img { display: block; width: 72px; height: 54px; object-fit: cover; border: 1px solid #ced8e4; border-radius: 6px; background: #fff; }
.service-waybill-pending-item button { position: absolute; top: 3px; right: 3px; display: grid; width: 18px; height: 18px; place-items: center; padding: 0; border: 1px solid #e3b4b4; border-radius: 50%; background: rgba(255,255,255,.94); color: #a52828; font: 800 12px/1 Arial,sans-serif; cursor: pointer; }
.service-waybill-pending-item button:hover { background: #ffeded; }
.service-client-search-wrap { position: relative; min-width: 0; }
.service-client-results {
    position: absolute;
    z-index: 40;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 260px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #cfd7e2;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15,23,42,.16);
}
.service-client-results[hidden],
.service-client-add-panel[hidden],
.service-client-clear[hidden],
.service-filter[hidden] { display: none !important; }
.service-client-result {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 8px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #243044;
    text-align: left;
    cursor: pointer;
}
.service-client-result:hover,
.service-client-result:focus-visible { background: #f3f6f9; outline: 0; }
.service-client-result strong { font-size: 11px; }
.service-client-result span,
.service-client-result-empty { color: #667085; font-size: 9.5px; }
.service-client-result-empty { display: block; padding: 9px; }
.service-client-selection {
    min-height: 15px;
    margin: 4px 0 0;
    color: #667085;
    font-size: 9.5px;
    line-height: 1.35;
}
.service-client-selection strong { color: var(--omega-navy); }
.service-client-add-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 7px;
    padding: 8px;
    border: 1px solid #d8dee7;
    border-radius: 10px;
    background: #f8fafc;
}
.service-client-add-panel .field { min-width: 0; }
.service-client-add-panel input { width: 100%; }
.service-client-add-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}
.service-client-add-status {
    align-self: center;
    margin: 0;
    color: #667085;
    font-size: 10px;
}

body.page-orders .service-orders-card { padding: 9px 10px 10px; }
body.page-orders .service-orders-heading {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 4px;
}
body.page-orders .service-orders-heading .card-title {
    min-width: 0;
    margin: 0;
    color: var(--omega-navy);
    font-size: 16px;
    line-height: 1.2;
}
body.page-orders .service-orders-heading .card-title span {
    color: #667085;
    font-weight: 750;
}
.service-orders-heading-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
}
.service-filter-toggle {
    position: relative;
    display: grid;
    width: 38px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    place-items: center;
}
.service-filter-toggle .omega-icon { width: 17px; height: 17px; }
.service-filter-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--omega-red);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}
.service-create-label-short { display: none; }
body.page-orders .service-filter:not([hidden]) {
    margin-top: 5px;
    margin-bottom: 7px;
}

@media (max-width: 1180px) and (min-width: 981px) {
    body.page-order-create .service-intake-meta {
        grid-template-columns: minmax(150px, .65fr) minmax(140px, .55fr) minmax(360px, 1.5fr) minmax(170px, .7fr);
    }
    .service-client-picker-row { grid-template-columns: minmax(190px, 1fr) auto auto auto; }
}

@media (max-width: 980px) {
    body.page-order-create .content { padding-right: 10px; padding-left: 10px; }
    body.page-order-create .service-intake-form { width: 100%; }
    body.page-order-create .service-intake-meta { grid-template-columns: 1fr; }
    .service-client-picker-row { grid-template-columns: minmax(0, 1fr) auto auto auto; }
}

@media (max-width: 620px) {
    body.page-order-create .content { padding: 8px; }
    body.page-order-create .service-intake-form { width: 100%; margin: 0; }
    body.page-order-create .service-intake-meta,
    body.page-order-create .service-intake-devices { padding-right: 10px; padding-left: 10px; }
    .service-client-picker-row { grid-template-columns: minmax(0, 1fr) auto; }
    .service-client-clear { grid-column: 2; grid-row: 1; }
    .service-client-add-toggle { grid-column: 1; width: 100%; }
    .service-waybill-camera { grid-column: 2; }
    .service-client-clear { padding-right: 10px; padding-left: 10px; }
    .service-client-add-panel { grid-template-columns: 1fr; }
    .service-client-add-actions .btn { min-height: 42px; }

    body.page-orders .content { padding-right: 8px; padding-left: 8px; }
    body.page-orders .service-orders-card { padding: 8px; }
    body.page-orders .service-orders-heading {
        min-height: 40px;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        margin-bottom: 3px;
    }
    body.page-orders .service-orders-heading .card-title { font-size: 13.5px; }
    .service-orders-heading-actions { gap: 5px; }
    .service-filter-toggle { width: 38px; height: 38px; min-height: 38px; }
    .service-create-label-wide { display: none; }
    .service-create-label-short { display: inline; }
    .service-create-order-button { min-height: 38px; padding: 9px 11px; white-space: nowrap; }
    body.page-orders .service-filter { grid-template-columns: 1fr; }
    body.page-orders .service-filter-search { grid-column: auto; }
    body.page-orders .service-filter .btn { width: 100%; min-height: 42px; }
}

/* TASK-006 — kompaktowa kartoteka klientów w HANDEL. */
.trade-clients-card,
.trade-client-form-card,
.trade-client-hero,
.trade-client-details,
.trade-client-orders { padding: 14px; }
.trade-clients-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.trade-clients-heading h1,
.trade-clients-heading h2,
.trade-client-details h2 { margin: 0; color: var(--omega-navy); font-size: 19px; line-height: 1.2; }
.trade-clients-heading p { margin: 3px 0 0; color: var(--omega-muted); font-size: 11px; }
.trade-clients-filter {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    align-items: end;
    gap: 8px;
    margin-bottom: 10px;
    padding: 9px;
    border: 1px solid var(--omega-border);
    border-radius: 11px;
    background: #fbfcfe;
}
.trade-clients-filter .field { margin: 0; }
.trade-clients-filter .field label { margin-bottom: 5px; }
.trade-clients-filter input,
.trade-clients-filter .btn { height: 36px; }
.trade-clients-table table { min-width: 900px; }
.trade-client-orders-table table { min-width: 980px; }
.trade-clients-table th,
.trade-client-orders-table th { padding: 9px 10px; font-size: 10px; }
.trade-clients-table td,
.trade-client-orders-table td { padding: 9px 10px; font-size: 12px; }
.trade-clients-table .trade-client-row { cursor: pointer; transition: background-color .14s ease, box-shadow .14s ease; }
.trade-clients-table .trade-client-row:hover,
.trade-clients-table .trade-client-row:focus-visible { background: #f1f6fb; box-shadow: inset 3px 0 0 var(--omega-red); outline: none; }
.trade-clients-table .trade-client-row:hover .trade-client-name,
.trade-clients-table .trade-client-row:focus-visible .trade-client-name { color: var(--omega-red); text-decoration: underline; }
.trade-client-row-number { color: var(--omega-muted); font-weight: 750; font-variant-numeric: tabular-nums; }
.trade-client-name { color: var(--omega-navy); font-weight: 850; text-decoration: none; }
.trade-client-name:hover { color: var(--omega-red); }
.trade-last-order-link { color: inherit; text-decoration: none; }
.trade-last-order-link:hover,
.trade-last-order-link:focus-visible { color: var(--omega-red); text-decoration: underline; }
.trade-client-email,
.trade-client-devices { overflow-wrap: anywhere; }
.trade-client-devices { display: block; max-width: 390px; line-height: 1.35; }
.trade-client-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.trade-client-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 980px; }
.trade-client-record-form { display: flex; max-width: 1040px; flex-direction: column; gap: 10px; }
.trade-client-form-section {
    min-width: 0;
    margin: 0;
    padding: 9px 10px 10px;
    border: 1px solid var(--omega-border);
    border-radius: 10px;
    background: #fbfcfe;
}
.trade-client-form-section legend { padding: 0 6px; color: var(--omega-navy); font-size: 12px; font-weight: 850; }
.trade-client-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.trade-client-form-grid-address { grid-template-columns: minmax(220px, 2fr) minmax(110px, .7fr) minmax(170px, 1fr) minmax(90px, .45fr); }
.trade-client-form-grid-contact { grid-template-columns: minmax(150px, .85fr) minmax(220px, 1.2fr) minmax(190px, 1fr); }
.trade-client-record-form .field { min-width: 0; margin: 0; }
.trade-client-record-form .field small { display: block; margin-top: 3px; color: var(--omega-muted); font-size: 9px; }
.trade-client-record-form textarea { min-height: 92px; resize: vertical; }
.trade-client-form .actions { display: flex; grid-column: 1 / -1; gap: 8px; }
.trade-client-details .detail-grid { margin-top: 10px; }

body.page-client-view .content { overflow-x: clip; }
.client-card-hero { display: grid; gap: 14px; }
.client-card-facts { display: grid; gap: 8px; }
.client-card-facts-primary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.client-card-facts-shipping { grid-template-columns: 2fr .8fr 1.2fr .55fr; }
.client-card-inline-grid { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,2fr); gap: 6px; align-items: stretch; }
.client-card-inline-grid:has(.client-card-notes-inline[hidden]) { grid-template-columns: 1fr; }
.client-card-inline-section { display: grid; gap: 6px; }
.client-card-inline-section[hidden] { display: none; }
.client-card-inline-section h2 { margin: 0; color: var(--omega-muted); font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.client-card-notes-inline { padding: 8px 10px; border: 1px solid var(--omega-border); border-radius: 8px; background: #fbfcfe; }
.client-card-notes { color: #344054; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.client-card-fact { display: flex; align-items: center; min-width: 0; min-height: 66px; gap: 10px; padding: 10px 12px; border: 1px solid var(--omega-border); border-radius: 10px; background: #fbfcfe; }
.client-card-fact-icon { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: #edf2f7; color: var(--omega-navy); }
.client-card-fact-icon .omega-icon { width: 17px; height: 17px; }
.client-card-fact > span:last-child { min-width: 0; }
.client-card-fact small { display: block; margin-bottom: 3px; color: var(--omega-muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.client-card-fact strong { display: block; overflow: hidden; color: var(--omega-navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.client-card-orders .trade-clients-heading { margin-bottom: 8px; }
.client-card-orders .service-orders-table table { min-width: 1180px; }
.client-edit-modal { position:fixed; z-index:900; inset:0; display:grid; place-items:center; padding:20px; background:rgba(15,23,42,.52); }
.client-edit-modal[hidden] { display:none; }
.client-edit-modal-panel { width:min(940px,100%); max-height:calc(100vh - 40px); overflow:auto; border-radius:14px; background:#fff; box-shadow:0 24px 70px rgba(15,23,42,.28); }
.client-edit-modal-panel > header { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--omega-border); }
.client-edit-modal-panel h2 { margin:2px 0 0; color:var(--omega-navy); font-size:20px; }.client-edit-modal-panel > header button { width:34px;height:34px;border:0;border-radius:8px;background:#f1f5f9;font-size:23px;cursor:pointer; }
.client-edit-modal form { display:grid; gap:10px; padding:14px 16px 16px; }.client-edit-modal fieldset { margin:0;padding:10px;border:1px solid var(--omega-border);border-radius:10px;background:#fbfcfe; }.client-edit-modal legend { padding:0 6px;color:var(--omega-navy);font-size:12px;font-weight:850; }
.client-edit-grid { display:grid;gap:8px; }.client-edit-grid.is-two{grid-template-columns:2fr 1fr}.client-edit-grid.is-address{grid-template-columns:2fr .8fr 1.2fr .55fr}.client-edit-grid.is-contact{grid-template-columns:.8fr 1.2fr 1fr}.client-edit-modal label{display:grid;gap:5px;color:#344054;font-size:10px;font-weight:750}.client-edit-modal input,.client-edit-modal textarea{width:100%;box-sizing:border-box}.client-edit-modal textarea{resize:vertical}.client-edit-modal footer{display:flex;justify-content:flex-end;gap:8px}.client-edit-error{padding:9px 10px;border:1px solid #efb4b4;border-radius:8px;background:#fff1f1;color:#8b1e1e;font-size:12px}body.client-edit-open{overflow:hidden}
.client-edit-modal .client-attention-check,.trade-client-form .client-attention-check{display:flex;align-items:center;gap:8px;margin-top:9px;cursor:pointer;font-size:12px;font-weight:750}.client-edit-modal .client-attention-check input,.trade-client-form .client-attention-check input{width:16px;height:16px;margin:0;accent-color:var(--omega-red)}
.service-client-card-link{display:inline-flex;align-items:baseline;color:#26354a;font-weight:600;text-decoration:none;border-radius:3px;outline-offset:3px}.service-client-card-link:hover{text-decoration:underline;color:var(--omega-red);cursor:pointer}.service-client-card-link:focus-visible{outline:2px solid var(--omega-red)}.service-client-attention{margin-left:3px;color:#c52a2a;font-size:15px;font-weight:900;line-height:1}

@media (max-width: 760px) {
    .trade-clients-card,
    .trade-client-form-card,
    .trade-client-hero,
    .trade-client-details,
    .trade-client-orders { padding: 10px; }
    .trade-clients-heading { align-items: stretch; flex-direction: column; }
    .trade-clients-heading > .btn,
    .trade-clients-heading > .trade-client-actions,
    .trade-clients-heading > .trade-client-actions .btn { width: 100%; }
    .trade-clients-filter,
    .trade-client-form,
    .trade-client-form-grid,
    .trade-client-form-grid-address,
    .trade-client-form-grid-contact { grid-template-columns: 1fr; }
    .trade-client-form-section { padding: 9px; }
    .trade-clients-filter .btn,
    .trade-client-form .btn,
    .trade-client-actions .btn { min-height: 42px; }
    .trade-client-form .actions { grid-column: auto; flex-direction: column; }
    .trade-clients-table table,
    .trade-client-orders-table table { min-width: 0; }
    .trade-clients-table tr,
    .trade-client-orders-table tr { padding: 8px; }
    .trade-clients-table td,
    .trade-client-orders-table td { grid-template-columns: minmax(100px, 38%) minmax(0, 1fr); gap: 8px; padding: 5px 0; }
    .trade-client-devices { max-width: none; }
    .client-card-facts-primary,.client-card-facts-shipping,.client-edit-grid.is-two,.client-edit-grid.is-address,.client-edit-grid.is-contact { grid-template-columns: 1fr; }
    .client-edit-modal { padding:8px; }.client-edit-modal-panel{max-height:calc(100vh - 16px)}.client-edit-modal footer{flex-direction:column}.client-edit-modal footer .btn{width:100%}
}

/* TASK-003B — finalne zagęszczenie formularza i listy Serwisu. */
body.page-order-create .service-intake-head { padding: 9px 12px 7px; }
body.page-order-create .service-intake-head h2 { margin: 2px 0 0; font-size: 20px; }
body.page-order-create .service-intake-meta {
    gap: 6px;
    padding: 7px 12px 6px;
}
body.page-order-create .service-intake-meta .field label,
body.page-order-create .service-intake-device-fields .field label { margin-bottom: 2px; }
body.page-order-create .service-client-selection[hidden] { display: none !important; }
body.page-order-create .service-client-selection { min-height: 0; margin-top: 2px; }
body.page-order-create .service-intake-devices { gap: 6px; padding: 7px 12px 5px; }
body.page-order-create .service-intake-device { padding: 7px; }
body.page-order-create .service-intake-device-head { margin-bottom: 5px; }
body.page-order-create .service-intake-device-fields { gap: 7px; }
body.page-order-create .service-intake-device-fields input,
body.page-order-create .service-intake-device-fields textarea {
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
}
body.page-order-create .service-intake-device-fields textarea {
    overflow-y: hidden;
    padding-top: 8px;
    padding-bottom: 8px;
    resize: vertical;
}
body.page-order-create .service-intake-add {
    width: calc(100% - 24px);
    min-height: 38px;
    margin: 0 12px 6px;
}
body.page-order-create .service-intake-actions { gap: 7px; padding: 7px 12px; }
body.page-order-create .service-intake-actions .btn { min-height: 38px; }

body.page-orders .service-orders-table table {
    width: 100%;
    min-width: 1000px;
    table-layout: fixed;
}
body.page-orders .service-orders-table th,
body.page-orders .service-orders-table td { padding: 3px 6px; }
body.page-orders .service-orders-table tbody > tr { height: 46px; }
body.page-orders .service-orders-table th:first-child { width: 128px; }
body.page-orders .service-orders-table th:nth-child(2) { width: 155px; }
body.page-orders .service-orders-table .service-col-complaint { width: 36px; text-align: center; }
body.page-orders .service-orders-table .service-col-status { width: 180px; }
body.page-orders .service-orders-table .service-col-technician { width: 165px; }
body.page-orders .service-orders-table .service-col-edit { width: 62px; text-align: center; }
body.page-orders .service-device-row-main,
body.page-orders .service-device-main-row { min-width: 0; }
body.page-orders .service-device-row-main .table-main {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.page-orders .service-device-row .service-inline-control,
body.page-orders .service-device-row .service-inline-assignment {
    height: auto;
    min-height: 0;
    padding: 0;
}
body.page-orders .service-device-row .service-inline-control select,
body.page-orders .service-device-row .service-inline-assignment select {
    height: 35px;
    min-height: 35px;
}
body.page-orders .service-device-row .service-device-warranty-indicator {
    width: 24px;
    height: 24px;
    min-height: 24px;
    flex-basis: 24px;
    margin: 0 auto;
}
body.page-orders .service-device-row .row-actions { justify-content: center; }
body.page-orders .service-device-row .row-actions .btn { min-width: 0; padding-right: 7px; padding-left: 7px; }

@media (max-width: 980px) {
    body.page-order-create .service-intake-meta,
    body.page-order-create .service-intake-device-fields { gap: 6px; }
    body.page-order-create .service-intake-head { padding: 8px 10px 6px; }
    body.page-order-create .service-intake-meta { padding: 6px 10px 5px; }
    body.page-order-create .service-intake-devices { padding: 6px 10px 4px; }
    body.page-order-create .service-intake-device { padding: 6px; }
    body.page-order-create .service-intake-device-fields textarea { height: 40px; min-height: 40px; }
    body.page-order-create .service-intake-add { width: calc(100% - 20px); margin: 0 10px 6px; }
    body.page-order-create .service-intake-actions {
        flex-direction: row;
        padding: 7px 10px 9px;
    }
    body.page-order-create .service-intake-actions .btn { flex: 1; min-height: 44px; }

    body.page-orders .service-orders-table table { min-width: 0; table-layout: auto; }
    body.page-orders .service-orders-table tbody { gap: 6px; }
    body.page-orders .service-orders-table tbody > tr {
        display: grid;
        height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px 7px;
        padding: 7px;
        border-radius: 10px;
    }
    body.page-orders .service-orders-table tr.is-order-continuation::before {
        content: attr(data-order-number);
        grid-column: 1 / -1;
        color: var(--omega-muted);
        font-size: 9px;
        font-weight: 800;
    }
    body.page-orders .service-orders-table td,
    body.page-orders .service-orders-table td[rowspan] {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 0;
        border: 0;
        background: transparent !important;
    }
    body.page-orders .service-orders-table td::before {
        font-size: 8.5px;
        line-height: 1.1;
    }
    body.page-orders .service-orders-table .service-device-cell,
    body.page-orders .service-orders-table .service-col-technician { grid-column: 1 / -1; }
    body.page-orders .service-orders-table .service-col-complaint,
    body.page-orders .service-orders-table .service-col-status,
    body.page-orders .service-orders-table .service-col-technician,
    body.page-orders .service-orders-table .service-col-edit {
        width: auto;
        text-align: left;
    }
    body.page-orders .service-orders-table .service-col-complaint .service-device-warranty-indicator { margin: 0; }
    body.page-orders .service-device-row .service-inline-control select,
    body.page-orders .service-device-row .service-inline-assignment select { height: 40px; min-height: 40px; }
    body.page-orders .service-device-row .row-actions { justify-content: flex-start; }
    body.page-orders .service-device-row .row-actions .btn { min-height: 40px; }

    body.page-orders .service-device-row.is-order-first > [data-label="Zlecenie"] { grid-column: 1; grid-row: 1; }
    body.page-orders .service-device-row.is-order-first > [data-label="Klient"] { grid-column: 2; grid-row: 1; }
    body.page-orders .service-device-row.is-order-first > .service-device-cell { grid-column: 1; grid-row: 2; }
    body.page-orders .service-device-row.is-order-first > .service-col-edit { grid-column: 2; grid-row: 2; }
    body.page-orders .service-device-row.is-order-first > .service-col-complaint { grid-column: 1; grid-row: 3; }
    body.page-orders .service-device-row.is-order-first > [data-label="Priorytet"] { grid-column: 2; grid-row: 3; }
    body.page-orders .service-device-row.is-order-first > .service-col-status { grid-column: 1; grid-row: 4; }
    body.page-orders .service-device-row.is-order-first > .service-col-technician { grid-column: 2; grid-row: 4; }

    body.page-orders .service-device-row.is-order-continuation::before { grid-row: 1; }
    body.page-orders .service-device-row.is-order-continuation > .service-device-cell { grid-column: 1; grid-row: 2; }
    body.page-orders .service-device-row.is-order-continuation > .service-col-complaint { grid-column: 2; grid-row: 2; }
    body.page-orders .service-device-row.is-order-continuation > [data-label="Priorytet"] { grid-column: 1; grid-row: 3; }
    body.page-orders .service-device-row.is-order-continuation > .service-col-status { grid-column: 2; grid-row: 3; }
    body.page-orders .service-device-row.is-order-continuation > .service-col-technician { grid-column: 1 / -1; grid-row: 4; }
}

@media (max-width: 620px) {
    body.page-orders .service-filter-toggle,
    body.page-orders .service-create-order-button { min-height: 44px; }
}

/* TASK-003C/003D — stabilne proporcje i równe kontrolki desktopowej listy Serwisu. */
@media (min-width: 981px) {
    body.page-orders .service-orders-table {
        --service-control-column-width: clamp(150px, 10.5vw, 180px);
    }

    body.page-orders .service-orders-table .service-width-order { width: 125px; }
    body.page-orders .service-orders-table .service-width-client { width: 39%; }
    body.page-orders .service-orders-table .service-width-device { width: 61%; }
    body.page-orders .service-orders-table .service-width-complaint { width: 36px; }
    body.page-orders .service-orders-table .service-width-priority,
    body.page-orders .service-orders-table .service-width-status,
    body.page-orders .service-orders-table .service-width-technician {
        width: var(--service-control-column-width);
    }
    body.page-orders .service-orders-table .service-width-edit { width: 60px; }

    body.page-orders .service-orders-table th:first-child,
    body.page-orders .service-orders-table th:nth-child(2),
    body.page-orders .service-orders-table .service-col-complaint,
    body.page-orders .service-orders-table .service-col-status,
    body.page-orders .service-orders-table .service-col-technician,
    body.page-orders .service-orders-table .service-col-edit { width: auto; }

    body.page-orders .service-orders-table .service-col-control {
        padding: 3px;
    }

    body.page-orders .service-orders-table td[data-label="Klient"] .table-main,
    body.page-orders .service-orders-table .service-device-row-main .table-main {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.page-orders .service-device-row .service-inline-control select,
    body.page-orders .service-device-row .service-inline-assignment select {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 35px;
        min-height: 35px;
        max-height: 35px;
        padding: 6px 30px 6px 9px;
        border-radius: 9px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
@media (max-width: 560px) {
    .stats-grid { grid-template-columns: 1fr; }
    .content { padding: 16px; }
    .tabs { overflow-x: auto; }
    .user-box { width: 100%; flex-wrap: wrap; }
}

/* Omega Panel 2.6 — sekcje menu i moduł SEO/NAP */
.side-nav-section {
    margin: 18px 8px 6px;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.38);
}
.side-nav-section:first-of-type { margin-top: 14px; }
.side-nav a.is-disabled:hover { background: transparent; color: rgba(255,255,255,.78); }
.panel-grid-2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 18px; align-items: start; }
.panel-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kpi-card { background:#fff; border:1px solid var(--omega-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.kpi-label { color: var(--omega-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.kpi-value { margin-top: 6px; font-size: 28px; font-weight: 900; letter-spacing: -.03em; }
.copy-box { display: grid; gap: 10px; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.copy-value { min-height: 42px; display:flex; align-items:center; padding: 10px 12px; border:1px solid var(--omega-border); border-radius: 10px; background:#fbfcfd; font-size: 14px; white-space: pre-wrap; }
.copy-value.copy-textarea { min-height: 120px; align-items:flex-start; line-height:1.5; }
.muted { color: var(--omega-muted); }
.small { font-size: 12px; }
.nap-status { display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:6px 10px; font-size:11px; font-weight:900; white-space:nowrap; background:#eef2f7; color:#344054; }
.nap-status--todo { background:#e9f2ff; color:#175cd3; }
.nap-status--add { background:#fff7ed; color:#9a3412; }
.nap-status--done { background:#dcfce7; color:#166534; }
.nap-status--waiting { background:#fef3c7; color:#92400e; }
.nap-status--accepted { background:#d1fae5; color:#065f46; }
.nap-status--rejected { background:#fee2e2; color:#991b1b; }
.nap-status--paid { background:#efe4ff; color:#6d28d9; }
.nap-status--trash { background:#e5e7eb; color:#374151; }
.quality-pill { display:inline-flex; align-items:center; justify-content:center; min-width: 28px; border-radius:999px; padding:5px 9px; font-size:11px; font-weight:900; background:#eef2f7; color:#344054; }
.quality-pill--A { background:#dcfce7; color:#166534; }
.quality-pill--B { background:#e9f2ff; color:#175cd3; }
.quality-pill--C { background:#fee2e2; color:#991b1b; }
.quality-pill--P { background:#efe4ff; color:#6d28d9; }
.inline-form { display:inline; }
.nap-table table { min-width: 1180px; }
@media (max-width: 1100px) {
    .panel-grid-2, .panel-grid-3 { grid-template-columns: 1fr; }
}


/* Omega Panel 2.7 — moduł SEO / Lista stron */
.seo-sites-table table { min-width: 1320px; }
.seo-site-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.seo-site-description { line-height:1.5; max-width: 520px; white-space: pre-wrap; }
.seo-sites-table textarea { min-height: 92px; }
.seo-sites-table .actions { gap: 8px; }

/* Omega Panel 3.0 — oferty handlowe */
.offer-status-draft { background:#e5e7eb; color:#374151; }
.offer-status-sent { background:#e9f2ff; color:#175cd3; }
.offer-status-accepted { background:#dcfce7; color:#166534; }
.offer-status-rejected { background:#fee2e2; color:#991b1b; }
.offer-status-expired { background:#fef3c7; color:#92400e; }
.offer-section-title { margin-top: 22px; }
.offer-items-grid { display: grid; gap: 14px; }
.offer-item-row {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 90px 90px 140px;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--omega-border);
    border-radius: 14px;
    background: #fbfcfd;
}
.offer-item-row .form-row-full { grid-column: 1 / -1; }

.offer-item-row.is-hidden { display: none; }
.offer-add-row { margin-top: 12px; }
.offer-add-row .btn { border-style: dashed; }

.offer-terms-grid { margin-top: 20px; }
.offer-terms-grid textarea { min-height: 92px; }
@media (max-width: 900px) {
    .offer-item-row { grid-template-columns: 1fr; }
}


/* Omega Panel 3.1 — oferty: usuwanie i zamykanie dodatkowych pozycji */
.btn-danger {
    background: #991b1b;
    color: #fff;
}
.btn-danger:hover { background: #7f1d1d; }
.offer-table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.offer-item-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 2px;
}
.offer-item-row-header strong {
    font-size: 13px;
    color: var(--omega-navy);
}
.offer-item-row-header .btn {
    padding: 7px 10px;
}

/* Omega Panel 4.0 — layout PRO dashboard */
:root {
    --omega-red: #b60000;
    --omega-red-dark: #8f0000;
    --omega-navy: #071426;
    --omega-navy-2: #0b1d34;
    --omega-bg: #f5f7fb;
    --omega-border: #e4eaf1;
    --omega-text: #0f172a;
    --omega-muted: #667085;
    --omega-card: #ffffff;
    --shadow: 0 16px 42px rgba(15, 23, 42, .08);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, .06);
    --radius: 18px;
}
body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: var(--omega-bg);
}
.sidebar {
    width: 300px;
    background: radial-gradient(circle at top left, #102f57 0, #071426 44%, #050b16 100%);
    padding: 24px 20px;
}
.main-area { margin-left: 300px; width: calc(100% - 300px); }
.brand-box-logo {
    display: flex;
    align-items: center;
    padding: 0 0 24px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    min-height: 72px;
}
.panel-logo {
    display: block;
    width: 210px;
    max-width: 100%;
    height: auto;
}
.panel-logo-fallback {
    color: #fff;
    line-height: 1;
    letter-spacing: .04em;
}
.panel-logo-fallback strong { display: block; font-size: 25px; }
.panel-logo-fallback span { display: block; font-size: 13px; margin-top: 5px; color: rgba(255,255,255,.75); }
.side-nav { gap: 7px; margin-top: 18px; }
.side-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 13px;
    color: rgba(255,255,255,.86);
    font-weight: 750;
    font-size: 15px;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.side-nav .nav-link:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}
.side-nav .nav-link.is-active {
    background: linear-gradient(135deg, #ed0000, var(--omega-red));
    color: #fff;
    box-shadow: 0 10px 28px rgba(182,0,0,.28);
}
.side-nav .nav-link.is-disabled { opacity: .44; }
.side-nav .nav-link.is-disabled:hover { background: transparent; }
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    font-size: 17px;
    line-height: 1;
}
.side-nav-section {
    margin: 22px 8px 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .095em;
    color: rgba(255,255,255,.48);
}
.sidebar-help {
    margin-top: 28px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 13px 14px;
    color: rgba(255,255,255,.78);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
}
.sidebar-help strong { margin-left: auto; font-size: 20px; }
.topbar {
    min-height: 104px;
    height: auto;
    padding: 24px 32px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--omega-border);
    backdrop-filter: blur(10px);
    gap: 22px;
}
.topbar-heading { min-width: 220px; }
.topbar-title {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.035em;
}
.topbar-subtitle { margin-top: 8px; font-size: 14px; color: #667085; }
.topbar-search {
    width: min(430px, 34vw);
    margin-left: auto;
    position: relative;
}
.topbar-search input {
    height: 48px;
    border-radius: 14px;
    padding: 0 48px 0 18px;
    background: #fff;
    border: 1px solid var(--omega-border);
    box-shadow: 0 1px 0 rgba(15,23,42,.03);
}
.topbar-search button {
    position: absolute;
    right: 8px;
    top: 7px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #475467;
    font-size: 22px;
    cursor: pointer;
}
.user-box { gap: 12px; }
.notify-bell {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--omega-border);
    font-weight: 900;
}
.notify-bell span {
    position: absolute;
    right: -4px;
    top: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--omega-red);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}
.user-avatar {
    background: #071426;
    width: 42px;
    height: 42px;
}
.content { padding: 28px 32px; }
.stats-grid-pro {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}
.stat-card-pro {
    background: #fff;
    color: var(--omega-text);
    min-height: 168px;
    border: 1px solid rgba(228,234,241,.92);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 24px;
}
.stat-card-pro:after { display: none; }
.stat-card-pro .stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 12px;
}
.stat-card-pro .stat-value {
    position: absolute;
    top: 26px;
    left: 100px;
    font-size: 38px;
    line-height: 1;
    font-weight: 900;
}
.stat-card-pro .stat-title {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    font-size: 14px;
    color: #101828;
}
.stat-card-pro .stat-sub {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    font-size: 13px;
    color: #667085;
}
.stat-card-pro .stat-trend {
    position: absolute;
    right: 22px;
    bottom: 20px;
    font-size: 24px;
    font-weight: 900;
}
.stat-tone-red .stat-icon { background: #ffe8e8; color: var(--omega-red); }
.stat-tone-red .stat-value, .stat-tone-red .stat-trend { color: var(--omega-red); }
.stat-tone-orange .stat-icon { background: #fff0e6; color: #f05a00; }
.stat-tone-orange .stat-value, .stat-tone-orange .stat-trend { color: #f05a00; }
.stat-tone-yellow .stat-icon { background: #fff7df; color: #e0a100; }
.stat-tone-yellow .stat-value, .stat-tone-yellow .stat-trend { color: #e0a100; }
.stat-tone-green .stat-icon { background: #e8f8ee; color: #0f9f4f; }
.stat-tone-green .stat-value, .stat-tone-green .stat-trend { color: #0f9f4f; }
.stat-tone-purple .stat-icon { background: #f0e9ff; color: #6a35c8; }
.stat-tone-purple .stat-value, .stat-tone-purple .stat-trend { color: #6a35c8; }
.stat-tone-blue .stat-icon { background: #eaf2ff; color: #1463d9; }
.stat-tone-blue .stat-value, .stat-tone-blue .stat-trend { color: #1463d9; }
.stat-tone-gray .stat-icon { background: #eef2f7; color: #475467; }
.stat-tone-gray .stat-value, .stat-tone-gray .stat-trend { color: #475467; }
.panel-card {
    border-radius: 20px;
    border: 1px solid rgba(228,234,241,.95);
    box-shadow: var(--shadow-soft);
    padding: 20px;
}
.panel-toolbar-pro {
    justify-content: space-between;
    align-items: center;
}
.card-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.card-title-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f3f6fa;
    color: #0f172a;
    font-weight: 900;
}
.table-wrap-pro {
    border-radius: 15px;
    border: 1px solid #e6ebf2;
}
th {
    background: #fff;
    color: #344054;
    border-bottom: 1px solid #e6ebf2;
    font-size: 12px;
    padding: 15px 14px;
}
td {
    padding: 17px 14px;
    font-size: 14px;
}
.table-main { font-weight: 750; color: #101828; }
.table-sub { margin-top: 4px; font-size: 12px; color: #667085; }
.row-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.btn {
    border-radius: 12px;
    font-weight: 850;
}
.btn-primary { background: linear-gradient(135deg, #ed0000, var(--omega-red)); }
.btn-primary:hover { background: var(--omega-red-dark); }
.btn-icon-only { width: 38px; padding-left: 0; padding-right: 0; }
.center-actions { display: flex; justify-content: center; padding-top: 16px; }
.quick-access-card { margin-top: 20px; }
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.quick-card {
    display: grid;
    grid-template-columns: 68px 1fr;
    grid-template-areas: "icon title" "icon text" "icon link";
    gap: 5px 18px;
    min-height: 140px;
    padding: 22px;
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15,23,42,.04);
}
.quick-icon {
    grid-area: icon;
    width: 68px;
    height: 68px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
}
.quick-card strong { grid-area: title; font-size: 16px; color: #101828; align-self: end; }
.quick-card em { grid-area: text; font-style: normal; font-size: 13px; color: #667085; line-height: 1.45; }
.quick-card b { grid-area: link; font-size: 13px; align-self: end; }
.quick-red .quick-icon { background: #ffe8e8; color: var(--omega-red); }
.quick-red b { color: var(--omega-red); }
.quick-blue .quick-icon { background: #eaf2ff; color: #1463d9; }
.quick-blue b { color: #1463d9; }
.quick-green .quick-icon { background: #e8f8ee; color: #0f9f4f; }
.quick-green b { color: #0f9f4f; }
.quick-purple .quick-icon { background: #f0e9ff; color: #6a35c8; }
.quick-purple b { color: #6a35c8; }
.tabs-pro { margin-bottom: 20px; }
@media (max-width: 1350px) {
    .stats-grid-pro { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .sidebar { position: static; width: 100%; }
    .main-area { margin-left: 0; width: 100%; }
    .panel-logo { width: 190px; }
    .topbar { flex-direction: column; align-items: stretch; padding: 20px; }
    .topbar-search { width: 100%; margin-left: 0; }
    .stats-grid-pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .content { padding: 18px; }
    .stats-grid-pro, .quick-grid { grid-template-columns: 1fr; }
    .stat-card-pro .stat-value { left: 96px; }
    .user-box { width: 100%; }
}

/* Omega Panel 4.1 — lżejszy wygląd + klikalne KPI */
:root {
    --omega-red: #b60000;
    --omega-red-dark: #8f0000;
    --omega-navy: #091526;
    --omega-navy-2: #0d1b2f;
    --omega-bg: #f7f9fc;
    --omega-border: #e7edf4;
    --omega-text: #101828;
    --omega-muted: #667085;
    --shadow: 0 8px 22px rgba(15, 23, 42, .055);
    --shadow-soft: 0 6px 18px rgba(15, 23, 42, .045);
    --radius: 16px;
}

.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #0b1b31 0%, #07111f 100%);
    padding: 20px 16px;
}
.main-area {
    margin-left: 270px;
    width: calc(100% - 270px);
}
.brand-box-logo {
    min-height: 64px;
    padding: 0 0 18px;
}
.panel-logo {
    width: 195px;
}
.side-nav {
    gap: 4px;
    margin-top: 14px;
}
.side-nav .nav-link {
    padding: 11px 12px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 760;
}
.side-nav .nav-link.is-active {
    background: var(--omega-red);
    box-shadow: 0 8px 20px rgba(182,0,0,.20);
}
.side-nav-section {
    margin: 18px 8px 7px;
    color: rgba(255,255,255,.50);
}
.sidebar-help {
    margin-top: 22px;
    padding: 11px 12px;
    border-radius: 12px;
}

.topbar {
    min-height: 88px;
    padding: 20px 28px;
    gap: 18px;
    box-shadow: none;
}
.topbar-title {
    font-size: 25px;
    letter-spacing: -.03em;
}
.topbar-subtitle {
    margin-top: 6px;
    font-size: 13px;
}
.topbar-search input {
    height: 44px;
    border-radius: 13px;
}
.notify-bell {
    color: var(--omega-text);
    text-decoration: none;
}
.content {
    padding: 24px 28px;
}

.stats-grid-pro {
    gap: 14px;
    margin-bottom: 18px;
}
.stat-card-pro {
    display: block;
    position: relative;
    text-decoration: none;
    min-height: 140px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.stat-card-pro:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15,23,42,.07);
    border-color: #d9e2ec;
}
.stat-card-pro .stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 21px;
    margin-bottom: 10px;
}
.stat-card-pro .stat-value {
    top: 23px;
    left: 84px;
    font-size: 34px;
}
.stat-card-pro .stat-title {
    margin-top: 14px;
    font-size: 13px;
    letter-spacing: -.01em;
}
.stat-card-pro .stat-sub {
    margin-top: 6px;
    font-size: 12.5px;
}
.stat-card-pro .stat-trend {
    right: 20px;
    bottom: 17px;
    font-size: 20px;
}

.panel-card {
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
}
.dashboard-card {
    margin-bottom: 18px;
}
.card-title {
    font-size: 17px;
}
.card-title-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
}
.table-wrap-pro {
    border-radius: 13px;
}
th {
    padding: 13px 13px;
    font-size: 11.5px;
}
td {
    padding: 14px 13px;
    font-size: 13.5px;
}
.btn {
    border-radius: 10px;
    padding: 10px 14px;
}
.btn-primary {
    background: var(--omega-red);
}
.btn-primary:hover {
    background: var(--omega-red-dark);
}
.quick-access-card {
    margin-top: 18px;
}
.quick-grid {
    gap: 14px;
}
.quick-card {
    min-height: 126px;
    grid-template-columns: 58px 1fr;
    gap: 4px 16px;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15,23,42,.035);
}
.quick-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    font-size: 25px;
}
.quick-card strong {
    font-size: 15px;
}
.quick-card em,
.quick-card b {
    font-size: 12.5px;
}

@media (max-width: 980px) {
    .sidebar {
        position: static;
        width: 100%;
    }
    .main-area {
        margin-left: 0;
        width: 100%;
    }
}

/* Omega Panel 4.2 — lżejsza wersja: typografia + ikony SVG */
:root {
    --omega-red: #b60000;
    --omega-red-dark: #8f0000;
    --omega-navy: #071426;
    --omega-bg: #f7f9fc;
    --omega-border: #e8edf4;
    --omega-text: #111827;
    --omega-muted: #667085;
    --shadow: 0 5px 16px rgba(15, 23, 42, .045);
    --shadow-soft: 0 4px 12px rgba(15, 23, 42, .035);
}

body {
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 500;
    background: var(--omega-bg);
}

.omega-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #071a30 0%, #07111f 100%);
    padding: 18px 14px;
}
.main-area {
    margin-left: 260px;
    width: calc(100% - 260px);
}
.brand-box-logo {
    min-height: 58px;
    padding: 0 0 18px;
    margin-bottom: 10px;
}
.panel-logo {
    width: 185px;
    max-height: 56px;
    object-fit: contain;
}
.side-nav {
    gap: 3px;
    margin-top: 12px;
}
.side-nav-section {
    margin: 17px 10px 7px;
    font-size: 10.5px;
    letter-spacing: .08em;
    font-weight: 800;
    color: rgba(255,255,255,.42);
}
.side-nav .nav-link {
    min-height: 41px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
    color: rgba(255,255,255,.84);
}
.side-nav .nav-link .nav-icon {
    color: rgba(255,255,255,.82);
}
.side-nav .nav-link.is-active {
    background: var(--omega-red);
    box-shadow: 0 8px 20px rgba(182,0,0,.18);
    font-weight: 750;
}
.side-nav .nav-link.is-disabled {
    opacity: .55;
}
.nav-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    font-size: 0;
}
.sidebar-help {
    margin-top: 20px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
}

.topbar {
    min-height: 82px;
    padding: 18px 26px;
    background: rgba(255,255,255,.97);
}
.topbar-title {
    font-size: 24px;
    line-height: 1.05;
    font-weight: 750;
    letter-spacing: -.035em;
}
.topbar-subtitle {
    font-size: 12.5px;
    margin-top: 6px;
    color: #667085;
}
.topbar-search {
    width: min(420px, 33vw);
}
.topbar-search input {
    height: 42px;
    border-radius: 12px;
    font-size: 13.5px;
    box-shadow: none;
}
.topbar-search button {
    width: 32px;
    height: 32px;
    top: 5px;
    right: 7px;
    color: #475467;
}
.topbar-search button .omega-icon {
    width: 17px;
    height: 17px;
}
.notify-bell {
    width: 36px;
    height: 36px;
    color: #0f172a;
    text-decoration: none;
}
.notify-bell .omega-icon {
    width: 18px;
    height: 18px;
}
.user-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
    font-weight: 750;
}
.user-meta strong {
    font-size: 12.5px;
    font-weight: 750;
}
.user-meta span {
    font-size: 11.5px;
}
.content {
    padding: 22px 26px;
}

.stats-grid-pro {
    gap: 14px;
    margin-bottom: 18px;
}
.stat-card-pro {
    min-height: 132px;
    padding: 18px 18px 16px;
    border-radius: 15px;
    border: 1px solid var(--omega-border);
    box-shadow: var(--shadow-soft);
}
.stat-card-pro .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 0;
    margin-bottom: 10px;
}
.stat-card-pro .stat-icon .omega-icon {
    width: 20px;
    height: 20px;
}
.stat-card-pro .stat-value {
    top: 21px;
    left: 78px;
    font-size: 32px;
    font-weight: 760;
    letter-spacing: -.035em;
}
.stat-card-pro .stat-title {
    margin-top: 13px;
    font-size: 12.5px;
    font-weight: 750;
    letter-spacing: -.005em;
}
.stat-card-pro .stat-sub {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
}
.stat-card-pro .stat-trend {
    right: 18px;
    bottom: 15px;
    font-size: 18px;
    font-weight: 750;
}

.panel-card {
    border-radius: 17px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--omega-border);
}
.card-title {
    font-size: 16.5px;
    font-weight: 750;
    letter-spacing: -.01em;
}
.card-title-icon {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    color: #0f172a;
}
.card-title-icon .omega-icon {
    width: 17px;
    height: 17px;
}
.btn {
    font-weight: 750;
    border-radius: 10px;
    padding: 9px 13px;
    box-shadow: none;
}
.btn-primary {
    background: var(--omega-red);
}
.btn-primary:hover {
    background: var(--omega-red-dark);
}
.btn-icon-only .omega-icon {
    width: 16px;
    height: 16px;
}
.table-wrap-pro {
    border-radius: 13px;
}
th {
    background: #fff;
    color: #344054;
    padding: 12px 13px;
    font-size: 11px;
    font-weight: 750;
    border-bottom: 1px solid var(--omega-border);
}
td {
    padding: 13px 13px;
    font-size: 13px;
    font-weight: 500;
}
.table-main,
td strong {
    font-weight: 650;
}
.table-sub {
    font-size: 11.5px;
}
.badge {
    font-size: 10.5px;
    font-weight: 750;
    padding: 5px 9px;
}
.quick-access-card {
    margin-top: 16px;
}
.quick-grid {
    gap: 14px;
}
.quick-card {
    min-height: 116px;
    grid-template-columns: 54px 1fr;
    gap: 3px 14px;
    padding: 16px;
    border-radius: 15px;
    box-shadow: 0 3px 12px rgba(15,23,42,.03);
}
.quick-icon {
    width: 54px;
    height: 54px;
    border-radius: 13px;
    font-size: 0;
}
.quick-icon .omega-icon {
    width: 23px;
    height: 23px;
}
.quick-card strong {
    font-size: 14.5px;
    font-weight: 750;
}
.quick-card em,
.quick-card b {
    font-size: 12px;
}

@media (max-width: 980px) {
    .sidebar {
        position: static;
        width: 100%;
    }
    .main-area {
        margin-left: 0;
        width: 100%;
    }
    .topbar-search {
        width: 100%;
    }
}


/* Omega Panel 4.3 — dopieszczenie tabeli dashboardu */
.dashboard-card {
    padding: 16px;
}
.dashboard-card .panel-toolbar-pro {
    margin-bottom: 14px;
}
.dashboard-card .card-title-row {
    gap: 10px;
}
.dashboard-card .card-title {
    font-size: 16px;
    font-weight: 720;
    letter-spacing: -.015em;
}
.dashboard-card .card-title-icon {
    width: 28px;
    height: 28px;
    color: #0f172a;
    background: #f4f7fb;
}
.dashboard-card .btn-primary {
    background: #b60000;
    border: 1px solid #b60000;
    box-shadow: 0 8px 18px rgba(182,0,0,.12);
}
.table-wrap-pro {
    border: 1px solid #e7edf4;
    background: #fff;
    overflow-x: auto;
}
.table-wrap-pro table {
    min-width: 1080px;
    border-collapse: separate;
    border-spacing: 0;
}
.table-wrap-pro th {
    background: #fbfcfe;
    color: #475467;
    font-size: 10.5px;
    font-weight: 720;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: 11px 14px;
    border-bottom: 1px solid #e7edf4;
}
.table-wrap-pro td {
    padding: 12px 14px;
    border-top: 0;
    border-bottom: 1px solid #eef2f6;
    font-size: 12.8px;
    color: #172033;
    vertical-align: middle;
}
.table-wrap-pro tbody tr:last-child td {
    border-bottom: 0;
}
.table-wrap-pro tbody tr:hover td {
    background: #fbfdff;
}
.table-main {
    display: block;
    font-size: 12.8px;
    line-height: 1.25;
    font-weight: 650;
    color: #111827;
}
.table-sub {
    display: block;
    margin-top: 3px;
    font-size: 11.3px;
    line-height: 1.2;
    color: #667085;
    font-weight: 500;
}
.table-muted {
    color: #98a2b3;
    font-weight: 600;
}
.table-cell-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.table-cell-compact {
    gap: 8px;
}
.table-mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #53657d;
}
.table-mini-icon .omega-icon {
    width: 15px;
    height: 15px;
    stroke-width: 1.9;
}
.row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.btn-open {
    height: 34px;
    padding: 0 12px;
    gap: 7px;
    border-color: #e2e8f0;
    color: #111827;
    background: #fff;
}
.btn-open .omega-icon {
    width: 14px;
    height: 14px;
    color: #475467;
}
.btn-icon-only {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 9px;
}
.btn-icon-only .omega-icon {
    width: 15px;
    height: 15px;
    stroke-width: 2;
}
.badge {
    padding: 4px 8px;
    font-size: 10.2px;
    font-weight: 750;
}
.center-actions {
    padding-top: 14px;
}
.center-actions .btn-light {
    height: 36px;
    padding: 0 17px;
    border-color: #e2e8f0;
    font-size: 12.6px;
    font-weight: 700;
}

/* Omega Panel 4.4 — Handel / Oferty: czystsza lista + bez pustego pola przed statusem */
.offers-card {
    padding: 18px;
}
.offers-toolbar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.offers-toolbar-head .card-title {
    margin: 0;
}
.offers-filter {
    display: flex;
    align-items: end;
    gap: 10px;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid #e7edf4;
    border-radius: 14px;
    background: #fbfcfe;
}
.offers-filter-label {
    flex: 0 0 auto;
    align-self: center;
    font-size: 12px;
    font-weight: 750;
    color: #475467;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.offers-filter select {
    width: 290px;
    max-width: 100%;
    height: 40px;
    border-radius: 11px;
    background: #fff;
}
.offers-filter .btn {
    height: 40px;
    padding-top: 0;
    padding-bottom: 0;
}
.offers-table table {
    min-width: 1060px;
}
.offers-table th:first-child,
.offers-table td:first-child {
    padding-left: 16px;
}
.offers-table th:last-child,
.offers-table td:last-child {
    padding-right: 16px;
}
.offers-table .row-actions {
    justify-content: flex-start;
}
.offers-table .btn-danger.btn-icon-only {
    background: #9f1b1b;
    border: 1px solid #9f1b1b;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    font-weight: 600;
}
.offers-table .btn-danger.btn-icon-only:hover {
    background: #7f1d1d;
}

@media (max-width: 760px) {
    .offers-toolbar-head,
    .offers-filter {
        align-items: stretch;
        flex-direction: column;
    }
    .offers-filter select {
        width: 100%;
    }
}

/* Omega Panel 4.5 — poprawka po v15: logowanie + Handel/Oferty w jednej linii */
.login-page {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: linear-gradient(135deg, #f4f6f8, #e9edf3) !important;
}

.login-box {
    width: 100% !important;
    max-width: 420px !important;
    background: #ffffff !important;
    border: 1px solid var(--omega-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08) !important;
    padding: 34px 30px 28px !important;
}

.login-brand,
.login-brand--image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0 !important;
    margin: 0 0 30px !important;
}

.login-logo {
    display: block !important;
    width: 320px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
}

.login-box .field label {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin: 0 0 8px !important;
}

.login-box input[type="email"],
.login-box input[type="password"] {
    width: 100% !important;
    height: 42px !important;
    border: 1px solid #cfd7e2 !important;
    border-radius: 10px !important;
    background: #eaf2ff !important;
    color: #111827 !important;
    font-size: 14px !important;
    padding: 0 12px !important;
    box-shadow: none !important;
}

.login-submit,
.login-box .btn.login-submit,
.login-box button.login-submit,
.login-box .btn-primary.login-submit {
    display: flex !important;
    width: 100% !important;
    height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #b60000 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
}
.login-submit:hover { background: #8f0000 !important; }

.login-note {
    display: block !important;
    max-width: 320px !important;
    margin: 16px auto 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    color: #667085 !important;
    text-align: center !important;
}

.login-box .error {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
    padding: 11px 12px !important;
    border-radius: 10px !important;
    margin-top: 14px !important;
    font-size: 13px !important;
}

.offers-card {
    padding: 18px !important;
}
.offers-toolbar-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
}
.offers-toolbar-head .card-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.offers-toolbar-head .card-title {
    margin: 0 !important;
}
.offers-filter {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px !important;
    margin-bottom: 14px !important;
    border: 1px solid #e7edf4 !important;
    border-radius: 14px !important;
    background: #fbfcfe !important;
}
.offers-filter-label {
    flex: 0 0 auto !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    color: #475467 !important;
    text-transform: uppercase !important;
    letter-spacing: .03em !important;
}
.offers-filter select {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 260px !important;
    max-width: none !important;
    height: 40px !important;
    border-radius: 11px !important;
    background: #fff !important;
}
.offers-filter .btn {
    flex: 0 0 auto !important;
    height: 40px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.offers-table table {
    min-width: 1060px !important;
}
.offers-table .row-actions {
    justify-content: flex-start !important;
}
.offers-table .btn-danger.btn-icon-only {
    background: #9f1b1b !important;
    border: 1px solid #9f1b1b !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

@media (max-width: 760px) {
    .offers-toolbar-head,
    .offers-filter {
        align-items: stretch !important;
        flex-direction: column !important;
    }
    .offers-filter select {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Omega Panel 4.5 — Oferty: lekki pasek filtrowania */
.offers-card {
    padding: 18px !important;
}

.offers-toolbar-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
}

.offers-filter {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    margin-bottom: 14px !important;
    border: 1px solid #e8edf4 !important;
    border-radius: 14px !important;
    background: #fbfcfe !important;
    box-shadow: none !important;
}

.offers-filter-label {
    flex: 0 0 54px !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 750 !important;
    color: #475467 !important;
    text-transform: uppercase !important;
    letter-spacing: .035em !important;
}

.offers-filter select {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 220px !important;
    height: 38px !important;
    padding: 0 38px 0 13px !important;
    border: 1px solid #dbe3ec !important;
    border-radius: 11px !important;
    background-color: #fff !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    outline: none !important;
}

.offers-filter select:focus {
    border-color: #b8c5d4 !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, .045) !important;
    outline: none !important;
}

.offers-filter .btn {
    flex: 0 0 auto !important;
    height: 38px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
}

.offers-filter .btn-dark {
    background: #071426 !important;
    color: #fff !important;
    border: 1px solid #071426 !important;
}

.offers-filter .btn-light {
    background: #fff !important;
    color: #111827 !important;
    border: 1px solid #dbe3ec !important;
}

.offers-table table {
    min-width: 1060px !important;
}

.offers-table th {
    font-size: 10.5px !important;
}

.offers-table td {
    font-size: 12.8px !important;
}

@media (max-width: 760px) {
    .offers-toolbar-head,
    .offers-filter {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .offers-filter-label {
        flex: none !important;
    }

    .offers-filter select {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Omega Panel 4.5 — pracownicy i role */
.users-card .panel-toolbar-pro,
.user-form-card .panel-toolbar-pro {
    margin-bottom: 16px;
}

.users-filter {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px 190px auto auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid var(--omega-border);
    border-radius: 14px;
    background: #fbfcfe;
}

.users-filter-field label {
    display: block;
    margin: 0 0 6px;
    font-size: 10.5px;
    font-weight: 760;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .045em;
    color: #475467;
}

.users-filter input,
.users-filter select {
    height: 40px;
    border-radius: 11px;
    font-size: 13px;
    border-color: #d9e2ec;
    background: #fff;
}

.users-filter input:focus,
.users-filter select:focus {
    outline: 0;
    border-color: #9fb2c8;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, .045);
}

.users-filter .btn {
    height: 40px;
    padding: 0 14px;
}

.users-table table {
    min-width: 1060px;
}

.user-role-badge {
    background: #eef2f7;
    color: #344054;
}
.user-role-admin { background: #fee2e2; color: #991b1b; }
.user-role-handel { background: #e9f2ff; color: #175cd3; }
.user-role-serwis { background: #dcfce7; color: #166534; }
.user-role-seo { background: #efe4ff; color: #6d28d9; }
.user-role-podglad { background: #e5e7eb; color: #374151; }
.user-status-active { background: #dcfce7; color: #166534; }
.user-status-inactive { background: #e5e7eb; color: #374151; }
.user-form {
    max-width: 980px;
}
.user-form .field input,
.user-form .field select {
    height: 42px;
}
@media (max-width: 1100px) {
    .users-filter {
        grid-template-columns: 1fr 1fr;
    }
    .users-filter-search {
        grid-column: 1 / -1;
    }
}
@media (max-width: 720px) {
    .users-filter {
        grid-template-columns: 1fr;
    }
}

/* Omega Panel — moje konto / zmiana hasła */
.btn-account {
    padding-left: 12px;
    padding-right: 12px;
}
.account-password-card {
    max-width: 920px;
}
.account-password-info {
    margin-bottom: 18px;
}
.account-password-form {
    max-width: 720px;
}

/* Omega Panel 4.6.1 — wyraźna hierarchia menu */
.side-nav > .nav-link,
.nav-group-toggle {
    font-weight: 750;
}

.nav-group-items .nav-link,
.nav-group-items .nav-link.is-active {
    font-weight: 500;
}

/* Omega Panel 4.7 — globalny układ mobilny */
.mobile-nav-toggle,
.mobile-nav-close,
.nav-backdrop,
.mobile-account-links {
    display: none;
}

@media (min-width: 981px) {
    .mobile-nav-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        padding: 0;
        border: 1px solid var(--omega-border);
        border-radius: 11px;
        background: #fff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--omega-navy);
        font-size: 25px;
        font-weight: 800;
        line-height: 1;
        transition: color .18s ease, border-color .18s ease, background .18s ease;
    }
    .mobile-nav-toggle:hover,
    .mobile-nav-toggle:focus-visible {
        color: #fff;
        border-color: var(--omega-red);
        background: var(--omega-red);
    }
    .mobile-nav-toggle::before { content: '\2190'; }
    .desktop-nav-collapsed .mobile-nav-toggle::before { content: '\2192'; }
    .mobile-nav-toggle span { display: none; }
    .sidebar,
    .main-area { transition: transform .24s ease, margin-left .24s ease, width .24s ease; }
    .desktop-nav-collapsed .sidebar { transform: translateX(-101%); }
    .desktop-nav-collapsed .main-area { margin-left: 0; width: 100%; }
}

@media (max-width: 980px) {
    body.mobile-nav-open { overflow: hidden; }

    .app-shell { display: block; }
    .main-area { width: 100%; margin-left: 0; }

    .sidebar {
        display: block;
        position: fixed;
        z-index: 1001;
        inset: 0 auto 0 0;
        width: min(86vw, 330px);
        padding: 20px 18px;
        transform: translateX(-102%);
        transition: transform .24s ease;
        box-shadow: 20px 0 55px rgba(2, 8, 23, .32);
    }
    .mobile-nav-open .sidebar { transform: translateX(0); }

    .nav-backdrop {
        display: block;
        position: fixed;
        z-index: 1000;
        inset: 0;
        background: rgba(2, 8, 23, .58);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, visibility .2s ease;
    }
    .mobile-nav-open .nav-backdrop { opacity: 1; visibility: visible; }

    .mobile-nav-close {
        display: grid;
        place-items: center;
        position: absolute;
        top: 13px;
        right: 12px;
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 10px;
        background: rgba(255,255,255,.09);
        color: #fff;
        font-size: 29px;
        line-height: 1;
        cursor: pointer;
    }
    .brand-box-logo { padding-right: 45px; min-height: 58px; }
    .panel-logo { width: 190px; }

    .topbar {
        min-height: 70px;
        padding: 12px 16px;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }
    .mobile-nav-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        padding: 10px;
        border: 1px solid var(--omega-border);
        border-radius: 11px;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
    }
    .mobile-nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--omega-navy); }
    .topbar-heading { min-width: 0; }
    .topbar-title { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .topbar-subtitle { display: none; }
    .topbar-search { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; }
    .topbar-search input { height: 42px; }
    .topbar-search button { top: 4px; }
    .user-box { width: auto; gap: 8px; flex-wrap: nowrap; }
    .user-box .user-meta,
    .user-box .btn-account,
    .user-box .btn-ghost { display: none; }
    .user-box .user-avatar { width: 36px; height: 36px; }
    .notify-bell { width: 36px; height: 36px; }

    .mobile-account-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .mobile-user-summary { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
    .mobile-user-summary .user-avatar { background: #fff; color: var(--omega-navy); }
    .mobile-user-summary .user-meta span { color: rgba(255,255,255,.62); }
    .mobile-account-links .btn { padding: 10px; }

    .content { padding: 16px; }
    .stats-grid,
    .stats-grid.stats-grid-pro { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat-card,
    .stat-card.stat-card-pro { min-height: 126px; padding: 15px 13px; }
    .stat-value { font-size: 26px; }
    .stat-title { font-size: 11px; }
    .stat-sub { font-size: 10.5px; }
    .panel-card { padding: 14px; border-radius: 15px; }
    .toolbar { align-items: stretch; }

    .table-wrap { overflow: visible; border: 0; background: transparent; }
    .table-wrap table { min-width: 0 !important; background: transparent; }
    .table-wrap thead { display: none; }
    .table-wrap tbody { display: grid; gap: 12px; }
    .table-wrap tr {
        display: grid;
        grid-template-columns: 1fr;
        padding: 13px;
        border: 1px solid var(--omega-border);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 5px 16px rgba(15,23,42,.045);
    }
    .table-wrap td {
        display: grid;
        grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        padding: 8px 0;
        border: 0;
        border-bottom: 1px solid #eef1f5;
        min-width: 0;
        word-break: break-word;
    }
    .table-wrap td:last-child { border-bottom: 0; }
    .table-wrap td::before {
        content: attr(data-label);
        color: var(--omega-muted);
        font-size: 10px;
        line-height: 1.25;
        font-weight: 850;
        letter-spacing: .035em;
        text-transform: uppercase;
    }
    .table-wrap td[colspan] { display: block; padding: 20px 8px; text-align: center; }
    .table-wrap td[colspan]::before { display: none; }
    .table-wrap tr:hover td { background: transparent; }
    .table-wrap .row-actions,
    .table-wrap .offer-table-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
    .content { padding: 12px; }
    .topbar { padding: 10px 12px; }
    .stats-grid,
    .stats-grid.stats-grid-pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-toolbar-pro { flex-direction: column; align-items: stretch; }
    .panel-toolbar-pro .btn { width: 100%; }
    .quick-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar,
    .nav-backdrop { transition: none; }
}

/* Omega Panel 5.0 — fundament modułu Serwis */
.service-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--omega-red);
    font-size: 10.5px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.form-grid-3,
.detail-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-section-head,
.service-list-heading,
.service-order-heading,
.service-device-title,
.service-view-device-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.service-section-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--omega-border); }
.service-section-head > div { display: flex; align-items: center; gap: 10px; }
.service-section-head .card-title { margin: 0; }
.service-section-head > span { color: var(--omega-muted); font-size: 12px; }
.service-step {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
    background: var(--omega-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}
.service-device-list,
.service-view-devices { display: grid; gap: 14px; }
.service-device-card,
.service-view-device {
    padding: 16px;
    border: 1px solid #dce3ec;
    border-radius: 15px;
    background: #fbfcfe;
}
.service-device-title { margin-bottom: 15px; }
.service-device-title strong { color: var(--omega-navy); font-size: 14px; }
.service-device-title .btn:disabled { opacity: .35; pointer-events: none; }
.check-field {
    display: flex !important;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--omega-border);
    border-radius: 11px;
    background: #fff;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.check-field input { width: 17px; height: 17px; margin: 0; }
.service-order-hero { border-top: 4px solid var(--omega-red); }
.service-order-heading h2 { margin: 3px 0 8px; color: var(--omega-navy); font-size: 26px; }
.service-heading-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.service-heading-meta > span:not(.badge) { color: var(--omega-muted); font-size: 12px; }
.service-heading-meta > span:not(.badge):not(:last-child)::after { content: '•'; margin-left: 8px; color: #c2c9d2; }
.service-detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(330px, .7fr); gap: 18px; align-items: start; }
.service-detail-layout > aside { position: sticky; top: 18px; }
.service-view-device { background: #fff; }
.service-view-device-head { margin-bottom: 14px; }
.service-view-device-head span { color: var(--omega-muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.service-view-device-head h3 { margin: 3px 0 0; color: var(--omega-navy); font-size: 18px; }
.service-device-data { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.service-device-data > div,
.service-fault { padding: 11px; border: 1px solid #e7ebf0; border-radius: 11px; background: #fbfcfe; }
.service-device-data small,
.service-fault small { display: block; margin-bottom: 4px; color: var(--omega-muted); font-size: 9.5px; font-weight: 800; text-transform: uppercase; }
.service-device-data strong { color: #202b3c; font-size: 12.5px; }
.service-fault { margin-top: 10px; }
.service-fault p { margin: 0; color: #344054; font-size: 13px; line-height: 1.55; }
.service-action-card .field { margin-bottom: 13px; }
.btn-block { width: 100%; justify-content: center; }
.service-timeline { position: relative; margin-top: 16px; }
.service-timeline::before { content: ''; position: absolute; top: 5px; bottom: 5px; left: 6px; width: 2px; background: #e5e9ef; }
.service-timeline-item { position: relative; display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 10px; padding-bottom: 18px; }
.service-timeline-dot { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 2px; border: 3px solid #fff; border-radius: 50%; background: var(--omega-red); box-shadow: 0 0 0 1px #e1e6ed; }
.service-timeline-item strong { display: block; color: var(--omega-navy); font-size: 12.5px; }
.service-timeline-item time { display: block; margin-top: 3px; color: var(--omega-muted); font-size: 10.5px; }
.service-timeline-item p { margin: 6px 0 0; color: #475467; font-size: 11.5px; line-height: 1.45; }
.service-list-heading { margin-bottom: 17px; }
.service-list-heading .card-title { margin: 0; }
.service-list-heading p { margin: 5px 0 0; color: var(--omega-muted); font-size: 12px; }
.service-id-lifecycle-card { border-top: 3px solid #98a2b3; }
.service-id-lifecycle-table table { min-width: 920px; }
.service-id-lifecycle-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.service-id-lifecycle-actions form { margin: 0; }
.service-id-lifecycle-actions .btn { min-height: 32px; padding: 6px 9px; white-space: nowrap; font-size: 10.5px; }
.service-filter {
    display: grid;
    grid-template-columns: minmax(260px,1fr) 190px 150px 170px 145px 145px 190px auto auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid var(--omega-border);
    border-radius: 14px;
    background: #fbfcfe;
}
.service-filter .field { margin: 0; }
.service-filter .field label { margin-bottom: 6px; }
.service-filter input,
.service-filter select,
.service-filter .btn { height: 40px; }
.service-filter-clients { grid-template-columns: minmax(260px,1fr) auto auto; }
.service-orders-table table { min-width: 1080px; }
.service-orders-table .service-col-status,
.service-orders-table .service-col-technician { width: 280px; }
.service-orders-table tbody tr:nth-child(even) td { background: #eef2f6; }
.service-orders-table tbody tr:nth-child(even):hover td { background: #e5ebf1; }
.service-orders-table tbody tr:nth-child(odd):hover td { background: #f7f9fb; }
.service-orders-table tr.is-overdue td { background: #fffafa; }
.service-overdue { color: var(--omega-red); font-weight: 850; }
.service-order-device-stack,
.service-device-value-stack,
.service-assignment-stack { display: grid; gap: 0; }
.service-order-device-line,
.service-inline-assignment {
    height: 72px;
    min-height: 72px;
    padding: 7px 0;
    border-bottom: 1px solid #e8ecf1;
}
.service-order-device-line:first-child,
.service-inline-assignment:first-child { padding-top: 0; }
.service-order-device-line:last-child,
.service-inline-assignment:last-child { padding-bottom: 0; border-bottom: 0; }
.service-order-device-line { display: flex; flex-direction: column; justify-content: center; }
.service-order-device-line .table-main { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.service-device-main-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.service-device-main-row > .table-main { min-width: 0; flex: 1; }
.service-device-icon-button,
.service-device-warranty-button {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid #cbd3dd;
    border-radius: 50%;
    background: #fff;
    color: #344054;
    cursor: pointer;
}
.service-device-icon-button:hover,
.service-device-warranty-button:hover { border-color: #b60000; color: #940000; }
.service-device-icon-button svg { width: 16px; height: 16px; fill: currentColor; }
.service-device-icon-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.service-device-warranty-button { font-family: inherit; font-size: 12px; font-weight: 900; line-height: 1; }
.service-device-warranty-button.is-active { border-color: #b60000; background: #b60000; color: #fff; box-shadow: 0 0 0 2px rgba(182,0,0,.12); }
.service-device-warranty-indicator {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid #b60000;
    border-radius: 50%;
    background: #b60000;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(182,0,0,.12);
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}
.service-device-fault { display: block; margin-top: 5px; }
.service-inline-control select {
    width: 100%;
    min-width: 112px;
    height: 35px;
    padding: 6px 30px 6px 9px;
    border: 1px solid #d7dde5;
    border-radius: 9px;
    background: #fff;
    color: #202b3c;
    font-size: 11.5px;
    font-weight: 750;
}
.service-color-select {
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.service-color-select:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(24,93,157,.14);
}
.service-priority-select[data-value="niski"] { border-color: #8ccca2; background: #eaf7ee; color: #176436; }
.service-priority-select[data-value="sredni"] { border-color: #91b9e2; background: #eaf3fc; color: #174f84; }
.service-priority-select[data-value="wysoki"] { border-color: #efbd70; background: #fff3df; color: #8b4d00; }
.service-priority-select[data-value="ekspres"] { border-color: #df8585; background: #fdeaea; color: #9b1111; }
.service-priority-select option[value="niski"] { background: #eaf7ee; color: #176436; }
.service-priority-select option[value="sredni"] { background: #eaf3fc; color: #174f84; }
.service-priority-select option[value="wysoki"] { background: #fff3df; color: #8b4d00; }
.service-priority-select option[value="ekspres"] { background: #fdeaea; color: #9b1111; }
.service-status-select[data-value="oczekujace"] { border-color: #b9c1cc; background: #f0f2f5; color: #3f4b5c; }
.service-status-select[data-value="realizowane"] { border-color: #86b4df; background: #e8f2fc; color: #174f84; }
.service-status-select[data-value="czeka_na_czesci"] { border-color: #e8b65d; background: #fff1d5; color: #815000; }
.service-status-select[data-value="naprawione_do_wyceny"] { border-color: #b19bdd; background: #f1ecfb; color: #563b8f; }
.service-status-select[data-value="wycenione_do_wysylki"] { border-color: #74c8c1; background: #e5f7f5; color: #146660; }
.service-status-select[data-value="zakonczone"] { border-color: #7fc294; background: #e6f6eb; color: #176436; }
.service-status-select[data-value="zakonczone_bez_naprawy"] { border-color: #c4a0a0; background: #f5ecec; color: #704343; }
.service-status-select option[value="oczekujace"] { background: #f0f2f5; color: #3f4b5c; }
.service-status-select option[value="realizowane"] { background: #e8f2fc; color: #174f84; }
.service-status-select option[value="czeka_na_czesci"] { background: #fff1d5; color: #815000; }
.service-status-select option[value="naprawione_do_wyceny"] { background: #f1ecfb; color: #563b8f; }
.service-status-select option[value="wycenione_do_wysylki"] { background: #e5f7f5; color: #146660; }
.service-status-select option[value="zakonczone"] { background: #e6f6eb; color: #176436; }
.service-status-select option[value="zakonczone_bez_naprawy"] { background: #f5ecec; color: #704343; }
.service-inline-assignment { display: grid; grid-template-columns: minmax(130px,1fr); align-items: center; gap: 7px; margin: 0; }
.service-inline-assignment select { min-width: 0; height: 35px; padding: 6px 30px 6px 9px; font-size: 11.5px; }
.service-inline-assignment.is-unassigned select { border-color: #e7a5a5; background: #fff7f7; }
.service-inline-assignment.is-saving select,
.service-inline-control select[aria-busy="true"] {
    cursor: wait;
    opacity: .68;
}
.service-autosave-toast {
    position: fixed;
    z-index: 10020;
    right: 24px;
    bottom: 24px;
    max-width: min(360px,calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 11px;
    background: #176436;
    color: #fff;
    box-shadow: 0 12px 34px rgba(16,24,40,.22);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease;
}
.service-autosave-toast.is-visible { opacity: 1; transform: translateY(0); }
.service-autosave-toast.is-error { background: #9b1111; }
@media (max-width: 680px) {
    .service-autosave-toast { right: 16px; bottom: 16px; left: 16px; max-width: none; text-align: center; }
}
.technician-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.technician-card { padding: 16px; border: 1px solid var(--omega-border); border-radius: 15px; background: #fff; box-shadow: 0 5px 16px rgba(15,23,42,.04); }
.technician-head { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.technician-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--omega-navy); color: #fff; font-weight: 900; }
.technician-head h3 { margin: 0; color: var(--omega-navy); font-size: 15px; }
.technician-head p { margin: 3px 0 0; color: var(--omega-muted); font-size: 10.5px; }
.technician-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 13px; }
.technician-stats div { padding: 9px 5px; border-radius: 10px; background: #f5f7fa; text-align: center; }
.technician-stats strong { display: block; color: var(--omega-navy); font-size: 19px; }
.technician-stats span { display: block; margin-top: 2px; color: var(--omega-muted); font-size: 8.5px; }
.technician-stats .is-alert { background: #fff0f0; }
.technician-stats .is-alert strong { color: var(--omega-red); }
.service-report-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr); gap: 18px; }
.service-report-value { display: flex; min-height: 260px; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--omega-navy); color: #fff; }
.service-report-value > span { color: rgba(255,255,255,.65); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.service-report-value > strong { display: block; margin: 10px 0; font-size: 34px; }
.service-report-value > strong.service-report-secondary { margin-top: -4px; font-size: 22px; color: rgba(255,255,255,.82); }
.service-report-value p { margin: 0 0 18px; color: rgba(255,255,255,.65); font-size: 12px; line-height: 1.5; }
.service-performance-section { margin-bottom: 18px; }
.service-performance-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.service-performance-card {
    position: relative;
    display: flex;
    min-height: 100px;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    border-radius: 15px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(15,23,42,.09);
    transition: transform .18s ease, box-shadow .18s ease;
}
.service-performance-card::after { content: ''; position: absolute; width: 120px; height: 120px; right: -45px; top: -35px; border-radius: 50%; background: rgba(255,255,255,.1); }
.service-performance-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,.15); }
.service-performance-card strong { position: relative; z-index: 1; font-size: 25px; font-weight: 850; letter-spacing: -.03em; }
.service-performance-card span { position: relative; z-index: 1; margin-top: 4px; font-size: 12px; line-height: 1.35; color: rgba(255,255,255,.92); }
.performance-navy { background: linear-gradient(115deg,#102f3d,#278b8c); }
.performance-red { background: linear-gradient(115deg,#d52b38,#ff9c70); }
.performance-dark { background: linear-gradient(115deg,#172d38,#2ba5a2); }
.performance-coral { background: linear-gradient(115deg,#d93b45,#f6a36f); }

@media (max-width: 1500px) {
    .service-filter { grid-template-columns: minmax(240px,1fr) repeat(2,minmax(140px,.55fr)); }
    .service-filter-search { grid-column: 1 / -1; }
}
@media (max-width: 1250px) {
    .form-grid-3,
    .detail-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .technician-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .service-performance-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
    .form-grid-3,
    .detail-grid-3,
    .service-device-data { grid-template-columns: 1fr; }
    .service-detail-layout,
    .service-report-grid { grid-template-columns: 1fr; }
    .service-detail-layout > aside { position: static; }
    .service-filter,
    .service-filter-clients { grid-template-columns: 1fr 1fr; }
    .service-filter-search { grid-column: 1 / -1; }
    .service-orders-table table { min-width: 0; }
    .service-orders-table .service-col-status,
    .service-orders-table .service-col-technician { width: auto; }
}
@media (max-width: 620px) {
    .service-section-head,
    .service-list-heading,
    .service-order-heading,
    .service-view-device-head { align-items: stretch; flex-direction: column; }
    .service-section-head > span { display: none; }
    .service-section-head .btn,
    .service-order-heading .actions,
    .service-order-heading .actions .btn { width: 100%; }
    .service-filter,
    .service-filter-clients,
    .technician-grid { grid-template-columns: 1fr; }
    .service-filter-search { grid-column: auto; }
    .technician-stats { grid-template-columns: repeat(2,1fr); }
    .service-performance-grid { grid-template-columns: 1fr; }
}

/* Omega Panel 5.2 — raport naprawy urządzenia */
.repair-report-hero { border-top: 4px solid #b60000; background: linear-gradient(135deg,#fff 0%,#fff 72%,#f7f8fa 100%); }
.service-device-report-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.repair-badge-draft { background: #eef1f5; color: #4b5563; }
.repair-badge-success { background: #d1fae5; color: #065f46; }
.repair-badge-failed { background: #fee2e2; color: #991b1b; }
.repair-kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.repair-kpi { position: relative; min-height: 128px; overflow: hidden; padding: 19px; border: 1px solid #e0e5eb; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.repair-kpi::after { content: ''; position: absolute; width: 92px; height: 92px; right: -32px; bottom: -38px; border-radius: 50%; background: rgba(182,0,0,.08); }
.repair-kpi span { display: block; color: #6b7280; font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.repair-kpi strong { display: block; position: relative; z-index: 1; margin: 10px 0 6px; color: #202733; font-size: 21px; line-height: 1.15; }
.repair-kpi small { position: relative; z-index: 1; color: #7a828e; font-size: 10.5px; }
.repair-kpi-dark { border-color: #2c2c2c; background: #2c2c2c; color: #fff; }
.repair-kpi-dark span,.repair-kpi-dark small { color: rgba(255,255,255,.65); }.repair-kpi-dark strong { color: #fff; }.repair-kpi-dark::after { background: rgba(182,0,0,.55); }
.repair-timer-card { display: grid; grid-template-columns: minmax(230px,.55fr) minmax(0,1.45fr); align-items: center; gap: 22px; border-left: 5px solid #b60000; }
.repair-timer-card .card-title { margin: 0; }.repair-timer-card p { margin: 6px 0 0; color: #697180; font-size: 12px; }
.repair-timer-actions { display: grid; gap: 9px; }.repair-timer-actions form { display: flex; align-items: end; gap: 8px; margin: 0; }.repair-timer-actions input { min-width: 0; height: 42px; }
.repair-manual-time { display: grid !important; grid-template-columns: 90px 90px minmax(180px,1fr) auto; }
.repair-parts { display: grid; gap: 10px; }
.repair-part-row { display: grid; grid-template-columns: minmax(180px,1.1fr) minmax(160px,.9fr) 85px 85px minmax(150px,1fr) auto; align-items: end; gap: 9px; padding: 12px; border: 1px solid #e0e5eb; border-radius: 13px; background: #fafbfc; }
.repair-part-row .field label { font-size: 10px; }.repair-part-row input { height: 40px; }
.repair-final-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 17px; border-top: 1px solid #e3e7ec; }
.repair-attachments { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 14px; }
.repair-attachments a { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 11px; border: 1px solid #e0e5eb; border-radius: 11px; background: #fafbfc; color: #273142; text-decoration: none; }
.repair-attachments a:hover { border-color: #b60000; }.repair-attachments strong { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }.repair-attachments span { color: #7a828e; font-size: 9.5px; }
.repair-time-table table { min-width: 820px; }

@media (max-width: 1250px) {
    .repair-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .repair-part-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .repair-part-row > .btn { width: 100%; }
}
@media (max-width: 980px) {
    .repair-timer-card { grid-template-columns: 1fr; }
    .repair-attachments { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .service-device-report-actions { justify-content: flex-start; }
}
@media (max-width: 620px) {
    .repair-kpi-grid,.repair-attachments,.repair-part-row { grid-template-columns: 1fr; }
    .repair-kpi { min-height: 108px; }
    .repair-timer-actions form,.repair-manual-time { display: grid !important; grid-template-columns: 1fr; }
    .repair-timer-actions .btn,.repair-final-actions,.repair-final-actions .btn,.service-device-report-actions,.service-device-report-actions .btn { width: 100%; }
}

/* Omega Panel 5.3 — prosty widok zwykłego serwisanta */
.technician-orders-card { max-width: 1400px; margin: 0 auto; }
.technician-orders-table table { min-width: 860px; }
.technician-orders-table th:last-child,
.technician-orders-table td:last-child { width: 110px; text-align: right; }
.technician-task-wrap { width: min(1200px,100%); margin: 0 auto; }
.technician-back { display: inline-flex; margin-bottom: 14px; color: #344054; font-size: 12px; font-weight: 800; text-decoration: none; }
.technician-back:hover { color: #b60000; }
.technician-task-form { margin-top: 0; }
.technician-task-form .panel-card { margin: 0; }
.technician-paper { overflow: hidden; padding: 11px 12px 10px; border-radius: 8px; }
.technician-paper-head { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; margin-bottom: 7px; }
.technician-paper-head h2 { display: flex; align-items: center; gap: 7px; margin: 0; color: #2387dc; font-size: 16px; }
.technician-paper-head h2 svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.technician-paper-head > div { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.technician-paper-head span,
.technician-equipment span { color: #667085; font-size: 10.5px; font-weight: 650; }
.technician-paper-head strong { color: #172033; font-size: 12px; }
.technician-equipment { display: grid; min-width: 0; gap: 2px; margin-bottom: 5px; padding: 5px 7px; border: 1px solid #d9dee5; border-radius: 5px; }
.technician-equipment strong { overflow: hidden; color: #172033; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.technician-intake-docs { margin-top: 8px; padding: 8px; border: 1px solid #d9dee5; border-radius: 7px; background: #f8fafc; }
.technician-intake-docs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.technician-intake-docs-head span { color: #667085; font-size: 10px; font-weight: 750; }
.technician-intake-docs-head strong { color: #172033; font-size: 10px; }
.technician-intake-docs-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.technician-intake-docs-grid a { display: grid; min-width: 0; gap: 4px; color: #344054; text-decoration: none; }
.technician-intake-docs-grid img,
.technician-intake-file { display: flex; width: 100%; height: 72px; align-items: center; justify-content: center; border: 1px solid #d8dee6; border-radius: 6px; background: #fff; object-fit: cover; }
.technician-intake-file { color: #667085; font-size: 10px; font-weight: 850; }
.technician-intake-docs-grid small { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.technician-paper-body { display: grid; grid-template-columns: minmax(330px,1fr) minmax(320px,1.05fr) minmax(190px,.55fr); gap: 12px; margin-top: 8px; }
.technician-work-list { min-width: 0; }
.technician-work-row { display: grid; grid-template-columns: 145px minmax(0,1fr); align-items: center; gap: 8px; min-height: 30px; }
.technician-work-row > span { color: #253044; font-size: 10.5px; line-height: 1.2; }
.technician-work-controls { display: grid; grid-template-columns: 16px minmax(0,1fr); align-items: center; gap: 7px; min-width: 0; }
.technician-work-controls.is-checkbox-only { display: flex; min-height: 26px; align-items: center; }
.technician-work-check { width: 15px; height: 15px; margin: 0; padding: 0; border-radius: 3px; accent-color: #b60000; cursor: pointer; }
.technician-work-detail { width: 100%; height: 26px; padding: 4px 7px; border-radius: 5px; font-size: 10.5px; }
.technician-work-detail::placeholder { color: #a7adb7; font-size: 9px; }
.technician-paper-divider { margin: 7px 0; border-top: 1px solid #cfd5dd; }
.technician-time-line { display: grid; grid-template-columns: 145px 1fr 1fr; align-items: center; gap: 7px; min-height: 31px; }
.technician-time-line > span,
.technician-inline-check > span,
.technician-test-line > span { color: #253044; font-size: 10.5px; }
.technician-time-line label { display: flex; align-items: center; gap: 4px; }
.technician-time-line input { width: 100%; height: 27px; padding: 3px 5px; text-align: center; }
.technician-time-line small { color: #7b8491; font-size: 8.5px; }
.technician-estimated-time-line { display: grid; grid-template-columns: 145px minmax(0,1fr); align-items: center; gap: 7px; min-height: 31px; }
.technician-estimated-time-line > span { color: #253044; font-size: 10.5px; line-height: 1.2; }
.technician-estimated-time-line input { width: 100%; height: 27px; padding: 3px 6px; font-size: 10px; }
.technician-estimated-time-line.technician-time-readonly strong { color: #101828; font-size: 11px; }
.technician-paper.is-readonly input:disabled,
.technician-paper.is-readonly input[readonly],
.technician-paper.is-readonly select:disabled,
.technician-paper.is-readonly textarea[readonly] { opacity: 1; background: #f7f8fa; color: #344054; cursor: default; }
.diagnostic-shared-photos { min-width: 0; padding-left: 11px; border-left: 1px solid #e2e6eb; }
.diagnostic-shared-photos > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.diagnostic-shared-photos > header strong { color: #667085; font-size: 10px; }
.diagnostic-shared-photos > header span { min-width: 21px; padding: 3px 6px; border-radius: 999px; background: #edf1f5; color: #475467; font-size: 9px; font-weight: 800; text-align: center; }
.diagnostic-shared-photos > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.service-report-photo-item { position: relative; display: grid; min-width: 0; gap: 3px; }
.service-report-photo-item [data-service-photo-delete] { width: 100%; min-height: 24px; padding: 3px 6px; border: 1px solid #efc3c3; border-radius: 5px; background: #fff7f7; color: #a52828; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.service-report-photo-item [data-service-photo-delete]:hover { border-color: #dc9292; background: #ffeded; }
.service-report-photo-item [data-service-photo-delete]:focus-visible { outline: 2px solid rgba(194,45,45,.22); outline-offset: 1px; }
.diagnostic-shared-photos a { display: grid; min-width: 0; color: #344054; text-decoration: none; }
.diagnostic-shared-photos img,
.diagnostic-shared-photos .service-edit-attachment-file { width: 100%; height: 70px; border-radius: 5px; object-fit: cover; }
.diagnostic-shared-photos > p { margin: 0; color: #7a8491; font-size: 9.5px; }
.diagnostic-photos-all { margin-top: 8px; color: #1767b1 !important; font-size: 9.5px; font-weight: 750; text-align: right; }
.diagnostic-photo-upload { display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin: 0 0 6px; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 7px; color: #344054; background: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }
.diagnostic-photo-upload:hover { border-color: #98a2b3; background: #f8fafc; }
.diagnostic-photo-upload.is-uploading { cursor: wait; opacity: .7; }
.diagnostic-photo-upload input { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.diagnostic-photo-submit { width: 100%; min-height: 27px; margin: 0 0 8px; padding: 4px 7px; font-size: 9.5px; }
.technician-inline-check { display: flex; min-height: 30px; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.technician-inline-check input { width: 16px; height: 16px; flex: 0 0 16px; accent-color: #b60000; }
.technician-test-line { display: flex; min-height: 30px; align-items: center; gap: 10px; }
.technician-test-line > span { width: 135px; flex: 0 0 135px; }
.technician-test-line label { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }
.technician-test-line label input { width: 15px; height: 15px; accent-color: #b60000; }
.technician-test-line label span { color: #253044; font-size: 9.5px; font-weight: 800; }
.technician-paper-notes { display: grid; grid-template-rows: minmax(0,1fr) auto minmax(0,.72fr); gap: 6px; min-width: 0; }
.technician-paper-notes > label:not(.technician-inline-check) { display: flex; min-height: 0; flex-direction: column; }
.technician-paper-notes > label > span { margin-bottom: 4px; color: #667085; font-size: 10px; font-weight: 750; }
.technician-paper-notes textarea { min-height: 82px; height: 100%; padding: 7px; border-radius: 6px; font-size: 10.5px; line-height: 1.35; resize: vertical; }
.technician-readonly-text { min-height: 82px; height: 100%; padding: 8px; border: 1px solid #d8dee6; border-radius: 6px; background: #f7f8fa; color: #344054; font-size: 10.5px; line-height: 1.4; overflow-wrap: anywhere; }
.technician-readonly-text p { margin: 0; }
.technician-legacy-findings { margin-top: 8px; padding-top: 7px; border-top: 1px dashed #ccd4de; }
.technician-legacy-findings small { display: block; margin-bottom: 3px; color: #667085; font-size: 9px; font-weight: 750; }
.technician-consultation { justify-content: flex-end; min-height: 22px; }
.technician-consultation > span { margin: 0 !important; }
.technician-paper-footer { display: flex; align-items: center; justify-content: flex-end; gap: 15px; margin: 10px -16px -12px; padding: 9px 16px; border-top: 1px solid #e2e6eb; background: #fafbfc; }
.technician-paper-footer > span { margin-right: auto; color: #7a8491; font-size: 9px; }
.technician-done-button { min-width: 190px; min-height: 34px; justify-content: center; padding: 8px 16px; font-size: 11.5px; box-shadow: none; }
.technician-submission-card { border-left: 5px solid #b60000; }
.technician-submission-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.technician-submission-actions span { padding: 7px 10px; border-radius: 999px; background: #fff1f1; color: #8f0000; font-size: 10.5px; font-weight: 800; }

@media (max-width: 980px) {
    .technician-paper-body { grid-template-columns: 1fr 1fr; }
    .diagnostic-shared-photos { grid-column: 1/-1; padding: 9px 0 0; border-top: 1px solid #e2e6eb; border-left: 0; }
    .diagnostic-shared-photos > div { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .technician-paper-notes textarea { min-height: 110px; }
}
@media (max-width: 620px) {
    .technician-paper { padding: 12px; }
    .technician-paper-head { grid-template-columns: 1fr; gap: 5px; }
    .technician-paper-head > div { justify-content: space-between; }
    .technician-paper-body { grid-template-columns: 1fr; }
    .diagnostic-shared-photos { grid-column: auto; }
    .technician-equipment { align-items: flex-start; flex-direction: column; gap: 2px; }
    .technician-equipment strong { overflow: visible; white-space: normal; }
    .technician-intake-docs-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .technician-intake-docs-grid img,
    .technician-intake-file { height: 110px; }
    .technician-work-row { grid-template-columns: 1fr; gap: 2px; padding: 3px 0; }
    .technician-work-controls { grid-template-columns: 18px minmax(0,1fr); }
    .technician-work-check { width: 17px; height: 17px; }
    .technician-work-detail { height: 34px; }
    .technician-time-line { grid-template-columns: 1fr 1fr; }
    .technician-time-line > span { grid-column: 1 / -1; }
    .technician-estimated-time-line { grid-template-columns: minmax(0,1fr); }
    .technician-estimated-time-line > span { grid-column: 1 / -1; }
    .technician-test-line { flex-wrap: wrap; }
    .technician-test-line > span { width: 100%; flex-basis: 100%; }
    .technician-paper-footer { align-items: stretch; flex-direction: column; margin: 10px -12px -12px; }
    .diagnostic-shared-photos > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .technician-done-button { width: 100%; }
    .technician-orders-table table { min-width: 0; }
    .technician-orders-table th:last-child,
    .technician-orders-table td:last-child { width: auto; text-align: left; }
    .technician-orders-table .btn { width: 100%; justify-content: center; }
}

/* Omega Panel 5.7 — proste przyjęcie urządzenia */
.service-intake-form { width: min(940px,100%); margin: 0 auto; }
.service-intake-card { overflow: hidden; padding: 0; border-top: 4px solid #b60000; }
.service-intake-head { padding: 22px 24px 18px; border-bottom: 1px solid #e4e8ee; background: linear-gradient(135deg,#fff 0%,#fff 72%,#f5f7fa 100%); }
.service-intake-head h2 { margin: 3px 0 5px; color: var(--omega-navy); font-size: 25px; line-height: 1.15; }
.service-intake-head p { margin: 0; color: var(--omega-muted); font-size: 12px; line-height: 1.5; }
.service-intake-meta { display: grid; grid-template-columns: minmax(190px,.8fr) minmax(165px,.65fr) minmax(280px,1.4fr); gap: 12px; padding: 18px 24px 14px; }
.service-intake-meta .field,
.service-intake-device-fields .field,
.service-intake-parent.field { margin: 0; }
.service-intake-meta input,
.service-intake-device-fields input,
.service-intake-device-fields textarea,
.service-intake-parent input { border-color: #d7dde5; background: #fff; }
.service-intake-complaint { display: grid; grid-template-columns: minmax(240px,.85fr) minmax(300px,1.15fr); gap: 12px; align-items: end; padding: 0 24px 18px; }
.service-intake-check { display: flex; min-height: 46px; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #d7dde5; border-radius: 11px; background: #fbfcfe; cursor: pointer; }
.service-intake-check input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: #b60000; }
.service-intake-check span { display: flex; flex-direction: column; gap: 1px; }
.service-intake-check strong { color: #243044; font-size: 12.5px; }
.service-intake-check small { color: #7a8491; font-size: 10px; font-weight: 500; line-height: 1.35; }
.service-intake-parent[hidden] { display: none; }
.service-intake-photo-mode { display: grid; grid-template-columns: minmax(210px,.7fr) minmax(430px,1.3fr); gap: 14px; align-items: center; margin: 0 24px 18px; padding: 13px; border: 1px solid #d7dde5; border-radius: 12px; background: #fbfcfe; }
.service-intake-photo-title { display: flex; flex-direction: column; gap: 2px; }
.service-intake-photo-title strong { color: #243044; font-size: 12.5px; }
.service-intake-photo-title small { color: #7a8491; font-size: 10px; line-height: 1.35; }
.service-intake-photo-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.service-intake-photo-options label { display: flex; min-height: 42px; align-items: center; gap: 7px; padding: 8px 9px; border: 1px solid #d8dee6; border-radius: 9px; background: #fff; color: #344054; font-size: 10.5px; font-weight: 750; cursor: pointer; }
.service-intake-photo-options label:has(input:checked) { border-color: #b60000; background: #fff5f5; color: #8f0000; }
.service-intake-photo-options input { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: #b60000; }
.service-intake-divider { border-top: 1px solid #e4e8ee; }
.service-intake-devices { display: grid; gap: 10px; padding: 18px 24px 10px; }
.service-intake-device { padding: 13px; border: 1px solid #dbe1e8; border-radius: 12px; background: #f8fafc; }
.service-intake-device-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.service-intake-device-head strong { color: var(--omega-navy); font-size: 12.5px; }
.service-intake-device-head .btn:disabled { visibility: hidden; }
.service-intake-device-head-actions { display: flex; align-items: center; gap: 10px; }
.service-device-prequote-control { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #cfd8e3; border-radius: 9px; background: #fff; color: #344054; font-size: 11px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.service-device-prequote-control input { width: 16px; height: 16px; margin: 0; accent-color: #b60000; }
.service-device-prequote-control:has(input:checked) { border-color: #9b6bc4; background: #f7f0fc; color: #68418b; }
.service-device-prequote-control.is-readonly { opacity: .72; cursor: default; }
.service-preview-client-agreement { grid-column: 1 / -1; margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(49,93,155,.18); }
.service-preview-client-agreement > span { display: block; color: #526170; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.service-preview-client-agreement p { margin: 4px 0 0; color: #243044; font-size: 12px; line-height: 1.45; white-space: normal; }
.quote-pre-repair-context { display: grid; grid-template-columns: minmax(190px,.9fr) minmax(110px,.5fr) minmax(150px,.65fr) minmax(260px,1.55fr); align-items: stretch; gap: 0; padding: 0 12px; border: 1px solid #d8e3ef; border-radius: 8px; background: #fff; }
.quote-pre-repair-segment { display: grid; align-content: center; min-width: 0; min-height: 58px; padding: 9px 14px; border-left: 1px solid #e2e8f0; }
.quote-pre-repair-segment:first-child { border-left: 0; }
.quote-pre-repair-segment small { color: #64748b; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.quote-pre-repair-segment strong { margin-top: 2px; color: #24364a; font-size: 12px; }
.quote-pre-repair-segment.is-heading strong { font-size: 13px; }
.quote-pre-repair-segment.is-price strong { color: #155ea8; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-pre-repair-segment.is-note p { margin: 2px 0 0; color: #243044; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .quote-pre-repair-context { grid-template-columns: 1fr 1fr; padding: 0; }
    .quote-pre-repair-segment { border-top: 1px solid #e2e8f0; }
    .quote-pre-repair-segment:nth-child(-n+2) { border-top: 0; }
    .quote-pre-repair-segment:nth-child(odd) { border-left: 0; }
    .quote-pre-repair-segment.is-note { grid-column: 1 / -1; border-left: 0; }
}
.service-intake-device-head-actions .service-device-icon-button,
.service-intake-device-head-actions .service-device-warranty-button {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
}
.service-intake-device-head-actions .service-device-icon-button svg { width: 19px; height: 19px; }
.service-intake-device-head-actions .service-device-warranty-button { font-size: 14px; }
.service-intake-device-head-actions .service-device-icon-button.has-files { border-color: #b60000; background: #fff4f4; color: #940000; }
.service-intake-warranty-toggle { position: relative; }
.service-intake-warranty-toggle input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.service-intake-warranty-toggle span { display: block; }
.service-intake-warranty-toggle:has(input:focus-visible) { outline: 2px solid #b60000; outline-offset: 2px; }
.service-intake-warranty-toggle:has(input:checked) { border-color: #b60000; background: #b60000; color: #fff; box-shadow: 0 0 0 2px rgba(182,0,0,.12); }
.service-intake-device-fields { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(360px,1.2fr); gap: 12px; align-items: start; }
.service-intake-device-fields textarea { min-height: 44px; height: 44px; padding-top: 10px; padding-bottom: 10px; resize: vertical; }
.service-intake-photo-preview { display: flex; min-height: 38px; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #d4dbe4; }
.service-intake-photo-preview[hidden] { display: none; }
.service-intake-photo-preview-item { position: relative; display: block; width: 52px; height: 52px; flex: 0 0 52px; }
.service-intake-photo-preview-item img { width: 100%; height: 100%; border: 1px solid #d4dbe4; border-radius: 8px; background: #eef2f6; object-fit: cover; }
.service-intake-photo-preview-item button {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    padding: 0 0 1px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #b60000;
    color: #fff;
    font: 900 13px/1 Arial,sans-serif;
    cursor: pointer;
}
.service-device-complaint { display: grid; grid-template-columns: minmax(230px,.8fr) minmax(300px,1.2fr); gap: 10px; align-items: end; margin-top: 10px; }
.service-device-complaint > .service-intake-check { min-height: 47px; }
.service-device-complaint > .service-intake-parent { margin: 0; }
.service-intake-device-photos,
.service-intake-shared-photos { display: grid; gap: 6px; margin-top: 10px; padding: 10px; border: 1px dashed #c8d0da; border-radius: 10px; background: #fff; }
.service-intake-shared-photos { margin: 0 24px 18px; }
.service-intake-device-photos[hidden],
.service-intake-shared-photos[hidden] { display: none; }
.service-intake-device-photos label,
.service-intake-shared-photos label { color: #243044; font-size: 11px; font-weight: 800; }
.service-intake-device-photos input[type="file"],
.service-intake-shared-photos input[type="file"] { width: 100%; min-height: 42px; padding: 7px; border: 1px solid #d7dde5; border-radius: 9px; background: #f8fafc; color: #344054; font-size: 11px; }
.service-intake-device-photos input[type="file"]::file-selector-button,
.service-intake-shared-photos input[type="file"]::file-selector-button { margin-right: 9px; padding: 7px 10px; border: 0; border-radius: 7px; background: #2c2c2c; color: #fff; font-size: 10.5px; font-weight: 800; cursor: pointer; }
.service-intake-device-photos small,
.service-intake-shared-photos small { color: #7a8491; font-size: 9.5px; line-height: 1.35; }
.service-intake-add { width: calc(100% - 48px); margin: 0 24px 18px; justify-content: center; border-style: dashed; }
.service-intake-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 14px 24px; border-top: 1px solid #e4e8ee; background: #f8fafc; }
.service-intake-actions .btn { min-width: 120px; justify-content: center; }
.badge-status-oczekujace { background: #fff2cc; color: #765400; }
.service-complaint-badge { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; background: #b60000; color: #fff; font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.service-multiorder-badge { display: inline-flex; align-items: center; width: max-content; margin-top: 5px; padding: 4px 7px; border: 1px solid #cbd5e1; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 9px; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.service-edit-attachments { margin-top: 2px; padding-top: 14px; border-top: 1px solid #dce3ec; }
.service-edit-attachments-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.service-edit-attachment-item { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #dce3ec; border-radius: 10px; background: #fff; }
.service-edit-attachments-grid a { display: flex; min-width: 0; flex-direction: column; gap: 5px; padding: 8px; border: 1px solid #dce3ec; border-radius: 10px; background: #fff; color: #344054; text-decoration: none; }
.service-edit-attachment-item > a { flex: 1; border: 0; border-radius: 0; }
.service-edit-attachments-grid a:hover { border-color: #b60000; }
.service-edit-attachment-item:has(a:hover) { border-color: #b60000; }
.service-edit-attachments-grid img,
.service-edit-attachment-file { width: 100%; height: 92px; border-radius: 7px; background: #eef1f5; object-fit: cover; }
.service-edit-attachment-file { display: grid; place-items: center; color: #475467; font-size: 11px; font-weight: 900; }
.service-edit-attachments-grid small { overflow: hidden; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.service-edit-attachments-grid em { color: #7a8491; font-size: 9px; font-style: normal; }
.service-attachment-remove { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-top: 1px solid #e4e8ee; background: #fff8f8; color: #940000; font-size: 9.5px; font-weight: 800; cursor: pointer; }
.service-attachment-remove input { width: 15px; height: 15px; margin: 0; accent-color: #b60000; }
.service-edit-photo-add { margin-top: 2px; padding: 11px; border: 1px dashed #c8d0da; border-radius: 10px; background: #fff; }
.service-edit-photo-add input[type="file"] { width: 100%; min-height: 42px; padding: 7px; border: 1px solid #d7dde5; border-radius: 9px; background: #f8fafc; font-size: 11px; }
.service-edit-photo-add small { display: block; margin-top: 5px; color: #7a8491; font-size: 9.5px; }
.service-device-complaint-view { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 9px 11px; border-left: 3px solid #b60000; border-radius: 7px; background: #fff4f4; color: #5e1820; font-size: 10.5px; }
.service-device-complaint-view strong { text-transform: uppercase; }
.service-device-complaint-view a { color: #940000; font-weight: 850; }
.service-view-attachments { margin-top: 11px; padding-top: 11px; border-top: 1px solid #dce3ec; }
.service-view-attachments-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.service-view-attachments-head strong { color: #243044; font-size: 11px; }
.service-view-attachments-head span { min-width: 22px; padding: 3px 6px; border-radius: 999px; background: #edf1f5; color: #475467; font-size: 9px; font-weight: 850; text-align: center; }
.service-view-attachments-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.service-view-attachments-grid a { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 7px; border: 1px solid #dce3ec; border-radius: 9px; background: #fff; color: #344054; text-decoration: none; }
.service-view-attachments-grid a:hover { border-color: #b60000; }
.service-view-attachments-grid img,
.service-view-attachments-grid .service-edit-attachment-file { width: 100%; height: 88px; border-radius: 6px; object-fit: cover; }
.service-view-attachments-grid small { overflow: hidden; font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.service-view-attachments-grid em { color: #7a8491; font-size: 8.5px; font-style: normal; }

@media (max-width: 760px) {
    .service-intake-head { padding: 18px; }
    .service-intake-head h2 { font-size: 22px; }
    .service-intake-meta,
    .service-intake-complaint,
    .service-intake-device-fields,
    .service-device-complaint { grid-template-columns: 1fr; }
    .service-intake-meta { padding: 16px 16px 12px; }
    .service-intake-complaint { padding: 0 16px 16px; }
    .service-intake-photo-mode { grid-template-columns: 1fr; margin: 0 16px 16px; }
    .service-intake-photo-options { grid-template-columns: 1fr; }
    .service-intake-photo-options label { min-height: 44px; }
    .service-intake-devices { padding: 16px 16px 9px; }
    .service-intake-device { padding: 11px; }
    .service-intake-device-head { align-items: flex-start; }
    .service-intake-device-head-actions { gap: 10px; }
    .service-intake-device-head-actions .btn { min-height: 30px; padding: 5px 8px; }
    .service-intake-device-fields textarea { min-height: 82px; height: 82px; }
    .service-intake-add { width: calc(100% - 32px); min-height: 44px; margin: 0 16px 16px; }
    .service-intake-shared-photos { margin: 0 16px 16px; }
    .service-intake-device-photos input[type="file"],
    .service-intake-shared-photos input[type="file"] { min-height: 46px; }
    .service-intake-actions { align-items: stretch; flex-direction: column-reverse; padding: 13px 16px 16px; }
    .service-intake-actions .btn { width: 100%; min-height: 46px; }
    .service-edit-attachments-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .service-view-attachments-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .service-view-attachments-grid img,
    .service-view-attachments-grid .service-edit-attachment-file { height: 112px; }
    .service-device-complaint-view { align-items: flex-start; flex-direction: column; gap: 3px; }
}

/* Omega Panel 5.17 — czytelne pola formularzy na urządzeniach mobilnych.
   16 px zapobiega automatycznemu powiększaniu formularza przez Safari w iOS. */
@media (max-width: 980px) {
    body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
    body select:not([multiple]),
    body textarea:not([readonly]) {
        font-size: 16px !important;
    }
    body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
    body select:not([multiple]) { min-height: 35px; padding-block: 6.5px; }
}

/* Omega Panel 5.18 — wygodny układ na mniejszych monitorach.
   Między 981 a 1440 px menu działa jak wysuwany panel, ale tabela zleceń
   zachowuje desktopowy układ. Pełny widok kart pozostaje bez zmian do 980 px. */
@media (min-width: 981px) and (max-width: 1440px) {
    body.mobile-nav-open { overflow: hidden; }

    .app-shell { display: block; }
    .main-area {
        width: 100%;
        margin-left: 0;
    }

    .sidebar {
        display: block;
        position: fixed;
        z-index: 1001;
        inset: 0 auto 0 0;
        width: min(86vw, 330px);
        padding: 20px 18px;
        transform: translateX(-102%);
        transition: transform .24s ease;
        box-shadow: 20px 0 55px rgba(2, 8, 23, .32);
    }
    .mobile-nav-open .sidebar { transform: translateX(0); }

    .nav-backdrop {
        display: block;
        position: fixed;
        z-index: 1000;
        inset: 0;
        background: rgba(2, 8, 23, .58);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, visibility .2s ease;
    }
    .mobile-nav-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav-close {
        display: grid;
        place-items: center;
        position: absolute;
        top: 13px;
        right: 12px;
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 10px;
        background: rgba(255,255,255,.09);
        color: #fff;
        font-size: 29px;
        line-height: 1;
        cursor: pointer;
    }
    .brand-box-logo {
        min-height: 58px;
        padding-right: 45px;
    }
    .panel-logo { width: 190px; }

    .topbar {
        min-height: 70px;
        display: grid;
        grid-template-columns: 42px minmax(180px, auto) minmax(260px, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
    }
    .mobile-nav-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        padding: 10px;
        border: 1px solid var(--omega-border);
        border-radius: 11px;
        background: #fff;
        color: var(--omega-navy);
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
    }
    .mobile-nav-toggle::before { content: none; }
    .desktop-nav-collapsed .mobile-nav-toggle::before { content: none; }
    .mobile-nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: var(--omega-navy);
    }
    .topbar-heading { min-width: 0; }
    .topbar-title {
        overflow: hidden;
        font-size: 20px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .topbar-subtitle { display: none; }
    .topbar-search {
        width: 100%;
        margin: 0;
    }
    .user-box {
        width: auto;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .user-box .user-meta,
    .user-box .btn-account,
    .user-box .btn-ghost { display: none; }
    .user-box .user-avatar {
        width: 36px;
        height: 36px;
    }
    .notify-bell {
        width: 36px;
        height: 36px;
    }

    .mobile-account-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .mobile-user-summary {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 4px;
    }
    .mobile-user-summary .user-avatar {
        background: #fff;
        color: var(--omega-navy);
    }
    .mobile-user-summary .user-meta span { color: rgba(255,255,255,.62); }
    .mobile-account-links .btn { padding: 10px; }
}

/* Omega Panel 5.19 — niezależne przewijanie nawigacji sidebara. */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
}

.brand-box-logo,
.sidebar-help,
.mobile-account-links {
    flex: 0 0 auto;
}

.side-nav {
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.nav-group.is-open .nav-group-items {
    max-height: 1200px;
}

/* TASK-011 — finalny, kompaktowy sidebar BOSS TEST v0.1. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.app-shell,
.main-area,
.content {
    min-width: 0;
}

.sidebar {
    width: 280px;
    padding: 16px 14px 12px;
}

.main-area {
    margin-left: 280px;
    width: calc(100% - 280px);
}

.brand-box-logo {
    min-height: 56px;
    padding: 0 4px 14px;
}

.panel-logo { width: 186px; }

.side-nav {
    gap: 3px;
    margin-top: 10px;
    padding-right: 2px;
}

.side-nav > .nav-link,
.nav-group-toggle {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 13px;
    letter-spacing: .015em;
}

.nav-group { border-radius: 9px; }

.nav-group-toggle:hover,
.nav-group-toggle:focus-visible,
.nav-group.is-open > .nav-group-toggle {
    background: rgba(255,255,255,.095);
}

.nav-group-items .nav-link {
    min-height: 38px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.2;
}

.nav-group.is-open .nav-group-items {
    padding: 3px 0 4px 10px;
}

.nav-group-items .nav-link::before { display: none; }

.side-nav .nav-link.is-active,
.nav-group-items .nav-link.is-active {
    background: #fff;
    color: var(--omega-navy);
    box-shadow: 0 4px 14px rgba(2,8,23,.22);
}

.side-nav .nav-link.is-active .omega-icon,
.nav-group-items .nav-link.is-active .omega-icon { color: var(--omega-red); }

.side-nav-technical {
    margin-top: auto;
    padding-top: 10px;
}

.side-nav-technical::before {
    content: '';
    display: block;
    margin: 0 8px 7px;
    border-top: 1px solid rgba(255,255,255,.12);
}

@media (max-width: 1440px) {
    .sidebar {
        width: min(86vw, 310px);
        padding: 16px 14px 12px;
    }

    .side-nav > .nav-link,
    .nav-group-toggle,
    .nav-group-items .nav-link {
        min-height: 44px;
    }
}

@media (min-width: 1441px) {
    .desktop-nav-collapsed .main-area {
        margin-left: 0;
        width: 100%;
    }
}

/* TASK-003 final cascade guard — these page-scoped rules must follow legacy themes. */
body.page-orders .stats-grid.stats-grid-pro {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}
body.page-orders .stat-card.stat-card-pro {
    display: grid;
    grid-template-columns: 32px 42px minmax(0, 1fr) 14px;
    grid-template-rows: 1fr 1fr;
    column-gap: 7px;
    height: 76px;
    min-height: 76px;
    max-height: 76px;
    padding: 8px 10px;
    border-radius: 12px;
}
body.page-orders .stat-card-pro .stat-icon {
    position: static;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 9px;
}
body.page-orders .stat-card-pro .stat-icon .omega-icon { width: 17px; height: 17px; }
body.page-orders .stat-card-pro .stat-value {
    position: static;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 25px;
}
body.page-orders .stat-card-pro .stat-title {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    margin: 0;
    font-size: 11.5px;
    line-height: 1.15;
}
body.page-orders .stat-card-pro .stat-sub {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    margin: 2px 0 0;
    font-size: 9.5px;
    line-height: 1.2;
}
body.page-orders .stat-card-pro .stat-trend {
    position: static;
    grid-column: 4;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 14px;
}
body.page-orders .service-orders-card { padding: 12px; }
body.page-orders .service-list-heading { margin-bottom: 9px; }
body.page-orders .service-filter {
    gap: 6px;
    margin-bottom: 9px;
    padding: 7px;
    border-radius: 11px;
}
body.page-orders .service-filter .field label { margin-bottom: 3px; font-size: 9.5px; }
body.page-orders .service-filter input,
body.page-orders .service-filter select,
body.page-orders .service-filter .btn { height: 34px; min-height: 34px; }
body.page-orders .service-orders-table th { padding: 6px 8px; }
body.page-orders .service-orders-table td { padding: 4px 7px; }
body.page-orders .service-order-device-line,
body.page-orders .service-inline-assignment { height: 52px; min-height: 52px; padding: 3px 0; }
body.page-orders .service-inline-control select,
body.page-orders .service-inline-assignment select { height: 32px; min-height: 32px; }
body.page-orders .service-orders-table .row-actions {
    flex-flow: row nowrap;
    gap: 5px;
}
body.page-orders .service-device-warranty-indicator {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    font-size: 11px;
}

@media (min-width: 981px) {
    body.page-orders .service-filter {
        grid-template-columns: minmax(170px, 1.3fr) minmax(125px, .9fr) minmax(105px, .7fr) minmax(145px, 1fr) minmax(112px, .75fr) minmax(112px, .75fr) minmax(125px, .9fr) 70px 70px;
    }
    body.page-orders .service-filter-search { grid-column: auto; }
}

@media (max-width: 980px) {
    body.page-orders .stats-grid.stats-grid-pro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }
    body.page-orders .stat-card.stat-card-pro {
        grid-template-columns: 28px 34px minmax(0, 1fr);
        height: 82px;
        min-height: 82px;
        max-height: 82px;
        padding: 7px 8px;
    }
    body.page-orders .stat-card-pro .stat-icon { width: 28px; height: 28px; }
    body.page-orders .stat-card-pro .stat-value { font-size: 22px; }
    body.page-orders .stat-card-pro .stat-title { font-size: 10.5px; }
    body.page-orders .stat-card-pro .stat-sub { font-size: 8.5px; }
    body.page-orders .stat-card-pro .stat-trend { display: none; }
    body.page-orders .service-filter { grid-template-columns: 1fr 1fr; }
    body.page-orders .service-filter-search { grid-column: 1 / -1; }
    body.page-orders .service-orders-table tr { padding: 9px; }
    body.page-orders .service-orders-table td {
        grid-template-columns: minmax(76px, 29%) minmax(0, 1fr);
        gap: 7px;
        padding: 5px 0;
    }
}

/* TASK-003A final cascade guard. */
body.page-orders .service-orders-card { padding: 9px 10px 10px; }
body.page-orders .service-list-heading.service-orders-heading {
    display: flex;
    min-height: 38px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 4px;
}
body.page-orders .service-orders-heading .card-title {
    min-width: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}
body.page-orders .service-filter[hidden] { display: none !important; }
body.page-orders .service-filter:not([hidden]) { margin: 5px 0 7px; }

/* Local service modernization — device labels and safe quick preview. */
.service-device-label-button {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    padding: 0;
    border: 1px solid #cbd3dd;
    border-radius: 50%;
    background: #fff;
    color: #344054;
    font: 900 14px/1 inherit;
    cursor: pointer;
}
.service-device-label-button:hover { border-color: #315d9b; color: #1f4e86; }
.service-device-label-button.is-active,
.service-device-label-button[aria-expanded="true"] {
    border-color: #315d9b;
    background: #315d9b;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(49,93,155,.14);
}
.service-device-label-field { margin-top: 8px; }
.service-device-label-field[hidden] { display: none !important; }
.service-device-label-field > label { color: #1f4e86; }
.service-intake-device-head-actions .service-device-complaint-button,
.service-intake-device-head-actions .service-device-label-button {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
}
.service-device-title .service-intake-device-head-actions { margin-left: auto; }

.service-device-label-field {
    max-width: 620px;
    padding: 10px;
    border: 1px solid #d8e3ef;
    border-radius: 10px;
    background: #f7faff;
}
.service-label-entry-row { display: flex; align-items: center; gap: 7px; }
.service-label-entry-row > input[data-device-label-input] { min-width: 0; flex: 1; background: #fff; }
.service-label-entry-row > input[data-device-label-input].is-scan-confirmed {
    border-color: #268455;
    box-shadow: 0 0 0 2px rgba(38,132,85,.12);
}
.service-label-input-meta {
    display: flex;
    min-height: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    color: #667085;
    font-size: 9.5px;
}
.service-label-input-meta [data-label-scan-status] { color: #1f7048; font-weight: 850; }
.service-label-photo-control {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    padding: 0;
    border: 1px solid #cbd7e5;
    border-radius: 50%;
    background: #fff;
    color: #1f4e86;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}
.service-label-photo-control:hover { border-color: #315d9b; background: #eef5fc; }
.service-label-photo-control svg { width: 17px; height: 17px; fill: currentColor; }
.service-label-photo-control input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}
.service-label-photo-preview,
.service-edit-photo-add[data-device-photo-preview] {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 9px;
}
.service-label-photo-preview[hidden],
.service-edit-photo-add[data-device-photo-preview][hidden] { display: none !important; }
.service-label-photo-existing { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 9px; }
.service-view-label-photos { border-left: 3px solid #315d9b; padding-left: 10px; }

@media (max-width: 760px) {
    .service-device-label-field { max-width: 100%; }
    .service-label-photo-existing { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.service-preview-trigger {
    display: inline;
    appearance: none;
    -webkit-appearance: none;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font: inherit;
    font-weight: 800;
    line-height: inherit;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
.service-preview-trigger:hover,
.service-preview-trigger:focus-visible { color: inherit !important; text-decoration: none; }
.service-preview-trigger:focus-visible { outline: 2px solid #315d9b; outline-offset: 2px; }
.service-device-main-row > .service-preview-trigger { min-width: 0; flex: 1; }
body.service-preview-open { overflow: hidden; }
.service-quick-preview {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: clamp(18px, 3vw, 48px) clamp(18px, 3vw, 48px) clamp(18px, 3vw, 48px) calc(280px + clamp(18px, 3vw, 48px));
    background: rgba(8, 20, 38, .42);
    backdrop-filter: blur(1.5px);
}
.desktop-nav-collapsed .service-quick-preview {
    padding-left: clamp(18px, 3vw, 48px);
}
.service-quick-preview[hidden] { display: none !important; }
.service-quick-preview-panel {
    display: flex;
    width: min(78%, 1180px);
    max-height: min(84vh, 820px);
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #cfd7e2;
    border-radius: 18px;
    background: #fff;
    color: #243044;
    box-shadow: 0 28px 80px rgba(8,20,38,.32), 0 3px 12px rgba(8,20,38,.16);
}
.service-quick-preview-head {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(180px, .65fr) max-content 48px;
    align-items: center;
    gap: 22px;
    padding: 20px 22px 18px;
    border-bottom: 1px solid #e1e6ed;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.service-quick-preview-heading,
.service-quick-preview-owner { min-width: 0; }
.service-quick-preview-heading > span,
.service-quick-preview-owner > span,
.service-preview-device p > span,
.service-preview-notes > span {
    display: block;
    margin-bottom: 4px;
    color: #667085;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .055em;
}
.service-quick-preview-heading strong,
.service-quick-preview-owner strong { display: block; overflow-wrap: anywhere; color: var(--omega-navy); }
.service-quick-preview-heading strong { margin-top: 3px; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.15; }
.service-quick-preview-owner { padding-left: 20px; border-left: 1px solid #d9e0e9; }
.service-quick-preview-owner strong { margin-top: 3px; font-size: 14px; line-height: 1.3; }
.service-quick-preview-owner[hidden] { display: none; }
.service-quick-preview-head [data-service-preview-close] {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    padding: 0 0 3px;
    border: 1px solid #d5dce5;
    border-radius: 12px;
    background: #fff;
    color: #475467;
    font: 500 30px/1 Arial, sans-serif;
    cursor: pointer;
}
.service-quick-preview-head [data-service-preview-close]:hover,
.service-quick-preview-head [data-service-preview-close]:focus-visible { border-color: #b60000; background: #fff2f2; color: #940000; }
.service-quick-preview-head [data-service-preview-close]:focus-visible { outline: 3px solid rgba(182,0,0,.16); outline-offset: 2px; }
.service-preview-hold-action {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid #d6a94f;
    border-radius: 8px;
    background: #fff8e8;
    color: #76500a;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.15;
    cursor: pointer;
    white-space: nowrap;
}
.service-preview-hold-action:hover { border-color: #bd8421; background: #ffefc6; color: #654000; }
.service-preview-hold-action:focus-visible { outline: 3px solid rgba(214,169,79,.28); outline-offset: 2px; }
.service-preview-hold-action[hidden] { display: none !important; }
.service-preview-hold-action.is-order { min-height: 40px; padding: 8px 13px; }
.service-preview-order-hold {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    padding: 11px 13px;
    border: 1px solid #ead8ad;
    border-radius: 10px;
    background: #fffaf0;
    color: #5c4b2b;
}
.service-preview-order-hold > div { min-width: 0; }
.service-preview-order-hold strong { color: #5b4211; font-size: 12px; }
.service-preview-order-hold p { margin: 3px 0 0; padding: 0; border: 0; color: #5c4b2b; font-size: 11px; line-height: 1.4; }
.service-preview-order-hold small { display: block; margin-top: 3px; color: #806b43; font-size: 9.5px; }
.service-quick-preview-content {
    --service-preview-scroll-padding-top: 20px;
    --service-preview-scroll-padding-inline: 22px;
    position: relative;
    z-index: 0;
    isolation: isolate;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 22px 24px;
    background: #fff;
    scrollbar-gutter: stable;
}
.service-preview-devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; }
.service-preview-z-flow,
.service-preview-id-flow { grid-template-columns: 1fr; }
.service-preview-device-switcher {
    position: sticky;
    z-index: 2;
    top: calc(var(--service-preview-scroll-padding-top) * -1);
    margin: -14px calc(var(--service-preview-scroll-padding-inline) * -1) 14px;
    padding: 10px var(--service-preview-scroll-padding-inline) 8px;
    border-bottom: 1px solid #dce3ec;
    background: #fff;
    box-shadow: 0 7px 10px -10px rgba(23,36,58,.45);
}
.service-quick-preview-content > .service-preview-device-switcher:first-child {
    margin-top: calc(var(--service-preview-scroll-padding-top) * -1);
    padding-top: 16px;
}
.service-preview-device-tabs {
    display: flex;
    max-width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 7px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}
.service-preview-device-tab {
    display: grid;
    min-width: 176px;
    max-width: 230px;
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 9px 10px;
    scroll-snap-align: center;
    text-align: left;
    border: 1px solid #d7e0ea;
    border-radius: 10px;
    background: #f8fafc;
    color: #344054;
    cursor: pointer;
}
.service-preview-device-tab:hover { border-color: #aebdce; background: #f2f6fa; }
.service-preview-device-tab.is-active { border-color: #1f6fd1; background: #eef5fd; box-shadow: 0 0 0 2px rgba(31,111,209,.1); }
.service-preview-device-tab:focus-visible { outline: 3px solid rgba(31,111,209,.22); outline-offset: 2px; }
.service-preview-device-tab-copy { display: grid; min-width: 0; gap: 2px; }
.service-preview-device-tab-copy small { color: #667085; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .045em; }
.service-preview-device-tab-copy strong { overflow: hidden; color: var(--omega-navy); font-size: 11.5px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.service-preview-device-tab .service-z-status { justify-self: start; max-width: 100%; padding: 3px 6px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.service-preview-device-hold-marker { justify-self: start; color: #76500a; font-size: 9px; font-weight: 850; }
.service-preview-device-position { margin: 1px 2px 0 !important; padding: 0 !important; border: 0 !important; color: #667085 !important; font-size: 10px !important; font-weight: 800; }
.service-preview-order-history { margin-top: 14px; border-top: 1px solid #dce3ec; padding-top: 12px; }
.service-preview-history-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #d6dee8; border-radius: 9px; background: #f7f9fc; color: var(--omega-navy); font: inherit; font-size: 12px; font-weight: 850; cursor: pointer; }
.service-preview-history-toggle:hover { border-color: #aebdce; background: #f1f5f9; }
.service-preview-history-toggle:focus-visible { outline: 3px solid rgba(31,111,209,.2); outline-offset: 2px; }
.service-preview-history-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .18s ease; }
.service-preview-history-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.service-preview-history-panel { padding: 6px 10px 0; }
.service-preview-history-list { display: grid; }
.service-preview-history-item { position: relative; display: grid; grid-template-columns: 12px minmax(0,1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid #e7ebf0; }
.service-preview-history-item:last-child { border-bottom: 0; }
.service-preview-history-dot { width: 8px; height: 8px; margin-top: 4px; border: 2px solid #fff; border-radius: 50%; background: #5279a8; box-shadow: 0 0 0 1px #b8c7d8; }
.service-preview-history-item > div { display: grid; min-width: 0; gap: 2px; }
.service-preview-history-item strong { color: #253148; font-size: 11px; line-height: 1.35; }
.service-preview-history-item time { color: #667085; font-size: 9.5px; }
.service-preview-history-item p { margin: 2px 0 0 !important; padding: 0 !important; border: 0 !important; color: #475467 !important; font-size: 10.5px !important; line-height: 1.4 !important; }
@media (min-width: 1100px) {
    .service-quick-preview:has(.service-preview-z-flow, .service-preview-id-flow) .service-quick-preview-panel { width: min(96%, 1180px); }
    .service-preview-z-flow .technician-paper-body,
    .service-preview-id-flow .technician-paper-body { grid-template-columns: minmax(250px, 1fr) minmax(280px, 1.05fr) minmax(145px, .52fr); }
}
.service-preview-z-device { padding: 14px; background: #fff; }
.service-preview-device .service-preview-device-summary {
    display: grid;
    grid-template-columns: minmax(110px,.65fr) minmax(160px,1.35fr) repeat(4,minmax(105px,1fr));
    gap: 1px;
    margin: 12px 0 4px !important;
    overflow: hidden;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #dbe3ec;
}
.service-preview-device .service-preview-device-summary > div { min-width: 0; padding: 9px 10px; background: #fff; }
.service-preview-device .service-preview-device-summary > div:nth-child(-n+2) { background: #f7faff; }
.service-preview-device .service-preview-device-summary dt { margin: 0 0 3px; color: #667085; font-size: 8.5px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.service-preview-device .service-preview-device-summary dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #17243a; font-size: 11.5px; font-weight: 800; line-height: 1.3; }
.service-preview-device .service-preview-device-summary > div:nth-child(-n+2) dd { color: var(--omega-navy); font-size: 12.5px; }
.service-preview-z-device > .service-preview-identifiers { margin-bottom: 12px; }
.service-preview-stage { margin-top: 12px; padding: 12px; border: 1px solid #dce3ec; border-radius: 10px; background: #fbfcfe; }
.service-preview-stage > header { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.service-preview-stage > header > span { flex: 0 0 auto; padding: 3px 6px; border-radius: 5px; background: #e9f1fb; color: #315f91; font-size: 9px; font-weight: 850; letter-spacing: .055em; }
.service-preview-stage > header > strong { color: var(--omega-navy); font-size: 13px; }
.service-preview-stage > .technician-paper { margin: 0; border: 0; border-radius: 8px; box-shadow: none; }
.service-preview-stage > .repair-review-empty { margin: 0; }
.service-preview-stage-layout { min-width: 0; }
.service-preview-stage-layout.has-gallery { display: grid; grid-template-columns: minmax(0, 1fr) 272px; align-items: start; gap: 18px; }
.service-preview-stage-layout > div { min-width: 0; }
.service-preview-stage-layout .diagnostic-shared-photos:has(> p) { display: none; }
.service-preview-stage-layout [data-diagnostic-report-renderer] .technician-paper-body:has(.diagnostic-shared-photos > p) { grid-template-columns: minmax(250px, .95fr) minmax(280px, 1.15fr); }
.service-preview-gallery { min-width: 0; padding: 11px; border: 1px solid #dce3ec; border-radius: 10px; background: #f8fafc; }
.service-preview-gallery > header { margin-bottom: 9px; }
.service-preview-gallery > header strong { color: #344054; font-size: 10.5px; }
.service-preview-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.service-preview-gallery-grid button {
    display: block;
    width: 100%;
    aspect-ratio: 1.22;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid #d5dde7;
    border-radius: 7px;
    background: #fff;
    color: #667085;
    cursor: zoom-in;
}
.service-preview-gallery-grid button[hidden] { display: none; }
.service-preview-gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.service-preview-gallery-all { margin-top: 8px; padding: 0; border: 0; background: transparent; color: #1f6fd1; font-size: 10px; font-weight: 800; cursor: pointer; }
.service-preview-gallery-all:hover,
.service-preview-gallery-all:focus-visible { text-decoration: underline; }
.service-preview-stage-side { display: grid; min-width: 0; gap: 10px; }
.service-preview-id-quote { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid; border-radius: 10px; }
.service-preview-id-quote.is-diagnostic { border-color: #f4c995; background: #fff7ed; color: #c86408; }
.service-preview-id-quote.is-repair { border-color: #b9ddca; background: #f0faf4; color: #268456; }
.service-preview-id-quote-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.72); }
.service-preview-id-quote-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-preview-id-quote-copy { display: grid; min-width: 0; gap: 3px; }
.service-preview-id-quote-copy > span { color: currentColor; font-size: 9.5px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.service-preview-id-quote-copy > strong { color: #17324f; font-size: 19px; line-height: 1.15; overflow-wrap: anywhere; }
.service-quick-preview-footer { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 8px; padding: 12px 22px; border-top: 1px solid #e1e6ed; background: #f8fafc; }
.service-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(8,20,38,.72);
}
.service-gallery-lightbox[hidden] { display: none !important; }
.service-gallery-lightbox > div { width: min(920px, 92vw); max-height: 88vh; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.4); }
.service-gallery-lightbox header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #e1e6ed; }
.service-gallery-lightbox header strong { color: var(--omega-navy); font-size: 14px; }
.service-gallery-lightbox header button { width: 38px; height: 38px; border: 1px solid #d5dce5; border-radius: 9px; background: #fff; color: #475467; font-size: 24px; cursor: pointer; }
.service-gallery-lightbox [data-service-gallery-content] { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; max-height: calc(88vh - 65px); overflow-y: auto; padding: 14px; }
.service-gallery-lightbox [data-service-gallery-content] a { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 9px; background: #eef2f6; }
.service-gallery-lightbox [data-service-gallery-content] img { width: 100%; height: 100%; object-fit: cover; }
.service-preview-published-quote { margin-top: 10px; padding: 10px; border: 1px solid #d8e1ec; border-radius: 8px; background: #fff; }
.service-preview-published-quote > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.service-preview-published-quote > header strong { color: var(--omega-navy); font-size: 12px; }
.service-preview-published-quote > header span { color: #2f6f4e; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.service-preview-published-quote dl { display: flex; flex-wrap: wrap; gap: 8px; }
.service-preview-published-quote dl > div { min-width: 150px; padding: 7px 9px; }
.service-preview-published-quote p { margin-top: 8px; padding-top: 8px; }
.service-quick-preview-heading small { display: block; margin-top: 3px; color: #667085; font-size: 11px; font-weight: 700; }
.service-preview-device {
    min-width: 0;
    padding: 17px;
    border: 1px solid #dce3ec;
    border-radius: 14px;
    background: #fbfcfe;
    box-shadow: 0 2px 8px rgba(16,24,40,.05);
}
.service-preview-device-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.service-preview-device-head strong { min-width: 0; overflow-wrap: anywhere; color: var(--omega-navy); font-size: 16px; line-height: 1.3; }
.service-preview-device-head > span { flex: 0 0 auto; padding: 4px 7px; border-radius: 7px; background: #edf2f7; color: #475467; font-size: 10px; font-weight: 750; }
.service-preview-identifiers { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 10px 0 14px; }
.service-preview-identifiers span { padding: 5px 8px; border: 1px solid #dde4ec; border-radius: 7px; background: #fff; color: #596579; font-size: 10.5px; font-weight: 700; }
.service-preview-device dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; margin: 0; }
.service-preview-device dl > div { min-width: 0; padding: 9px 10px; border-radius: 8px; background: #f0f4f8; }
.service-preview-device dt { margin-bottom: 3px; color: #667085; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.service-preview-device dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #243044; font-size: 11.5px; font-weight: 750; line-height: 1.35; }
.service-preview-device p,
.service-preview-notes { margin: 14px 0 0; padding-top: 13px; border-top: 1px dashed #d3dbe5; color: #344054; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.service-preview-notes { padding: 14px 2px 0; }
.company-service-status-badge {
    display: inline-flex;
    max-width: 100%;
    padding: 5px 8px;
    border: 1px solid #c7d7ea;
    border-radius: 8px;
    background: #eef5fc;
    color: #284f78;
    font-size: 11px;
    font-weight: 750;
}
.service-preview-company-device { grid-column: 1 / -1; }
.service-preview-id-device { padding: 4px; border: 0; background: transparent; box-shadow: none; }
.service-preview-id-state { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.service-preview-id-state > span { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border: 1px solid #d8e0e9; border-radius: 7px; background: #f5f7fa; color: #475467; font-size: 10px; font-weight: 800; }
.service-preview-id-state .service-id-status.is-oczekujace { border-color: #d0d5dd; background: #f2f4f7; color: #475467; }
.service-preview-id-state .service-id-status.is-realizowane { border-color: #b9d5f4; background: #eaf3fd; color: #185d9d; }
.service-preview-id-state .service-id-status.is-czeka_na_czesci { border-color: #eadb99; background: #fff8d9; color: #79620d; }
.service-preview-id-state .service-id-status.is-potrzebna_decyzja { border-color: #d7c7ef; background: #f3edfb; color: #65439a; }
.service-preview-id-state .service-id-status.is-bez_naprawy { border-color: #efc0c0; background: #fff0f0; color: #a33a3a; }
.service-preview-id-state .service-id-status.is-naprawione { border-color: #bddfc9; background: #edf8f1; color: #267049; }
.service-preview-id-state .service-preview-hold-action { min-height: 25px; padding: 4px 8px; }
.service-preview-device-hold { margin: 9px 0 0; padding: 8px 10px; border: 1px solid #ead8ad; border-radius: 8px; background: #fffaf0; color: #5c4b2b; font-size: 11px; line-height: 1.45; }
.service-preview-device-hold small { display: block; margin-top: 3px; color: #806b43; font-size: 9.5px; }
.service-hold-dialog {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8,20,38,.58);
}
.service-hold-dialog[hidden] { display: none !important; }
.service-hold-dialog-panel { width: min(480px, 100%); overflow: hidden; border: 1px solid #d5dce5; border-radius: 14px; background: #fff; box-shadow: 0 28px 80px rgba(8,20,38,.34); }
.service-hold-dialog-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid #e6e9ee; background: #fffaf0; }
.service-hold-dialog-panel > header span { display: block; color: #806b43; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.service-hold-dialog-panel > header h2 { margin: 3px 0 0; color: var(--omega-navy); font-size: 18px; }
.service-hold-dialog-panel > header button { width: 38px; height: 38px; border: 1px solid #d7dce3; border-radius: 9px; background: #fff; color: #475467; font-size: 24px; cursor: pointer; }
.service-hold-dialog-body { padding: 17px 18px 18px; }
.service-hold-dialog-body > p { margin: 0 0 14px; color: #596579; font-size: 12px; line-height: 1.5; }
.service-hold-dialog-body label { display: grid; gap: 6px; color: #344054; font-size: 12px; font-weight: 800; }
.service-hold-dialog-body [hidden] { display: none !important; }
.service-hold-dialog-body textarea { min-height: 104px; resize: vertical; }
.service-hold-dialog-feedback { margin: 10px 0 0 !important; padding: 9px 10px; border: 1px solid #e9baba; border-radius: 8px; background: #fff4f4; color: #8c2626 !important; }
.service-hold-dialog-panel > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid #e6e9ee; background: #f8fafc; }
.service-hold-confirm { border: 1px solid #d6a94f; background: #f3bd4e; color: #3f2b06; }
.service-hold-confirm:hover { border-color: #bd8421; background: #e8aa2e; color: #302000; }
.service-quick-preview-content:has(.service-preview-id-flow) { padding-top: 14px; }
.service-preview-id-flow { gap: 0; }
.service-preview-id-device > .service-preview-device-head { align-items: center; margin-bottom: 0; }
.service-preview-device-head > .service-preview-z-device-title { display: grid; min-width: 0; gap: 2px; padding: 0; border: 0; background: transparent; }
.service-preview-context-action { display: inline-flex; min-height: 30px; align-items: center; justify-content: center; padding: 5px 12px; border: 1px solid #bfd2e8; border-radius: 7px; background: #f3f7fc; color: #315d9b; font-size: 11px; font-weight: 800; line-height: 1; text-decoration: none; }
.service-preview-context-action:hover { border-color: #8eacd0; background: #eaf2fb; color: #244d7f; }
.service-preview-context-action.is-review { border-color: #c4b5fd; background: #f7f5ff; color: #6d28d9; }
.service-preview-context-action.is-review:hover { border-color: #a78bfa; background: #f1edff; }
.service-preview-repair-review-action { display: flex; justify-content: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e1e7ef; }
.service-preview-z-device-title > strong { overflow-wrap: anywhere; color: var(--omega-navy); font-size: 16px; line-height: 1.3; }
.service-preview-z-device-title > small { color: #667085; font-size: 10px; font-weight: 750; }
.service-preview-id-flow .service-preview-stage {
    position: relative;
    margin-top: 18px;
    padding: 22px 24px 24px 28px;
    overflow: hidden;
    border: 1px solid #dce4ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16, 24, 40, .045);
}
.service-preview-id-flow .service-preview-stage:first-of-type { margin-top: 11px; }
.service-preview-id-flow .service-preview-stage::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: #eb8b24; }
.service-preview-id-flow .service-preview-stage[data-service-preview-stage="1"]::before { background: #1f6fd1; }
.service-preview-id-flow .service-preview-stage[data-service-preview-stage="3"]::before { background: #267049; }
.service-preview-id-flow .service-preview-id-stage-head { display: flex; align-items: center; gap: 13px; margin: 0 0 20px; }
.service-preview-id-flow .service-preview-id-stage-head > .service-preview-id-stage-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 0;
    place-items: center;
    border: 1px solid #c9daee;
    border-radius: 10px;
    background: #fff5e9;
    color: #d66e0b;
}
.service-preview-id-flow .service-preview-stage[data-service-preview-stage="1"] .service-preview-id-stage-icon { border-color: #c9daee; background: #eef5fd; color: #1f6fd1; }
.service-preview-id-flow .service-preview-stage[data-service-preview-stage="2"] .service-preview-id-stage-icon { border-color: #f1cfaa; background: #fff5e9; color: #d66e0b; }
.service-preview-id-flow .service-preview-stage[data-service-preview-stage="3"] .service-preview-id-stage-icon { border-color: #c7dfd0; background: #eef8f2; color: #267049; }
.service-preview-id-stage-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-preview-id-flow .service-preview-id-stage-head > .service-preview-id-stage-title { display: grid; gap: 2px; padding: 0; background: transparent; }
.service-preview-id-stage-title small { color: #d66e0b; font-size: 9px; font-weight: 850; letter-spacing: .075em; }
.service-preview-id-flow .service-preview-stage[data-service-preview-stage="1"] .service-preview-id-stage-title small { color: #1f6fd1; }
.service-preview-id-flow .service-preview-stage[data-service-preview-stage="3"] .service-preview-id-stage-title small { color: #267049; }
.service-preview-id-flow .service-preview-id-stage-title strong { color: var(--omega-navy); font-size: 18px; line-height: 1.25; }
.service-preview-id-facts { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 0 22px !important; }
.service-preview-id-device .service-preview-id-facts > div { padding: 9px 0; border-bottom: 1px solid #e8edf3; border-radius: 0; background: transparent; }
.service-preview-id-device .service-preview-id-facts dt { margin-bottom: 4px; }
.service-preview-id-fault { margin-top: 12px; }
.service-preview-id-fault > span { display: block; margin-bottom: 5px; color: #667085; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .045em; }
.service-preview-id-fault > div { min-height: 54px; padding: 10px 11px; border: 1px solid #d8e0e9; border-radius: 8px; background: #f8fafc; color: #344054; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.service-preview-id-flow .service-preview-stage > .technician-paper { padding: 0; background: transparent; }
.service-preview-id-flow [data-diagnostic-report-renderer] .technician-paper-head { display: none; }
.service-preview-id-flow [data-repair-report-form-renderer] { position: relative; }
.service-preview-id-flow [data-repair-report-form-renderer] .technician-paper-head { position: absolute; z-index: 1; top: -43px; right: 0; display: flex; min-height: 0; margin: 0; padding: 0; border: 0; }
.service-preview-id-flow [data-repair-report-form-renderer] .technician-paper-head h2,
.service-preview-id-flow [data-repair-report-form-renderer] .technician-paper-head > div:first-of-type { display: none; }
.service-preview-id-flow [data-repair-report-form-renderer] .technician-paper-head > div:last-of-type { gap: 5px; margin-left: auto; padding: 4px 8px; border: 1px solid #d9e5dc; border-radius: 999px; background: #f3faf6; }
.service-preview-id-flow [data-repair-report-form-renderer] .technician-paper-head > div:last-of-type span { font-size: 9px; }
.service-preview-id-flow [data-repair-report-form-renderer] .technician-paper-head > div:last-of-type strong { color: #267049; font-size: 10px; }
.service-preview-id-flow .technician-paper-body { padding: 0; gap: 16px; }
.service-preview-id-flow .technician-equipment { display: none; }
.service-preview-id-flow .technician-work-row { min-height: 29px; }
.service-preview-id-flow .technician-work-detail { min-height: 28px; }
.service-preview-id-flow .technician-estimated-time-line,
.service-preview-id-flow .technician-time-line { min-height: 38px; padding: 5px 7px; border: 1px solid #dbe3ec; border-radius: 8px; background: #f8fafc; }
.service-preview-id-flow .technician-time-summary { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 7px 10px; border: 1px solid #dbe3ec; border-radius: 8px; background: #f8fafc; white-space: nowrap; }
.service-preview-id-flow .technician-time-summary > span { color: #17243a; font-size: 10.5px; font-weight: 800; }
.service-preview-id-flow .technician-time-summary > strong { color: #173d68; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.service-preview-id-flow .technician-estimated-time-line > span,
.service-preview-id-flow .technician-time-line > span { color: #17243a; font-weight: 800; }
.service-preview-id-flow .technician-estimated-time-line input,
.service-preview-id-flow .technician-time-line input { height: 30px; border-color: #cbd7e4; background: #fff; color: #17243a; font-size: 11px; font-weight: 750; }
.service-preview-id-flow .technician-time-line { grid-template-columns: minmax(120px, 1fr) minmax(88px, .7fr) minmax(82px, .7fr); }
.service-preview-id-flow .technician-time-line input { min-width: 46px; }
.service-preview-id-flow .technician-time-line small { color: #526178; font-size: 9px; font-weight: 700; }
.service-preview-id-flow .technician-paper textarea[readonly] { min-height: 84px; }
.service-preview-id-flow .technician-paper-notes { gap: 10px; }
.service-preview-id-flow [data-repair-report-form-renderer] .technician-paper-body { grid-template-columns: minmax(250px, .95fr) minmax(280px, 1.15fr); }
.service-preview-id-flow .diagnostic-shared-photos:has(> p) { display: none; }
.service-preview-work-history { margin-top: 14px; padding-top: 13px; border-top: 1px dashed #d3dbe5; }
.service-preview-work-history > span {
    display: block;
    margin-bottom: 7px;
    color: #667085;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .055em;
}
.service-preview-work-history p { margin: 0; padding: 7px 0; border-top: 1px solid #e7ebf0; color: #344054; font-size: 11px; line-height: 1.45; }
.service-preview-work-history p:first-of-type { border-top: 0; }

@media (max-width: 1440px) {
    .service-quick-preview { padding-left: clamp(18px, 3vw, 48px); }
}

@media (max-width: 760px) {
    .service-intake-device-head-actions { flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
    .service-intake-device-head-actions .service-device-complaint-button,
    .service-intake-device-head-actions .service-device-label-button { width: 44px; height: 44px; flex-basis: 44px; }
    .service-device-title { align-items: flex-start; }
    .service-quick-preview {
        padding: 10px;
        place-items: center;
        background: rgba(8,20,38,.48);
    }
    .service-quick-preview-panel {
        width: calc(100vw - 20px);
        max-width: none;
        max-height: calc(100dvh - 20px);
        border-radius: 15px;
    }
    .service-quick-preview-head { grid-template-columns: minmax(0,1fr) max-content 46px; gap: 10px; padding: 15px 15px 13px; }
    .service-quick-preview-heading strong { font-size: 19px; }
    .service-quick-preview-owner { grid-column: 1 / -1; grid-row: 2; padding: 10px 0 0; border-top: 1px solid #d9e0e9; border-left: 0; }
    .service-quick-preview-owner strong { font-size: 13px; }
    .service-quick-preview-head [data-service-preview-close] { grid-column: 3; grid-row: 1; width: 44px; height: 44px; }
    .service-preview-hold-action.is-order { grid-column: 2; grid-row: 1; min-height: 40px; padding: 7px 9px; font-size: 10px; }
    .service-quick-preview-content {
        --service-preview-scroll-padding-top: 14px;
        --service-preview-scroll-padding-inline: 14px;
        padding: 14px 14px 18px;
    }
    .service-quick-preview-footer { padding: 10px 14px; }
    .service-preview-stage-layout.has-gallery { grid-template-columns: 1fr; }
    .service-preview-gallery { margin-top: 12px; }
    .service-gallery-lightbox [data-service-gallery-content] { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .service-preview-devices { grid-template-columns: 1fr; gap: 11px; }
    .service-preview-device { padding: 14px; }
    .service-preview-id-device { padding: 2px; }
    .service-preview-id-flow .service-preview-stage { padding: 18px 16px 20px 20px; }
    .service-preview-id-flow .technician-paper-body:has(.diagnostic-shared-photos > p) { grid-template-columns: 1fr; }
    .service-preview-id-flow .service-preview-id-stage-head > .service-preview-id-stage-icon { width: 34px; height: 34px; flex-basis: 34px; }
    .service-preview-id-flow .service-preview-id-stage-title strong { font-size: 16px; }
    .service-preview-device-head { flex-direction: column; }
    .service-preview-device .service-preview-device-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .service-preview-device dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-preview-trigger { white-space: normal; }
}

@media (max-width: 430px) {
    .service-gallery-lightbox { padding: 10px; }
    .service-gallery-lightbox [data-service-gallery-content] { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .service-preview-device-switcher { margin-top: -8px; margin-bottom: 12px; padding-top: 8px; }
    .service-quick-preview-content > .service-preview-device-switcher:first-child {
        margin-top: calc(var(--service-preview-scroll-padding-top) * -1);
        padding-top: 14px;
    }
    .service-preview-device-tabs { flex-wrap: nowrap; }
    .service-preview-device-tab { min-width: 158px; max-width: 190px; padding: 8px 9px; }
}

@media (max-width: 620px) {
    body.page-orders .content { padding-right: 8px; padding-left: 8px; }
    body.page-orders .service-orders-card { padding: 8px; }
    body.page-orders .service-list-heading.service-orders-heading {
        min-height: 40px;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        margin-bottom: 3px;
    }
    body.page-orders .service-orders-heading .card-title { font-size: 13.5px; }
    body.page-orders .service-filter { grid-template-columns: 1fr; }
    body.page-orders .service-filter-search { grid-column: auto; }
    body.page-orders .service-filter .btn { width: 100%; min-height: 42px; }
}


/* OMEGA SERVICE BOSS LAYOUT V1 */

@media (min-width: 1200px) {
    body.page-orders .stats-grid.stats-grid-pro {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 14px;
    }

    body.page-orders .stat-card.stat-card-pro {
        min-height: 88px;
        padding: 13px 14px 12px 66px;
        border: 1px solid #e6eaf0;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 3px 12px rgba(15, 23, 42, .045);
    }

    body.page-orders .stat-card-pro .stat-icon {
        left: 14px;
        top: 17px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    body.page-orders .stat-card-pro .stat-value {
        top: 11px;
        left: 66px;
        font-size: 22px;
        line-height: 1;
    }

    body.page-orders .stat-card-pro .stat-title {
        margin-top: 25px;
        font-size: 10px;
        letter-spacing: .015em;
    }

    body.page-orders .stat-card-pro .stat-sub {
        margin-top: 4px;
        font-size: 9px;
    }

    body.page-orders .stat-card-pro .stat-trend {
        display: none;
    }

    body.page-orders .service-orders-table table {
        width: 100%;
        min-width: 1260px;
        table-layout: fixed;
    }

    body.page-orders .service-orders-table .service-width-order {
        width: 150px;
    }

    body.page-orders .service-orders-table .service-width-client {
        width: 165px;
    }

    body.page-orders .service-orders-table .service-width-number {
        width: 44px;
    }

    body.page-orders .service-orders-table .service-width-device {
        width: auto;
    }

    body.page-orders .service-orders-table .service-width-complaint {
        width: 135px;
    }

    body.page-orders .service-orders-table .service-width-priority {
        width: 108px;
    }

    body.page-orders .service-orders-table .service-width-status {
        width: 155px;
    }

    body.page-orders .service-orders-table .service-width-technician {
        width: 190px;
    }

    body.page-orders .service-orders-table .service-width-edit {
        width: 72px;
    }

    body.page-orders .service-orders-table th {
        height: 36px;
        padding: 7px 9px;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .025em;
        text-transform: uppercase;
        color: #475467;
        background: #f8fafc;
        border-bottom: 1px solid #e6eaf0;
    }

    body.page-orders .service-orders-table td {
        padding: 5px 9px;
        border-bottom: 1px solid #e7ebf0;
        vertical-align: middle;
    }

    body.page-orders .service-orders-table tbody > tr {
        height: 48px;
    }

    body.page-orders .service-orders-table .service-col-number {
        width: 44px;
        text-align: center;
        font-size: 11px;
        font-weight: 800;
        color: #344054;
    }

    body.page-orders .service-orders-table .service-col-complaint {
        width: 135px;
        text-align: left;
    }

    body.page-orders .service-orders-table .service-col-edit {
        width: 72px;
        text-align: center;
    }
}

body.page-orders .service-orders-table td.service-order-zone-cell,
body.page-orders .service-orders-table td.service-device-zone-cell {
    background: #fff;
}

body.page-orders .service-orders-table td.service-device-zone-status-realizowane {
    background: #edf6ff;
}

body.page-orders .service-orders-table td.service-device-zone-status-zakonczone {
    background: #edf9f0;
}

body.page-orders .service-orders-table td.service-device-zone-status-zakonczone_bez_naprawy {
    background: #f4f6f8;
}

body.page-orders .service-orders-table td.service-device-zone-status-naprawione_do_wyceny,
body.page-orders .service-orders-table td.service-device-zone-status-naprawione_do_odbioru {
    background: #f6edff;
}

body.page-orders .service-orders-table td.service-device-zone-status-czeka_na_czesci,
body.page-orders .service-orders-table td.service-device-zone-status-oczekuje_na_czesci {
    background: #fff3e8;
}

body.page-orders .service-orders-table tbody tr:hover > td {
    filter: brightness(.985);
}

body.page-orders .service-orders-table .service-flags-inline {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
}

body.page-orders .service-prequote-badge {
    min-height: 20px;
    margin: 0;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 9px;
    letter-spacing: 0;
    text-transform: none;
}

body.page-orders .service-device-warranty-indicator {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    border-radius: 6px;
}

body.page-orders .service-multiorder-badge {
    margin-top: 7px;
    padding: 3px 6px;
    border-color: #cfe0ff;
    border-radius: 5px;
    background: #f2f7ff;
    color: #175cd3;
    font-size: 8px;
}

body.page-orders .service-order-device-count {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: #475467;
    font-size: 10px;
}

body.page-orders .service-order-device-count strong {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 5px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #101828;
    font-size: 11px;
}

body.page-orders .service-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

body.page-orders .service-row-actions.is-unified-manager-actions {
    display: grid;
    grid-template-columns: 42px 29px;
    justify-content: center;
    column-gap: 4px;
}

body.page-orders .service-action-slot-quote {
    display: grid;
    width: 42px;
    min-height: 29px;
    grid-column: 1;
    grid-row: 1;
    place-items: center;
}

body.page-orders .service-row-actions.is-unified-manager-actions .service-icon-more {
    grid-column: 2;
    grid-row: 1;
}

body.page-orders .service-row-actions.is-unified-manager-actions [data-service-release-form] {
    grid-column: 1 / -1;
    grid-row: 2;
}

body.page-orders .service-icon-action {
    display: inline-grid;
    place-items: center;
    width: 29px;
    height: 29px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #475467;
    background: transparent;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

body.page-orders .service-icon-action:hover {
    border-color: #d0d5dd;
    background: rgba(255,255,255,.72);
    color: #101828;
}

body.page-orders .service-context-action {
    width: auto;
    min-width: 30px;
    padding-inline: 9px;
    border-color: #bfd2e8;
    background: #f3f7fc;
    color: #315d9b;
    font-size: 12px;
    font-weight: 700;
}

body.page-orders .service-context-action.is-review {
    border-color: #c4b5fd;
    background: #f7f5ff;
    color: #6d28d9;
}

body.page-orders .service-icon-action svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.page-orders .service-icon-more {
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 760px) {
    body.page-orders .service-orders-table .service-col-number {
        display: none;
    }

    body.page-orders .service-row-actions {
        justify-content: flex-start;
    }
}

/* TASK-004B final cascade — page-scoped values must win over legacy service layers. */
body.page-orders .stats-grid.stats-grid-pro { gap: 10px; margin-bottom: 12px; }
body.page-orders .stat-card.stat-card-pro { min-height: 76px; border-color: #e5e9ef; border-radius: 10px; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
body.page-orders .service-orders-card { padding: 12px; }
body.page-orders .service-orders-heading { min-height: 42px; margin-bottom: 5px; }
body.page-orders .service-orders-table { border-color: #e3e8ef; border-radius: 9px; }
body.page-orders .service-orders-table td.service-order-zone-cell { background: #fff; color: #344054; }
body.page-orders .service-orders-table td.service-order-zone-cell + td.service-order-zone-cell { border-right: 1px solid #e3e8ef; }
body.page-orders .service-orders-table td.service-device-zone-cell { background: #f7f8fa; }
body.page-orders .service-orders-table td.service-device-zone-status-oczekujace { background: #f3f4f6; }
body.page-orders .service-orders-table td.service-device-zone-status-realizowane { background: #eaf4fd; }
body.page-orders .service-orders-table td.service-device-zone-status-czeka_na_czesci,
body.page-orders .service-orders-table td.service-device-zone-status-oczekuje_na_czesci { background: #fff3dc; }
body.page-orders .service-orders-table td.service-device-zone-status-naprawione_do_wyceny,
body.page-orders .service-orders-table td.service-device-zone-status-naprawione_do_odbioru { background: #f3edfb; }
body.page-orders .service-orders-table td.service-device-zone-status-oczekuje_na_decyzje_wyceny,
body.page-orders .service-orders-table td.service-device-zone-status-oczekuje_na_review { background: #fff0e5; }
body.page-orders .service-orders-table td.service-device-zone-status-wycenione_do_wysylki { background: #e8f7f5; }
body.page-orders .service-orders-table td.service-device-zone-status-zakonczone { background: #eaf7ed; }
body.page-orders .service-orders-table td.service-device-zone-status-zakonczone_bez_naprawy { background: #f4eeee; }
body.page-orders .service-status-select[data-value="oczekuje_na_decyzje_wyceny"] { border-color: #e6ad7e; background: #fff0e5; color: #8a4613; }
body.page-orders .service-status-select[data-value="oczekuje_na_review"] { border-color: #d9a36f; background: #fff2e7; color: #7c4518; }
body.page-orders .service-flags-inline { min-height: 24px; align-items: center; }
body.page-orders .service-inline-control select,
body.page-orders .service-inline-assignment select { border-radius: 7px; }
body.page-orders .service-row-actions { width: 100%; }

@media (min-width: 981px) {
    body.page-orders .stats-grid.stats-grid-pro { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    body.page-orders .service-orders-table table { min-width: 1180px; table-layout: fixed; }
    body.page-orders .service-orders-table .service-width-order { width: 132px; }
    body.page-orders .service-orders-table .service-width-client { width: 158px; }
    body.page-orders .service-orders-table .service-width-number { width: 38px; }
    body.page-orders .service-orders-table .service-width-device { width: auto; }
    body.page-orders .service-orders-table .service-width-complaint { width: 76px; }
    body.page-orders .service-orders-table .service-width-priority { width: 108px; }
    body.page-orders .service-orders-table .service-width-status { width: 168px; }
    body.page-orders .service-orders-table .service-width-technician { width: 168px; }
    body.page-orders .service-orders-table .service-width-edit { width: 118px; }
    body.page-orders .service-orders-table th { height: 34px; padding: 6px 7px; color: #526071; background: #f7f9fb; font-size: 9px; letter-spacing: .035em; }
    body.page-orders .service-orders-table td { padding: 4px 7px; }
    body.page-orders .service-orders-table tbody > tr { height: 46px; }
    body.page-orders .service-orders-table .service-col-number,
    body.page-orders .service-orders-table .service-col-complaint,
    body.page-orders .service-orders-table .service-col-edit { width: auto; }
    body.page-orders .service-orders-table .service-col-complaint { text-align: left; }
    body.page-orders .service-device-row .service-inline-control select,
    body.page-orders .service-device-row .service-inline-assignment select { height: 34px; min-height: 34px; max-height: 34px; padding-top: 5px; padding-bottom: 5px; font-size: 11px; }
}

@media (min-width: 1200px) {
    body.page-orders .stat-card.stat-card-pro { min-height: 76px; padding: 10px 12px 9px 58px; }
    body.page-orders .stat-card-pro .stat-icon { top: 14px; left: 12px; width: 36px; height: 36px; }
    body.page-orders .stat-card-pro .stat-value { top: 9px; left: 58px; font-size: 21px; }
    body.page-orders .stat-card-pro .stat-title { margin-top: 22px; }
    body.page-orders .stat-card-pro .stat-sub { margin-top: 3px; }
}

@media (min-width: 621px) and (max-width: 980px) {
    body.page-orders .stats-grid.stats-grid-pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.page-orders .stats-grid.stats-grid-pro > :last-child { grid-column: 1 / -1; }
    body.page-orders .service-orders-table tbody > tr { border: 1px solid #e1e6ed; box-shadow: 0 2px 7px rgba(15,23,42,.035); }
}

@media (max-width: 620px) {
    body.page-orders .stats-grid.stats-grid-pro { grid-template-columns: 1fr; gap: 7px; }
    body.page-orders .stat-card.stat-card-pro { min-height: 70px; }
    body.page-orders .service-orders-table tbody { gap: 8px; }
    body.page-orders .service-orders-table tbody > tr { grid-template-columns: 1fr; gap: 7px; padding: 10px; border: 1px solid #dfe5ec; border-radius: 10px; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
    body.page-orders .service-device-row > [data-label],
    body.page-orders .service-device-row > .service-device-cell,
    body.page-orders .service-device-row > .service-col-complaint,
    body.page-orders .service-device-row > .service-col-status,
    body.page-orders .service-device-row > .service-col-technician,
    body.page-orders .service-device-row > .service-col-edit { grid-column: 1; grid-row: auto; }
    body.page-orders .service-device-row > [data-label="Nr"] { display: none; }
    body.page-orders .service-orders-table td.service-device-zone-cell { padding: 6px; border-radius: 7px; }
    body.page-orders .service-row-actions { justify-content: flex-end; }
}

/* TASK-004B.1 final cascade. */
body.page-orders .service-orders-table td.service-device-zone-status-wycenione_do_wysylki,
body.page-orders .service-orders-table td.service-device-zone-status-bez_naprawy_do_wysylki { background: #f8efed; }
body.page-orders .service-status-select[data-value="wycenione_do_wysylki"] { border-color: #a8d8d3; background: #edf9f7; color: #176963; }
body.page-orders .service-status-select[data-value="bez_naprawy_do_wysylki"] { border-color: #e0b8b5; background: #fff4f3; color: #a23b35; }
body.page-orders .service-priority-select[data-value="niski"] { border-color: #b9dcc4; background: #f3faf5; color: #286b40; }
body.page-orders .service-priority-select[data-value="sredni"] { border-color: #bcd4ea; background: #f3f8fd; color: #285d8d; }
body.page-orders .service-priority-select[data-value="wysoki"] { border-color: #e8d0a8; background: #fff8ec; color: #89591a; }
body.page-orders .service-priority-select[data-value="ekspres"] { border-color: #e8baba; background: #fff2f2; color: #a52d2d; }
body.page-orders .service-status-select[data-value="oczekujace"] { border-color: #d4d9df; background: #f8f9fa; color: #4f5b69; }
body.page-orders .service-status-select[data-value="realizowane"] { border-color: #b9d5ec; background: #f1f7fc; color: #285f90; }
body.page-orders .service-status-select[data-value="czeka_na_czesci"] { border-color: #ead3a9; background: #fff8e9; color: #865c17; }
body.page-orders .service-status-select[data-value="naprawione_do_wyceny"] { border-color: #d2c5e8; background: #f8f4fc; color: #684e94; }
body.page-orders .service-status-select[data-value="zakonczone"] { border-color: #b9dcc4; background: #f2faf4; color: #286b40; }
body.page-orders .service-status-select[data-value="zakonczone_bez_naprawy"] { border-color: #dec7c5; background: #fbf5f4; color: #80514e; }
body.page-orders .service-device-row .service-priority-select,
body.page-orders .service-device-row .service-status-select { box-shadow: 0 1px 1px rgba(15,23,42,.025); font-weight: 650; }
body.page-orders .service-device-cell .table-main,
body.page-orders .service-device-cell .service-preview-trigger { font-weight: 575; }
body.page-orders .service-orders-table td[data-label="Klient"] { vertical-align: middle; }
body.page-orders .service-orders-table td[data-label="Klient"] .table-main { font-weight: 450; }
body.page-orders .service-orders-table td[data-label="Klient"] .table-sub { color: #7b8797; font-size: 9.5px; font-weight: 400; }
@media (min-width: 981px) {
    body.page-orders .service-orders-table .service-col-complaint { padding-right: 4px; padding-left: 5px; }
    body.page-orders .service-orders-table .service-col-control { padding-right: 3px; padding-left: 3px; }
    body.page-orders .service-orders-table .service-col-technician { padding-right: 4px; padding-left: 3px; }
}
@media (max-width: 620px) {
    body.page-orders .service-orders-table td.service-device-zone-status-wycenione_do_wysylki,
    body.page-orders .service-orders-table td.service-device-zone-status-bez_naprawy_do_wysylki { --service-mobile-zone: #f8efed; }
}

/* TASK-004B.3 — Nr należy do neutralnej strefy tabeli. */
body.page-orders .service-orders-table td.service-col-number {
    background: #fff;
}

/* TASK-004B.4 — neutralny numer bez efektu osobnych komórek. */
body.page-orders .service-orders-table td.service-col-number {
    padding-right: 4px;
    padding-left: 0;
    border-right: 0;
    border-bottom-color: transparent;
    border-left: 0;
    background: #fff;
    font-weight: 600;
    text-align: right;
}
body.page-orders .service-orders-table td.service-device-cell {
    border-radius: 5px 0 0 5px;
}

/* TASK-004B.5 — finalne wyrównanie neutralnej kolumny Nr. */
body.page-orders .service-orders-table th.service-col-number {
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
body.page-orders .service-orders-table td.service-col-number {
    padding-right: 7px;
    padding-left: 0;
    font-weight: 600;
    text-align: right;
}

/* TASK-004B.6 — spokojna neutralna strefa i separator wyłącznie między zleceniami. */
body.page-orders .service-orders-table td.service-order-zone-cell + td.service-order-zone-cell {
    border-right: 0;
}
body.page-orders .service-orders-table td.service-col-number {
    border-right: 0;
    border-bottom-color: transparent;
    border-left: 0;
}
body.page-orders .service-orders-table tr.is-order-last > td.service-col-number {
    border-bottom-color: #e7ebf0;
}

/* TASK-008B.5 — wspólna pionowa siatka pięciu KPI kolejki Serwisu. */
body.page-orders .stat-card.stat-card-pro {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 14px;
    grid-template-rows: 22px 15px 22px;
    column-gap: 10px;
    row-gap: 0;
    align-content: center;
    align-items: center;
    box-sizing: border-box;
    height: 79px;
    min-height: 79px;
    max-height: 79px;
    padding-block: 9px;
    padding-inline: 12px;
}
body.page-orders .stat-card-pro .stat-icon {
    position: static;
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
    width: 36px;
    height: 36px;
    margin: 0;
}
body.page-orders .stat-card-pro .stat-value {
    position: static;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0;
    line-height: 1;
}
body.page-orders .stat-card-pro .stat-title {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    margin: 0;
    line-height: 1.15;
}
body.page-orders .stat-card-pro .stat-sub {
    display: -webkit-box;
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    max-height: 24px;
    margin: 1px 0 0;
    line-height: 1.2;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
body.page-orders .stat-card-pro .stat-trend {
    position: static;
    grid-column: 3;
    grid-row: 1 / 4;
    align-self: center;
}
.service-manual-status-form{margin:0}.service-manual-status-form.is-saving{pointer-events:none;opacity:.72}.service-manual-status-select{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.service-status-picker{position:relative;width:min(280px,100%);min-width:220px}.service-status-picker-toggle{width:100%;min-height:35px;display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:8px;padding:6px 9px;border:1px solid #d7dde5;border-radius:9px;text-align:left;font:inherit;font-size:11.5px;font-weight:750;cursor:pointer}.service-status-picker-toggle b{font-size:14px}.service-status-picker-menu{position:absolute;z-index:80;top:calc(100% + 5px);left:0;width:max(100%,260px);padding:6px;background:#fff;border:1px solid #d9e0e8;border-radius:10px;box-shadow:0 14px 34px rgba(15,23,42,.2)}.service-status-picker-option{width:100%;display:grid;grid-template-columns:10px 1fr;gap:8px;align-items:center;padding:8px;border:0;border-radius:7px;background:#fff;text-align:left;font-size:12px;font-weight:700;cursor:pointer}.service-status-picker-option:hover,.service-status-picker-option.is-current{background:#f2f5f8}.service-status-dot{width:9px;height:9px;border-radius:50%;background:#98a2b3}.is-status-oczekujace .service-status-dot{background:#98a2b3}.is-status-realizowane .service-status-dot{background:#3284c8}.is-status-czeka_na_czesci .service-status-dot{background:#d99a22}.is-status-zdiagnozowane_do_wyceny .service-status-dot,.is-status-naprawione_do_wyceny .service-status-dot,.is-status-potrzebna_decyzja .service-status-dot{background:#8a63c7}.is-status-oczekuje_na_decyzje_wyceny .service-status-dot{background:#b06aa5}.is-status-wycenione_do_wysylki .service-status-dot{background:#25a89d}.is-status-bez_naprawy_do_wysylki .service-status-dot,.is-status-bez_naprawy .service-status-dot{background:#d24b45}.is-status-zakonczone .service-status-dot,.is-status-naprawione .service-status-dot{background:#3da568}.service-status-picker-toggle.is-status-oczekujace{background:#f0f2f5;color:#3f4b5c}.service-status-picker-toggle.is-status-realizowane{background:#e8f2fc;color:#174f84}.service-status-picker-toggle.is-status-czeka_na_czesci{background:#fff1d5;color:#815000}.service-status-picker-toggle.is-status-zdiagnozowane_do_wyceny,.service-status-picker-toggle.is-status-naprawione_do_wyceny,.service-status-picker-toggle.is-status-potrzebna_decyzja{background:#f1ecfb;color:#563b8f}.service-status-picker-toggle.is-status-oczekuje_na_decyzje_wyceny{background:#f8edf6;color:#7b3971}.service-status-picker-toggle.is-status-wycenione_do_wysylki{background:#e5f7f5;color:#146660}.service-status-picker-toggle.is-status-bez_naprawy_do_wysylki,.service-status-picker-toggle.is-status-bez_naprawy{background:#fff0f0;color:#a33a3a}.service-status-picker-toggle.is-status-zakonczone,.service-status-picker-toggle.is-status-naprawione{background:#e6f6eb;color:#176436}@media(max-width:760px){.service-status-picker{min-width:210px;max-width:100%}}
.service-source-badge,.service-owned-device-badge{display:inline-flex;align-items:center;margin:0 6px 4px 0;padding:2px 6px;border-radius:999px;font-size:10px;font-weight:850;letter-spacing:.04em}.service-source-badge.is-z{background:#e8f2fc;color:#174f84}.service-source-badge.is-id,.service-owned-device-badge{background:#edf8f1;color:#267049}.service-combined-id-row td{background-color:#fbfdfc}
.service-device-row.is-status-picker-open{position:relative;z-index:110}.service-status-picker.is-open{z-index:120}.service-status-picker.is-open .service-status-picker-menu{z-index:130}
body.page-orders .service-orders-table .service-width-status{width:200px}.service-status-picker{width:100%;min-width:200px}.service-status-picker-toggle{grid-template-columns:10px minmax(0,1fr) 16px;font-size:10.5px}.service-status-picker-toggle>span:nth-child(2),.service-status-picker-option>span:last-child{white-space:nowrap;overflow:visible;text-overflow:clip}.service-status-picker-menu{width:max(100%,285px)}.service-status-chevron{display:block;width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;justify-self:end;transition:transform .15s ease}.service-status-picker-toggle[aria-expanded="true"] .service-status-chevron{transform:rotate(180deg)}
.service-queue-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 4px 0;color:#667085;font-size:12px}.service-queue-pagination div{display:flex;gap:5px}.service-queue-pagination a{display:grid;place-items:center;min-width:30px;height:30px;padding:0 8px;border:1px solid #d8e1dc;border-radius:7px;background:#fff;color:#344054;text-decoration:none}.service-queue-pagination a[aria-current="page"]{border-color:#9fc6b4;background:#e8f2ed;color:#275c49;font-weight:800}@media(max-width:700px){.service-queue-pagination{align-items:flex-start;flex-direction:column}}
@media(min-width:981px){body.page-orders .service-orders-table .service-width-priority{width:108px}body.page-orders .service-orders-table .service-width-status{width:220px}body.page-orders .service-orders-table .service-width-technician{width:165px}body.page-orders .service-orders-table td.service-queue-priority-cell,body.page-orders .service-orders-table td.service-queue-status-cell,body.page-orders .service-orders-table td.service-queue-technician-cell{padding-left:4px;padding-right:4px}.service-queue-priority-cell .service-priority-select,.service-queue-status-cell .service-status-select,.service-queue-status-cell .service-company-status-select,.service-queue-technician-cell .service-inline-assignment select{width:100%;min-height:35px;margin:0;box-sizing:border-box}.service-queue-status-cell .service-manual-status-form,.service-queue-status-cell .service-status-picker,.service-queue-status-cell .service-status-picker-toggle,.service-queue-status-cell .service-status-picker-menu{width:100%;min-width:0;box-sizing:border-box}.service-queue-status-cell .service-status-picker-toggle{height:35px;padding:6px 9px}.service-queue-status-cell .technician-status-form,.service-queue-technician-cell .service-inline-assignment{width:100%;margin:0}}
@media(min-width:981px){body.page-orders .service-orders-table.is-technician-own-queue .service-width-edit{width:190px}}
body.page-orders .service-technician-text-action{width:auto;min-width:76px;padding:0 10px;border-color:#d6dde5;border-radius:8px;background:#fff;font-size:11px;font-weight:700;box-shadow:0 1px 1px rgba(16,24,40,.03)}
body.page-orders .service-technician-text-action:hover{border-color:#b8c3cf;background:#f8fafc}
body.page-orders [data-service-technician-action][hidden]{display:none!important}
.technician-paper-footer button.is-submitting{pointer-events:none;opacity:.68;cursor:wait}
body.page-orders .service-id-preview-cell{cursor:pointer;transition:background-color .15s ease}
body.page-orders .service-id-preview-cell:hover{background-color:#f4f8f6}
body.page-orders .service-id-preview-cell .service-preview-trigger{display:block;width:100%;font-weight:400}

/* TASK-032A — canonical Z status palette. Keep this final, page-scoped map authoritative. */
body.page-orders .service-device-row[data-z-status="oczekujace"] > td.service-device-zone-cell { background: #f3f4f6; }
body.page-orders .service-device-row[data-z-status="realizowane"] > td.service-device-zone-cell { background: #eaf4fd; }
body.page-orders .service-device-row[data-z-status="czeka_na_czesci"] > td.service-device-zone-cell { background: #fff5df; }
body.page-orders .service-device-row[data-z-status="zdiagnozowane_do_wyceny"] > td.service-device-zone-cell,
body.page-orders .service-device-row[data-z-status="naprawione_do_wyceny"] > td.service-device-zone-cell { background: #f3edfb; }
body.page-orders .service-device-row[data-z-status="oczekuje_na_decyzje_wyceny"] > td.service-device-zone-cell { background: #fbedf6; }
body.page-orders .service-device-row[data-z-status="wycenione_do_wysylki"] > td.service-device-zone-cell { background: #e8f7f5; }
body.page-orders .service-device-row[data-z-status="bez_naprawy_do_wysylki"] > td.service-device-zone-cell { background: #fff0f0; }
body.page-orders .service-device-row[data-z-status="zakonczone"] > td.service-device-zone-cell { background: #eaf7ed; }

body.page-orders .service-status-select[data-value="oczekujace"] { border-color: #d4d9df; background: #f8f9fa; color: #4f5b69; }
body.page-orders .service-status-select[data-value="realizowane"] { border-color: #b9d5ec; background: #f1f7fc; color: #285f90; }
body.page-orders .service-status-select[data-value="czeka_na_czesci"] { border-color: #ead3a9; background: #fff8e9; color: #865c17; }
body.page-orders .service-status-select[data-value="zdiagnozowane_do_wyceny"],
body.page-orders .service-status-select[data-value="naprawione_do_wyceny"] { border-color: #d2c5e8; background: #f8f4fc; color: #684e94; }
body.page-orders .service-status-select[data-value="oczekuje_na_decyzje_wyceny"] { border-color: #dfb5d5; background: #fcf3f9; color: #7b3971; }
body.page-orders .service-status-select[data-value="wycenione_do_wysylki"] { border-color: #a8d8d3; background: #edf9f7; color: #176963; }
body.page-orders .service-status-select[data-value="bez_naprawy_do_wysylki"] { border-color: #e0b8b5; background: #fff4f3; color: #a23b35; }
body.page-orders .service-status-select[data-value="zakonczone"] { border-color: #b9dcc4; background: #f2faf4; color: #286b40; }

.badge-status-oczekujace { background: #f0f2f5; color: #3f4b5c; }
.badge-status-realizowane { background: #e8f2fc; color: #174f84; }
.badge-status-czeka_na_czesci { background: #fff1d5; color: #815000; }
.badge-status-zdiagnozowane_do_wyceny,
.badge-status-naprawione_do_wyceny { background: #f1ecfb; color: #563b8f; }
.badge-status-oczekuje_na_decyzje_wyceny { background: #f8edf6; color: #7b3971; }
.badge-status-wycenione_do_wysylki { background: #e5f7f5; color: #146660; }
.badge-status-bez_naprawy_do_wysylki { background: #fff0f0; color: #a33a3a; }
.badge-status-zakonczone { background: #e6f6eb; color: #176436; }

/* TASK-033A — one authoritative visual map for Z and ID status backgrounds. */
body.page-orders {
    --service-status-text: #273142;
    --service-status-border: rgba(39,49,66,.18);
}

body.page-orders .service-device-row[data-z-status="oczekujace"] { --service-row-status-bg: #E0E0E0; }
body.page-orders .service-device-row[data-z-status="realizowane"] { --service-row-status-bg: #E8F2FC; }
body.page-orders .service-device-row[data-z-status="czeka_na_czesci"] { --service-row-status-bg: #FFF1D5; }
body.page-orders .service-device-row[data-z-status="zdiagnozowane_do_wyceny"],
body.page-orders .service-device-row[data-z-status="naprawione_do_wyceny"] { --service-row-status-bg: #F1ECFB; }
body.page-orders .service-device-row[data-z-status="oczekuje_na_decyzje_wyceny"],
body.page-orders .service-device-row[data-z-status="wycenione_do_wysylki"],
body.page-orders .service-device-row[data-z-status="bez_naprawy_do_wysylki"] { --service-row-status-bg: #F5ECEC; }
body.page-orders .service-device-row[data-z-status="zakonczone"] { --service-row-status-bg: #E6F6EB; }
body.page-orders .service-device-row[data-z-status] > td.service-device-zone-cell { background: var(--service-row-status-bg); }

/* TASK-035A.2 — compact presentation of the canonical queue on the client card. */
body.page-client-view .client-card-hero {
    gap: 8px;
    margin-bottom: 10px;
    padding: 11px 14px;
}
body.page-client-view .client-card-hero .trade-clients-heading { gap: 10px; }
body.page-client-view .client-card-hero .trade-clients-heading h1 { margin: 1px 0 2px; font-size: 18px; line-height: 1.15; }
body.page-client-view .client-card-hero .trade-clients-heading p { margin: 0; font-size: 10px; }
body.page-client-view .client-card-hero .trade-client-actions .btn { min-height: 32px; padding: 6px 11px; font-size: 11px; }
body.page-client-view .client-card-facts { gap: 6px; }
body.page-client-view .client-card-fact { min-height: 48px; gap: 7px; padding: 6px 8px; border-radius: 8px; }
body.page-client-view .client-card-fact-icon { width: 26px; height: 26px; flex-basis: 26px; border-radius: 7px; }
body.page-client-view .client-card-fact-icon .omega-icon { width: 14px; height: 14px; }
body.page-client-view .client-card-fact small { margin-bottom: 1px; font-size: 8px; }
body.page-client-view .client-card-fact strong { font-size: 11px; }
body.page-client-view .client-card-inline-section { gap: 4px; }
body.page-client-view .client-card-shipping-inline { padding-top: 1px; }
body.page-client-view .client-card-notes-inline { gap: 3px; padding: 6px 8px; }
body.page-client-view .client-card-orders { margin-bottom: 10px; padding: 10px 12px; }
body.page-client-view .client-card-orders .trade-clients-heading { margin-bottom: 5px; }
body.page-client-view .client-card-orders .trade-clients-heading h2 { font-size: 17px; }
.service-inline-priority { width: 100%; margin: 0; }
.service-status-readonly { cursor: default; }
.service-status-readonly:hover { box-shadow: none; }

@media (max-width: 760px) {
    body.page-client-view .client-card-hero { padding: 10px; }
    body.page-client-view .client-card-inline-grid { grid-template-columns: 1fr; }
}

body.page-orders .service-device-row[data-id-status="oczekujace"] { --service-row-status-bg: #E0E0E0; }
body.page-orders .service-device-row[data-id-status="realizowane"] { --service-row-status-bg: #E8F2FC; }
body.page-orders .service-device-row[data-id-status="czeka_na_czesci"] { --service-row-status-bg: #FFF1D6; }
body.page-orders .service-device-row[data-id-status="potrzebna_decyzja"] { --service-row-status-bg: #F0ECFB; }
body.page-orders .service-device-row[data-id-status="bez_naprawy"],
body.page-orders .service-device-row[data-id-status="naprawione"] { --service-row-status-bg: #E6F6EB; }
body.page-orders .service-device-row[data-id-status] > td { background: var(--service-row-status-bg); }

body.page-orders .service-status-picker[data-status-source="z"] .is-status-oczekujace,
body.page-orders .service-status-readonly.is-status-oczekujace,
body.page-orders .service-status-select[data-value="oczekujace"],
body.page-orders .service-status-select option[value="oczekujace"] { --service-control-status-bg: #E0E0E0; }
body.page-orders .service-status-picker[data-status-source="z"] .is-status-realizowane,
body.page-orders .service-status-readonly.is-status-realizowane,
body.page-orders .service-status-select[data-value="realizowane"],
body.page-orders .service-status-select option[value="realizowane"] { --service-control-status-bg: #E8F2FC; }
body.page-orders .service-status-picker[data-status-source="z"] .is-status-czeka_na_czesci,
body.page-orders .service-status-readonly.is-status-czeka_na_czesci,
body.page-orders .service-status-select[data-value="czeka_na_czesci"],
body.page-orders .service-status-select option[value="czeka_na_czesci"] { --service-control-status-bg: #FFF1D5; }
body.page-orders .service-status-picker[data-status-source="z"] .is-status-zdiagnozowane_do_wyceny,
body.page-orders .service-status-picker[data-status-source="z"] .is-status-naprawione_do_wyceny,
body.page-orders .service-status-readonly.is-status-zdiagnozowane_do_wyceny,
body.page-orders .service-status-readonly.is-status-naprawione_do_wyceny,
body.page-orders .service-status-select[data-value="zdiagnozowane_do_wyceny"],
body.page-orders .service-status-select[data-value="naprawione_do_wyceny"],
body.page-orders .service-status-select option[value="zdiagnozowane_do_wyceny"],
body.page-orders .service-status-select option[value="naprawione_do_wyceny"] { --service-control-status-bg: #F1ECFB; }
body.page-orders .service-status-picker[data-status-source="z"] .is-status-oczekuje_na_decyzje_wyceny,
body.page-orders .service-status-picker[data-status-source="z"] .is-status-wycenione_do_wysylki,
body.page-orders .service-status-picker[data-status-source="z"] .is-status-bez_naprawy_do_wysylki,
body.page-orders .service-status-readonly.is-status-oczekuje_na_decyzje_wyceny,
body.page-orders .service-status-readonly.is-status-wycenione_do_wysylki,
body.page-orders .service-status-readonly.is-status-bez_naprawy_do_wysylki,
body.page-orders .service-status-select[data-value="oczekuje_na_decyzje_wyceny"],
body.page-orders .service-status-select[data-value="wycenione_do_wysylki"],
body.page-orders .service-status-select[data-value="bez_naprawy_do_wysylki"],
body.page-orders .service-status-select option[value="oczekuje_na_decyzje_wyceny"],
body.page-orders .service-status-select option[value="wycenione_do_wysylki"],
body.page-orders .service-status-select option[value="bez_naprawy_do_wysylki"] { --service-control-status-bg: #F5ECEC; }
body.page-orders .service-status-picker[data-status-source="z"] .is-status-zakonczone,
body.page-orders .service-status-readonly.is-status-zakonczone,
body.page-orders .service-status-select[data-value="zakonczone"],
body.page-orders .service-status-select option[value="zakonczone"] { --service-control-status-bg: #E6F6EB; }

body.page-orders .service-status-picker[data-status-source="id"] .is-status-oczekujace,
body.page-orders .service-company-status-select[data-value="oczekujace"],
body.page-orders .service-company-status-select option[value="oczekujace"] { --service-control-status-bg: #E0E0E0; }
body.page-orders .service-status-picker[data-status-source="id"] .is-status-realizowane,
body.page-orders .service-company-status-select[data-value="realizowane"],
body.page-orders .service-company-status-select option[value="realizowane"] { --service-control-status-bg: #E8F2FC; }
body.page-orders .service-status-picker[data-status-source="id"] .is-status-czeka_na_czesci,
body.page-orders .service-company-status-select[data-value="czeka_na_czesci"],
body.page-orders .service-company-status-select option[value="czeka_na_czesci"] { --service-control-status-bg: #FFF1D6; }
body.page-orders .service-status-picker[data-status-source="id"] .is-status-potrzebna_decyzja,
body.page-orders .service-company-status-select[data-value="potrzebna_decyzja"],
body.page-orders .service-company-status-select option[value="potrzebna_decyzja"] { --service-control-status-bg: #F0ECFB; }
body.page-orders .service-status-picker[data-status-source="id"] .is-status-bez_naprawy,
body.page-orders .service-status-picker[data-status-source="id"] .is-status-naprawione,
body.page-orders .service-company-status-select[data-value="bez_naprawy"],
body.page-orders .service-company-status-select[data-value="naprawione"],
body.page-orders .service-company-status-select option[value="bez_naprawy"],
body.page-orders .service-company-status-select option[value="naprawione"] { --service-control-status-bg: #E6F6EB; }

body.page-orders .service-status-picker-toggle[class*="is-status-"],
body.page-orders .service-status-picker-option[class*="is-status-"],
body.page-orders .service-status-select[data-value],
body.page-orders .service-company-status-select[data-value],
body.page-orders .service-status-select option,
body.page-orders .service-company-status-select option {
    background: var(--service-control-status-bg);
    color: var(--service-status-text);
    border-color: var(--service-status-border);
}
body.page-orders .service-status-picker-option:hover,
body.page-orders .service-status-picker-option.is-current { box-shadow: inset 0 0 0 2px rgba(39,49,66,.16); }
body.page-orders .service-orders-table:has(.service-status-picker.is-open) { overflow: visible; }
body.page-orders .service-status-picker-menu { max-height: calc(100vh - 24px); overflow-y: auto; }
body.page-orders .service-status-picker.is-dropup .service-status-picker-menu { top: auto; bottom: calc(100% + 5px); }

/* TASK-033C/033D — final source-specific status dot colors. */
body.page-orders .service-status-picker[data-status-source="z"] .is-status-oczekuje_na_decyzje_wyceny .service-status-dot,
body.page-orders .service-status-picker[data-status-source="z"] .is-status-wycenione_do_wysylki .service-status-dot,
body.page-orders .service-status-picker[data-status-source="z"] .is-status-bez_naprawy_do_wysylki .service-status-dot,
body.page-orders .service-status-readonly.is-status-oczekuje_na_decyzje_wyceny .service-status-dot,
body.page-orders .service-status-readonly.is-status-wycenione_do_wysylki .service-status-dot,
body.page-orders .service-status-readonly.is-status-bez_naprawy_do_wysylki .service-status-dot { background: #D24B45; }
body.page-orders .service-status-picker[data-status-source="id"] .is-status-bez_naprawy .service-status-dot,
body.page-orders .service-status-picker[data-status-source="id"] .is-status-naprawione .service-status-dot { background: #3DA568; }
.badge-status-oczekuje_na_decyzje_wyceny,
.badge-status-wycenione_do_wysylki { background: #F5ECEC; color: #273142; }

.service-preview-id-state .service-id-status { color: #273142; }
.service-preview-id-state .service-id-status.is-oczekujace { background: #E0E0E0; }
.service-preview-id-state .service-id-status.is-realizowane { background: #E8F2FC; }
.service-preview-id-state .service-id-status.is-czeka_na_czesci { background: #FFF1D6; }
.service-preview-id-state .service-id-status.is-potrzebna_decyzja { background: #F0ECFB; }
.service-preview-id-state .service-id-status.is-bez_naprawy,
.service-preview-id-state .service-id-status.is-naprawione { background: #E6F6EB; }
