*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:#14253d;background:#f3f5f8}button,a,input,select{font:inherit}button,.button{cursor:pointer;border:1px solid #d9e0e8;background:white;color:#182c47;border-radius:8px;padding:12px 18px;text-decoration:none;display:inline-block;font-weight:600}button:disabled{opacity:.42;cursor:not-allowed}button:hover:not(:disabled){filter:brightness(.95)}.shell{display:flex;min-height:100vh}aside{width:248px;background:#101e34;color:white;position:fixed;inset:0 auto 0 0;padding:36px 22px;display:flex;flex-direction:column}.brand strong{font-size:25px;letter-spacing:1px}.brand span{display:block;font-size:13px;letter-spacing:5px;color:#91b6e0;margin-top:8px}.brand img{width:100%;max-height:70px;object-fit:contain;background:white;border-radius:6px;padding:5px}.aside-label{font-size:9px;letter-spacing:1.8px;color:#8395ac;margin:38px 9px 18px}nav button{background:none;border:0;color:#aebcd0;width:100%;display:flex;gap:14px;align-items:center;padding:15px 10px;margin-bottom:6px;text-align:left;font-size:14px}nav button.active{background:#25405f;color:white;border-left:3px solid #77b0e8}.aside-bottom{margin-top:auto;color:#a9b7c9;font-size:12px;line-height:2}.aside-bottom div{font-size:10px;margin-top:20px}.aside-bottom img{max-width:170px;max-height:65px;object-fit:contain;background:white;border-radius:4px}.scania{font-size:24px;letter-spacing:2px;color:white}.live-dot{display:inline-block;background:#73ca9e;width:7px;height:7px;border-radius:50%;margin-right:6px}main{margin-left:248px;width:calc(100% - 248px)}header{height:82px;background:white;border-bottom:1px solid #e1e6ed;display:flex;justify-content:space-between;align-items:center;padding:0 44px;color:#617088;font-size:13px}.pill{background:#edf2f8;padding:9px 12px;border-radius:5px;font-size:10px;font-weight:bold;letter-spacing:1px}.content{max-width:1280px;margin:auto;padding:44px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#587897}h1{font-size:36px;letter-spacing:-1px;margin:12px 0}h2{font-size:21px;line-height:1.4;margin:14px 0}h3{font-size:16px;margin-top:25px}.intro{color:#708096;line-height:1.7;font-size:14px;max-width:730px;margin-bottom:30px}.select-machine{max-width:650px;margin-bottom:24px}label{display:block;font-size:12px;font-weight:600;margin:17px 0 9px}input,select{width:100%;padding:13px;border:1px solid #d8dfe8;border-radius:7px;background:white;color:#22364f;font-size:14px}input[type=file]{font-size:12px}select{min-height:46px}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid #8bb8e8;outline-offset:2px}.card{background:white;border:1px solid #e0e5ed;border-radius:13px;padding:28px;margin-bottom:22px;box-shadow:0 3px 8px #12243d03}.worker-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:24px}.card-top{display:flex;align-items:center;gap:12px;font-size:10px;font-weight:bold;letter-spacing:1.4px;color:#75879b}.number{background:#edf3fa;color:#325c87;padding:9px;border-radius:6px;font-size:12px}.small{font-size:12px;color:#7b8899;line-height:1.65}.divider{height:1px;background:#e7ebf1;margin:30px 0}.tags{display:flex;gap:8px;margin:18px 0}.tags span{background:#f0f4f8;padding:6px 9px;font-size:11px;border-radius:4px}.primary{background:#193f69;color:white;border-color:#193f69}.full{width:100%;margin-top:9px}.checkbox{display:flex;gap:12px;font-weight:normal;line-height:1.6;margin:24px 0;color:#596b80}.checkbox input{width:18px;height:18px;flex-shrink:0}.confirm{background:#e9f2ed;color:#276545;border-color:#d2e5d8}.dark{background:#132b49;color:white;border:0;padding:33px;min-height:310px}.dark h2{font-size:27px;line-height:1.4}.dark p{color:#aabed4;line-height:1.7;font-size:13px}.shield{display:inline-grid;place-items:center;width:43px;height:48px;border:1px solid #4b6e91;border-radius:12px;color:#9ac5f0;font-size:25px}.dark-footer{border-top:1px solid #35506d;margin-top:30px;padding-top:20px;font-size:10px;letter-spacing:2px;display:flex;justify-content:space-between}.hint p{font-size:13px;line-height:1.7;color:#708096}.hint b{color:#244b75;margin-right:10px}.notice{background:#fff5df;border:1px solid #efdba9;border-radius:8px;padding:15px;line-height:1.6;font-size:13px;margin:14px 0;overflow-wrap:anywhere}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.stats small{font-size:9px;letter-spacing:1px;color:#6c8095}.stats strong{display:block;font-size:36px;margin-top:14px}.green{color:#39845c}.section-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;margin-top:20px;white-space:nowrap}th{text-align:left;color:#7d8a9b;font-size:10px;text-transform:uppercase;letter-spacing:.5px;background:#f5f7fa}td,th{padding:16px 12px;border-bottom:1px solid #edf0f4}.status{background:#fdf1d7;color:#99782f;padding:6px 9px;border-radius:20px;font-size:10px}.status.done{background:#e6f2eb;color:#327652}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.card p{line-height:1.7;font-size:13px}.card form input{margin-bottom:12px}.qr-card{display:flex;align-items:center;justify-content:space-between;gap:25px}.qr-card button{margin-left:10px}.qr{width:260px;height:260px}footer{border-top:1px solid #dce3ed;margin-top:25px;padding-top:25px;color:#8c99aa;font-size:10px;letter-spacing:1px;display:flex;justify-content:space-between}@media(max-width:1000px){aside{width:205px}main{margin-left:205px;width:calc(100% - 205px)}.content{padding:28px}.worker-grid,.admin-grid{grid-template-columns:1fr}.stats{gap:8px}.stats .card{padding:18px}}@media(max-width:650px){aside{position:static;width:100%;padding:18px;display:block}.shell{display:block}.brand strong{font-size:21px}.brand span{display:inline;margin-left:12px}.brand img{width:160px;max-height:50px}.aside-label,.aside-bottom{display:none}nav{display:flex;margin-top:18px;gap:5px}nav button{font-size:11px;padding:12px 6px;gap:5px;justify-content:center;margin:0}nav button.active{border-left:0;border-bottom:2px solid #77b0e8}main{margin:0;width:100%}header{height:55px;padding:0 20px;font-size:11px}.content{padding:28px 18px}h1{font-size:29px}.card{padding:23px}.stats{grid-template-columns:1fr}.stats .card{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.stats strong{font-size:26px;margin:0}.qr-card{flex-direction:column}.section-row{flex-wrap:wrap}footer span{display:none}.qr{width:230px;height:230px}}@media print{aside,header,.select-machine,.intro,footer,button,.button{display:none!important}main{margin:0;width:100%}.content{padding:0}.qr-card{border:0}.qr{width:350px;height:350px}}

