:root {
  color-scheme: dark;
  --bg: #07090b;
  --panel: rgba(16, 21, 27, 0.92);
  --panel-2: rgba(22, 29, 37, 0.88);
  --field: rgba(8, 13, 18, 0.92);
  --text: #f3fbf8;
  --muted: #a7b8b4;
  --line: rgba(255, 255, 255, 0.11);
  --mint: #62f5bf;
  --cyan: #64d8ff;
  --amber: #f2c94c;
  --coral: #ff6b6b;
  --violet: #b69cff;
  --ink: #050607;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(98, 245, 191, 0.11), rgba(100, 216, 255, 0.05) 34%, rgba(255, 107, 107, 0.07) 70%, transparent),
    #080a0d;
  background-size: 44px 44px, 44px 44px, auto, auto;
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100vh;
}

.side-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 11, 15, 0.94), rgba(5, 7, 9, 0.86));
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand-block {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(98, 245, 191, 0.55);
  background: linear-gradient(135deg, rgba(98, 245, 191, 0.2), rgba(100, 216, 255, 0.13));
  color: var(--mint);
  font-weight: 900;
  letter-spacing: 0;
  border-radius: var(--radius);
  box-shadow: 0 0 32px rgba(98, 245, 191, 0.16);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  text-align: left;
  padding: 0 12px;
}

.nav-item span {
  color: #53615e;
  font-size: 0.72rem;
  font-weight: 900;
}

.nav-item.active,
.nav-item:hover {
  color: var(--text);
  border-color: rgba(98, 245, 191, 0.38);
  background: linear-gradient(135deg, rgba(98, 245, 191, 0.12), rgba(100, 216, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.rail-status {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  gap: 11px;
  align-items: center;
}

.rail-status strong,
.rail-status small {
  display: block;
}

.rail-status small {
  color: var(--muted);
  margin-top: 2px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 7px rgba(98, 245, 191, 0.12), 0 0 24px rgba(98, 245, 191, 0.7);
}

.workspace {
  min-width: 0;
  padding: 22px;
}

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(8, 12, 16, 0.6);
  padding: 14px;
  backdrop-filter: blur(14px);
}

.today-launch-btn {
  min-height: 54px;
  padding-inline: 24px;
  white-space: nowrap;
}

.dashboard-only-control {
  display: none !important;
}

body.dashboard-mode .dashboard-only-control {
  display: grid !important;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.date-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.field {
  display: grid;
  gap: 7px;
}

.hidden {
  display: none !important;
}

.field span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background-color: var(--field);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mint) 50%),
    linear-gradient(135deg, var(--mint) 50%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12));
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px,
    calc(100% - 36px) 8px;
  background-size: 6px 6px, 6px 6px, 1px 26px;
  background-repeat: no-repeat;
  padding-right: 46px;
}

input:focus,
select:focus {
  border-color: rgba(98, 245, 191, 0.72);
  box-shadow: 0 0 0 3px rgba(98, 245, 191, 0.1);
}

select option {
  color: #f3fbf8;
  background: #101823;
}

input::placeholder {
  color: #6f817d;
}

.check-field {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background-color: var(--field);
  color: var(--text);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--mint);
}

.check-field strong {
  font-size: 0.92rem;
}

.compact {
  min-width: 156px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--amber);
  background: rgba(242, 201, 76, 0.08);
  font-weight: 900;
}

.full-btn {
  width: 100%;
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
}

.compact-metrics {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  margin-bottom: 14px;
}

.metric-tile,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 70%),
    var(--panel);
  box-shadow: var(--shadow);
}

.metric-tile {
  min-height: 112px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.metric-tile:hover,
.panel:hover {
  border-color: rgba(98, 245, 191, 0.2);
}

.metric-tile::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px 14px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent, var(--mint));
  opacity: 0.72;
}

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

.metric-tile strong {
  display: block;
  margin-top: 11px;
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
}

.metric-tile small {
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.staff-portal {
  min-height: 100vh;
  padding: 22px;
}

.staff-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.staff-topbar {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 12, 16, 0.72);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.staff-dashboard {
  display: grid;
  gap: 18px;
}

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

.start-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: rgba(98, 245, 191, 0.28);
  background:
    linear-gradient(135deg, rgba(98, 245, 191, 0.16), rgba(100, 216, 255, 0.06)),
    var(--panel);
}

.start-panel p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.panel {
  padding: 18px;
  min-width: 0;
}

