/* CSS Document */
/*login-pagina*/
img.right{
    float:right;
    clear:none;
}
.loginbody{
 background:
    linear-gradient(rgba(244, 247, 248, 0.90), rgba(244, 247, 248, 0.96)),
    url("../img/bg1.jpeg") center / cover fixed;
 width:100%;
}
.brand_logo_container{
    margin-bottom: 10%;
}

.loginbody .container {
  min-height: 100vh;
  margin-bottom: 0;
}

.loginbody .card {
  width: min(100%, 390px);
  border: 1px solid rgba(23, 32, 51, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 48px rgba(23, 32, 51, 0.20);
  overflow: hidden;
}

.loginbody .card-header {
  padding: 22px 22px 10px;
  border-bottom: 0;
  background: transparent;
}

.loginbody .card-header img {
  max-height: 122px;
  object-fit: contain;
}

.loginbody .card-body {
  padding: 18px 22px 24px;
}

.loginbody .input-group-text {
  min-width: 46px;
  justify-content: center;
  color: var(--app-brand-2);
  border-color: var(--app-line);
  background: var(--app-surface-soft);
}

.loginbody .form-control {
  min-height: 48px;
}

.loginbody .btn {
  width: 100%;
  min-height: 48px;
  font-weight: 820;
}

.logout-page {
  min-height: 100vh;
  padding: 18px;
  background:
    linear-gradient(rgba(244, 247, 248, 0.88), rgba(244, 247, 248, 0.96)),
    url("../img/bg1.jpeg") center / cover fixed;
}

.logout-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 36px);
}

.logout-card {
  display: grid;
  gap: 12px;
  width: min(100%, 430px);
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(23, 32, 51, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 54px rgba(23, 32, 51, 0.20);
}

.logout-logos {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  margin-bottom: 4px;
}

.logout-brand-logo {
  width: 158px;
  max-width: 58%;
  height: auto;
  object-fit: contain;
}

.logout-app-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.12);
}

.logout-card h1 {
  margin: 0;
  font-size: 2rem;
}

.logout-card p {
  margin: 0;
  color: var(--app-muted);
}

.logout-login-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 16px;
  color: #fff;
  border-radius: 8px;
  background: var(--app-brand);
  font-weight: 850;
  text-decoration: none;
}

.logout-login-button:hover,
.logout-login-button:focus {
  color: #fff;
  background: var(--app-brand-2);
}
h2{
font-size: 1.5rem;
    text-align: center;
}
.OW{
    background-color:rgba(255, 0, 0, 0.7)!important;
}    

.werkdatum{
    float:left;
    clear: left
}

.werkuren{
    float:right;
}
.navbaroverzicht{
    height:80px;
     background-color: #304D63;
}
.container{
    margin-bottom: 80px;
    
}
.footermenu{
    width:100%;
}

p.card-text {
    /* margin-top: 0; */
    /* margin-bottom: 0; */
    line-height: 0;
}
p.werkdatum , p.werkuren {
    height: 2em;
}

#overzicht .card .card-header{
    line-height: 1em;
    height: 2em;
}

.bi-clock::before{
      width: 100%;
    text-align: center;
    font-size: xx-large;
}

nav.navbaroverzicht a{
   color: #fff;
    text-decoration: none;
    /*border: solid 1px;*/
    height: 80%;
    width: 25%;
    margin: 0em;
    padding: 0em;
    font-size: x-small; 
}
.werktijd {
    width: 100%;
    height: 2em;
    background-color: rgba(0, 0, 0, 0.03);
    margin-bottom: 1em;
    display: inline-table;
}

/*
swicth buttons
*/

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/*
Mobile-first app redesign
*/
:root {
  --app-bg: #f4f7f8;
  --app-surface: #ffffff;
  --app-surface-soft: #f8fafb;
  --app-ink: #172033;
  --app-muted: #687385;
  --app-line: #dfe5eb;
  --app-brand: #253f4f;
  --app-brand-2: #2f7d62;
  --app-danger: #b42318;
  --app-warning: #f4a340;
  --app-shadow: 0 16px 36px rgba(23, 32, 51, 0.10);
}

html {
  background: var(--app-bg);
}

body {
  min-height: 100vh;
  color: var(--app-ink);
  background:
    radial-gradient(circle at 18% -8%, rgba(47, 125, 98, 0.10), transparent 28%),
    linear-gradient(180deg, #fbfcfd 0%, var(--app-bg) 48%, #eef3f4 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body:not(.loginbody) {
  padding-bottom: 96px;
}

a {
  color: var(--app-brand-2);
}

h1,
h2,
h3 {
  color: var(--app-ink);
  letter-spacing: 0;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 7vw, 2.45rem);
  line-height: 1.08;
  font-weight: 850;
}

h2 {
  margin: 18px 0 12px;
  font-size: 1.15rem;
  line-height: 1.18;
  font-weight: 800;
}

.container,
.container-fluid {
  width: min(100%, 980px);
}

body > .container,
body > main > .container,
.container.app-page,
.container:not(.footermenu) {
  margin-top: 14px;
  margin-bottom: 108px;
}

body > .container:not(.footermenu) {
  padding: 16px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--app-shadow);
}

.app-topbar.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.07);
  backdrop-filter: blur(14px);
}

.app-topbar .container-fluid {
  width: min(100%, 1180px);
  padding-inline: 14px;
}

.app-topbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  color: var(--app-ink);
  font-weight: 850;
}

.app-topbar .navbar-brand img {
  width: 48px;
  height: 48px !important;
  object-fit: contain;
}

.app-topbar .navbar-brand .brand-title {
  display: block;
  max-width: 178px;
  line-height: 1.05;
  white-space: normal;
}

.app-topbar .navbar-brand .brand-title small {
  display: block;
  margin-top: 2px;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
}

.app-profile-menu {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: 8px;
  order: 3;
}

.app-profile-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  min-height: 42px;
  padding: 5px 9px 5px 5px;
  color: var(--app-ink);
  border: 1px solid var(--app-line);
  border-radius: 999px;
  background: #fff;
  font-weight: 820;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}

.app-profile-button::-webkit-details-marker {
  display: none;
}

.app-profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  color: #fff;
  border-radius: 50%;
  background: var(--app-brand);
  font-size: 0.8rem;
  font-weight: 900;
}

.app-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-profile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1100;
  display: grid;
  gap: 4px;
  min-width: 190px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(23, 32, 51, 0.16);
}

.app-profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--app-ink);
  border-radius: 8px;
  font-weight: 760;
  text-decoration: none;
}

.app-profile-dropdown a:hover,
.app-profile-dropdown a:focus {
  color: var(--app-ink);
  background: var(--app-surface-soft);
}

.app-profile-dropdown a i {
  color: var(--app-brand-2);
}

.app-topbar .navbar-toggler {
  order: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  box-shadow: none;
}

.app-topbar .navbar-collapse {
  order: 1;
  flex-grow: 1;
  padding-top: 10px;
}

.app-topbar .navbar-nav {
  flex-wrap: wrap;
  gap: 6px;
}

.app-topbar .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--app-ink);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 720;
  line-height: 1.15;
}

.app-topbar .nav-link:hover,
.app-topbar .nav-link:focus {
  color: var(--app-ink);
  background: var(--app-surface-soft);
}

.app-topbar .nav-link i {
  width: 20px;
  color: var(--app-brand-2);
  text-align: center;
}

.app-topbar .btn {
  min-height: 42px;
  white-space: nowrap;
  border-radius: 8px;
  font-weight: 760;
}

@media (min-width: 1200px) {
  .app-topbar .container-fluid {
    gap: 18px;
  }

  .app-topbar .navbar-collapse {
    min-width: 0;
  }

  .app-topbar .navbar-nav {
    align-items: center;
    row-gap: 4px;
  }

  .app-topbar .nav-link {
    padding-inline: 10px;
  }
}

@media (max-width: 575.98px) {
  .app-topbar .navbar-brand .brand-title {
    display: none;
  }

  .app-profile-menu {
    margin-left: 4px;
    order: 2;
  }

  .app-topbar .navbar-toggler {
    order: 1;
    margin-left: auto;
  }

  .app-topbar .navbar-collapse {
    order: 3;
    flex-basis: 100%;
  }

  .app-profile-button {
    max-width: 124px;
    min-height: 38px;
    padding-right: 7px;
  }

  .app-profile-avatar {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .app-profile-name {
    max-width: 58px;
  }
}

.app-tabbar.navbaroverzicht {
  right: 10px;
  bottom: 10px;
  left: 10px;
  width: auto;
  height: 84px;
  padding: 0;
  border: 1px solid rgba(23, 32, 51, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.24);
  backdrop-filter: blur(14px);
}

.app-tabbar .footermenu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  max-width: 620px;
  height: 100%;
  margin: 0 auto;
  padding: 7px;
}

.app-tabbar .footermenu.has-tools {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.app-tabbar.navbaroverzicht a {
  position: relative;
  display: grid;
  place-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 7px 2px;
  color: #344354;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 830;
  line-height: 1.05;
  text-decoration: none;
}

.app-tabbar-badge {
  position: absolute;
  top: 5px;
  right: max(8px, calc(50% - 24px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.30);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
}

.app-tabbar-badge[hidden] {
  display: none !important;
}

.app-tabbar.navbaroverzicht a:hover,
.app-tabbar.navbaroverzicht a:focus,
.app-tabbar.navbaroverzicht a.active {
  color: var(--app-brand);
  background: #edf5f1;
}

.app-tabbar i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--app-brand-2);
  font-size: 1.3rem;
  line-height: 1;
}

.app-tabbar a.active i {
  color: #fff;
  border-radius: 999px;
  background: var(--app-brand-2);
  font-size: 1.18rem;
}

.app-tabbar span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}

.app-page-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(37, 63, 79, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef6f2 100%);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
}

.app-page-hero h1 {
  margin-bottom: 6px;
}

.app-page-hero p:last-child {
  margin: 0;
  color: var(--app-muted);
}

.app-eyebrow {
  margin: 0 0 5px;
  color: var(--app-brand-2);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-update-badge {
  display: grid;
  gap: 2px;
  align-content: center;
  padding: 12px;
  border: 1px solid rgba(23, 32, 51, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.app-update-badge span {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.app-update-badge strong {
  color: var(--app-ink);
  font-size: 0.96rem;
}

.app-update-badge small {
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.2;
}

.app-panel {
  margin-bottom: 14px;
  border: 1px solid rgba(23, 32, 51, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.07);
  overflow: hidden;
}

.app-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--app-line);
}

.app-panel-header h2,
.app-panel-header p {
  margin: 0;
}

.app-panel-header p {
  color: var(--app-muted);
  font-weight: 760;
}

.app-panel-body {
  padding: 12px;
}

.schedule-shell {
  width: min(100%, 1180px);
}

.schedule-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
}

.schedule-page #calendar {
  margin: 0;
}

.schedule-page #overzicht {
  display: grid;
  gap: 10px;
}

.schedule-page #overzicht .card {
  margin: 0;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
}

.schedule-page #overzicht .card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  height: auto;
  padding: 10px 12px;
  background: var(--app-surface-soft);
  border-bottom: 1px solid var(--app-line);
}

.schedule-page #overzicht .card-body {
  padding: 10px 12px;
}

.schedule-page p.werkdatum,
.schedule-page p.werkuren,
.schedule-page p.card-text {
  height: auto;
  margin: 0;
  line-height: 1.25;
}

.schedule-page .werkdatum {
  font-weight: 850;
}

.schedule-page .werkuren {
  color: var(--app-brand);
  font-weight: 850;
  text-align: right;
}

.schedule-page .accordion {
  display: grid;
  gap: 10px;
}

