/* Screen-only adjustments: exported and printed documents retain their A4 layout. */
@media screen and (max-width:760px){
 .website .corporate-header nav.is-open{max-height:var(--public-menu-height,calc(100dvh - 130px));overscroll-behavior:contain}
}
@media screen and (max-width:800px){
 input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]),textarea,select{font-size:16px}
 .choice-popup input[type=search],.hp-calendar input{font-size:16px}
 .btn{min-height:44px}
 .workspace .form-footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px}
 .workspace .form-footer>.checkbox{flex:1 0 100%;min-width:0;margin:0;line-height:1.6}
 .workspace .invoice-layout{grid-template-columns:minmax(0,1fr)}
 .workspace .invoice-layout>*,.workspace .formal-invoice,.workspace .formal-invoice section,.workspace .formal-table-scroll{min-width:0;max-width:100%}
 .workspace .formal-header{grid-template-columns:minmax(0,1fr) auto;gap:16px}
 .workspace .formal-logo{grid-column:1/-1;min-width:0;max-width:100%}
 .workspace .formal-supplier{grid-column:1/-1;justify-self:start;max-width:100%;text-align:start}
 .workspace .formal-invoice .formal-parties,.workspace .formal-invoice .formal-after-table{grid-template-columns:minmax(0,1fr);gap:20px}
 .workspace .formal-invoice .formal-parties dl{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 14px}
 .workspace .formal-invoice .formal-parties dd{overflow-wrap:anywhere}
 .workspace .formal-table-scroll{overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
 .workspace .invoice-tools{min-width:0}
 .workspace .invoice-line{min-width:0}
 .workspace .sidebar .website-link{box-shadow:none;border:1px solid #e5ebf5;border-radius:10px;background:#fff}
}
@media screen and (max-width:600px){
 .website .corporate-header-inner{padding-inline:16px;gap:10px}
 .website .corporate-header .brand{width:calc(100vw - 180px);max-width:195px;min-width:130px;flex:1 1 auto}
 .website .public-header-actions{flex:0 0 auto;gap:6px}
 .website .public-menu{flex:none;width:40px;min-height:44px;padding:9px}
 .website .corporate-header .brand .identity-tagline{font-size:6px;letter-spacing:0}
 .workspace .form-footer>.btn{flex:1 1 130px;justify-content:center}
 .workspace .formal-invoice{padding:22px 16px}
}
