:root{
  --ws-bg:#f4f7fb;
  --ws-surface:#ffffff;
  --ws-surface-soft:#f8faff;
  --ws-text:#182033;
  --ws-muted:#6f7890;
  --ws-border:#e5e9f2;
  --ws-primary:#635bff;
  --ws-primary-dark:#4d46d8;
  --ws-primary-soft:#eeecff;
  --ws-success:#16a66a;
  --ws-warning:#f59e0b;
  --ws-danger:#e5484d;
  --ws-info:#2784ff;
  --ws-shadow:0 16px 42px rgba(31,43,72,.08);
  --ws-shadow-sm:0 8px 24px rgba(31,43,72,.06);
  --ws-radius:20px;
  --ws-radius-sm:14px;
}

*{box-sizing:border-box}
html{min-height:100%;background:var(--ws-bg)}
body{
  min-height:100vh;
  margin:0;
  color:var(--ws-text);
  background:
    radial-gradient(circle at 7% 0%,rgba(99,91,255,.09),transparent 28rem),
    radial-gradient(circle at 100% 12%,rgba(39,132,255,.07),transparent 30rem),
    var(--ws-bg);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--ws-primary);text-decoration:none}
a:hover{color:var(--ws-primary-dark)}
code{color:#4b47a8;background:#f0efff;padding:.14rem .38rem;border-radius:.42rem}
[hidden]{display:none!important}

/* Navigation */
.app-navbar{
  min-height:74px;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(224,229,240,.85);
  box-shadow:0 4px 18px rgba(31,43,72,.04);
}
.navbar-brand{font-weight:800;color:var(--ws-text);letter-spacing:-.025em}
.navbar-brand:hover{color:var(--ws-text)}
.brand-mark{
  width:38px;height:38px;border-radius:12px;display:grid;place-items:center;
  color:#fff;background:linear-gradient(135deg,#746dff,#4c44d5);
  box-shadow:0 8px 20px rgba(99,91,255,.3)
}
.app-navbar .nav-link{
  display:flex;align-items:center;gap:.5rem;padding:.65rem .85rem!important;
  color:#657087;font-weight:650;border-radius:11px;transition:.18s ease;
}
.app-navbar .nav-link:hover{color:var(--ws-text);background:#f5f6fb}
.app-navbar .nav-link.active{color:var(--ws-primary);background:var(--ws-primary-soft)}
.app-navbar .nav-link i{font-size:1.05rem}
.notification-button,.user-menu{border:0;background:#f5f7fb;color:var(--ws-text)}
.notification-button{width:42px;height:42px;border-radius:13px;display:grid;place-items:center}
.notification-button:hover,.user-menu:hover{background:#eceffc;color:var(--ws-primary)}
.notification-count{
  position:absolute;top:-4px;right:-5px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;
  display:grid;place-items:center;background:var(--ws-danger);color:#fff;font-size:.68rem;font-weight:800;
  border:2px solid #fff
}
.user-menu{display:flex;align-items:center;gap:.65rem;padding:.35rem .7rem .35rem .38rem;border-radius:14px}
.user-menu::after{margin-left:.35rem}
.user-menu strong,.user-menu small{display:block;line-height:1.18}
.user-menu strong{font-size:.88rem}
.user-menu small{font-size:.72rem;color:var(--ws-muted);margin-top:.18rem;max-width:160px;overflow:hidden;text-overflow:ellipsis}
.avatar{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,#eae8ff,#dff3ff);color:#4b47a8;font-weight:800;font-size:.8rem}
.dropdown-menu{border-radius:14px;padding:.5rem;min-width:220px}
.dropdown-item{border-radius:9px;padding:.65rem .75rem}

/* Main layout */
.app-main{min-height:calc(100vh - 148px)}
.app-container{max-width:1540px;margin-inline:auto}
.app-footer{color:var(--ws-muted);font-size:.84rem;border-top:1px solid rgba(224,229,240,.8);background:rgba(255,255,255,.45)}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:1.8rem}
.page-heading h1{margin:.2rem 0 .4rem;font-size:clamp(1.75rem,3vw,2.45rem);font-weight:800;letter-spacing:-.045em}
.page-heading p{margin:0;color:var(--ws-muted);max-width:740px}
.eyebrow{display:inline-block;color:var(--ws-primary);font-size:.72rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.month-picker{display:flex;gap:.55rem;align-items:center}
.month-picker .form-control{min-width:165px}

/* Cards */
.card.app-card,.app-card{
  border:1px solid rgba(224,229,240,.9);border-radius:var(--ws-radius);background:rgba(255,255,255,.96);
  box-shadow:var(--ws-shadow-sm);overflow:hidden
}
.app-card-header{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.25rem 1.4rem;
  background:transparent;border-bottom:1px solid var(--ws-border)
}
.app-card-header h2,.app-card-header h3{font-weight:750;letter-spacing:-.025em}
.card-header{background:transparent}
.form-sticky{top:100px}

/* Dashboard */
.hero-shift,.live-shift{
  position:relative;overflow:hidden;border:0!important;border-radius:24px;
  background:linear-gradient(120deg,#201d56 0%,#4f47d8 53%,#726cff 100%);
  color:#fff;box-shadow:0 22px 54px rgba(67,59,185,.25)
}
.hero-shift{display:flex;justify-content:space-between;align-items:center;gap:2rem;padding:1.65rem 1.9rem}
.hero-shift::after,.live-shift::after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;right:-70px;top:-105px;background:rgba(255,255,255,.09)}
.hero-shift h2{font-size:1.25rem;margin:.6rem 0 .25rem;font-weight:700}
.hero-shift p{margin:0;color:rgba(255,255,255,.72)}
.hero-shift code,.live-shift code{background:rgba(255,255,255,.13);color:#fff}
.status-live,.status-idle{display:inline-flex;align-items:center;gap:.45rem;padding:.42rem .72rem;border-radius:999px;font-size:.75rem;font-weight:800}
.status-live{color:#fff;background:rgba(32,209,130,.2);border:1px solid rgba(92,238,166,.35)}
.status-live>span{width:8px;height:8px;border-radius:50%;background:#52eda7;box-shadow:0 0 0 0 rgba(82,237,167,.55);animation:pulseLive 1.8s infinite}
.status-idle{color:#667085;background:#eef1f6}
.live-counter{font-size:clamp(2rem,5vw,3.7rem);font-weight:850;letter-spacing:-.045em;font-variant-numeric:tabular-nums;white-space:nowrap;position:relative;z-index:1}
.metric-pro{
  height:100%;min-height:145px;padding:1.25rem 1.35rem;border:1px solid var(--ws-border);border-radius:18px;
  background:rgba(255,255,255,.96);box-shadow:var(--ws-shadow-sm);display:flex;flex-direction:column
}
.metric-pro>span{color:var(--ws-muted);font-size:.78rem;font-weight:700}
.metric-pro strong{font-size:clamp(1.45rem,3vw,2.05rem);letter-spacing:-.035em;margin:.55rem 0 .2rem}
.metric-pro small{margin-top:auto;color:var(--ws-muted)}
.alert-tile{display:flex;gap:.85rem;padding:1.3rem;border-right:1px solid var(--ws-border);border-top:1px solid var(--ws-border)}
.alert-tile i{color:var(--ws-warning);font-size:1.25rem}
.alert-tile strong{display:block;font-size:.88rem}
.alert-tile p{color:var(--ws-muted);font-size:.78rem;margin:.25rem 0 0}
.priority-dot{display:inline-block;width:10px;height:10px;border-radius:50%}
.priority-low{background:#2eb67d}.priority-medium{background:#f5a524}.priority-high{background:#e5484d}
.empty-state,.empty-panel{padding:2.2rem;text-align:center;color:var(--ws-muted)}

/* Tables */
.table-responsive{scrollbar-width:thin}
.app-table{margin:0;vertical-align:middle}
.app-table thead th{padding:.95rem 1.15rem;color:#778096;background:#fafbfe;border-bottom:1px solid var(--ws-border);font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.app-table tbody td{padding:1rem 1.15rem;border-color:#edf0f5}
.app-table tbody tr{transition:.15s ease}
.app-table tbody tr:hover{background:#fafbff}
.hours-pill,.badge-soft{display:inline-flex;align-items:center;border-radius:999px;padding:.35rem .62rem;background:var(--ws-primary-soft);color:#5048c7;font-weight:750;font-size:.75rem}

/* Forms */
.form-label{font-size:.79rem;font-weight:720;color:#4e586e;margin-bottom:.42rem}
.form-control,.form-select,.input-group-text{
  min-height:44px;border:1px solid #dfe4ee;border-radius:12px;background:#fff;color:var(--ws-text);
  box-shadow:none!important
}
.form-control:focus,.form-select:focus{border-color:#8c86ff;box-shadow:0 0 0 .22rem rgba(99,91,255,.12)!important}
textarea.form-control{min-height:auto}
.input-group>.form-control,.input-group>.form-select{border-radius:12px 0 0 12px}
.input-group>.input-group-text{border-radius:0 12px 12px 0;background:#f7f8fb;color:var(--ws-muted)}
.form-text{color:#8a93a7;font-size:.74rem}
.form-check-input:checked{background-color:var(--ws-primary);border-color:var(--ws-primary)}
.btn{border-radius:11px;font-weight:700;padding:.62rem .9rem;transition:.16s ease}
.btn-primary{background:linear-gradient(135deg,#6c64ff,#5149db);border:0;box-shadow:0 8px 18px rgba(99,91,255,.2)}
.btn-primary:hover{background:linear-gradient(135deg,#5f57ee,#463fc7);transform:translateY(-1px)}
.btn-light{background:#f2f4f8;border-color:#edf0f5;color:#444d62}
.btn-light:hover{background:#e9ecf3;border-color:#e2e6ef}
.btn-dark{background:#20263a;border-color:#20263a}
.alert{border-radius:14px}

/* Attendance */
.live-shift .card-body{position:relative;z-index:1}
.summary-card{height:100%;padding:1.15rem;border:1px solid var(--ws-border);border-radius:16px;background:#fff}
.summary-card span{display:block;color:var(--ws-muted);font-size:.76rem;font-weight:700}
.summary-card strong{display:block;margin-top:.35rem;font-size:1.35rem;font-variant-numeric:tabular-nums}

/* Devices */
.device-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#e9e7ff,#dbf2ff);color:#4f48bf;font-size:1.2rem;flex:0 0 auto}
.device-meta{display:flex;align-items:center;gap:.8rem}
.device-meta strong{display:block}
.device-meta small{display:block;color:var(--ws-muted);margin-top:.15rem}
.secret-box{padding:1rem;border-radius:14px;background:#1c2235;color:#eef1ff;word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.live-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 1rem;background:rgba(255,255,255,.82);border:1px solid var(--ws-border);border-radius:14px}
.live-indicator{display:flex;align-items:center;gap:.5rem;font-weight:750;color:var(--ws-success)}
.live-indicator i,.pulse-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#2bc46d;box-shadow:0 0 0 0 rgba(43,196,109,.45);animation:pulseLive 1.8s infinite}

/* Employees */
.employee-cell{display:flex;align-items:center;gap:.85rem;min-width:220px}
.employee-cell small{display:block;color:#778096;margin-top:.15rem}
.employee-avatar{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#e9e7ff,#d9f4ff);color:#4b47a8;font-weight:800;flex:0 0 auto}
.rfid-access{display:flex;flex-direction:column;gap:.2rem;min-width:150px}
.rfid-access code{font-size:.75rem;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rfid-access small{color:#778096}
.employee-search{max-width:310px}
.profile-facts{display:grid;gap:0;margin:0 0 1.5rem}
.profile-facts>div{display:flex;justify-content:space-between;gap:1rem;padding:.85rem 0;border-bottom:1px solid #edf0f5}
.profile-facts dt{font-weight:600;color:#778096}
.profile-facts dd{margin:0;text-align:right;font-weight:700}
.live-duration{font-variant-numeric:tabular-nums}

/* Notifications */
.notification-list{display:grid;gap:.85rem}
.notification-item{display:flex;align-items:flex-start;gap:1rem;padding:1.1rem 1.2rem;border:1px solid var(--ws-border);border-radius:16px;background:#fff;box-shadow:var(--ws-shadow-sm)}
.notification-item.is-read{opacity:.67;box-shadow:none}
.notification-item p{margin:.28rem 0;color:var(--ws-muted)}
.notification-item time{color:#9098aa;font-size:.72rem;white-space:nowrap}
.notification-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;flex:0 0 auto;font-size:1.1rem}

/* Utilities */
.progress{height:8px;border-radius:999px;background:#edf0f5}
.progress-bar{background:linear-gradient(90deg,#655dff,#7c75ff)}
.modal-content{border:0;border-radius:20px;box-shadow:0 30px 90px rgba(20,28,50,.22)}
.toast{border:0;border-radius:14px;box-shadow:var(--ws-shadow)}

@keyframes pulseLive{70%{box-shadow:0 0 0 8px rgba(43,196,109,0)}100%{box-shadow:0 0 0 0 rgba(43,196,109,0)}}

@media(max-width:1199.98px){
  .app-navbar .navbar-collapse{padding:.7rem 0 1rem}
  .app-navbar .navbar-nav{margin-inline:0!important}
  .app-navbar .nav-link{padding:.7rem .8rem!important}
  .form-sticky{position:static!important}
}
@media(max-width:991.98px){
  .employee-search{max-width:none;width:100%}
  .app-card-header{flex-wrap:wrap}
  .hero-shift{align-items:flex-start;flex-direction:column}
  .live-counter{font-size:2.5rem}
}
@media(max-width:767.98px){
  .app-main{padding-top:1.5rem!important}
  .page-heading{align-items:flex-start;flex-direction:column;gap:1rem;margin-bottom:1.35rem}
  .month-picker{width:100%}.month-picker .form-control{flex:1}
  .app-card-header{padding:1rem}
  .app-table thead th,.app-table tbody td{padding:.8rem .85rem}
  .hero-shift{padding:1.3rem;border-radius:18px}
  .metric-pro{min-height:125px}
  .notification-item{padding:1rem;gap:.75rem}
  .notification-item time{display:none}
  .profile-facts>div{align-items:flex-start;flex-direction:column;gap:.2rem}
  .profile-facts dd{text-align:left}
}
@media(max-width:575.98px){
  .app-container{padding-inline:1rem!important}
  .navbar>.container-fluid{padding-inline:1rem!important}
  .page-heading h1{font-size:1.8rem}
  .live-toolbar{align-items:flex-start;flex-direction:column}
  .employee-cell{min-width:190px}
}


/* WorkSuite brand logo */
.app-brand{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  min-width:0;
  margin-right:1rem;
  padding:.25rem 0;
}
.app-brand-logo{
  display:block;
  width:auto;
  height:42px;
  max-width:230px;
  object-fit:contain;
  object-position:left center;
}
@media (max-width:1399.98px){
  .app-brand-logo{height:38px;max-width:205px}
}
@media (max-width:1199.98px){
  .app-brand{margin-right:auto}
  .app-brand-logo{height:38px;max-width:210px}
}
@media (max-width:575.98px){
  .app-navbar{min-height:66px}
  .app-brand-logo{height:34px;max-width:176px}
}

/* WorkSuite 1.1: grafik, urlopy, RBAC i organizacja */
.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.permission-group{border:1px solid #e9edf4;border-radius:18px;padding:1rem;background:#fbfcfe}
.permission-group h3{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:#6b7280;margin:0 0 .75rem}
.permission-item{display:flex;align-items:flex-start;gap:.75rem;padding:.65rem;border-radius:12px;cursor:pointer}
.permission-item:hover{background:#fff}
.permission-item span{display:block;min-width:0}
.permission-item strong,.permission-item small{display:block}
.permission-item small{color:#6b7280;font-size:.78rem;line-height:1.35;margin-top:.15rem}
.schedule-card{overflow:hidden}
.schedule-week-head,.schedule-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.schedule-week-head{padding:0 .25rem;margin-bottom:.35rem;color:#6b7280;font-size:.75rem;font-weight:800;text-align:center;text-transform:uppercase;letter-spacing:.06em}
.schedule-grid{border:1px solid #e8ecf3;border-radius:18px;overflow:hidden;background:#e8ecf3;gap:1px}
.schedule-day{min-height:150px;background:#fff;padding:.65rem;overflow:hidden}
.schedule-day.is-outside{background:#f7f8fb;color:#a1a7b3}
.schedule-day.is-today{box-shadow:inset 0 0 0 2px #6558d3}
.schedule-day>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}
.schedule-day>header span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-weight:800}
.schedule-day.is-today>header span{background:#6558d3;color:#fff}
.schedule-day>header small{font-size:.68rem;color:#6558d3;font-weight:800}
.schedule-shift,.schedule-leave{position:relative;border-radius:10px;padding:.5rem .55rem;margin:.35rem 0;font-size:.76rem;line-height:1.2}
.schedule-shift{background:#eef1ff;border-left:3px solid #6558d3;color:#302a75}
.schedule-shift.is-draft{background:#fff7df;border-left-color:#e4a11b;color:#7b5610}
.schedule-shift strong,.schedule-shift small,.schedule-leave span,.schedule-leave small{display:block}
.schedule-shift small,.schedule-leave small{margin-top:.2rem;opacity:.76}
.schedule-shift form{position:absolute;right:.2rem;top:.15rem}
.schedule-shift button{border:0;background:transparent;color:inherit;padding:.1rem .25rem;font-size:1rem}
.schedule-leave{display:flex;gap:.4rem;align-items:flex-start;background:#e9f8ef;border-left:3px solid #2da66a;color:#17653f}
.schedule-leave.is-pending{background:#fff7df;border-left-color:#e4a11b;color:#7b5610}
.summary-card small,.summary-card a{display:block;margin-top:.35rem}
.summary-card a{text-decoration:none;font-weight:700}
.app-table .form-control-sm{min-width:120px}
@media(max-width:1199.98px){.schedule-day{min-height:125px}.permission-grid{grid-template-columns:1fr}}
@media(max-width:767.98px){.schedule-card .card-body{overflow-x:auto}.schedule-week-head,.schedule-grid{min-width:850px}.schedule-day{min-height:130px}}

/* WorkSuite 1.2: wyszukiwarka i zbiorcze grafiki */
.employee-picker{position:relative}
.employee-current-card{display:flex;align-items:center;gap:.9rem;margin-top:.55rem}
.employee-current-card .avatar{width:48px;height:48px;font-size:.9rem}
.employee-current-card strong,.employee-current-card small{display:block}
.employee-current-card small{color:var(--ws-muted);margin-top:.2rem}
.employee-picker-results{position:absolute;z-index:30;left:0;right:0;top:calc(100% + .35rem);max-height:360px;overflow:auto;border:1px solid var(--ws-border);border-radius:16px;background:#fff;box-shadow:0 20px 55px rgba(23,31,54,.16)}
.employee-picker-results:empty{display:none}
.employee-picker-results.is-team{position:relative;top:auto;margin-top:.5rem;max-height:330px;box-shadow:none}
.employee-picker-option{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:.75rem .85rem;border:0;border-bottom:1px solid #edf0f5;background:#fff;text-align:left}
.employee-picker-option:last-child{border-bottom:0}
.employee-picker-option:hover,.employee-picker-option:focus{background:#f6f7ff;outline:0}
.employee-picker-option .avatar{width:38px;height:38px;font-size:.72rem}
.employee-picker-option strong,.employee-picker-option small{display:block}
.employee-picker-option small{margin-top:.15rem;color:var(--ws-muted);font-size:.76rem;line-height:1.35}
.employee-picker-option .badge{font-size:.66rem;white-space:nowrap}
.employee-picker-state{padding:1rem;text-align:center;color:var(--ws-muted);font-size:.84rem}
.generator-section{border:1px solid #e8ecf3;border-radius:18px;background:#fbfcfe;padding:1.2rem}
.generator-section>h3{font-weight:800;margin-bottom:1rem}
.generation-rules{display:grid;gap:.55rem;color:var(--ws-muted);font-size:.86rem}
.generation-rules strong{color:var(--ws-text);margin-bottom:.2rem}
.generation-rules span{display:flex;align-items:center;gap:.5rem}
.generation-rules i{color:#2da66a}
.team-selected-list{display:grid;gap:.5rem;max-height:270px;overflow:auto}
.team-selected-person{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.7rem .8rem;border:1px solid #e8ecf3;border-radius:13px;background:#fff}
.team-selected-person strong,.team-selected-person small{display:block}
.team-selected-person small{color:var(--ws-muted);font-size:.74rem;margin-top:.15rem}
.team-selected-person button{border:0;background:transparent;color:#8a93a6;padding:.3rem}
.team-selected-person button:hover{color:#dc3545}
.working-hours-profile{height:100%;padding:1rem;border:1px solid #e8ecf3;border-radius:16px;background:#fbfcfe}
.working-hours-profile strong,.working-hours-profile small{display:block}
.working-hours-profile small{margin-top:.2rem;color:var(--ws-muted)}
.working-hours-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.35rem;margin-top:1rem}
.working-hours-days span{display:flex;flex-direction:column;align-items:center;gap:.15rem;padding:.45rem .2rem;border-radius:9px;background:#eef1ff;color:#302a75;font-size:.67rem;white-space:nowrap}
.working-hours-days span.is-off{background:#f0f2f6;color:#9299a8}
.working-hours-days b{font-size:.7rem;text-transform:uppercase}
@media(max-width:991.98px){.employee-picker-results{position:relative;top:auto;margin-top:.5rem}.employee-picker-option{grid-template-columns:auto minmax(0,1fr)}.employee-picker-option .badge{grid-column:2}.working-hours-days{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:575.98px){.generator-section{padding:1rem}.working-hours-days{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-picker-option{padding:.7rem}.employee-picker-option .badge{white-space:normal}}

/* WorkSuite 1.2.1: odświeżony wygląd generatora grafiku zespołu */
.schedule-employee-toolbar{overflow:visible!important}
.schedule-employee-toolbar .card-body{overflow:visible}
.schedule-employee-label{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.schedule-employee-hint{color:var(--ws-muted);font-size:.72rem;font-weight:650}
.schedule-employee-search .form-label{margin-bottom:.5rem}
.schedule-employee-search .input-group-text{border-radius:12px 0 0 12px;border-right:0}
.schedule-employee-search .form-control{border-radius:0 12px 12px 0}

.team-generator-card{overflow:visible!important}
.team-generator-header{padding:1.4rem 1.5rem;background:linear-gradient(135deg,rgba(99,91,255,.065),rgba(39,132,255,.025))}
.team-generator-title{display:flex;align-items:center;gap:1rem;min-width:0}
.team-generator-title>div{min-width:0}
.team-generator-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;flex:0 0 auto;background:linear-gradient(135deg,#6860ff,#4f47d7);color:#fff;font-size:1.22rem;box-shadow:0 10px 24px rgba(99,91,255,.23)}
.team-hours-link{display:flex;align-items:center;gap:.75rem;min-height:44px;padding:.48rem .55rem .48rem .85rem;border:1px solid #dfe3ef;border-radius:13px;background:#fff;color:#50596d;font-size:.78rem;font-weight:750;white-space:nowrap;box-shadow:0 5px 16px rgba(31,43,72,.05);transition:.16s ease}
.team-hours-link span{display:flex;align-items:center;gap:.45rem}
.team-hours-link strong{min-width:30px;height:30px;padding:0 .45rem;border-radius:9px;display:grid;place-items:center;background:var(--ws-primary-soft);color:var(--ws-primary);font-size:.78rem}
.team-hours-link:hover{transform:translateY(-1px);border-color:#cfcaff;color:var(--ws-primary);box-shadow:0 9px 22px rgba(31,43,72,.08)}
.team-generator-body{padding:1.5rem}
.team-generator-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.8fr);gap:1.25rem;align-items:start}
.team-generator-main,.team-generator-sidebar{min-width:0}
.team-generator-sidebar{position:sticky;top:96px}
.generator-section.team-step-card{padding:1.35rem;border:1px solid var(--ws-border);border-radius:18px;background:#fff;box-shadow:0 7px 22px rgba(31,43,72,.035)}
.team-step-heading{display:flex;align-items:flex-start;gap:.85rem;margin-bottom:1.15rem}
.team-step-number{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex:0 0 auto;background:var(--ws-primary);color:#fff;font-size:.78rem;font-weight:850;box-shadow:0 7px 16px rgba(99,91,255,.22)}
.team-step-heading h3{margin:.05rem 0 .2rem;font-size:1rem;font-weight:820;letter-spacing:-.02em}
.team-step-heading p{margin:0;color:var(--ws-muted);font-size:.78rem;line-height:1.45}
.team-mode-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-bottom:1rem}
.team-mode-option{display:block;cursor:pointer;margin:0}
.team-mode-option input{position:absolute;opacity:0;pointer-events:none}
.team-mode-content{min-height:82px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:.85rem;border:1px solid #dfe4ee;border-radius:15px;background:#fff;transition:.16s ease}
.team-mode-content:hover{border-color:#c9c5ff;background:#fbfaff}
.team-mode-option input:focus-visible+.team-mode-content{outline:3px solid rgba(99,91,255,.18);outline-offset:2px}
.team-mode-option input:checked+.team-mode-content{border-color:#817aff;background:linear-gradient(135deg,#f4f2ff,#f8fbff);box-shadow:0 0 0 3px rgba(99,91,255,.08)}
.team-mode-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#f0f2f7;color:#70798c;font-size:1rem;transition:.16s ease}
.team-mode-option input:checked+.team-mode-content .team-mode-icon{background:var(--ws-primary-soft);color:var(--ws-primary)}
.team-mode-content strong,.team-mode-content small{display:block}
.team-mode-content strong{font-size:.84rem;color:var(--ws-text)}
.team-mode-content small{margin-top:.2rem;color:var(--ws-muted);font-size:.69rem;line-height:1.35}
.team-mode-check{color:var(--ws-primary);font-size:1rem;opacity:0;transform:scale(.75);transition:.16s ease}
.team-mode-option input:checked+.team-mode-content .team-mode-check{opacity:1;transform:scale(1)}
.team-filter-panel,.team-search-panel,.team-selected-panel{padding:1rem;border:1px solid #e6eaf2;border-radius:15px;background:#fafbfe}
.team-search-panel,.team-selected-panel{margin-top:.85rem}
.team-subsection-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.85rem}
.team-subsection-heading>div{display:flex;align-items:center;gap:.5rem;color:#4e586e;font-size:.78rem;font-weight:790}
.team-subsection-heading>div i{color:var(--ws-primary)}
.team-subsection-heading>small{color:#9299aa;font-size:.68rem;text-align:right}
.team-scope-note{display:flex;align-items:flex-start;gap:.5rem;margin:.75rem 0 0;padding:.65rem .75rem;border-radius:11px;background:#f0efff;color:#5a54ad;font-size:.71rem;line-height:1.4}
.team-scope-note i{margin-top:.05rem;flex:0 0 auto}
.team-search-controls{display:flex;align-items:stretch;gap:.65rem}
.team-search-input{flex:1;min-width:0}
.team-search-input .input-group-text{border-radius:12px 0 0 12px;border-right:0}
.team-search-input .form-control{border-radius:0 12px 12px 0}
.team-add-all{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;white-space:nowrap;padding-inline:1rem}
.team-generator-card .employee-picker-results.is-team{margin-top:.7rem;max-height:290px;border-radius:13px;background:#fff;border-color:#e3e7ef;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
.team-generator-card .employee-picker-option{min-height:62px;padding:.7rem .75rem;transition:.14s ease}
.team-generator-card .employee-picker-option:hover,.team-generator-card .employee-picker-option:focus{background:#f5f4ff}
.team-generator-card .employee-picker-option .avatar{width:36px;height:36px;border-radius:11px}
.team-generator-card .employee-picker-option strong{font-size:.8rem}
.team-generator-card .employee-picker-option small{font-size:.69rem}
.team-generator-card .employee-picker-option .badge{padding:.38rem .5rem;border-radius:999px;font-size:.61rem;font-weight:780}
.team-selected-count{display:inline-flex;align-items:baseline;gap:.3rem;padding:.3rem .55rem;border-radius:999px;background:var(--ws-primary-soft);color:#5650bd;font-size:.68rem;font-weight:730}
.team-selected-count strong{font-size:.78rem}
.team-selected-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:250px;padding-right:.2rem}
.team-selected-person{min-width:0;padding:.65rem .7rem;border-color:#e3e7ef;box-shadow:0 3px 10px rgba(31,43,72,.025)}
.team-selected-person>span{min-width:0}
.team-selected-person strong,.team-selected-person small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-selected-person strong{font-size:.78rem}
.team-selected-person button{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:0 0 auto}
.team-selected-person button:hover{background:#fff0f1}
.team-config-card{background:linear-gradient(180deg,#fff,#fbfcff)!important}
.team-date-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.team-config-card .form-label{display:flex;align-items:center;gap:.38rem}
.team-config-card .form-label i{color:#858da0}
.team-config-card .generation-rules{margin-top:1.15rem;padding:1rem;border-radius:14px;background:#f7f8fc;gap:.6rem;font-size:.76rem}
.team-config-card .generation-rules strong{font-size:.78rem}
.team-config-card .generation-rules span{align-items:flex-start;line-height:1.35}
.team-config-card .generation-rules i{width:18px;height:18px;border-radius:6px;display:grid;place-items:center;flex:0 0 auto;background:#e3f7ec;color:#168654;font-size:.72rem}
.team-generation-note{display:flex;align-items:center;gap:.55rem;margin-top:.85rem;padding:.7rem .8rem;border:1px solid #dfe9e4;border-radius:12px;background:#f4fbf7;color:#39745a;font-size:.71rem;font-weight:680}
.team-generation-note i{font-size:1rem;color:var(--ws-success)}
.team-generate-button{display:flex;align-items:center;justify-content:center;gap:.55rem;margin-top:1rem;min-height:50px}

@media(max-width:1199.98px){
  .team-generator-layout{grid-template-columns:minmax(0,1.45fr) minmax(300px,.85fr)}
  .team-generator-sidebar{top:90px}
  .team-selected-list{grid-template-columns:1fr}
}
@media(max-width:991.98px){
  .team-generator-layout{grid-template-columns:1fr}
  .team-generator-sidebar{position:static}
  .team-config-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:1.25rem}
  .team-config-card .team-step-heading,.team-config-card .team-generate-button{grid-column:1/-1}
  .team-config-card .generation-rules{margin-top:0}
  .team-generation-note{align-self:end}
  .schedule-employee-toolbar .employee-picker-results{position:absolute}
}
@media(max-width:767.98px){
  .team-generator-header{align-items:flex-start}
  .team-generator-title{align-items:flex-start}
  .team-generator-icon{width:44px;height:44px;border-radius:14px}
  .team-hours-link{width:100%;justify-content:space-between}
  .team-generator-body{padding:1rem}
  .team-mode-selector{grid-template-columns:1fr}
  .team-search-controls{align-items:stretch;flex-direction:column}
  .team-add-all{width:100%}
  .team-selected-list{grid-template-columns:1fr}
  .team-config-card{display:block}
  .team-config-card .generation-rules{margin-top:1.15rem}
  .schedule-employee-toolbar .employee-picker-results{position:relative}
}
@media(max-width:575.98px){
  .team-generator-header{padding:1rem}
  .team-generator-title{gap:.75rem}
  .team-generator-title .eyebrow{font-size:.64rem}
  .team-generator-title h2{font-size:1.08rem}
  .team-generator-title .text-secondary{display:block;line-height:1.4}
  .generator-section.team-step-card{padding:1rem}
  .team-filter-panel,.team-search-panel,.team-selected-panel{padding:.8rem}
  .team-subsection-heading{align-items:flex-start;flex-direction:column;gap:.25rem}
  .team-subsection-heading>small{text-align:left}
  .team-date-grid{grid-template-columns:1fr}
  .team-mode-content{min-height:72px;padding:.75rem}
  .team-mode-content small{font-size:.67rem}
  .schedule-employee-label{align-items:flex-start;flex-direction:column;gap:.2rem}
}
.team-generator-header{border-radius:var(--ws-radius) var(--ws-radius) 0 0}
.schedule-employee-search .employee-picker-option{grid-template-columns:auto minmax(0,1fr)}

/* WorkSuite 1.2.3: dopracowane wyrównanie stron pracownika */
.employee-page-heading{
  align-items:stretch;
  margin-bottom:1.5rem;
}
.employee-page-heading>div:first-child{
  display:flex;
  min-width:0;
  max-width:760px;
  flex:1 1 auto;
  flex-direction:column;
  justify-content:center;
}
.employee-heading-stats{
  display:grid;
  width:min(100%,450px);
  min-width:400px;
  align-self:stretch;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.5rem;
  padding:.5rem;
  border:1px solid rgba(224,229,240,.95);
  border-radius:18px;
  background:rgba(255,255,255,.82);
  box-shadow:0 10px 28px rgba(31,43,72,.055);
  backdrop-filter:blur(10px);
}
.employee-heading-stats>div{
  display:flex;
  min-width:0;
  min-height:72px;
  flex-direction:column;
  justify-content:center;
  padding:.7rem .82rem;
  border:1px solid rgba(234,237,244,.88);
  border-radius:13px;
  background:#fff;
}
.employee-heading-stats span,.employee-heading-stats strong{display:block}
.employee-heading-stats span{
  color:var(--ws-muted);
  font-size:.62rem;
  font-weight:780;
  letter-spacing:.035em;
  line-height:1.25;
  text-transform:uppercase;
  white-space:normal;
}
.employee-heading-stats strong{
  margin-top:.32rem;
  font-size:1.15rem;
  line-height:1;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.025em;
}
.employee-workspace{
  --bs-gutter-x:1.5rem;
  --bs-gutter-y:1.5rem;
  position:relative;
}
.employee-workspace>[class*="col-"]{display:flex}
.employee-workspace .app-card{width:100%}
.employee-form-card{
  overflow:hidden;
  align-self:flex-start;
}
.employee-card-intro{
  display:flex;
  min-height:132px;
  align-items:flex-start;
  gap:1rem;
  padding:1.4rem 1.4rem 1.15rem;
  background:linear-gradient(135deg,rgba(99,91,255,.07),rgba(39,132,255,.025));
}
.employee-card-intro>div:last-child{min-width:0}
.employee-card-intro h2{
  margin:.18rem 0 .35rem;
  font-size:1.16rem;
  font-weight:820;
  letter-spacing:-.03em;
  line-height:1.25;
}
.employee-card-intro p{
  margin:0;
  color:var(--ws-muted);
  font-size:.78rem;
  line-height:1.5;
}
.employee-card-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:14px;
  background:linear-gradient(135deg,#6c64ff,#4f47d7);
  color:#fff;
  font-size:1.06rem;
  box-shadow:0 10px 24px rgba(99,91,255,.23);
}
.employee-form-body{padding:0 1.4rem 1.4rem!important}
.employee-form-card form>.btn,.employee-form-card form>a.btn{min-height:44px}
.employee-form-note{
  display:flex;
  align-items:flex-start;
  gap:.55rem;
  margin-top:1rem;
  padding:.78rem .82rem;
  border:1px solid #e5e8f2;
  border-radius:12px;
  background:#f8f9fc;
  color:#687187;
  font-size:.72rem;
  line-height:1.45;
}
.employee-form-note i{margin-top:.05rem;color:var(--ws-primary);flex:0 0 auto}
.employee-content-card{
  min-height:100%;
  display:flex;
  flex-direction:column;
}
.employee-section-header{
  min-height:108px;
  align-items:center;
  padding:1.2rem 1.35rem;
  background:linear-gradient(135deg,rgba(99,91,255,.035),rgba(39,132,255,.012));
}
.employee-section-header>div{min-width:0}
.employee-section-header h2{line-height:1.2}
.employee-section-header p{
  color:var(--ws-muted);
  font-size:.78rem;
  line-height:1.45;
}
.employee-count-badge{
  display:inline-flex;
  min-height:34px;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  padding:.45rem .72rem;
  border:1px solid #e1e4ef;
  border-radius:999px;
  background:#fff;
  color:#5a6479;
  font-size:.72rem;
  font-weight:760;
  line-height:1;
  white-space:nowrap;
  box-shadow:0 4px 12px rgba(31,43,72,.04);
}
.employee-count-badge i{color:var(--ws-primary)}
.employee-empty-state{
  display:flex;
  min-height:280px;
  flex:1 1 auto;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:2.4rem;
  text-align:center;
  color:var(--ws-muted);
}
.employee-empty-state>div{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  margin-bottom:1rem;
  border-radius:18px;
  background:var(--ws-primary-soft);
  color:var(--ws-primary);
  font-size:1.45rem;
}
.employee-empty-state h3{margin:0;color:var(--ws-text);font-size:1rem;font-weight:800}
.employee-empty-state p{max-width:390px;margin:.45rem 0 0;font-size:.8rem;line-height:1.5}

/* Zadania pracownika */
.task-board-body{padding:1.2rem!important}
.task-board{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  align-items:stretch;
}
.task-lane{
  min-width:0;
  min-height:100%;
  display:flex;
  flex-direction:column;
  padding:.82rem;
  border:1px solid #e7eaf2;
  border-radius:16px;
  background:#f8f9fc;
}
.task-lane>header{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.08rem .08rem .75rem;
}
.task-lane>header>div{display:flex;align-items:center;gap:.5rem;min-width:0}
.task-lane>header i{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:9px;
  background:#fff;
  color:#7b8498;
  font-size:.8rem;
  box-shadow:0 3px 10px rgba(31,43,72,.04);
}
.task-lane>header strong{overflow:hidden;font-size:.76rem;text-overflow:ellipsis;white-space:nowrap}
.task-lane>header>span{
  min-width:26px;
  height:26px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:999px;
  background:#fff;
  color:#6a7387;
  font-size:.68rem;
  font-weight:820;
}
.task-lane-in_progress>header i{background:#fff5da;color:#b87700}
.task-lane-done>header i{background:#e9f8ef;color:#168654}
.task-lane-list{
  min-height:0;
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  gap:.72rem;
}
.task-item{
  position:relative;
  min-height:182px;
  display:flex;
  flex-direction:column;
  padding:.9rem;
  border:1px solid #e3e7ef;
  border-radius:14px;
  background:#fff;
  box-shadow:0 5px 14px rgba(31,43,72,.035);
  transition:.16s ease;
}
.task-item:hover{transform:translateY(-1px);border-color:#d5d9e7;box-shadow:0 9px 22px rgba(31,43,72,.065)}
.task-item.is-overdue{border-color:#f0c9cc;box-shadow:inset 3px 0 0 #e5484d,0 5px 14px rgba(31,43,72,.035)}
.task-item-topline{
  min-height:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:.4rem .55rem;
  margin-bottom:.68rem;
}
.task-priority,.task-due-date{display:inline-flex;align-items:center;gap:.3rem;font-size:.63rem;font-weight:760;line-height:1.2;white-space:nowrap}
.task-priority{padding:.3rem .44rem;border-radius:999px;background:#f1f3f7;color:#697286}
.task-priority i{font-size:.56rem}
.task-priority-low{background:#eaf8f0;color:#19764e}
.task-priority-medium{background:#fff5da;color:#946200}
.task-priority-high{background:#fff0f1;color:#b83b42}
.task-due-date{color:#8a92a3}
.task-due-date.is-overdue{color:#c23840}
.task-item h3{
  margin:0;
  font-size:.84rem;
  font-weight:800;
  line-height:1.38;
  overflow-wrap:anywhere;
}
.task-item p{
  display:-webkit-box;
  min-height:3.2em;
  overflow:hidden;
  margin:.45rem 0 0;
  color:#70798d;
  font-size:.72rem;
  line-height:1.5;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
}
.task-item p.is-empty{color:#a0a6b4;font-style:italic}
.task-item footer{
  min-height:35px;
  display:flex;
  align-items:center;
  gap:.4rem;
  margin-top:auto;
  padding-top:.72rem;
  border-top:1px solid #edf0f5;
}
.task-item footer form{display:inline-flex!important;margin:0}
.task-item footer .btn{
  min-height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.36rem .55rem;
  font-size:.68rem;
  line-height:1;
}
.task-lane-empty{
  min-height:110px;
  display:grid;
  flex:1 1 auto;
  place-items:center;
  padding:1.2rem .7rem;
  border:1px dashed #dfe3eb;
  border-radius:12px;
  background:rgba(255,255,255,.5);
  color:#949bab;
  font-size:.7rem;
  text-align:center;
}

/* Godziny pracownika */
.employee-table-wrap{width:100%;border-radius:0 0 var(--ws-radius) var(--ws-radius)}
.employee-data-table{width:100%}
.employee-data-table tbody td{vertical-align:middle}
.time-entry-table{table-layout:fixed}
.time-entry-table .col-date{width:118px}
.time-entry-table .col-entry{width:25%}
.time-entry-table .col-hours{width:104px;text-align:center}
.time-entry-table .col-amount{width:126px;text-align:right}
.time-entry-table .col-actions{width:92px}
.time-entry-table .col-note{width:auto}
.employee-date{font-weight:770;color:#3f485c;white-space:nowrap}
.employee-entry-title{
  display:block;
  max-width:100%;
  overflow:hidden;
  color:#343d51;
  font-size:.79rem;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.employee-source-pill{
  display:inline-flex;
  max-width:100%;
  align-items:center;
  gap:.3rem;
  margin-top:.36rem;
  padding:.25rem .44rem;
  border-radius:999px;
  font-size:.62rem;
  font-weight:750;
  line-height:1.15;
  white-space:nowrap;
}
.employee-source-pill.is-manual{background:#eef1ff;color:#514ac2}
.employee-source-pill.is-rfid{background:#e9f8ef;color:#187047}
.employee-note{
  max-width:none;
  overflow:hidden;
  color:#697286;
  font-size:.75rem;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.employee-row-actions{text-align:right}
.employee-actions-group{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:.22rem;
}
.employee-actions-group form{display:inline-flex!important;margin:0}
.employee-row-actions .btn,.employee-lock{
  width:34px;
  height:34px;
  display:inline-grid;
  place-items:center;
  padding:0;
  border-radius:10px;
  vertical-align:middle;
}
.employee-lock{background:#f1f3f7;color:#8a92a2}

/* Raport pracownika */
.report-page-heading{margin-bottom:1.25rem}
.report-period-card{
  width:260px;
  min-width:260px;
  display:flex;
  align-self:stretch;
  flex-direction:column;
  justify-content:center;
  padding:1rem 1.15rem;
  border:1px solid rgba(224,229,240,.95);
  border-radius:18px;
  background:rgba(255,255,255,.85);
  box-shadow:0 10px 28px rgba(31,43,72,.055);
}
.report-period-card span,.report-period-card strong,.report-period-card small{display:block}
.report-period-card span{color:var(--ws-muted);font-size:.66rem;font-weight:760;letter-spacing:.04em;text-transform:uppercase}
.report-period-card strong{margin-top:.27rem;font-size:1.04rem;line-height:1.25;text-transform:capitalize}
.report-period-card small{margin-top:.22rem;overflow:hidden;color:#7a8396;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}
.report-filter-card .card-body{padding:1.05rem 1.15rem}
.report-filter-form{
  display:grid;
  align-items:end;
  gap:.75rem;
}
.report-filter-form.has-employee-filter{grid-template-columns:minmax(260px,1fr) minmax(180px,220px) auto auto}
.report-filter-form.is-personal-report{grid-template-columns:minmax(250px,1fr) minmax(180px,220px) auto auto}
.report-filter-intro{
  min-width:0;
  display:flex;
  align-self:stretch;
  flex-direction:column;
  justify-content:center;
  padding:.15rem .35rem;
}
.report-filter-intro strong{
  margin-top:.22rem;
  color:#414a5f;
  font-size:.8rem;
  font-weight:760;
  line-height:1.35;
}
.report-filter-field{min-width:0}
.report-filter-employee{min-width:0}
.report-filter-submit,.report-export-button{
  min-width:142px;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}
.report-summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  grid-auto-rows:1fr;
  gap:1rem;
}
.report-summary-card{
  min-width:0;
  min-height:132px;
  height:100%;
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  align-items:center;
  gap:1rem;
  padding:1.15rem;
  border:1px solid var(--ws-border);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--ws-shadow-sm);
}
.report-summary-card>div:last-child{min-width:0}
.report-summary-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:14px;
  background:linear-gradient(135deg,#eeecff,#e7f4ff);
  color:var(--ws-primary);
  font-size:1.1rem;
}
.report-summary-card span,.report-summary-card strong,.report-summary-card small{display:block}
.report-summary-card span{color:var(--ws-muted);font-size:.69rem;font-weight:760;line-height:1.3}
.report-summary-card strong{margin-top:.3rem;font-size:1.32rem;line-height:1.1;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.report-summary-card small{margin-top:.25rem;color:#9299a8;font-size:.67rem;line-height:1.35}
.report-goal-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:1rem 1.1rem;
}
.report-goal-top{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.report-goal-top>div:first-child{min-width:0}
.report-goal-ring{
  --goal:0%;
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  position:relative;
  border-radius:50%;
  background:conic-gradient(var(--ws-primary) var(--goal),#eceef5 0);
}
.report-goal-ring::after{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff}
.report-goal-ring span{position:relative;z-index:1;color:#525a6f;font-size:.62rem;font-weight:820}
.report-goal-progress,.report-task-progress{height:6px;overflow:hidden;border-radius:999px;background:#eceef4}
.report-goal-progress{margin-top:.78rem}
.report-goal-progress>span,.report-task-progress>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#635bff,#38a6ff)}
.report-goal-card>small{margin-top:.52rem}
.report-chart-row>[class*="col-"],.report-detail-row>[class*="col-"]{display:flex}
.report-chart-row .app-card,.report-detail-row .app-card{width:100%}
.report-chart-card{
  min-height:410px;
  display:flex;
  flex-direction:column;
}
.report-chart-card .app-card-header{min-height:108px}
.report-chart-card .card-body{
  min-height:0;
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  padding:1.15rem 1.25rem 1.25rem;
}
.report-chart-canvas{
  min-height:245px;
  height:245px;
  position:relative;
  flex:1 1 auto;
}
.report-chart-canvas-wide{min-height:275px;height:275px}
.report-source-legend{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.55rem;
  margin-top:.85rem;
}
.report-source-legend span{
  min-width:0;
  min-height:38px;
  display:flex;
  align-items:center;
  gap:.35rem;
  padding:.55rem .65rem;
  border-radius:10px;
  background:#f7f8fc;
  color:#70798c;
  font-size:.68rem;
}
.report-source-legend i{color:var(--ws-primary)}
.report-source-legend strong{margin-left:auto;color:#3f485b;font-size:.7rem;white-space:nowrap}
.report-daily-table{table-layout:fixed}
.report-daily-table .col-date{width:34%}
.report-daily-table .col-hours{width:24%;text-align:center}
.report-daily-table .col-count{width:20%;text-align:center}
.report-daily-table .col-amount{text-align:right}
.report-entry-count{
  min-width:30px;
  height:30px;
  display:inline-grid;
  place-items:center;
  border-radius:9px;
  background:#f1f3f7;
  color:#626b7e;
  font-size:.72rem;
  font-weight:780;
}
.report-task-list{display:grid;gap:0;padding:.45rem 1.2rem 1.15rem}
.report-task-item{
  min-height:70px;
  display:flex;
  align-items:center;
  gap:.8rem;
  padding:.9rem .2rem;
  border-bottom:1px solid #edf0f5;
}
.report-task-item:last-child{border-bottom:0}
.report-task-rank{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:10px;
  background:#f0efff;
  color:#5750c3;
  font-size:.7rem;
  font-weight:820;
}
.report-task-content{min-width:0;flex:1}
.report-task-content>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.52rem}
.report-task-content strong{min-width:0;overflow:hidden;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}
.report-task-content span{flex:0 0 auto;color:#737c90;font-size:.68rem;font-weight:720;white-space:nowrap}

@media(max-width:1399.98px){
  .task-board{grid-template-columns:repeat(3,minmax(0,1fr))}
  .report-filter-form.has-employee-filter{grid-template-columns:minmax(240px,1fr) 190px auto auto}
}
@media(max-width:1199.98px){
  .employee-page-heading>div:first-child{max-width:none}
  .employee-heading-stats{min-width:min(100%,430px)}
  .employee-form-card{position:static!important}
  .employee-card-intro{min-height:0}
  .task-board{grid-template-columns:repeat(3,minmax(0,1fr))}
  .report-filter-form.has-employee-filter{grid-template-columns:minmax(260px,1fr) minmax(180px,220px) auto auto}
}
@media(max-width:991.98px){
  .employee-page-heading{align-items:stretch;flex-direction:column;gap:1rem}
  .employee-heading-stats{width:100%;min-width:0}
  .task-board{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-period-card{width:100%;min-width:0}
  .report-filter-form.has-employee-filter{grid-template-columns:minmax(0,1fr) minmax(180px,220px)}
  .report-filter-form.is-personal-report{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}
  .report-filter-form.is-personal-report .report-filter-intro{grid-column:1/-1}
  .report-filter-form.has-employee-filter .report-filter-submit,
  .report-filter-form.has-employee-filter .report-export-button{width:100%}
  .report-filter-form.is-personal-report .report-filter-field{grid-column:1/-1}
  .report-filter-submit,.report-export-button{min-width:0}
  .report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767.98px){
  .employee-heading-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .employee-heading-stats>div{min-height:66px;padding:.65rem}
  .employee-heading-stats span{white-space:normal}
  .employee-card-intro{padding:1.15rem 1rem 1rem}
  .employee-form-body{padding:0 1rem 1rem!important}
  .employee-section-header{min-height:0;align-items:flex-start;padding:1.05rem 1rem}
  .task-board-body{padding:1rem!important}
  .task-board{grid-template-columns:1fr}
  .task-item{min-height:0}
  .task-item p{min-height:0}
  .report-filter-card .card-body{padding:1rem}
  .report-filter-form.has-employee-filter,
  .report-filter-form.is-personal-report{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-filter-form .report-filter-intro,
  .report-filter-form .report-filter-field{grid-column:1/-1}
  .report-filter-submit,.report-export-button{width:100%}
  .report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-summary-card{min-height:120px}
  .report-chart-card{min-height:360px}
  .report-chart-canvas-wide{min-height:235px;height:235px}
  .employee-data-table thead{display:none}
  .employee-data-table,.employee-data-table tbody,.employee-data-table tr,.employee-data-table td{display:block;width:100%}
  .employee-data-table tbody{padding:.65rem}
  .employee-data-table tbody tr{
    margin-bottom:.65rem;
    padding:.2rem .8rem;
    border:1px solid #e5e8ef;
    border-radius:14px;
    background:#fff;
    box-shadow:0 4px 14px rgba(31,43,72,.035);
  }
  .employee-data-table tbody tr:last-child{margin-bottom:0}
  .employee-data-table tbody td,
  .time-entry-table .col-date,.time-entry-table .col-entry,.time-entry-table .col-hours,
  .time-entry-table .col-amount,.time-entry-table .col-note,.time-entry-table .col-actions,
  .report-daily-table .col-date,.report-daily-table .col-hours,.report-daily-table .col-count,.report-daily-table .col-amount{
    width:100%;
    text-align:right;
  }
  .employee-data-table tbody td{
    display:grid;
    grid-template-columns:minmax(105px,.72fr) minmax(0,1.28fr);
    align-items:center;
    gap:.75rem;
    padding:.65rem 0!important;
    border-bottom:1px solid #edf0f5!important;
    text-align:right!important;
  }
  .employee-data-table tbody td:last-child{border-bottom:0!important}
  .employee-data-table tbody td::before{
    content:attr(data-label);
    color:#8a92a3;
    font-size:.64rem;
    font-weight:780;
    letter-spacing:.045em;
    text-align:left;
    text-transform:uppercase;
  }
  .employee-data-table tbody td>*{justify-self:end}
  .employee-data-table .employee-entry-title{max-width:100%;text-align:right}
  .employee-data-table .employee-source-pill{margin-left:auto}
  .employee-data-table .employee-note{max-width:none;text-align:right}
  .employee-row-actions{display:grid!important}
  .employee-actions-group{justify-self:end}
}
@media(max-width:575.98px){
  .employee-heading-stats{grid-template-columns:1fr}
  .employee-heading-stats>div{
    min-height:52px;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
  }
  .employee-heading-stats strong{margin-top:0}
  .employee-card-icon{width:40px;height:40px;border-radius:12px}
  .employee-card-intro h2{font-size:1.05rem}
  .employee-section-header{flex-direction:column}
  .employee-count-badge{align-self:flex-start}
  .task-item-topline{align-items:flex-start;flex-direction:column}
  .report-filter-form.has-employee-filter,
  .report-filter-form.is-personal-report{grid-template-columns:1fr}
  .report-filter-form .report-filter-intro,
  .report-filter-form .report-filter-field,
  .report-filter-submit,.report-export-button{grid-column:1}
  .report-summary-grid{grid-template-columns:1fr}
  .report-summary-card{min-height:108px}
  .report-source-legend{grid-template-columns:1fr}
  .report-task-content>div:first-child{align-items:flex-start;flex-direction:column;gap:.2rem}
  .employee-data-table tbody td{grid-template-columns:92px minmax(0,1fr)}
}


/* WorkSuite 1.2.4: korekta nagłówka i formularza strony Godziny */
.time-page-heading{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(400px,450px);
  align-items:center;
  gap:1.5rem;
}
.time-page-heading>div:first-child{
  width:100%;
  max-width:720px;
}
.time-page-heading h1{
  line-height:1.08;
}
.time-page-heading p{
  width:100%;
  max-width:680px;
  line-height:1.55;
  overflow-wrap:anywhere;
  text-wrap:pretty;
}
.time-entry-form-card .employee-card-intro{
  min-height:0;
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  align-items:start;
  gap:1rem;
  padding:1.25rem 1.35rem;
  border-bottom:1px solid var(--ws-border);
  background:linear-gradient(135deg,#f7f6ff 0%,#fbfcff 100%);
}
.time-entry-form-card .employee-card-intro>div:last-child{
  width:100%;
}
.time-entry-form-card .employee-card-icon{
  width:46px;
  height:46px;
  margin-top:.05rem;
}
.time-entry-form-card .employee-card-intro .eyebrow{
  margin-top:.02rem;
}
.time-entry-form-card .employee-card-intro h2{
  margin:.2rem 0 .32rem;
  font-size:1.12rem;
  line-height:1.22;
}
.time-entry-form-card .employee-card-intro p{
  max-width:38ch;
  font-size:.76rem;
  line-height:1.52;
}
.time-entry-form-card .employee-form-body{
  padding:1.2rem 1.35rem 1.35rem!important;
}
.time-entry-form-card .employee-form-body .mb-3:first-child{
  margin-top:0!important;
}

@media(max-width:1399.98px){
  .time-page-heading{
    grid-template-columns:minmax(0,1fr);
    align-items:stretch;
    gap:1rem;
  }
  .time-page-heading>div:first-child,
  .time-page-heading p{
    max-width:100%;
  }
  .time-page-heading .employee-heading-stats{
    width:100%;
    min-width:0;
  }
}
@media(max-width:767.98px){
  .time-page-heading{
    gap:.9rem;
    margin-bottom:1.15rem;
  }
  .time-page-heading p{
    font-size:.9rem;
  }
  .time-entry-form-card .employee-card-intro{
    grid-template-columns:42px minmax(0,1fr);
    gap:.85rem;
    padding:1.05rem 1rem;
  }
  .time-entry-form-card .employee-card-icon{
    width:42px;
    height:42px;
    border-radius:12px;
  }
  .time-entry-form-card .employee-card-intro h2{
    font-size:1.05rem;
  }
  .time-entry-form-card .employee-card-intro p{
    max-width:none;
    font-size:.73rem;
  }
  .time-entry-form-card .employee-form-body{
    padding:1rem!important;
  }
}
@media(max-width:399.98px){
  .time-page-heading h1{
    font-size:1.72rem;
  }
  .time-entry-form-card .employee-card-intro{
    grid-template-columns:38px minmax(0,1fr);
    gap:.72rem;
    padding:.95rem .9rem;
  }
  .time-entry-form-card .employee-card-icon{
    width:38px;
    height:38px;
  }
  .time-entry-form-card .employee-form-body{
    padding:.9rem!important;
  }
}

/* WorkSuite 1.2.5: poziomy układ stron Zadania i Godziny */
.employee-workspace-stacked{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1.5rem;
}
.employee-workspace-stacked .employee-primary-section{
  width:100%;
  min-height:0;
}
.employee-workspace-stacked .employee-content-card{min-height:0}
.employee-form-card-horizontal{
  display:grid;
  grid-template-columns:minmax(260px,320px) minmax(0,1fr);
  align-items:stretch;
  overflow:hidden;
  scroll-margin-top:6rem;
}
.employee-form-card-horizontal .employee-card-intro,
.time-entry-form-card.employee-form-card-horizontal .employee-card-intro{
  min-height:100%;
  display:flex;
  grid-template-columns:none;
  align-items:center;
  gap:1rem;
  padding:1.4rem;
  border-right:1px solid var(--ws-border);
  border-bottom:0;
  background:linear-gradient(135deg,#f7f6ff 0%,#fbfcff 100%);
}
.employee-form-card-horizontal .employee-card-intro p,
.time-entry-form-card.employee-form-card-horizontal .employee-card-intro p{
  max-width:32ch;
}
.employee-form-card-horizontal .employee-form-body,
.time-entry-form-card.employee-form-card-horizontal .employee-form-body{
  min-width:0;
  display:flex;
  align-items:center;
  padding:1.35rem!important;
}
.employee-horizontal-form{
  width:100%;
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  align-items:end;
  gap:1rem;
}
.employee-horizontal-form .employee-form-field{min-width:0}
.employee-horizontal-form .form-label{
  min-height:1.2em;
  margin-bottom:.42rem;
}
.employee-horizontal-form textarea.form-control{
  min-height:72px;
  resize:vertical;
}
.employee-form-actions{
  min-width:0;
  display:flex;
  align-items:stretch;
  gap:.55rem;
}
.employee-form-actions .btn{
  min-width:0;
  min-height:44px;
  display:inline-flex;
  flex:1 1 auto;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}
.task-form-title{grid-column:span 4}
.task-form-description{grid-column:span 8}
.task-form-status,.task-form-priority,.task-form-due-date,.task-form-actions{grid-column:span 3}
.time-form-task{grid-column:span 3}
.time-form-date,.time-form-hours{grid-column:span 2}
.time-form-note{grid-column:span 3}
.time-form-actions{grid-column:span 2}
.time-form-helper{
  grid-column:1/-1;
  min-height:0;
  margin:0;
  padding:.68rem .78rem;
}
.employee-workspace-stacked .task-board-body{padding:1.25rem!important}
.employee-workspace-stacked .employee-table-wrap{min-height:0}

@media(max-width:1199.98px){
  .employee-form-card-horizontal{
    grid-template-columns:minmax(0,1fr);
  }
  .employee-form-card-horizontal .employee-card-intro,
  .time-entry-form-card.employee-form-card-horizontal .employee-card-intro{
    min-height:0;
    align-items:flex-start;
    padding:1.15rem 1.25rem;
    border-right:0;
    border-bottom:1px solid var(--ws-border);
  }
  .employee-form-card-horizontal .employee-card-intro p,
  .time-entry-form-card.employee-form-card-horizontal .employee-card-intro p{max-width:72ch}
  .employee-form-card-horizontal .employee-form-body,
  .time-entry-form-card.employee-form-card-horizontal .employee-form-body{padding:1.2rem 1.25rem 1.3rem!important}
  .time-form-task{grid-column:span 4}
  .time-form-date{grid-column:span 3}
  .time-form-hours{grid-column:span 2}
  .time-form-actions{grid-column:span 3}
  .time-form-note{grid-column:span 8}
  .time-form-helper{grid-column:span 4;align-self:stretch}
}
@media(max-width:991.98px){
  .task-form-title,.task-form-description{grid-column:span 6}
  .task-form-status,.task-form-priority,.task-form-due-date{grid-column:span 4}
  .task-form-actions{grid-column:1/-1;justify-content:flex-end}
  .task-form-actions .btn{max-width:240px;flex:0 1 240px}
  .time-form-task{grid-column:span 6}
  .time-form-date,.time-form-hours{grid-column:span 3}
  .time-form-note{grid-column:span 8}
  .time-form-actions{grid-column:span 4}
  .time-form-helper{grid-column:1/-1}
}
@media(max-width:767.98px){
  .employee-workspace-stacked{gap:1rem}
  .employee-form-card-horizontal .employee-card-intro,
  .time-entry-form-card.employee-form-card-horizontal .employee-card-intro{
    padding:1.05rem 1rem;
  }
  .employee-form-card-horizontal .employee-form-body,
  .time-entry-form-card.employee-form-card-horizontal .employee-form-body{padding:1rem!important}
  .employee-horizontal-form{gap:.85rem}
  .task-form-title{grid-column:span 6}
  .task-form-description{grid-column:span 6}
  .task-form-status,.task-form-priority{grid-column:span 6}
  .task-form-due-date{grid-column:span 6}
  .task-form-actions{grid-column:span 6;justify-content:stretch}
  .task-form-actions .btn{max-width:none;flex:1 1 auto}
  .time-form-task,.time-form-note{grid-column:1/-1}
  .time-form-date,.time-form-hours{grid-column:span 6}
  .time-form-actions,.time-form-helper{grid-column:1/-1}
  .employee-workspace-stacked .task-board-body{padding:1rem!important}
}
@media(max-width:575.98px){
  .employee-horizontal-form .employee-form-field,
  .task-form-title,.task-form-description,.task-form-status,.task-form-priority,.task-form-due-date,
  .task-form-actions,.time-form-task,.time-form-date,.time-form-hours,.time-form-note,.time-form-actions,.time-form-helper{
    grid-column:1/-1;
  }
  .employee-form-actions{flex-direction:column}
  .employee-form-actions .btn{width:100%;max-width:none}
  .employee-horizontal-form textarea.form-control{min-height:84px}
}

/* WorkSuite 1.2.9 - Centrum dokumentów */
.documents-page-heading {
    align-items: center;
}
.documents-heading-note {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: min(100%, 340px);
    padding: 15px 18px;
    border: 1px solid rgba(99, 91, 255, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 14px 34px rgba(35, 43, 75, .06);
}
.documents-heading-note > i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    color: #635bff;
    background: #efedff;
    font-size: 1.2rem;
}
.documents-heading-note strong,
.documents-heading-note span {
    display: block;
}
.documents-heading-note strong {
    color: #182036;
    font-size: .92rem;
}
.documents-heading-note span {
    margin-top: 3px;
    color: #7b859f;
    font-size: .78rem;
    line-height: 1.45;
}
.documents-filter-card .card-body {
    padding: 24px;
}
.documents-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}
.documents-filter-employee {
    grid-column: span 2;
}
.documents-filter-field {
    min-width: 0;
}
.documents-filter-field .form-label {
    margin-bottom: 7px;
}
.documents-section {
    padding-top: 5px;
}
.documents-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}
.documents-section-heading h2 {
    margin: 2px 0 0;
    color: #182036;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.025em;
}
.documents-section-heading > span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #625bf3;
    background: #efedff;
    font-size: .75rem;
    font-weight: 800;
}
.documents-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.document-type-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    column-gap: 15px;
    row-gap: 18px;
    min-height: 230px;
    padding: 22px;
    border: 1px solid rgba(73, 83, 120, .11);
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 42px rgba(35, 43, 75, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.document-type-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 91, 255, .22);
    box-shadow: 0 21px 48px rgba(35, 43, 75, .11);
}
.document-type-card.is-management {
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(248,249,255,.96));
}
.document-type-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: #635bff;
    background: linear-gradient(145deg, #f0eeff, #e8e5ff);
    font-size: 1.3rem;
    box-shadow: 0 12px 24px rgba(99, 91, 255, .12);
}
.document-type-content {
    min-width: 0;
}
.document-type-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.document-type-top h3 {
    margin: 2px 0 0;
    color: #192137;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}
.document-type-top span {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    color: #6f7891;
    background: #f2f4f9;
    font-size: .64rem;
    font-weight: 800;
    white-space: nowrap;
}
.document-type-content p {
    margin: 10px 0 0;
    color: #77819a;
    font-size: .82rem;
    line-height: 1.58;
}
.document-generate-button {
    grid-column: 1 / -1;
    justify-self: stretch;
    min-height: 43px;
    border-radius: 13px;
    font-weight: 750;
}
.documents-recent-card {
    overflow: hidden;
}
.documents-request-list {
    display: grid;
}
.documents-request-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 22px;
    border-top: 1px solid #edf0f6;
}
.documents-request-row:first-child {
    border-top: 0;
}
.documents-request-row strong,
.documents-request-row span {
    display: block;
}
.documents-request-row strong {
    color: #1c2439;
    font-size: .9rem;
}
.documents-request-row span {
    margin-top: 4px;
    color: #7c869f;
    font-size: .76rem;
}

@media (max-width: 1199.98px) {
    .documents-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .documents-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    .documents-page-heading {
        align-items: stretch;
    }
    .documents-heading-note {
        width: 100%;
        min-width: 0;
    }
    .documents-filter-card .card-body {
        padding: 18px;
    }
    .documents-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .documents-filter-employee {
        grid-column: 1 / -1;
    }
    .documents-card-grid {
        grid-template-columns: 1fr;
    }
    .document-type-card {
        min-height: 0;
    }
}
@media (max-width: 479.98px) {
    .documents-filter-grid {
        grid-template-columns: 1fr;
    }
    .documents-filter-employee {
        grid-column: auto;
    }
    .document-type-card {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 18px;
        border-radius: 18px;
    }
    .document-type-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }
    .document-type-top {
        display: block;
    }
    .document-type-top span {
        display: inline-flex;
        margin-top: 8px;
    }
    .documents-request-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .documents-request-row .btn {
        width: 100%;
    }
}

/* Employee selector popover must not be clipped by application cards */
.report-filter-card,.documents-filter-card{position:relative;overflow:visible!important}
.report-filter-card{z-index:25}
.documents-filter-card{z-index:20}
.report-filter-card .card-body,.documents-filter-card .card-body{overflow:visible}

/* Shared employee selector: reports and PDF documents */
.smart-employee-picker{position:relative;min-width:0}
.smart-employee-picker-selected{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 10px;border:1px solid #dfe4ef;border-radius:14px;background:#fff;box-shadow:0 1px 0 rgba(28,36,57,.02)}
.smart-employee-picker.is-open .smart-employee-picker-selected{border-color:rgba(99,91,255,.55);box-shadow:0 0 0 3px rgba(99,91,255,.10)}
.smart-employee-picker-avatar{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border-radius:11px;color:#5c55ee;background:linear-gradient(145deg,#f0eeff,#e8e5ff);font-size:.75rem;font-weight:850;letter-spacing:.02em}
.smart-employee-picker-copy{display:block;min-width:0;flex:1}
.smart-employee-picker-copy>span,.smart-employee-picker-copy>strong,.smart-employee-picker-copy>small{display:block}
.smart-employee-picker-copy>span{margin-bottom:1px;color:#939cb2;font-size:.62rem;font-weight:800;letter-spacing:.055em;text-transform:uppercase}
.smart-employee-picker-copy>strong{overflow:hidden;color:#1a2237;font-size:.88rem;font-weight:800;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.smart-employee-picker-copy>small{overflow:hidden;margin-top:2px;color:#78829a;font-size:.69rem;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.smart-employee-picker-change{flex:0 0 auto;min-height:34px;padding:6px 10px;border:1px solid #e2e6ef;border-radius:10px;color:#4e5870;background:#f8f9fc;font-size:.72rem;font-weight:800;white-space:nowrap}
.smart-employee-picker-change:hover,.smart-employee-picker-change:focus{color:#5149ed;border-color:#cbc7ff;background:#f2f0ff}
.smart-employee-picker-panel{position:fixed;z-index:1080;top:0;left:0;width:min(620px,calc(100vw - 24px));max-height:min(460px,calc(100vh - 24px));overflow:hidden;border:1px solid rgba(69,78,112,.14);border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(26,34,58,.20)}
.smart-employee-picker-panel[hidden]{display:none!important}
.smart-employee-picker-panel:not([hidden]){display:block}
.smart-employee-picker-panel-head{display:flex;align-items:center;gap:10px;padding:13px;border-bottom:1px solid #edf0f6;background:#fbfcff}
.smart-employee-picker-panel-head .input-group{flex:1;min-width:0}
.smart-employee-picker-panel-head .input-group-text{border-radius:12px 0 0 12px;border-right:0;background:#fff}
.smart-employee-picker-panel-head .form-control{min-height:42px;border-radius:0 12px 12px 0}
.smart-employee-picker-close{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;border:1px solid #e2e6ef;border-radius:11px;color:#707990;background:#fff}
.smart-employee-picker-close:hover{color:#222b42;background:#f5f6fa}
.smart-employee-picker-status{min-height:39px;padding:11px 14px;border-bottom:1px solid #f0f2f7;color:#8790a7;background:#fff;font-size:.72rem;line-height:1.4}
.smart-employee-picker-status.is-loading{color:#635bff}
.smart-employee-picker-status.is-error{color:#c53c55}
.smart-employee-picker-status.is-empty{color:#707990}
.smart-employee-picker-results{max-height:360px;overflow:auto;overscroll-behavior:contain;background:#fff}
.smart-employee-result{display:grid;grid-template-columns:40px minmax(0,1fr) 28px;align-items:center;gap:11px;width:100%;min-height:66px;padding:10px 13px;border:0;border-bottom:1px solid #f0f2f6;background:#fff;text-align:left;transition:background .12s ease}
.smart-employee-result:last-child{border-bottom:0}
.smart-employee-result:hover,.smart-employee-result:focus,.smart-employee-result.is-active{outline:0;background:#f6f5ff}
.smart-employee-result-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:#5b54ed;background:#eceaff;font-size:.72rem;font-weight:850}
.smart-employee-result-copy{display:block;min-width:0}
.smart-employee-result-title{display:flex;align-items:center;gap:8px;min-width:0}
.smart-employee-result-title strong{overflow:hidden;color:#1d2539;font-size:.82rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.smart-employee-result-title .badge{font-size:.58rem}
.smart-employee-result-copy small{display:block;overflow:hidden;margin-top:3px;color:#7c869f;font-size:.68rem;line-height:1.42;text-overflow:ellipsis;white-space:nowrap}
.smart-employee-result-action{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;color:#9aa2b5;background:#f5f6f9;font-size:.74rem}
.smart-employee-result:hover .smart-employee-result-action,.smart-employee-result.is-active .smart-employee-result-action{color:#fff;background:#635bff}
.report-filter-employee .smart-employee-picker,.documents-filter-employee .smart-employee-picker{width:100%}

@media(max-width:767.98px){
  .smart-employee-picker-panel{position:fixed!important;z-index:1080;top:auto!important;right:10px!important;bottom:10px!important;left:10px!important;width:auto!important;max-height:min(78vh,620px)!important;border-radius:20px;box-shadow:0 26px 80px rgba(18,24,43,.28)}
  .smart-employee-picker-results{max-height:calc(min(78vh,620px) - 122px)}
  .smart-employee-picker-copy>small{white-space:normal}
}
@media(max-width:479.98px){
  .smart-employee-picker-selected{align-items:flex-start;flex-wrap:wrap}
  .smart-employee-picker-copy{padding-top:2px}
  .smart-employee-picker-change{width:100%;margin-left:50px}
  .smart-employee-result{grid-template-columns:38px minmax(0,1fr);padding:10px}
  .smart-employee-result-action{display:none}
  .smart-employee-result-copy small{white-space:normal}
}

/* Refined report filter actions */
.report-filter-form.has-employee-filter{grid-template-columns:minmax(360px,1fr) minmax(180px,220px) auto}
.report-filter-form.is-personal-report{grid-template-columns:minmax(280px,1fr) minmax(180px,220px) auto}
.report-filter-actions{display:flex;align-items:end;gap:8px;min-width:0}
.report-filter-actions .report-filter-submit{min-width:154px}
.report-filter-actions .report-export-button{min-width:88px}
@media(max-width:1199.98px){
  .report-filter-form.has-employee-filter,.report-filter-form.is-personal-report{grid-template-columns:minmax(300px,1fr) minmax(180px,220px)}
  .report-filter-actions{grid-column:1/-1;justify-content:flex-end}
}
@media(max-width:767.98px){
  .report-filter-form.has-employee-filter,.report-filter-form.is-personal-report{grid-template-columns:1fr}
  .report-filter-form .report-filter-field,.report-filter-form .report-filter-intro,.report-filter-actions{grid-column:1}
  .report-filter-actions{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(72px,.7fr));width:100%}
  .report-filter-actions .report-filter-submit,.report-filter-actions .report-export-button{width:100%;min-width:0}
}
@media(max-width:479.98px){
  .report-filter-actions{grid-template-columns:1fr 1fr}
  .report-filter-actions .report-filter-submit{grid-column:1/-1}
}
@media(max-width:767.98px){
  .smart-employee-picker.is-open::before{content:"";position:fixed;z-index:1070;inset:0;background:rgba(20,27,47,.24);backdrop-filter:blur(1px)}
  .smart-employee-picker-panel{z-index:1080}
}