.schedule-page .accordion-item {
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 899.98px) {
  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.phone-setup {
  margin-top: 12px;
}

.profile-photo-panel {
  margin-bottom: 14px;
}

.profile-photo-body {
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile-photo-preview {
  display: grid;
  place-items: center;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  overflow: hidden;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--app-brand);
  box-shadow: 0 12px 26px rgba(23, 32, 51, 0.16);
  font-size: 1.35rem;
  font-weight: 900;
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-controls {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.profile-photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-photo-upload span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--app-brand);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
  font-weight: 820;
  cursor: pointer;
}

.profile-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-photo-status {
  min-height: 20px;
  margin: 0;
  color: var(--app-muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.profile-photo-status[data-type="success"] {
  color: #166534;
}

.profile-photo-status[data-type="error"] {
  color: #991b1b;
}

.employee-profile-panel,
.privacy-panel {
  margin-top: 14px;
}

.employee-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 0;
}

.employee-profile-grid div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
}

.employee-profile-grid dt {
  margin-bottom: 3px;
  color: var(--app-muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.employee-profile-grid dd {
  margin: 0;
  color: var(--app-ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.users-sheet-body {
  --users-sheet-toolbar-height: 76px;
  overflow: hidden;
}

.users-sheet-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  height: calc(100vh - 76px);
  height: calc(100svh - 76px);
  padding: 10px;
  overflow: hidden;
}

.users-sheet-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 320px) minmax(160px, 240px) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}

.users-sheet-toolbar h1 {
  margin: 0;
  color: var(--app-ink);
  font-size: 1.5rem;
  line-height: 1.05;
}

.users-sheet-toolbar label {
  display: grid;
  gap: 3px;
  margin: 0;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.users-sheet-save-all {
  align-self: end;
  min-height: 38px;
  white-space: nowrap;
}

.users-sheet-wrap {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
}

.users-sheet-head-scroll {
  overflow: hidden;
  border-bottom: 1px solid var(--app-line);
  background: #f1f5f9;
}

.users-sheet-body-scroll {
  min-height: 0;
  overflow: auto;
}

.users-sheet-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 0.72rem;
}

.users-sheet-name-col {
  width: 112px;
}

.users-sheet-status-col {
  width: 78px;
}

.users-sheet-field-col {
  width: 150px;
}

.users-sheet-action-col {
  width: 92px;
}

.users-sheet-table th,
.users-sheet-table td {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  padding: 3px;
  border-right: 1px solid var(--app-line);
  border-bottom: 1px solid var(--app-line);
  background: #fff;
  vertical-align: top;
}

.users-sheet-group-row th {
  position: static;
  padding: 8px 10px;
  border-top: 2px solid #bfdbfe;
  border-bottom: 1px solid var(--app-line);
  background: #edf7f3;
  color: var(--app-ink);
  font-size: 0.9rem;
  font-weight: 950;
  text-align: left;
}

.users-sheet-group-row span {
  display: inline-flex;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fff;
  color: #2f7d62;
  font-size: 0.72rem;
}

.users-sheet-table thead th {
  position: static;
  background: #f1f5f9;
  color: var(--app-muted);
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
  height: 34px;
  padding: 7px 6px;
  vertical-align: middle;
  box-shadow: none;
}

.users-sheet-table .sticky-name {
  position: sticky;
  left: 0;
  z-index: 6;
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  background: #f8fbf9;
}

.users-sheet-table th.sticky-name,
.users-sheet-table td.sticky-name {
  width: 112px;
  min-width: 112px;
  max-width: 112px;
}

.users-sheet-table th:nth-child(2),
.users-sheet-table td:nth-child(2) {
  width: 78px;
  min-width: 78px;
  max-width: 78px;
}

.users-sheet-table thead .sticky-name {
  position: sticky;
  left: 0;
  z-index: 14;
  background: #e2e8f0;
}

.users-sheet-table .sticky-action {
  position: sticky;
  right: 0;
  z-index: 6;
  width: 92px;
  min-width: 92px;
  max-width: 92px;
  background: #f8fbf9;
}

.users-sheet-table thead .sticky-action {
  z-index: 14;
  background: #e2e8f0;
}

.users-sheet-table th strong,
.users-sheet-table th small {
  display: block;
  max-width: 100px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.users-sheet-table th small {
  color: var(--app-muted);
  font-size: 0.64rem;
}

.users-sheet-input {
  width: 100%;
  height: 26px;
  padding: 2px 5px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: var(--app-ink);
  font: inherit;
}

.users-sheet-input:focus {
  border-color: #2f7d62;
  outline: 2px solid rgba(47, 125, 98, 0.16);
}

.users-sheet-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 900;
}

.users-sheet-status.active {
  background: #dcfce7;
  color: #166534;
}

.users-sheet-table tr.is-dirty td,
.users-sheet-table tr.is-dirty th {
  background: #fff7ed;
}

.users-sheet-table tr:hover td,
.users-sheet-table tr:hover th {
  background: #eff6ff;
}

@media (max-width: 900px) {
  .users-sheet-body {
    overflow: auto;
  }

  .users-sheet-page {
    height: auto;
    min-height: calc(100svh - 76px);
  }

  .users-sheet-toolbar {
    grid-template-columns: 1fr;
  }
}

.privacy-settings-grid {
  display: grid;
  gap: 10px;
}

.privacy-settings-grid label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
  font-weight: 850;
}

.calendar-subscribe-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calendar-subscribe-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  padding: 11px 12px;
  color: var(--app-ink);
  text-align: left;
  text-decoration: none;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
}

.calendar-subscribe-button:hover {
  color: var(--app-ink);
  border-color: var(--app-green);
  background: #f2fbf6;
}

.calendar-subscribe-button .bi {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  border-radius: 8px;
  background: var(--app-brand);
}

.calendar-subscribe-button span {
  min-width: 0;
}

.calendar-subscribe-button strong,
.calendar-subscribe-button small {
  display: block;
}

.calendar-subscribe-button strong {
  line-height: 1.1;
}

.calendar-subscribe-button small {
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 0.76rem;
}

.calendar-subscribe-button.google .bi {
  background: #1a73e8;
}

.calendar-subscribe-button.outlook .bi {
  background: #2563eb;
}

.calendar-subscribe-button.apple .bi {
  background: #111827;
}

.calendar-subscribe-button.copy .bi {
  background: #2d8260;
}

.calendar-help-page {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.calendar-detected-panel .app-panel-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.calendar-detected-panel h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.calendar-detected-panel p {
  margin: 0;
  color: var(--app-muted);
}

.calendar-help-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.calendar-help-switcher button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 10px;
  color: var(--app-ink);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.calendar-help-switcher button.active {
  color: #fff;
  border-color: var(--app-brand);
  background: var(--app-brand);
}

.calendar-help-layout {
  display: grid;
  gap: 14px;
}

.calendar-main-action {
  min-height: 64px;
}

.calendar-help-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.calendar-help-steps li {
  color: var(--app-ink);
  font-weight: 720;
}

.calendar-help-warning {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: #7a4b00;
  border: 1px solid #f5d48a;
  border-radius: 8px;
  background: #fff7df;
}

.calendar-help-warning strong,
.calendar-help-warning span {
  display: block;
}

.calendar-help-warning strong {
  font-size: 0.9rem;
}

.calendar-help-warning span {
  font-size: 0.86rem;
  font-weight: 720;
}

.calendar-feed-box {
  display: grid;
  gap: 10px;
}

.calendar-feed-box code {
  padding: 10px 12px;
  color: #1f3f57;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #f8fafc;
  white-space: normal;
  overflow-wrap: anywhere;
}

.calendar-subscribe-note {
  margin: 0;
  padding: 10px 12px;
  color: #7a4b00;
  border: 1px solid #f5d48a;
  border-radius: 8px;
  background: #fff7df;
  font-size: 0.86rem;
  font-weight: 750;
}

.calendar-app-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--app-muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.calendar-app-status[data-type="success"] {
  color: #166534;
}

.calendar-app-status[data-type="warning"] {
  color: #92400e;
}

.calendar-app-status[data-type="info"] {
  color: #1f3f57;
}

@media (max-width: 575.98px) {
  .profile-photo-body {
    align-items: flex-start;
  }

  .profile-photo-preview {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }

  .calendar-subscribe-options {
    grid-template-columns: 1fr;
  }

  .calendar-detected-panel .app-panel-body,
  .calendar-help-switcher {
    grid-template-columns: 1fr;
    display: grid;
  }

  .install-help-grid,
  .install-help-card-body,
  .install-help-test {
    grid-template-columns: 1fr;
  }

  .install-help-phone {
    max-width: 240px;
    margin: 0 auto;
  }

  .install-help-hero img {
    display: none;
  }
}

.phone-setup-header {
  padding: 16px;
  border-bottom: 1px solid var(--app-line);
}

.phone-setup-header h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.phone-setup-status {
  margin: 0;
  color: var(--app-muted);
  font-weight: 800;
}

.phone-setup-status[data-type="success"] {
  color: #166534;
}

.phone-setup-status[data-type="warning"] {
  color: #92400e;
}

.phone-setup-status[data-type="error"] {
  color: #991b1b;
}

.phone-setup-steps {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.phone-step-button {
  display: grid;
  grid-template-columns: 38px 1fr 26px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px;
  gap: 8px;
  border: 1px solid rgba(47, 125, 98, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--app-ink);
  text-align: left;
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.06);
}

.phone-step-button strong,
.phone-step-button small {
  display: block;
}

.phone-step-button strong {
  font-size: 1rem;
  line-height: 1.15;
}

.phone-step-button small {
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.phone-step-button > .bi {
  color: var(--app-brand-2);
  font-size: 1.3rem;
}

.phone-step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef6f2;
  color: var(--app-brand-2);
  font-weight: 900;
}

.phone-step-primary {
  border-color: rgba(47, 125, 98, 0.44);
  background: #f4fbf7;
}

.phone-step-muted {
  background: #f8fafc;
}

.phone-step-button:disabled {
  opacity: 0.62;
}

.phone-install-help {
  display: grid;
  gap: 8px;
  margin: 0 12px 12px;
}

.phone-install-help article {
  padding: 10px 12px;
  border: 1px solid rgba(47, 125, 98, 0.18);
  border-radius: 8px;
  background: #f8fbfa;
}

.phone-install-help strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--app-ink);
  font-size: 0.95rem;
}

.phone-install-help strong i {
  color: var(--app-brand-2);
}

.phone-install-help p {
  margin: 4px 0 0;
  color: var(--app-muted);
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 700;
}

.phone-install-help-link {
  display: grid;
  gap: 8px;
  margin: 0 12px 12px;
}

.phone-install-help-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(47, 125, 98, 0.26);
  background: #fff;
  color: var(--app-brand-2);
  font-weight: 900;
  text-decoration: none;
}

.install-help-page {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.install-help-hero {
  align-items: center;
}

.install-help-hero img {
  width: min(150px, 34vw);
  height: auto;
  object-fit: contain;
}

.install-help-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #7c2d12;
}

.install-help-alert i {
  font-size: 1.25rem;
  color: #ea580c;
}

.install-help-alert strong,
.install-help-alert span {
  display: block;
}

.install-help-alert span {
  margin-top: 2px;
  font-weight: 700;
}

.install-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.install-help-card h2 i {
  color: var(--app-brand-2);
}

.install-help-card-body {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 16px;
  align-items: start;
}

.install-help-phone {
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(145deg, #1f2937, #0f172a);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
}

.install-help-phone.android {
  background: linear-gradient(145deg, #174c3b, #0f2f26);
}

.install-help-screen {
  display: grid;
  gap: 10px;
  min-height: 260px;
  padding: 16px 12px;
  border-radius: 16px;
  background: #f8fbfa;
  text-align: center;
}

.install-help-screen img {
  justify-self: center;
  width: 94px;
  height: auto;
}

.install-help-screen span {
  color: var(--app-muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.install-help-screen strong {
  font-size: 0.92rem;
  color: var(--app-ink);
}

.install-help-share-row,
.install-help-screen-button,
.install-help-photo-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--app-line);
  background: #fff;
  color: var(--app-ink);
  font-weight: 900;
}

.install-help-screen-button.primary {
  border-color: rgba(47, 125, 98, 0.35);
  background: #e8f6ef;
  color: var(--app-brand-2);
}

.install-help-screen-button i,
.install-help-share-row i {
  color: var(--app-brand-2);
}

.install-help-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--app-ink);
  font-weight: 800;
}

