/* Jediná odchylka od původního exportu: bezpečné mobilní rozvržení. */
@media(max-width:760px){
  main[style*="padding"]{padding:20px 14px 44px!important}
  body{overflow-x:hidden}.mx-shell{min-width:0!important} aside{display:flex!important;position:fixed!important;left:0;top:0;bottom:0;height:100dvh!important;width:min(86vw,320px)!important;transform:translateX(-105%);transition:transform .22s ease;z-index:90;box-shadow:14px 0 35px rgba(0,0,0,.2)}aside.is-open{transform:translateX(0)}
  [style*="min-height:100vh"]{min-height:100dvh!important}
  .page-heading{align-items:flex-start;flex-wrap:wrap}.page-heading h1{font-size:22px!important}
  .list-toolbar__top{padding:12px!important}.list-toolbar__bottom{padding:12px!important;gap:10px!important}.list-toolbar__action{margin-left:0!important;width:100%}.list-toolbar__action button{width:100%!important}
  .filter-control{min-width:100%!important}.quick-filter-group{margin-left:0!important;padding-left:0!important;border-left:0!important}
  .tcard{overflow:visible!important}.tbl,.tbl tbody,.tbl tr,.tbl td{display:block;min-width:0!important}.tbl thead{display:none}.tbl{width:100%!important}.tbl tr{position:relative;padding:12px 14px;border-bottom:1px solid var(--neutral-600)}.tbl td{padding:4px 0!important;border:0!important;display:flex;gap:12px;justify-content:space-between;overflow-wrap:anywhere}.tbl td:before{content:attr(data-label);font:600 10px/1.2 var(--font-body);color:var(--neutral-900);text-transform:uppercase}.tbl td:first-child:before{display:none}.row-actions{position:absolute;right:10px;top:8px}.tbl td:first-child{padding-right:76px!important}
  .card,.order-section{padding:16px!important}.drow{align-items:flex-start;flex-direction:column;gap:6px}.ef{max-width:100%!important;width:100%;text-align:left}.fgrid,.order-kv,.order-form-grid,.price-breakdown,.vehicle-facts{grid-template-columns:1fr!important}.order-kv__item--wide,.vehicle-fact--wide,.order-form-grid .ff--full{grid-column:auto!important}.order-head__actions,.entity-head__actions{width:100%;margin-left:0!important}.order-total,.payment-state__side{text-align:left}.payment-state,.vehicle-identity{align-items:flex-start;flex-direction:column}.datetime-control,.order-core-grid .datetime-control{grid-template-columns:1fr!important}.custom-picker-popover{position:fixed!important;inset:auto 12px 12px!important;width:auto!important;max-height:70dvh;overflow:auto}.modal-backdrop{padding:12px!important}.confirm-modal{max-height:calc(100dvh - 24px);overflow:auto}
}
@media(max-width:760px){.mobile-menu-toggle{display:block!important;position:fixed!important;z-index:120!important;right:12px!important;left:auto!important;top:13px!important;width:38px!important;height:38px!important;border:1px solid var(--border-subtle)!important;border-radius:7px!important;background:#fff!important;color:var(--text-primary)!important;font-size:19px!important;box-shadow:0 2px 8px rgba(0,0,0,.08)!important}.mobile-menu-shade{position:fixed!important;inset:0!important;border:0!important;background:rgba(0,0,0,.35)!important;z-index:89!important;display:none!important}.mobile-menu-shade.is-open{display:block!important}aside.is-open{z-index:130!important}body.menu-open{overflow:hidden!important}main{width:100%!important;padding-left:0!important}main>header{padding-right:62px!important;padding-left:18px!important}}
/* Kliknutím na záznam se otevře jeho náhled; akce v řádku zůstávají samostatné. */
.tf-view-row { cursor: pointer; }
.tf-view-row .row-actions { cursor: default; }
.tf-view-row .row-actions button { cursor: pointer; }
/* Poslední sloupec je všude sloupec akcí. */
.tbl th:last-child, .tbl td:last-child { text-align: left; }
.tbl td:last-child .row-actions { justify-content: flex-start; }
/* Finální desktopové zarovnání a přetékání tabulek. */
aside > div:last-child { display:none!important; }
@media (min-width:761px){
  .tcard{overflow-x:auto!important;max-width:100%}
  .tbl{min-width:860px}
  .order-list-table{min-width:1080px}
  .list-toolbar__top{gap:12px}.list-toolbar__top .tsearch{min-width:260px;flex:1}
  .order-shell,.card{min-width:0}.order-section{min-width:0}
}
@media (max-width:760px){
  /* Jednosloupcové zakládací formuláře: poptávka, kontakt i vozidlo. */
  .card > div[style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr!important;gap:12px!important}
  .card > div[style*="grid-template-columns:1fr 1fr"] > .ff{grid-column:auto!important}
  .order-shell{padding:0!important}.order-head{padding:16px 14px 12px!important}.order-head__title h2{font-size:21px!important;line-height:1.15!important}
  .order-quick-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;margin:0 14px 14px!important}.order-quick-actions .btn-ghost{margin:0!important;width:100%}
  .order-detail-stack{gap:12px!important}.order-detail-stack .order-section{padding:15px!important;border-radius:10px!important}.order-section__head{margin-bottom:12px!important}.order-section__head h3{font-size:16px!important}.order-section__head p{font-size:12px!important;line-height:1.4!important}
  .order-kv__item,.vehicle-fact{padding:11px!important}.order-kv__item strong,.vehicle-fact strong{font-size:14px!important}.price-breakdown__item{padding:12px!important}
  .order-list-table tr{padding:13px 14px 12px!important}.order-list-table td:nth-child(5),.order-list-table td:nth-child(7),.order-list-table td:nth-child(9){display:none!important}.order-list-table td:nth-child(1){font-size:15px!important;font-weight:700!important}.order-list-table td:nth-child(2),.order-list-table td:nth-child(3),.order-list-table td:nth-child(4),.order-list-table td:nth-child(6),.order-list-table td:nth-child(8){display:flex!important}
  .order-list-table td:nth-child(8){margin-top:5px}.order-list-table td:last-child{position:absolute;right:10px;top:9px}.order-list-table td:last-child:before{display:none}
}
