:root{font-family:Inter,system-ui,Arial,sans-serif;color:#203443;background:#f3f5f6;font-size:14px}*{box-sizing:border-box}body{margin:0}header{display:flex;justify-content:space-between;align-items:center;padding:18px 30px;background:#163c40;color:white}header>div{display:flex;gap:20px;align-items:center}.brand{font-weight:800;letter-spacing:.08em;color:#b9e7d2}.login{max-width:420px;margin:12vh auto;padding:36px;background:white;border-radius:16px;box-shadow:0 10px 50px #213a4315}.login .brand{color:#176c62}main{padding:24px;max-width:1900px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}h1{font-size:30px;margin:4px 0 10px}h2{font-size:20px;margin:16px 0}.eyebrow{font-size:11px;letter-spacing:.15em;color:#48746c;font-weight:700}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}button,.button{border:0;border-radius:7px;background:#176c62;color:white;padding:10px 14px;font:inherit;cursor:pointer;text-decoration:none;display:inline-block}button:hover{background:#11564f}.quiet{background:#e7edee;color:#203443}input,select,textarea{font:inherit;border:1px solid #bccbd0;border-radius:6px;padding:9px;background:white;max-width:100%}input[type=checkbox]{width:auto}label{display:block;margin:10px 0}label>input:not([type=checkbox]),label>select,label>textarea{display:block;width:100%;margin-top:5px}textarea{width:100%;min-height:70px}nav{display:flex;gap:6px;margin:22px 0;flex-wrap:wrap}nav button{background:#e4ebeb;color:#203443}nav button.active{background:#163c40;color:white}.panel{background:white;padding:22px;border:1px solid #dbe3e6;border-radius:10px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}.stat{padding:18px;background:white;border:1px solid #dae3e4;border-radius:9px}.stat strong{font-size:25px;display:block}.stat span{color:#5c6f78}.tablewrap{overflow:auto;max-height:70vh;margin:16px 0}table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}th,td{padding:9px 7px;border-bottom:1px solid #e2e9eb;border-right:1px solid #edf1f2;text-align:center;white-space:nowrap}th{background:#eaf0f0;color:#24464c;font-weight:700}thead th{position:sticky;top:0;z-index:2}th:first-child,td:first-child{position:sticky;left:0;text-align:left;background:#f7f9fa;z-index:1;min-width:115px}thead th:first-child{z-index:3}.shift{min-width:64px;cursor:pointer}.shift small{display:block;font-size:10px}.am{background:#e3effb}.pm{background:#eee8f7}.extra{background:#d6f2e5}.off{color:#8c989e}.leave{background:#fff0c3}.vacancy{color:#ab3434;background:#ffe8e5;cursor:pointer}.closed{background:#edf0f2;color:#839098}.critical{border-top:3px solid #d28b45}.hint{color:#667b82;font-size:12px}.issue{padding:12px 14px;margin:7px 0;border-left:4px solid #c1cdd2;background:#f6f8f9;overflow-wrap:anywhere}.issue.error{border-color:#c74e44;background:#fff0ed}.issue.unknown{border-color:#cd9433;background:#fff8e9}.issue.exception{border-color:#587eaa}.issue small{display:block;color:#5a6b75}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.card{border:1px solid #dce5e6;padding:16px;border-radius:8px}.card button{margin-right:5px;margin-top:10px}#notice{margin:12px 0;color:#8e3530}dialog{width:min(620px,95vw);border:0;border-radius:12px;padding:25px;max-height:90vh;box-shadow:0 25px 80px #0003}dialog::backdrop{background:#102c4080}#dialogError,#loginError{color:#b43a35}footer{color:#6e7d84;font-size:11px;margin:20px 0}.printOnly{display:none}[hidden]{display:none!important}@media(max-width:700px){main{padding:12px}.stats{grid-template-columns:1fr 1fr}header{padding:15px}.panel{padding:12px}.heading h1{font-size:24px}#identity{display:none}}@media print{@page{size:A4 landscape;margin:10mm}body{background:white;font-size:10px}header,nav,.toolbar,button,.hint,#notice,.stats,#login,dialog,.edit{display:none!important}main,.panel{padding:0;border:0;max-width:none}.heading h1{font-size:20px}#schedule{display:block!important}section:not(#schedule){display:none!important}.tablewrap{overflow:visible;max-height:none}table{font-size:8px;table-layout:fixed;width:100%}th,td{white-space:normal;padding:4px 1px;position:static!important;min-width:0!important}.shift{min-width:0}.shift small{font-size:6px}th:first-child,td:first-child{width:65px}thead{display:table-header-group}tr{break-inside:avoid}.printOnly{display:block}#balance{break-before:page}footer{font-size:8px}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

@media print{#grid{display:none!important}.printPart{break-after:page}.printPart table{font-size:10px}.printPart .shift small{font-size:8px}.printPart th:first-child{width:85px}}
/* Touch-friendly daily view; monthly table and print stay available. */
button,.button,input,select{min-height:44px}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b36b13;outline-offset:3px}input,select,textarea{font-size:16px}.daynav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0}.daynav strong{text-align:center}.daynav button{min-width:48px}.day-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}.day-card{padding:16px;border:1px solid #d4dfe2;border-radius:10px;overflow-wrap:anywhere}.day-card-top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.day-hours{font-weight:750;font-size:18px}.day-card p{margin:8px 0;font-size:13px}.day-card button{margin-top:12px;width:100%}.day-warning{color:#822c25;border-left:3px solid #ad473d;padding-left:8px}.gap-card{background:#fff0ed;border:1px solid #e4a89f;border-radius:10px;padding:16px;margin-bottom:14px;color:#822c25}.gap-card button{background:#943d32}.employee-picks{border:1px solid #bccbd0;border-radius:8px;padding:8px 12px}.employee-picks label{display:flex;align-items:center;gap:10px;min-height:44px;border-bottom:1px solid #e1e8ea;margin:0}.employee-picks input{min-height:24px;width:24px;height:24px;flex-shrink:0}#dialogForm>.toolbar{position:sticky;top:-25px;background:white;z-index:4;padding:10px 0}#saveDialog{position:sticky;bottom:0;width:100%;box-shadow:0 -6px 14px #fff}#dialogBody{padding-bottom:12px}#dialogError:not(:empty){padding:12px;background:#fff0ed}#notice:not(:empty){padding:12px;background:#fff3e2;border-radius:8px}
@media(max-width:700px){
 body{overflow-wrap:anywhere}header{padding:12px 16px}header>div{gap:10px}.brand{white-space:nowrap}header strong{font-size:14px}main{padding:12px 10px calc(20px + env(safe-area-inset-bottom))}.login{margin:5vh 12px;padding:24px}.login button{width:100%}.heading{display:block}.heading .toolbar{display:grid;grid-template-columns:1fr 1fr}.heading .toolbar input{width:100%;min-width:0}.stats{gap:8px;margin-top:12px}.stat{padding:12px}.stat strong{font-size:23px}.stat span{font-size:12px}nav{flex-wrap:nowrap;overflow-x:auto;position:sticky;top:0;z-index:5;background:#f3f5f6;padding:8px 0;margin:10px 0;scrollbar-width:thin}nav button{flex-shrink:0;white-space:nowrap}.panel{padding:12px 10px}.panel>.toolbar{align-items:stretch;gap:8px}.panel>.toolbar label{flex:1 1 135px;min-width:0;margin:3px 0}.panel>.toolbar>button,.panel>.toolbar>a{flex:1 1 100%;text-align:center}.day-list{grid-template-columns:1fr}.day-card{padding:14px}.day-summary{font-size:13px;line-height:1.5}.tablewrap{max-height:65vh}.shift{min-width:78px;height:56px;font-size:14px}.shift small{font-size:12px}.vacancy{height:48px}th:first-child,td:first-child{min-width:100px;max-width:125px;white-space:normal}.cards{grid-template-columns:1fr}.card button{min-height:44px}dialog{width:100%;max-width:100%;max-height:94dvh;margin:auto 0 0;border-radius:18px 18px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));overscroll-behavior:contain}#dialogForm>.toolbar{top:-16px;flex-wrap:nowrap;justify-content:space-between;gap:12px}#dialogTitle{font-size:19px;margin:8px 0}#closeDialog{flex-shrink:0}#dialogBody label{margin:14px 0}#dialogBody input[type=checkbox],#monthForm input[type=checkbox]{min-height:22px;width:22px;height:22px;vertical-align:middle}#dialogBody .employee-picks label{margin:0}#balance table,#balance tbody,#balance tr{display:block;width:100%}#balance{max-height:none;overflow:visible}#balance thead{display:none}#balance tr{border:1px solid #dce5e6;border-radius:8px;margin:10px 0;overflow:hidden}#balance th{display:block;position:static;max-width:none;text-align:left;padding:12px;font-size:15px}#balance td{display:flex;position:static;max-width:none;justify-content:space-between;gap:12px;padding:10px 12px;font-size:14px;text-align:right;white-space:normal}#balance td:before{text-align:left;color:#526870}#balance td:nth-child(2):before{content:'Cel godzin'}#balance td:nth-child(3):before{content:'Plan z urlopem'}#balance td:nth-child(4):before{content:'Różnica'}#balance td:nth-child(5):before{content:'Saldo początkowe'}#balance td:nth-child(6):before{content:'Saldo końcowe'}
}
@media print{#dayCards,#dayNav{display:none!important}#balance table{display:table}#balance thead{display:table-header-group}#balance tbody{display:table-row-group}#balance tr{display:table-row}#balance td,#balance th{display:table-cell}#balance td:before{display:none}#balance tr{border:0}#balance th,#balance td{font-size:8px;padding:4px 1px}}
.stat{text-align:left;color:#203443}.stat:hover{background:#f0f7f4}.stat small{display:block;color:#526870;font-size:12px;font-weight:400;margin-top:9px;line-height:1.4}.stat .stat-link{color:#176c62;font-weight:600}.explanation{padding:14px;border-radius:8px;background:#eef6f4;line-height:1.6}.panel{scroll-margin-top:70px}

/* Sklep 1459 */
:root{--lidl-blue:#0050aa;--lidl-yellow:#fff000;--lidl-red:#e60a14;background:#f1f5fb;color:#14335a}header{background:var(--lidl-blue);border-bottom:5px solid var(--lidl-yellow)}.lidl-mark{display:inline-flex;align-items:center;justify-content:center;background:#fff000;color:#0050aa!important;border:3px solid #e60a14;border-radius:50%;width:52px;height:52px;font:bold 18px Arial;letter-spacing:-1px;flex-shrink:0}.login .lidl-mark{margin-bottom:12px}.eyebrow{color:#0050aa}button,.button,nav button.active{background:#0050aa}button:hover,.button:hover{background:#003e86}.quiet,nav button{background:#e6edf8;color:#14335a}.quiet:hover{color:white}.stat{background:white;color:#14335a}.stat:hover{background:#fffde0}.graph-version{display:inline-block;margin:0 0 5px;padding:6px 10px;background:#fff000;color:#14335a;font-weight:750;border-radius:5px}.cell-actions{display:flex;gap:4px;margin-top:6px}.cell-actions button{font-size:11px;padding:6px;min-height:36px}.restore-details{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:350px;overflow:auto}.change-list{max-height:45vh;overflow:auto}summary{cursor:pointer;padding:12px 0;font-weight:650}#historyList .card{margin:10px 0}.explanation{background:#edf3fc}.stat .stat-link{color:#0050aa}
@media(max-width:700px){.cell-actions{flex-direction:column}.cell-actions button{min-height:44px}.lidl-mark{width:42px;height:42px;font-size:15px}.day-card button+button{margin-top:6px}}
@media print{.cell-actions{display:none!important}.graph-version{background:white;padding:0}.change-list{max-height:none;overflow:visible}}

/* Compact calendar editing: one quiet pencil instead of action tiles. */
.cell-actions{display:inline-flex;margin:0 0 0 3px;vertical-align:middle}.cell-actions .edit-icon,.day-card .edit-icon{background:transparent;color:#476a91;border:0;box-shadow:none;min-width:28px;min-height:28px;width:28px;padding:3px;margin:0;font-size:20px;line-height:1;border-radius:5px}.cell-actions .edit-icon:hover,.day-card .edit-icon:hover{background:#0050aa;color:white}.shift{min-width:68px;padding:6px 3px}.day-card .edit-icon{margin-top:8px} @media(pointer:coarse){.cell-actions .edit-icon,.day-card .edit-icon{min-width:44px;min-height:44px;width:44px}}

.cell-value{display:inline-block;vertical-align:middle;min-width:32px}.cell-actions{vertical-align:middle} @media print{.cell-value{display:block;min-width:0}}

/* Browser print fallback: schedule only, never balances or issue lists. */
@media print{
 @page{size:A4 landscape;margin:8mm}
 html,body,#app,main,#schedule{margin:0!important;padding:0!important;width:100%!important;max-width:none!important;background:white!important;border:0!important}
 main>*:not(#schedule),#schedule>*:not(#schedulePrint){display:none!important}
 #schedulePrint{display:block!important}
 .printPart{break-after:auto!important;page-break-after:auto!important;break-inside:avoid!important;page-break-inside:avoid!important;margin:0!important;padding:0!important}
 .printPart+.printPart{break-before:page!important;page-break-before:always!important}
 .printPart h2{font-size:12pt!important;margin:0 0 4mm!important}
 .printPart table{width:100%!important;table-layout:fixed!important;font-size:8pt!important}
 .printPart th,.printPart td{position:static!important;min-width:0!important;max-width:none!important;height:auto!important;padding:3px 1px!important;white-space:normal!important}
 .printPart .shift small{font-size:7pt!important}
 .printPart button,.printPart .cell-actions{display:none!important}
}