.install-help-steps li::marker {
  color: var(--app-brand-2);
  font-weight: 900;
}

.install-help-test {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 14px;
  align-items: center;
}

.install-help-photo-mini {
  display: grid;
  min-height: 116px;
  background: #f4fbf7;
  color: var(--app-brand-2);
}

.install-help-photo-mini i {
  font-size: 1.6rem;
}

.install-help-photo-mini span {
  color: var(--app-muted);
  font-size: 0.82rem;
}

.install-help-action {
  white-space: nowrap;
}

.public-info-body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(232, 246, 239, 0.94), rgba(248, 250, 252, 0.96)),
    url('/img/logoekhks.png') center 8% / min(620px, 92vw) auto no-repeat;
  color: var(--app-ink);
}

.public-info-page {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 38px;
}

.public-info-hero {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid rgba(47, 125, 98, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(23, 32, 51, 0.12);
}

.public-info-hero img {
  width: 170px;
  max-width: 45vw;
  height: auto;
  margin-bottom: 10px;
}

.public-info-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.public-info-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--app-muted);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.public-info-actions,
.public-info-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.public-info-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #14532d;
}

.public-info-alert.calm {
  border-color: rgba(47, 125, 98, 0.2);
  background: rgba(255, 255, 255, 0.88);
}

.public-info-alert i {
  font-size: 1.35rem;
  color: var(--app-brand-2);
}

.public-info-alert strong,
.public-info-alert span {
  display: block;
}

.public-info-alert span {
  margin-top: 3px;
  font-weight: 700;
}

.public-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.public-info-card {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 35px rgba(23, 32, 51, 0.08);
}

.public-info-card i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--app-brand);
  color: #fff;
  font-size: 1.25rem;
}

.public-info-card h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.public-info-card p,
.public-info-text p {
  margin: 0;
  color: var(--app-muted);
  font-weight: 700;
  line-height: 1.45;
}

.public-info-text {
  display: grid;
  gap: 10px;
}

.public-info-panel {
  margin-top: 14px;
}

.public-info-steps {
  max-width: 760px;
}

.public-info-footer {
  justify-content: center;
}

.admin-message-preview {
  margin-bottom: 14px;
}

.admin-message-preview code {
  display: inline-block;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 6px;
  background: #eef6f2;
  color: var(--app-brand-2);
  font-weight: 900;
  white-space: normal;
}

.admin-message-preview p {
  margin: 0 0 8px;
  color: var(--app-muted);
  font-weight: 800;
}

.push-devices {
  margin: 0 12px 12px;
  padding: 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
}

.push-devices strong {
  display: block;
  margin-bottom: 6px;
}

.push-devices ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.push-devices li {
  font-weight: 800;
}

.push-devices small {
  display: block;
  color: var(--app-muted);
  font-weight: 700;
}

.push-device-test {
  margin-top: 6px;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid rgba(47, 125, 98, 0.35);
  border-radius: 8px;
  background: #fff;
  color: var(--app-brand-2);
  font-size: 0.82rem;
  font-weight: 850;
}

.push-devices p {
  margin: 0;
  color: var(--app-muted);
  font-weight: 750;
}

.install-done-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(244, 247, 248, 0.96);
}

.install-done-overlay.show {
  display: grid;
}

.install-done-overlay div {
  width: min(100%, 420px);
  padding: 22px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(23, 32, 51, 0.18);
  text-align: center;
}

.install-done-overlay strong {
  display: block;
  color: var(--app-ink);
  font-size: 1.55rem;
  line-height: 1.1;
}

.install-done-overlay p {
  margin: 10px 0 0;
  color: var(--app-muted);
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.admin-dashboard-body {
  min-height: 100vh;
  background: #eef2f5;
}

.admin-dashboard {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 10px;
}

.admin-dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.admin-subpage-topbar {
  width: min(1180px, calc(100vw - 24px));
  margin: 12px auto 0;
}

.admin-dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--app-ink);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
}

.admin-dashboard-brand img {
  width: 64px;
  height: 38px;
  object-fit: contain;
}

.admin-dashboard-brand small {
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.admin-dashboard-topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-location-bar {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.admin-location-bar form {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(220px, 360px);
  gap: 12px;
  align-items: center;
}

.admin-location-bar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--app-ink);
  font-weight: 950;
}

.admin-location-bar label i {
  color: var(--app-green);
  font-size: 1.15rem;
}

.admin-location-bar select {
  min-height: 42px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--app-ink);
  font-weight: 900;
}

.admin-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 12px 0;
  padding: 18px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f5fbf8 100%);
}

.admin-dashboard-hero h1 {
  margin: 0;
  color: var(--app-ink);
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  font-weight: 950;
  letter-spacing: 0;
}

.admin-dashboard-hero p:last-child {
  margin: 4px 0 0;
  color: var(--app-muted);
  font-weight: 750;
}

.admin-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 8px;
}

.admin-dashboard-kpis span {
  display: grid;
  gap: 2px;
  min-width: 110px;
  padding: 10px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-align: center;
}

.admin-dashboard-kpis strong {
  color: var(--app-ink);
  font-size: 1.35rem;
  font-weight: 950;
}

.admin-problem-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-problem-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 102px;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-left: 5px solid #16a34a;
  border-radius: 10px;
  background: #ffffff;
  color: var(--app-ink);
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.admin-problem-card.warn {
  border-left-color: #f59e0b;
}

.admin-problem-card.danger {
  border-left-color: #dc2626;
}

.admin-problem-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #ecfdf3;
  color: #087b43;
  font-size: 1.25rem;
}

.admin-problem-card.warn i {
  background: #fff7ed;
  color: #b45309;
}

.admin-problem-card.danger i {
  background: #fef2f2;
  color: #b91c1c;
}

.admin-problem-card span {
  display: grid;
  gap: 1px;
}

.admin-problem-card strong {
  color: var(--app-ink);
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
}

.admin-problem-card b {
  color: var(--app-ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.admin-problem-card small {
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.25;
}

.admin-dashboard-section {
  margin-top: 16px;
}

.admin-dashboard-section h2 {
  margin: 0 0 8px;
  color: var(--app-ink);
  font-size: 1.08rem;
  font-weight: 950;
}

.admin-main-menu {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-menu-group {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.admin-menu-group h2 {
  position: sticky;
  top: 8px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef7f2;
  color: var(--app-green);
  font-size: 0.95rem;
  font-weight: 950;
}

.admin-menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px;
}

.admin-menu-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 54px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--app-ink);
  text-decoration: none;
}

.admin-menu-link:hover,
.admin-menu-link:focus {
  border-color: rgba(47, 125, 98, 0.34);
  background: #ffffff;
  color: var(--app-ink);
}

.admin-menu-link i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--app-brand);
  color: #ffffff;
  font-size: 1rem;
}

.admin-menu-link strong,
.admin-menu-link small {
  display: block;
}

.admin-menu-link strong {
  font-size: 0.9rem;
  font-weight: 950;
}

.admin-menu-link small {
  margin-top: 1px;
  color: var(--app-muted);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.25;
}

.planning-template-actions .app-panel-body {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 18px;
  align-items: end;
}

.planning-template-actions .app-panel-body > div {
  display: grid;
  gap: 4px;
}

.planning-template-actions .template-open-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.planning-template-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  justify-content: flex-end;
}

.planning-template-actions label {
  display: grid;
  gap: 4px;
  color: var(--app-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.planning-template-actions input[type="date"] {
  min-width: 170px;
}

.template-check {
  grid-auto-flow: column;
  grid-template-columns: auto 1fr;
  max-width: 280px;
  color: var(--app-ink) !important;
  font-size: 0.86rem !important;
}

.planning-template-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 16px;
}

.planning-template-fullscreen {
  background: #eef2f5;
}

.planning-template-fullscreen .planning-template-page {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 8px;
}

.planning-template-fullscreen .app-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  padding: 10px 14px;
}

.planning-template-fullscreen .app-page-hero h1 {
  font-size: clamp(1.4rem, 2vw, 2.2rem);
}

.planning-template-fullscreen .app-page-hero p:last-child {
  margin: 0;
}

.planning-template-rosters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.template-week-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.template-week-tab {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  background: #eef2f5;
  color: var(--app-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
}

.template-week-tab.is-active {
  background: var(--app-brand);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(15, 92, 66, 0.22);
}

.template-roster-card[data-template-week-panel] {
  display: none;
}

.template-roster-card[data-template-week-panel].is-active {
  display: block;
}

.planning-template-rosters.show-both {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.planning-template-edit-form {
  display: grid;
  gap: 8px;
}

.template-edit-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.55fr) minmax(180px, 0.55fr) auto;
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.template-edit-toolbar > div:first-child {
  display: grid;
  gap: 2px;
}

.template-name-field {
  display: grid;
  gap: 3px;
  color: var(--app-muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.template-name-field .form-control {
  min-height: 34px;
  font-size: 0.84rem;
  font-weight: 800;
}

.template-edit-toolbar strong {
  color: var(--app-ink);
  font-size: 0.98rem;
  font-weight: 950;
}

.template-edit-toolbar span {
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.template-autosave-status {
  color: #087b43;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.template-autosave-status[data-state="pending"],
.template-autosave-status[data-state="saving"] {
  color: #8a5b00;
}

.template-autosave-status[data-state="error"] {
  color: #b42318;
}

.template-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.template-roster-card {
  min-width: 0;
}

.template-roster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.template-roster-header h2 {
  margin: 0;
  color: var(--app-ink);
  font-size: 1.1rem;
  font-weight: 950;
}

.template-roster-header strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f7ef;
  color: #087b43;
  font-size: 0.86rem;
  font-weight: 950;
  white-space: nowrap;
}

.template-roster-scroll {
  max-height: calc(100vh - 270px);
  overflow: auto;
  border-top: 1px solid var(--app-border);
}

.template-roster-location {
  min-width: 900px;
  border-bottom: 3px solid #dbeafe;
}

.template-roster-location h3 {
  position: sticky;
  left: 0;
  z-index: 2;
  margin: 0;
  padding: 6px 8px;
  background: #f8fafc;
  color: var(--app-ink);
  font-size: 0.86rem;
  font-weight: 950;
}

.template-roster-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.68rem;
}

.template-roster-table th,
.template-roster-table td {
  border: 1px solid #cbd5e1;
  padding: 2px;
  vertical-align: top;
}

.template-roster-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #e2e8f0;
  color: var(--app-ink);
  text-align: center;
  font-weight: 950;
}

.template-roster-table thead th:first-child,
.template-roster-table tbody th {
  width: 92px;
}

.template-roster-table thead th span,
.template-roster-table thead th small {
  display: block;
  line-height: 1.05;
}

.template-roster-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.1;
}

.template-roster-table tbody th span,
.template-roster-table tbody th small {
  display: block;
}

.template-roster-table thead th small,
.template-roster-table tbody th small {
  margin-top: 2px;
  color: #087b43;
  font-size: 0.58rem;
  font-weight: 950;
}

.template-roster-table td {
  height: 28px;
  background: #ffffff;
}

.template-shift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px;
  align-items: center;
  min-height: 18px;
  margin-bottom: 1px;
  padding: 1px 3px;
  border-radius: 3px;
  background: #dff3ff;
  color: #0f172a;
  line-height: 1.05;
}

.template-shift.is-open {
  background: #fff36b;
}

.template-shift strong,
.template-shift span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-shift strong {
  font-size: 0.66rem;
  font-weight: 950;
}

