:root {
  --bg: #f7faf6;
  --surface: #ffffff;
  --surface-strong: #fbfcf8;
  --ink: #20231f;
  --muted: #687064;
  --line: #dde4d8;
  --line-strong: #cad7c8;
  --sage: #2f7c58;
  --sage-soft: #e8f4ed;
  --cranberry: #a43a4f;
  --cranberry-soft: #fae9ed;
  --gold: #a97523;
  --gold-soft: #fff3d6;
  --blue: #2d6f88;
  --blue-soft: #e6f3f7;
  --danger: #b93a33;
  --danger-soft: #fdecea;
  --violet: #6750a4;
  --violet-soft: #eee9fb;
  --shadow: 0 18px 45px rgba(32, 35, 31, 0.08);
  --shadow-soft: 0 10px 28px rgba(32, 35, 31, 0.07);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(47, 124, 88, 0.12), rgba(45, 111, 136, 0.07) 42%, rgba(164, 58, 79, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 246, 0.92) 420px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

.login-screen {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(221, 228, 216, 0.94);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(32, 35, 31, 0.16);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 460px;
  padding: 24px;
  width: 100%;
}

.login-brand {
  align-items: center;
  display: flex;
  gap: 14px;
}

.login-brand p,
.login-brand h1 {
  margin: 0;
}

.login-brand p {
  color: var(--sage);
  font-size: 0.86rem;
  font-weight: 750;
  text-transform: uppercase;
}

.login-brand h1 {
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1.05;
}

.login-fields {
  display: grid;
  gap: 13px;
}

.login-message {
  color: var(--danger);
  font-size: 0.9rem;
  line-height: 1.35;
  margin: -3px 0 0;
  min-height: 1.25rem;
}

.login-submit {
  min-height: 46px;
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(221, 228, 216, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 14px;
  position: sticky;
  top: 12px;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 45%),
    var(--ink);
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #fff;
  display: grid;
  flex: 0 0 auto;
  font-weight: 800;
  height: 58px;
  letter-spacing: 0;
  place-items: center;
  width: 58px;
}

.brand p,
.brand h1 {
  margin: 0;
}

.brand p {
  color: var(--sage);
  font-size: 0.86rem;
  font-weight: 750;
  text-transform: uppercase;
}

.brand h1 {
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1.05;
}

.topbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.mode-switch {
  background: #eef2ea;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(80px, 1fr));
  padding: 4px;
}

.mode-tab {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 850;
  min-height: 38px;
  padding: 8px 12px;
}

.mode-tab.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(32, 35, 31, 0.12);
}

.clock-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 148px;
  padding: 10px 14px;
  text-align: right;
}

.clock-card strong,
.clock-card span {
  display: block;
}

.clock-card strong {
  font-size: 1.25rem;
}

.clock-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.app-main {
  display: grid;
  gap: 18px;
}

.mode-view.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

.mode-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mode-heading h2 {
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 0;
}

.staff-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(340px, 0.92fr) minmax(340px, 0.78fr);
  justify-content: center;
  margin: 0 auto;
  max-width: 1180px;
}

.staff-view .punch-panel {
  width: 100%;
}

.staff-view .punch-button {
  min-height: 104px;
  padding: 20px;
}

.staff-view .punch-button span {
  font-size: 1.18rem;
}

.dashboard {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(360px, 1.15fr) minmax(320px, 0.9fr) minmax(360px, 1fr);
}

.panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.punch-panel,
.mc-panel {
  align-self: start;
}

.punch-panel {
  background:
    linear-gradient(180deg, rgba(232, 244, 237, 0.7), rgba(255, 255, 255, 0.94) 190px),
    var(--surface);
}

.mc-panel {
  background:
    linear-gradient(180deg, rgba(230, 243, 247, 0.78), rgba(255, 255, 255, 0.94) 180px),
    var(--surface);
}

.wide {
  grid-column: 1 / -1;
}

.panel-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.panel-head h2 {
  font-size: 1.22rem;
  line-height: 1.2;
}

