
:root{
  --bg-1:#07111f;
  --bg-2:#0f2350;
  --bg-3:#1e40af;
  --sidebar:#071120;
  --sidebar-2:#0d1a31;
  --panel:rgba(9,18,36,0.76);
  --panel-2:rgba(255,255,255,0.06);
  --line:rgba(255,255,255,0.10);
  --text:#f8fbff;
  --muted:#bfd0f0;
  --primary:#4f7cff;
  --primary-2:#79a4ff;
  --success:#22c55e;
  --danger:#ef4444;
  --warning:#f59e0b;
  --shadow:0 18px 50px rgba(0,0,0,.28);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  min-height:100vh;
  font-family:Inter,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 14% 18%, rgba(79,124,255,.22), transparent 22%),
    radial-gradient(circle at 78% 12%, rgba(34,197,94,.12), transparent 18%),
    linear-gradient(135deg,var(--bg-1) 0%, var(--bg-2) 38%, var(--bg-3) 100%);
}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}

.page{
  min-height:100vh;
}

.glass{
  background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
}

.auth-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px;
}
.auth-shell{
  width:min(1240px,100%);
  display:grid;
  grid-template-columns:1.06fr .94fr;
  gap:24px;
}
.hero{
  padding:38px;
  min-height:720px;
  position:relative;
  overflow:hidden;
  border-radius:28px;
}
.hero::after{
  content:"";
  position:absolute;
  right:-40px;
  bottom:-40px;
  width:260px;
  height:260px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(34,197,94,.22), transparent 64%);
  filter:blur(12px);
  pointer-events:none;
}
.eyebrow{
  display:inline-flex;
  gap:8px;
  align-items:center;
  border-radius:999px;
  padding:8px 12px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.10);
  color:#dce8ff;
  font-size:.84rem;
  font-weight:700;
}
.hero h1{
  margin:18px 0 14px;
  font-size:clamp(2.6rem, 6vw, 4.8rem);
  line-height:.98;
  max-width:760px;
}
.hero p{
  margin:0;
  max-width:690px;
  color:#d9e5ff;
  line-height:1.75;
  font-size:1.06rem;
}
.hero-grid{
  margin-top:30px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.hero-card{
  background:linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  padding:16px;
}
.hero-card strong{
  display:block;
  margin-bottom:8px;
  font-size:1.02rem;
}
.hero-card span{
  display:block;
  color:#d4e2ff;
  line-height:1.6;
  font-size:.94rem;
}

.auth-card{
  border-radius:28px;
  padding:24px;
}
.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.tab{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.08);
  color:#dce8ff;
  border-radius:14px;
  padding:12px 16px;
  font-weight:700;
  cursor:pointer;
}
.tab.active{
  background:linear-gradient(135deg, var(--success), #4ade80);
  color:#052e16;
  border-color:rgba(255,255,255,.0);
}
.field{
  display:grid;
  gap:8px;
}
.field label{
  color:#dce8ff;
  font-size:.92rem;
  font-weight:600;
}
.input, select, textarea{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(2,8,23,.82);
  color:#fff;
  padding:14px 16px;
  outline:none;
}
.input::placeholder, textarea::placeholder{color:#8ea3cf}
.input:focus, select:focus, textarea:focus{
  border-color:rgba(121,164,255,.9);
  box-shadow:0 0 0 4px rgba(79,124,255,.18);
}
textarea{min-height:110px;resize:vertical}
.grid-2,.grid-3,.grid-4{
  display:grid;
  gap:14px;
}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.btn-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.btn{
  border:none;
  border-radius:16px;
  padding:13px 18px;
  font-weight:700;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
  box-shadow:0 12px 26px rgba(79,124,255,.24);
}
.btn.success{
  background:linear-gradient(135deg,var(--success),#4ade80);
  color:#062e15;
}
.btn.danger{
  background:linear-gradient(135deg,var(--danger),#f87171);
  color:#fff;
}
.btn.secondary{
  background:rgba(255,255,255,.10);
  color:#e8f0ff;
  border:1px solid rgba(255,255,255,.12);
}
.btn.ghost{
  background:#fff;
  color:#233356;
}
.btn-sm{
  padding:9px 12px;
  border-radius:12px;
  font-size:.9rem;
}
.msg{margin-top:12px}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:.82rem;
}
.badge.ok{background:rgba(34,197,94,.16); color:#bdf8cf}
.badge.warn{background:rgba(245,158,11,.16); color:#ffdca2}
.badge.danger{background:rgba(239,68,68,.18); color:#ffd0d0}
.badge.neutral{background:rgba(79,124,255,.16); color:#d9e5ff}

.app-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
}
.sidebar{
  background:linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  padding:20px 16px;
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  border-right:1px solid rgba(255,255,255,.06);
}
.brand{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:16px;
}
.brand-logo{
  width:46px;
  height:46px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow:0 12px 24px rgba(79,124,255,.24);
  font-weight:800;
}
.brand-title{
  font-weight:800;
  line-height:1.15;
}
.brand-title span{
  display:block;
  color:#9eb5de;
  font-size:.82rem;
  font-weight:600;
}
.user-card{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:14px;
  margin-bottom:16px;
}
.user-card-inner{
  display:flex;
  gap:12px;
  align-items:center;
}
.avatar{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:800;
  background:rgba(255,255,255,.10);
}
.user-name{
  font-weight:700;
}
.user-role{
  color:#a9bddf;
  font-size:.85rem;
}
.side-section{
  margin-top:16px;
}
.side-label{
  margin:0 6px 10px;
  color:#8ea3cf;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
}
.nav{
  display:grid;
  gap:8px;
}
.nav a,.nav button{
  width:100%;
  text-align:left;
  border:none;
  border-radius:14px;
  padding:12px 14px;
  background:transparent;
  color:#eaf2ff;
  cursor:pointer;
  font-weight:600;
}
.nav a:hover,.nav button:hover,
.worker-row:hover{
  background:rgba(255,255,255,.08);
}
.nav a.active{
  background:rgba(255,255,255,.13);
}
.worker-list{
  display:grid;
  gap:8px;
}
.worker-row{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  border:none;
  border-radius:14px;
  padding:10px 12px;
  background:rgba(255,255,255,.05);
  color:#ecf4ff;
  cursor:pointer;
}
.dot{
  width:10px;
  height:10px;
  border-radius:50%;
}
.dot.green{background:var(--success)}
.dot.red{background:var(--danger)}
.dot.gray{background:#94a3b8}
.footer-note{
  margin-top:18px;
  font-size:.82rem;
  line-height:1.65;
  color:#9db1d7;
}

.main-area{
  min-width:0;
  padding:16px;
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-radius:22px;
  padding:14px 16px;
}
.topbar-title{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.topbar h2{
  margin:0;
  font-size:1.18rem;
}
.small{
  color:var(--muted);
  font-size:.86rem;
}
.mobile-menu-toggle{
  display:none;
  width:44px;
  height:44px;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:#fff;
  color:#07111f;
  cursor:pointer;
}
.mobile-menu-toggle .bar{
  width:20px;
  height:2px;
  background:#07111f;
  border-radius:999px;
  position:relative;
}
.mobile-menu-toggle .bar::before,
.mobile-menu-toggle .bar::after{
  content:"";
  position:absolute;
  left:0;
  width:20px;
  height:2px;
  background:#07111f;
  border-radius:999px;
}
.mobile-menu-toggle .bar::before{top:-6px}
.mobile-menu-toggle .bar::after{top:6px}
.mobile-sidebar-backdrop{display:none}

.content{
  display:grid;
  gap:18px;
  padding-top:18px;
}
.panel{
  border-radius:24px;
  padding:18px;
}
.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.stat strong{
  display:block;
  font-size:1.75rem;
  margin:8px 0 2px;
}
.kpis{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
}
.section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.section-title h3{
  margin:0;
  font-size:1.08rem;
}
.list{
  display:grid;
  gap:10px;
}
.list-item,.notice,.project-card{
  border-radius:18px;
  padding:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}
.project-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(79,124,255,.16);
  color:#dce7ff;
  font-weight:700;
}
.project-summary{
  display:grid;
  gap:12px;
}
.project-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.project-card span{
  color:#4ade80;
  font-weight:800;
  font-size:1.05rem;
}
.settings-list{
  display:grid;
  gap:12px;
}
.switch-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-radius:18px;
  padding:14px 16px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}
.switch{
  position:relative;
  width:56px;
  height:32px;
}
.switch input{
  opacity:0;
  width:0;
  height:0;
  position:absolute;
}
.slider{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:#64748b;
  transition:.24s ease;
}
.slider::before{
  content:"";
  position:absolute;
  width:24px;
  height:24px;
  left:4px;
  top:4px;
  border-radius:50%;
  background:#fff;
  transition:.24s ease;
}
.switch input:checked + .slider{
  background:linear-gradient(135deg,var(--success),#4ade80);
}
.switch input:checked + .slider::before{
  transform:translateX(24px);
}

.table-wrap{
  overflow:auto;
  border-radius:18px;
}
.table{
  width:100%;
  min-width:760px;
  border-collapse:separate;
  border-spacing:0;
  background:rgba(255,255,255,.04);
  border-radius:18px;
  overflow:hidden;
}
.table th,.table td{
  padding:13px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
  vertical-align:top;
}
.table th{
  background:rgba(255,255,255,.06);
  color:#adc2ff;
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.table td{
  color:#eef4ff;
}
.icon-btn{
  width:40px;
  height:40px;
  border:none;
  border-radius:14px;
  background:#fff;
  color:#07111f;
  cursor:pointer;
}

.cal-box{
  border-radius:18px;
  padding:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.08);
}
.cal-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.cal-month{
  font-size:1.08rem;
  font-weight:800;
}
.cal-top button{
  border:none;
  border-radius:12px;
  padding:8px 12px;
  background:rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
}
.cal-total{
  margin-bottom:12px;
  color:#86efac;
  font-weight:700;
}
.cal-weekdays{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
  margin-bottom:8px;
}
.cal-weekdays span{
  text-align:center;
  color:#9fb3dc;
  font-size:.8rem;
  font-weight:700;
  text-transform:uppercase;
}
.cal-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}
.cal-day,.cal-empty{
  min-height:78px;
  border-radius:14px;
}
.cal-empty{
  opacity:.18;
  background:rgba(255,255,255,.03);
  border:1px dashed rgba(255,255,255,.05);
}
.cal-day{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  padding:8px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.cal-day.active{
  background:rgba(34,197,94,.12);
  border-color:rgba(34,197,94,.28);
}
.cal-day.today{
  outline:2px solid rgba(79,124,255,.55);
}
.cal-date{
  font-size:.9rem;
  font-weight:800;
}
.cal-hours{
  color:#86efac;
  font-size:.82rem;
  font-weight:700;
}

.modal-backdrop{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  padding:16px;
  background:rgba(2,8,23,.55);
  backdrop-filter:blur(4px);
  z-index:1002;
}
.modal{
  width:min(720px,100%);
}

@media (max-width:1100px){
  .auth-shell,.kpis{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
  .app-shell{grid-template-columns:1fr}
  .sidebar{
    position:fixed;
    top:0;
    left:0;
    z-index:1001;
    width:min(86vw,340px);
    transform:translateX(-108%);
    transition:transform .28s ease;
    box-shadow:0 22px 70px rgba(0,0,0,.42);
  }
  body.menu-open .sidebar{transform:translateX(0)}
  .mobile-sidebar-backdrop{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(2,8,23,.54);
    backdrop-filter:blur(4px);
    z-index:1000;
    opacity:0;
    pointer-events:none;
    transition:.22s ease;
  }
  body.menu-open .mobile-sidebar-backdrop{opacity:1; pointer-events:auto}
  .mobile-menu-toggle{display:inline-flex}
  .stats,.grid-2,.grid-3,.grid-4,.cal-grid,.cal-weekdays{grid-template-columns:repeat(2,1fr)}
  .main-area{padding:12px}
  .btn-row .btn{width:100%}
  .hero-grid{grid-template-columns:1fr}
  .auth-shell{grid-template-columns:1fr}
  .hero{min-height:auto}
}
@media (max-width:560px){
  .stats,.grid-2,.grid-3,.grid-4,.cal-grid,.cal-weekdays{grid-template-columns:1fr}
  .table{min-width:680px}
}


/* ===== LOGIN REDESIGN ===== */
.auth-page-compact{
  min-height:100vh;
  padding:20px;
}
.auth-shell-compact{
  width:min(980px, 100%);
  margin:0 auto;
  display:grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap:18px;
  align-items:stretch;
}
.hero-compact{
  min-height:420px;
  padding:26px 28px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.hero-compact h1{
  margin:14px 0 10px;
  font-size:clamp(2rem, 3.8vw, 3.4rem);
  line-height:1.02;
  max-width:430px;
}
.hero-compact p{
  margin:0;
  max-width:430px;
  font-size:.98rem;
  line-height:1.55;
  color:#d7e3ff;
}
.hero-compact-list{
  display:grid;
  gap:10px;
  margin-top:20px;
}
.hero-compact-item{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.08);
}
.hero-compact-item strong{
  display:block;
  margin-bottom:4px;
  font-size:.98rem;
}
.hero-compact-item span{
  color:#d1def9;
  font-size:.9rem;
  line-height:1.45;
}
.hero-compact{
  margin-top:18px;
  display:grid;
  gap:6px;
  color:#d5e0fa;
  font-size:.9rem;
  line-height:1.45;
}
.auth-card-compact{
  min-height:420px;
  padding:22px;
  display:flex;
  flex-direction:column;
}
.auth-root-wrap{
  flex:1;
  display:flex;
  align-items:center;
}
.auth-root-wrap #authRoot{
  width:100%;
}
#workerLoginForm, #adminLoginForm{
  max-width:100%;
}
#registerForm{
  align-content:start;
}
.tabs{
  margin-bottom:12px;
}
.tab{
  padding:11px 15px;
  border-radius:14px;
}
.field label{
  font-size:.9rem;
}
.input, select, textarea{
  min-height:46px;
  padding:12px 14px;
}
.btn{
  min-height:44px;
  padding:10px 16px;
}
.photo-preview-empty{
  margin-top:10px;
  min-height:56px;
  border-radius:14px;
  display:grid;
  place-items:center;
  border:1px dashed rgba(255,255,255,.16);
  color:#a7bcdf;
  font-size:.9rem;
}
.photo-preview{
  margin-top:10px;
  width:100%;
  max-width:120px;
  height:120px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
}
.photo-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* stop giant full-height feeling on desktop */
@media (min-width: 901px){
  .auth-page-compact{
    display:grid;
    place-items:center;
  }
}

/* mobile: stack + scroll */
@media (max-width: 900px){
  html, body{
    overflow-y:auto !important;
    overflow-x:hidden !important;
    height:auto !important;
  }
  .auth-page-compact{
    min-height:auto;
    padding:14px;
  }
  .auth-shell-compact{
    grid-template-columns:1fr;
    gap:14px;
  }
  .hero-compact,
  .auth-card-compact{
    min-height:auto;
    padding:18px;
  }
  .hero-compact h1{
    font-size:2rem;
    max-width:none;
  }
  .hero-compact p{
    max-width:none;
    font-size:.92rem;
  }
  .auth-root-wrap{
    display:block;
  }
  #workerLoginForm .btn-row,
  #adminLoginForm .btn-row,
  #registerForm .btn-row{
    display:grid;
    grid-template-columns:1fr;
  }
  .btn{
    width:100%;
  }
}

/* smaller phones */
@media (max-width: 560px){
  .hero-compact h1{
    font-size:1.72rem;
  }
  .eyebrow{
    font-size:.78rem;
    padding:7px 10px;
  }
  .tabs{
    gap:8px;
  }
  .tab{
    flex:1;
    min-width:0;
    padding:10px 8px;
    font-size:.95rem;
  }
}



.top-links {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.top-links a{
  text-decoration:none;
}
.notice-strip{
  margin-top:14px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:#d7e4ff;
  font-size:.9rem;
}
.auth-inline-link{
  margin-top:14px;
  color:#d8e5ff;
  font-size:.92rem;
}
.auth-inline-link a{
  color:#8fd3ff;
}
.field-help{
  color:#9bb1d6;
  font-size:.82rem;
  margin-top:4px;
}
.photo-preview-empty{
  margin-top:10px;
  min-height:56px;
  border-radius:14px;
  display:grid;
  place-items:center;
  border:1px dashed rgba(255,255,255,.16);
  color:#a7bcdf;
  font-size:.9rem;
}
.photo-preview{
  margin-top:10px;
  width:100%;
  max-width:120px;
  height:120px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
}
.photo-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.main-action{
  border:1px solid rgba(79,124,255,.20);
}
.worker-detail-link{
  display:inline-flex;
}
.table-wrap{
  overflow-x:auto;
  overflow-y:hidden;
}
.table{
  min-width:760px;
}
.no-page-scroll{
  overflow-x:hidden;
}
.kpi-inline{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.kpi-chip{
  border-radius:999px;
  padding:8px 12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  font-weight:700;
}
.chart-card{
  border-radius:22px;
  padding:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
}
.chart-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}
.chart-top h4{
  margin:0;
  font-size:1.05rem;
}
.chart-total{
  color:#86efac;
  font-weight:800;
  font-size:1.05rem;
}
.chart-wrap{
  width:100%;
  height:280px;
  overflow:hidden;
}
.hours-svg{
  width:100%;
  height:100%;
}
.chart-gridline{
  stroke:rgba(255,255,255,.10);
  stroke-width:1;
  stroke-dasharray:4 4;
}
.chart-axis{
  fill:#9db2da;
  font-size:15px;
  font-weight:600;
}
.chart-area{
  fill:rgba(34,197,94,.10);
}
.chart-line{
  stroke:#4ade80;
  stroke-width:4;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter: drop-shadow(0 0 8px rgba(74,222,128,.32));
}
.chart-point{
  fill:#7dd3fc;
  opacity:.55;
}
.chart-point.active{
  fill:#4ade80;
  stroke:#ffffff;
  stroke-width:2;
}
.range-summary-card{
  border-radius:18px;
  padding:14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}
.range-total{
  font-size:1.4rem;
  font-weight:800;
  color:#86efac;
}
.admin-code-card{
  margin-top:14px;
  padding:16px;
  border-radius:18px;
  background:rgba(79,124,255,.12);
  border:1px solid rgba(79,124,255,.18);
}
.admin-code{
  font-size:1.3rem;
  font-weight:800;
  color:#ffffff;
  letter-spacing:.04em;
}
.empty-state{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#cfe0ff;
}
@media (max-width:900px){
  .chart-wrap{height:230px}
}


/* ===== Layout hardening ===== */
html, body {
  overflow-x: hidden !important;
}
.page, .app-shell, .main-area, .content,
.stats, .grid-2, .grid-3, .grid-4, .kpis,
.panel, .list-item, .project-card, .switch-row, .topbar {
  min-width: 0;
}
.app-shell{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
.main-area{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
.content{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
.grid-2, .grid-3, .grid-4, .stats, .kpis{
  align-items:start;
}
.grid-2 > *, .grid-3 > *, .grid-4 > *, .stats > *, .kpis > *{
  min-width:0;
}
.btn-row{
  flex-wrap:wrap;
}
.input, select, textarea{
  width:100%;
  max-width:100%;
}
@media (min-width: 901px){
  .grid-2{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
  .grid-3{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
  .grid-4{
    grid-template-columns:repeat(4, minmax(0,1fr));
  }
  .stats{
    grid-template-columns:repeat(4, minmax(0,1fr));
  }
  .kpis{
    grid-template-columns:minmax(0,1.1fr) minmax(0,0.9fr);
  }
}

/* ===== Salary calculator ===== */
.salary-grid > *{
  min-width:0;
}
.salary-result{
  border-radius:20px;
  padding:16px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}
.salary-total-card{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(135deg, rgba(34,197,94,.12), rgba(79,124,255,.10));
  border:1px solid rgba(255,255,255,.08);
}
.salary-total-card strong{
  font-size:1.5rem;
  color:#86efac;
}
.salary-breakdown-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.salary-breakdown-item{
  min-width:0;
  border-radius:16px;
  padding:12px 14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.salary-breakdown-item span{
  display:block;
  color:#a8bddf;
  font-size:.84rem;
  margin-bottom:6px;
}
.salary-breakdown-item strong{
  display:block;
  line-height:1.35;
  font-size:.98rem;
}
@media (max-width:1100px){
  .salary-breakdown-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
@media (max-width:900px){
  .salary-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }
}
@media (max-width:560px){
  .salary-grid,
  .salary-breakdown-grid{
    grid-template-columns:1fr !important;
  }
  .salary-total-card{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* ===== Salary panel polish ===== */
.salary-grid .field label{
  white-space:nowrap;
}
.salary-result{
  border-radius:22px;
  padding:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.salary-total-card{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border-radius:18px;
  background:linear-gradient(135deg, rgba(34,197,94,.16), rgba(79,124,255,.12));
  border:1px solid rgba(255,255,255,.08);
}
.salary-total-card .small{
  margin:0;
}
.salary-total-card strong{
  font-size:1.65rem;
  line-height:1;
  color:#86efac;
}
.salary-breakdown-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.salary-breakdown-item{
  min-width:0;
  border-radius:16px;
  padding:13px 14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}
.salary-breakdown-item span{
  display:block;
  color:#a8bddf;
  font-size:.84rem;
  margin-bottom:6px;
}
.salary-breakdown-item strong{
  display:block;
  line-height:1.35;
  font-size:1rem;
}
@media (max-width:1100px){
  .salary-breakdown-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
@media (max-width:900px){
  .salary-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }
}
@media (max-width:560px){
  .salary-grid,
  .salary-breakdown-grid{
    grid-template-columns:1fr !important;
  }
  .salary-total-card{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* ===== Salary button bottom mobile ===== */
.salary-panel {
  display: flex;
  flex-direction: column;
}

.salary-actions {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .salary-actions {
    position: sticky;
    bottom: 0;
    padding-top: 12px;
    background: linear-gradient(to top, rgba(20,30,60,0.95), transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 5;
  }

  .salary-actions .btn {
    width: 100%;
    height: 54px;
    font-size: 1rem;
    border-radius: 14px;
  }
}

/* ===== CALENDAR MOBILE FIX ===== */
.calendar {
  width: 100%;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-day {
  min-height: 70px;
  padding: 6px;
  font-size: 0.8rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calendar-day strong {
  font-size: 0.75rem;
}

.calendar-day span {
  font-size: 0.7rem;
  color: #9fb3d9;
}

@media (max-width: 600px) {
  .calendar-day {
    min-height: 55px;
    font-size: 0.7rem;
    padding: 4px;
  }

  .calendar-day strong {
    font-size: 0.7rem;
  }

  .calendar-day span {
    font-size: 0.65rem;
  }
}

/* header calendar */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.calendar-header h3 {
  font-size: 1rem;
}

.calendar-nav button {
  padding: 6px 10px;
  border-radius: 8px;
}


/* ===== CALENDAR REAL MOBILE REDESIGN ===== */
.cal-box{
  overflow:hidden;
}

@media (max-width: 900px){
  .cal-box{
    padding:12px !important;
    border-radius:20px !important;
  }

  .cal-top{
    align-items:center;
    margin-bottom:10px !important;
    gap:10px;
  }

  .cal-top button{
    width:42px;
    height:42px;
    padding:0 !important;
    border-radius:14px !important;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1rem;
    flex:0 0 42px;
  }

  .cal-month{
    flex:1;
    text-align:center;
    font-size:1rem !important;
    line-height:1.1;
  }

  .cal-total{
    margin-bottom:10px !important;
    font-size:1rem !important;
  }

  /* CRITICAL: keep real 7-column calendar on mobile */
  .cal-weekdays{
    display:grid !important;
    grid-template-columns:repeat(7, minmax(0,1fr)) !important;
    gap:4px !important;
    margin-bottom:6px !important;
  }

  .cal-weekdays span{
    font-size:.68rem !important;
    text-align:center !important;
    opacity:.95;
    padding:2px 0;
  }

  .cal-grid{
    display:grid !important;
    grid-template-columns:repeat(7, minmax(0,1fr)) !important;
    gap:4px !important;
  }

  .cal-day,
  .cal-empty{
    min-height:58px !important;
    border-radius:12px !important;
  }

  .cal-day{
    padding:5px !important;
    justify-content:space-between !important;
  }

  .cal-date{
    font-size:.78rem !important;
    line-height:1;
  }

  .cal-hours{
    font-size:.66rem !important;
    line-height:1.1;
    word-break:break-word;
  }
}

@media (max-width: 560px){
  .cal-box{
    padding:10px !important;
    border-radius:18px !important;
  }

  .cal-top{
    gap:8px !important;
  }

  .cal-top button{
    width:38px !important;
    height:38px !important;
    flex:0 0 38px !important;
    border-radius:12px !important;
  }

  .cal-month{
    font-size:.95rem !important;
    font-weight:800 !important;
  }

  .cal-total{
    font-size:.95rem !important;
  }

  .cal-weekdays{
    display:grid !important;
    grid-template-columns:repeat(7, minmax(0,1fr)) !important;
    gap:3px !important;
    margin-bottom:5px !important;
  }

  .cal-weekdays span{
    font-size:.62rem !important;
    letter-spacing:0 !important;
    font-weight:700 !important;
  }

  .cal-grid{
    display:grid !important;
    grid-template-columns:repeat(7, minmax(0,1fr)) !important;
    gap:3px !important;
  }

  .cal-day,
  .cal-empty{
    min-height:48px !important;
    border-radius:10px !important;
  }

  .cal-day{
    padding:4px !important;
  }

  .cal-date{
    font-size:.72rem !important;
  }

  .cal-hours{
    font-size:.60rem !important;
    font-weight:700 !important;
  }
}

/* make salary action stick to bottom only on mobile */
@media (max-width:768px){
  .salary-actions{
    position:sticky;
    bottom:0;
    margin-top:14px;
    padding-top:10px;
    background:linear-gradient(to top, rgba(27,45,95,.96), rgba(27,45,95,.82), transparent);
    backdrop-filter:blur(8px);
    z-index:3;
  }

  .salary-actions .btn{
    width:100% !important;
  }
}

.export-panel .btn-row{
  flex-wrap:wrap;
}
.export-panel .btn{
  min-width:160px;
}


.project-edit-list{display:grid;gap:16px}
.project-edit-card{border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:18px;background:rgba(255,255,255,.045)}
.project-edit-card.is-inactive{opacity:.72;filter:saturate(.7)}
.check-grid{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.check-pill{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(255,255,255,.06);font-size:13px;color:var(--text)}
.check-pill input{accent-color:#4ade80}
.project-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.report-page{font-family:Inter,Arial,sans-serif;padding:28px;color:#102033;background:#fff}.report-hero{border-radius:22px;padding:24px;background:linear-gradient(135deg,#111827,#334155);color:white}.report-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.report-kpi{border:1px solid #e5e7eb;border-radius:16px;padding:14px}.report-table{width:100%;border-collapse:collapse;font-size:12px}.report-table th,.report-table td{border-bottom:1px solid #e5e7eb;padding:8px;text-align:left}.report-table th{background:#f8fafc}@media print{.report-actions{display:none}.report-page{padding:0}}

/* ===== REAL LOGO PLACEMENT FIX ===== */
.brand-lockup{display:flex;align-items:center;gap:14px}
.hero-brand-lockup{margin-bottom:18px}
.brand-lockup-logo{width:78px;height:78px;object-fit:contain;background:#fff;padding:7px;border-radius:20px;border:1px solid rgba(255,255,255,.24);box-shadow:0 18px 38px rgba(0,0,0,.24);flex:0 0 auto}
.brand-lockup-text strong{display:block;font-size:1.45rem;font-weight:900;letter-spacing:-.03em;color:#fff;line-height:1.05}
.brand-lockup-text span{display:block;margin-top:3px;color:#bcd0f4;font-size:.88rem;font-weight:700}
.hero-compact{justify-content:flex-start}
.hero-compact .eyebrow{margin-top:6px}
@media (max-width:720px){.brand-logo{width:56px;height:56px;border-radius:16px}.brand-lockup-logo{width:68px;height:68px;border-radius:18px}.brand-lockup-text strong{font-size:1.25rem}}

/* Sidebar logo override */
.brand{display:flex;gap:14px;align-items:center;margin-bottom:18px}
.brand-logo{width:64px;height:64px;border-radius:18px;display:block;object-fit:contain;background:#fff;padding:6px;box-shadow:0 12px 24px rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.22)}


/* MyWorkTime production polish */
:root{--mwt-focus:rgba(37,99,235,.28);--mwt-surface:#ffffff;--mwt-muted:#64748b;}
button,input,select,textarea,a{transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease,opacity .18s ease;}
button:hover,.btn:hover{transform:translateY(-1px)}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid var(--mwt-focus);outline-offset:2px;}
.card,.panel,.auth-card,.dashboard-card{box-shadow:0 18px 45px rgba(15,23,42,.08);border-color:rgba(148,163,184,.28)!important;}
.brand-logo img,.app-logo img{width:42px;height:42px;object-fit:contain;}
.brand-logo,.app-logo{display:flex;align-items:center;gap:12px;}
.empty-state{padding:22px;border:1px dashed rgba(148,163,184,.55);border-radius:18px;background:rgba(248,250,252,.8);color:var(--mwt-muted);}
.status-pill{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:6px 10px;font-weight:700;font-size:12px;}
.status-pill.ok{background:#ecfdf5;color:#047857}.status-pill.warn{background:#fff7ed;color:#c2410c}.status-pill.bad{background:#fef2f2;color:#b91c1c}
.table-wrap{overflow:auto;border-radius:18px;border:1px solid rgba(148,163,184,.24);}
@media (max-width: 760px){
  body{font-size:14px}.auth-shell,.layout,.dashboard-grid{grid-template-columns:1fr!important}.sidebar{position:relative;width:100%;min-height:auto}.content,.main{padding:16px!important}.card,.panel,.auth-card{border-radius:18px}.brand-logo img,.app-logo img{width:36px;height:36px}table{font-size:12px}
}
.language-switch{display:grid;gap:6px}.language-switch select{width:100%;background:rgba(8,16,35,.72);border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:12px;padding:10px}.mini-panel{margin-top:16px;padding:16px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.06)}.danger-text{color:#ffb4b4}.btn:disabled{opacity:.45;cursor:not-allowed}