.template-shift span {
  font-size: 0.58rem;
  font-weight: 850;
}

.template-shift-edit {
  position: relative;
  display: grid;
  grid-template-columns: minmax(50px, 1fr) 20px 22px 28px 28px 22px;
  gap: 2px;
  align-items: center;
  min-height: 22px;
  margin-bottom: 2px;
  padding: 2px;
  border-radius: 4px;
  background: #dff3ff;
}

.template-shift-edit.is-open {
  background: #fff36b;
}

.template-shift-edit.is-highlighted {
  outline: 3px solid #2563eb;
  outline-offset: 1px;
  background: #dbeafe;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.template-shift-edit.has-conflict {
  border-color: #dc2626;
  background: #fee2e2;
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.3);
}

.template-shift-edit.has-conflict .template-shift-alias {
  background: #b91c1c;
  color: #ffffff;
  border-color: #991b1b;
}

.template-conflict-info {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 3;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid #ffffff;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
}

.template-shift-edit select,
.template-shift-edit input,
.template-worker-info {
  width: 100%;
  height: 18px;
  min-height: 18px;
  padding: 0 2px;
  border: 1px solid #b6c2cf;
  border-radius: 3px;
  background: rgba(255,255,255,0.88);
  color: #0f172a;
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1;
}

.template-worker-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #eff6ff;
  color: #1d4ed8;
}

.template-worker-info i {
  font-size: 0.66rem;
  line-height: 1;
}

.template-worker-info:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.template-shift-edit .code-select {
  appearance: none;
  text-align: center;
}

.template-worker-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.48);
}

.template-worker-modal[hidden] {
  display: none;
}

.template-worker-dialog {
  position: relative;
  width: min(760px, 96vw);
  max-height: 88vh;
  overflow: auto;
  padding: 18px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.template-worker-dialog h2 {
  margin: 0 0 12px;
  color: var(--app-ink);
  font-size: 1.45rem;
  font-weight: 950;
}

.template-worker-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--app-ink);
}

.template-worker-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.template-worker-preferences {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid rgba(47, 125, 98, 0.22);
  border-radius: 10px;
  background: #f3fbf6;
}

.template-worker-preferences h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--app-brand);
}

.template-worker-preferences p {
  margin: 4px 0;
  color: var(--app-ink);
}

