@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");
:root {
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: #172b4a;
  background: #f4f7fc;
  font-synthesis: none;
  --navy: #0b2245;
  --ink: #182c48;
  --blue: #2667e8;
  --muted: #71819a;
  --line: #e5ebf3;
  --surface: #fff;
  --soft: #f4f7fc;
  --green: #12836a;
  --greenBg: #e8f8f2;
  --amber: #a66711;
  --amberBg: #fff4db;
  --red: #d4565c;
  --redBg: #fff0f1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  flex-shrink: 0;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a0c7ff;
  outline-offset: 2px;
}
h1,
h2,
h3,
h4 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  line-height: 1.24;
  margin: 0;
}
h2 {
  font-size: 1.25rem;
  margin: 0;
}
h3 {
  font-size: 1rem;
  margin: 0;
}
p {
  line-height: 1.55;
}
.muted,
.soft-text {
  color: var(--muted);
}
.small {
  font-size: 0.83rem;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #6183bb;
}
.startup {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--navy);
}
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #dee9fd;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.app-layout {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: linear-gradient(163deg, #0e2b57, #08192f);
  color: #cedbf0;
  padding: 24px 15px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -0.055em;
  font-size: 1.2rem;
}
.brand.white {
  color: #fff;
}
.brand img {
  height: 43px;
  width: 43px;
  border-radius: 12px;
}
.brand span span {
  color: #48a7ff;
}
.sidebar-label {
  font-size: 0.67rem;
  color: #7f9bc3;
  letter-spacing: 0.17em;
  font-weight: 800;
  margin: 34px 15px 12px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: transparent;
  color: #b9cee7;
  padding: 13px 14px;
  border-radius: 13px;
  width: 100%;
  text-align: left;
  font-weight: 650;
  margin: 2px 0;
  font-size: 0.9rem;
  transition: background 0.18s;
}
.nav-link:hover,
.nav-link.active {
  background: #1d477e;
  color: #fff;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #25446d;
  padding-top: 17px;
}
.profile-side {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 8px 6px 18px;
  color: #fff;
}
.profile-side small {
  font-size: 0.75rem;
  color: #9ab3d0;
}
.avatar {
  width: 39px;
  height: 39px;
  border-radius: 13px;
  background: #dceaff;
  display: grid;
  place-items: center;
  color: #1a5aba;
  font-weight: 800;
  flex-shrink: 0;
}
.main-shell {
  min-width: 0;
}
.topbar {
  height: 84px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: #ffffffeb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(15px);
}
.topbar h2 {
  font-size: 1rem;
  letter-spacing: 0;
  font-family: "DM Sans", sans-serif;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f7ff;
  color: #375f9d;
  border-radius: 20px;
  padding: 8px 13px;
  font-weight: 750;
  font-size: 0.78rem;
}
.top-user {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 750;
}
.page {
  padding: 34px 38px 55px;
  max-width: 1700px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 27px;
}
.page-heading p {
  margin: 7px 0 0;
  color: var(--muted);
}
.heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 21px #233b6207;
}
.card-padding {
  padding: 23px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 19px;
}
.btn {
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 15px;
  min-height: 41px;
  font-size: 0.86rem;
  font-weight: 800;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  transition:
    transform 0.15s,
    background 0.15s;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: #2869ed;
  color: white;
  box-shadow: 0 6px 15px #2667e82a;
}
.btn-primary:hover {
  background: #1558df;
}
.btn-soft {
  background: #edf4ff;
  border-color: #e0eafa;
  color: #225caf;
}
.btn-white {
  background: #fff;
  border-color: #dfe7f1;
  color: #2c4361;
}
.btn-ghost {
  background: transparent;
  color: var(--blue);
}
.btn-danger {
  background: #fff0f1;
  border-color: #fee0e1;
  color: #bb4051;
}
.btn-full {
  width: 100%;
}
.btn-icon {
  padding: 9px;
  min-width: 40px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 100px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 0.73rem;
  white-space: nowrap;
}
.chip.blue {
  background: #e9f1ff;
  color: #245aba;
}
.chip.green {
  background: var(--greenBg);
  color: var(--green);
}
.chip.amber {
  background: var(--amberBg);
  color: var(--amber);
}
.chip.gray {
  background: #f0f3f7;
  color: #75839a;
}
.chip.red {
  background: var(--redBg);
  color: var(--red);
}
.hero {
  background: linear-gradient(112deg, #0c2d5c, #2464d9);
  color: white;
  border-radius: 21px;
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  min-height: 150px;
}
.hero:after {
  content: "";
  position: absolute;
  right: -58px;
  top: -130px;
  width: 320px;
  height: 320px;
  border: 2px solid #ffffff1b;
  border-radius: 50%;
  box-shadow:
    0 0 0 64px #ffffff06,
    0 0 0 128px #ffffff05;
}
.hero h2 {
  font-size: 1.5rem;
}
.hero p {
  margin-bottom: 0;
  color: #c9e1ff;
}
.hero > * {
  z-index: 1;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 19px 0 24px;
}
.metric {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.metric-icon {
  height: 47px;
  width: 47px;
  border-radius: 15px;
  background: #e9f1ff;
  color: #2965d6;
  display: grid;
  place-items: center;
}
.metric-icon.green {
  background: var(--greenBg);
  color: var(--green);
}
.metric-icon.amber {
  background: var(--amberBg);
  color: var(--amber);
}
.metric-icon.red {
  background: var(--redBg);
  color: var(--red);
}
.metric p {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-family: "Plus Jakarta Sans";
  font-weight: 800;
  font-size: 1.55rem;
  margin-bottom: 2px;
}
.week-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.week-select {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 13px;
}
.week-select button {
  border: 0;
  background: #eff5ff;
  color: #2765da;
  border-radius: 9px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
}
.week-select strong {
  min-width: 157px;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.3;
}
.week-select small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.quick-action {
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  color: var(--ink);
}
.quick-action:hover {
  border-color: #a8caff;
  background: #f9fbff;
}
.quick-action .metric-icon {
  height: 38px;
  width: 38px;
  border-radius: 12px;
}
.quick-action strong {
  font-size: 0.9rem;
}
.quick-action small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 4px;
}
.notice {
  border-radius: 13px;
  padding: 15px 17px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.notice.amber {
  background: var(--amberBg);
  color: #85590f;
  border: 1px solid #f6e5b6;
}
.notice.blue {
  background: #eaf2ff;
  color: #335b90;
  border: 1px solid #dbe8fc;
}
.notice.green {
  background: var(--greenBg);
  color: var(--green);
}
.notice.red {
  background: #fff1f1;
  color: #b84248;
  border: 1px solid #ffdcdc;
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.searchbox {
  position: relative;
  min-width: 200px;
}
.searchbox svg {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #8a9aaf;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #dce4ef;
  background: white;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 0.89rem;
  color: var(--ink);
  min-height: 43px;
}
.textarea {
  min-height: 100px;
  resize: vertical;
}
.form-label {
  display: block;
  font-weight: 750;
  font-size: 0.78rem;
  margin: 0 0 7px;
  color: #39516d;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.field-help {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 5px;
}
.table-wrap {
  width: 100%;
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.table th {
  color: #6d7d92;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  background: #f7f9fd;
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.table td {
  padding: 12px 13px;
  border-bottom: 1px solid #edf1f7;
  font-size: 0.83rem;
  vertical-align: middle;
}
.table tbody tr:hover {
  background: #fafcff;
}
.table .person-name {
  font-weight: 800;
}
.table .subline {
  font-size: 0.73rem;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.table .clickable {
  cursor: pointer;
}
.table .clickable:hover {
  background: #eef5ff;
}
.rota-cell {
  border: 0;
  background: #e8f8f0;
  color: #187a59;
  width: 100%;
  border-radius: 8px;
  padding: 7px;
  min-height: 55px;
  text-align: center;
  line-height: 1.3;
  font-size: 0.72rem;
  font-weight: 800;
}
.rota-cell span {
  font-size: 0.66rem;
  display: block;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 105px;
  margin: auto;
}
.rota-cell.off {
  background: #f1f3f7;
  color: #8793a6;
}
.rota-cell.none {
  background: #fff9ed;
  color: #b78225;
  border: 1px dashed #f4e4c0;
}
.rota-cell:hover {
  filter: brightness(0.97);
  box-shadow: 0 0 0 2px #3b85ee4c;
}
.day-col {
  min-width: 116px !important;
  text-align: center !important;
}
.inline-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.inline-person .avatar {
  height: 35px;
  width: 35px;
  font-size: 0.8rem;
}
.empty {
  padding: 38px 20px;
  text-align: center;
  color: var(--muted);
}
.empty svg {
  color: #92aac8;
}
.empty h3 {
  color: var(--ink);
  margin-top: 10px;
}
.empty p {
  margin: 8px 0 16px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.status-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 10px 0;
}
.status-item.selected {
  background: #eef5ff;
  border-color: #80b4ff;
}
.status-item h3 {
  margin-bottom: 4px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #485c76;
  font-size: 0.86rem;
}
.check-row input {
  accent-color: var(--blue);
  width: 17px;
  height: 17px;
}
.activity {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.activity-icon {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: #eaf2ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}
.activity p {
  font-size: 0.84rem;
  margin: 2px 0;
}
.activity small {
  font-size: 0.75rem;
  color: var(--muted);
}
.issue {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.85rem;
}
.issue:last-child {
  border: 0;
}
.issue .chip {
  min-width: 70px;
  justify-content: center;
}
.employee-day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.day-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px;
  min-height: 180px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.day-card.work {
  border-top: 4px solid #27b78f;
}
.day-card.off {
  border-top: 4px solid #c6d0df;
}
.day-card .date-title {
  font-size: 0.77rem;
  font-weight: 800;
  color: #687d98;
}
.day-card .time {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}
.day-card .duty {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
}
.day-card .prep {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}
.day-card.off .off-label {
  font-weight: 800;
  color: #8190a4;
  margin: auto;
}
.day-card .day-details {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 0.72rem;
  color: #2474cf;
}
.employee-view {
  max-width: 1060px;
  margin: auto;
}
.employee-hero {
  border-radius: 22px;
  background: linear-gradient(112deg, #0d2d5b, #2c6be3);
  padding: 30px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 24px 0;
}
.employee-hero h1 {
  font-size: 2rem;
}
.employee-hero p {
  color: #d5e7ff;
}
.employee-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.employee-bottom {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 22px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-visual {
  background: linear-gradient(146deg, #081e3b, #184b9d 70%, #236eea);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 55px 8vw 50px 6vw;
  overflow: hidden;
  position: relative;
}
.login-visual:after {
  content: "";
  border: 1px solid #ffffff21;
  border-radius: 50%;
  width: 550px;
  height: 550px;
  position: absolute;
  bottom: -280px;
  right: -120px;
  box-shadow:
    0 0 0 75px #ffffff08,
    0 0 0 150px #ffffff05;
}
.login-visual h1 {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 1.17;
  max-width: 620px;
}
.login-visual p {
  color: #c6d9f4;
  max-width: 520px;
  font-size: 1rem;
}
.login-visual .brand {
  font-size: 1.45rem;
}
.login-panel {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.login-form {
  width: min(100%, 420px);
}
.login-form h2 {
  font-size: 2rem;
  margin: 20px 0 9px;
}
.login-form p {
  color: var(--muted);
  margin-top: 0;
}
.login-form .field {
  margin: 20px 0;
}
.login-form .btn {
  margin: 14px 0;
}
.login-footer {
  color: #7c8aa1;
  font-size: 0.77rem;
  margin-top: 28px;
}
.logo-big {
  height: 74px;
  width: 74px;
  border-radius: 18px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #0b22458c;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal {
  background: white;
  border-radius: 21px;
  box-shadow: 0 20px 80px #00173645;
  width: min(100%, 580px);
  max-height: min(90vh, 900px);
  overflow: auto;
}
.modal-head {
  padding: 24px 25px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.modal-body {
  padding: 23px 25px 25px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0c2f53;
  color: #fff;
  padding: 13px 18px;
  border-radius: 12px;
  box-shadow: 0 15px 40px #06295444;
  z-index: 110;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
}
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 120;
}
#toast:empty {
  display: none;
}
.update-shade {
  position: fixed;
  inset: 0;
  background: #0a2146ad;
  backdrop-filter: blur(7px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
}
.update-box {
  background: white;
  border-radius: 23px;
  text-align: center;
  width: min(100%, 420px);
  padding: 31px;
  box-shadow: 0 20px 70px #101e3659;
}
.update-box h2 {
  font-size: 1.5rem;
  margin: 15px 0 8px;
}
.update-box p {
  color: #667b98;
}
.update-box .btn {
  margin-top: 9px;
}
.update-symbol {
  margin: auto;
  background: #e5efff;
  color: var(--blue);
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
}
.mobile-nav {
  display: none;
}
.mobile-menu {
  display: none;
}
.section-gap {
  margin-top: 20px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 15px 0;
}
.file-drop {
  border: 2px dashed #b8d1f4;
  border-radius: 15px;
  padding: 34px 22px;
  background: #f9fbff;
  text-align: center;
}
.file-drop svg {
  color: var(--blue);
}
.file-drop input {
  max-width: 100%;
  margin-top: 16px;
}
.upload-report {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin: 17px 0;
}
.upload-report div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.upload-report strong {
  font-size: 1.5rem;
  display: block;
}
.upload-report small {
  color: var(--muted);
}
.report-line {
  border-bottom: 1px solid #eff2f7;
  padding: 10px;
  font-size: 0.84rem;
}
.report-line:last-child {
  border: 0;
}
.print-only {
  display: none;
}
@media (max-width: 1150px) {
  .app-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .page {
    padding: 25px 22px 50px;
  }
  .topbar {
    padding: 0 22px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .employee-day-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .split-section {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .app-layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 265px;
    transform: translateX(-103%);
    transition: transform 0.2s;
    box-shadow: 15px 0 60px #0a1e3838;
  }
  .sidebar.open {
    transform: none;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 70px;
    padding: 0 17px;
  }
  .topbar h2 {
    display: none;
  }
  .top-user .user-label {
    display: none;
  }
  .top-pill {
    font-size: 0.72rem;
  }
  .page {
    padding: 23px 15px 90px;
  }
  .page-heading {
    flex-direction: column;
    gap: 15px;
  }
  .page-heading h1 {
    font-size: 1.6rem;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions .btn {
    flex: 1;
  }
  .hero {
    padding: 23px;
  }
  .hero h2 {
    font-size: 1.25rem;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric {
    padding: 13px;
    gap: 9px;
  }
  .metric-icon {
    height: 38px;
    width: 38px;
  }
  .metric strong {
    font-size: 1.27rem;
  }
  .metric p {
    font-size: 0.68rem;
  }
  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quick-action {
    padding: 12px;
    gap: 8px;
  }
  .quick-action strong {
    font-size: 0.79rem;
  }
  .quick-action small {
    font-size: 0.7rem;
  }
  .employee-day-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .day-card {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--line) !important;
    border-left: 4px solid #26b78c !important;
  }
  .day-card.off {
    border-left-color: #c6d0df !important;
  }
  .day-card .date-title {
    width: 54px;
    flex-shrink: 0;
  }
  .day-card .date-title strong {
    display: block;
    font-size: 1rem;
  }
  .day-card .time {
    font-size: 1rem;
  }
  .day-card .body {
    flex: 1;
  }
  .day-card.off .off-label {
    margin: 0;
  }
  .day-card .day-details {
    display: none;
  }
  .employee-view {
    max-width: 580px;
  }
  .employee-hero {
    margin: 17px 0;
    padding: 22px;
  }
  .employee-hero h1 {
    font-size: 1.5rem;
  }
  .employee-hero p {
    font-size: 0.85rem;
  }
  .two-col,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    height: 70px;
    align-items: center;
    justify-content: space-around;
    z-index: 35;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav button {
    display: grid;
    justify-items: center;
    gap: 3px;
    color: #6e7f98;
    background: transparent;
    border: 0;
    font-size: 0.65rem;
    font-weight: 750;
  }
  .mobile-nav button.active {
    color: var(--blue);
  }
  .mobile-nav button svg {
    width: 21px;
    height: 21px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-visual {
    display: none;
  }
  .login-panel {
    min-height: 100vh;
    padding: 27px;
  }
  .login-form h2 {
    font-size: 1.75rem;
  }
  .modal {
    max-height: 94vh;
  }
  .modal-head,
  .modal-body {
    padding: 19px;
  }
  .upload-report {
    grid-template-columns: 1fr 1fr;
  }
  .week-select strong {
    min-width: 125px;
  }
  .topbar-right {
    gap: 8px;
  }
  .card-padding {
    padding: 17px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .mobile-nav,
  .btn,
  .toolbar,
  .heading-actions {
    display: none !important;
  }
  .app-layout {
    display: block;
  }
  .page {
    padding: 0;
  }
  .table {
    font-size: 9pt;
  }
}

/* v2.0.1: real mobile editing controls, no horizontal-scrolling edit button */
.employee-mobile-list {
  display: none;
}
@media (max-width: 760px) {
  .employee-mobile-list {
    display: grid;
    gap: 9px;
  }
  .employee-desktop-table {
    display: none;
  }
  .employee-mobile-card {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 13px;
    text-align: left;
    color: var(--ink);
    min-height: 74px;
  }
  .employee-mobile-card:hover,
  .employee-mobile-card:focus-visible {
    border-color: #91b7fe;
    background: #f4f9ff;
  }
  .mobile-person {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 4px;
  }
  .mobile-person strong {
    font-size: 0.85rem;
  }
  .mobile-person small {
    color: var(--muted);
    font-size: 0.73rem;
    overflow-wrap: anywhere;
  }
  .edit-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 800;
    font-size: 0.76rem;
    color: #2869ed;
    flex-shrink: 0;
  }
}

.diagnostics-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.diagnostics-list dt {
  color: var(--muted);
  text-transform: capitalize;
}
.diagnostics-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

/* v2.0.4 — employee-only bottom navigation. Do not modify manager shell. */
.app-layout.employee-layout {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
}
.employee-layout .employee-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}
.employee-layout .page.employee-view {
  padding-top: clamp(18px, 3vw, 30px);
  padding-bottom: calc(106px + env(safe-area-inset-bottom, 0px));
}
.employee-layout .employee-top {
  margin-bottom: 4px;
}
.employee-layout .mobile-nav.employee-bottom-nav {
  display: flex;
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  height: calc(68px + env(safe-area-inset-bottom, 0px));
  padding: 5px max(12px, env(safe-area-inset-right, 0px))
    calc(5px + env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left, 0px));
  align-items: stretch;
  justify-content: center;
  gap: clamp(4px, 2vw, 16px);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -5px 20px rgba(22, 49, 93, 0.06);
  z-index: 35;
}
.employee-layout .employee-bottom-nav button {
  flex: 1 1 0;
  max-width: 210px;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #687d9b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}
.employee-layout .employee-bottom-nav button svg {
  width: 21px;
  height: 21px;
}
.employee-layout .employee-bottom-nav button.active {
  color: var(--blue);
  background: #edf4ff;
}
.employee-layout .employee-bottom-nav button:focus-visible {
  outline: 3px solid #a0c7ff;
  outline-offset: -2px;
}

/* === HTML-first v2.1.0 additions === */
[hidden] {
  display: none !important;
}
.rota-host .searchbox {
  min-width: 0;
}
.employee-day-grid .day-card {
  text-align: left;
  cursor: pointer;
}
.employee-day-grid .day-card .body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.employee-day-grid .day-card.off .body .duty,
.employee-day-grid .day-card.off .body .prep {
  display: none;
}
.employee-bottom-nav .nav-icon {
  display: block;
  font-size: 21px;
  line-height: 22px;
}
.employee-mobile-list .employee-mobile-card .avatar {
  flex-shrink: 0;
}
.duty-person {
  font-size: 0.7rem;
  min-height: 28px;
  padding: 5px 8px;
  margin: 3px;
}
#page-status button.status-item {
  text-align: left;
  width: 100%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
#page-status button.status-item.selected {
  border-color: #80b4ff;
}
#page-employee-week .page-heading .week-select small {
  display: block;
}
#upload-report .report-line {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .employee-mobile-list {
    display: grid;
    gap: 9px;
  }
}
/* Toast notifications should never block taps on bottom navigation. */
#toast,
#toast .toast {
  pointer-events: none;
}
/* Keep large tables scrollable INSIDE their cards on narrow screens. */
.split-section > div,
.two-col > *,
.rota-host,
.card,
.card-padding {
  min-width: 0;
}
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}
@media (max-width: 760px) {
  .manager-page {
    min-width: 0;
  }
}

/* v2.1.1 — consistent, font-independent outline SVG icons.
   To change a specific icon, edit its <use href="#rm-name"> in index.html. */
.rm-icon-library {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}
.rm-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.metric-icon .rm-icon {
  width: 22px;
  height: 22px;
}
.sidebar .nav-link .rm-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.top-pill .rm-icon {
  width: 16px;
  height: 16px;
}
.mobile-nav .rm-icon,
.employee-bottom-nav .nav-icon .rm-icon {
  width: 21px;
  height: 21px;
}
.employee-bottom-nav .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  line-height: 1;
}
.quick-action .metric-icon .rm-icon {
  width: 19px;
  height: 19px;
}
.notice > .rm-icon {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 1px;
}
.status-item .metric-icon .rm-icon {
  width: 21px;
  height: 21px;
}
.chip .rm-icon {
  width: 15px;
  height: 15px;
}
.edit-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.edit-label .rm-icon {
  width: 15px;
  height: 15px;
}
.update-symbol .rm-icon {
  width: 32px;
  height: 32px;
}
.btn-icon .rm-icon {
  width: 20px;
  height: 20px;
}
@media (max-width: 760px) {
  .mobile-nav button > .rm-icon {
    width: 21px;
    height: 21px;
  }
}
