* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f7f3;
  color: #263d35;
  font:
    15px/1.5 system-ui,
    sans-serif;
}
[hidden] {
  display: none !important;
}
body.cabinet-loading #login,
body.cabinet-loading #schedule {
  display: none !important;
}
header {
  background: #192f2b;
  color: white;
  padding: 20px 5%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
header strong {
  font-size: 30px;
}
header > #workspace-link {
  margin-left: auto;
}
header > #logout {
  order: 3;
}
header > #workspace-link,
header > #logout {
  color: #294035;
  background: white;
  border: 1px solid #d8e0d1;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
}
main {
  max-width: 1280px;
  margin: 36px auto;
  padding: 0 24px;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
}
h2 {
  font-size: 20px;
}
.card {
  max-width: 440px;
  background: white;
  border: 1px solid #dfe6da;
  padding: 32px;
  border-radius: 16px;
  margin: 70px auto;
}
.card p {
  color: #63776a;
}
label {
  display: block;
  margin: 24px 0 8px;
}
input {
  width: 100%;
  padding: 12px;
  border: 1px solid #bdcabc;
  border-radius: 8px;
  font: inherit;
}
button,
select {
  padding: 10px 14px;
  border: 1px solid #d8e0d1;
  border-radius: 8px;
  background: white;
  color: #294035;
  font: inherit;
  cursor: pointer;
}
button:hover {
  background: #edf4df;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
form button {
  margin-top: 20px;
  background: #d6f283;
  width: 100%;
}
[role="alert"] {
  color: #b42332 !important;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: #687b62;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  margin: 24px 0;
}
.month-nav,
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.month-nav h2 {
  min-width: 175px;
  text-align: center;
}
[aria-pressed="true"] {
  background: #d6f283;
}
.shift-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.shift {
  border: 1px solid #dfe6da;
  border-radius: 12px;
  background: white;
  padding: 20px;
}
.shift h3 {
  margin: 0 0 8px;
}
.muted,
.footnote {
  color: #697c6d;
  font-size: 13px;
}
.hours {
  font-weight: 700;
  margin-top: 12px;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid #dfe6da;
  border-radius: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 680px;
}
td,
th {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid #e4e9e0;
}
th {
  background: #eff3e9;
  font-size: 13px;
}
.empty {
  padding: 40px;
  text-align: center;
  background: white;
  border-radius: 12px;
}
.footnote {
  margin-top: 24px;
}
@media (max-width: 600px) {
  main {
    padding: 0 14px;
    margin-top: 20px;
  }
  .card {
    padding: 24px;
    margin-top: 30px;
  }
  header {
    padding: 16px;
  }
  .intro h1 {
    font-size: 25px;
  }
  .actions {
    width: 100%;
  }
  .month-nav h2 {
    min-width: 140px;
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
  body {
    background: white;
    font-size: 11px;
  }
  header,
  button,
  .actions,
  .eyebrow,
  #login {
    display: none !important;
  }
  main {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .toolbar {
    margin: 10px 0;
  }
  .table-wrap {
    overflow: visible;
    border: 0;
  }
  table {
    min-width: 0;
  }
  th,
  td {
    padding: 8px;
  }
  .shift {
    break-inside: avoid;
  }
  .shift-list {
    display: block;
  }
  .shift {
    margin-bottom: 10px;
  }
  .footnote {
    font-size: 10px;
  }
}

.language-switcher {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #d8e0d1;
  border-radius: 8px;
  background: #fff;
  color: #294035;
  font:
    13px system-ui,
    sans-serif;
  line-height: 1.4;
}
.language-switcher select {
  margin: 0;
  padding: 6px;
  color: #294035;
  background: white;
  border: 0;
  font: inherit;
  line-height: inherit;
}
.language-switcher label {
  margin: 0;
  display: inline;
  font: inherit;
}
.leave-type-native {
  display: none !important;
}
.leave-type-picker {
  position: relative;
}
.leave-type-trigger {
  width: 100%;
  margin: 0;
  text-align: left;
}
.leave-type-trigger::after {
  content: "⌄";
  float: right;
  font-size: 20px;
  line-height: 16px;
}
.leave-type-menu {
  position: absolute;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(150px, 2fr);
  width: 100%;
  max-width: 100%;
  max-height: 300px;
  height: min(300px, calc(100vh - 320px));
  margin-top: 6px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #cbd8c5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(21, 45, 35, .18);
}
.leave-type-options {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 7px;
  overflow-y: scroll;
  overscroll-behavior: contain;
}
.leave-type-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
}
.leave-type-option:hover,
.leave-type-option:focus,
.leave-type-option[aria-selected="true"] {
  background: #eaf4d3;
  outline: 0;
}
.leave-type-description {
  min-width: 0;
  overflow: auto;
  align-self: stretch;
  margin: 0;
  padding: 20px;
  border-left: 1px solid #dfe6da;
  background: #f5f8f1;
  color: #516858;
}
@media (max-width: 600px) {
  .leave-type-menu {
    grid-template-columns: 1fr;
    max-height: 360px;
  }
  .leave-type-options { height: 230px; max-height: 230px; }
  .leave-type-description {
    border-top: 1px solid #dfe6da;
    border-left: 0;
  }
}
body > .language-switcher {
  position: fixed;
  right: 18px;
  top: 12px;
  z-index: 1000;
}
#cabinet-actions > .language-switcher {
  position: static;
}
@media print {
  .language-switcher {
    display: none !important;
  }
}