.template-pref-free,
.template-pref-work {
  display: inline-flex;
  align-items: center;
  margin: 2px 4px 2px 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.template-pref-free {
  background: #fee2e2;
  color: #991b1b;
}

.template-pref-work {
  background: #dcfce7;
  color: #166534;
}

.template-worker-fields div {
  padding: 8px 10px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: #f8fafc;
}

.template-worker-fields dt {
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.template-worker-fields dd {
  margin: 2px 0 0;
  color: var(--app-ink);
  font-size: 0.9rem;
  font-weight: 850;
  word-break: break-word;
}

.template-summary-table {
  margin: 0;
}

.template-summary-table th,
.template-summary-table td {
  padding: 8px 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.template-summary-table th small {
  display: block;
  margin-top: 1px;
  color: var(--app-muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.worked-duplicate-panel {
  border-color: rgba(245, 158, 11, 0.45);
  background: #fffaf0;
}

.worked-duplicate-panel .app-panel-header {
  border-bottom-color: rgba(245, 158, 11, 0.28);
}

.worked-duplicate-panel .app-panel-header > strong {
  display: inline-grid;
  place-items: center;
  min-width: 96px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  font-weight: 900;
}

.worked-duplicate-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.worked-duplicate-summary span {
  padding: 8px 10px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--app-muted);
  font-size: 0.92rem;
}

.worked-duplicate-panel h3 {
  margin: 18px 0 10px;
  color: var(--app-ink);
  font-size: 1rem;
  font-weight: 900;
}

.worked-duplicate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.template-employee-header {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(360px, 1fr);
  gap: 12px;
  align-items: end;
}

.template-employee-header h2 {
  margin: 0;
}

.template-employee-filters {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(150px, 0.7fr) minmax(130px, 0.7fr);
  gap: 8px;
}

.template-employee-filters .form-control,
.template-employee-filters .form-select {
  min-height: 34px;
  font-size: 0.86rem;
  font-weight: 750;
}

.template-filter-empty {
  margin: 12px 0 0;
  color: var(--app-muted);
  font-weight: 800;
}

.template-employee-hour-row {
  cursor: pointer;
}

.template-employee-hour-row:hover {
  background: #f1f5f9;
}

.template-employee-hour-row.is-selected {
  background: #dbeafe;
  color: #1d4ed8;
}

.template-employee-hour-row.is-selected th,
.template-employee-hour-row.is-selected td {
  box-shadow: inset 0 0 0 999px rgba(219, 234, 254, 0.55);
}

.template-employee-scroll {
  max-height: 62vh;
  overflow: auto;
}

@media (max-width: 800px) {
  .admin-dashboard {
    padding: 6px;
  }

  .admin-dashboard-topbar,
  .admin-dashboard-hero {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-topbar {
    align-items: stretch;
  }

  .admin-dashboard-topbar nav {
    justify-content: stretch;
  }

  .admin-dashboard-topbar nav .btn {
    flex: 1;
  }

  .admin-dashboard-hero,
  .admin-problem-strip,
  .admin-dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .admin-location-bar form,
  .admin-menu-group,
  .admin-menu-list {
    grid-template-columns: 1fr;
  }

  .admin-menu-group h2 {
    position: static;
  }

  .planning-template-actions .app-panel-body,
  .planning-template-grid,
  .planning-template-rosters {
    grid-template-columns: 1fr;
  }

  .template-week-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-week-tab-both {
    display: none;
  }

  .planning-template-rosters.show-both {
    grid-template-columns: 1fr;
  }

  .template-roster-scroll {
    max-height: calc(100dvh - 245px);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .planning-template-actions form {
    justify-content: stretch;
  }

  .planning-template-actions .btn,
  .planning-template-actions label {
    width: 100%;
  }

  .template-employee-header,
  .template-employee-filters {
    grid-template-columns: 1fr;
  }

  .template-edit-toolbar,
  .template-open-form {
    grid-template-columns: 1fr;
  }
}

.view-as-banner {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  color: #7a3f00;
  border-bottom: 1px solid #f5c776;
  background: #fff3cd;
  font-size: 0.92rem;
  font-weight: 750;
}

.view-as-banner a {
  color: #0f5132;
  font-weight: 900;
}

.admin-view-form .app-panel-body {
  display: grid;
  gap: 8px;
}

.admin-view-select-form,
.admin-view-start-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.admin-view-select-form .form-label,
.admin-view-select-form .form-select {
  flex: 1 1 100%;
}

.admin-view-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.admin-view-preview-card .app-panel-body {
  display: grid;
  gap: 10px;
}

.admin-view-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  color: var(--app-brand);
  border: 1px solid rgba(47, 125, 98, 0.25);
  border-radius: 8px;
  background: #f0fdf4;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-view-message-list {
  max-height: 520px;
  overflow: auto;
}

.admin-view-message {
  padding: 12px;
  border: 1px solid var(--app-line);
  border-left: 5px solid var(--app-brand);
  border-radius: 8px;
  background: #fff;
}

.admin-view-message.is-mine {
  border-left-color: #2563eb;
  background: #eff6ff;
}

.admin-view-message.is-unread {
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.16);
}

.admin-view-message header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.admin-view-message header strong {
  color: var(--app-ink);
  font-weight: 950;
}

.admin-view-message header span,
.admin-view-message-meta span {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.admin-view-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.admin-view-message-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f3f4f6;
}

.admin-view-message p,
.admin-view-empty {
  margin: 0;
  color: var(--app-muted);
  font-weight: 720;
}

.admin-view-availability-list {
  max-height: 520px;
  overflow: auto;
}

.admin-view-availability-month {
  display: grid;
  gap: 8px;
}

.admin-view-availability-month h3 {
  margin: 4px 0 0;
  color: var(--app-brand);
  font-size: 0.88rem;
  font-weight: 950;
  text-transform: capitalize;
}

.admin-view-availability-month > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 7px;
}

.admin-view-availability-day {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
}

.admin-view-availability-day b,
.admin-view-availability-day em,
.admin-view-availability-day small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-view-availability-day b {
  color: var(--app-ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.admin-view-availability-day em {
  margin-top: 2px;
  color: var(--app-brand);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 950;
}

.admin-view-availability-day small {
  color: var(--app-muted);
  font-size: 0.7rem;
  font-weight: 760;
}

.admin-view-availability-day.status-available {
  border-color: #86efac;
  background: #dcfce7;
}

.admin-view-availability-day.status-preferred {
  border-color: #fcd34d;
  background: #fef3c7;
}

.admin-view-availability-day.status-unavailable {
  border-color: #fecaca;
  background: #fee2e2;
}

.admin-tile {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  color: var(--app-ink);
  text-decoration: none;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.07);
}

.admin-tile:hover,
.admin-tile:focus {
  color: var(--app-ink);
  border-color: rgba(47, 125, 98, 0.34);
}

.admin-tile i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 8px;
  background: var(--app-brand);
  font-size: 1.25rem;
}

.admin-tile strong,
.admin-tile small {
  display: block;
}

.admin-tile small {
  margin-top: 3px;
  color: var(--app-muted);
  font-weight: 700;
}

.device-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.device-summary-card {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.07);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.device-summary-card:hover,
.device-summary-card.active {
  border-color: var(--app-green);
  box-shadow: 0 12px 30px rgba(45, 130, 96, 0.16);
}

.device-summary-card.active {
  background: #f0fdf7;
}

.device-summary-card:active {
  transform: translateY(1px);
}

.device-summary strong {
  font-size: 1.45rem;
  line-height: 1;
}

.device-summary span {
  color: var(--app-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.device-list {
  display: grid;
  gap: 10px;
}

.device-card[hidden] {
  display: none;
}

.device-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.device-card h2 {
  margin: 0;
  text-align: left;
  font-size: 1.08rem;
}

.device-card header p {
  margin: 3px 0 0;
  color: var(--app-muted);
  font-size: 0.85rem;
}

.device-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.device-status.ok {
  color: #166534;
  background: #dcfce7;
}

.device-status.off {
  color: #7f1d1d;
  background: #fee2e2;
}

.device-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.device-facts div {
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid var(--app-line);
}

.device-facts dt {
  color: var(--app-muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.device-facts dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  font-weight: 760;
}

.device-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.device-chips span {
  padding: 5px 8px;
  color: var(--app-brand);
  border-radius: 999px;
  background: #eef6f2;
  font-size: 0.76rem;
  font-weight: 850;
}

.data-info-grid {
  display: grid;
  gap: 12px;
}

.data-info-grid div,
.data-info-notes p {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
}

.data-info-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.data-info-grid code,
.data-info-table code,
.data-info-notes code {
  color: #1f3f57;
  white-space: normal;
  overflow-wrap: anywhere;
}

.data-info-table th {
  color: var(--app-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.data-info-table td {
  vertical-align: top;
  font-size: 0.9rem;
}

.data-info-table small {
  display: block;
  margin-top: 4px;
  color: var(--app-muted);
}

.data-info-notes {
  display: grid;
  gap: 10px;
}

@media (max-width: 720px) {
  .device-summary,
  .device-facts {
    grid-template-columns: 1fr;
  }

  .device-card header {
    display: grid;
  }
}

.log-filter-grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(180px, 1fr) minmax(135px, 0.55fr) minmax(135px, 0.55fr) minmax(130px, 0.55fr) auto;
  gap: 10px;
}

.log-filter-count {
  margin: -4px 18px 16px;
  color: var(--app-muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.log-list {
  display: grid;
  gap: 10px;
}

.log-item header {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.log-item header span {
  color: var(--app-brand-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.log-item dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.log-item dl div {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: var(--app-surface-soft);
}

.log-item dt {
  color: var(--app-muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.log-item dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.log-item details {
  margin-top: 10px;
}

.log-item pre {
  max-height: 280px;
  margin: 8px 0 0;
  padding: 10px;
  overflow: auto;
  border-radius: 8px;
  background: #111827;
  color: #f8fafc;
  font-size: 0.8rem;
}

.briefing-list {
  display: grid;
  gap: 10px;
}

.inbox-compose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.inbox-compose-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  color: var(--app-ink);
  text-align: left;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.06);
}

.inbox-compose-card i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 8px;
  background: var(--app-brand);
  font-size: 1.15rem;
}

.inbox-compose-card.urgent i {
  background: #b42318;
}

.inbox-compose-card.group i {
  background: #2563eb;
}

.inbox-compose-card strong,
.inbox-compose-card small {
  display: block;
}

.inbox-compose-card small {
  margin-top: 3px;
  color: var(--app-muted);
  font-weight: 750;
  line-height: 1.25;
}

.inbox-compose-modal form {
  display: grid;
  gap: 9px;
}

.inbox-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.inbox-choice-row legend {
  grid-column: 1 / -1;
  margin: 0 0 -2px;
  color: var(--app-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.inbox-choice-row label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
  font-weight: 800;
}

.inbox-compose-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
}

.inbox-compose-status[data-type="error"] {
  background: #fee2e2;
  color: #991b1b;
}

.briefing-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.briefing-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
}

.briefing-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.briefing-category {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 66px;
  padding: 10px;
  color: var(--app-ink);
  text-align: left;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.05);
}

.briefing-category i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--app-brand-2);
  border-radius: 8px;
  background: rgba(47, 125, 98, 0.10);
  font-size: 1rem;
}

.briefing-category strong,
.briefing-category small {
  display: block;
  min-width: 0;
}

.briefing-category strong {
  font-size: 0.9rem;
  line-height: 1.15;
}

.briefing-category small {
  margin-top: 2px;
  color: var(--app-muted);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.15;
}

.briefing-category.active {
  border-color: rgba(47, 125, 98, 0.45);
  background: #eef8f3;
  box-shadow: inset 0 0 0 1px rgba(47, 125, 98, 0.20), 0 10px 24px rgba(23, 32, 51, 0.07);
}

.briefing-category.active i {
  color: #fff;
  background: var(--app-brand-2);
}

.inbox-toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 0.55fr) minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
}

.briefing-tab {
  min-height: 38px;
  color: var(--app-brand);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-weight: 850;
}

.briefing-tab.active {
  color: #fff;
  border-color: var(--app-brand);
  background: var(--app-brand);
}

.briefing-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
}

.briefing-search[hidden] {
  display: none;
}

.briefing-search i {
  color: var(--app-brand-2);
}

.briefing-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.briefing-row {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.briefing-item {
  border-left: 4px solid transparent;
}

.briefing-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.briefing-feed-section {
  display: grid;
  gap: 10px;
}

.briefing-colleague-feed {
  align-content: start;
}

.briefing-colleague-feed .briefing-item {
  max-width: 92%;
  border: 1px solid var(--app-line);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.briefing-colleague-feed .briefing-chat-item.from-other {
  justify-self: start;
  border-left: 4px solid var(--app-brand);
  background: #fff;
}

.briefing-colleague-feed .briefing-chat-item.from-me {
  justify-self: end;
  border-left: 0;
  border-right: 4px solid var(--app-brand-2);
  background: #ecfdf5;
}

.briefing-colleague-feed .briefing-chat-item.from-me .app-panel-body {
  text-align: right;
}

.briefing-colleague-feed .briefing-chat-item.from-me .briefing-row,
.briefing-colleague-feed .briefing-chat-item.from-me .briefing-from,
.briefing-colleague-feed .briefing-chat-item.from-me .briefing-date {
  justify-content: flex-end;
}

.briefing-colleague-feed .briefing-chat-item p {
  font-size: 0.95rem;
  line-height: 1.42;
}

.briefing-chat-speaker {
  color: var(--app-ink) !important;
}

.briefing-thread-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 11px 12px;
  color: var(--app-ink);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.briefing-thread-open {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  text-align: left;
}

.briefing-thread-card.is-new {
  border-color: rgba(47, 125, 98, 0.30);
  background: #ecfdf5;
}

.briefing-thread-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 999px;
  background: var(--app-brand);
  font-size: 1.15rem;
}

.briefing-thread-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.briefing-thread-top {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
}

.briefing-thread-top strong,
.briefing-thread-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.briefing-thread-top strong {
  font-size: 0.98rem;
  font-weight: 900;
}

.briefing-thread-top small {
  flex: 0 0 auto;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.briefing-thread-preview {
  color: var(--app-muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.briefing-thread-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  color: #fff;
  border-radius: 999px;
  background: var(--app-brand-2);
  font-size: 0.75rem;
  font-weight: 900;
}

.briefing-thread-flag {
  color: #d97706;
  font-size: 0.95rem;
}

.briefing-thread-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.22);
  border-radius: 999px;
  background: #fff;
  font-size: 1rem;
}

.briefing-thread-done:hover,
.briefing-thread-done:focus {
  color: #fff;
  background: var(--app-brand-2);
}

.briefing-message-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.briefing-chat-item.from-me .briefing-message-actions,
.conversation-message.from-me .briefing-message-actions {
  justify-content: flex-end;
}

.briefing-message-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--app-muted);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
}

.briefing-message-action.active {
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.35);
  background: #fef3c7;
}

.briefing-message-action.danger {
  color: #991b1b;
}

.briefing-message-action:hover,
.briefing-message-action:focus {
  color: #fff;
  border-color: var(--app-brand);
  background: var(--app-brand);
}

.briefing-message-action.danger:hover,
.briefing-message-action.danger:focus {
  border-color: #b91c1c;
  background: #b91c1c;
}

.briefing-feed-section > header {
  padding: 12px 14px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
}

.briefing-feed-section > header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.briefing-feed-section > header p {
  margin: 3px 0 0;
  color: var(--app-muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.briefing-item.is-new {
  border-left-color: var(--app-brand-2);
}

.briefing-item h2 {
  margin: 8px 0 6px;
  font-size: 1.08rem;
  font-weight: 850;
}

.briefing-item p {
  margin: 0;
  color: var(--app-ink);
  white-space: pre-line;
}

.briefing-item small {
  display: block;
  margin-top: 8px;
  color: var(--app-muted);
  font-weight: 750;
}

.briefing-from,
.briefing-date {
  display: inline-flex !important;
  gap: 5px;
  align-items: center;
}

.briefing-type {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.briefing-category-label {
  padding: 3px 8px;
  color: #fff;
  border-radius: 999px;
  background: var(--app-brand);
  font-size: 0.72rem;
  font-weight: 900;
}

.briefing-state {
  margin-left: auto;
  padding: 3px 8px;
  color: var(--app-muted);
  border: 1px solid var(--app-line);
  border-radius: 999px;
  background: var(--app-surface-soft);
  font-size: 0.72rem;
  font-weight: 850;
}

.briefing-item.is-new .briefing-state {
  color: #166534;
  border-color: rgba(22, 101, 52, 0.20);
  background: #dcfce7;
}

.briefing-reply-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 36px;
  margin-top: 10px;
  padding: 0 12px;
  color: var(--app-brand);
  border: 1px solid rgba(47, 125, 98, 0.25);
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
}

.briefing-read-one {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 36px;
  margin: 10px 0 0 8px;
  padding: 0 12px;
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.22);
  border-radius: 8px;
  background: #ecfdf3;
  font-weight: 900;
}

.briefing-read-one:hover,
.briefing-read-one:focus {
  color: #fff;
  background: #208050;
}

.briefing-reply-button:hover,
.briefing-reply-button:focus {
  color: #fff;
  background: var(--app-brand-2);
}

.reply-modal {
  width: min(100%, 560px);
}

.conversation-history {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: min(58vh, 520px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef7f3 100%);
}

.conversation-message {
  max-width: 82%;
  padding: 9px 11px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 8px;
  background: #fff;
}

.conversation-message.from-other {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.conversation-message.from-me {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: #dcfce7;
  text-align: right;
}

.conversation-message strong {
  display: block;
  color: var(--app-brand);
  font-size: 0.84rem;
}

.conversation-message p {
  margin: 4px 0;
  white-space: pre-line;
}

.conversation-message small,
.conversation-error {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.conversation-error {
  color: #991b1b;
}

.briefing-item.hoog {
  border-color: rgba(180, 35, 24, 0.24);
}

.group-read-list {
  display: grid;
  gap: 12px;
}

.group-read-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.group-read-card h2 {
  margin: 8px 0 4px;
  font-size: 1.15rem;
  text-align: left;
}

.group-read-card header p,
.group-read-body {
  margin: 0;
  color: var(--app-muted);
  white-space: pre-line;
}

.group-read-kpis {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.group-read-kpis span {
  min-width: 86px;
  padding: 7px 9px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
  text-align: center;
  font-size: 0.76rem;
  font-weight: 850;
}

.group-read-kpis strong {
  display: block;
  color: var(--app-ink);
  font-size: 1.1rem;
}

.group-read-body {
  margin-top: 12px;
  color: var(--app-ink);
}

.group-read-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.group-read-columns section {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
}

.group-read-columns h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 900;
}

.group-read-people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.group-read-people span {
  padding: 5px 8px;
  color: #166534;
  border-radius: 999px;
  background: #dcfce7;
  font-size: 0.78rem;
  font-weight: 850;
}

.group-read-people.unread span {
  color: #7f1d1d;
  background: #fee2e2;
}

@media (max-width: 860px) {
  .inbox-compose-grid {
    grid-template-columns: 1fr;
  }

  .briefing-section-grid,
  .group-read-columns {
    grid-template-columns: 1fr;
  }

  .briefing-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-read-card header {
    display: grid;
  }

  .group-read-kpis {
    justify-content: stretch;
  }

  .group-read-kpis span {
    flex: 1 1 92px;
  }

  .inbox-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .briefing-categories {
    grid-template-columns: 1fr;
  }

  .briefing-category {
    min-height: 58px;
  }
}

.announcement-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 32, 51, 0.48);
  overflow: hidden;
}

.announcement-modal {
  width: min(100%, 430px);
  max-height: calc(100vh - 36px);
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(23, 32, 51, 0.28);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.announcement-modal span {
  color: var(--app-brand-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.announcement-modal h2 {
  margin: 5px 0 10px;
  font-size: 1.5rem;
  line-height: 1.12;
}

.announcement-modal p {
  white-space: pre-wrap;
  color: var(--app-ink);
}

.announcement-modal button {
  position: sticky;
  bottom: -22px;
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--app-brand-2);
  color: #fff;
  font-weight: 900;
}

.announcement-form {
  display: grid;
  gap: 8px;
}

.announcement-admin-list {
  display: grid;
  gap: 10px;
}

.announcement-admin-item p {
  margin: 8px 0;
  white-space: pre-wrap;
}

.announcement-admin-item small {
  color: var(--app-muted);
  font-weight: 750;
}

.access-form {
  display: grid;
  gap: 14px;
}

.access-category {
  overflow: hidden;
}

.access-table-wrap {
  overflow-x: auto;
}

.access-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  background: #fff;
}

.access-table th,
.access-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--app-line);
  text-align: center;
  vertical-align: middle;
}

.access-table th:first-child,
.access-table td:first-child {
  text-align: left;
}

.access-table th {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.access-page-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--app-ink);
  font-weight: 850;
}

.access-page-label i {
  color: var(--app-brand);
}

.access-check {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
}

.access-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--app-brand-2);
}

.access-check input:disabled {
  opacity: 0.45;
}

.access-actions {
  position: sticky;
  bottom: 76px;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 34px rgba(23, 32, 51, 0.10);
}

@media (max-width: 640px) {
  .log-filter-grid,
  .log-item dl {
    grid-template-columns: 1fr;
  }
}