.eyebrow {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chip,
.radius-pill {
  align-items: center;
  background: var(--sage-soft);
  border: 1px solid rgba(47, 124, 88, 0.18);
  border-radius: 999px;
  color: var(--sage);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  min-height: 28px;
  padding: 4px 10px;
  white-space: nowrap;
}

.chip.neutral {
  background: #f3f4f0;
  border-color: var(--line);
  color: var(--muted);
}

.chip.good {
  background: var(--sage-soft);
  color: var(--sage);
}

.chip.warn {
  background: var(--gold-soft);
  border-color: rgba(169, 117, 35, 0.24);
  color: var(--gold);
}

.chip.bad {
  background: var(--danger-soft);
  border-color: rgba(185, 58, 51, 0.24);
  color: var(--danger);
}

.radius-pill {
  background: var(--blue-soft);
  border-color: rgba(45, 111, 136, 0.2);
  color: var(--blue);
}

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

.settings-form .field-grid,
.staff-form .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-row {
  grid-template-columns: 160px 160px minmax(220px, 1fr);
  margin-bottom: 14px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  appearance: none;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

.field input[type="file"] {
  background: #fff;
  padding: 8px 10px;
}

.field input[type="file"]::file-selector-button {
  background: var(--ink);
  border: 0;
  border-radius: 6px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  margin-right: 10px;
  min-height: 30px;
  padding: 6px 10px;
}

.field textarea {
  min-height: 76px;
  resize: vertical;
}

.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 13px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(47, 124, 88, 0.7);
  box-shadow: 0 0 0 4px rgba(47, 124, 88, 0.12);
}

.field.full {
  grid-column: 1 / -1;
}

.hr-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-banner {
  align-items: center;
  background: var(--sage-soft);
  border: 1px solid rgba(47, 124, 88, 0.18);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  margin: 16px 0 14px;
  padding: 14px;
}

.status-banner.is-break {
  background: var(--gold-soft);
  border-color: rgba(169, 117, 35, 0.24);
}

.status-banner.is-off {
  background: #f3f4f0;
  border-color: var(--line);
}

.status-dot {
  background: var(--sage);
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(47, 124, 88, 0.12);
  flex: 0 0 auto;
  height: 12px;
  width: 12px;
}

.status-banner.is-break .status-dot {
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(169, 117, 35, 0.12);
}

.status-banner.is-off .status-dot {
  background: var(--muted);
  box-shadow: 0 0 0 8px rgba(104, 112, 100, 0.12);
}

.status-banner.is-mc {
  background: var(--violet-soft);
  border-color: rgba(103, 80, 164, 0.2);
}

.status-banner.is-mc .status-dot {
  background: var(--violet);
  box-shadow: 0 0 0 8px rgba(103, 80, 164, 0.13);
}

.status-banner strong,
.status-banner span {
  display: block;
}

.status-banner span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

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

.metric {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.metric span,
.metric strong {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  font-size: 1.05rem;
  margin-top: 4px;
}

.payroll-panel {
  background:
    linear-gradient(180deg, rgba(255, 243, 214, 0.62), rgba(255, 255, 255, 0.94) 190px),
    var(--surface);
}

.payroll-filter {
  grid-template-columns: 170px repeat(4, minmax(130px, 1fr));
}

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

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

.payroll-reminder {
  background: #f3f4f0;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
}

.payroll-reminder span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.payroll-reminder strong {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.payroll-reminder small {
  color: var(--muted);
  line-height: 1.35;
}

.payroll-reminder.warn {
  background: var(--gold-soft);
  border-color: rgba(169, 117, 35, 0.24);
}

.payroll-reminder.bad {
  background: var(--danger-soft);
  border-color: rgba(185, 58, 51, 0.24);
}

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

.punch-button,
.button {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  min-height: 44px;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.punch-button:hover:not(:disabled),
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.punch-button {
  color: #fff;
  display: grid;
  gap: 3px;
  min-height: 82px;
  padding: 16px;
  text-align: left;
}

.punch-button span,
.punch-button small {
  display: block;
}

.punch-button span {
  font-size: 1.05rem;
}

.punch-button small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.clock-in {
  background: var(--sage);
}

.break-out {
  background: var(--gold);
}

.break-in {
  background: var(--blue);
}

.clock-out {
  background: var(--cranberry);
}

.button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  padding: 10px 14px;
  white-space: nowrap;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: var(--sage);
  color: #fff;
}

.button.ghost {
  background: #eef2ea;
  color: var(--ink);
}

.button.icon-text {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  gap: 8px;
}

.button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-form,
.staff-form {
  display: grid;
  gap: 12px;
}

.location-readout {
  background: var(--blue-soft);
  border: 1px solid rgba(45, 111, 136, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 14px;
}

.location-readout.good {
  background: var(--sage-soft);
  border-color: rgba(47, 124, 88, 0.18);
}

.location-readout.bad {
  background: var(--danger-soft);
  border-color: rgba(185, 58, 51, 0.24);
}

.location-readout.warn {
  background: var(--gold-soft);
  border-color: rgba(169, 117, 35, 0.24);
}

.location-readout span {
  color: var(--muted);
}

.mc-summary {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(45, 111, 136, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 14px;
}

.mc-summary strong,
.mc-summary span {
  display: block;
}

.mc-summary span {
  color: var(--muted);
  line-height: 1.4;
}

.mc-history,
.mc-board {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mc-history-item,
.mc-request-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mc-history-item {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 11px;
}

.mc-history-item strong,
.mc-history-item span {
  display: block;
}

.mc-history-item div > span {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 2px;
}

.mc-request-card {
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.mc-request-card::before {
  background: var(--gold);
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 4px;
}

.mc-request-card.verified::before {
  background: var(--sage);
}

.mc-request-card.rejected::before {
  background: var(--danger);
}

.mc-request-main {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
  padding-left: 4px;
}

.mc-request-main div {
  min-width: 0;
}

.mc-request-main strong,
.mc-request-main span {
  display: block;
}

.mc-request-main span:not(.mc-status) {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.mc-request-details {
  display: grid;
  gap: 8px 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-left: 4px;
}

.mc-request-details span {
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.mc-request-details strong {
  color: var(--ink);
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.mc-request-details .full {
  grid-column: 1 / -1;
}

.mc-review-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  padding-left: 4px;
}

.mc-review-row input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  outline: none;
  padding: 9px 11px;
  width: 100%;
}

.mc-review-row input:focus {
  border-color: rgba(47, 124, 88, 0.7);
  box-shadow: 0 0 0 4px rgba(47, 124, 88, 0.12);
}

.mc-status {
  align-items: center;
  background: var(--gold-soft);
  border: 1px solid rgba(169, 117, 35, 0.24);
  border-radius: 999px;
  color: var(--gold);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 850;
  min-height: 28px;
  padding: 5px 9px;
  white-space: nowrap;
}

.mc-status.verified {
  background: var(--sage-soft);
  border-color: rgba(47, 124, 88, 0.18);
  color: var(--sage);
}

.mc-status.rejected {
  background: var(--danger-soft);
  border-color: rgba(185, 58, 51, 0.24);
  color: var(--danger);
}

.mc-attachment-link {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  display: inline-flex;
  flex-direction: column;
  font-size: 0.84rem;
  font-weight: 850;
  gap: 2px;
  margin-top: 6px;
  max-width: 100%;
  padding: 8px 10px;
  text-decoration: none;
}

.mc-attachment-link:hover {
  border-color: rgba(45, 111, 136, 0.36);
  box-shadow: 0 8px 18px rgba(45, 111, 136, 0.09);
}

.mc-attachment-link small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.staff-item {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.staff-name {
  display: grid;
  gap: 4px;
  min-width: 0;
}

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

.staff-name span {
  color: var(--muted);
  font-size: 0.86rem;
}

.staff-detail-grid {
  display: grid;
  gap: 6px 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.staff-detail {
  color: var(--muted);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-detail strong {
  color: var(--ink);
  font-weight: 800;
}

.staff-actions {
  display: flex;
  gap: 8px;
}

.staff-actions .button {
  min-height: 36px;
  padding: 8px 10px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 450px;
  overflow: auto;
}

.table-wrap.compact {
  max-height: 330px;
}

table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.compact table {
  min-width: 520px;
}

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

th {
  background: #f2f5ef;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

td {
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

tr:last-child td {
  border-bottom: 0;
}

.empty-row {
  color: var(--muted);
  text-align: center;
}

.muted {
  color: var(--muted);
  font-size: 0.86rem;
}

.action-label {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 9px;
}

.action-label.clock_in {
  background: var(--sage-soft);
  color: var(--sage);
}

.action-label.break_out {
  background: var(--gold-soft);
  color: var(--gold);
}

.action-label.break_in {
  background: var(--blue-soft);
  color: var(--blue);
}

.action-label.clock_out {
  background: var(--cranberry-soft);
  color: var(--cranberry);
}

.toast-root {
  bottom: 18px;
  display: grid;
  gap: 10px;
  position: fixed;
  right: 18px;
  width: min(380px, calc(100vw - 36px));
  z-index: 20;
}

.toast {
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #fff;
  padding: 12px 14px;
}

.admin-lock {
  align-items: center;
  background: rgba(32, 35, 31, 0.5);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 18px;
  position: fixed;
  z-index: 30;
}

.admin-lock-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(32, 35, 31, 0.24);
  display: grid;
  gap: 14px;
  width: min(430px, 100%);
  padding: 22px;
}

.admin-lock-card h2,
.admin-lock-card p {
  margin: 0;
}

.admin-lock-card h2 {
  font-size: 1.35rem;
}

.admin-lock-card p {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1160px) {
  .dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-layout {
    grid-template-columns: minmax(320px, 1fr);
    max-width: 720px;
  }

  .punch-panel,
  .records-panel {
    grid-column: 1 / -1;
  }

  .mc-request-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 16px;
  }

  .topbar,
  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: static;
  }

  .mode-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .clock-card {
    text-align: left;
  }

  .dashboard,
  .staff-layout,
  .field-grid,
  .hr-grid,
  .settings-form .field-grid,
  .staff-form .field-grid,
  .filter-row,
  .payroll-filter,
  .metric-grid,
  .payroll-summary-grid,
  .payroll-reminders,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 15px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand h1 {
    font-size: 1.55rem;
  }

  .staff-item {
    grid-template-columns: 1fr;
  }

  .staff-actions {
    flex-wrap: wrap;
  }

  .staff-detail-grid {
    grid-template-columns: 1fr;
  }

  .mc-request-details,
  .mc-review-row {
    grid-template-columns: 1fr;
  }

  .mc-request-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .mc-history-item {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
}
