/*
 * Home Center Premium
 * Minimalistyczna warstwa interfejsu oparta na funkcjonalnym fundamencie v2.
 * Reguły aplikacji są aktywne wyłącznie po wyborze wariantu v3.
 */

/* Nowe elementy powłoki pozostają neutralne w starszych szablonach. */
.brand-mark,
.brand-caption,
.topbar-brand-home,
.topbar-context-kicker{
  display:none;
}

.brand-copy,
.topbar-context{
  display:contents;
}

/* Podgląd wariantu w panelu administracyjnym. */
.ui-template-admin-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.ui-template-swatch-v3{
  background:linear-gradient(135deg,#d3b67a 0%,#476b72 46%,#0b1118 100%);
}

.ui-template-preview-v3{
  overflow:hidden;
  background:#0a1119;
}

.ui-template-preview-v3 .ui-template-preview-topbar{
  gap:4px;
  padding:7px 9px;
  border-bottom:1px solid rgba(255,255,255,.09);
  background:#101923;
}

.ui-template-preview-v3 .ui-template-preview-topbar span{
  width:6px;
  height:6px;
  border-radius:2px;
  background:#d3b67a;
}

.ui-template-preview-v3 .ui-template-preview-body{
  grid-template-columns:54px 1fr;
  min-height:126px;
}

.ui-template-preview-v3 .ui-template-preview-sidebar{
  gap:7px;
  padding:9px 7px;
  border-right:1px solid rgba(255,255,255,.08);
  background:#0d151f;
}

.ui-template-preview-v3 .ui-template-preview-pill{
  height:6px;
  border:0;
  border-radius:2px;
  background:rgba(255,255,255,.16);
}

.ui-template-preview-v3 .ui-template-preview-main{
  gap:8px;
  padding:10px;
}

.ui-template-preview-v3 .ui-template-preview-card{
  height:25px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:5px;
  background:#121d29;
}

.ui-template-preview-v3 .ui-template-preview-table{
  gap:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:5px;
}

.ui-template-preview-v3 .ui-template-preview-row{
  height:17px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.07);
  border-radius:0;
  background:transparent;
}

@media (max-width:1180px){
  .ui-template-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:700px){
  .ui-template-admin-grid{grid-template-columns:1fr}
}