.availability-page {
  display: block;
}

.availability-calendar #calendar {
  margin-bottom: 0;
}

.legend-grid {
  display: grid;
  gap: 14px;
}

.legend-group {
  display: grid;
  gap: 8px;
}

.legend-group h3 {
  margin: 0 0 2px;
  color: var(--app-muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
}

.legend-item strong {
  font-size: 0.94rem;
}

.legend-swatch,
.legend-text {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(23, 32, 51, 0.14);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 850;
}

.swatch-red {
  background: #dc2626;
}

.swatch-green {
  background: #16a34a;
}

.swatch-yellow {
  background: #fde047;
}

.swatch-grey {
  background: #d1d5db;
}

.text-day {
  color: #111827;
  background: #e5e7eb;
}

.text-evening {
  color: #dc2626;
  background: #e5e7eb;
}

.text-full {
  color: #fff;
  background: #9ca3af;
}

.users-page {
  display: block;
}

.users-toolbar .app-panel-body {
  padding: 12px;
}

.users-toolbar .input-group-text {
  color: var(--app-brand-2);
  border-color: var(--app-line);
  background: var(--app-surface-soft);
}

.users-list {
  display: grid;
  gap: 10px;
}

.users-alias-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.users-grouped-list {
  display: grid;
  gap: 16px;
}

.users-location-group {
  display: grid;
  gap: 10px;
}

.users-location-group[hidden] {
  display: none;
}

.users-location-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
}

.users-location-group h2 {
  margin: 0;
  font-size: 1rem;
  text-align: left;
}

.users-location-group > header span {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--app-brand);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.user-alias-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  color: var(--app-ink);
  text-align: left;
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.06);
}

.user-alias-row[hidden] {
  display: none;
}

.user-alias-row:hover,
.user-alias-row:focus {
  border-color: rgba(47, 125, 98, 0.38);
  outline: none;
}

.user-alias-row span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.user-alias-row strong {
  font-size: 1rem;
  font-weight: 900;
}

.user-alias-row small {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card {
  padding: 14px;
  border: 1px solid rgba(23, 32, 51, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.07);
}

.user-card[hidden] {
  display: none;
}

.user-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.user-card h2 {
  margin: 0;
  font-size: 1.08rem;
  text-align: left;
}

.user-card header p {
  margin: 3px 0 0;
  color: var(--app-muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.briefing-from {
  margin: 0 0 8px !important;
  color: var(--app-brand) !important;
  font-weight: 850 !important;
}

.user-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--app-muted);
  background: #edf2f7;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.user-status.active {
  color: #166534;
  background: #dcfce7;
}

.user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.user-app-message {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid rgba(47, 125, 98, 0.24);
  border-radius: 999px;
  background: #eef6f2;
  color: var(--app-brand);
  font-size: 0.74rem;
  font-weight: 850;
}

.role-badge {
  color: var(--app-brand);
  background: #eef6f2;
}

.role-select {
  margin: 0 0 12px;
}

.user-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.user-card dl div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--app-line);
}

.user-card dt {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.user-card dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.user-profile-details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--app-line);
}

.user-profile-details summary {
  cursor: pointer;
  color: var(--app-brand);
  font-weight: 900;
}

.user-profile-details .employee-profile-grid {
  margin-top: 10px;
}

.user-profile-modal {
  width: min(900px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.user-profile-last-seen {
  margin: -4px 0 12px;
  color: var(--app-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.user-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.user-profile-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--app-line);
}

.user-profile-footer .btn-success {
  margin-left: auto;
}

.user-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--app-line);
}