/* Dodatki: logowanie, pracownicy, wylogowanie */
.login-form{max-width:420px}.login-form button{margin-top:12px}
.row-actions button{padding:6px 10px;font-size:11px}
tr.inactive td{color:#a0aab6}
.admin-bar{display:flex;justify-content:flex-end;margin-bottom:12px}
.inline-form{display:flex;gap:10px;align-items:center}.inline-form input{margin:0}.inline-form button{white-space:nowrap}

/* Logotypy TYNFOWICZ + Autoryzowany Partner Scania (jak w aplikacji „Cele i premie”) */
.brand{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.brand img{background:none;border-radius:0;padding:0;max-height:none;filter:drop-shadow(0 2px 7px rgba(0,0,0,.16))}
.brand .brand-wordmark{width:100%;height:auto}
.brand .brand-app{display:block;margin:0;font-size:12px;letter-spacing:6px;color:#91b6e0;font-weight:700}
.brand .brand-scania{width:150px;height:auto;margin-top:14px;padding-top:16px;border-top:1px solid rgba(255,255,255,.18);box-sizing:content-box}
@media(max-width:650px){
  .brand{flex-direction:row;align-items:center;gap:14px}
  .brand .brand-wordmark{width:160px}
  .brand .brand-app{display:none}
  .brand .brand-scania{width:84px;margin:0;padding:0 0 0 14px;border-top:0;border-left:1px solid rgba(255,255,255,.18)}
}
/* Scania na dole paska (na telefonie pasek dolny jest ukryty, więc logo idzie obok TYNFOWICZ) */
.brand .mobile-only{display:none}
.aside-bottom img.aside-scania{display:block;width:170px;max-width:100%;max-height:none;height:auto;background:none;border-radius:0;margin-top:16px;padding-top:16px;border-top:1px solid rgba(255,255,255,.18);filter:drop-shadow(0 2px 7px rgba(0,0,0,.14))}
@media(max-width:650px){.brand .mobile-only{display:block}}

/* Podgląd instrukcji w aplikacji: pełny ekran, strony PDF na szerokość telefonu */
body.viewer-open{overflow:hidden}
.viewer{position:fixed;inset:0;z-index:50;background:#e9edf2;overflow-y:auto;-webkit-overflow-scrolling:touch}
.viewer[hidden]{display:none}
.viewer-bar{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#101e34;color:#fff;padding:12px 16px;font-size:14px}
.viewer-bar span{display:block;color:#aebcd0;font-size:12px;margin-top:3px}
.viewer-bar button{background:#25405f;border:0;color:#fff;font-size:20px;width:44px;height:44px;padding:0;flex-shrink:0}
.viewer-pages{max-width:900px;margin:0 auto;padding:12px 8px;display:flex;flex-direction:column;align-items:center;gap:10px}
.viewer-pages canvas{display:block;max-width:100%;height:auto;background:#fff;box-shadow:0 2px 10px rgba(16,30,52,.15)}
.viewer-info{padding:40px 16px;color:#596b80;text-align:center}
.viewer-foot{max-width:640px;margin:0 auto;padding:8px 16px 40px}
.viewer-foot[hidden]{display:none}
.viewer-end{font-weight:700;color:#193f69;text-align:center}
.viewer-foot .confirm{min-height:52px;font-size:16px}
.viewer-msg{min-height:1.4em;color:#99782f;font-size:13px}
.viewer-foot a{display:block;text-align:center;margin-top:8px}
.viewer-tools{display:flex;gap:8px}
.viewer-pages.zoomed{align-items:flex-start;overflow-x:auto;max-width:none}
.viewer-pages.zoomed canvas{max-width:none;flex-shrink:0}

/* Znak „BHP” pod logo TYNFOWICZ */
.brand .brand-app{display:flex;align-items:center;gap:10px;letter-spacing:0;margin-top:4px}
.brand .brand-app svg{width:30px;height:35px;flex-shrink:0;filter:drop-shadow(0 2px 6px rgba(252,193,4,.25))}
.brand .brand-app b{display:block;font-size:26px;line-height:1;letter-spacing:7px;color:#fff;font-weight:800}
.brand .brand-app small{display:block;font-size:9px;letter-spacing:2px;color:#91b6e0;text-transform:uppercase;margin-top:4px;font-weight:600}

/* Plakat z kodem QR */
.poster-card{display:grid;grid-template-columns:1fr 360px;gap:32px;align-items:start}
.poster-card textarea{width:100%;padding:12px;border:1px solid #d8dfe8;border-radius:7px;font:inherit;font-size:14px;resize:vertical;margin-bottom:10px}
.poster-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 6px}
.poster-preview img{width:100%;aspect-ratio:1240/1754;display:block;background:#eef1f5;border-radius:6px;box-shadow:0 4px 18px rgba(16,30,52,.18)}
@media(max-width:1000px){.poster-card{grid-template-columns:1fr}.poster-preview{max-width:420px}}
#print-area{display:none}
@media print{
  body.printing-poster *{visibility:hidden}
  body.printing-poster .poster-preview,body.printing-poster .poster-preview img{visibility:visible}
  body.printing-poster .poster-preview{position:fixed;inset:0;max-width:none}
  body.printing-poster .poster-preview img{width:100%;height:100%;object-fit:contain;box-shadow:none;border-radius:0}
  body.printing-register #app,body.printing-register #viewer{display:none!important}
  body.printing-register #print-area{display:block}
}

/* Rejestr zapoznania do druku (A4) */
@page{size:A4;margin:12mm}
.reg{font-family:Arial,Helvetica,sans-serif;color:#101e34;font-size:11px;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.reg-head{display:flex;justify-content:space-between;align-items:center;background:#101e34;padding:12px 16px;border-bottom:4px solid #fcc104}
.reg-head img{height:34px;width:auto}
.reg h1{font-size:18px;margin:14px 0 8px}
.reg table{width:100%;border-collapse:collapse;white-space:normal;margin:0}
.reg th,.reg td{border:1px solid #9aa7b6;padding:5px 6px;text-align:left;vertical-align:top;font-size:10.5px;background:none;text-transform:none;letter-spacing:0;color:#101e34}
.reg-meta th{width:15%;background:#eef2f7}
.reg-meta .mono{font-family:Consolas,monospace;font-size:9px;word-break:break-all}
.reg-list{margin-top:10px}
.reg-list thead th{background:#193f69;color:#fff;font-size:10px}
.reg-list tr{page-break-inside:avoid}
.reg-list td:first-child{width:28px;text-align:right}
.reg-list td:last-child{width:26%}
.reg-list small{display:block;color:#5d6b7c;font-size:8.5px}
.reg-list tr.missing td{background:#fff5df}
.reg-note{font-size:9px;color:#5d6b7c;line-height:1.5;margin:10px 0 28px}
.reg-sign{display:flex;gap:24px;page-break-inside:avoid}
.reg-sign div{flex:1;font-size:9.5px;color:#5d6b7c}
.reg-sign span{display:block;border-bottom:1px solid #101e34;height:34px;margin-bottom:4px}
