/* Independent TEST renderer only. Print templates and business data are untouched. */
@media screen {
  body.erp-test-style {
    --ink:#f2f3f5; --muted:#b0b5bf; --line:#32363d; --panel:#1b1e22;
    --soft:#24282d; --accent:#f7a174; --shadow:none;
    background:#111315; color:var(--ink); font-family:"Segoe UI",Arial,sans-serif;
    font-size:13px; line-height:1.45; color-scheme:dark; letter-spacing:0;
  }
  body.erp-test-style * {letter-spacing:0;}
  body.erp-test-style :is(button,input,select,textarea,th,td,h1,h2,h3,strong,b) {font-family:inherit;}
  body.erp-test-style .app {grid-template-columns:200px minmax(0,1fr);}
  body.erp-test-style .app.sidebar-collapsed {grid-template-columns:0 minmax(0,1fr);}
  body.erp-test-style .app > aside {display:flex;flex-direction:column;overflow:hidden;padding:22px 12px 14px;background:#17191c;border-right:1px solid var(--line);box-shadow:none;scrollbar-width:thin;}
  body.erp-test-style main {min-width:0;padding:26px 28px 48px;background:#111315;}
  body.erp-test-style .brand {gap:10px;padding:0 26px 0 2px;margin:0 0 24px;flex-shrink:0;}
  body.erp-test-style .brand img {width:52px;height:40px;border-radius:4px;flex:0 0 52px;}
  body.erp-test-style .brand h1 {font-size:17px;font-weight:650;line-height:1.2;}
  body.erp-test-style .brand .subtitle {font-size:11px;line-height:1.6;color:#bbc4c1;}
  body.erp-test-style .menu-toggle {width:28px;height:28px;top:23px;left:14px;background:#252b2e;border:1px solid #465052;color:#d4ded9;box-shadow:none;font-size:16px;border-radius:5px;}
  body.erp-test-style .app:not(.sidebar-collapsed) .menu-toggle {left:163px;}
  body.erp-test-style .nav-card {padding:8px 0;border:0;background:none;box-shadow:none;flex:1 1 auto;min-height:100px;overflow-y:auto;scrollbar-width:thin;}
  body.erp-test-style .nav-button,
  body.erp-test-style .nav-button.nav-cutting {--lab-icon:#b8c4bf;min-height:36px;padding:7px 10px;margin:0 0 3px;gap:10px;border:1px solid transparent;background:transparent;color:#dbe2df;box-shadow:none;outline:none;font-size:13px;font-weight:550;transform:none;filter:none;border-radius:5px;}
  body.erp-test-style .nav-button:hover {background:#242a2d;color:#fff;transform:none;filter:none;}
  body.erp-test-style .nav-button.active,
  body.erp-test-style .nav-button.nav-cutting.active {background:#2a2d32;border-color:transparent;color:#f2f3f5;box-shadow:inset 2px 0 var(--accent);outline:none;}
  body.erp-test-style .nav-button[data-section="dashboard"] {--lab-icon:#a4b9ff;}
  body.erp-test-style .nav-button[data-section="folders"] {--lab-icon:#8cbbff;}
  body.erp-test-style .nav-button[data-section="purchase"] {--lab-icon:#efd08b;}
  body.erp-test-style .nav-button[data-section="orders"] {--lab-icon:#73d9b6;}
  body.erp-test-style .nav-button[data-section="powder"] {--lab-icon:#ed9fc6;}
  body.erp-test-style .nav-button[data-section="library"] {--lab-icon:#c3abeb;}
  body.erp-test-style .nav-button[data-section="cutting"] {--lab-icon:#81cadc;}
  body.erp-test-style .nav-button[data-section="planning"] {--lab-icon:#edcd66;}
  body.erp-test-style .nav-button[data-section="profitability"] {--lab-icon:#87d3a7;}
  body.erp-test-style .nav-button[data-section="tasks"] {--lab-icon:#dfb57b;}
  body.erp-test-style .nav-button[data-section="workshop-mode"] {--lab-icon:#bac57a;}
  body.erp-test-style .nav-button[data-section="archive"] {--lab-icon:#a7b9cd;}
  body.erp-test-style .nav-button .ico,
  body.erp-test-style .nav-button.active .ico {width:19px;height:19px;flex:0 0 19px;background:none;color:var(--lab-icon);border:0;}
  body.erp-test-style .nav-button .ico svg {width:18px;height:18px;stroke-width:1.8;}
  body.erp-test-style .nav-button .nav-badge {min-width:21px;height:20px;padding:0 6px;background:#323a3d;color:#e6edeb;border-radius:5px;font-size:11px;font-weight:650;}
  body.erp-test-style .global-search-box {margin:0 0 14px;flex-shrink:0;}
  body.erp-test-style .global-search-box > label {font-size:11px;color:#bec7c2;}
  body.erp-test-style #globalSearchInput {font-size:12px;padding:8px;min-height:34px;}
  body.erp-test-style .user-box {margin-top:18px;padding:14px 0 0;border:0;border-top:1px solid #343b3d;background:none;box-shadow:none;border-radius:0;gap:4px;flex-shrink:0;}
  body.erp-test-style .user-box > span {color:#b9c2bd;font-size:11px;}
  body.erp-test-style .user-box > strong {font-size:14px;}
  body.erp-test-style .sync-status {background:#1b2c25;border:1px solid #335343;color:#a5d7b9;border-radius:5px;font-size:10px;padding:6px 8px;overflow-wrap:anywhere;}
  body.erp-test-style #logoutBtn {font-size:12px;min-height:32px;margin-top:6px;}
  body.erp-test-style h1,body.erp-test-style h2,body.erp-test-style h3 {color:#f3f5f4;letter-spacing:0;font-weight:650;}
  body.erp-test-style h2 {font-size:23px;line-height:1.25;}
  body.erp-test-style h3 {font-size:15px;}
  body.erp-test-style .small {font-size:12px;color:var(--muted);line-height:1.45;}
  body.erp-test-style .section > .page-title {padding:0 0 20px;margin:0 0 20px;border:0;border-bottom:1px solid #343b3d;background:none;border-radius:0;box-shadow:none;align-items:center;}
  body.erp-test-style .section > .page-title::before,
  body.erp-test-style .section > .page-title::after {display:none;}
  body.erp-test-style .section > .page-title > div > p:not([id]),
  body.erp-test-style .panel > .page-title > div > p:not([id]) {display:none;}
  body.erp-test-style .panel {padding:18px 0;margin-bottom:18px;border:0;border-top:1px solid #343b3d;background:none;box-shadow:none;border-radius:0;min-width:0;}
  body.erp-test-style .section > .page-title + .panel {padding-top:0;border-top:0;}
  body.erp-test-style .panel > .page-title {padding:0;margin-bottom:14px!important;border:0;background:none;align-items:center;flex-wrap:wrap;}
  body.erp-test-style .panel > .page-title h2 {font-size:15px;}
  body.erp-test-style .btn {min-width:0;min-height:34px;padding:7px 11px;gap:7px;font-size:12px;font-weight:650;line-height:1.35;border-radius:5px;background:#f7a174;color:#20160f;border:1px solid #f7a174;box-shadow:none;filter:none;transform:none;text-shadow:none;white-space:normal;word-break:normal;overflow-wrap:normal;}
  body.erp-test-style .btn:hover {background:#ffb48f;box-shadow:none;filter:none;transform:none;}
  body.erp-test-style .btn.secondary {background:#24282d;border-color:#41464f;color:#f2f3f5;}
  body.erp-test-style .btn.secondary:hover {background:#30353b;border-color:#6a7280;}
  body.erp-test-style .btn.danger {background:#352024;border-color:#75404a;color:#ffb7bd;}
  body.erp-test-style .btn:disabled {opacity:.48;cursor:not-allowed;}
  body.erp-test-style .btn .ico {width:16px;height:16px;flex:0 0 16px;background:none;color:inherit;}
  body.erp-test-style .btn .ico svg {width:16px;height:16px;stroke-width:1.8;}
  body.erp-test-style :is(button,input,select,textarea):focus-visible {outline:2px solid #eea87e;outline-offset:2px;}
  body.erp-test-style input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
  body.erp-test-style select,body.erp-test-style textarea {background:#191c20;color:#f2f3f5;border:1px solid #454b55;border-radius:5px;min-height:36px;padding:8px 10px;font-size:13px;max-width:100%;box-shadow:none;}
  body.erp-test-style input::placeholder,body.erp-test-style textarea::placeholder {color:#a1ada8;opacity:1;}
  body.erp-test-style label {color:#cdd6d1;font-size:12px;font-weight:550;}
  body.erp-test-style input[type="checkbox"],body.erp-test-style input[type="radio"] {width:16px;height:16px;accent-color:#ef672e;flex-shrink:0;}
  body.erp-test-style .toolbar {display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;}
  body.erp-test-style .toolbar > input {flex:1 1 240px;min-width:0;}
  body.erp-test-style .toolbar > select {flex:0 1 240px;min-width:140px;}
  body.erp-test-style .table-wrap {border:1px solid var(--line);border-radius:6px;background:#181b1f;box-shadow:none;overflow:auto;max-width:100%;scrollbar-width:thin;scrollbar-color:#69717e #181b1f;}
  body.erp-test-style table {border-collapse:separate;border-spacing:0;}
  body.erp-test-style th {background:#242b2e;color:#c5cfca;font-size:11px;font-weight:650;text-transform:none;letter-spacing:0;border:0;border-bottom:1px solid #485451;padding:12px;white-space:nowrap;}
  body.erp-test-style td {font-size:13px;line-height:1.4;padding:11px 12px;border:0;border-bottom:1px solid #30383a;vertical-align:middle;color:#e6ece9;}
  body.erp-test-style tbody tr,
  body.erp-test-style tbody tr:nth-child(odd),body.erp-test-style tbody tr:nth-child(even) {background:#181b1f;}
  body.erp-test-style tbody tr:hover {background:#23272d;}
  body.erp-test-style tbody tr:last-child td {border-bottom:0;}
  body.erp-test-style td .btn {min-height:29px;padding:5px 8px;font-size:11px;white-space:nowrap;}
  body.erp-test-style .status-pill {font-size:11px;font-weight:650;padding:4px 8px;line-height:1.3;white-space:nowrap;border-radius:5px;box-shadow:none;border:1px solid #475352;background:#293331;color:#dae5df;}
  body.erp-test-style .status-pill.done {background:#1f3b30;color:#a2e0bb;border-color:#3a6651;}
  body.erp-test-style .status-pill.sent {background:#223846;color:#abd7f6;border-color:#3d5c71;}
  body.erp-test-style .status-pill.partial,body.erp-test-style .status-pill.todo {background:#3b321e;color:#eed396;border-color:#6c5930;}
  body.erp-test-style .status-pill.archived {background:#303537;color:#c0c9c5;border-color:#4a5556;}
  body.erp-test-style .initials-badge {background:#493022;color:#ffd0a4;border:1px solid #6a4730;border-radius:4px;font-size:10px;box-shadow:none;}
  body.erp-test-style .reception-badge {background:#243b4b;color:#b0dcfc;border:1px solid #456a80;}
  body.erp-test-style .reference-box {background:#20282a;color:#eff5f1;border:1px solid #414e4d;border-left:3px solid #708d80;border-radius:5px;box-shadow:none;}
  body.erp-test-style .reference-box span {color:#c0d0c6;}
  body.erp-test-style .affair-tabs {padding:0 0 8px;gap:5px;box-shadow:none;border:0;border-bottom:1px solid #343b3d;border-radius:0;background:none;}
  body.erp-test-style .affair-tab-button {font-size:12px;min-height:34px;padding:7px 12px;border-radius:4px;border:1px solid transparent;background:none;color:#c6d2cb;font-weight:600;}
  body.erp-test-style .affair-tab-button.active {background:transparent;color:#f7a174;border-color:transparent;border-bottom-color:#f7a174;border-radius:0;}
  body.erp-test-style #foldersBody .folder-office-progress {display:flex;gap:4px;min-width:0;flex-wrap:nowrap;}
  body.erp-test-style #foldersBody .folder-progress-button {position:relative;width:28px;height:28px;min-height:28px;min-width:28px;padding:4px;border-radius:4px;display:inline-grid;place-items:center;}
  body.erp-test-style #orderEditPanel > .grid,
  body.erp-test-style #orderEditPanel .grid.three {grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
  body.erp-test-style #orderEditPanel .reference-box > h3 {margin:0 0 12px;}
  body.erp-test-style #orderEditPanel .table-wrap > table {min-width:1290px;}
  body.erp-test-style #orderEditLinesBody td:nth-child(1) {min-width:145px;white-space:nowrap;}
  body.erp-test-style #orderEditLinesBody td:nth-child(2) {min-width:110px;}
  body.erp-test-style #orderEditLinesBody td:nth-child(3) {min-width:210px;}
  body.erp-test-style #orderEditLinesBody td:nth-child(4) {min-width:220px;}
  body.erp-test-style #orderEditLinesBody td:nth-child(5),
  body.erp-test-style #orderEditLinesBody td:nth-child(6),
  body.erp-test-style #orderEditLinesBody td:nth-child(7) {min-width:110px;}
  body.erp-test-style #orderEditLinesBody td:nth-child(9),
  body.erp-test-style #orderEditLinesBody td:nth-child(11) {min-width:145px;}
  body.erp-test-style #orderEditLinesBody input {width:100%;}
  body.erp-test-style #orderEditLinesBody input[type="checkbox"] {width:16px;}
  body.erp-test-style .folder-progress-button .ico {width:17px;height:17px;background:none;color:inherit;}
  body.erp-test-style .folder-progress-button .ico svg {width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;}
  body.erp-test-style .folder-progress-button.is-todo {background:#292f32;color:#becac3;border:1px solid #4c5954;}
  body.erp-test-style .folder-progress-button.is-done {background:#224534;color:#a5e8bc;border:1px solid #578668;}
  body.erp-test-style .folder-progress-button.is-pending {border-color:#edbd69;}
  body.erp-test-style .lab-dashboard-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;}
  body.erp-test-style .lab-dashboard-heading h3 {margin:0;}
  body.erp-test-style #dashboardStatsPanel {border:0;padding-top:0;}
  body.erp-test-style .dashboard-kpis {grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
  body.erp-test-style .kpi-card {min-height:112px;padding:15px 16px;border:1px solid #384440;border-top:2px solid #75998b;border-radius:6px;background:#1e2527;color:#eff5f1;box-shadow:none;text-align:left;transform:none;}
  body.erp-test-style .kpi-card:hover {background:#27312f;border-color:#758f82;transform:none;}
  body.erp-test-style .kpi-card > span {font-size:12px;font-weight:550;color:#d5dfd8;}
  body.erp-test-style .kpi-card b {font-size:29px;line-height:1.2;font-weight:600;color:#f4f7f5;margin:5px 0;}
  body.erp-test-style .kpi-card small {font-size:11px;color:#b3c0b8;line-height:1.3;}
  body.erp-test-style [data-dashboard-widget="my-tasks"] {border-top-color:#dfb57b;}
  body.erp-test-style [data-dashboard-widget="my-planning"] {border-top-color:#dfca71;}
  body.erp-test-style [data-dashboard-widget="purchase-todo"] {border-top-color:#73c5b4;}
  body.erp-test-style [data-dashboard-widget="orders-current"] {border-top-color:#89b8dd;}
  body.erp-test-style [data-dashboard-widget="folders"] {border-top-color:#e6ac80;}
  body.erp-test-style:not(.lab-dashboard-expanded) #dashboardKpisGrid > :not([data-dashboard-widget="my-tasks"]):not([data-dashboard-widget="my-planning"]):not([data-dashboard-widget="purchase-todo"]):not([data-dashboard-widget="orders-current"]):not([data-dashboard-widget="workshop-ready"]):not([data-dashboard-widget="folders"]) {display:none!important;}
  body.erp-test-style .dashboard-actions {display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;}
  body.erp-test-style .dashboard-actions .action-card {display:block;padding:0;border:0;border-radius:0;background:none;box-shadow:none;min-height:0;flex:0 1 auto;}
  body.erp-test-style .dashboard-actions .action-card > div {display:none;}
  body.erp-test-style .private-dashboard-kpi {background:none;border:0;border-left:1px solid #415046;border-radius:0;padding:10px 16px;}
  body.erp-test-style .private-dashboard-panel {border-left:0;}
  body.erp-test-style .private-reminders {gap:8px;margin-bottom:18px;}
  body.erp-test-style .private-reminder {padding:10px 12px;border:1px solid #705633;border-left:3px solid #d9a54c;background:#302a20;border-radius:5px;box-shadow:none;}
  body.erp-test-style .private-reminder strong {font-size:12px;color:#f5dbac;}
  body.erp-test-style .private-reminder .small {color:#ddd0b7;}
  body.erp-test-style .private-dashboard-kpis {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px;}
  body.erp-test-style .private-dashboard-kpi b {font-size:20px;line-height:1.3;}
  body.erp-test-style .compact-item,body.erp-test-style .compact-empty {border:0;border-bottom:1px solid #3b4742;background:none;border-radius:0;padding:10px 0;}
  body.erp-test-style .settings-menu-row,body.erp-test-style .role-permission-group,body.erp-test-style .settings-check-label {background:#202629;color:#edf2ef;border-color:#46524d;}
  body.erp-test-style .settings-menu-list {grid-template-columns:repeat(auto-fit,minmax(min(100%,430px),1fr));}
  body.erp-test-style #aiOpenBtn {width:42px;height:42px;font-size:13px;bottom:16px;right:16px;box-shadow:none;background:#255943;}
  body.erp-test-style .login-screen {background:#131618;}
  body.erp-test-style .login-card,body.erp-test-style .modal-card {background:#1c2225;color:#edf3ef;border:1px solid #46534e;border-radius:8px;box-shadow:0 20px 60px #0005;}
  body.erp-test-style .lab-visually-hidden {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
  body.erp-test-style [hidden] {display:none!important;}
  body.erp-test-style .lab-form-group {border:0;border-bottom:1px solid #384246;border-radius:0;padding:0 0 20px;margin:0 0 22px;min-width:0;}
  body.erp-test-style .lab-form-group legend,body.erp-test-style .lab-form-group summary {font-size:14px;font-weight:650;color:#e7eeeb;margin:0 0 14px;padding:0;}
  body.erp-test-style summary {cursor:pointer;color:#d4ded9;padding:8px 0;}
  body.erp-test-style .lab-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;}
  body.erp-test-style .lab-affair-form {display:block;max-width:1080px;}
  body.erp-test-style .lab-affair-form .lab-fields {grid-template-columns:repeat(3,minmax(0,1fr));}
  body.erp-test-style .lab-affair-reference {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 14px;margin:0 0 20px;}
  body.erp-test-style .lab-affair-reference b {font-size:17px;overflow-wrap:anywhere;}
  body.erp-test-style .lab-affair-reference span {font-size:12px;flex-shrink:0;}
  body.erp-test-style .lab-fields .field {min-width:0;}
  body.erp-test-style .lab-fields input,body.erp-test-style .lab-fields select,body.erp-test-style .lab-fields textarea {width:100%;box-sizing:border-box;}
  body.erp-test-style .lab-logo-field {display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:18px 0 28px;}
  body.erp-test-style .lab-logo-field img {width:110px;height:64px;object-fit:contain;background:#fff;border-radius:4px;padding:5px;}
  body.erp-test-style .lab-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 22px;padding-bottom:24px;}
  body.erp-test-style .lab-option {display:flex;align-items:center;gap:9px;min-height:30px;color:#e6ece9;}
  body.erp-test-style .lab-postal-status {display:block;font-size:11px;line-height:1.4;color:#a8d5cd;}
  #labDiscoveryWelcome {position:static;height:auto;min-height:0;width:100%;max-width:650px;box-sizing:border-box;margin:0 0 22px;padding:18px;background:#20322d;color:#ecf5ef;border:1px solid #79a58e;border-radius:6px;font-size:13px;}
  #labDiscoveryWelcome p {color:#d2e2d7;line-height:1.5;margin:9px 0 14px;}
  #labDiscoveryWelcome > div {display:flex;gap:8px;}
  #labDiscoveryDialog {position:fixed;inset:0;z-index:2147483000;pointer-events:none;color:#e9f1ec;}
  #labDiscoveryDialog[hidden] {display:none!important;}
  .lab-tour-shade {position:fixed;background:#080e13ad;backdrop-filter:blur(3px);pointer-events:auto;}
  #labTourFocus {position:fixed;border:2px solid #8addc1;box-shadow:0 0 0 3px #163d33;border-radius:5px;box-sizing:border-box;pointer-events:none;}
  #labTourBubble {position:fixed;height:auto;min-height:0;bottom:auto;display:block;box-sizing:border-box;background:#1c292e;color:#f2f7f5;border:1px solid #7da798;border-radius:8px;padding:18px;pointer-events:auto;max-height:calc(100vh - 24px);overflow:auto;box-shadow:0 10px 36px #0008;}
  #labTourBubble::before {content:'';position:fixed;width:0;height:0;border:9px solid transparent;pointer-events:none;}
  #labTourBubble[data-arrow="none"]::before {display:none;}
  #labTourBubble[data-arrow="left"]::before {margin-left:-37px;margin-top:22px;border-right-color:#8addc1;}
  #labTourBubble[data-arrow="right"]::before {margin-left:312px;margin-top:22px;border-left-color:#8addc1;}
  #labTourBubble[data-arrow="top"]::before {margin-left:14px;margin-top:-37px;border-bottom-color:#8addc1;}
  #labTourBubble[data-arrow="bottom"]::before {position:absolute;bottom:-18px;left:28px;border-top-color:#8addc1;}
  #labDiscoveryDialog header {display:flex;align-items:center;justify-content:space-between;gap:18px;}
  #labDiscoveryDialog h3 {font-size:19px;margin:8px 0;}
  #labDiscoveryDialog small {color:#a9dac2;font-size:12px;}
  #labDiscoveryHint {font-size:14px;line-height:1.65;color:#d7e1da;margin:16px 0 20px;}
  #labDiscoveryError {color:#ffb9a9;font-size:13px;line-height:1.5;}
  .lab-product #aiOpenBtn,.lab-product #aiPanel,.lab-product [data-private-copilot],.lab-product #copilotReminderSettingsPanel,
  .lab-product #toggleMenuCustomizeBtn,.lab-product #saveMenuCustomizeBtn {display:none!important;}
  #labMenuNotice {font-size:11px;line-height:1.5;color:#b5decf;}
  .lab-analysis-summary {display:flex;gap:40px;flex-wrap:wrap;border-block:1px solid #3c484b;padding:20px 0;margin:20px 0;}
  .lab-analysis-summary div {display:grid;gap:8px;}.lab-analysis-summary strong {font-size:24px;}
  .lab-analysis-rankings {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;}
  .lab-analysis-ranking h3,#labAnalysisConsumption h3 {font-size:16px;}
  .lab-analysis-ranking ol {padding-left:24px;}.lab-analysis-ranking li {padding:12px 0;border-bottom:1px solid #344044;}
  .lab-analysis-ranking li span {display:block;overflow-wrap:anywhere;margin-bottom:5px;}.lab-analysis-ranking strong {color:#a5dec6;}
  @media(max-width:1050px) {.lab-analysis-rankings {grid-template-columns:minmax(0,1fr);}}
  .lab-guide-note {padding:12px;border-left:3px solid #8dcbb1;background:#233b31;color:#d9f2e3;line-height:1.5;font-size:13px;}
  body.erp-test-style #libraryChoicePanel .dashboard-actions {gap:6px;}
  body.erp-test-style #libraryChoicePanel .action-card {display:inline-flex;align-items:center;flex:0 1 auto;padding:8px 13px;border:1px solid #4b5855;border-radius:4px;min-height:36px;}
  body.erp-test-style #libraryChoicePanel .action-card b {font-size:13px;}
  body.erp-test-style .lab-library-toolbar {display:grid;grid-template-columns:minmax(200px,2fr) minmax(150px,1fr);margin:16px 0 6px;}
  body.erp-test-style .lab-library-advanced {margin:0 0 16px;}
  body.erp-test-style .lab-library-advanced .toolbar {align-items:end;}
  body.erp-test-style .lab-library-advanced label {display:grid;gap:5px;flex:1 1 160px;}
  body.erp-test-style #libraryProfilesBody td:nth-child(2) {min-width:130px;}
  body.erp-test-style #libraryProfilesBody td:nth-child(3) {min-width:180px;}
  body.erp-test-style #section-library .table-wrap table {min-width:780px;}
  body.erp-test-style .settings-tabs {display:flex;flex-wrap:wrap;gap:4px;padding:0 0 12px;border-bottom:1px solid #384246;}
  body.erp-test-style .settings-tab-button {font-size:12px;min-height:34px;padding:7px 11px;background:#232b2e;color:#e1eae5;border:1px solid #475652;border-radius:4px;}
  body.erp-test-style .settings-tab-button.active {background:#273c36;color:#bcf1da;border-color:#6a9985;}
  @media(max-width:1100px) {body.erp-test-style .lab-affair-form .lab-fields {grid-template-columns:repeat(2,minmax(0,1fr));}}
  @media(max-width:900px) {body.erp-test-style .lab-fields,body.erp-test-style .lab-options {grid-template-columns:minmax(0,1fr);}}
  @media(min-width:1650px) {body.erp-test-style .dashboard-kpis {grid-template-columns:repeat(6,minmax(0,1fr));}}
  @media(min-width:1201px) {body.erp-test-style .private-dashboard-kpis {grid-template-columns:repeat(6,minmax(0,1fr));}}
  @media(max-width:1200px) {
    body.erp-test-style .app {grid-template-columns:190px minmax(0,1fr);}
    body.erp-test-style .app:not(.sidebar-collapsed) .menu-toggle {left:155px;}
    body.erp-test-style .app > aside {padding:20px 10px 12px;}
    body.erp-test-style main {padding:24px 18px 40px;}
    body.erp-test-style .brand h1 {font-size:15px;}
    body.erp-test-style .nav-button {font-size:12px;min-height:34px;}
    body.erp-test-style #orderEditPanel > .grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  }
  @media(max-width:760px) {
    body.erp-test-style .app {grid-template-columns:184px minmax(0,1fr);}
    body.erp-test-style .app:not(.sidebar-collapsed) .menu-toggle {left:150px;}
    body.erp-test-style .app.sidebar-collapsed {grid-template-columns:0 minmax(0,1fr);}
    body.erp-test-style main {padding:60px 12px 32px;}
    body.erp-test-style .dashboard-kpis {grid-template-columns:repeat(2,minmax(0,1fr));}
    body.erp-test-style .page-title {flex-wrap:wrap;}
    body.erp-test-style #orderEditPanel > .grid,
    body.erp-test-style #orderEditPanel .grid.three {grid-template-columns:repeat(2,minmax(0,1fr));}
  }
}
body.erp-test-style .lab-retired {display:none!important;}
@media screen {
  body.lab-workspace #section-library.active {display:block;}
  body.lab-workspace #section-library>.page-title {grid-column:1/-1;border-bottom:1px solid #3b4246;padding-bottom:18px;margin-bottom:22px;}
  body.lab-workspace #section-library>.page-title h2 {font-size:24px;margin:0;}
  body.lab-workspace #section-library>.page-title p {display:none;}
  body.lab-workspace #libraryChoicePanel {padding:0;border:0;position:static;margin-bottom:18px;}
  body.lab-workspace #libraryChoicePanel .action-grid {display:block;margin:0;}
  body.lab-workspace .lab-library-tabs {display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:16px;overflow-x:auto;}
  body.lab-workspace .lab-library-tab {display:flex;align-items:center;gap:8px;background:none;border:0;border-bottom:2px solid transparent;color:#b0b5bf;min-height:40px;padding:0 0 12px;white-space:nowrap;cursor:pointer;font-size:13px;}
  body.lab-workspace .lab-library-tab[aria-pressed="true"] {color:#f7a174;border-bottom-color:#f7a174;}
  body.lab-workspace .lab-library-tab .ico {color:inherit;background:none;border:0;display:inline-flex;align-items:center;}
  body.lab-workspace .lab-library-tab .ico svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;}
  body.lab-workspace .lab-library-categories {display:flex;gap:8px;flex-wrap:wrap;}
  body.lab-workspace #libraryChoicePanel .action-card {display:flex;flex-direction:row;width:auto;min-height:32px;gap:9px;padding:6px 10px;border:1px solid #41464f;background:transparent;text-align:left;color:#cbd4d9;box-shadow:none;}
  body.lab-workspace #libraryChoicePanel .action-card:hover {background:#252c30;border-color:#4b565e;}
  body.lab-workspace #libraryChoicePanel .action-card[aria-pressed="true"] {background:#2a2d32;border-color:#89909e;color:#f2f3f5;}
  body.lab-workspace #libraryChoicePanel .action-card b {min-width:0;overflow-wrap:anywhere;font-size:12px;font-weight:550;}
  body.lab-workspace #libraryChoicePanel .ico {width:16px;flex:0 0 16px;color:#b1cabd;}
  body.lab-workspace .lab-category-count {margin-left:auto;font-size:11px;font-variant-numeric:tabular-nums;color:#c4d3cd;}
  body.lab-workspace #libraryChoicePanel [data-library-entry="Favoris"] {margin-left:auto;}
  body.lab-workspace :is(#libraryArticlesPanel,#librarySuppliersPanel,#libraryClientsPanel) {grid-column:2;grid-row:2;min-width:0;border:0;padding:0;}
  body.lab-workspace :is(#libraryDetailPanel,#supplierDetailPanel) {grid-column:2;min-width:0;}
  body.lab-workspace #libraryArticlesPanel h3 {font-size:19px;margin:0;}
  body.lab-workspace #libraryFamilyFilters {display:none!important;}
  body.lab-workspace #libraryProfilesBody tr:only-child td[colspan] {height:150px;text-align:center;color:#becbc8;}
  body.lab-workspace #libraryProfilesBody [data-open-library-item] {background:none;border:0;color:#c1dffa;padding:0;font-weight:600;text-align:left;}
  body.lab-workspace #libraryProfilesBody .lab-icon-action {width:30px;height:30px;min-height:30px;padding:5px;}
  body.lab-workspace .lab-library-advanced {border:0;border-bottom:1px solid #3c464b;background:none;border-radius:0;padding:10px 0 16px;}
  body.lab-workspace #dashboardStatsPanel {padding:0;border:0;}
  body.lab-workspace #dashboardActionsGrid {display:flex;flex-wrap:wrap;gap:8px;padding:0 0 20px;margin:0 0 20px;border-bottom:1px solid #3b4246;}
  body.lab-workspace #dashboardActionsGrid .action-card {display:flex;padding:0;border:0;background:none;box-shadow:none;min-height:0;}
  body.lab-workspace #dashboardActionsGrid .btn {min-height:35px;padding:8px 13px;font-size:12px;}
  body.lab-workspace #dashboardKpisGrid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid #3b4246;border-left:1px solid #3b4246;}
  body.lab-workspace #dashboardKpisGrid .kpi-card {min-height:104px;padding:15px 17px;border:0;border-right:1px solid #3b4246;border-bottom:1px solid #3b4246;border-radius:0;background:#1c2225;box-shadow:none;}
  body.lab-workspace #dashboardKpisGrid .kpi-card>span {font-size:12px;color:#d2dfdc;}
  body.lab-workspace #dashboardKpisGrid .kpi-card>b {font-size:27px;color:#f0f5f3;line-height:1.3;margin:5px 0;font-variant-numeric:tabular-nums;}
  body.lab-workspace #dashboardKpisGrid .kpi-card>small {font-size:11px;color:#b8c6c3;line-height:1.4;}
  body.lab-workspace #dashboardKpisGrid .kpi-card:hover {background:#273a37;}
  body.lab-workspace #dashboardWorkshopReadyPanel {margin-top:24px!important;border:0;padding:0;}
  body.lab-workspace #dashboardWorkshopReadyPanel h3 {font-size:16px;}
  body.lab-workspace #prioritySummary {grid-template-columns:repeat(auto-fit,minmax(125px,1fr));}
  body.lab-workspace #prioritySummary>[hidden] {display:none!important;}
  @media(max-width:1100px){
    body.lab-workspace #dashboardKpisGrid {grid-template-columns:repeat(3,minmax(0,1fr));}
  }
  @media(max-width:760px){
    body.lab-workspace #section-library.active {display:block;}
    body.lab-workspace #libraryChoicePanel {position:static;margin-bottom:18px;}
    body.lab-workspace #libraryChoicePanel .action-card {width:auto;flex:0 0 auto;max-width:190px;}
    body.lab-workspace #libraryChoicePanel [data-library-entry="Favoris"] {margin:0;border-top:0;}
    body.lab-workspace #dashboardKpisGrid {grid-template-columns:repeat(2,minmax(0,1fr));}
  }
}
body.erp-test-style .lab-step-row {display:grid;grid-template-columns:38px minmax(160px,1fr) 92px 34px 34px;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid #374345;max-width:860px;}
body.erp-test-style .lab-step-row input {min-width:0;width:100%;}
body.erp-test-style .lab-step-enabled {display:flex;align-items:center;gap:6px;font-size:13px;color:#e3ece8;}
body.erp-test-style .lab-step-enabled input {width:16px;height:16px;}
body.erp-test-style .lab-step-row button {width:34px;height:34px;padding:5px;min-width:0;}
body.erp-test-style .lab-step-up .ico,body.erp-test-style .lab-step-down .ico {transform:rotate(90deg);}
body.erp-test-style #labStepIconDialog {background:#202628;color:#edf3ef;border:1px solid #667874;border-radius:6px;padding:20px;width:350px;max-width:calc(100vw - 32px);}
body.erp-test-style #labStepIcons {display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0;}
body.erp-test-style #labStepIcons button {height:42px;padding:8px;}
body.erp-test-style #labStepIconDialog::backdrop {background:#0008;}
body.erp-test-style #labStepsPanel h3 {font-size:18px;}
body.erp-test-style #labStepsPanel .toolbar {margin-top:14px;}
body.erp-test-style #labOrderPurchaseBanner {border-left:3px solid #69c3b0;padding:10px 12px;margin-bottom:14px;background:#203330;}
body.erp-test-style #labOrderPurchaseBanner strong {display:block;margin-bottom:10px;}
body.erp-test-style #labOrderPurchaseBanner .btn {margin-right:8px;}

@media screen {
  body.lab-workspace main {background:#111315;padding:24px 28px 40px;}
  body.lab-workspace :is(#section-folders,#section-purchase,#section-orders,#section-affair-detail,#section-library) {max-width:1800px;margin-inline:auto;}
  body.lab-workspace .lab-workspace-title {padding-bottom:20px;margin-bottom:18px;border-bottom:1px solid #3b4246;min-height:55px;}
  body.lab-workspace .lab-workspace-title>div {display:flex;align-items:center;gap:14px;}
  body.lab-workspace .lab-workspace-title h2 {font-size:24px;font-weight:650;margin:0;}
  body.lab-workspace .lab-list-count {font-size:12px;color:#bdc7cc;padding-left:14px;border-left:1px solid #485158;}
  body.lab-workspace .lab-data-table {min-width:900px;width:100%;table-layout:auto;}
  body.lab-workspace .lab-table-orders {min-width:740px;}
  body.lab-workspace #section-folders .lab-table-folders {min-width:1140px;table-layout:fixed;}
  body.lab-workspace .lab-table-folders th:nth-child(1) {width:145px;}
  body.lab-workspace .lab-table-folders th:nth-child(4) {width:62px;}
  body.lab-workspace .lab-table-folders th:nth-child(7) {width:90px;}
  body.lab-workspace .lab-table-folders th:nth-child(8) {width:145px;}
  body.lab-workspace .lab-table-folders th:nth-child(9) {width:205px;}
  body.lab-workspace .lab-table-folders th:nth-child(10) {width:98px;}
  body.lab-workspace .lab-table-folders th:nth-child(11) {width:170px;}
  body.lab-workspace #foldersBody .folder-office-progress {max-width:185px;overflow-x:auto;scrollbar-width:thin;}
  body.lab-workspace #foldersBody .folder-progress-button {flex:0 0 28px;}
  body.lab-workspace .lab-table-folders th:last-child,body.lab-workspace .lab-table-folders td:last-child,
  body.lab-workspace .lab-table-purchase th:last-child,body.lab-workspace .lab-table-purchase td:last-child {position:sticky;right:0;background:#202629;z-index:1;border-left:1px solid #353f45;}
  body.lab-workspace .lab-table-purchase {min-width:1080px;}
  body.lab-workspace .lab-data-table th {height:38px;padding:10px 12px;font-size:11px;background:#1b1e22;color:#b0b5bf;font-weight:600;}
  body.lab-workspace .lab-data-table td {height:54px;padding:10px 12px;font-size:13px;line-height:1.45;background:inherit;}
  body.lab-workspace .lab-data-table td:first-child {border-left:2px solid transparent;}
  body.lab-workspace .lab-data-table tr:hover td:first-child {border-left-color:#f29364;}
  body.lab-workspace .lab-merged-column {display:none;}
  body.lab-workspace .lab-cell-secondary {display:block;margin-top:5px;color:#b5c0c6;font-size:11px;font-weight:400;line-height:1.5;white-space:normal;overflow-wrap:anywhere;}
  body.lab-workspace #foldersBody td:nth-child(2) {min-width:155px;max-width:300px;font-weight:600;}
  body.lab-workspace #foldersBody td:nth-child(2) .lab-cell-secondary {font-size:12px;font-weight:400;}
  body.lab-workspace #foldersBody td:first-child>.btn,
  body.lab-workspace #purchaseAllLinesBody td:nth-child(4)>.btn {padding:0;background:none;border:0;color:#c1dffa;font-weight:650;min-height:24px;}
  body.lab-workspace #foldersBody td:first-child>.btn:hover,
  body.lab-workspace .lab-order-link:hover {color:#fff;text-decoration:underline;}
  body.lab-workspace #foldersBody td:nth-child(7) {min-width:90px;white-space:nowrap;color:#c7d2d7;font-variant-numeric:tabular-nums;}
  body.lab-workspace #foldersBody input[type="date"] {width:137px;min-width:130px;font-size:12px;padding:5px 7px;border-color:#3e484f;background:#20262a;}
  body.lab-workspace .lab-row-actions {white-space:nowrap;min-width:118px;}
  body.lab-workspace .lab-row-actions .btn {margin:2px;}
  body.lab-workspace .lab-row-actions .lab-icon-action {width:29px;height:29px;min-width:29px;padding:5px;display:inline-flex;align-items:center;justify-content:center;}
  body.lab-workspace .lab-icon-action .ico {margin:0;}
  body.lab-workspace .lab-order-link {background:none!important;border:0!important;display:flex;flex-direction:column;align-items:start;gap:0;padding:0!important;white-space:normal!important;text-align:left;min-width:115px;color:#c1dffa;}
  body.lab-workspace .lab-order-link strong {font-size:13px;font-weight:650;}
  body.lab-workspace #ordersBody td:nth-child(2) {max-width:120px;font-size:12px;color:#c7d2d7;}
  body.lab-workspace #ordersBody td:nth-child(3) {min-width:100px;max-width:250px;overflow-wrap:anywhere;color:#d0d9df;}
  body.lab-workspace #ordersBody td:nth-child(4) {text-align:center;font-variant-numeric:tabular-nums;}
  body.lab-workspace .lab-purchase-context {padding:0 0 20px;border:0;border-bottom:1px solid #353e43;}
  body.lab-workspace .lab-purchase-context h3 {font-size:14px;margin:0 0 14px;}
  body.lab-workspace #purchaseAffairChooser {display:grid;grid-template-columns:minmax(140px,1fr) minmax(260px,2fr);gap:12px;}
  body.lab-workspace #purchaseAffairChooser .lab-readonly-context {display:none;}
  body.lab-workspace #purchaseTypeButtons {display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
  body.lab-workspace #purchaseTypeButtons .btn {min-height:34px;padding:7px 12px;flex:0 0 auto;font-size:12px;background:#232b2f;border-color:#48555d;color:#d9e4ea;box-shadow:none;}
  body.lab-workspace #purchaseTypeButtons .btn:hover {border-color:#df946e;background:#352a25;}
  body.lab-workspace #purchaseTypeButtons #purchaseStockBtn {margin-left:auto;background:#313123;border-color:#68693c;color:#e6e4ad;}
  body.lab-workspace #purchaseFamilyFilters {gap:6px;margin:14px 0;}
  body.lab-workspace [data-purchase-filter] {font-size:11px;min-height:29px;padding:5px 9px;background:transparent;border:1px solid #414e57;}
  body.lab-workspace [data-purchase-filter][aria-pressed="true"] {background:#263c43;color:#b4e5ed;border-color:#57858d;}
  body.lab-workspace #purchaseSortSelect {margin-left:auto;flex:0 0 165px;font-size:12px;}
  body.lab-workspace .purchase-transfer-actions {display:flex;width:100%;flex-wrap:wrap;gap:8px;margin-top:10px;padding:12px 0 4px;border-top:1px solid #353e43;}
  body.lab-workspace .purchase-transfer-actions .btn {min-height:34px;font-size:12px;}
  body.lab-workspace .purchase-transfer-select {width:auto;min-width:190px;max-width:310px;flex:1 1 220px;}
  body.lab-workspace #purchaseAllLinesBody td:first-child {text-align:center;width:38px;}
  body.lab-workspace #purchaseAllLinesBody td:nth-child(5) {min-width:150px;max-width:260px;}
  body.lab-workspace #purchaseAllLinesBody td:nth-child(6) {min-width:140px;max-width:230px;}
  body.lab-workspace #purchaseAllLinesBody td:nth-child(8) {min-width:75px;font-variant-numeric:tabular-nums;}
  body.lab-workspace #purchaseAllLinesBody .lab-row-actions {min-width:76px;}
  body.lab-workspace #purchaseAllLinesBody td:nth-child(7),body.lab-workspace #purchaseAllLinesBody td:nth-child(9) {min-width:85px;width:90px;font-variant-numeric:tabular-nums;}
  body.lab-workspace :is(#purchaseAllLinesBody,#orderEditLinesBody) input:not([type="checkbox"]) {font-size:12px;min-height:32px;padding:6px 8px;border-color:#46535c;background:#20272c;}
  body.lab-workspace tr.pending-row td:first-child {border-left-color:#d9b868;}
  body.lab-workspace tr.pending-failed-row td:first-child {border-left-color:#f08e98;}
  body.lab-workspace .pending-note {color:#e4c888;font-size:11px;}
  body.lab-workspace .lab-order-fields {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px!important;padding:0 0 20px;border-bottom:1px solid #353e43;margin-bottom:18px;}
  body.lab-workspace .lab-order-fields .field {min-width:0;}
  body.lab-workspace .lab-order-fields .field:first-child {grid-column:span 2;}
  body.lab-workspace #orderDeliveryWrap {grid-row:1;grid-column:4;display:block;padding:0;margin:0;}
  body.lab-workspace .lab-order-secondary {border:0;}
  body.lab-workspace #section-orders:has(#orderEditPanel:not([hidden]))>.lab-order-list,
  body.lab-workspace #section-orders:has(#orderEditPanel:not([hidden]))>.page-title {display:none;}
  body.lab-workspace #orderEditPanel {padding-top:0;border-top:0;}
  body.lab-workspace #ordersMessage:empty {display:none;}
  body.lab-workspace #ordersMessage:not(:empty) {margin:8px 0 18px;padding:10px 14px;border-left:3px solid #7cad9a;background:#23332d;color:#d7eadf;}
  body.lab-workspace .lab-order-fields:has(#orderAmountMode option[value="auto"]:checked) .field:has(#orderManualAmountInput),
  body.lab-workspace .lab-order-fields:has(#orderDeliveryFeeCheckbox:not(:checked)) .field:has(#orderDeliveryFeeInput) {display:none;}
  body.lab-workspace #orderEditPanel .page-title h3 {font-size:20px;margin:0;}
  body.lab-workspace #orderEditPanel>.page-title {align-items:center;padding-bottom:18px;border-bottom:1px solid #353e43;margin-bottom:20px!important;}
  body.lab-workspace .lab-export-menu {position:relative;}
  body.lab-workspace .lab-export-menu summary {display:flex;align-items:center;gap:7px;list-style:none;min-height:34px;border:1px solid #48555d;border-radius:5px;padding:7px 11px;box-sizing:border-box;font-size:12px;font-weight:600;color:#dce6ed;background:#252c2f;}
  body.lab-workspace .lab-export-menu summary::-webkit-details-marker {display:none;}
  body.lab-workspace .lab-export-menu summary:focus-visible {outline:2px solid #eea87e;outline-offset:2px;}
  body.lab-workspace .lab-export-actions {position:absolute;right:0;top:calc(100% + 6px);z-index:15;display:grid;gap:6px;padding:10px;min-width:205px;border:1px solid #53606a;border-radius:6px;background:#21282d;box-shadow:0 12px 32px #0006;}
  body.lab-workspace .lab-export-menu:not([open]) .lab-export-actions {display:none;}
  body.lab-workspace #orderEditLinesBody td {padding:9px;font-size:12px;}
  body.lab-workspace #orderEditLinesBody td:nth-child(1) {min-width:130px;}
  body.lab-workspace #orderEditLinesBody td:nth-child(2) {min-width:85px;}
  body.lab-workspace #orderEditLinesBody td:nth-child(3) {min-width:180px;}
  body.lab-workspace #orderEditLinesBody td:nth-child(4) {min-width:180px;}
  body.lab-workspace #orderEditLinesBody td:nth-child(5),body.lab-workspace #orderEditLinesBody td:nth-child(6),body.lab-workspace #orderEditLinesBody td:nth-child(7) {min-width:80px;}
  body.lab-workspace #orderEditLinesBody td:nth-child(5) {min-width:125px;}
  body.lab-workspace #orderEditLinesBody td:nth-child(5)>.small {font-size:11px;line-height:1.5;}
  body.lab-workspace #orderEditLinesBody td:nth-child(9),body.lab-workspace #orderEditLinesBody td:nth-child(11) {min-width:130px;}
  body.lab-workspace .lab-order-total {display:flex;justify-content:space-between;align-items:center;gap:16px;background:none;border:0;border-top:1px solid #475158;border-bottom:1px solid #475158;border-radius:0;padding:16px 0;margin:18px 0!important;}
  body.lab-workspace .lab-order-total span {font-size:13px;color:#c7d4dc;}
  body.lab-workspace .lab-order-total b {font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;color:#f2f5f7;}
  body.lab-workspace .lab-affair-workspace>.page-title {margin-bottom:12px;padding-bottom:18px;}
  body.lab-workspace .lab-workspace-tabs {display:flex;overflow-x:auto;flex-wrap:nowrap;gap:14px;padding:0;margin-bottom:20px;}
  body.lab-workspace .affair-tab-button {flex:0 0 auto;white-space:nowrap;}
  body.lab-workspace .lab-affair-form {max-width:1120px;margin-top:20px;}
  body.lab-workspace .lab-form-group {padding-bottom:22px;margin-bottom:22px;}
  body.lab-workspace .lab-fields {gap:16px 20px;}
  body.lab-workspace .lab-fields .field {display:flex;flex-direction:column;gap:6px;}
  body.lab-workspace .lab-fields textarea {min-height:92px;resize:vertical;}
  body.lab-workspace .lab-library-toolbar {margin:16px 0 12px;}
  body.lab-workspace #libraryProfilesBody td {height:55px;}
  body.lab-workspace #affairIdentityPanel .lab-fields {grid-template-columns:repeat(3,minmax(0,1fr));}
  body.lab-workspace #affairIdentityPanel>.page-title .reference-box {display:flex;align-items:center;gap:16px;padding:10px 14px;min-height:0;}
  body.lab-workspace #affairEditRefPreview {font-size:16px;line-height:1.4;}
  body.lab-workspace .lab-fields .field:has(:is(#affairEditProjectDetails,#projectDetailsInput)) {grid-column:1/-1;}
  body.lab-workspace :is(#section-affair-create,#affairIdentityPanel) .lab-form-group {padding:0 0 12px;margin:0 0 14px;}
  body.lab-workspace :is(#section-affair-create,#affairIdentityPanel) .lab-form-group :is(legend,summary) {font-size:13px;margin-bottom:9px;}
  body.lab-workspace :is(#section-affair-create,#affairIdentityPanel) details:not([open]) {padding-bottom:8px;margin-bottom:8px;}
  body.lab-workspace :is(#section-affair-create,#affairIdentityPanel) details:not([open])>summary {margin:0;padding:6px 0;}
  body.lab-workspace :is(#section-affair-create,#affairIdentityPanel) .lab-fields {grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px;}
  body.lab-workspace :is(#section-affair-create,#affairIdentityPanel) .lab-fields .field {gap:4px;}
  body.lab-workspace :is(#section-affair-create,#affairIdentityPanel) .lab-fields :is(input:not([type=checkbox]),select) {min-height:34px;padding:6px 9px;}
  body.lab-workspace :is(#section-affair-create,#affairIdentityPanel) .lab-fields .field:has(:is(#projectDescription,#affairEditDescription)) {grid-column:span 2;}
  body.lab-workspace :is(#section-affair-create,#affairIdentityPanel) .lab-fields:has(.field[hidden] :is(#projectIndex,#affairEditIndex)) .field:has(:is(#projectDescription,#affairEditDescription)) {grid-column:1/-1;}
  body.lab-workspace #section-affair-create .lab-affair-form {margin-top:10px;}
  body.lab-workspace #section-affair-create .lab-affair-reference {margin-bottom:14px;padding:8px 12px;}
  body.lab-workspace #affairIdentityPanel {padding-bottom:0;margin-bottom:8px;}
  body.lab-workspace #affairRentabilityPanel {border:0;padding:0;margin:0;}
  body.lab-workspace #labAffairCosts {padding-bottom:8px;margin-bottom:8px;}
  body.lab-workspace #labAffairCosts>summary {font-size:13px;padding:6px 0;margin:0;}
  body.lab-workspace #labAffairCosts[open]>summary {margin-bottom:12px;}
  body.lab-workspace #labAffairCosts>.grid:first-of-type {grid-template-columns:repeat(2,minmax(0,1fr));}
  body.lab-workspace .lab-overview-heading {display:flex;justify-content:space-between;align-items:start;gap:20px;padding:4px 0 24px;}
  body.lab-workspace .lab-overview-heading h3 {font-size:23px;margin:7px 0;color:#f2f3f5;}
  body.lab-workspace .lab-overview-heading p {margin:0;color:#b0b5bf;max-width:750px;white-space:pre-wrap;overflow-wrap:anywhere;}
  body.lab-workspace .lab-eyebrow {color:#8cbbff;font-size:12px;font-weight:600;}
  body.lab-workspace .lab-overview-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 32px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;margin:0;}
  body.lab-workspace .lab-overview-facts dt {font-size:12px;color:#b0b5bf;margin-bottom:7px;}
  body.lab-workspace .lab-overview-facts dd {font-size:14px;color:#f2f3f5;margin:0;overflow-wrap:anywhere;}
  body.lab-workspace .lab-overview-detail {padding-top:22px;}
  body.lab-workspace .lab-overview-detail h3 {font-size:14px;}
  body.lab-workspace .lab-overview-detail p {white-space:pre-wrap;overflow-wrap:anywhere;color:#cbd0d8;}
  body.lab-workspace #labAffairOverview {border:0;padding:0;}
  body.lab-workspace .lab-affair-actions {position:sticky;bottom:0;z-index:3;padding:14px 0;background:#111315;border-top:1px solid var(--line);margin-top:24px;}
  body.lab-workspace #affairCompleteSummaryGrid {gap:0;border-top:1px solid var(--line);grid-template-columns:repeat(3,minmax(0,1fr));}
  body.lab-workspace #affairCompleteSummaryGrid .affair-complete-metric {border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none;padding:16px 18px 16px 0;min-height:90px;}
  body.lab-workspace #affairCompleteSummaryGrid .affair-complete-metric b {font-size:18px;line-height:1.4;margin-top:8px;color:#f2f3f5;}
  body.lab-workspace #affairCompleteSummaryGrid .affair-complete-metric span {font-size:12px;color:#b0b5bf;}
  body.lab-workspace #section-affair-detail .toolbar>.btn {flex:0 0 auto;width:auto;}
  body.lab-workspace #section-affair-detail>.page-title>.toolbar {justify-content:flex-end;}
  body.lab-workspace #section-affair-detail:has([data-affair-tab="overview"].active) #saveAffairDetailBtn {display:none;}
  body.lab-workspace .reference-box {background:#1b1e22;border-color:#41464f;border-left-color:#8cbbff;}
  @media(max-width:1200px){
    body.lab-workspace main {padding:22px 18px 36px;}
    body.lab-workspace .lab-order-fields {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
    body.lab-workspace .lab-order-fields .field:first-child {grid-column:auto;}
    body.lab-workspace #orderDeliveryWrap {grid-row:auto;grid-column:auto;}
    body.lab-workspace .lab-data-table td {padding:9px;font-size:12px;}
  }
  @media(max-width:760px){
    body.lab-workspace main {padding:60px 12px 30px;}
    body.lab-workspace .lab-workspace-title h2 {font-size:21px;}
    body.lab-workspace .lab-workspace-title>div {gap:8px;}
    body.lab-workspace .lab-list-count {padding-left:8px;font-size:11px;}
    body.lab-workspace #purchaseAffairChooser {grid-template-columns:minmax(0,1fr);}
    body.lab-workspace #purchaseTypeButtons #purchaseStockBtn {margin-left:0;}
    body.lab-workspace .purchase-transfer-actions>* {max-width:100%;}
    body.lab-workspace .lab-export-actions {right:auto;left:0;}
    body.lab-workspace :is(#section-affair-create,#affairIdentityPanel) .lab-fields,body.lab-workspace .lab-overview-facts {grid-template-columns:minmax(0,1fr);}
    body.lab-workspace :is(#section-affair-create,#affairIdentityPanel) .lab-fields .field:has(:is(#projectDescription,#affairEditDescription)) {grid-column:1/-1;}
    body.lab-workspace .lab-overview-heading {flex-wrap:wrap;}
  }
}
/* Administration shares the same controls, with one navigation and one content column. */
body.erp-test-style #labSettingsLayout {display:grid;grid-template-columns:190px minmax(0,1fr);gap:26px;align-items:start;}
body.erp-test-style #settingsTabs {display:flex;flex-direction:column;gap:18px;border:0;padding:0;min-width:0;position:sticky;top:14px;max-height:calc(100vh - 28px);overflow-y:auto;}
body.erp-test-style .lab-settings-nav-group {display:grid;gap:3px;}
body.erp-test-style .lab-settings-nav-group[hidden] {display:none;}
body.erp-test-style .lab-settings-nav-group h3 {font-size:11px;color:#aeb9bd;margin:0 0 6px;font-weight:600;text-transform:uppercase;}
body.erp-test-style #settingsTabs .settings-tab-button {width:100%;text-align:left;min-height:34px;padding:8px 10px;border-color:transparent;background:transparent;white-space:normal;}
body.erp-test-style #settingsTabs .settings-tab-button:hover {background:#273133;color:#fff;}
body.erp-test-style #settingsTabs .settings-tab-button.active {background:#293e36;border-color:#527e69;color:#e2f9ee;}
body.erp-test-style #labSettingsContent {min-width:0;max-width:1080px;padding-bottom:50px;}
body.erp-test-style #labSettingsHeading {font-size:20px;margin:0 0 18px;}
body.erp-test-style #labSettingsContent>.panel {border:0;border-radius:0;box-shadow:none;background:none;padding:0;margin:0 0 26px;}
body.erp-test-style #labSettingsContent .lab-install-band {padding:16px 0;}
body.erp-test-style #labSettingsContent .lab-install-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
body.erp-test-style #labSettingsContent button {max-width:100%;}
body.erp-test-style #labSettingsContent input:not([type=checkbox]):not([type=color]),body.erp-test-style #labSettingsContent select {min-width:0;max-width:100%;color:#edf3f1;}
body.erp-test-style #labSettingsContent .btn {width:auto;font-size:13px;min-height:34px;}
body.erp-test-style #labSettingsContent .lab-install-counts {width:100%;min-width:0;max-width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px;margin:12px 0;}
body.erp-test-style #labSettingsContent .lab-install-counts th,body.erp-test-style #labSettingsContent .lab-install-counts td {padding:7px 10px;border-bottom:1px solid #47505a;text-align:left;white-space:normal;overflow-wrap:anywhere;}
body.erp-test-style #labCompanyReload {margin-left:8px;}
body.erp-test-style #labModules {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:8px 0 18px;}
body.erp-test-style #labModules .lab-option {padding:10px 0;display:flex;gap:10px;align-items:center;}
body.erp-test-style #labUserEditor>.grid {grid-template-columns:repeat(2,minmax(0,1fr));}
body.erp-test-style #labUserEditor {scroll-margin-top:18px;}
body.erp-test-style #labUserEditor>.toolbar {position:sticky;bottom:0;background:#182022;padding:12px 0;border-top:1px solid #435050;z-index:2;}
body.erp-test-style #userPermissionsBox {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
body.erp-test-style #userPermissionsBox .role-permission-group {padding:12px 0;border:0;border-top:1px solid #435050;border-radius:0;background:none;}
body.erp-test-style #userPermissionsBox h4 {display:flex;justify-content:space-between;gap:10px;font-size:13px;color:#eef4f1;margin:0 0 10px;}
body.erp-test-style .lab-permission-count {font-size:12px;color:#adbdba;white-space:nowrap;font-weight:400;}
body.erp-test-style #userPermissionsBox .settings-check-label {display:flex;align-items:flex-start;gap:9px;min-height:32px;padding:5px 0;background:none;color:#e4ece8;font-size:13px;}
body.erp-test-style #userPermissionsBox input[type=checkbox] {width:16px;min-width:16px;height:16px;margin:0;accent-color:#72bd98;}
body.erp-test-style #labUserDevices .toolbar {gap:20px;min-height:36px;}
body.erp-test-style #labUserDevices .settings-check-label {display:flex;align-items:center;gap:9px;padding:0;margin:0;background:none;color:#e4ece8;font-size:13px;}
body.erp-test-style #labUserDevices input[type=checkbox] {width:16px;min-width:16px;max-width:16px;height:16px;min-height:16px;max-height:16px;padding:0;margin:0;accent-color:#72bd98;}
body.erp-test-style #labUserList .toolbar {display:flex;flex-wrap:wrap;gap:10px;}
body.erp-test-style #labUserSearch {flex:1 1 180px;width:auto;}
body.erp-test-style #labUserStatus {width:auto;max-width:180px;}
body.erp-test-style #labUserList table {min-width:600px;}
body.erp-test-style #labUserList td:last-child {white-space:nowrap;}
@media(max-width:1100px) {body.erp-test-style #labSettingsLayout {grid-template-columns:160px minmax(0,1fr);gap:18px;}}
@media(max-width:760px) {body.erp-test-style #labSettingsLayout {grid-template-columns:minmax(0,1fr);}body.erp-test-style #settingsTabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;position:static;max-height:none;}body.erp-test-style #labSettingsContent .lab-install-grid,body.erp-test-style #labModules,body.erp-test-style #labUserEditor>.grid,body.erp-test-style #userPermissionsBox {grid-template-columns:minmax(0,1fr);}}