.wide {
  grid-row: span 2;
}

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

.compact-head {
  margin-top: 14px;
}

.legend {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.legend .sales {
  background: var(--mint);
}

.legend .purchase {
  background: var(--cyan);
}

.legend .dues {
  background: var(--coral);
}

.performance-chart {
  width: 100%;
  max-width: 100%;
  min-height: 230px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 14px;
  align-items: end;
  padding: 18px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.qr-admin-grid,
.qr-scan-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 14px;
}

.qr-card,
.qr-scan-box {
  border: 1px solid rgba(98, 245, 191, 0.22);
  border-radius: var(--radius);
  background: rgba(98, 245, 191, 0.045);
  padding: 14px;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.qr-pattern {
  width: min(220px, 100%);
  aspect-ratio: 1;
  border: 10px solid #f3fbf8;
  background: #f3fbf8;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
}

.qr-pattern i {
  background: transparent;
}

.qr-pattern i.on {
  background: #07100d;
}

.qr-image {
  width: min(220px, 100%);
  aspect-ratio: 1;
  border: 10px solid #f3fbf8;
  border-radius: 4px;
  background: #f3fbf8;
  object-fit: contain;
}

.qr-card strong {
  color: var(--mint);
  font-size: 1.35rem;
}

.qr-card small {
  color: var(--muted);
  word-break: break-all;
}

.qr-scan-box video {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #020403;
  object-fit: cover;
}

.chart-group {
  min-width: 0;
  display: grid;
  grid-template-rows: 156px auto;
  gap: 9px;
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  align-items: end;
  min-height: 156px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 100% 39px;
}

.bar {
  min-height: 5px;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.bar.sales {
  background: var(--mint);
}

.bar.purchase {
  background: var(--cyan);
}

.bar.dues {
  background: var(--coral);
}

.chart-label {
  display: block;
  color: rgba(238, 244, 242, 0.76);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
}

.entry-grid.mini {
  grid-template-columns: repeat(2, minmax(130px, 1fr));
}

.wide-field {
  grid-column: span 2;
}

.primary-btn,
.secondary-btn {
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
}

.primary-btn {
  color: #04100c;
  background: linear-gradient(135deg, var(--mint), #b7ff7a);
  box-shadow: 0 12px 34px rgba(98, 245, 191, 0.22);
}

.primary-btn:hover {
  filter: brightness(1.04);
}

.secondary-btn {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.secondary-btn:hover {
  border-color: rgba(100, 216, 255, 0.34);
  background: rgba(100, 216, 255, 0.08);
}

.danger-panel {
  border-color: rgba(255, 107, 107, 0.28);
}

.danger-btn {
  border-color: rgba(255, 107, 107, 0.32);
  color: #ffd6d6;
  background: rgba(255, 107, 107, 0.08);
}

.danger-btn:hover {
  border-color: rgba(255, 107, 107, 0.6);
  background: rgba(255, 107, 107, 0.14);
}

.mini-btn {
  min-height: 34px;
  padding: 0 10px;
}

.primary-btn span,
.secondary-btn span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.12);
  font-size: 0.76rem;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.cash-total {
  border: 1px solid rgba(98, 245, 191, 0.18);
  border-radius: var(--radius);
  background: rgba(98, 245, 191, 0.055);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
}

.cash-total span {
  color: var(--muted);
}

.cash-total strong {
  color: var(--mint);
  font-size: 1.2rem;
}

.daily-snapshot {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.snapshot-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
}

.snapshot-row strong,
.snapshot-row small {
  min-width: 0;
}

.snapshot-row small {
  color: var(--muted);
}

.snapshot-row span {
  grid-row: span 2;
  color: var(--mint);
  font-weight: 900;
}

.alert-list,
.summary-list,
.team-list,
.shop-list {
  display: grid;
  gap: 10px;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.admin-store-list {
  display: grid;
  gap: 12px;
}

.admin-store-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(98, 245, 191, 0.06), transparent 65%),
    var(--panel-2);
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) repeat(5, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

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

.admin-store-card small {
  margin-top: 5px;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-action-stack {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-leave-field {
  min-width: 150px;
}

.admin-leave-select {
  min-height: 34px;
  padding-top: 0;
  padding-bottom: 0;
}

.alert-item,
.summary-item,
.employee-card,
.shop-card,
.balance-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 72%),
    var(--panel-2);
}

.employee-card,
.shop-card,
.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.employee-card > div,
.shop-card > div,
.task-item > div {
  min-width: 0;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-state {
  border-style: dashed;
  border-color: rgba(100, 216, 255, 0.28);
  background: rgba(100, 216, 255, 0.045);
}

.alert-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.alert-item strong,
.summary-item strong,
.employee-card strong,
.shop-card strong {
  display: block;
}

.alert-item small,
.summary-item small,
.employee-card small,
.shop-card small,
.balance-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.balance-card span {
  display: inline-flex;
  margin-top: 10px;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--ink);
  background: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
}

.balance-card.advance span {
  background: var(--mint);
}

.pill {
  align-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--ink);
  background: var(--amber);
}

.pill.pending {
  background: var(--coral);
}

.pill.good {
  background: var(--mint);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

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

.table-wrap {
  width: 100%;
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

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

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

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

th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

td {
  color: #dfe8e5;
}

tbody tr:hover td {
  background: rgba(98, 245, 191, 0.035);
}

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

.num {
  text-align: right;
}

.status-chip {
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--ink);
  background: var(--mint);
}

.status-chip.Pending,
.status-chip.Absent {
  background: var(--coral);
}

.status-chip.Partial,
.status-chip.Leave,
.status-chip.Half {
  background: var(--amber);
}

.file-zone {
  min-height: 150px;
  border: 1px dashed rgba(100, 216, 255, 0.45);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  background: rgba(100, 216, 255, 0.045);
  padding: 16px;
}

.file-zone input {
  max-width: 280px;
}

.file-zone span {
  color: var(--muted);
}

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

.photo-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-2);
}

.photo-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.photo-tile div {
  padding: 10px;
}

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

.photo-tile small {
  margin-top: 4px;
  color: var(--muted);
}

.report-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
}

.modal-backdrop.open {
  display: grid;
}

.modal-panel {
  width: min(680px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border: 1px solid rgba(98, 245, 191, 0.25);
  border-radius: var(--radius);
  background: rgba(12, 15, 20, 0.98);
  box-shadow: var(--shadow);
  padding: 18px;
}

.compact-modal {
  width: min(540px, 100%);
}

.app-dialog .dialog-copy {
  color: var(--muted);
  margin-bottom: 14px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.chart-empty {
  min-height: 194px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--muted);
  text-align: center;
}

.chart-empty strong {
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background: rgba(98, 245, 191, 0.28);
  border-radius: 999px;
}

.attendance-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.attendance-check {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 11px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
}

.attendance-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--mint);
}