/* ===== Fundament i skala ===== */
html[data-ui-template="v2"][data-ui-template-choice="v3"]{
  color-scheme:dark;
  --bg:#080d13;
  --bg2:#0a1017;
  --surface:#111a24;
  --surface2:#0e1721;
  --surface3:#0b121a;
  --text:#edf2f7;
  --muted:#94a4b8;
  --border:rgba(231,238,246,.09);
  --border2:rgba(231,238,246,.15);
  --radius-xl:14px;
  --radius-lg:11px;
  --radius-md:9px;
  --radius-sm:7px;
  --shadow:0 22px 55px rgba(0,0,0,.30);
  --shadow2:0 10px 28px rgba(0,0,0,.18);
  --content-max:1920px;
  --gutter:18px;
  --topbar-h:64px;
  --footer-h:34px;
  --mobilebar-h:62px;
  --hc-sidebar-w:244px;
  --hc-panel:rgba(16,25,36,.86);
  --hc-panel-solid:#101924;
  --hc-panel-soft:rgba(255,255,255,.018);
  --hc-line:rgba(231,238,246,.085);
  --hc-line-strong:rgba(231,238,246,.14);
  --hc-page-gap:14px;
  --hc-panel-py:17px;
  --hc-panel-px:18px;
  --hc-control-h:38px;
  --hc-row-py:11px;
  --hc-row-px:14px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"][data-density="ultra_compact"]{
  --gutter:12px;
  --hc-page-gap:9px;
  --hc-panel-py:12px;
  --hc-panel-px:13px;
  --hc-control-h:34px;
  --hc-row-py:7px;
  --hc-row-px:10px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"][data-density="compact"]{
  --gutter:15px;
  --hc-page-gap:11px;
  --hc-panel-py:14px;
  --hc-panel-px:15px;
  --hc-control-h:36px;
  --hc-row-py:9px;
  --hc-row-px:12px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"][data-density="comfortable"]{
  --gutter:21px;
  --hc-page-gap:17px;
  --hc-panel-py:20px;
  --hc-panel-px:21px;
  --hc-control-h:40px;
  --hc-row-py:13px;
  --hc-row-px:16px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"][data-density="relaxed"]{
  --gutter:24px;
  --hc-page-gap:20px;
  --hc-panel-py:23px;
  --hc-panel-px:24px;
  --hc-control-h:42px;
  --hc-row-py:15px;
  --hc-row-px:18px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] body{
  font-family:"Aptos","Segoe UI Variable Text","Trebuchet MS",sans-serif;
  font-size:14px;
  font-weight:400;
  line-height:1.48;
  letter-spacing:.002em;
  overflow-x:hidden;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] body::after{
  mix-blend-mode:soft-light;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(h1,h2,h3,h4,h5,h6){
  margin-top:0;
  color:var(--text);
  font-family:"Aptos Display","Bahnschrift","Segoe UI Variable Display",sans-serif;
  font-weight:600;
  line-height:1.2;
  letter-spacing:-.012em;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] h1{font-size:25px}
html[data-ui-template="v2"][data-ui-template-choice="v3"] h2{font-size:20px}
html[data-ui-template="v2"][data-ui-template-choice="v3"] h3{font-size:15.5px}
html[data-ui-template="v2"][data-ui-template-choice="v3"] h4{font-size:14px}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(
  strong,b,.link-strong,.theme-name,.section-title-spaced,.section-title-spaced-sm,
  .section-title-no-margin,.vehicle-list-title,.task-picked-title,.production-name,
  .production-order-strong,.package-types-card>h2,.public-dashboard-title
){
  font-weight:600!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(.muted,.hint,small){
  color:var(--muted);
  line-height:1.42;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :focus-visible{
  outline:2px solid color-mix(in srgb,var(--accent) 72%,white 8%);
  outline-offset:2px;
}

/* ===== Powłoka Home Center ===== */
html[data-ui-template="v2"][data-ui-template-choice="v3"] .layout{
  gap:0!important;
  padding:0!important;
  min-height:100vh;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .main{
  min-width:0;
  max-width:100%;
  background:rgba(4,9,14,.08);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .sidebar{
  width:var(--hc-sidebar-w);
  padding:0;
  border:0;
  border-right:1px solid var(--hc-line);
  border-radius:0!important;
  background:rgba(9,15,22,.94);
  box-shadow:none!important;
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .brand{
  min-height:72px;
  margin:0;
  padding:15px 16px;
  border-bottom:1px solid var(--hc-line);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .brand-link{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  font-weight:600;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .brand-mark{
  display:inline-flex;
  flex:0 0 34px;
  width:34px;
  height:34px;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:10px;
  background:transparent;
  box-shadow:0 7px 18px rgba(0,0,0,.28);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .brand-mark img{
  display:block;
  width:100%;
  height:100%;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .brand-copy{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:1px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .brand-title{
  overflow:hidden;
  color:var(--text);
  font-size:14.5px;
  font-weight:600;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .brand-caption{
  display:block;
  overflow:hidden;
  color:var(--muted);
  font-size:10.5px;
  font-weight:400;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav{
  gap:1px;
  padding:10px 8px 18px;
  scrollbar-color:rgba(255,255,255,.13) transparent;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-group{
  margin:0 0 2px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-group>summary.nav-group-title{
  min-height:31px;
  padding:7px 9px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#718195;
  font-size:10px;
  font-weight:650;
  letter-spacing:.105em;
  text-transform:uppercase;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-group>summary.nav-group-title:hover,
html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-group[open]>summary.nav-group-title{
  background:rgba(255,255,255,.025);
  color:#aab7c6;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-group>summary.nav-group-title::after,
html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-sub>summary.nav-sub-title::after{
  content:"›";
  font-size:15px;
  font-weight:400;
  opacity:.58;
  transform:rotate(90deg);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-group:not([open])>summary.nav-group-title::after,
html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-sub:not([open])>summary.nav-sub-title::after{
  transform:rotate(0);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-group-items{
  gap:1px;
  margin-top:2px;
  padding-left:0;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-item{
  position:relative;
  min-height:34px;
  gap:8px;
  padding:7px 10px 7px 13px;
  border:0;
  border-radius:8px;
  color:#b9c4d0;
  background:transparent;
  font-size:12.5px;
  font-weight:450;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-item:hover{
  border:0;
  background:rgba(255,255,255,.04);
  color:#f1f5f8;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-item.active{
  border:0;
  background:color-mix(in srgb,var(--accent) 11%,rgba(255,255,255,.025));
  color:var(--text);
  font-weight:550;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-item.active::before{
  content:"";
  position:absolute;
  top:8px;
  bottom:8px;
  left:0;
  width:2px;
  border-radius:2px;
  background:var(--accent);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-sub{
  margin:1px 0 2px 10px;
  padding-left:7px;
  border-left:1px solid var(--hc-line);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-sub>summary.nav-sub-title{
  min-height:32px;
  padding:6px 9px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#9aa9ba;
  font-size:12px;
  font-weight:500;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-sub>summary.nav-sub-title:hover{
  background:rgba(255,255,255,.03);
  color:var(--text);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-sub-items{
  gap:1px;
  margin-top:1px;
  padding-left:0;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-auth{
  margin:0;
  padding:10px;
  border-top:1px solid var(--hc-line);
  background:rgba(9,15,22,.96);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-auth-btn{
  min-height:36px;
  padding:8px 11px;
  border:1px solid var(--hc-line);
  border-radius:8px;
  background:transparent;
  color:#aebac8;
  font-size:12px;
  font-weight:500;
  letter-spacing:0;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .nav-auth-btn:hover{
  border-color:var(--hc-line-strong);
  background:rgba(255,255,255,.04);
  color:var(--text);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar{
  display:flex!important;
  min-height:var(--topbar-h);
  margin:0!important;
  padding:9px clamp(14px,1.5vw,24px)!important;
  border:0;
  border-bottom:1px solid var(--hc-line);
  border-radius:0!important;
  background:rgba(8,13,20,.84);
  box-shadow:none!important;
  backdrop-filter:blur(20px) saturate(125%);
  -webkit-backdrop-filter:blur(20px) saturate(125%);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-left{
  flex:1 1 auto;
  gap:11px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-context{
  order:1;
  display:flex;
  min-width:100px;
  flex-direction:column;
  gap:1px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-context-kicker{
  display:block;
  color:#718195;
  font-size:9px;
  font-weight:600;
  line-height:1.1;
  letter-spacing:.11em;
  text-transform:uppercase;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .crumb,
html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-left.has-shortcuts .crumb{
  max-width:min(36vw,480px);
  margin:0;
  color:var(--text);
  font-family:"Aptos Display","Bahnschrift",sans-serif;
  font-size:15px;
  font-weight:600;
  line-height:1.25;
  letter-spacing:-.006em;
  text-align:left;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] #sidebarToggleTop{
  order:0;
  width:36px;
  min-width:36px;
  height:36px;
  padding:0;
  border-color:transparent;
  background:transparent;
  color:#aeb9c6;
  font-size:17px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] #sidebarToggleTop:hover{
  border-color:var(--hc-line);
  background:rgba(255,255,255,.04);
  color:var(--text);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-shortcuts{
  order:2;
  gap:4px;
  margin-left:10px;
  padding-left:14px;
  border-left:1px solid var(--hc-line);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-shortcut{
  min-height:32px;
  max-width:154px;
  padding:6px 9px;
  border-color:transparent;
  border-radius:7px;
  background:transparent;
  color:#9eacbb;
  font-size:11.5px;
  font-weight:500;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-shortcut:hover{
  border-color:transparent;
  background:rgba(255,255,255,.04);
  color:var(--text);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-shortcut.active{
  border-color:transparent;
  background:color-mix(in srgb,var(--accent) 10%,rgba(255,255,255,.025));
  color:var(--text);
  box-shadow:none;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-right{
  gap:6px;
  flex-wrap:nowrap;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-right>.btn,
html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-right>a.btn,
html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-right>form .btn{
  min-width:0!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .content{
  width:100%;
  max-width:var(--content-max);
  min-width:0;
  overflow-x:clip;
  margin:0 auto;
  padding:var(--gutter);
  padding-bottom:calc(var(--gutter) + var(--footer-h));
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .content>*,
html[data-ui-template="v2"][data-ui-template-choice="v3"] #mcResults>*{
  margin-bottom:var(--hc-page-gap)!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .content>*:last-child,
html[data-ui-template="v2"][data-ui-template-choice="v3"] #mcResults>*:last-child{
  margin-bottom:0!important;
}

/* ===== Powierzchnie i komponenty ===== */
html[data-ui-template="v2"][data-ui-template-choice="v3"] .card{
  padding:var(--hc-panel-py) var(--hc-panel-px)!important;
  border:1px solid var(--hc-line);
  border-radius:var(--radius-xl);
  background:var(--hc-panel);
  box-shadow:var(--shadow2);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .card-sub{
  padding:13px 14px!important;
  border:1px solid var(--hc-line);
  border-radius:var(--radius-lg);
  background:var(--hc-panel-soft);
  box-shadow:none;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .divider{
  margin:14px 0;
  background:var(--hc-line);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .btn{
  min-height:var(--hc-control-h);
  padding:7px 12px!important;
  border:1px solid var(--hc-line-strong);
  border-radius:var(--radius-md);
  background:rgba(255,255,255,.025);
  box-shadow:none;
  color:#dce4eb;
  font-size:12.5px;
  font-weight:550;
  letter-spacing:0;
  transition:background .14s ease,border-color .14s ease,color .14s ease,transform .08s ease;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .btn:hover{
  border-color:rgba(231,238,246,.22);
  background:rgba(255,255,255,.065);
  color:#fff;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .btn:active{
  transform:translateY(1px);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .btn-primary{
  border-color:color-mix(in srgb,var(--accent) 82%,white 8%);
  background:color-mix(in srgb,var(--accent) 86%,white 6%);
  color:#071019;
  font-weight:650;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .btn-primary:hover{
  border-color:color-mix(in srgb,var(--accent) 92%,white 12%);
  background:color-mix(in srgb,var(--accent) 92%,white 12%);
  color:#050b11;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .btn-ghost{
  border-color:transparent;
  background:transparent;
  color:#aebac7;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .btn-ghost:hover{
  border-color:var(--hc-line);
  background:rgba(255,255,255,.035);
  color:var(--text);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .btn-danger{
  border-color:rgba(241,104,116,.33);
  background:rgba(241,104,116,.09);
  color:#ffbec5;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .btn-danger:hover{
  border-color:rgba(241,104,116,.5);
  background:rgba(241,104,116,.15);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .btn-small{
  min-height:32px;
  padding:5px 9px!important;
  border-radius:8px;
  font-size:11.5px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(
  input:not([type="checkbox"]):not([type="radio"]),select,textarea
){
  min-height:var(--hc-control-h);
  padding:8px 11px!important;
  border:1px solid var(--hc-line-strong);
  border-radius:var(--radius-md);
  background:rgba(6,11,17,.4);
  box-shadow:none;
  color:var(--text);
  font-family:inherit;
  font-size:13px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] textarea{
  min-height:92px;
  line-height:1.5;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(
  input:not([type="checkbox"]):not([type="radio"]),select,textarea
):hover{
  border-color:rgba(231,238,246,.21);
  background:rgba(6,11,17,.52);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(
  input:not([type="checkbox"]):not([type="radio"]),select,textarea
):focus{
  border-color:color-mix(in srgb,var(--accent) 66%,white 4%);
  background:rgba(6,11,17,.64);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 13%,transparent);
  outline:none;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(input,textarea)::placeholder{
  color:#657487;
  opacity:1;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] input[type="checkbox"],
html[data-ui-template="v2"][data-ui-template-choice="v3"] input[type="radio"]{
  accent-color:var(--accent);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(.field,.field-inline)>:is(span,.label):first-child{
  color:#9caabc;
  font-size:10.5px;
  font-weight:600!important;
  letter-spacing:.055em;
  text-transform:uppercase;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .form{
  gap:12px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(.grid2,.grid-2,.grid-3,.grid-4,.details-grid,.mc-grid-2){
  gap:12px!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .form-actions{
  gap:7px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--hc-line);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .actions-inline{
  gap:6px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(.pill,.chip,.chip-qty){
  border:1px solid var(--hc-line-strong);
  background:rgba(255,255,255,.035);
  box-shadow:none!important;
  font-size:11px;
  font-weight:550;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .pill{
  padding:3px 8px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .chips{
  gap:6px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .chip{
  gap:6px;
  padding:5px 8px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .notice{
  border:1px solid var(--hc-line);
  border-left:2px solid color-mix(in srgb,var(--accent) 65%,transparent);
  border-radius:9px;
  background:color-mix(in srgb,var(--accent) 5%,rgba(255,255,255,.012));
  box-shadow:none;
}

/* ===== Tabele i listy danych ===== */
html[data-ui-template="v2"][data-ui-template-choice="v3"] .table-wrap{
  overflow:auto;
  border:1px solid var(--hc-line);
  border-radius:12px;
  background:rgba(7,12,18,.2);
  box-shadow:none;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .table{
  border-collapse:separate;
  border-spacing:0;
  font-size:13px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .table th,
html[data-ui-template="v2"][data-ui-template-choice="v3"] .table td{
  padding:var(--hc-row-py) var(--hc-row-px)!important;
  border-bottom:1px solid var(--hc-line);
  vertical-align:middle;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .table thead th{
  top:0;
  height:39px;
  background:rgba(12,19,28,.96);
  color:#8291a4;
  font-size:10px;
  font-weight:650;
  line-height:1.2;
  letter-spacing:.075em;
  text-transform:uppercase;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .table tbody tr{
  background:transparent;
  transition:background .12s ease;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .table tbody tr:hover{
  background:rgba(255,255,255,.027);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .table tbody tr:last-child>td{
  border-bottom:0;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .table :is(strong,.link-strong,.part-name-link){
  color:#edf2f7;
  font-size:13.2px;
  font-weight:550!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .table .muted{
  font-size:11.5px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(.thumb,.thumb-placeholder),
html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-main-table :is(.thumb,.thumb-placeholder){
  width:46px!important;
  height:46px!important;
  border:1px solid var(--hc-line-strong);
  border-radius:9px!important;
  background:rgba(255,255,255,.025);
  box-shadow:none!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .td-img{
  width:68px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-main-table .col-thumb{width:70px}
html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-main-table .col-stock{width:108px}
html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-main-table .col-price{width:132px}
html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-main-table .col-location{width:172px}
html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-main-table .col-actions{width:62px}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .inventory-name-meta{
  gap:5px;
  color:#7f8ea0;
  font-size:10.5px;
  font-weight:450;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .part-desc-line{
  max-width:760px;
  color:#8797a9;
  font-size:11.5px;
  line-height:1.35;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .part-actions-menu>summary{
  width:34px;
  min-width:34px;
  height:32px;
  min-height:32px;
  padding:0!important;
  border-color:transparent;
  background:transparent;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .part-actions-menu>summary:hover{
  border-color:var(--hc-line);
  background:rgba(255,255,255,.04);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .part-actions-panel{
  padding:6px;
  border:1px solid var(--hc-line-strong);
  border-radius:10px;
  background:#111a24;
  box-shadow:0 18px 45px rgba(0,0,0,.42);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .part-actions-link{
  min-height:32px;
  padding:7px 9px;
  border-radius:7px;
  font-size:12px;
  font-weight:500;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .part-actions-link:hover{
  background:rgba(255,255,255,.055);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .pager{
  gap:8px;
  padding:12px 0 0;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(.pager-btn,.pager-page){
  min-height:32px;
  padding:5px 9px;
  border-color:var(--hc-line);
  border-radius:8px;
  background:transparent;
  font-size:11.5px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .pager-page.active{
  border-color:color-mix(in srgb,var(--accent) 38%,var(--hc-line));
  background:color-mix(in srgb,var(--accent) 10%,transparent);
  font-weight:600;
}

/* ===== Wyszukiwanie, filtry i sekcje rozwijane ===== */
html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-list-page,
html[data-ui-template="v2"][data-ui-template-choice="v3"] .tasks-list-page,
html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-list-page,
html[data-ui-template="v2"][data-ui-template-choice="v3"] .production-page,
html[data-ui-template="v2"][data-ui-template-choice="v3"] .inventory-detail-page,
html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-page{
  gap:var(--hc-page-gap)!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-filters-row{
  gap:8px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-filters-row .input-grow{
  min-height:40px;
  background:rgba(6,11,17,.5);
  font-size:13.5px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-filters-actions{
  gap:6px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] details.mc-collapse{
  overflow:hidden;
  border:0;
  border-radius:9px;
  background:transparent;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] details.mc-collapse>summary{
  min-height:38px;
  padding:8px 10px;
  border:0;
  border-radius:8px;
  background:rgba(255,255,255,.02);
  color:#c8d1dc;
  font-size:12.5px;
  font-weight:550;
  letter-spacing:0;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] details.mc-collapse>summary:hover{
  background:rgba(255,255,255,.04);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] details.mc-collapse>summary .mc-meta{
  color:#718195;
  font-size:10.5px;
  font-weight:450;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] details.mc-collapse .mc-collapse-body{
  padding:14px 10px 4px;
  border-top:1px solid var(--hc-line);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .task-tabs{
  gap:3px;
  padding:3px;
  border:1px solid var(--hc-line);
  border-radius:10px;
  background:rgba(6,11,17,.28);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .task-tab{
  min-height:34px;
  padding:7px 10px;
  border:0;
  border-radius:7px;
  color:#8f9eaf;
  font-size:12px;
  font-weight:500;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .task-tab.active{
  background:rgba(255,255,255,.07);
  color:var(--text);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .task-tab-count{
  min-width:21px;
  padding:2px 6px;
  border:0;
  background:rgba(255,255,255,.055);
  font-size:10px;
}

/* ===== Dashboard ===== */
html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-page{
  display:grid;
  gap:var(--hc-page-gap);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-page>.card{
  margin:0!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-welcome-card{
  overflow:hidden;
  padding:0!important;
  border-color:color-mix(in srgb,var(--accent) 17%,var(--hc-line));
  background:
    linear-gradient(105deg,color-mix(in srgb,var(--accent) 8%,rgba(16,25,36,.94)),rgba(16,25,36,.86) 52%,rgba(12,28,33,.84));
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-welcome-hero{
  min-height:104px;
  padding:21px 24px!important;
  border:0!important;
  border-radius:0!important;
  background:
    linear-gradient(90deg,transparent 0 72%,color-mix(in srgb,var(--accent) 7%,transparent)),
    radial-gradient(420px 150px at 92% 10%,color-mix(in srgb,var(--accent) 10%,transparent),transparent 68%);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-welcome-body{
  align-items:flex-start;
  gap:5px;
  text-align:left;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-welcome-kicker{
  color:color-mix(in srgb,var(--accent) 45%,#8f9eaf);
  font-size:9.5px;
  font-weight:600;
  letter-spacing:.13em;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-welcome-title{
  margin:0;
  font-size:25px;
  font-weight:600;
  letter-spacing:-.025em;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-now-badge{
  margin-top:2px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#93a2b4;
  font-size:11.5px;
  font-weight:450;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-section-card{
  overflow:hidden;
  padding:0!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-search-card{
  position:relative;
  z-index:24;
  overflow:visible;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-search-card .search-dashboard-suggest{
  z-index:80;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-section-head{
  min-height:49px;
  margin:0!important;
  padding:14px 17px 11px!important;
  border-bottom:1px solid var(--hc-line);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-section-title{
  margin:0;
  color:#dfe6ed;
  font-size:14px;
  font-weight:600;
  letter-spacing:-.005em;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-section-note{
  margin-top:3px;
  color:#7f8ea0;
  font-size:11.5px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-search-card .dashboard-section-head{
  border-bottom:0;
  padding-bottom:5px!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-search-card form{
  padding:4px 17px 16px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-bar-dashboard{
  gap:7px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-bar-dashboard .search-bar-input{
  min-height:42px;
  padding-left:13px!important;
  font-size:13.5px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:0!important;
  margin:0!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-card{
  position:relative;
  min-height:102px;
  padding:17px 43px 16px 17px!important;
  border:0;
  border-right:1px solid var(--hc-line);
  border-bottom:1px solid var(--hc-line);
  border-radius:0;
  background:transparent;
  transition:background .14s ease;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-card:hover{
  background:color-mix(in srgb,var(--accent) 5%,rgba(255,255,255,.018));
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-card::after{
  content:"→";
  position:absolute;
  top:17px;
  right:16px;
  color:#657588;
  font-size:16px;
  font-weight:400;
  transition:color .14s ease,transform .14s ease;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-card:hover::after{
  color:var(--accent);
  transform:translateX(2px);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-label{
  max-width:90%;
  color:#8796a8;
  font-size:11.5px;
  font-weight:450;
  line-height:1.35;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-value{
  margin-top:8px;
  color:#edf2f7;
  font-family:"Aptos Display","Bahnschrift",sans-serif;
  font-size:27px;
  font-weight:600;
  line-height:1;
  letter-spacing:-.025em;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-link{
  position:absolute!important;
  inset:0!important;
  z-index:2;
  width:100%!important;
  min-height:100%!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:transparent!important;
  font-size:0!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-link:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:-3px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-trend-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-trend-card{
  padding:16px 17px!important;
  border:0;
  border-right:1px solid var(--hc-line);
  border-radius:0;
  background:transparent;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-trend-card:last-child{
  border-right:0;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-trend-title{
  color:#8796a8;
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.055em;
  text-transform:uppercase;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-trend-list{
  gap:0;
  margin-top:9px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-trend-row{
  min-height:39px;
  padding:8px 0;
  border-top:1px solid var(--hc-line);
  font-size:12.5px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-section-card>.table-wrap{
  border:0;
  border-radius:0;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-cost-note{
  margin-top:3px;
  font-size:10.5px;
}

/* ===== Ustawienia konta ===== */
html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-page{
  display:grid;
  gap:9px!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-accordion.account-settings-card{
  overflow:hidden;
  margin:0!important;
  padding:0!important;
  border-radius:11px;
  background:rgba(16,25,36,.76);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-accordion-toggle{
  min-height:54px!important;
  padding:10px 13px 10px 16px!important;
  border:0!important;
  background:transparent!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-accordion-toggle:hover{
  background:rgba(255,255,255,.025)!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-accordion-head{
  display:flex!important;
  width:100%;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px;
  text-align:left!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-accordion-copy{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:1px!important;
  align-items:flex-start!important;
  text-align:left!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-section-title{
  margin:0!important;
  color:#e6ebf0;
  font-size:13.5px!important;
  font-weight:600!important;
  line-height:1.25;
  text-align:left!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-section-subtitle{
  margin:0!important;
  color:#78889a;
  font-size:10.8px!important;
  line-height:1.3;
  text-align:left!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-accordion-meta{
  gap:7px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-accordion-dirty{
  padding:3px 7px;
  border:1px solid color-mix(in srgb,var(--accent) 32%,var(--hc-line));
  border-radius:999px;
  background:color-mix(in srgb,var(--accent) 8%,transparent);
  color:color-mix(in srgb,var(--accent) 55%,#b9c5d1);
  font-size:9px;
  font-weight:600;
  letter-spacing:.045em;
  text-transform:uppercase;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-accordion-chevron{
  width:28px;
  height:28px;
  border:1px solid var(--hc-line);
  border-radius:8px;
  background:rgba(255,255,255,.02);
  color:#8c9aab;
  font-size:11px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-accordion-panel{
  padding:17px!important;
  border-top:1px solid var(--hc-line);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-savebar{
  right:18px!important;
  bottom:calc(var(--footer-h) + 12px)!important;
  left:auto!important;
  width:auto!important;
  padding:0!important;
  background:transparent!important;
  pointer-events:none;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-savebar.is-hidden{
  display:none!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-savebar-inner{
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:6px!important;
  border:1px solid var(--hc-line-strong);
  border-radius:11px;
  background:rgba(9,15,22,.94);
  box-shadow:0 16px 42px rgba(0,0,0,.4);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  pointer-events:auto;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-savebar .btn{
  min-width:104px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .theme-card{
  min-height:68px;
  padding:11px 12px;
  border:1px solid var(--hc-line);
  border-radius:10px;
  background:rgba(255,255,255,.018);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .theme-card:hover{
  background:rgba(255,255,255,.04);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .theme-card.is-active{
  border-color:color-mix(in srgb,var(--accent) 48%,var(--hc-line));
  background:color-mix(in srgb,var(--accent) 7%,rgba(255,255,255,.018));
  outline:0;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .theme-name{
  font-size:12.5px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .theme-desc{
  color:#78889a;
  font-size:10.5px;
}

/* ===== Formularze, szczegóły i moduły domenowe ===== */
html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(
  .inventory-editor-page,.inventory-detail-page,.production-page,.production-recipe-page,
  .vehicle-detail-page,.task-detail-page,.obk-page,.siemens-coffee-page
){
  gap:var(--hc-page-gap)!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(
  form.inventory-editor-page.form,.inventory-detail-card,.production-card,
  .vehicle-list-card,.tasks-list-card,.obk-card
){
  border-radius:var(--radius-xl);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .inventory-editor-page .card-sub.editor-section-banner{
  padding:10px 12px!important;
  border:0;
  border-left:2px solid color-mix(in srgb,var(--accent) 52%,transparent);
  border-radius:7px;
  background:rgba(255,255,255,.018);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .inventory-editor-page .editor-inline-section,
html[data-ui-template="v2"][data-ui-template-choice="v3"] .inventory-editor-page .media-section{
  padding:15px!important;
  border:1px solid var(--hc-line);
  border-radius:11px;
  background:rgba(255,255,255,.012);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .inventory-editor-page :is(
  .media-block,.edit-media-card,.edit-file-card,.lot-move-item
){
  border-color:var(--hc-line);
  border-radius:9px;
  background:rgba(255,255,255,.016);
  box-shadow:none;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .inventory-detail-layout{
  gap:var(--hc-page-gap)!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .inventory-detail-page .detail-item,
html[data-ui-template="v2"][data-ui-template-choice="v3"] .detail-item{
  padding:10px 11px;
  border:0;
  border-bottom:1px solid var(--hc-line);
  border-radius:0;
  background:transparent;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .detail-label{
  margin-bottom:3px;
  color:#7f8ea0;
  font-size:10px;
  font-weight:600;
  letter-spacing:.055em;
  text-transform:uppercase;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .detail-value{
  color:#e3e9ef;
  font-size:13px;
  font-weight:500;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(
  .production-order-subcard,.production-order-panel,.production-order-plan-box,
  .production-instruction-box,.production-recipe-preview,.obk-block,
  .vehicle-detail-section,.task-detail-section
){
  border-color:var(--hc-line)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.015)!important;
  box-shadow:none!important;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .obk-summary-grid{
  gap:0;
  overflow:hidden;
  border:1px solid var(--hc-line);
  border-radius:11px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .obk-summary{
  min-height:78px;
  padding:13px;
  border:0;
  border-right:1px solid var(--hc-line);
  border-radius:0;
  background:transparent;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .obk-summary:last-child{
  border-right:0;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .obk-summary-label{
  color:#7f8ea0;
  font-size:9.5px;
  font-weight:600;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .obk-summary-value{
  font-size:24px;
  font-weight:600;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(
  .menu-layout-tree-wrap,.acl-tree,.file-tile,.file-tile-edit,.detail-media-box,
  .production-recipe-file-tile
){
  border-color:var(--hc-line);
  border-radius:10px;
  background:rgba(255,255,255,.014);
  box-shadow:none;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(.ml-row,.acl-node,.menu-filter-row){
  min-height:38px;
  border-color:var(--hc-line);
  border-radius:8px;
  background:transparent;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .ml-row:hover,
html[data-ui-template="v2"][data-ui-template-choice="v3"] .acl-node:hover{
  border-color:var(--hc-line-strong);
  background:rgba(255,255,255,.025);
}

/* Siemens zachowuje dane i wykresy, ale korzysta ze wspólnych powierzchni. */
html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(
  .siemens-hero,.siemens-stat-card,.siemens-chart-card,.siemens-history-card,
  .siemens-maintenance-card,.siemens-filter-card
){
  border-color:var(--hc-line)!important;
  border-radius:11px!important;
  background:var(--hc-panel)!important;
  box-shadow:none!important;
}

/* ===== Komunikaty, modale i stopka ===== */
html[data-ui-template="v2"][data-ui-template-choice="v3"] .flash{
  padding:10px 12px;
  border:1px solid var(--hc-line-strong);
  border-radius:10px;
  background:rgba(13,21,30,.95);
  box-shadow:0 16px 42px rgba(0,0,0,.35);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .flash-close{
  width:27px;
  height:27px;
  border:0;
  border-radius:7px;
  background:transparent;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .modal-backdrop{
  background:rgba(2,6,10,.72);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .modal-card{
  border:1px solid var(--hc-line-strong);
  border-radius:14px;
  background:#101924;
  box-shadow:0 28px 80px rgba(0,0,0,.55);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .modal-head{
  min-height:50px;
  border-bottom:1px solid var(--hc-line);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .modal-title{
  font-size:13px;
  font-weight:600;
  letter-spacing:0;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .footerbar{
  height:var(--footer-h);
  border-top:1px solid var(--hc-line);
  background:rgba(7,12,18,.92);
  box-shadow:none;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .footerbar-inner{
  max-width:none;
  padding:0 16px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .footerbar-left{
  color:#8b99aa;
  font-size:10.5px;
  font-weight:550;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .footerbar-right{
  gap:7px;
  color:#728195;
  font-size:10px;
}

html[data-ui-template="v2"][data-ui-template-choice="v3"] .footerbar-right strong{
  color:#aab6c3;
  font-weight:550!important;
}

/* ===== Responsywność ===== */
@media (min-width:901px){
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .sidebar{
    position:sticky;
    top:0;
    height:calc(100vh - var(--footer-h));
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .main{
    padding-bottom:var(--footer-h);
  }
}

@media (max-width:1440px){
  html[data-ui-template="v2"][data-ui-template-choice="v3"]{
    --hc-sidebar-w:226px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-grid{
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-shortcut{
    max-width:126px;
  }
}

@media (max-width:1180px){
  html[data-ui-template="v2"][data-ui-template-choice="v3"]{
    --hc-sidebar-w:214px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .content{
    padding:15px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(.grid-4,.grid-3){
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:900px){
  html[data-ui-template="v2"][data-ui-template-choice="v3"]{
    --topbar-h:56px;
    --gutter:13px;
    --hc-page-gap:11px;
    --hc-panel-py:14px;
    --hc-panel-px:14px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .layout{
    display:block;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .sidebar{
    width:min(300px,calc(100vw - 44px));
    height:100dvh;
    border-right:1px solid var(--hc-line-strong);
    background:rgba(8,14,21,.985);
    box-shadow:20px 0 60px rgba(0,0,0,.42)!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .brand{
    min-height:64px;
    padding:12px 14px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar{
    min-height:var(--topbar-h);
    gap:7px;
    padding:8px 11px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-context-kicker{
    display:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .crumb{
    max-width:34vw;
    font-size:14px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-right{
    min-width:0;
    overflow-x:auto;
    width:auto!important;
    justify-content:flex-end!important;
    scrollbar-width:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-right::-webkit-scrollbar{
    display:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-right .btn{
    flex:0 0 auto;
    min-height:34px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .content{
    padding:var(--gutter);
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-trend-grid{
    grid-template-columns:1fr;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-trend-card{
    border-right:0;
    border-bottom:1px solid var(--hc-line);
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-trend-card:last-child{
    border-bottom:0;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-savebar{
    right:12px!important;
    bottom:calc(var(--mobilebar-h) + env(safe-area-inset-bottom) + 10px)!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .mobile-bar{
    min-height:var(--mobilebar-h);
    border-top:1px solid var(--hc-line-strong);
    background:rgba(8,14,21,.95);
    box-shadow:0 -12px 35px rgba(0,0,0,.22);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .mobile-bar-links{
    gap:3px;
    padding:7px 8px calc(7px + env(safe-area-inset-bottom));
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .mobile-bar-links a{
    min-height:42px;
    padding:7px 10px;
    border:0;
    border-radius:9px;
    background:transparent;
    color:#8e9cad;
    font-size:11px;
    font-weight:550;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .mobile-bar-links a.active{
    border:0;
    background:color-mix(in srgb,var(--accent) 11%,rgba(255,255,255,.025));
    color:var(--text);
  }
}

@media (max-width:680px){
  html[data-ui-template="v2"][data-ui-template-choice="v3"]{
    --gutter:10px;
    --hc-page-gap:9px;
    --hc-control-h:40px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] body{
    font-size:13.5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar{
    flex-wrap:nowrap;
    align-items:center;
    max-width:100vw;
    overflow:hidden;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-left{
    flex:0 1 auto;
    min-width:0;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-context{
    min-width:0;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .crumb{
    max-width:40vw;
    font-size:13.5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-right{
    flex:1 1 auto;
    width:auto!important;
    max-width:calc(100vw - 62px);
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-right .btn{
    min-height:34px;
    padding:6px 9px!important;
    font-size:11px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .card{
    border-radius:11px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(.grid2,.grid-2,.grid-3,.grid-4,.details-grid,.mc-grid-2){
    grid-template-columns:1fr;
    gap:9px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-welcome-hero{
    min-height:92px;
    padding:17px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-welcome-title{
    font-size:21px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-now-badge{
    width:auto!important;
    max-width:100%;
    text-align:left;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-section-head{
    min-height:45px;
    padding:12px 13px 10px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-search-card form{
    padding:3px 13px 13px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-bar-dashboard{
    display:grid;
    grid-template-columns:1fr!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-bar-dashboard .search-bar-actions{
    width:100%!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-card{
    min-height:94px;
    padding:14px 35px 13px 13px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-card::after{
    top:13px;
    right:12px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-value{
    font-size:24px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-accordion-toggle{
    min-height:50px!important;
    padding:9px 10px 9px 13px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-section-subtitle{
    display:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-accordion-panel{
    padding:12px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .settings-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-filters-row{
    align-items:stretch;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-filters-actions{
    width:auto;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-filters-actions .btn{
    width:auto;
    min-width:74px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-cards{
    gap:8px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .part-card{
    gap:10px;
    padding:11px;
    border:1px solid var(--hc-line);
    border-radius:11px;
    background:rgba(16,25,36,.76);
    box-shadow:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .part-card::before{
    display:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-img{
    flex-basis:50px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-row{
    display:flex!important;
    min-width:0;
    flex-direction:column;
    gap:2px;
    padding:5px 0;
    border-top:1px solid var(--hc-line);
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-meta{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 10px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-label{
    color:#748396;
    font-size:10px;
    font-weight:550;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-value{
    font-size:12px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .form-actions .btn{
    flex:1 1 130px;
  }
}

@media (max-width:460px){
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-context{
    display:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-left{
    flex:0 0 auto;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-card{
    min-height:82px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-bar-dashboard{
    grid-template-columns:1fr;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-bar-actions,
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-bar-actions .btn{
    width:100%;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-filters-row{
    display:grid;
    grid-template-columns:1fr;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-filters-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-filters-actions .btn{
    width:100%;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-accordion-dirty{
    display:none;
  }
}

@media (max-width:360px){
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-grid{
    grid-template-columns:1fr!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-meta{
    grid-template-columns:1fr;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .settings-grid{
    grid-template-columns:1fr!important;
  }
}

/* ===== Home Center Mobile: pełna funkcjonalność w zwartej formie ===== */
@media (max-width:900px){
  html[data-ui-template="v2"][data-ui-template-choice="v3"]{
    --mobilebar-h:50px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] body.has-mobilebar{
    padding-bottom:calc(var(--mobilebar-h) + env(safe-area-inset-bottom))!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] body.has-mobilebar .main{
    min-height:100dvh;
    padding-bottom:calc(var(--mobilebar-h) + env(safe-area-inset-bottom) + 10px)!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] body.has-mobilebar .content{
    padding-bottom:calc(var(--mobilebar-h) + env(safe-area-inset-bottom) + 16px)!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .mobile-bar{
    min-height:0;
    padding:0 6px env(safe-area-inset-bottom);
    border-top-color:var(--hc-line);
    background:rgba(7,12,18,.97);
    box-shadow:0 -8px 24px rgba(0,0,0,.2);
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .mobile-bar-links{
    height:var(--mobilebar-h);
    width:100%;
    max-width:none;
    gap:1px;
    overflow:hidden;
    padding:4px 0;
    justify-content:stretch;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .mobile-bar-links a{
    position:relative;
    width:0;
    min-width:0!important;
    max-width:none;
    min-height:42px;
    flex:1 1 20%!important;
    overflow:hidden;
    padding:5px 5px;
    border-radius:6px;
    color:#8392a4;
    font-size:10.5px;
    font-weight:500;
    line-height:1.15;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .mobile-bar-links a.active{
    background:transparent;
    color:#f0f4f8;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .mobile-bar-links a.active::after{
    content:"";
    position:absolute;
    right:28%;
    bottom:1px;
    left:28%;
    height:2px;
    border-radius:2px;
    background:var(--accent);
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-savebar{
    bottom:calc(var(--mobilebar-h) + env(safe-area-inset-bottom) + 7px)!important;
  }
}

@media (max-width:760px){
  html[data-ui-template="v2"][data-ui-template-choice="v3"]{
    --topbar-h:48px;
    --gutter:6px;
    --hc-page-gap:6px;
    --hc-panel-py:10px;
    --hc-panel-px:10px;
    --hc-control-h:36px;
    --hc-row-py:7px;
    --hc-row-px:9px;
    --radius-xl:9px;
    --radius-lg:8px;
    --radius-md:7px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
    font-size:13px;
    line-height:1.4;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(
    .layout,.main,.content,.content>*,.card,.form,.dashboard-page,.search-page-shell,
    .parts-list-page,.tools-list-page,.equipment-list-page,.auto-parts-list-page,
    .vehicle-list-page,.tasks-list-page,.table-wrap,.parts-cards,.part-card,.pc-body,.pc-top
  ){
    min-width:0!important;
    max-width:100%;
    box-sizing:border-box;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(.layout,.main,.content){
    width:100%;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(
    input:not([type="checkbox"]):not([type="radio"]),select,textarea,
    .input-grow,.search-bar-field,.search-live-field,.mc-suggest-wrap,
    .search-bar-input,.search-live-input
  ){
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(h1,h2){font-size:17px}
  html[data-ui-template="v2"][data-ui-template-choice="v3"] h3{font-size:13.5px}

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar{
    position:sticky;
    top:0;
    z-index:70;
    width:100%;
    min-height:var(--topbar-h);
    height:var(--topbar-h);
    gap:4px;
    padding:4px 6px!important;
    background:rgba(7,12,18,.97);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-left{
    min-width:0;
    flex:1 1 auto;
    gap:4px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] #sidebarToggleTop{
    width:34px;
    min-width:34px;
    height:34px;
    font-size:16px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-brand-home{
    display:inline-flex;
    width:28px;
    height:28px;
    flex:0 0 28px;
    align-items:center;
    justify-content:center;
    border-radius:8px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-brand-home img{
    display:block;
    width:28px;
    height:28px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-shortcuts{
    display:none!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-context{
    display:flex!important;
    min-width:0;
    flex:1 1 auto;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .crumb,
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-left.has-shortcuts .crumb{
    display:block;
    max-width:none;
    overflow:hidden;
    font-size:13px;
    font-weight:600;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-right{
    width:auto!important;
    max-width:52vw;
    flex:0 1 auto;
    gap:3px;
    justify-content:flex-end!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-right:empty{
    display:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-right .btn{
    min-height:34px;
    padding:5px 8px!important;
    border-radius:6px;
    font-size:10.5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .content{
    width:100%!important;
    max-width:100vw!important;
    overflow-x:hidden;
    padding:var(--gutter)!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] body.has-mobilebar .content{
    scroll-padding-bottom:calc(var(--mobilebar-h) + env(safe-area-inset-bottom) + 16px);
    padding-bottom:calc(var(--mobilebar-h) + env(safe-area-inset-bottom) + 22px)!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .content>*,
  html[data-ui-template="v2"][data-ui-template-choice="v3"] #mcResults>*{
    margin-bottom:var(--hc-page-gap)!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .card{
    padding:10px!important;
    border-radius:9px;
    background:rgba(15,24,34,.88);
    box-shadow:none;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .card-sub{
    padding:8px 9px!important;
    border-radius:7px;
    background:rgba(255,255,255,.012);
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .btn{
    min-height:36px;
    padding:6px 9px!important;
    border-radius:7px;
    font-size:11.5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .btn-small{
    min-height:32px;
    padding:5px 8px!important;
    font-size:10.5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(
    input:not([type="checkbox"]):not([type="radio"]),select,textarea
  ){
    min-height:38px;
    padding:7px 9px!important;
    border-radius:7px;
    font-size:12px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] textarea{
    min-height:76px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .form{
    gap:8px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(.grid2,.grid-2,.grid-3,.grid-4,.details-grid,.mc-grid-2){
    gap:6px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .form-actions{
    gap:5px;
    margin-top:7px;
    padding-top:7px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .form-actions .btn{
    min-width:0;
    flex:1 1 105px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] details.mc-collapse>summary{
    min-height:36px;
    padding:7px 9px;
    border-radius:6px;
    font-size:11.5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] details.mc-collapse .mc-collapse-body{
    padding:9px 2px 2px;
  }

  /* Dashboard telefonu: krótkie sekcje i metryki bez kart w kartach. */
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-page{
    gap:6px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-welcome-card{
    border-color:var(--hc-line);
    background:linear-gradient(105deg,color-mix(in srgb,var(--accent) 6%,rgba(15,24,34,.95)),rgba(15,24,34,.9));
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-welcome-hero{
    min-height:62px;
    padding:10px 12px!important;
    background:radial-gradient(180px 80px at 95% 0,color-mix(in srgb,var(--accent) 8%,transparent),transparent 70%);
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-welcome-body{
    min-height:0!important;
    height:auto!important;
    gap:2px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-welcome-kicker{
    display:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-welcome-title{
    font-size:16px;
    font-weight:600;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-now-badge{
    margin:0;
    color:#8392a4;
    font-size:10px;
    line-height:1.3;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-section-head{
    min-height:35px;
    padding:9px 10px 7px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-section-title{
    font-size:12px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-section-note{
    display:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-search-card .dashboard-section-head{
    padding-bottom:3px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-search-card form{
    padding:2px 8px 8px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-bar-dashboard{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-bar-dashboard>*{
    min-width:0!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-bar-dashboard .search-bar-input{
    min-height:36px;
    padding-left:9px!important;
    font-size:11.5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-bar-dashboard .search-bar-actions{
    width:auto!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-bar-dashboard .search-bar-btn{
    min-width:64px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-card{
    min-height:67px;
    padding:9px 27px 8px 10px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-card::after{
    top:9px;
    right:9px;
    font-size:13px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-label{
    max-width:100%;
    font-size:9.5px;
    line-height:1.22;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-metric-value{
    margin-top:5px;
    font-size:20px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-trend-card{
    padding:9px 10px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-trend-title{
    font-size:9px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-trend-list{
    margin-top:4px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-trend-row{
    min-height:29px;
    flex-direction:row!important;
    align-items:center!important;
    padding:5px 0;
    font-size:11px;
  }

  /* Mobilne tabele są jedną listą, nie stosem wysokich kart. */
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table-wrap.mobile-cards{
    overflow:hidden;
    border:1px solid var(--hc-line);
    border-radius:8px;
    background:rgba(8,14,21,.22);
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile tbody{
    display:block;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile tr{
    display:block;
    margin:0!important;
    padding:7px 9px!important;
    border:0!important;
    border-bottom:1px solid var(--hc-line)!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile tbody tr:last-child{
    border-bottom:0!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile tr::before{
    display:none!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile td{
    display:grid!important;
    width:100%!important;
    grid-template-columns:76px minmax(0,1fr);
    gap:6px;
    align-items:start;
    padding:3px 0!important;
    border:0!important;
    font-size:11.5px;
    line-height:1.3;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile td::before{
    color:#718195;
    font-size:8.5px;
    font-weight:600;
    letter-spacing:.06em;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile td[colspan]{
    display:block!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile .td-actions{
    display:block!important;
    padding-top:6px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile .td-actions::before{
    display:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile .td-actions .actions-inline{
    display:flex;
    grid-template-columns:none;
    gap:4px;
    justify-content:flex-end;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile .td-actions :is(.btn,a.btn){
    width:auto!important;
    min-width:0!important;
    flex:0 1 auto;
  }

  /* Najważniejsze tabele dashboardu korzystają z układu treściowego. */
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile.dashboard-shortage-table tr{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) repeat(3,42px);
    gap:5px;
    align-items:center;
    padding:7px 10px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile.dashboard-shortage-table td{
    display:block!important;
    width:auto!important;
    padding:0!important;
    text-align:center;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile.dashboard-shortage-table td::before{
    display:block;
    margin-bottom:2px;
    font-size:7.5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-shortage-table .dashboard-shortage-name{
    min-width:0;
    text-align:left;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-shortage-table .dashboard-shortage-name::before{
    display:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-shortage-table .dashboard-shortage-missing{
    color:#ffbd82;
    font-weight:600;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile.dashboard-repairs-table tr{
    display:grid!important;
    grid-template-columns:66px minmax(0,1fr) auto;
    gap:3px 8px;
    align-items:start;
    padding:8px 10px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile.dashboard-repairs-table td{
    display:block!important;
    width:auto!important;
    min-width:0;
    padding:0!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile.dashboard-repairs-table td::before{
    display:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-repair-date{
    grid-column:1;
    grid-row:1;
    color:#7f8ea0;
    font-size:9.5px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-repair-vehicle{
    grid-column:2 / 4;
    grid-row:1;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-repair-description{
    grid-column:1 / 3;
    grid-row:2;
    overflow:hidden;
    padding-top:3px!important;
    color:#b9c4d0;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-repair-cost{
    grid-column:3;
    grid-row:2;
    padding-top:3px!important;
    font-weight:600;
    text-align:right;
    white-space:nowrap;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-repair-cost .dashboard-cost-note{
    font-size:8.5px;
    font-weight:400;
    white-space:nowrap;
  }

  /* Globalne wyszukiwanie: jedno zwarte pole i płaska lista wyników. */
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-page-shell{
    gap:6px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-toolbar-card{
    padding:8px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-toolbar-card .search-section-head{
    display:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-live-bar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-live-bar>*{
    min-width:0!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-live-bar .search-bar-actions{
    display:flex;
    width:auto!important;
    gap:3px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-live-bar .search-bar-btn{
    width:auto!important;
    min-width:58px;
  }

  /* Pole i dwie akcje pozostają w jednym, krótkim wierszu również na telefonie. */
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-filters-row-1{
    display:grid!important;
    width:100%!important;
    min-width:0!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:4px!important;
    flex:none!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-filters-row-1 .input-grow{
    width:100%!important;
    min-width:0!important;
    flex:none!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-filters-row-1 .parts-filters-actions{
    display:flex!important;
    width:auto!important;
    min-width:0!important;
    flex-wrap:nowrap!important;
    gap:3px!important;
    margin:0!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-filters-row-1 .parts-filters-actions .btn{
    width:auto!important;
    min-width:52px!important;
    min-height:36px;
    padding:5px 7px!important;
    font-size:10px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-results-card{
    padding:0!important;
    border:0;
    background:transparent;
  }

  /* Wszystkie listy magazynowe i zlecenia jako zwarte, rozdzielone wiersze. */
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-cards{
    gap:0;
    overflow:hidden;
    border:1px solid var(--hc-line);
    border-radius:8px;
    background:rgba(15,24,34,.72);
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] #mcResults>.parts-cards,
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .tasks-list-card>.parts-cards{
    border:0;
    border-radius:0;
    background:transparent;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .part-card{
    display:grid;
    grid-template-columns:44px minmax(0,1fr);
    gap:8px;
    margin:0;
    padding:9px 8px;
    border:0;
    border-bottom:1px solid var(--hc-line);
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .part-card:last-child{
    border-bottom:0;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-img{
    width:44px;
    flex-basis:44px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-img :is(.thumb,.thumb-placeholder){
    width:44px!important;
    height:44px!important;
    border-radius:8px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-body{
    min-width:0;
    gap:5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-top{
    min-width:0;
    gap:7px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(.pc-name,.pc-name .link-strong,.pc-value){
    min-width:0;
    overflow-wrap:anywhere;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-name .link-strong{
    font-size:12.5px;
    font-weight:600!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .part-desc-hover,
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .part-desc-line{
    margin-top:1px;
    font-size:9.5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-stock .pill{
    padding:2px 6px;
    font-size:9.5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-meta{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 8px!important;
    padding-right:28px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-row{
    display:block!important;
    min-width:0;
    padding:3px 0;
    border:0;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-label{
    overflow:hidden;
    margin-bottom:1px;
    color:#68778a;
    font-size:7.5px;
    font-weight:600;
    line-height:1.15;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-value{
    font-size:10.5px;
    line-height:1.25;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .pc-actions{
    position:absolute;
    right:6px;
    bottom:5px;
    display:block;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .part-actions-menu>summary{
    width:28px;
    min-width:28px;
    height:28px;
    min-height:28px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .part-actions-toggle-dots{
    font-size:16px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .inventory-name-meta{
    gap:2px 5px;
    margin-top:2px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .inventory-name-meta span{
    min-height:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    color:#78889a;
    font-size:8.5px;
    font-weight:500;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .inventory-name-meta span+span::before{
    content:"·";
    margin-right:5px;
    color:#526174;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-kind-inline{
    margin-bottom:2px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .search-kind-badge{
    min-height:18px;
    padding:2px 6px;
    border-radius:5px;
    font-size:7.5px;
    font-weight:600;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .task-tabs{
    gap:1px;
    overflow-x:auto;
    padding:2px;
    border-radius:7px;
    scrollbar-width:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .task-tab{
    min-height:30px;
    flex:0 0 auto;
    padding:5px 7px;
    border-radius:5px;
    font-size:9.5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .task-tab-count{
    min-width:17px;
    padding:1px 4px;
    font-size:8px;
  }

  /* Pojazdy zachowują wszystkie pola w jednym zwartym rekordzie. */
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-summary-card{
    padding:7px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-summary-card .chips{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:3px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-summary-card .chip{
    min-width:0;
    min-height:34px;
    justify-content:space-between;
    padding:4px 6px;
    font-size:8.5px;
    overflow:hidden;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-summary-card .chip>span:first-child{
    min-width:0;
    line-height:1.15;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-sync-card{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:3px 8px;
    padding:7px 9px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-sync-card .muted{
    min-width:0;
    overflow:hidden;
    font-size:8px;
    line-height:1.2;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-results-card>.vehicle-list-title{
    margin:0 0 6px;
    font-size:11px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile.vehicle-mobile-table tr{
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr);
    gap:2px 7px;
    align-items:center;
    padding:8px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile.vehicle-mobile-table td{
    display:block!important;
    width:auto!important;
    min-width:0;
    padding:0!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile.vehicle-mobile-table td::before{
    display:none;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-mobile-table td:nth-child(1){grid-column:1;grid-row:1 / 4}
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-mobile-table td:nth-child(2){grid-column:2;grid-row:1;font-size:12px}
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-mobile-table td:nth-child(3){grid-column:1 / 3;grid-row:4;color:#78889a;font-size:8.5px}
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-mobile-table td:nth-child(4){grid-column:2;grid-row:2;color:#aebac7;font-size:10.5px}
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-mobile-table td:nth-child(5){grid-column:2;grid-row:3;font-size:9.5px}
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-mobile-table td:nth-child(6){grid-column:1 / 3;grid-row:5;font-size:9.5px}
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-mobile-table td:nth-child(7){grid-column:1 / 3;grid-row:6;font-size:9.5px}
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-mobile-table td:nth-child(8){grid-column:1 / 3;grid-row:7;padding-top:3px!important}

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile.vehicle-mobile-table td:nth-child(3)::before,
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile.vehicle-mobile-table td:nth-child(5)::before,
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile.vehicle-mobile-table td:nth-child(6)::before,
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile.vehicle-mobile-table td:nth-child(7)::before{
    content:attr(data-label);
    display:inline-block;
    width:112px;
    margin-right:6px;
    color:#68778a;
    font-size:7.5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile.vehicle-mobile-table td:nth-child(3)::before{
    width:34px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-mobile-table .td-actions .actions-inline{
    gap:2px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .vehicle-mobile-table .td-actions .btn{
    min-height:26px;
    padding:3px 5px!important;
    font-size:8.5px;
  }

  /* Ustawienia, szczegóły i moduły techniczne. */
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-accordion-toggle{
    min-height:42px!important;
    padding:7px 8px 7px 10px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-section-title{
    font-size:12px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .account-settings-accordion-panel{
    padding:9px!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .theme-card{
    min-height:52px;
    padding:7px 8px;
    border-radius:7px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .theme-name{font-size:10.5px}
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .theme-desc{font-size:8.5px}

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .detail-item{
    padding:7px 8px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .detail-label{
    margin-bottom:2px;
    font-size:8px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .detail-value{
    font-size:11.5px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .inventory-editor-page .editor-inline-section,
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .inventory-editor-page .media-section{
    padding:9px!important;
    border-radius:8px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .obk-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    border-radius:8px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .obk-summary{
    min-height:58px;
    padding:8px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .obk-summary-value{
    font-size:18px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] :is(
    .siemens-hero,.siemens-stat-card,.siemens-chart-card,.siemens-history-card,
    .siemens-maintenance-card,.siemens-filter-card
  ){
    border-radius:8px!important;
    box-shadow:none!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .modal-card{
    width:calc(100vw - 12px);
    max-height:calc(100dvh - 12px);
    border-radius:10px;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .modal-head{
    min-height:43px;
  }
}

@media (max-width:400px){
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .topbar-right{
    max-width:55vw;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .table.table-mobile.dashboard-repairs-table tr{
    grid-template-columns:minmax(0,1fr) auto;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-repair-date{grid-column:1;grid-row:1}
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-repair-cost{grid-column:2;grid-row:1;padding-top:0!important}
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-repair-vehicle{grid-column:1 / 3;grid-row:2}
  html[data-ui-template="v2"][data-ui-template-choice="v3"] .dashboard-repair-description{grid-column:1 / 3;grid-row:3}

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .settings-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  html[data-ui-template="v2"][data-ui-template-choice="v3"] .parts-filters-row-1 .parts-filters-actions .btn{
    min-width:46px!important;
    padding-inline:5px!important;
    font-size:9.5px;
  }
}