.user-profile-tabs button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px 8px 0 0;
  background: var(--app-surface-soft);
  color: var(--app-ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.user-profile-tabs button.active {
  border-color: rgba(47, 125, 98, 0.4);
  background: #fff8a8;
  color: #111827;
}

.user-profile-tab-content {
  display: block;
}

.user-profile-tab-panel {
  display: none;
}

.user-profile-tab-panel.active {
  display: grid;
  gap: 12px;
}

.user-profile-tab-panel h3 {
  margin: 0;
  color: var(--app-brand);
  font-size: 1rem;
  text-align: left;
}

.user-profile-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.user-profile-edit-grid label {
  display: grid;
  gap: 4px;
}

.user-live-validation input {
  border-color: var(--app-line);
}

.user-live-validation.is-invalid input {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.user-live-validation.is-valid input {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.10);
}

.user-validation-message {
  min-height: 16px;
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.user-live-validation.is-invalid .user-validation-message {
  color: #b91c1c;
}

.user-live-validation.is-valid .user-validation-message {
  color: #047857;
}

.user-profile-edit-grid label > span,
.user-yesno-field legend {
  color: var(--app-muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.user-yesno-field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.user-yesno-field legend {
  grid-column: 1 / -1;
  float: none;
  width: auto;
  margin: 0;
}

.user-yesno-field label {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
  color: var(--app-ink);
  cursor: pointer;
}

.user-yesno-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.user-yesno-field label span {
  color: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: none;
}

.user-yesno-field label:has(input:checked),
.user-yesno-field label.active {
  border-color: rgba(47, 125, 98, 0.45);
  background: #eaf7ef;
  color: #176047;
  box-shadow: inset 0 0 0 1px rgba(47, 125, 98, 0.18);
}

.user-rating-field {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.user-rating-field legend {
  float: none;
  width: auto;
  margin: 0;
  color: var(--app-muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.user-rating-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.user-rating-options label {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
  color: var(--app-muted);
  cursor: pointer;
}

.user-rating-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.user-rating-options span {
  color: inherit;
  font-size: 0.95rem;
  font-weight: 950;
  text-transform: none;
}

.user-rating-options label:has(input:checked),
.user-rating-options label.active {
  border-color: rgba(245, 158, 11, 0.55);
  background: #fff7ed;
  color: #9a3412;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.24);
}

.user-workplace-picker {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
}

.user-workplace-picker legend {
  float: none;
  width: auto;
  margin: 0;
  color: var(--app-muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.user-workplace-picker label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.user-workplace-picker input {
  width: 18px;
  height: 18px;
  accent-color: var(--app-brand);
}

.user-workplace-picker span {
  color: var(--app-ink);
  font-size: 0.92rem;
  text-transform: none;
}

.user-workarea-picker {
  gap: 10px;
}

.user-workarea-group {
  display: grid;
  gap: 6px;
}

.user-workarea-group > strong {
  color: var(--app-ink);
  font-size: 0.9rem;
}

.user-workarea-group > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 6px;
}

.user-workarea-picker label {
  min-height: 34px;
  padding-block: 6px;
}

.employee-notes-panel,
.employee-roster-panel {
  display: grid;
  gap: 12px;
}

.employee-note-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.employee-note-input label,
.employee-roster-note {
  display: grid;
  gap: 5px;
}

.employee-note-input span,
.employee-roster-note span {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.employee-note-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.employee-note-item {
  padding: 10px 12px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: #fff;
}

.employee-note-item p {
  margin: 0 0 6px;
  color: var(--app-ink);
}

.employee-note-item small {
  color: var(--app-muted);
  font-weight: 700;
}

.employee-roster-oth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(47, 125, 98, 0.24);
  border-radius: 999px;
  background: #f3fbf6;
  color: var(--app-ink);
  font-weight: 800;
}

.employee-roster-panel > p {
  margin: 0;
  color: var(--app-muted);
}

.employee-roster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.employee-roster-grid fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: #fff;
}

.employee-roster-grid legend {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  color: var(--app-brand);
  font-size: 0.85rem;
  font-weight: 900;
}

.employee-roster-day {
  display: grid;
  grid-template-columns: 34px repeat(3, minmax(0, 1fr));
  gap: 5px;
  align-items: center;
}

.employee-roster-day strong {
  color: var(--app-ink);
}

.employee-roster-day label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--app-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.worked-employee-row {
  cursor: pointer;
}

.worked-employee-row:hover,
.worked-employee-row:focus {
  outline: 2px solid rgba(47, 125, 98, 0.22);
  outline-offset: -2px;
  background: #f3fbf6;
}

.worked-detail-modal {
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.worked-detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.worked-detail-summary span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--app-ink);
  font-weight: 800;
}

.weekly-contract-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}

.weekly-contract-filterbar {
  display: grid;
  grid-template-columns: 130px minmax(220px, 360px);
  gap: 10px;
  margin-bottom: 12px;
}

.weekly-contract-filterbar label {
  display: grid;
  gap: 5px;
}

.weekly-contract-filterbar span {
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.weekly-contract-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: #fff;
}

.weekly-contract-row span {
  min-width: 0;
}

.weekly-contract-row strong,
.weekly-contract-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-contract-row small {
  color: var(--app-muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.weekly-contract-row input {
  min-height: 36px;
  font-weight: 900;
  text-align: right;
}

.weekly-contract-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

@media (max-width: 620px) {
  .weekly-contract-filterbar,
  .weekly-contract-row {
    grid-template-columns: 1fr;
  }
}

.social-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.social-summary-grid article {
  display: grid;
  gap: 3px;
  min-height: 86px;
  padding: 13px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.social-summary-grid span {
  color: var(--app-muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-summary-grid strong {
  color: var(--app-ink);
  font-size: 1.05rem;
  line-height: 1.15;
}

.social-summary-grid small {
  color: var(--app-muted);
  font-weight: 750;
}

.user-social-summary {
  margin-top: -2px;
  margin-bottom: 14px;
}

.performance-filter-form {
  display: grid;
  grid-template-columns: 170px minmax(190px, 1fr) minmax(170px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
}

.performance-filter-form label {
  display: grid;
  gap: 5px;
}

.performance-filter-form span {
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.performance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.performance-calendar-panel,
.performance-detail-panel {
  min-width: 0;
}

.performance-calendar-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.performance-calendar-header h2,
.performance-calendar-header p {
  margin: 0;
  text-align: center;
}

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

.performance-weekday {
  padding: 6px;
  color: var(--app-muted);
  font-size: 0.78rem;
  text-align: center;
  text-transform: uppercase;
}

.performance-day {
  display: grid;
  align-content: start;
  gap: 3px;
  min-height: 88px;
  padding: 8px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: #fff;
  color: var(--app-ink);
  text-align: left;
}

.performance-day.empty {
  border: 0;
  background: transparent;
}

.performance-day span {
  font-weight: 950;
}

.performance-day strong {
  color: var(--app-brand);
  font-size: 0.95rem;
}

.performance-day small {
  color: var(--app-muted);
  font-weight: 750;
}

.performance-day.has-hours {
  background: #f3fbf6;
  border-color: rgba(47, 125, 98, 0.28);
  cursor: pointer;
}

.performance-day.has-warning {
  background: #fee2e2;
  border-color: #ef4444;
}

.performance-day.has-warning span,
.performance-day.has-warning strong,
.performance-day.has-warning small {
  color: #7f1d1d;
}

.performance-day.has-social {
  border-color: rgba(36, 73, 96, 0.28);
}

.performance-social-badge {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef2ff;
  color: #244960;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
}

.performance-social-badge.vacationHours,
.performance-social-badge.holiday {
  background: #fff7ed;
  color: #9a3412;
}

.performance-social-badge.overtimeNet,
.performance-social-badge.overtime150 {
  background: #fef2f2;
  color: #991b1b;
}

.performance-social-badge.sick,
.performance-social-badge.justifiedAbsence,
.performance-social-badge.timeCredit {
  background: #f1f5f9;
  color: #334155;
}

.performance-social-badge.recuperation {
  background: #ecfdf5;
  color: #047857;
}

.performance-day.today {
  outline: 2px solid rgba(245, 158, 11, 0.45);
}

.performance-day.selected {
  background: var(--app-brand);
  border-color: var(--app-brand);
  color: #fff;
}

.performance-day.selected strong,
.performance-day.selected small,
.performance-day.selected .performance-social-badge {
  color: #fff;
}

.performance-day.selected .performance-social-badge {
  background: rgba(255, 255, 255, 0.18);
}

.performance-week-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.performance-week-strip span,
.performance-week-strip button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(47, 125, 98, 0.2);
  border-radius: 999px;
  background: #eef8f2;
  color: var(--app-brand);
  font-size: 0.82rem;
  font-weight: 850;
}

.performance-week-strip button {
  cursor: pointer;
}

.performance-week-strip button:hover,
.performance-week-strip button.selected {
  border-color: rgba(47, 125, 98, 0.45);
  background: var(--app-brand);
  color: #fff;
}

.performance-week-strip b {
  color: var(--app-ink);
}

.performance-week-strip button:hover b,
.performance-week-strip button.selected b {
  color: #fff;
}

.performance-detail-panel th small {
  display: block;
  color: var(--app-muted);
  font-size: 0.74rem;
}

.template-summary-table tr.performance-row-warning > th,
.template-summary-table tr.performance-row-warning > td {
  background: #fee2e2;
  color: #7f1d1d;
}

.template-summary-table tr.performance-row-warning strong,
.template-summary-table tr.performance-row-warning small {
  color: #7f1d1d;
}

.performance-edit-button {
  white-space: nowrap;
}

.performance-edit-modal {
  max-width: 460px;
}

.performance-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.performance-edit-grid label {
  display: grid;
  gap: 6px;
}

.performance-edit-grid span {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.performance-change-log {
  margin-top: 6px;
  font-size: 0.82rem;
}

.performance-change-log summary {
  cursor: pointer;
  color: var(--app-brand);
  font-weight: 900;
}

.performance-change-log div {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  padding: 7px 8px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
}

.performance-change-log span,
.performance-change-log small {
  color: var(--app-muted);
}

.performance-source-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.performance-source-pill.clock {
  background: #ecfdf5;
  color: #047857;
}

.performance-source-pill.social {
  background: #eef2ff;
  color: #244960;
}

.user-performance-page {
  padding-bottom: 96px;
}

@media (max-width: 1000px) {
  .performance-layout,
  .performance-filter-form {
    grid-template-columns: 1fr;
  }

  .social-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .performance-calendar {
    gap: 4px;
  }

  .performance-day {
    min-height: 70px;
    padding: 6px;
  }

  .performance-day strong,
  .performance-day small,
  .performance-week-strip span {
    font-size: 0.72rem;
  }

  .social-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .employee-note-input,
  .employee-roster-grid {
    grid-template-columns: 1fr;
  }

  .employee-roster-day {
    grid-template-columns: 30px 1fr;
  }
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.contact-actions a,
.contact-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  color: var(--app-brand);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-actions a:hover,
.contact-actions a:focus,
.contact-actions button:hover,
.contact-actions button:focus {
  border-color: rgba(47, 125, 98, 0.35);
  color: var(--app-brand-2);
}

.contact-actions button {
  cursor: pointer;
}

.colleagues-page {
  width: min(100%, 980px);
}

.colleague-groups {
  display: grid;
  gap: 14px;
}

.colleague-list {
  display: grid;
  gap: 8px;
}

.colleague-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
}

.colleague-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  color: #fff;
  border-radius: 50%;
  background: var(--app-brand);
  font-size: 0.9rem;
  font-weight: 900;
}

.colleague-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.colleague-main {
  display: grid;
  min-width: 0;
}

.colleague-main strong,
.colleague-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.colleague-main strong {
  font-size: 0.98rem;
  font-weight: 850;
}

.colleague-main span {
  color: var(--app-muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.colleague-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--app-brand);
  border: 1px solid rgba(47, 125, 98, 0.22);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.contact-icon:hover,
.contact-icon:focus {
  color: #fff;
  background: var(--app-brand-2);
}

button.contact-icon {
  appearance: none;
  cursor: pointer;
}

@media (max-width: 575.98px) {
  .colleague-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .colleague-avatar {
    width: 42px;
    height: 42px;
  }

  .colleague-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 52px;
  }
}

.app-message-overlay {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(23, 32, 51, 0.52);
}

.app-message-overlay[hidden] {
  display: none;
}

.app-message-modal {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(100%, 460px);
  max-height: calc(100vh - 32px);
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(23, 32, 51, 0.28);
  overflow-y: auto;
}

.app-message-modal h2 {
  margin: 0;
  text-align: left;
}

.app-message-modal form {
  display: grid;
  gap: 9px;
}

.app-message-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  color: var(--app-brand);
}

.empty-state {
  padding: 18px;
  color: var(--app-muted);
  border: 1px dashed var(--app-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.roles-page .role-card .field-label {
  margin: 0 0 6px;
}

.melding-toast {
  position: fixed;
  right: 14px;
  bottom: 108px;
  left: 14px;
  z-index: 1100;
  display: none;
  max-width: 640px;
  margin: 0 auto;
  padding: 13px 14px;
  color: #fff;
  border-radius: 8px;
  background: var(--app-brand);
  box-shadow: 0 16px 34px rgba(23, 32, 51, 0.24);
}

.melding-toast.show {
  display: block;
}

.melding-toast.error {
  background: var(--app-danger);
}

.location-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.location-filter a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--app-ink);
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.location-filter a.active {
  color: #fff;
  border-color: var(--app-brand-2);
  background: var(--app-brand-2);
}

@media (min-width: 768px) {
  .location-filter {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card,
.accordion-item,
.dashboard-panel,
.melding-panel,
.melding-card {
  border-color: rgba(23, 32, 51, 0.09) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.07);
}

.card {
  overflow: hidden;
}

.card-header,
.accordion-button {
  background: #fff;
  color: var(--app-ink);
  font-weight: 800;
}

.accordion-button:not(.collapsed) {
  color: var(--app-brand);
  background: #eef6f2;
  box-shadow: none;
}

.btn,
.form-control,
.form-select {
  border-radius: 8px;
}

.btn-success,
.submit-button {
  background: var(--app-brand-2) !important;
  border-color: var(--app-brand-2) !important;
}

.btn-outline-success {
  color: var(--app-brand-2);
  border-color: rgba(47, 125, 98, 0.55);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  color: #fff;
  background: var(--app-brand-2);
  border-color: var(--app-brand-2);
}

table {
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--app-line);
  vertical-align: top;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th {
  width: 38%;
  color: var(--app-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

td {
  color: var(--app-ink);
  overflow-wrap: anywhere;
}

#overzicht {
  display: grid;
  gap: 10px;
}

#overzicht .card {
  border: 1px solid var(--app-line);
}

#overzicht .card .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
  height: auto;
  line-height: 1.2;
  padding: 12px;
}

#overzicht .card-body {
  padding: 10px 12px 12px;
}

p.card-text,
p.werkdatum,
p.werkuren {
  height: auto;
  line-height: 1.35;
}

p.werkdatum,
p.werkuren {
  margin: 0;
}

.werkdatum {
  float: none;
  clear: none;
  font-weight: 760;
}

.werkuren {
  float: none;
  color: var(--app-muted);
  font-size: 0.92rem;
}

.werktijd {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  height: auto;
  min-height: 54px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--app-line);
  border-left: 4px solid var(--app-brand-2);
  border-radius: 8px;
  background: #fff;
}

.accordion-body .werktijd {
  gap: 10px;
}

.accordion-body .werkdatum {
  display: block;
  color: var(--app-ink);
  font-size: 0.98rem;
}

.accordion-body .werkdatum i {
  display: block;
  margin-bottom: 2px;
  color: var(--app-ink);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 820;
}

.accordion-body .werkuren {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  color: #14532d;
  border: 1px solid rgba(47, 125, 98, 0.25);
  border-radius: 999px;
  background: #dcfce7;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.OW {
  color: #fff !important;
  border-left-color: var(--app-danger) !important;
  background: var(--app-danger) !important;
}

.OW .werkuren,
.OW i {
  color: rgba(255, 255, 255, 0.86) !important;
}

.accordion-body .OW .werkuren,
.schedule-page .OW .werkuren {
  color: #7f1d1d !important;
  border-color: rgba(127, 29, 29, 0.24);
  background: #fff;
}

.accordion-body .OW .werkdatum i,
.schedule-page .OW .werkdatum i {
  color: rgba(255, 255, 255, 0.88) !important;
}

#calendar {
  max-width: 100%;
  margin-bottom: 16px;
}

#calendar div.box {
  border-radius: 8px 8px 0 0;
  background: var(--app-brand) !important;
}

#calendar div.box-content {
  border-color: var(--app-line);
  border-radius: 0 0 8px 8px;
  background: #fff;
}

body #calendar ul.dates li.has-open-shift {
  border: 2px solid #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.16) !important;
  background: #fff7f7;
}

@media (max-width: 575.98px) {
  body > .container:not(.footermenu) {
    width: calc(100% - 20px);
    padding: 14px;
  }

  .app-topbar .navbar-brand .brand-title {
    max-width: 164px;
  }

  table,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--app-line);
  }

  tr:last-child {
    border-bottom: 0;
  }

  th,
  td {
    padding: 4px 12px;
    border-bottom: 0;
  }

  th {
    font-size: 0.76rem;
    text-transform: uppercase;
  }

  #overzicht .card .card-header {
    flex-direction: column;
  }
}

@media (min-width: 768px) {
  body:not(.loginbody) {
    padding-bottom: 104px;
  }

  .app-topbar .navbar-collapse {
    padding-top: 0;
  }

  .app-topbar .navbar-brand img {
    width: 56px;
    height: 56px !important;
  }

  .app-topbar .navbar-brand .brand-title {
    max-width: none;
  }

  .app-tabbar.navbaroverzicht {
    right: 24px;
    bottom: 18px;
    left: 24px;
    height: 84px;
  }

  .werktijd {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .accordion-body .werktijd {
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  }

  .accordion-body .werkuren {
    justify-self: end;
  }
}

.application-page {
  min-height: 100vh;
  padding: clamp(14px, 3vw, 34px);
  color: var(--app-ink);
  background: linear-gradient(135deg, #eef8f3, #fff7e8 46%, #f4f7f8);
}

.application-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.application-card {
  display: grid;
  gap: 18px;
}

.application-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: clamp(20px, 5vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(236, 253, 245, 0.94)),
    linear-gradient(135deg, rgba(47, 125, 98, 0.12), rgba(245, 158, 11, 0.10));
  box-shadow: 0 28px 70px rgba(23, 32, 51, 0.18);
  overflow: hidden;
}

.application-hero img {
  width: min(190px, 58vw);
  height: auto;
  margin-bottom: 8px;
}

.application-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.35rem, 6vw, 4.65rem);
  line-height: 0.96;
}

.application-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--app-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.application-hero-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.application-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.application-hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(47, 125, 98, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #14532d;
  font-size: 0.86rem;
  font-weight: 850;
}

.application-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.application-perks div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(47, 125, 98, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
}

.application-perks i {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--app-brand-2);
  font-size: 1.1rem;
}

.application-perks strong {
  color: var(--app-ink);
  line-height: 1.1;
}

.application-perks span {
  color: var(--app-muted);
  font-size: 0.9rem;
}

.application-form {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid rgba(23, 32, 51, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 58px rgba(23, 32, 51, 0.14);
}

.application-form-intro {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-left: 5px solid var(--app-brand-2);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.96), rgba(255, 251, 235, 0.76));
}

.application-form-intro span {
  color: #047857;
  font-size: 0.78rem;
  font-weight: 920;
  text-transform: uppercase;
}

.application-form-intro h2 {
  margin: 0;
  text-align: left;
  font-size: 1.35rem;
}

.application-form-intro p {
  margin: 0;
  color: var(--app-muted);
}

.application-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(47, 125, 98, 0.16);
  border-radius: 8px;
  background: rgba(236, 253, 245, 0.56);
}