body > header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.cabinet-brand,
#cabinet-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cabinet-brand { gap: 24px; }
#cabinet-actions {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#cabinet-actions > #workspace-link {
  margin-left: 0;
  color: #294035;
  background: white;
  border: 1px solid #d8e0d1;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
}
#cabinet-actions > #logout { order: initial; }
#cabinet-actions > .inbox-bell { margin-left: 0; order: initial; }
#cabinet-actions > .language-switcher { margin-left: 0; order: initial; }
@media (max-width: 900px) {
  body > header { align-items: flex-start; }
  #cabinet-actions { max-width: 100%; }
}
@media (max-width: 600px) {
  body > header {
    flex-wrap: wrap;
    gap: 12px;
  }
}

#my-requests {
  margin-top: 24px;
}
#request-form {
  margin: 18px 0;
}
#request-form label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
#request-form input,
#request-form select,
#request-form textarea {
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  padding: 10px;
  border: 1px solid #ccd6ce;
  border-radius: 8px;
}
.request-row {
  border-top: 1px solid #dce2d5;
  margin-top: 16px;
  padding: 12px 0;
  overflow-wrap: anywhere;
}
#request-error {
  color: #9b2734;
}
.vacation-calendar-card {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid #dfe6da;
  border-radius: 12px;
  background: #fbfcf9;
}
.vacation-calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vacation-calendar-heading h3 { margin: 0; text-transform: capitalize; }
.vacation-calendar-legend { display: flex; gap: 14px; margin: 16px 0; color: #63776a; font-size: 13px; }
.vacation-calendar-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 999px; background: #f4c86c; }
.vacation-calendar-legend .approved::before { background: #8bc58a; }
.vacation-calendar-weekdays,
.vacation-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.vacation-calendar-weekdays span { padding: 7px 4px; text-align: center; color: #697c6d; font-size: 11px; font-weight: 700; }
.vacation-calendar-day { position: relative; min-height: 62px; padding: 7px; border: 1px solid #e4e9e0; background: white; color: #294035; }
.vacation-calendar-day.outside { color: #aeb9ac; background: #f7f8f5; }
.vacation-calendar-day.pending { background: #fff5d9; }
.vacation-calendar-day.approved { background: #e7f4e4; }
.vacation-calendar-day i { position: absolute; right: 7px; bottom: 6px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 999px; background: #294035; color: white; font-size: 11px; font-style: normal; }
.schedule-calendar { overflow: hidden; border: 1px solid #dfe6da; border-radius: 12px; background: white; }
.schedule-calendar-weekdays,
.schedule-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.schedule-calendar-weekdays span { padding: 8px 4px; background: #eff3e9; text-align: center; color: #697c6d; font-size: 11px; font-weight: 700; }
.schedule-calendar-day { min-height: 106px; padding: 7px; border-right: 1px solid #e4e9e0; border-top: 1px solid #e4e9e0; overflow: hidden; }
.schedule-calendar-day.outside { background: #f7f8f5; color: #aeb9ac; }
.schedule-calendar-day > span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; }
.schedule-calendar-day article { overflow: hidden; margin: 3px 0; padding: 3px 5px; border-radius: 4px; background: #e7f4e4; color: #294035; font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.schedule-calendar-day article b { margin-right: 4px; }
@media print {
  #my-requests {
    display: none !important;
  }
}

.personal-nav {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  border-bottom: 1px solid #dfe6da;
  padding-bottom: 14px;
}
.personal-nav a {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  padding: 12px 20px;
  border: 1px solid #dfe6da;
  border-radius: 10px;
  color: #294035;
  background: white;
  font-weight: 600;
}
.personal-nav a[aria-current="page"] {
  background: #d6f283;
  border-color: #d6f283;
}
.personal-nav a:focus-visible {
  outline: 3px solid #769341;
  outline-offset: 3px;
}
#my-requests {
  max-width: none;
  margin: 0;
  padding: 28px;
}
#request-form {
  max-width: 640px;
}
@media (max-width: 600px) {
  .personal-nav a {
    flex: 1;
    padding: 12px 8px;
  }
  #my-requests {
    padding: 20px;
  }
  .vacation-calendar-card { padding: 14px; }
  .vacation-calendar-day { min-height: 46px; }
  .schedule-calendar { overflow-x: auto; }
  .schedule-calendar-weekdays, .schedule-calendar-grid { min-width: 630px; }
}
@media print {
  .personal-nav {
    display: none !important;
  }
  #schedule-screen[hidden] {
    display: block !important;
  }
}


#schedule.password-change-only > :not(#password-change) {
  display: none !important;
}
#schedule.password-change-only #password-change {
  max-width: 620px;
  margin: 48px auto;
}

@media (max-width: 760px) {
  header { padding: 14px 5%; }
}