.attendance-check strong,
.attendance-check small {
  display: block;
}

.attendance-check small {
  margin-top: 2px;
  color: var(--muted);
}

.attendance-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(34px, 1fr));
  gap: 8px;
}

.calendar-day {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.calendar-day strong {
  font-size: 0.95rem;
}

.calendar-day small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.calendar-day.Present {
  border-color: rgba(98, 245, 191, 0.45);
  background: rgba(98, 245, 191, 0.12);
}

.calendar-day.Absent,
.calendar-day.Leave,
.calendar-day.Missing {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.1);
}

.calendar-day.Half-Day {
  border-color: rgba(242, 201, 76, 0.45);
  background: rgba(242, 201, 76, 0.1);
}

.calendar-day.Off {
  opacity: 0.62;
}

#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(98, 245, 191, 0.34);
  border-radius: var(--radius);
  background: rgba(8, 10, 13, 0.94);
  color: var(--text);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  transition: 180ms ease;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

  .rail-status {
    display: none;
  }

  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard-grid,
  .two-col,
  .staff-grid,
  .qr-admin-grid,
  .qr-scan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .workspace,
  .side-rail,
  .staff-portal {
    padding: 14px;
  }

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

  .top-actions,
  .date-controls,
  .compact {
    width: 100%;
  }

  .metric-grid,
  .nav-list,
  .entry-grid,
  .entry-grid.mini,
  .report-actions,
  .attendance-checks,
  .admin-store-card {
    grid-template-columns: 1fr;
  }

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

  .snapshot-row {
    grid-template-columns: 1fr;
  }

  .snapshot-row span {
    grid-row: auto;
  }

  .wide-field {
    grid-column: auto;
  }

  .panel-head {
    flex-direction: column;
  }

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

  .search-field {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .side-rail,
  .top-actions,
  .nav-list,
  .report-actions,
  form,
  #toast {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .workspace,
  .panel,
  .metric-tile {
    box-shadow: none;
    background: #fff;
    color: #111;
  }
}
