body{margin:0;background:#f3f6fb;font-family:Arial,Helvetica,sans-serif;color:#16202c} .wrap{max-width:1380px;margin:0 auto;padding:24px}.loginWrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.loginBox{width:100%;max-width:620px;text-align:center}.loginBox h2{font-size:22px;font-weight:400;line-height:1.3}.logoBox{text-align:center;margin-bottom:22px}.logoBox img{max-width:360px;width:100%;height:auto}.mainTitle{text-align:center;font-size:38px;font-weight:800;color:#07184f;margin:0 0 26px}.card{background:#fff;border:1px solid #d9e1ef;border-radius:16px;padding:22px;margin-bottom:20px;box-shadow:0 6px 18px rgba(15,35,70,.06)}h1,h2,h3{margin-top:0}.field{display:flex;flex-direction:column;gap:6px;min-width:180px;flex:1}.row{display:flex;gap:14px;align-items:end;flex-wrap:wrap}label{font-weight:700;font-size:13px}input,select{padding:11px 12px;border:1px solid #cbd5e1;border-radius:10px;font-size:15px;box-sizing:border-box}button,.btn{display:inline-block;background:#07184f;color:#fff;border:0;border-radius:10px;padding:11px 16px;font-weight:700;text-decoration:none;cursor:pointer;white-space:nowrap}.btn2{background:#eef2ff;color:#07184f}.danger{background:#c62828}.ok{background:#e8f5e9;color:#1b5e20;padding:10px;border-radius:10px}.err{background:#ffebee;color:#b71c1c;padding:10px;border-radius:10px}.muted{color:#64748b}.topbar{background:#07184f;color:#fff;padding:16px 24px;display:flex;justify-content:space-between;align-items:center;gap:12px}.logoutTile{display:inline-flex;align-items:center;justify-content:center;width:132px;height:46px;background:#fff;color:#07184f!important;border-radius:12px;padding:0 12px;text-decoration:none;font-weight:800;font-size:16px;line-height:1;box-sizing:border-box;white-space:nowrap}.tableWrap{overflow-x:auto;width:100%;border:1px solid #d7dfec;border-radius:12px}.desktop-table table{border-collapse:collapse;width:max-content;min-width:100%;background:#fff}.desktop-table th,.desktop-table td{border:1px solid #d7dfec;padding:8px;text-align:center;font-size:12px}.desktop-table th{background:#eef3fa}.nameCell{line-height:1.15;white-space:nowrap;width:1%;text-align:left!important;font-weight:700}.nameCell span{font-weight:600}.num{width:1%;min-width:32px;white-space:nowrap}.pill{background:#eef2ff;border-radius:999px;padding:5px 9px;display:inline-block}.sum{font-weight:800;background:#f8fafc}.actions{min-width:145px}.actionBtn{display:inline-block;padding:7px 9px;border-radius:9px;color:#fff!important;text-decoration:none;font-size:12px;font-weight:800;margin:2px}.editBtn{background:#1565c0}.deleteBtn{background:#c62828}.genBtn{margin-top:10px;background:#ffb300;color:#111;border:0;padding:12px;border-radius:10px;cursor:pointer;width:100%;font-weight:bold}.mobile-cards{display:none}.emp-card{background:#fff;border:1px solid #d9e1ef;border-radius:14px;padding:16px;margin-bottom:14px}.days-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.day-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:7px;text-align:center;font-size:12px}.footer{text-align:center;color:#667085;padding:22px;font-size:13px}@media(max-width:768px){.topbar{flex-direction:column;align-items:flex-start}.mainTitle{font-size:28px}.desktop-table{display:none}.mobile-cards{display:block}.row{display:block}.field{margin-bottom:12px}.days-grid{grid-template-columns:repeat(4,1fr)}}

.col-lp{width:1%;min-width:34px;max-width:44px}
.col-name{width:1%;min-width:92px;max-width:118px;text-align:left;line-height:1.12;white-space:normal}
.col-group{width:1%;min-width:70px;max-width:92px;white-space:normal}
.col-total{width:42px;min-width:42px}

.col-lp{
    width:28px !important;
    min-width:28px !important;
    max-width:28px !important;
    padding-left:4px !important;
    padding-right:4px !important;
    text-align:center;
}


/* Minimalna kolumna Lp. */
th.col-lp, td.col-lp,
th.num, td.num{
    width:14px !important;
    min-width:14px !important;
    max-width:14px !important;
    padding-left:3px !important;
    padding-right:3px !important;
    text-align:center !important;
    white-space:nowrap !important;
}


.employeeEditSelectRow{
    display:grid;
    grid-template-columns: 1fr auto;
    gap:12px;
    align-items:end;
    margin-bottom:16px;
}
.employeeOneLine{
    display:grid !important;
    grid-template-columns: 2fr 1fr 1.2fr 1.1fr 1.1fr 1fr !important;
    gap:12px !important;
    align-items:end !important;
    width:100% !important;
}
.employeeOneLine .field{
    margin:0 !important;
    width:100% !important;
}
.employeeOneLine input,
.employeeOneLine select,
.employeeOneLine button{
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
}
.employeeOneLine label{
    white-space:nowrap;
}
@media(max-width:980px){
    .employeeEditSelectRow,
    .employeeOneLine{
        grid-template-columns:1fr !important;
    }
}


/* Układ sekcji: Dodaj pracownika / Edytuj */
.employeeEditSelectRow{
    display:grid !important;
    grid-template-columns: minmax(320px,1fr) 110px !important;
    gap:12px !important;
    align-items:end !important;
    margin-bottom:16px !important;
}
.employeeEditSelectRow .field{
    margin:0 !important;
}
.employeeEditSelectRow select,
.employeeEditSelectRow button{
    width:100% !important;
    box-sizing:border-box !important;
}
.employeeOneLine{
    display:grid !important;
    grid-template-columns: 2fr 1fr 1fr 1.1fr 1.15fr auto .9fr auto !important;
    gap:12px !important;
    align-items:end !important;
    width:100% !important;
}
.employeeOneLine .field{
    margin:0 !important;
    width:100% !important;
    min-width:0 !important;
}
.employeeOneLine input,
.employeeOneLine select,
.employeeOneLine button{
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
}
.employeeOneLine label{
    white-space:nowrap !important;
}
.employeeOneLine .genBtn{
    margin-top:0 !important;
}
@media(max-width:980px){
    .employeeEditSelectRow,
    .employeeOneLine{
        grid-template-columns:1fr !important;
    }
}


.readonlyField{
    background:#f3f4f6 !important;
    cursor:default !important;
}

/* Lokalizacje — 3 równe kolumny: u góry dodawanie, pod spodem lista z usuwaniem */
.locationsColumns{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:14px !important;
    width:100% !important;
    box-sizing:border-box !important;
    align-items:start !important;
}
.locationsCol{
    min-width:0 !important;
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
}
.locationsAddForm{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:8px !important;
    width:100% !important;
    margin:0 !important;
}
.locationsAddForm .field{
    flex:0 0 auto !important;
    min-width:0 !important;
    max-width:none !important;
    width:100% !important;
    margin:0 !important;
}
.locationsAddForm input,
.locationsAddForm select{
    width:100% !important;
}
.locationsAddForm button{
    width:auto !important;
    align-self:flex-start !important;
    margin-top:2px !important;
}
.locationsList{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    margin-top:6px !important;
}
.locationsList .pill{
    margin:0 !important;
}
@media (max-width:900px){
    .locationsColumns{
        grid-template-columns:1fr !important;
    }
}


/* Optymalizacja szerokości tabeli zestawienia */
.desktop-table th,
.desktop-table td{
    padding-left:4px !important;
    padding-right:4px !important;
}

.desktop-table th.dayCol,
.desktop-table td.dayCol{
    width:26px !important;
    min-width:26px !important;
    max-width:26px !important;
    padding-left:2px !important;
    padding-right:2px !important;
    white-space:nowrap !important;
}

.desktop-table th.col-total,
.desktop-table td.col-total{
    width:35px !important;
    min-width:35px !important;
    max-width:35px !important;
    padding-left:3px !important;
    padding-right:3px !important;
}

.desktop-table .nameCell{
    width:92px !important;
    min-width:92px !important;
    max-width:92px !important;
    white-space:normal !important;
    line-height:1.12 !important;
}

/* Stałe, równe przyciski w prawym górnym pasku */
.topbar > div:last-child{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:nowrap;
}

.topbar .logoutTile{
    flex:0 0 132px;
    text-align:center;
}

@media(max-width:768px){
    .topbar > div:last-child{
        width:100%;
        justify-content:flex-start;
        flex-wrap:wrap;
        gap:8px;
    }

    .topbar .logoutTile{
        flex:0 0 132px;
        height:44px;
    }
}

