@import url("../v2/dowel.css");

:root{
  color-scheme:light;
  --bg:#f5f2eb;--surface:#fffdfa;--surface-soft:#f1eee6;--surface-strong:#e9e4d8;
  --ink:#1f2823;--muted:#657069;--faint:#8d968f;--line:#ddd8cc;--line-strong:#c7c0b2;
  --accent:#b8653b;--accent-strong:#94431f;--accent-soft:#f4dfd2;
  --green:#36795a;--green-soft:#dfeee6;--amber:#9b691c;--amber-soft:#f6ead0;
  --red:#aa4239;--red-soft:#f6dfdc;--blue:#386e93;--blue-soft:#deebf3;
  --radius:14px;--shadow:0 1px 2px rgba(32,40,35,.05),0 12px 32px rgba(32,40,35,.07);
  --sidebar:248px;
}
body.codex-redesign{background:var(--bg);letter-spacing:-.005em}
body.codex-redesign .sidebar{background:#1f2924;padding:22px 14px 16px}
body.codex-redesign .sidebar-brand{color:#d9875c}
body.codex-redesign .quick-create{background:#d57b4d;color:#1f211f;border-radius:11px;min-height:48px;box-shadow:0 8px 22px rgba(0,0,0,.16)}
body.codex-redesign .tab{border-radius:10px;min-height:46px}
body.codex-redesign .tab.active{background:#34443b;color:#ffd6bd}
body.codex-redesign .tab[aria-current="page"]{box-shadow:inset 3px 0 #dc8558}
body.codex-redesign .topbar{height:72px;background:rgba(245,242,235,.9);padding-inline:clamp(18px,3vw,38px)}
body.codex-redesign .screen{max-width:1420px;padding-top:32px}
body.codex-redesign .panel,body.codex-redesign .metric-card,body.codex-redesign .next-card,body.codex-redesign .grp,body.codex-redesign .order-overview-card{box-shadow:0 1px 0 rgba(31,40,35,.025)}
body.codex-redesign .next-card{background:#26342d;border-color:#26342d}
body.codex-redesign .view-header h1,body.codex-redesign .workspace-title h1{letter-spacing:-.04em}
body.codex-redesign .section-nav{border-radius:12px;padding:5px;background:#e9e4da;gap:3px}
body.codex-redesign .section-nav button{font-size:13px}
body.codex-redesign .section-nav button.active,body.codex-redesign .section-nav button[aria-selected="true"]{color:#7c3519}
body.codex-redesign .attention-item,body.codex-redesign .today-item{min-height:58px;padding:13px 14px}
body.codex-redesign .quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
body.codex-redesign .data-quality-note{margin:9px 0 4px;padding:10px 12px;border:1px solid #d9b36f;border-radius:10px;background:var(--amber-soft);color:#6d4a14;font-size:12.5px;line-height:1.45}
body.codex-redesign .material-bucket{margin-top:12px;border:1px solid var(--line);border-radius:13px;background:var(--surface);overflow:hidden}
body.codex-redesign .material-bucket>summary{display:flex;align-items:center;gap:8px;min-height:50px;padding:10px 13px;cursor:pointer;font-weight:800;list-style:none}
body.codex-redesign .material-bucket>summary::-webkit-details-marker{display:none}
body.codex-redesign .material-bucket>summary::after{content:"＋";margin-left:auto;font-size:19px;color:var(--muted)}
body.codex-redesign .material-bucket[open]>summary::after{content:"−"}
body.codex-redesign .material-bucket>summary span{display:inline-flex;min-width:25px;height:25px;align-items:center;justify-content:center;border-radius:999px;background:var(--surface-soft);font-size:11px;color:var(--muted)}
body.codex-redesign .material-bucket-body{padding:0 11px 12px;border-top:1px solid var(--line)}
body.codex-redesign .receipt-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:920px}
body.codex-redesign .receipt-choice{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;min-height:170px;padding:22px;border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--ink);cursor:pointer}
body.codex-redesign .receipt-choice:hover{border-color:var(--accent);box-shadow:var(--shadow)}
body.codex-redesign .receipt-choice strong{font-size:19px}.receipt-choice small{color:var(--muted);font-size:13px}.receipt-choice span{margin-top:auto;color:var(--accent-strong);font-weight:800}
body.codex-redesign .codex-edit-toggle{width:100%;justify-content:space-between;margin-bottom:8px;border-color:var(--line-strong);background:var(--surface-soft);font-weight:750}
body.codex-redesign .codex-edit-toggle::after{content:"＋";font-size:18px}
body.codex-redesign .codex-edit-toggle[aria-expanded="true"]::after{content:"−"}
body.codex-redesign #codexPartEditFields{padding-top:8px}
body.codex-redesign .keep-login{display:flex;align-items:center;gap:8px;margin:10px 0 5px;cursor:pointer}
body.codex-redesign .keep-login input{width:auto;margin:0;flex:none}
body.codex-redesign :focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 55%,white);outline-offset:3px}
body.codex-redesign button,body.codex-redesign .chip,body.codex-redesign input,body.codex-redesign select{min-height:44px}
body.codex-redesign .catalog-suggestions{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:10px;max-height:330px;overflow:auto}
body.codex-redesign .catalog-suggestions-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:7px}.catalog-suggestions-head span{font-size:11px;color:var(--muted)}
body.codex-redesign .catalog-suggestions label{display:flex;align-items:flex-start;gap:8px;padding:8px;border-top:1px solid var(--line);cursor:pointer;font-size:12.5px}.catalog-suggestions label:hover{background:var(--surface-soft)}
body.codex-redesign .catalog-suggestions label input{min-height:0;margin-top:2px}.catalog-suggestions-actions{display:flex;gap:7px;flex-wrap:wrap;padding-top:9px}
body.codex-redesign .catalog-suggestion{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line)}body.codex-redesign .catalog-suggestion label{flex:1;min-width:0;border-top:0}body.codex-redesign .catalog-suggestion label>span{min-width:0}body.codex-redesign .catalog-suggestion label strong{display:block;line-height:1.3}body.codex-redesign .catalog-order-code{display:block;margin-top:3px;color:var(--muted);font-size:11px}body.codex-redesign .catalog-suggestion>.demos-product-link{margin-right:8px}
body.codex-redesign .set-selection-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 0;padding:9px 11px;border:1px dashed var(--line-strong);border-radius:10px;background:var(--surface-soft);font-size:11px;color:var(--muted)}
body.codex-redesign .order-toolbar{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:13px 14px;border:1px solid var(--line);border-radius:13px;background:var(--surface-soft)}
body.codex-redesign .order-toolbar strong,body.codex-redesign .order-toolbar small{display:block}body.codex-redesign .order-toolbar small{margin-top:3px;color:var(--muted)}body.codex-redesign .order-toolbar-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
body.codex-redesign .global-demos-toolbar{margin:12px 0 4px}body.codex-redesign .global-order-select{flex:0 0 52px}body.codex-redesign .global-cart-note{color:var(--accent-strong)}body.codex-redesign .global-cart-note b{font-weight:750}
body.codex-redesign .supplier-warning{display:flex;flex-direction:column;gap:3px;margin:10px 0;padding:11px 13px;border:1px solid #d7a963;border-radius:11px;background:var(--amber-soft);color:#6d4a14;font-size:12.5px}.supplier-warning b{font-size:13px}
body.codex-redesign .order-other-note{display:flex;flex-direction:column;gap:3px;margin:10px 0;padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:var(--surface-soft);font-size:12.5px}.order-other-note span{color:var(--muted)}
body.codex-redesign .order-add{margin:10px 0 2px}.order-add-toggle{width:100%;justify-content:flex-start;border-style:dashed;border-color:var(--accent);color:var(--accent-strong);background:var(--accent-soft);font-weight:800}.order-add-form{margin-top:8px;padding:14px;border:1px solid var(--line-strong);border-radius:13px;background:var(--surface)}.order-add-form[hidden],.order-add-catalog[hidden],.order-add-form [hidden]{display:none!important}
body.codex-redesign .order-add-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.order-add-head strong,.order-add-head small{display:block}.order-add-head small{margin-top:3px;color:var(--muted);font-size:12px}.order-add-modes{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.order-add-modes .active{border-color:var(--accent);color:var(--accent-strong);background:var(--accent-soft)}
body.codex-redesign .order-add-grid{display:grid;grid-template-columns:minmax(220px,2fr) minmax(135px,1fr) minmax(170px,1.2fr) 110px 90px minmax(150px,1fr);gap:8px;align-items:end}.order-add-grid label{display:flex;flex-direction:column;gap:4px;min-width:0}.order-add-grid label>span{font-size:11px;color:var(--muted);font-weight:700}.order-add-name{grid-column:span 2}.order-add-note{grid-column:span 4}.order-add-block{grid-column:span 2;flex-direction:row!important;align-items:center;min-height:44px;padding:0 3px}.order-add-block input{width:auto;min-height:0!important;margin:0}.order-add-block span{color:var(--ink)!important;font-size:12px!important}.order-add-catalog{margin-top:10px}.order-add-results{max-height:360px}.order-add-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;padding-top:11px;border-top:1px solid var(--line)}.order-add-footer .hint{min-width:0}.order-qty-readonly strong{font-size:14px;text-align:right}
body.codex-redesign .order-group{margin-top:13px}.order-line{display:grid;grid-template-columns:auto minmax(260px,1fr) minmax(350px,auto) auto auto auto;align-items:center;gap:10px;padding:12px 11px;border-top:1px solid var(--line)}body.codex-redesign .order-select input,body.codex-redesign .order-select-all input{min-height:0}
body.codex-redesign .order-line-main strong,body.codex-redesign .order-line-main small{display:block}.order-line-main small{margin-top:3px;color:var(--muted);font-size:11px}.order-qty{display:grid;grid-template-columns:auto 82px auto;align-items:center;gap:5px;color:var(--muted);font-size:11px}.order-qty input{width:82px;text-align:right}.order-qty em{font-style:normal}
body.codex-redesign .order-amounts{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(82px,auto);gap:6px;align-items:stretch}.order-amounts>span{display:flex;flex-direction:column;justify-content:center;min-height:46px;padding:6px 9px;border:1px solid var(--line);border-radius:9px;background:var(--surface);white-space:nowrap}.order-amounts small{color:var(--muted);font-size:9.5px;line-height:1.2}.order-amounts b{margin-top:2px;font-size:13px}.order-amounts .needs-order{border-color:#d9a15f;background:var(--amber-soft);color:#784b0f}.order-amounts .is-done{color:var(--green)}
body.codex-redesign .order-breakdown{margin-top:8px;border-top:1px dashed var(--line);padding-top:6px}.order-breakdown>summary{display:inline-flex;align-items:center;min-height:36px;color:var(--accent-strong);font-size:11.5px;font-weight:800;cursor:pointer}.order-breakdown-list{display:flex;flex-direction:column;gap:6px;margin-top:4px}.order-source-row{display:grid;grid-template-columns:minmax(150px,1fr) auto auto;align-items:center;gap:8px;padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft)}.order-source-row>div:first-child b,.order-source-row>div:first-child small{display:block}.order-source-row>div:first-child small{margin-top:2px;color:var(--muted);font-size:10.5px}.order-source-row .order-amounts.compact{grid-auto-columns:minmax(72px,auto)}.order-source-row .order-amounts.compact>span{min-height:40px;padding:5px 7px}.order-source-row .order-amounts.compact small{font-size:8.5px}.order-source-row .order-amounts.compact b{font-size:11.5px}
body.codex-redesign .order-change{white-space:nowrap}.order-amount-dialog{display:flex;flex-direction:column;gap:13px}.order-change-product{display:flex;flex-direction:column;gap:3px}.order-change-product>strong{font-size:16px}.order-change-product>span{color:var(--muted);font-size:12px}.order-amount-dialog>label{display:flex;flex-direction:column;gap:5px}.order-amount-dialog>label>span{font-size:12px;font-weight:800}.order-amount-dialog input{font-size:18px;font-weight:800}.order-amount-dialog textarea{width:100%;min-height:88px;resize:vertical}.order-change-preview{min-height:48px;padding:11px 12px;border:1px solid #d9a15f;border-radius:10px;background:var(--amber-soft);font-size:13px;line-height:1.45}.order-change-error{min-height:18px;color:var(--red);font-size:12px;font-weight:700}.order-amount-dialog>.btn{width:100%;min-height:50px}
body.codex-redesign .order-footer{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.order-footer span{font-size:11px;color:var(--muted)}
body.codex-redesign .order-related{margin-top:12px;padding:13px;border:1px solid #bfd1c4;border-radius:13px;background:var(--green-soft)}
body.codex-redesign .order-related-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:9px}.order-related-head strong{display:block}.order-related-head>span{max-width:590px;color:var(--muted);font-size:12px;line-height:1.45}
body.codex-redesign .order-related-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.codex-redesign .order-related-row{display:grid;grid-template-columns:minmax(180px,1fr) 90px minmax(135px,.65fr) auto;align-items:end;gap:8px;padding:10px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
body.codex-redesign .order-related-main{min-width:0}.order-related-main strong{display:block;line-height:1.35}.order-related-main .demos-product-ref{margin-top:5px}
body.codex-redesign .order-related-row>label{display:flex;flex-direction:column;gap:4px;min-width:0}.order-related-row>label>span{color:var(--muted);font-size:11px;font-weight:700}.order-related-row input,.order-related-row select{width:100%;min-width:0}
body.codex-redesign .order-related-more,body.codex-redesign .order-alternatives{margin-top:9px;border-top:1px solid rgba(54,121,90,.22);padding-top:9px}.order-related-more>summary,.order-alternatives>summary{cursor:pointer;font-weight:800}
body.codex-redesign .order-alternative-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}.order-alternative-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;padding:10px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}.order-alternative-row>button{grid-column:1/-1;justify-self:start}.order-alternative-row strong{display:block;line-height:1.35}

/* Objednat je pracovní plocha, ne úzká informační karta. Na širokém monitoru
   využije celý prostor; pořadí polí zůstává stejné i na tabletu a mobilu. */
body.codex-redesign .screen.order-workspace{max-width:1680px}
body.codex-redesign .order-workspace .workspace-section[data-section="material"].active{grid-template-columns:minmax(0,1fr)}
body.codex-redesign .order-workspace .workspace-section[data-section="material"].active>.grp{width:100%;min-width:0}
body.codex-redesign .order-add-grid{grid-template-columns:repeat(12,minmax(0,1fr))}
body.codex-redesign .order-add-grid>label{min-width:0}
body.codex-redesign .order-add-grid>label>input,
body.codex-redesign .order-add-grid>label>select{width:100%;max-width:100%;min-width:0}
body.codex-redesign .order-add-grid>.order-add-name{grid-column:span 6}
body.codex-redesign .order-add-grid>label:nth-child(2),
body.codex-redesign .order-add-grid>label:nth-child(3){grid-column:span 3}
body.codex-redesign .order-add-grid>label:nth-child(4),
body.codex-redesign .order-add-grid>label:nth-child(5){grid-column:span 2}
body.codex-redesign .order-add-grid>label[data-order-add-supplier-wrap]{grid-column:span 3}
body.codex-redesign .order-add-grid>.order-add-note{grid-column:span 5}
body.codex-redesign .order-add-grid>.order-add-block{grid-column:1/-1}
body.codex-redesign .onedrive-sync-card{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:13px 0;padding:13px 14px;border:1px solid #b9cfbf;border-radius:13px;background:var(--green-soft)}
body.codex-redesign .onedrive-sync-card strong,body.codex-redesign .onedrive-sync-card small{display:block}body.codex-redesign .onedrive-sync-card small{margin-top:3px;color:var(--muted);overflow-wrap:anywhere}body.codex-redesign .onedrive-sync-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
body.codex-redesign .new-pc-card.active{border:2px solid var(--accent);box-shadow:0 12px 34px rgba(32,52,42,.12)}
body.codex-redesign .new-pc-steps{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
body.codex-redesign .new-pc-steps>div{display:flex;gap:10px;align-items:flex-start;padding:11px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}
body.codex-redesign .new-pc-steps>div>span{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:var(--green);color:#fff;font-weight:800}
body.codex-redesign .new-pc-steps p,body.codex-redesign .new-pc-steps b,body.codex-redesign .new-pc-steps small{display:block;margin:0}
body.codex-redesign .new-pc-steps small{margin-top:3px;color:var(--muted);line-height:1.45}
body.codex-redesign .new-pc-status{display:flex;flex-direction:column;gap:3px;margin:10px 0;padding:11px 13px;border-radius:11px;border:1px solid var(--line)}
body.codex-redesign .new-pc-status.ok{border-color:#98bea4;background:var(--green-soft)}body.codex-redesign .new-pc-status.wait{background:var(--surface-soft)}
body.codex-redesign .new-pc-status span{font-size:12px;color:var(--muted)}body.codex-redesign .new-pc-actions{display:flex;gap:7px;flex-wrap:wrap}
body.codex-redesign .new-pc-details{margin-top:10px;padding-top:9px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted)}body.codex-redesign .new-pc-details summary{cursor:pointer;color:var(--ink);font-weight:700}
@media (min-width:781px){body.codex-redesign .top-create{display:none!important}}

@media (min-width:781px) and (max-width:1180px){
  body.codex-redesign .order-add-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  body.codex-redesign .order-add-grid>.order-add-name{grid-column:1/-1}
  body.codex-redesign .order-add-grid>label:nth-child(2),body.codex-redesign .order-add-grid>label:nth-child(3){grid-column:span 3}
  body.codex-redesign .order-add-grid>label:nth-child(4),body.codex-redesign .order-add-grid>label:nth-child(5),body.codex-redesign .order-add-grid>label[data-order-add-supplier-wrap]{grid-column:span 2}
  body.codex-redesign .order-add-grid>.order-add-note,body.codex-redesign .order-add-grid>.order-add-block{grid-column:1/-1}
  body.codex-redesign .order-related-list,body.codex-redesign .order-alternative-list{grid-template-columns:1fr}
  body.codex-redesign .order-line{grid-template-columns:auto minmax(220px,1fr) auto auto}.order-line>.order-amounts{grid-column:2/-1;justify-self:stretch;grid-auto-columns:minmax(78px,1fr)}.order-line>.stv{grid-column:2;justify-self:start}.order-line>.order-change,.order-line>[data-order-mark]{grid-row:auto}.order-source-row{grid-template-columns:minmax(150px,1fr) minmax(300px,auto)}.order-source-row .order-change{grid-column:1/-1;justify-self:end}
}

@media (max-width:780px){
  :root{--radius:13px}
  body.codex-redesign .topbar{height:60px;padding:8px 12px}
  body.codex-redesign .mobile-brand{display:block;margin-right:auto;font-size:17px;letter-spacing:-.03em}
  body.codex-redesign .search-trigger{margin:0;width:44px;min-width:44px;padding:0;background:transparent;border-color:transparent}
  body.codex-redesign .search-trigger span:not(.search-icon),body.codex-redesign .search-trigger kbd{display:none}
  body.codex-redesign .top-create{width:44px;min-width:44px;padding:0;font-size:0}
  body.codex-redesign .top-create::before{content:"＋";font-size:20px}
  body.codex-redesign .account-summary{display:none}
  body.codex-redesign .context-switch{min-height:42px;padding:7px 10px;font-size:11px}
  body.codex-redesign .context-switch-long{display:none}body.codex-redesign .context-switch-short{display:inline}
  body.codex-redesign .platform-kpi{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.codex-redesign .screen{padding:16px 11px calc(94px + env(safe-area-inset-bottom))}
  body.codex-redesign .mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr));padding-top:7px}
  body.codex-redesign .mobile-nav .tab{min-width:0;min-height:58px;font-size:10.5px}
  body.codex-redesign #instalovatApp{right:10px!important;bottom:calc(76px + env(safe-area-inset-bottom))!important;max-width:calc(100vw - 20px);padding:.5rem .75rem!important;font-size:12px!important;z-index:54!important}
  body.codex-redesign .section-nav{top:66px;margin-inline:-1px;overflow-x:auto;scroll-snap-type:x proximity}
  body.codex-redesign .section-nav button{scroll-snap-align:start;min-height:46px}
  body.codex-redesign .summary-strip{gap:8px}
  body.codex-redesign .next-card{padding:16px}
  body.codex-redesign .workspace-actions .btn,body.codex-redesign .workspace-actions .chip{min-height:46px}
  body.codex-redesign .create-order-card{padding:17px 14px;border-radius:14px}
  body.codex-redesign .create-order-footer{margin-inline:-4px;padding-inline:4px;display:block}
  body.codex-redesign .create-order-footer .btn{width:100%;min-height:52px}
  body.codex-redesign .create-order-footer .hint{display:block;margin-top:8px}
  body.codex-redesign .receipt-choice-grid{grid-template-columns:1fr}.receipt-choice{min-height:132px;padding:18px}
  body.codex-redesign .order-toolbar,body.codex-redesign .onedrive-sync-card{align-items:stretch;flex-direction:column}
  body.codex-redesign .order-toolbar-actions,body.codex-redesign .onedrive-sync-actions{justify-content:stretch}body.codex-redesign .order-toolbar-actions>*,body.codex-redesign .onedrive-sync-actions>*{flex:1}
  body.codex-redesign .order-add-form{padding:12px 11px}.order-add-head{flex-direction:column}.order-add-modes{width:100%;justify-content:stretch}.order-add-modes>*{flex:1 1 140px}.order-add-grid{grid-template-columns:minmax(0,1fr) minmax(92px,.45fr)}.order-add-grid label,.order-add-name,.order-add-note,.order-add-block{grid-column:1/-1}.order-add-grid label:nth-child(4){grid-column:1}.order-add-grid label:nth-child(5){grid-column:2}.order-add-footer{align-items:stretch;flex-direction:column}.order-add-footer .btn{width:100%;min-height:50px}
  body.codex-redesign .order-line{grid-template-columns:42px minmax(0,1fr) auto;gap:8px}.order-line-main{grid-column:2/-1}.order-line>.order-amounts{grid-column:2/-1;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.order-line>.order-amounts>span{white-space:normal}.order-line>.stv{grid-column:2;justify-self:start}.order-line>.order-change,.order-line>[data-order-mark]{grid-column:2/-1;width:100%;justify-content:center}.order-select-spacer{grid-column:1}.order-source-row{grid-template-columns:1fr}.order-source-row .order-amounts.compact{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.order-source-row .order-change{width:100%;justify-content:center}.order-change-product>strong{font-size:15px}
  body.codex-redesign .new-pc-steps{grid-template-columns:1fr}body.codex-redesign .new-pc-actions>*{flex:1 1 100%}
  body.codex-redesign .order-related{padding:11px 9px}body.codex-redesign .order-related-head{flex-direction:column;gap:5px}body.codex-redesign .order-related-list,body.codex-redesign .order-alternative-list{grid-template-columns:1fr}body.codex-redesign .order-related-row{grid-template-columns:1fr}body.codex-redesign .order-related-row>[data-order-related-add],body.codex-redesign .order-alternative-row>button{width:100%}body.codex-redesign .order-alternative-row{grid-template-columns:1fr}
}

@media (max-width:780px){
  body.codex-redesign .screen.order-workspace{max-width:none}
  body.codex-redesign .order-add-grid{grid-template-columns:minmax(0,1fr) minmax(92px,.45fr)}
  body.codex-redesign .order-add-grid>label,
  body.codex-redesign .order-add-grid>.order-add-name,
  body.codex-redesign .order-add-grid>.order-add-note,
  body.codex-redesign .order-add-grid>.order-add-block,
  body.codex-redesign .order-add-grid>label:nth-child(2),
  body.codex-redesign .order-add-grid>label:nth-child(3),
  body.codex-redesign .order-add-grid>label[data-order-add-supplier-wrap]{grid-column:1/-1}
  body.codex-redesign .order-add-grid>label:nth-child(4){grid-column:1}
  body.codex-redesign .order-add-grid>label:nth-child(5){grid-column:2}
}

@media (prefers-color-scheme:dark){body.codex-redesign{color-scheme:light;background:#f5f2eb;color:#1f2823}}
