/* Zeitkommando PWA – V117.12 Vertragsseiten-Design */
:root{
  --blue:#0060FF;--blue-dark:#004ED6;--blue-soft:#edf6ff;--white:#fff;--bg:#f2f6fb;
  --ink:#10213a;--muted:#65758f;--line:#dfe7f1;--error:#b42318;--success:#067447;--warning:#9b5a00;
  --shadow:0 18px 50px rgba(26,58,94,.075);--radius:20px;
}
body{background:radial-gradient(circle at 72% -15%,rgba(11,111,244,.08),transparent 36rem),linear-gradient(180deg,#f8fbff 0%,#f2f6fb 100%);color:var(--ink)}
.topbar{background:rgba(248,251,255,.95);border-bottom:1px solid #dbe5f0;box-shadow:0 8px 28px rgba(26,58,94,.045);backdrop-filter:blur(18px)}
.topbar-row{max-width:980px}.brand{color:var(--ink);font-weight:840}.brand small{color:#8492a8;letter-spacing:.04em}.icon-btn{border-color:#dfe7f1;border-radius:12px;background:#fff;box-shadow:0 5px 14px rgba(26,58,94,.05)}
.content{max-width:980px;padding-top:28px}.page-header{padding:7px 0 22px;margin-bottom:24px;border-bottom:1px solid #dfe7f1}.eyebrow{margin-bottom:14px;color:var(--blue);font-size:12px;font-weight:850;letter-spacing:.12em}.page-title{margin:0;color:#0d1f38;font-size:clamp(32px,8vw,48px);line-height:1.03;letter-spacing:-.045em;font-weight:850}.subtitle{margin-top:12px;color:#64748d;line-height:1.58}
.card{background:rgba(255,255,255,.98);border:1px solid #dfe7f1;border-radius:20px;padding:20px;box-shadow:var(--shadow)}.card.compact{padding:15px;border-radius:16px}.card+.card{margin-top:16px}.section-title{margin:24px 0 12px;color:#16314f;font-size:21px;font-weight:820;letter-spacing:-.03em}
.btn{min-height:44px;border:1px solid #d7e7fb;border-radius:11px;padding:0 16px;background:#edf5ff;color:#0a63d8;font-weight:800;box-shadow:none}.btn.primary{border-color:var(--blue);background:var(--blue);color:#fff;box-shadow:0 8px 18px rgba(11,111,244,.18)}.btn.primary:hover{background:var(--blue-dark);box-shadow:0 10px 22px rgba(11,111,244,.23)}.btn.ghost{background:#f8fbff}.btn.danger{border-color:#f1cac6;background:#fff0ef;color:var(--error)}
.field{gap:7px}.field label{color:#263b58;font-weight:760}.field input,.field select,.field textarea{min-height:46px;border:1px solid #d6e0eb;border-radius:12px;background:#fff;color:var(--ink);box-shadow:inset 0 1px 0 rgba(16,36,63,.02)}.field input:focus,.field select:focus,.field textarea:focus{border-color:#7cb6ff;box-shadow:0 0 0 4px rgba(11,111,244,.09)}
.badge{min-height:28px;padding:0 10px;border:1px solid #d7e7fb;border-radius:999px;background:#edf5ff;color:#0a63d8;font-weight:780}.badge.success{border-color:#c9f1dd;background:#e9fbf2;color:#067447}.badge.warning{background:#fff7e8;color:#9b5a00}.badge.danger{background:#fff0ef;color:#b42318}
.list-row{padding:15px 0;border-bottom-color:#edf1f6}.avatar{background:#edf6ff;color:var(--blue);border:1px solid #d8e8fb}.empty{padding:30px 16px;border:1px dashed #cfdae8;border-radius:16px;background:#fbfdff;color:#52647d}
.bottom-nav{background:rgba(255,255,255,.96);border-top-color:#dfe7f1;box-shadow:0 -10px 30px rgba(28,58,92,.05)}.nav-btn{border-radius:12px;color:#6b7890}.nav-btn.active{background:#edf6ff;color:var(--blue)}
.segmented{background:#edf2f8}.segmented button.active{background:#fff;color:var(--blue);box-shadow:0 3px 10px rgba(28,58,92,.08)}
.login-wrap{background:radial-gradient(circle at 72% -15%,rgba(11,111,244,.11),transparent 32rem),linear-gradient(180deg,#f8fbff,#f2f6fb)}.login-card{border:1px solid #dfe7f1;border-radius:24px;padding:28px;box-shadow:0 26px 80px rgba(20,48,82,.13)}.login-title{margin:0;color:#0d1f38;letter-spacing:-.045em}.install-tip{border:1px solid #d7e7fb;border-radius:15px;background:#edf5ff;color:#164c8c}
.message-center{border-color:#dfe7f1;border-radius:22px;box-shadow:var(--shadow)}.message-sidebar{background:#f8fbff}.message-bubble{border-color:#dfe7f1;box-shadow:0 6px 20px rgba(20,50,86,.05)}.message-bubble.mine{background:#edf6ff;border-color:#d3e7ff}.message-history{background:linear-gradient(180deg,#f8fbff,#fff)}
.modal{border:1px solid #dfe7f1;border-radius:24px;box-shadow:0 28px 90px rgba(20,48,82,.23)}
.table th{background:#f3f7fc;color:#4f6380;text-transform:uppercase;letter-spacing:.035em;font-weight:800}.table td,.table th{border-bottom-color:#edf1f6;padding:11px 10px}
@media(max-width:620px){.content{padding-top:22px}.page-header{padding-bottom:18px}.card{padding:17px;border-radius:18px}.login-card{padding:22px}}

/* ======================================================================
   V117 production hotfix 3 — PWA home/header component styles
   The redesigned app.js markup uses these classes. The baseline stylesheet
   did not contain their definitions, causing browser-default SVG/button
   dimensions and the broken layout seen after login.
   ====================================================================== */
.ui-icon{display:block;width:22px;height:22px;max-width:100%;max-height:100%;flex:0 0 auto;overflow:visible}
.brand-button,.menu-trigger,.home-tile,.clock-action,.text-link,.next-shift-open{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
.brand-button,.menu-trigger,.home-tile,.clock-action,.text-link,.next-shift-open{appearance:none}

/* Header */
.topbar{padding:calc(11px + env(safe-area-inset-top,0px)) 18px 11px}
.topbar-row{min-height:48px}
.brand-button{border:0;background:transparent;display:inline-flex;align-items:center;gap:11px;padding:4px 6px 4px 0;color:#10213a;font-size:18px;font-weight:850;letter-spacing:-.02em;cursor:pointer}
.brand-mark{width:38px;height:38px;border-radius:0;display:grid;place-items:center;background:transparent;color:inherit;box-shadow:none;overflow:hidden}
.brand-mark .ui-icon{width:24px;height:24px;stroke-width:2.2}.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.menu-trigger{margin-left:auto;width:42px;height:42px;border:1px solid #d8e4f0;border-radius:13px;background:#fff;color:#496078;display:grid;place-items:center;box-shadow:0 5px 16px rgba(26,58,94,.055);cursor:pointer}
.menu-trigger:hover{color:#0060FF;border-color:#bfd7f5}
.menu-trigger .ui-icon{width:23px;height:23px}

/* Bottom navigation */
.bottom-nav{padding:8px 14px calc(8px + var(--safe-bottom));}
.bottom-nav-inner{width:min(620px,100%);gap:7px}
.nav-btn{min-height:58px;display:grid;grid-template-rows:26px auto;align-items:center;justify-items:center;gap:3px;padding:6px 7px;font-size:11px;line-height:1.05;border:0;cursor:pointer}
.nav-icon{width:26px;height:26px;display:grid;place-items:center}
.nav-icon .ui-icon{width:24px;height:24px;stroke-width:2.05}
.nav-btn.active{box-shadow:inset 0 0 0 1px rgba(11,111,244,.06)}

/* Home intro */
.home-intro{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:4px 0 22px;padding:2px 2px 0}
.home-welcome{min-width:0}
.home-greeting{font-size:clamp(28px,4vw,42px);line-height:1.03;font-weight:880;letter-spacing:-.045em;color:#0d1f38}
.home-welcome-sub{margin-top:7px;color:#6d7f96;font-size:15px}
.home-person{flex:0 0 auto;display:grid;grid-template-columns:48px auto;grid-template-rows:auto auto;column-gap:10px;align-items:center;min-width:190px;padding:9px 12px;border:1px solid #dfe7f1;border-radius:16px;background:rgba(255,255,255,.82);box-shadow:0 8px 24px rgba(26,58,94,.045)}
.home-avatar{grid-row:1 / span 2;width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,#0060FF,#004ED6);color:#fff;display:grid;place-items:center;font-size:16px;font-weight:900;letter-spacing:.04em;box-shadow:0 7px 16px rgba(11,111,244,.2)}
.home-person strong{font-size:13px;line-height:1.2;color:#17304d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-person small{font-size:11px;color:#7a8ba1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Main time clock card */
.home-clock-card{position:relative;overflow:hidden;margin-bottom:18px;padding:22px;border-radius:24px;color:#fff;background:linear-gradient(135deg,#0966e6 0%,#0060FF 55%,#2688ff 100%);box-shadow:0 20px 44px rgba(11,111,244,.22)}
.home-clock-card:before{content:"";position:absolute;width:330px;height:330px;border-radius:50%;right:-175px;top:-210px;border:1px solid rgba(255,255,255,.18);box-shadow:0 0 0 58px rgba(255,255,255,.035),0 0 0 116px rgba(255,255,255,.02);pointer-events:none}
.home-clock-card.is-running{background:linear-gradient(135deg,#087951 0%,#0a9765 58%,#20ab7a 100%);box-shadow:0 20px 44px rgba(7,132,84,.22)}
.home-clock-head{position:relative;z-index:1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center}
.status-dot{width:11px;height:11px;border-radius:999px;background:#dceaff;box-shadow:0 0 0 5px rgba(255,255,255,.11)}
.is-running .status-dot{background:#d7ffe9}
.home-clock-head>div{display:grid;gap:2px}
.home-clock-head strong{font-size:15px;font-weight:850}
.home-clock-head small{font-size:12px;color:rgba(255,255,255,.76)}
.clock-chevron{width:28px;height:28px;display:grid;place-items:center;color:rgba(255,255,255,.72)}
.clock-chevron .ui-icon{width:20px;height:20px}
.home-clock-time{position:relative;z-index:1;margin:22px 0 19px;text-align:center;font-variant-numeric:tabular-nums;font-size:clamp(46px,8vw,72px);line-height:1;font-weight:760;letter-spacing:-.055em;text-shadow:0 2px 14px rgba(0,0,0,.08)}
.current-shift-row{position:relative;z-index:1;display:flex;gap:10px;align-items:center;margin:-4px 0 17px;padding:10px 12px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.09)}
.current-shift-icon{width:30px;height:30px;border-radius:10px;background:rgba(255,255,255,.13);display:grid;place-items:center}
.current-shift-icon .ui-icon{width:18px;height:18px}
.current-shift-row>span:last-child{display:grid;gap:2px;min-width:0}
.current-shift-row small{font-size:10px;color:rgba(255,255,255,.7);text-transform:uppercase;letter-spacing:.07em}
.current-shift-row strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clock-actions{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.clock-action{min-height:53px;border:1px solid rgba(255,255,255,.17);border-radius:14px;background:rgba(255,255,255,.12);color:#fff;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:850;cursor:pointer;backdrop-filter:blur(8px)}
.clock-action:hover:not(:disabled){background:rgba(255,255,255,.19)}
.clock-action.start:not(:disabled){background:#fff;color:#0863d8;border-color:#fff}
.is-running .clock-action.stop:not(:disabled){background:#fff;color:#087951;border-color:#fff}
.clock-action:disabled{opacity:.42;cursor:not-allowed}
.clock-action .ui-icon{width:20px;height:20px}
.clock-alt-actions{position:relative;z-index:1;display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:11px}
.home-clock-card .clock-alt-actions .btn{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.1);color:#fff;box-shadow:none}
.home-clock-card .clock-alt-actions .btn:hover{background:rgba(255,255,255,.17)}
.pause-hint{position:relative;z-index:1;margin-top:11px;text-align:center;font-size:12px;color:rgba(255,255,255,.82)}

/* Home shortcut cards */
.home-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.home-tile{position:relative;min-height:124px;display:grid;grid-template-columns:44px minmax(0,1fr) 22px;grid-template-rows:auto auto;column-gap:12px;align-content:center;text-align:left;padding:16px;border:1px solid #dfe7f1;border-radius:18px;background:rgba(255,255,255,.96);color:#10213a;box-shadow:0 10px 28px rgba(26,58,94,.055);cursor:pointer;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.home-tile:hover{transform:translateY(-2px);border-color:#c9def8;box-shadow:0 14px 34px rgba(26,58,94,.085)}
.home-tile-icon{grid-row:1 / span 2;width:44px;height:44px;border-radius:14px;background:#edf6ff;color:#0060FF;display:grid;place-items:center}
.home-tile-icon .ui-icon{width:24px;height:24px}
.home-tile-title{align-self:end;font-size:14px;font-weight:850;color:#15304e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-tile-sub{align-self:start;margin-top:3px;font-size:11px;line-height:1.28;color:#74869d;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-tile-chevron{grid-column:3;grid-row:1 / span 2;align-self:center;color:#a1afc0}
.home-tile-chevron .ui-icon{width:18px;height:18px}

/* Next shift and info cards */
.next-shift-card{margin-bottom:18px;padding:18px;border:1px solid #dfe7f1;border-radius:20px;background:rgba(255,255,255,.97);box-shadow:0 12px 34px rgba(26,58,94,.06)}
.next-shift-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.next-shift-head>strong{font-size:16px;color:#16314f}
.text-link{border:0;background:transparent;padding:5px 0;display:inline-flex;align-items:center;gap:4px;color:#0060FF;font-size:12px;font-weight:800;cursor:pointer}
.text-link .ui-icon{width:15px;height:15px}
.next-shift-main{display:grid;grid-template-columns:42px minmax(0,1fr) 38px;gap:12px;align-items:center;padding:12px;border-radius:15px;background:#f7faff;border:1px solid #e6edf6}
.next-shift-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#edf6ff;color:#0060FF}
.next-shift-icon .ui-icon{width:23px;height:23px}
.next-shift-main>span:nth-child(2){display:grid;gap:3px;min-width:0}
.next-shift-main strong{font-size:13px;color:#17304d}
.next-shift-main small{font-size:11px;color:#52647d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.next-shift-open{width:38px;height:38px;border:1px solid #dbe7f4;border-radius:12px;background:#fff;color:#6d8098;display:grid;place-items:center;cursor:pointer}
.next-shift-open .ui-icon{width:18px;height:18px}
.home-alert-card{margin-bottom:18px;border-color:#d7e7fb;background:linear-gradient(180deg,#fff,#f8fbff)}
.home-alert-card>.primary{margin-top:9px;min-height:42px;padding:0 14px;border:0;border-radius:11px;background:#0060FF;color:#fff;font-weight:800;cursor:pointer}
.home-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}
.home-info-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;margin-top:0!important}
.home-info-icon{width:44px;height:44px;border-radius:14px;background:#edf6ff;color:#0060FF;display:grid;place-items:center}
.home-info-icon .ui-icon{width:23px;height:23px}
.home-info-card .text-link{white-space:nowrap}

/* Desktop: keep the PWA centered and compact instead of stretching edge to edge. */
@media(min-width:900px){
  .content{max-width:980px;padding-left:22px;padding-right:22px}
  .home-clock-card{padding:25px 28px}
}

/* Tablet/mobile */
@media(max-width:760px){
  .home-intro{align-items:flex-start}
  .home-person{min-width:0;grid-template-columns:42px auto}
  .home-avatar{width:42px;height:42px;border-radius:13px}
  .home-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-info-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .topbar{padding-left:14px;padding-right:14px}
  .brand-button{font-size:17px}.brand-mark{width:36px;height:36px}
  .content{padding:18px 13px 24px}
  .home-intro{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;margin-bottom:16px}
  .home-greeting{font-size:31px}
  .home-person{width:100%;grid-template-columns:42px minmax(0,1fr);padding:9px 10px}
  .home-clock-card{padding:18px 15px;border-radius:20px;margin-bottom:14px}
  .home-clock-time{font-size:46px;margin:18px 0 17px}
  .clock-actions{gap:7px}
  .clock-action{min-height:50px;display:grid;justify-items:center;gap:2px;padding:6px 4px;font-size:10px}
  .clock-action .ui-icon{width:20px;height:20px}
  .home-tiles{gap:9px;margin-bottom:14px}
  .home-tile{min-height:112px;grid-template-columns:38px minmax(0,1fr) 18px;column-gap:9px;padding:12px;border-radius:16px}
  .home-tile-icon{width:38px;height:38px;border-radius:12px}
  .home-tile-title{font-size:13px}.home-tile-sub{font-size:10px}
  .next-shift-card{padding:14px;margin-bottom:14px;border-radius:18px}
  .next-shift-head{align-items:flex-start}.next-shift-head .text-link{font-size:11px}
  .bottom-nav{padding-left:8px;padding-right:8px}
  .nav-btn{font-size:10px;padding-left:3px;padding-right:3px}
}
@media(max-width:370px){
  .home-tiles{grid-template-columns:1fr}
  .home-clock-time{font-size:40px}
}


/* V118 compact PWA navigation – small menu scale with mobile-safe touch targets. */
.app-shell{padding-bottom:calc(64px + var(--safe-bottom))}
.menu-trigger{
  width:34px!important;height:34px!important;border-radius:9px!important;
  box-shadow:none!important
}
.menu-trigger .ui-icon{width:18px!important;height:18px!important}

.bottom-nav{padding:5px 8px calc(5px + var(--safe-bottom))!important}
.bottom-nav-inner{width:min(560px,100%)!important;gap:4px!important}
.nav-btn{
  min-height:46px!important;grid-template-rows:20px auto!important;gap:2px!important;
  padding:4px 4px!important;border-radius:9px!important;
  font-size:9.5px!important;font-weight:760!important;line-height:1!important
}
.nav-icon{width:20px!important;height:20px!important}
.nav-icon .ui-icon{width:19px!important;height:19px!important;stroke-width:2!important}

.compact-menu .page-header{padding-bottom:14px!important;margin-bottom:10px!important}
.compact-menu .section-title{
  margin:12px 0 5px!important;color:#6e829e!important;
  font-size:9.5px!important;font-weight:850!important;letter-spacing:.09em!important;
  text-transform:uppercase!important
}
.compact-menu .menu-card{
  border-radius:11px!important;padding:4px!important;
  box-shadow:0 5px 14px rgba(24,54,92,.035)!important
}
.compact-menu .menu-row{
  min-height:36px!important;gap:7px!important;padding:5px 7px!important;
  border-bottom:0!important;border-radius:7px!important;
  font-size:10px!important;font-weight:730!important;line-height:1.15!important
}
.compact-menu .menu-row+.menu-row{margin-top:1px!important}
.compact-menu .menu-row:hover,
.compact-menu .menu-row:active{background:#edf5ff!important;color:#0c5fc8!important}
.compact-menu .menu-icon{
  width:15px!important;min-width:15px!important;font-size:11px!important;color:#6e829e!important
}
.compact-menu .menu-copy{gap:1px!important}
.compact-menu .menu-copy small{font-size:9px!important;line-height:1.2!important}
.compact-menu .menu-chevron{font-size:13px!important;color:#8b9aab!important}
.compact-menu .card+.card{margin-top:8px!important}

@media(max-width:520px){
  .nav-btn{min-height:44px!important;font-size:9px!important}
  .compact-menu .menu-row{min-height:34px!important;padding:5px 6px!important}
}