.application-section h2 {
  margin: 0;
  text-align: left;
  font-size: 1.15rem;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.application-grid-narrow {
  grid-template-columns: minmax(0, 1fr);
}

.application-form label,
.application-form fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
}

.application-form fieldset {
  padding: 0;
  border: 0;
}

.application-form span,
.application-form legend {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.application-form input,
.application-form select,
.application-form textarea,
.application-admin-filters input,
.application-admin-filters select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(100, 116, 139, 0.26);
  border-radius: 8px;
  background: #fff;
  color: var(--app-ink);
  font: inherit;
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.04);
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  border-color: var(--app-brand-2);
  box-shadow: 0 0 0 3px rgba(47, 125, 98, 0.16);
  outline: none;
}

.application-form textarea {
  min-height: 104px;
  resize: vertical;
}

.application-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.application-options.compact-options {
  grid-template-columns: repeat(auto-fit, minmax(120px, 180px));
}

.application-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid rgba(100, 116, 139, 0.20);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.05);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.application-options label:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 125, 98, 0.42);
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.09);
}

.application-options label:has(input:checked) {
  border-color: rgba(47, 125, 98, 0.62);
  background: #ecfdf5;
}

.application-options input {
  width: 18px;
  min-height: 18px;
}

.application-options span {
  color: var(--app-ink);
  font-size: 0.92rem;
  text-transform: none;
}

.application-vacancy-choice {
  padding: 16px;
  border: 1px solid rgba(47, 125, 98, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.application-vacancy-choice > p {
  margin: -4px 0 12px;
  color: var(--app-muted);
}

.application-vacancy-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.application-vacancy-card,
.application-open-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.06);
}

.application-vacancy-card:has(input:checked) {
  border-color: rgba(47, 125, 98, 0.68);
  background: #ecfdf5;
}

.application-vacancy-card input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.application-vacancy-card span,
.application-open-box {
  color: var(--app-ink);
}

.application-vacancy-card span {
  display: grid;
  gap: 3px;
}

.application-vacancy-card small,
.application-open-box span {
  color: var(--app-muted);
  font-size: 0.88rem;
}

.application-vacancy-card em {
  color: #047857;
  font-size: 0.88rem;
  font-style: normal;
}

.application-consent {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  padding: 12px;
  border: 1px solid rgba(47, 125, 98, 0.22);
  border-radius: 8px;
  background: #ecfdf5;
}

.application-consent input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.application-consent span {
  color: var(--app-ink);
  font-size: 0.95rem;
  text-transform: none;
}

.application-submit,
.application-admin-filters button,
.application-admin-actions button {
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid var(--app-brand-2);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--app-brand-2), #047857);
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(47, 125, 98, 0.22);
}

.application-privacy {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.92rem;
}

.application-hp {
  position: absolute;
  left: -10000px;
}

.application-success,
.application-errors {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 8px;
}

.application-success {
  border: 1px solid rgba(47, 125, 98, 0.22);
  background: #ecfdf5;
}

.application-success i {
  color: var(--app-brand-2);
  font-size: 1.8rem;
}

.application-success h2,
.application-success p,
.application-errors ul {
  margin: 0;
}

.application-errors {
  display: block;
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: #fef2f2;
}

.application-admin-filters,
.application-admin-card,
.vacancy-admin-panel {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(23, 32, 51, 0.08);
}

.applications-admin-shell {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.application-admin-filters {
  padding: 14px;
}

.vacancy-admin-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
}

.vacancy-admin-panel:not([open]) {
  padding-bottom: 12px;
}

.vacancy-admin-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.vacancy-admin-summary::-webkit-details-marker {
  display: none;
}

.vacancy-admin-summary h2,
.vacancy-admin-summary p {
  margin: 0;
}

.vacancy-admin-summary > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  color: var(--app-brand-2);
  background: #fff;
}

.vacancy-admin-panel[open] .vacancy-admin-summary > span {
  transform: rotate(180deg);
}

.vacancy-admin-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.vacancy-admin-header h2,
.vacancy-admin-header p {
  margin: 0;
}

.vacancy-admin-header h2 {
  font-size: 1.35rem;
}

.vacancy-admin-header > span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #064e3b;
  background: #dcfce7;
  font-weight: 900;
}

.vacancy-admin-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(5, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
}

.vacancy-admin-form label {
  display: grid;
  gap: 5px;
}

.vacancy-admin-form span {
  color: var(--app-muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.vacancy-admin-form input,
.vacancy-admin-form select {
  min-height: 42px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
}

.vacancy-admin-wide {
  grid-column: 1 / -2;
}

.vacancy-admin-form button,
.vacancy-admin-card-actions button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--app-brand-2);
  border-radius: 8px;
  color: #fff;
  background: var(--app-brand-2);
  font-weight: 850;
}

.vacancy-admin-list {
  display: grid;
  gap: 8px;
}

.vacancy-admin-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-soft);
}

.vacancy-admin-card strong,
.vacancy-admin-card span,
.vacancy-admin-card small {
  display: block;
}

.vacancy-admin-card p {
  margin: 4px 0;
}

.vacancy-admin-card.status-gepauzeerd,
.vacancy-admin-card.status-archief {
  opacity: 0.68;
}

.vacancy-admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.vacancy-admin-card-actions > span {
  min-width: 88px;
  color: var(--app-muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.application-status-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 150px));
  gap: 10px;
  justify-content: start;
  margin-bottom: 14px;
}

.application-status-overview a {
  display: grid;
  gap: 2px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  color: var(--app-ink);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
}

.application-status-overview a.active,
.application-status-overview a:hover,
.application-status-overview a:focus {
  border-color: rgba(47, 125, 98, 0.46);
  background: #ecfdf5;
}

.application-status-overview span {
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.application-status-overview strong {
  font-size: 1.55rem;
  line-height: 1;
}

.application-admin-filters form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto;
  gap: 12px;
  align-items: end;
}

.applications-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.application-list-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.application-list-heading h2,
.application-list-heading p {
  margin: 0;
}

.application-list-heading h2 {
  font-size: 1.25rem;
}

.application-list-heading a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(47, 125, 98, 0.32);
  border-radius: 8px;
  color: var(--app-brand-2);
  background: #fff;
  font-weight: 850;
  text-decoration: none;
}

.application-admin-card {
  padding: 16px;
}

.application-admin-card > .application-admin-grid,
.application-admin-card > details,
.application-admin-card > .application-admin-actions,
.application-admin-card > .application-notes {
  display: none;
}

.application-admin-card.target-application,
.application-admin-card:target {
  border-color: var(--app-brand-2);
  box-shadow: 0 0 0 3px rgba(47, 125, 98, 0.18), 0 18px 38px rgba(23, 32, 51, 0.12);
}

.application-admin-card > header,
.application-admin-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.application-card-main p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.application-card-main p span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #14532d;
  background: #dcfce7;
  font-size: 0.82rem;
  font-weight: 850;
}

.application-card-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(120px, 0.8fr) minmax(120px, 0.7fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--app-line);
}

.application-card-summary > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.application-card-summary strong {
  color: var(--app-ink);
  font-size: 0.9rem;
}

.application-card-summary span {
  color: var(--app-muted);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-card-summary button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--app-brand-2);
  border-radius: 8px;
  color: #fff;
  background: var(--app-brand-2);
  font-weight: 850;
}

.application-modal-open {
  overflow: hidden;
}

.application-modal[hidden] {
  display: none;
}

.application-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.48);
}

.application-modal-panel {
  position: relative;
  width: min(100%, 1080px);
  max-height: min(92vh, 980px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.application-modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  color: var(--app-ink);
  background: #fff;
}

.application-modal-header {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding-right: 50px;
}

.application-modal-header h2,
.application-modal-header p {
  margin: 0;
  text-align: left;
}

.application-admin-card h2 {
  margin: 6px 0 2px;
  text-align: left;
  font-size: 1.45rem;
}

.application-admin-card p {
  margin: 0;
  color: var(--app-muted);
}

.application-contact {
  display: grid;
  gap: 6px;
  text-align: right;
}

.application-contact a {
  color: var(--app-brand-2);
  font-weight: 800;
  text-decoration: none;
}

.application-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--app-surface-soft);
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-nieuw,
.status-te_bellen,
.status-gesprek {
  color: #064e3b;
  background: #dcfce7;
}

.status-aangenomen {
  color: #14532d;
  background: #bbf7d0;
}

.status-afgewezen,
.status-archief {
  color: #64748b;
  background: #f1f5f9;
}

.application-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.application-admin-grid div {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 8px;
  background: var(--app-surface-soft);
}

.application-admin-grid strong,
.application-admin-filters span {
  color: var(--app-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.application-detail-text {
  display: grid;
  gap: 8px;
  padding: 12px 0;
}

.application-detail-text h3 {
  margin: 0;
  font-size: 1rem;
}

.application-workdocument {
  margin: 12px 0;
  border: 1px solid rgba(47, 125, 98, 0.20);
  border-radius: 8px;
  background: #fbfefc;
  overflow: hidden;
}

.application-workdocument > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  color: var(--app-ink);
  font-weight: 900;
}

.application-workdocument > summary::-webkit-details-marker {
  display: none;
}

.application-workdocument > summary strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #14532d;
  background: #dcfce7;
  font-size: 0.8rem;
}

.application-workdocument form {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-top: 1px solid rgba(47, 125, 98, 0.14);
}

.application-workdocument-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.application-workdocument-grid section {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
}

.application-workdocument-grid h3 {
  margin: 0;
  font-size: 1rem;
}

.application-workdocument-grid ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--app-muted);
  font-size: 0.84rem;
}

.application-workdocument-grid li {
  line-height: 1.25;
}

.application-workdocument-grid textarea {
  width: 100%;
  min-height: 150px;
  padding: 9px 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--app-ink);
  resize: vertical;
}

.application-workdocument-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 2px;
}

.application-workdocument-footer span {
  color: var(--app-muted);
  font-size: 0.86rem;
}

.application-workdocument-footer button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--app-brand-2);
  border-radius: 8px;
  color: #fff;
  background: var(--app-brand-2);
  font-weight: 850;
}

.application-admin-actions form {
  display: flex;
  gap: 8px;
  flex: 1;
}

.application-admin-actions .application-interview-form {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(100px, 130px) minmax(180px, 1fr) auto;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(47, 125, 98, 0.18);
  border-radius: 8px;
  background: #f8fafc;
}

.application-interview-form label {
  display: grid;
  gap: 4px;
}

.application-interview-form label span {
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.application-admin-actions .application-create-employee-form {
  flex: 0 0 auto;
}

.application-create-employee-form button {
  border-color: #047857;
  background: linear-gradient(135deg, #047857, #065f46);
}

.application-created-employee {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(47, 125, 98, 0.32);
  border-radius: 8px;
  color: var(--app-brand-2);
  background: #ecfdf5;
  font-weight: 850;
  text-decoration: none;
}

.application-admin-actions select,
.application-admin-actions input {
  min-height: 42px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
}

.application-notes {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--app-line);
}

.application-notes p {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--app-surface-soft);
}

.application-notes span {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  .application-hero,
  .application-perks {
    grid-template-columns: 1fr;
  }

  .application-hero {
    padding: 20px;
  }

  .application-hero-panel {
    min-height: 170px;
  }

  .application-grid,
  .application-admin-filters form,
  .vacancy-admin-form {
    grid-template-columns: 1fr;
  }

  .vacancy-admin-wide {
    grid-column: auto;
  }

  .application-admin-card > header,
  .application-admin-actions,
  .application-admin-actions form,
  .application-admin-actions .application-interview-form,
  .application-workdocument-footer,
  .application-card-summary,
  .vacancy-admin-header,
  .vacancy-admin-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .application-modal {
    padding: 8px;
    align-items: stretch;
  }

  .application-modal-panel {
    max-height: calc(100vh - 16px);
    padding: 14px;
  }

  .application-contact {
    text-align: left;
  }
}
