/* Separate mobile layout for the copied material tool. All product logic stays in app.js. */
.mobile-entry-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 22px}
.mobile-choice{display:flex;align-items:center;gap:14px;min-width:0;padding:18px 16px;border:1px solid #dce3eb;border-radius:13px;background:#fff;color:#17273d;box-shadow:0 3px 12px #17273d08}
.mobile-choice:hover{border-color:#e6814b;transform:translateY(-1px)}
.mobile-choice>span:nth-child(2){min-width:0;flex:1}
.mobile-choice strong,.mobile-choice small{display:block}
.mobile-choice strong{font-size:18px;font-weight:800;line-height:1.25}
.mobile-choice small{font-size:12px;color:#52647b;line-height:1.4;margin-top:6px}
.mobile-choice>span:last-child{font-size:23px;font-weight:800;color:#b85e2b}
.mobile-choice-primary{background:#17273d;border-color:#17273d;color:#fff}
.mobile-choice-primary small{color:#d0dbe8}
.mobile-choice-primary>span:last-child{color:#ffad81}
.mobile-choice-icon{flex:none;width:50px;height:50px;display:grid;place-items:center;border-radius:12px;background:#ffe7d8;color:#a84e1d}
.mobile-choice-icon svg{display:block;width:31px;height:31px}
.mobile-choice-primary .mobile-choice-icon{background:#405873;color:#ffd4b9}
.mobile-choice-stack{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:10px;min-width:0;width:100%}
.mobile-choice-stack>.mobile-choice,.mobile-choice-bill{box-sizing:border-box;width:100%}
.mobile-choice-bill{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:86px;padding:14px 16px;border:1px solid #004ca3;border-radius:11px;background:#eaf3ff;color:#004ca3;font-size:18px;font-weight:800;text-align:left;box-shadow:0 3px 12px #17273d08}
.mobile-choice-bill-icon{width:50px;height:50px;border-radius:12px;background:#d3e8ff;color:#004ca3}
.mobile-choice-bill-icon svg{width:31px;height:31px}
.mobile-choice-bill-label{min-width:0;flex:1;line-height:1.25}
.mobile-choice-bill-arrow{margin-left:auto;font-size:23px;font-weight:800;line-height:1;color:#b85e2b}
.mobile-choice-bill:hover,.mobile-choice-bill:focus-visible{background:#d7eaff;border-color:#003982;color:#003982}
.mobile-choice-bill:focus-visible{outline:2px solid #00a4fe;outline-offset:2px}
.additional-details{margin-top:20px;border:1px solid #d5dee8;border-radius:9px;background:#f8fafc}
.additional-details summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:49px;padding:12px 14px;color:#253b55;font-size:13px;font-weight:750}
.additional-details summary::-webkit-details-marker{display:none}
.additional-details summary::after{content:'+';font-size:22px;line-height:1;color:#d97540}
.additional-details[open] summary::after{content:'−'}
.additional-details summary span{font-size:11px;font-weight:500;color:#708096;margin-left:auto}
.additional-fields{padding:2px 14px 16px}
.mobile-bottom-nav{display:none}
#manuell{scroll-margin-top:20px}
.barcode-grid{grid-template-columns:minmax(0,1fr)}
.barcode-panel{max-width:800px}
.barcode-manual-details .barcode-fields{padding:3px 14px 16px}
.barcode-panel .barcode-hits:empty,.barcode-panel .barcode-validation:empty{display:none}
@media(max-width:760px){
  body{background:#f4f6f9}
  .header-inner{min-height:0;padding:5px 16px!important}
  .brand{min-height:54px!important}
  .brand-logo{width:52px!important;height:52px!important}
  .brand-name{font-size:14px!important;letter-spacing:.25px}
  .brand-name small{font-size:8px!important;letter-spacing:.8px!important}
  .sidebar nav{display:none!important}
  .topbar{padding:13px 18px 5px!important}
  .topbar h1{font-size:25px!important;margin:5px 0!important}
  .topbar p{font-size:13px;line-height:1.4}
  .top-actions{display:none}
  .content{padding:0 14px 100px!important}
  .intro-grid{display:none}
  .workspace-section{margin-top:22px;scroll-margin-top:12px}
  .section-heading{margin-bottom:11px}
  .section-heading h2{font-size:19px;margin:4px 0}
  .section-heading p{font-size:12px}
  .section-index{font-size:10px}
  .step-pill{display:none}
  .project-panel{padding:15px!important}
  .project-heading{margin-bottom:11px}
  .project-heading h3{font-size:16px;margin:3px 0}
  .project-heading p{display:none}
  .project-kicker{font-size:9px}
  .project-fields{gap:10px}
  .mobile-entry-choices{grid-template-columns:1fr;gap:9px;margin:12px 0 19px}
  .mobile-choice{min-height:88px;padding:14px}
  .mobile-choice-primary{min-height:94px}
  .mobile-choice strong{font-size:19px}
  .mobile-choice small{font-size:12px}
  .mobile-choice-bill{min-height:88px;padding:14px;font-size:19px}
  .entry-grid,.photo-grid,.barcode-grid,.catalog-grid{display:grid;grid-template-columns:1fr;gap:12px}
  .entry-panel,.photo-panel,.photo-review-panel,.barcode-panel,.import-panel,.catalog-list-panel{padding:17px!important}
  .guidance-column{display:none}
  .field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .field-grid .field:nth-child(3){grid-column:1/-1}
  .additional-fields .field:nth-child(3){grid-column:auto}
  .field label,.field-label{font-size:12px}
  input,select,textarea{font-size:16px!important;min-height:48px}
  .quick-row{gap:8px}
  .button{min-height:48px;font-size:13px}
  .form-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .form-actions .button{width:100%}
  .divider{margin:20px 0 14px}
  .additional-details summary span{display:none}
  .photo-icon,.barcode-icon{display:none!important}
  .photo-panel>p,.barcode-panel>p{font-size:12px;line-height:1.45}
  .barcode-upload-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .barcode-upload-actions label{width:100%;min-height:50px}
  .results-panel{padding:0 16px 6px!important}
  .result-card{grid-template-columns:1fr}
  .result-actions{align-items:stretch}
  .result-actions .button{align-self:stretch}
  .export-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
  .export-actions .button{min-height:44px}
  .table-panel{border:0;background:transparent}
  .table-scroll{overflow:visible}
  table{min-width:0;width:100%;border-collapse:separate;border-spacing:0 9px}
  thead{display:none}
  tbody{display:block}
  #bill-body tr:not(.maker-group){display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;background:#fff;border:1px solid #dce3eb;border-radius:12px;padding:13px 14px}
  #bill-body tr:not(.maker-group) td{display:block;border:0;padding:0;min-width:0;overflow-wrap:anywhere;font-size:12px}
  #bill-body tr:not(.maker-group) td:first-child{grid-column:1/-1;font-size:10px;color:#6b7b8f}
  #bill-body tr:not(.maker-group) td:first-child::before{content:'POSITION ';font-size:10px}
  #bill-body tr:not(.maker-group) td:nth-child(2){grid-column:1/-1}
  #bill-body tr:not(.maker-group) td:nth-child(2) .item-title{font-size:14px;line-height:1.35}
  #bill-body tr:not(.maker-group) td:nth-child(3)::before{content:'Menge';display:block;color:#708096;font-size:10px;margin-bottom:3px}
  #bill-body tr:not(.maker-group) td:nth-child(4)::before{content:'Strichcode';display:block;color:#708096;font-size:10px;margin-bottom:3px}
  #bill-body tr:not(.maker-group) td:nth-child(5)::before{content:'Hersteller-Code';display:block;color:#708096;font-size:10px;margin-bottom:3px}
  #bill-body tr:not(.maker-group) td:nth-child(6)::before{content:'Quelle';display:block;color:#708096;font-size:10px;margin-bottom:3px}
  #bill-body tr:not(.maker-group) td:nth-child(7){grid-column:1/-1}
  #bill-body tr:not(.maker-group) td:nth-child(8){grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:14px;border-top:1px solid #e8edf3;padding-top:9px}
  #bill-body .maker-group{display:block;background:transparent}
  #bill-body .maker-group td{display:block;border:0;padding:12px 2px 2px;color:#253b55;font-size:12px;font-weight:800}
  .qty-input{width:65px;height:35px;min-height:35px;font-size:14px!important}
  .mobile-bottom-nav{position:fixed;z-index:10;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);padding:5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#fff;border-top:1px solid #dce3eb;box-shadow:0 -5px 20px #17273d12}
  .mobile-bottom-nav a{display:grid;place-items:center;gap:1px;min-height:53px;border-radius:8px;color:#42546d;font-size:11px;font-weight:700}
  .mobile-bottom-nav a:hover,.mobile-bottom-nav a:focus-visible{background:#fff0e7;color:#a54a1d}
  .mobile-bottom-nav span{font-size:21px;line-height:1}
  .toast{bottom:85px;left:14px;right:14px;max-width:none}
}
@media(max-width:380px){.field-grid{grid-template-columns:1fr}.additional-details summary span{display:none}}
