/* Zweck: Verdichtete Büro-Oberfläche mit Sidebar, Tabellen und Tastaturbedienung.
   Version: 0.5.5 */
.office-layout{min-height:100dvh;display:grid;grid-template-columns:224px minmax(0,1fr)}.sidebar{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:22px 13px;min-height:100vh;gap:28px}.sidebar .brand{padding-left:9px}.sidebar nav{display:grid;gap:2px}.nav-link{width:100%;border:0;border-radius:4px;text-align:left;background:transparent;color:#4A535D;padding:10px 13px}.nav-link.active{background:#FFF3E9;color:#AD490E;border-left:3px solid var(--accent);padding-left:10px;font-weight:600}.nav-link:hover:not(.active){background:#F3F4F5}.sidefoot{margin-top:auto;padding:10px 12px;color:var(--sub);font-size:12px;line-height:1.7}.topbar{background:#fff;height:58px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;font-weight:600}.top-meta{color:var(--sub);font-size:12px;font-weight:400}.office-main{padding:28px 30px;max-width:1500px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:23px}.page-head h1{margin:5px 0 0}.crumb{font-size:12px;color:var(--sub)}.actions,.filterbar{display:flex;gap:8px;align-items:center}.filterbar{padding:13px 12px;background:#fff;border:1px solid var(--line);border-bottom:0;flex-wrap:wrap}.filterbar input[type=search]{max-width:380px}.filterbar select{width:auto;max-width:220px}.filterbar .inline-check{margin-left:auto;display:flex;gap:7px;align-items:center;font-weight:400}.inline-check input{width:16px;min-height:16px}.table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);background:#fff}table{width:100%;border-collapse:collapse;font-size:12.5px}th,td{text-align:left;border-bottom:1px solid #EBEDF0;padding:9px 11px;vertical-align:middle}th{color:#5A6470;background:#FAFBFC;white-space:nowrap;font-weight:600}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#FAFBFC}.sort{color:inherit;border:0;background:none;font-size:inherit;font-weight:inherit;white-space:nowrap;padding:0}td .text-btn{font-size:12px;padding:0}td .inline-actions{gap:12px}td .pill{white-space:nowrap}.empty{text-align:center;color:var(--sub);padding:35px}.office-main>.hint{margin-top:12px}@media(max-width:900px){.office-layout{grid-template-columns:175px 1fr}.office-main{padding:20px}.topbar{padding:0 20px}}@media(max-width:650px){.office-layout{display:block}.sidebar{min-height:0;padding:11px;gap:10px}.sidebar nav{display:flex;overflow:auto}.nav-link{width:auto;white-space:nowrap}.sidefoot{display:none}.topbar{height:46px}.office-main{padding:15px}.page-head{align-items:flex-start}.actions{align-self:center}table{min-width:670px}}

/* V0.5.5: 8-Pixel-Raster, benutzerbezogene Kopfzeile, Tabellendichte. */
.office-layout{grid-template-columns:236px minmax(0,1fr)}
.sidebar{padding:24px 12px 14px;gap:32px}
.sidebar .brand{padding-left:12px;font-size:16px}
.sidebar nav{gap:4px}
.nav-link{display:flex;gap:12px;align-items:center;min-height:40px;padding:9px 12px;font-size:13px;font-weight:500}
.nav-link .ui-icon{width:17px;height:17px;flex:none}
.nav-link.active{padding-left:9px;color:var(--accent);background:#FFF3EA;border-left:3px solid var(--accent);font-weight:600}
.nav-link:hover:not(.active){background:var(--bg)}
.sidefoot{border-top:1px solid var(--line);padding:16px 12px 4px;font-size:11px}
.topbar{height:64px;padding:0 32px;position:relative;z-index:20}
.topbar-context{display:flex;align-items:center;gap:10px;font-weight:500;font-size:12px}
.breadcrumb-label,.breadcrumb-divider{color:var(--sub)}
.profile-box{position:relative;display:flex;align-items:center}
.profile-trigger{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:4px 8px;border:1px solid transparent;background:transparent;border-radius:4px}
.profile-trigger:hover,.profile-trigger[aria-expanded=true]{border-color:var(--line);background:var(--bg)}
.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#ECEFF2;color:#26313C;font-family:var(--mono);font-size:12px;font-weight:600}
.ui-icon{display:inline-block;width:17px;height:17px;vertical-align:middle;flex:none}
.profile-trigger>.ui-icon{width:14px;height:14px;color:var(--sub)}
.profile-menu{position:absolute;top:calc(100% + 4px);right:0;width:272px;background:#fff;border:1px solid var(--line);border-radius:4px;box-shadow:0 10px 28px rgba(21,30,40,.14);padding:4px;z-index:35}
.profile-menu[hidden]{display:none}
.profile-ident{padding:12px;border-bottom:1px solid var(--line);display:grid;gap:4px;overflow-wrap:anywhere}
.profile-ident strong{font-size:13px;font-weight:600}
.profile-ident small{font-size:11px;color:var(--sub);line-height:1.35}
.profile-menu button{display:flex;align-items:center;gap:10px;border:0;background:transparent;border-radius:3px;padding:11px 12px;width:100%;text-align:left;color:var(--ink);font-size:12px}
.profile-menu button:hover,.profile-menu button:focus-visible{background:var(--bg)}
.office-main{padding:32px;max-width:1600px}
.page-head{margin-bottom:24px;min-height:56px}
.page-head h1{font-size:24px;font-weight:600;margin-top:4px;margin-bottom:0}
.crumb{font-size:11px;color:var(--sub)}
.filterbar{gap:12px;padding:12px 16px}
.filterbar input[type=search]{max-width:420px}
.table-wrap{border-radius:4px;overflow-x:auto}
table{font-size:12.5px;line-height:1.35}
th,td{padding:9px 12px;border-bottom:1px solid #E9ECEF;height:44px}
th{background:#FAFBFC;color:#515B66;font-size:11px;font-weight:600}
tbody tr:hover{background:#F5F7F9}
td .inline-actions{gap:6px;justify-content:flex-end}
.icon-btn{width:32px;height:32px;border-radius:4px;border:1px solid transparent;background:transparent;color:#56616E;display:inline-grid;place-items:center;padding:0}
.icon-btn:hover:not(:disabled){border-color:#CCD3DA;background:#F1F3F5;color:var(--ink)}
.icon-btn:disabled{opacity:.35}
.icon-btn .ui-icon{width:16px;height:16px}
.empty-panel{border:1px solid var(--line);border-radius:4px;background:#fff;padding:44px 24px;text-align:center}
.empty-title{font-size:16px;font-weight:600;margin-bottom:6px}
.empty-panel .hint{max-width:460px;margin:0 auto 18px}
.device-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px}
.device-entry h2{margin-bottom:8px}
.device-entry p{margin:0;max-width:550px}
.device-entry button{white-space:normal;flex-shrink:0}
@media(max-width:900px){.office-layout{grid-template-columns:200px minmax(0,1fr)}.topbar{padding:0 20px}.office-main{padding:20px}}
@media(max-width:650px){.office-layout{display:block}.sidebar{padding:12px;gap:12px;min-height:0}.sidebar nav{overflow-x:auto;gap:4px}.sidebar nav .nav-link{flex:none}.sidebar .sidefoot{display:block;margin-top:0;border-top:0;padding:3px 12px}.topbar{height:56px}.office-main{padding:16px}.page-head{gap:16px;flex-wrap:wrap}.device-entry{align-items:flex-start;flex-direction:column}.profile-menu{right:0;width:min(272px,88vw)}}

.settings-content{max-width:760px}.settings-content .panel h2{margin-top:8px;margin-bottom:12px}.settings-content form{margin-top:20px}.settings-content .remember-option{align-items:flex-start}.settings-content .hint{max-width:650px}
.page-head h1:focus{outline:none}

/* V0.6.0: kompakte Tabellen und konsistente Personalzeit-Ansichten. */
.office-data-table{table-layout:fixed;width:100%}
.office-data-table th,.office-data-table td{overflow:hidden;text-overflow:ellipsis}
.office-data-table .col-object_no,.office-data-table .col-personnel_no{width:126px;font-variant-numeric:tabular-nums}
.office-data-table .col-status,.office-data-table .col-active,.office-data-table .col-approval_status{width:106px}
.office-data-table .col-updated_at,.office-data-table .col-enrolled_at{width:160px}
.office-data-table .col-tools{width:132px;text-align:right}
.office-data-table th.col-tools .sort{display:block;margin-left:auto}
.office-data-table .col-tools .inline-actions{justify-content:flex-end}
.hr-section-head{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:20px}
.hr-section-head h2{font-size:18px;font-weight:600;margin:0 0 4px}
.hr-section-head p{margin:0}
.hr-section-head .actions{flex-wrap:wrap;justify-content:flex-end}
.hr-inline{display:inline-flex;flex-direction:row;align-items:center;gap:8px;font-size:12px}
.hr-inline input,.hr-inline select{min-height:36px;width:auto;min-width:145px}
.hr-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:1px;border:1px solid var(--line);background:var(--line);margin:14px 0 20px}
.hr-stat{padding:15px;background:#fff;display:grid;gap:8px}
.hr-stat small{color:var(--sub);font-size:11px}
.hr-stat strong{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:16px}
.hr-table th,.hr-table td{height:40px;white-space:nowrap}
.hr-table .btn{padding:6px 9px;min-height:32px;font-size:11px;margin-right:5px}
.hr-month-grid{font-size:11px;white-space:nowrap;width:max-content;min-width:100%}
.hr-month-grid th,.hr-month-grid td{border:1px solid var(--line);width:31px;min-width:31px;text-align:center;padding:5px 3px;height:32px}
.hr-month-grid th:first-child{min-width:190px;text-align:left;position:sticky;left:0;background:#fff;z-index:2}
.hr-month-grid .hr-absent{background:#FDE9DA;font-weight:600;color:#8A3E0A}
.hr-month-grid .hr-holiday{background:#EFF1F3;color:#48525D}
.hr-day-fields{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.hr-day-fields input{min-width:0}
.hr-required{border-left:3px solid var(--accent)}
@media(max-width:850px){.hr-day-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.hr-section-head{flex-wrap:wrap}}
@media(max-width:550px){.hr-day-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

.hr-pending-link{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid var(--line);background:#fff;padding:12px 16px;margin:0 0 16px;font-size:13px}

/* V0.6.2: Gemeindewappen, lokales privates Blob statt öffentlicher Datei-URL. */
.sidebar .brand{min-width:0;display:flex;gap:10px;align-items:center}
.sidebar .brand b{display:block;max-width:165px;white-space:normal;line-height:1.2;font-size:13px;overflow-wrap:anywhere}
.sidebar .brand small{display:block;font-size:11px;color:var(--sub);margin-top:3px}
.municipality-logo{width:40px;height:40px;object-fit:contain;flex-shrink:0;background:#fff;border:1px solid var(--line);border-radius:4px}
.logo-preview{display:flex;align-items:center;gap:12px;margin:12px 0 8px;padding:12px;border:1px solid var(--line);border-radius:4px;max-width:420px}
.logo-preview img{width:64px;height:64px;object-fit:contain}
.logo-preview span small{display:block;font-size:11px;color:var(--sub);margin-top:3px}
.logo-settings{margin-bottom:16px}
.logo-settings input[type=file]{width:100%;max-width:420px}

/* Personalzeit-Nachtrag v0.6.1: geplante Zukunft statt negativer Salden. */
.hr-future{background:#F3F5F7;color:#69737D}
.hr-future td,.hr-no-balance{color:#69737D}
.hr-future small{font-weight:400;font-size:11px}
.hr-week-invalid{color:var(--bad)!important;font-weight:600}
.hr-au-field[hidden]{display:none!important}
.hr-month-grid .hr-weekend{background:#F0F2F4;color:#69737D}
.hr-month-grid .hr-absent{background:#FDE9DA;color:#8A3E0A}
.hr-month-grid .hr-holiday{background:#E5E9ED;color:#48525D}
.hr-section-head{align-items:center;margin-bottom:14px}
.hr-section-head>.hint{max-width:700px;margin:0}
