/* 2026 dark mobile portal redesign */

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 187, 93, 0.11), transparent 24rem),
    #0b0f14;
}

.hero {
  width: min(1240px, calc(100vw - 1.4rem));
  margin: 0 auto;
  align-items: stretch;
  padding: 1.25rem 0 1rem;
}

.hero-brand {
  display: grid;
  grid-template-columns: minmax(240px, 410px) minmax(240px, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.brand-lockup {
  display: grid;
  min-height: 7.25rem;
  overflow: hidden;
  place-items: center;
  border-radius: 1.2rem;
  background: #f2eee5;
  padding: 0.65rem 1rem;
}

.brand-lockup img {
  display: block;
  width: 100%;
  max-height: 6rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hero-brand-copy h1 {
  margin-bottom: 0.45rem;
  color: #f7f2e8;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
}

.hero-copy {
  color: #aeb5bf;
}

.status-card {
  align-self: stretch;
  border-color: #343b46;
  background: #151a21;
  color: #f7f2e8;
}

.status-card span,
.status-card small {
  color: #9ca4b1;
}

.shell {
  width: min(1240px, calc(100vw - 1.4rem));
}

.identity-panel,
.panel {
  border-color: #303743;
  background: #0f141b;
  box-shadow: var(--shadow);
}

.identity-panel {
  grid-template-columns: minmax(210px, 0.9fr) minmax(420px, 1.6fr) auto;
  align-items: center;
  padding: 1.15rem;
}

.identity-copy h2,
.panel h2,
.panel h3,
.panel h4,
label {
  color: #f7f2e8;
}

.identity-copy p,
.identity-panel p,
.subtle {
  color: #9ca4b1;
}

input,
select,
textarea {
  min-height: 3rem;
  border-color: #363e4a;
  background: #1a2028;
  color: #f7f2e8;
}

input::placeholder,
textarea::placeholder {
  color: #7f8894;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #d9bb5d;
  outline: 3px solid rgba(217, 187, 93, 0.14);
}

.primary,
.secondary,
.small-button,
.tab,
.chip {
  border-radius: 0.8rem;
  font-weight: 800;
}

.primary,
.secondary {
  border: 1px solid #d9bb5d;
  background: #d9bb5d;
  color: #17130a;
}

.small-button {
  border: 1px solid #3a424f;
  background: #1c222b;
  color: #f7f2e8;
}

.muted-button {
  border-color: #343b46;
  background: #202630;
  color: #cbd0d7;
}

.danger-button {
  border-color: #9f4b46;
  background: #632d2a;
  color: #fff7f4;
}

.signed-in-badge {
  border-color: #343b46;
  background: #181d25;
  color: #9ca4b1;
}

.signed-in-badge.active,
.signed-in-badge.owner {
  border-color: rgba(217, 187, 93, 0.55);
  background: rgba(217, 187, 93, 0.11);
  color: #e9cd76;
}

body.signed-in .identity-pin,
body.signed-in #signInButton {
  display: none;
}

body.signed-in .identity-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
}

.clock-status-card {
  min-height: 7rem;
  border: 1px solid #3a424e;
  background: #151b22;
  color: #f7f2e8;
  box-shadow: none;
}

.clock-status-card.clock-status-in {
  border-color: rgba(85, 194, 139, 0.5);
  background: #10241d;
  color: #82deb6;
  box-shadow: none;
}

.clock-status-card.clock-status-out {
  border-color: rgba(217, 187, 93, 0.42);
  background: #151a21;
  color: #f7f2e8;
  box-shadow: none;
}

.clock-status-card.clock-status-error {
  border-color: #82403b;
  background: #2a1718;
  color: #f2aaa3;
}

.clock-status-indicator {
  box-shadow: 0 0 0 0.4rem rgba(255, 255, 255, 0.04);
}

#clockStatusLabel {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  letter-spacing: 0;
}

.tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  top: 0.35rem;
  border: 1px solid #2d3440;
  border-radius: 1rem;
  background: rgba(11, 15, 20, 0.94);
  padding: 0.55rem;
  backdrop-filter: blur(14px);
}

.tab {
  min-height: 3.05rem;
  border: 1px solid #343b46;
  background: #171c23;
  color: #b7bec8;
  box-shadow: none;
}

.tab.active {
  border-color: #d9bb5d;
  background: rgba(217, 187, 93, 0.14);
  color: #efd37d;
}

.panel {
  padding: clamp(1rem, 2.5vw, 1.45rem);
}

.panel-header {
  border-bottom: 1px solid #2d3440;
  padding-bottom: 1rem;
}

.panel-header h2 {
  font-size: clamp(1.55rem, 4vw, 2.2rem);
}

.eyebrow {
  color: #d9bb5d;
}

.calendar {
  max-width: 900px;
  overflow: hidden;
  margin: 0 auto;
  border-color: #303743;
  border-radius: 1rem;
  background: #151a21;
}

.calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 0;
  background: #151a21;
}

.dow {
  border-color: #2a313b;
  background: #10151b;
  color: #858e9a;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-day {
  display: grid;
  min-width: 0;
  min-height: 5.2rem;
  align-content: start;
  justify-items: center;
  gap: 0.42rem;
  border: 0;
  border-right: 1px solid #29313a;
  border-bottom: 1px solid #29313a;
  background: transparent;
  color: #dce0e5;
  padding: 0.65rem 0.15rem 0.4rem;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.outside {
  color: #59616c;
  background: #11161b;
}

.calendar-day.has-open-shift:not(.outside) {
  background: rgba(223, 142, 88, 0.11);
  box-shadow: inset 0 0 0 1px rgba(223, 142, 88, 0.38);
}

.calendar-day.has-open-shift[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px #df8e58;
}

.calendar-day[aria-pressed="true"] {
  background: rgba(217, 187, 93, 0.12);
  box-shadow: inset 0 0 0 1px #d9bb5d;
  color: #f0d477;
}

.calendar-day-number {
  font-size: 0.82rem;
  font-weight: 850;
}

.calendar-day-markers {
  display: flex;
  min-height: 0.45rem;
  justify-content: center;
  gap: 0.22rem;
}

.calendar-dot,
.calendar-legend-swatch {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #d9bb5d;
  box-shadow: none;
}

.calendar-legend-swatch {
  width: 0.72rem;
  height: 0.72rem;
}

.calendar-dot.special-event,
.calendar-legend-swatch.special-event {
  border-radius: 0.14rem;
  background: #bd8ed5;
  transform: rotate(45deg);
}

.calendar-dot.approved-leave,
.calendar-legend-swatch.approved-leave {
  background: #63c89a;
}

.calendar-dot.schedule-conflict,
.calendar-legend-swatch.schedule-conflict {
  background: #df8e58;
}

.calendar-dot.open-shift,
.calendar-legend-swatch.open-shift {
  background: #f3a667;
}

.calendar-open-shift {
  color: #f3a667;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.calendar-my-shift {
  color: #d9bb5d;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.calendar-legend {
  max-width: 900px;
  margin: 0.7rem auto;
  color: #9ca4b1;
}

.calendar-agenda {
  display: grid;
  max-width: 900px;
  gap: 0.75rem;
  margin: 0.85rem auto 1rem;
  border: 1px solid #303743;
  border-radius: 1rem;
  background: #12171e;
  padding: 1rem;
}

.calendar-agenda-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.calendar-agenda-heading h3,
.calendar-agenda-heading p {
  margin-bottom: 0;
}

.calendar-agenda-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.calendar-agenda-event,
.calendar-agenda-shift,
.calendar-agenda-timeoff {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
  border: 1px solid #303743;
  border-radius: 0.85rem;
  background: #191f27;
  color: #f7f2e8;
  padding: 0.8rem;
  text-align: left;
}

.calendar-agenda-event {
  border-color: rgba(189, 142, 213, 0.44);
  background: rgba(189, 142, 213, 0.08);
}

.calendar-agenda-timeoff {
  border-color: rgba(99, 200, 154, 0.4);
  background: rgba(99, 200, 154, 0.07);
}

.calendar-agenda-event span,
.calendar-agenda-timeoff span,
.calendar-agenda-shift small,
.calendar-edit-hint {
  color: #9ca4b1;
  font-size: 0.72rem;
}

.calendar-agenda-event strong,
.calendar-agenda-timeoff strong,
.calendar-shift-person {
  font-weight: 850;
}

.calendar-agenda-shift strong {
  margin-top: 0.35rem;
  color: #e4c66e;
}

.calendar-agenda-shift.open {
  border-color: #bd794f;
  background: #281d1a;
}

.open-shift-status {
  color: #f3bf91;
  font-size: 0.78rem;
}

.open-shift-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.open-shift-actions button {
  min-height: 2.7rem;
}

.open-shift-apply {
  border-color: #d29265;
  background: #7e4c30;
  color: #fff7ed;
}

.open-shift-request-list {
  display: grid;
  gap: 0.6rem;
}

.open-shift-request-card {
  min-width: 0;
  border: 1px solid #3c4149;
  border-radius: 0.85rem;
  background: #191f27;
  padding: 0.85rem;
}

.open-shift-request-card > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.open-shift-request-card p {
  margin: 0.45rem 0;
  color: #e7eaf0;
}

.open-shift-request-card small {
  color: #aeb5c0;
}

.calendar-empty-day {
  margin: 0;
}

.recipe-card,
.form-card,
.owner-box,
.note-card,
.info-card,
.metric-card,
.recipe-section,
.calculator-result-row,
.salary-person-card,
.salary-history-row,
.availability-row,
.mini-card,
.request-card,
.upload-item,
.stock-item-card,
.check-item,
.pricing-override-card,
.receipt-review-item,
.cashflow-history-row {
  border-color: #303743;
  background: #151a21;
  color: #f7f2e8;
}

.recipe-editor-card,
.recipe-section.secondary-info,
.recipe-section.calculator-section,
.recipe-section.recipe-pricing-section,
.recipe-calculator-editor {
  border-color: #3a424e;
  background: #171d24;
  box-shadow: none;
}

.recipe-card:hover,
.recipe-card.expanded {
  border-color: rgba(217, 187, 93, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.recipe-card .category,
.chip,
.recurring-mark {
  background: #202630;
  color: #d6dbe1;
}

.chip.active,
.recipe-price-pill {
  background: rgba(217, 187, 93, 0.16);
  color: #ecd079;
}

.soft-divider,
th,
td {
  border-color: #303743;
}

th {
  background: #171c23;
  color: #e6c96f;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.open-row {
  background: #2b191a;
}

.schedule-warning-item,
.schedule-warning-empty {
  border-color: #343b46;
  background: #161c23;
}

.schedule-warning-item.severity-high {
  border-left-color: #c95f55;
  background: #241718;
}

.schedule-warning-item.severity-medium {
  border-left-color: #d49d42;
  background: #221f17;
}

.schedule-warning-empty {
  border-left-color: #63b585;
  background: #132019;
}

.owner-view-switch,
.cashflow-view-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  margin-bottom: 1rem;
  border-radius: 0.95rem;
  background: #181d25;
  padding: 0.3rem;
}

.owner-view-switch button,
.cashflow-view-switch button {
  min-height: 3rem;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: #aeb5bf;
  font-weight: 850;
}

.owner-view-switch button.active,
.cashflow-view-switch button.active {
  background: #d9bb5d;
  color: #17130a;
}

.owner-action-center {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.owner-live-card {
  border-color: rgba(99, 200, 154, 0.38);
  background: linear-gradient(135deg, rgba(99, 200, 154, 0.1), #151a21 58%);
}

.owner-live-card h3 {
  color: #f7f2e8;
}

.owner-live-count {
  border: 1px solid rgba(99, 200, 154, 0.4);
  background: rgba(99, 200, 154, 0.13);
  color: #a8e7c8;
}

.owner-clocked-in-person {
  border-color: #303b3a;
  background: rgba(11, 15, 20, 0.72);
}

.owner-clocked-in-copy strong {
  color: #f7f2e8;
}

.owner-clocked-in-copy span,
.owner-clocked-in-person small {
  color: #aeb5bf;
}

.owner-live-dot {
  background: #63c89a;
  box-shadow: 0 0 0 0.28rem rgba(99, 200, 154, 0.12);
}

.owner-action-total {
  border-radius: 999px;
  background: #733c36;
  color: #ffd6cf;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 850;
}

.owner-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.owner-action-card {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0.55rem;
  border: 1px solid #303743;
  border-radius: 0.95rem;
  background: #151a21;
  padding: 0.9rem;
}

.owner-action-card p {
  min-height: 2.8rem;
  margin: 0;
  color: #9ca4b1;
  font-size: 0.78rem;
  line-height: 1.4;
}

.owner-action-card .small-button {
  align-self: end;
}

.owner-action-type {
  color: #d9bb5d;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.owner-business-snapshot {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.owner-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.owner-directory-intro {
  grid-column: 1 / -1;
}

.owner-tool-group {
  overflow: hidden;
  border: 1px solid #303743;
  border-radius: 1rem;
  background: #151a21;
}

.owner-tool-group > h3,
.owner-tool-group > summary {
  margin: 0;
  border-bottom: 1px solid #2a313b;
  color: #e2c46b;
  padding: 0.9rem;
  font-size: 0.92rem;
  font-weight: 850;
}

.owner-tool-group > summary {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  border-bottom-color: transparent;
  cursor: pointer;
  list-style: none;
}

.owner-tool-group > summary::-webkit-details-marker {
  display: none;
}

.owner-tool-group > summary::after {
  content: "+";
  color: #d9bb5d;
  font-size: 1.15rem;
}

.owner-tool-group[open] > summary {
  border-bottom-color: #2a313b;
  background: rgba(217, 187, 93, 0.07);
}

.owner-tool-group[open] > summary::after {
  content: "-";
}

.owner-tool-link {
  display: grid;
  width: 100%;
  min-height: 4.25rem;
  gap: 0.2rem;
  border: 0;
  border-bottom: 1px solid #292f38;
  background: transparent;
  color: #f7f2e8;
  padding: 0.8rem 0.9rem;
  text-align: left;
}

.owner-tool-link:last-child {
  border-bottom: 0;
}

.owner-tool-link:hover {
  background: rgba(217, 187, 93, 0.07);
}

.owner-tool-link span {
  font-weight: 850;
}

.owner-tool-link small {
  color: #9ca4b1;
}

.salary-total-card,
.projected-labor-card {
  border-color: rgba(217, 187, 93, 0.38);
  background: rgba(217, 187, 93, 0.07);
}

.cashflow-header-actions {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
}

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

.cashflow-revenue-card,
.cashflow-expense-card,
.cashflow-net-card {
  background: #151a21;
}

.cashflow-revenue-card,
.cashflow-net-card.positive {
  border-color: rgba(99, 200, 154, 0.35);
  background: rgba(99, 200, 154, 0.06);
}

.cashflow-expense-card,
.cashflow-net-card.negative {
  border-color: rgba(224, 141, 85, 0.35);
  background: rgba(224, 141, 85, 0.06);
}

.cashflow-net-card.positive strong,
.positive-value,
.revenue-value {
  color: #79dbae;
}

.cashflow-net-card.negative strong,
.negative-value,
.expense-value {
  color: #f0a982;
}

.cashflow-category-bar,
.cashflow-history-line > div {
  background: #262d36;
}

.cashflow-category-bar span {
  background: linear-gradient(90deg, #9a8548, #d9bb5d);
}

.cashflow-history-row.selected {
  border-color: rgba(217, 187, 93, 0.5);
  box-shadow: inset 4px 0 0 #d9bb5d;
}

.receipt-sync-strip {
  border-color: #303743;
  background: #171d24;
}

.cashflow-source-pill,
.cashflow-source-pill.drive-receipt,
.cashflow-source-pill.toss-sales {
  background: #242b35;
  color: #d8dde2;
}

.cashflow-type-pill.revenue {
  background: rgba(99, 200, 154, 0.14);
  color: #79dbae;
}

.cashflow-type-pill.expense {
  background: rgba(224, 141, 85, 0.14);
  color: #f0a982;
}

.cashflow-ledger-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  margin: 0.8rem 0;
  border-radius: 0.85rem;
  background: #181d25;
  padding: 0.3rem;
}

.cashflow-ledger-filters button {
  min-height: 2.55rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: #aeb5bf;
  font-weight: 800;
}

.cashflow-ledger-filters button.active {
  background: rgba(217, 187, 93, 0.14);
  color: #ebcd75;
}

.date-pill,
.status-pill {
  border-color: #3a424e;
  background: #202630;
  color: #d8dde2;
}

.message {
  color: #d7dde3;
}

.message.error {
  color: #f0a39b;
}

.mini-item,
.request-card.status-pending,
.request-card.status-approved,
.request-card.status-rejected {
  border-color: #343b46;
  background: #151a21;
  color: #f7f2e8;
}

.request-card.status-pending {
  border-left: 3px solid #d49d42;
  background: #221f17;
}

.request-card.status-approved {
  border-color: rgba(99, 200, 154, 0.42);
  border-left: 3px solid #63c89a;
  background: #132019;
}

.request-card.status-rejected {
  border-color: rgba(224, 141, 85, 0.42);
  border-left: 3px solid #e08d55;
  background: #241718;
}

.mini-item strong,
.request-card strong,
.request-card p,
.request-card-header span {
  color: #f7f2e8;
}

.mini-item .subtle,
.request-card .subtle {
  color: #aeb5bf;
}

.portal-disclosure {
  margin-top: 0.85rem;
  overflow: hidden;
  border: 1px solid #343b46;
  border-radius: 0.9rem;
  background: #11161c;
}

.portal-disclosure > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.65rem 0.8rem;
  color: #f7f2e8;
  cursor: pointer;
  list-style: none;
  font-weight: 850;
}

.portal-disclosure > summary::-webkit-details-marker {
  display: none;
}

.portal-disclosure > summary::before {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border: 1px solid #4a5360;
  border-radius: 999px;
  color: #d9bb5d;
  content: "+";
  line-height: 1;
}

.portal-disclosure[open] > summary::before {
  content: "-";
}

.portal-disclosure > summary:hover {
  background: rgba(217, 187, 93, 0.06);
}

.portal-disclosure[open] > summary {
  border-bottom: 1px solid #303743;
  background: rgba(217, 187, 93, 0.08);
}

.owner-tool-disclosure > .info-card {
  border-top: 0;
  background: #151a21;
  box-shadow: none;
}

.owner-tool-disclosure > summary > span:first-of-type {
  min-width: 0;
  overflow-wrap: anywhere;
}

.disclosure-hint {
  color: #9ca4b1;
  font-size: 0.74rem;
  font-weight: 750;
}

.portal-disclosure .date-pill.has-pending {
  border-color: rgba(224, 141, 85, 0.5);
  background: rgba(224, 141, 85, 0.14);
  color: #f0b18d;
}

.disclosure-content {
  padding: 0.8rem;
}

.disclosure-content .schedule-warning-list {
  margin-top: 0;
}

/* Dark-theme completion pass for legacy component variants. */
.calendar-day.outside {
  color: #9099a5;
}

.salary-history-bar,
.weekly-stock-progress {
  background: #343b46;
}

.salary-history-person {
  border: 1px solid #3a424e;
  background: #202630;
  color: #ead078;
}

.download-row,
.backup-picker,
.pricing-output,
.pricing-component-row,
.pricing-output-grid div,
.stock-item-editor,
.stock-category-editor,
.weekly-stock-group,
.weekly-stock-item,
.stock-manager,
.weekly-stock-history,
.calculator-output-row,
.receipt-readonly-details {
  border-color: #343b46;
  background: #171d24;
  color: #f7f2e8;
}

.stock-manager > summary,
.stock-manager-body {
  border-color: rgba(217, 187, 93, 0.28);
  background: #171d24;
}

.stock-manager > summary strong,
.stock-category-manager > summary {
  color: #f7f2e8;
}

.stock-manager > summary small {
  color: #aeb5bf;
}

.stock-manager-icon {
  background: #d9bb5d;
  color: #11161d;
}

.weekly-stock-history > summary,
.weekly-stock-history-body {
  border-color: #343b46;
  background: #171d24;
}

.weekly-stock-history > summary strong,
.weekly-stock-history-quantity {
  color: #f7f2e8;
}

.weekly-stock-history > summary small {
  color: #aeb5bf;
}

.backup-selection-summary,
.backup-selection-summary strong,
.pricing-component-title strong,
.pricing-output-grid strong,
.pricing-card-header > strong,
.price-display-card strong,
.calculator-output-heading,
.calculator-result-row strong,
.weekly-stock-progress-copy strong,
.weekly-stock-group summary,
.weekly-stock-item-heading strong {
  color: #f7f2e8;
}

.backup-selection-summary span,
.pricing-output-grid span,
.pricing-components-summary,
.pricing-components,
.weekly-stock-group summary small,
.weekly-stock-item-heading small,
.weekly-stock-item-meta {
  color: #aeb5bf;
}

.price-display-card {
  border-color: rgba(217, 187, 93, 0.42);
  background: rgba(217, 187, 93, 0.09);
}

.price-display-card strong {
  color: #efd37d;
}

.checklist-item-editor,
.checklist-empty,
.weekly-stock-panel {
  border-color: #343b46;
  background: #12171e;
  color: #f7f2e8;
}

.checklist-history {
  border-color: #343b46;
  background: #12171e;
  color: #f7f2e8;
}

.checklist-history .note {
  background: rgba(217, 187, 93, 0.09);
}

.weekly-stock-group[open] > summary {
  border-bottom: 1px solid #343b46;
  background: rgba(217, 187, 93, 0.06);
}

.weekly-stock-item.has-count {
  border-color: rgba(99, 200, 154, 0.45);
  background: #10241d;
}

.bubble {
  border-color: #d9bb5d;
  background: #202630;
}

.check-item.done {
  border-color: rgba(99, 200, 154, 0.42);
  background: #10241d;
}

.check-item.done .bubble {
  border-color: #63c89a;
  background: #246247;
}

.check-item.done .bubble::after {
  color: #f7f2e8;
}

.availability-chip,
.status-pill {
  border: 1px solid #3a424e;
  background: #202630;
  color: #e0e4e9;
}

.availability-chip.unset,
.status-pill.pending,
.status-pill.new,
.status-pill.needs-review {
  border-color: rgba(217, 187, 93, 0.42);
  background: #2b2618;
  color: #efd37d;
}

.status-pill.approved,
.status-pill.imported {
  border-color: rgba(99, 200, 154, 0.45);
  background: #173d2e;
  color: #8be2b8;
}

.status-pill.rejected,
.availability-chip.unavailable {
  border-color: rgba(224, 141, 85, 0.45);
  background: #3a1f22;
  color: #f2aaa3;
}

.review-note,
.receipt-review-note {
  border-color: #d9bb5d;
  background: #2b2618;
  color: #ead078;
}

.approve-button {
  border-color: #4f9c76;
  background: #173d2e;
  color: #9ce8c2;
}

.reject-button {
  border-color: #9f4b46;
  background: #3a1f22;
  color: #f2aaa3;
}

.receipt-review-item.needs-review {
  border-color: #66572f;
  border-left-color: #d9bb5d;
  background: #221f17;
}

.receipt-review-item.imported {
  border-left-color: #63c89a;
  background: #132019;
}

.receipt-review-item.rejected {
  border-left-color: #e08d55;
  background: #241718;
}

.event-pill,
.shift-pill,
.time-off-pill {
  border-color: #343b46;
  background: #202630;
  color: #e0e4e9;
}

.event-pill {
  border-color: rgba(189, 142, 213, 0.42);
  background: rgba(189, 142, 213, 0.1);
}

.shift-pill.open {
  border-color: rgba(224, 141, 85, 0.45);
  background: #3a1f22;
}

.time-off-pill {
  border-color: rgba(99, 200, 154, 0.45);
  background: #173d2e;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    grid-template-columns: minmax(220px, 360px) minmax(220px, 1fr);
  }

  .identity-panel {
    grid-template-columns: 1fr;
  }

  .identity-grid,
  body.signed-in .identity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-action-grid,
  .owner-business-snapshot,
  .cashflow-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero,
  .shell {
    width: min(100% - 0.75rem, 1240px);
  }

  .hero {
    gap: 0.75rem;
    padding-top: 0.4rem;
  }

  .hero-brand {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .brand-lockup {
    min-height: 6.5rem;
    border-radius: 0 0 1.1rem 1.1rem;
  }

  .brand-lockup img {
    max-height: 5.5rem;
  }

  .hero-brand-copy {
    padding: 0 0.75rem;
  }

  .hero-brand-copy h1 {
    font-size: 2rem;
  }

  .status-card {
    margin: 0 0.75rem;
  }

  .identity-panel,
  .panel {
    border-radius: 1.05rem;
  }

  .identity-grid,
  body.signed-in .identity-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: static;
  }

  .tab {
    min-height: 3.3rem;
    padding: 0.65rem 0.35rem;
  }

  .panel-header,
  .calendar-agenda-heading,
  .section-title-row {
    display: grid;
    align-items: stretch;
  }

  .month-picker,
  .cashflow-header-actions {
    grid-template-columns: 1fr auto;
  }

  .cashflow-header-actions > .primary {
    grid-column: 1 / -1;
  }

  .calendar-day {
    min-height: 4.2rem;
    gap: 0.3rem;
    padding-top: 0.52rem;
  }

  .calendar-my-shift {
    font-size: 0.5rem;
  }

  .calendar-agenda-list {
    grid-template-columns: 1fr;
  }

  .owner-action-grid,
  .owner-directory,
  .owner-business-snapshot,
  .cashflow-metrics {
    grid-template-columns: 1fr;
  }

  .owner-directory-intro {
    grid-column: auto;
  }

  .owner-action-card p {
    min-height: 0;
  }

  .cashflow-ledger-filters {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    max-height: none;
  }
}

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

  .calendar-day {
    min-height: 3.75rem;
  }

  .calendar-my-shift {
    display: none;
  }

  .calendar-open-shift {
    font-size: 0.5rem;
  }

  .open-shift-actions button {
    flex: 1 1 100%;
  }
}

/* Owner staff-management profiles */

.staff-management-header {
  gap: 1rem;
}

.staff-management-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.65rem;
  width: min(100%, 21rem);
}

.staff-management-filters label {
  min-width: 0;
}

.staff-management-shell {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  min-width: 0;
  border: 1px solid #303743;
  border-radius: 1.1rem;
  background: #0d1218;
}

.staff-directory-card {
  min-width: 0;
  border-right: 1px solid #303743;
  background: #11171e;
  padding: 1rem;
}

.staff-directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.staff-directory-heading h3 {
  margin: 0;
}

.staff-directory-list {
  display: grid;
  gap: 0.45rem;
}

.staff-directory-button {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  background: transparent;
  color: #f7f2e8;
  padding: 0.65rem;
  text-align: left;
}

.staff-directory-button:hover,
.staff-directory-button.active {
  border-color: rgba(217, 187, 93, 0.6);
  background: rgba(217, 187, 93, 0.13);
}

.staff-directory-avatar {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.65rem;
  background: #202630;
  color: #e6c96f;
  font-weight: 900;
}

.staff-directory-copy {
  min-width: 0;
}

.staff-directory-copy strong,
.staff-directory-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-directory-copy small {
  margin-top: 0.15rem;
  color: #9ca4b1;
}

.staff-profile-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 0.9rem;
  padding: 1.15rem;
}

.staff-profile-view > *,
.staff-profile-two-column > .info-card {
  min-width: 0;
}

.staff-profile-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.staff-profile-header h2 {
  margin: 0.12rem 0 0.3rem;
}

.staff-profile-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.staff-profile-metric {
  display: grid;
  min-width: 0;
  gap: 0.28rem;
  border: 1px solid #303743;
  border-radius: 0.9rem;
  background: #141a21;
  padding: 0.85rem;
}

.staff-profile-metric span,
.staff-profile-metric small {
  color: #9ca4b1;
}

.staff-profile-metric strong {
  color: #f7f2e8;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  overflow-wrap: anywhere;
}

.staff-profile-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.staff-profile-view .info-card {
  margin: 0;
}

.staff-document-checklist {
  display: grid;
  margin-bottom: 0.8rem;
}

.staff-document-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  border-bottom: 1px solid #303743;
  padding: 0.7rem 0;
}

.staff-document-status {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(197, 84, 78, 0.18);
  color: #f19a91;
  font-weight: 900;
}

.staff-document-status.complete {
  background: rgba(99, 200, 154, 0.15);
  color: #7bd6ae;
}

.staff-document-copy {
  min-width: 0;
}

.staff-document-copy strong,
.staff-document-copy small {
  display: block;
}

.staff-document-copy small {
  margin-top: 0.18rem;
  color: #9ca4b1;
}

.staff-bank-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: end;
  margin-top: 0.8rem;
}

.staff-note-history {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.staff-note-entry {
  border-left: 3px solid #d9bb5d;
  background: #181e26;
  padding: 0.7rem 0.8rem;
}

.staff-note-entry small {
  display: block;
  margin-bottom: 0.35rem;
  color: #9ca4b1;
}

.staff-attendance-card .table-wrap {
  max-width: 100%;
  max-height: 28rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.attendance-variance.early,
.attendance-variance.on-time {
  color: #7bd6ae;
  font-weight: 800;
}

.attendance-variance.late,
.attendance-variance.missing {
  color: #f19a91;
  font-weight: 800;
}

.staff-availability-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.staff-availability-day {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
  border-radius: 0.8rem;
  background: #181e26;
  padding: 0.7rem 0.45rem;
  text-align: center;
}

.staff-availability-day.available {
  background: #11291f;
  color: #86deb8;
}

.staff-availability-day small {
  overflow-wrap: anywhere;
  color: #9ca4b1;
}

.staff-salary-lines {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.staff-salary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #303743;
  padding-bottom: 0.55rem;
}

.staff-salary-total {
  margin-top: 1rem;
  border-radius: 0.9rem;
  background: rgba(217, 187, 93, 0.14);
  color: #e6c96f;
  padding: 1rem;
  text-align: center;
}

.staff-salary-total strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.6rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 960px) {
  .staff-management-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .staff-management-header > div:first-child {
    flex: 1 1 22rem;
    min-width: 0;
  }

  .staff-management-filters {
    flex: 0 0 auto;
    min-width: 0;
  }

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

  .staff-directory-card {
    border-right: 0;
    border-bottom: 1px solid #303743;
  }

  .staff-directory-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .staff-profile-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .staff-management-filters,
  .staff-profile-header {
    display: grid;
    width: 100%;
  }

  .staff-management-filters {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .staff-directory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-profile-two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .staff-profile-view {
    padding: 0.7rem;
  }

  .staff-document-row {
    grid-template-columns: 1.75rem minmax(0, 1fr) auto;
  }

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

  .staff-bank-form .small-button {
    width: 100%;
  }

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

@media (max-width: 620px) and (orientation: portrait) {
  .staff-profile-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 700px) and (max-width: 960px) and (orientation: landscape) {
  .staff-management-shell {
    grid-template-columns: 12rem minmax(0, 1fr);
  }

  .staff-directory-card {
    border-right: 1px solid #303743;
    border-bottom: 0;
  }

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

@media (max-width: 390px) {
  .staff-directory-list,
  .staff-profile-metrics {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 680px) {
  .cashflow-view-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cashflow-product-section {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.product-sales-metrics {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.sales-scan-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sales-scan-actions button {
  min-height: 2.8rem;
}

.sales-scan-recent {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.sales-scan-recent p {
  margin: 0;
  overflow-wrap: anywhere;
}

.product-sales-sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.product-sales-sort span {
  color: #b9c0ca;
  font-weight: 700;
  margin-right: 0.25rem;
}

.product-sales-sort button {
  min-height: 2.6rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid #3d4551;
  border-radius: 0.7rem;
  background: #1a2029;
  color: #e5e7e9;
}

.product-sales-sort button.active {
  border-color: #d9bb5d;
  background: #342c1d;
  color: #f6dc83;
}

.product-sales-list .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.product-sales-table {
  width: 100%;
  border-collapse: collapse;
}

.product-sales-table th,
.product-sales-table td {
  padding: 0.8rem;
  border-bottom: 1px solid #303743;
  text-align: left;
  vertical-align: top;
}

.product-sales-table td:first-child {
  min-width: 12rem;
}

.product-sales-table td small {
  display: block;
  color: #aeb5bf;
  margin-top: 0.2rem;
}

.product-sales-table details {
  margin-top: 0.4rem;
  max-width: 24rem;
  color: #b9c0ca;
  font-size: 0.85rem;
}

.product-sales-table details p {
  margin: 0.35rem 0 0;
  overflow-wrap: anywhere;
}

.product-inference {
  display: inline-block;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-weight: 800;
}

.product-inference.estimated {
  color: #f6dc83;
  background: #352d1c;
}

.product-inference.direct {
  color: #a8e7c8;
  background: #173126;
}

.product-cost-editor {
  min-width: 0;
  border: 1px solid #303743;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  background: #151a21;
}

.product-cost-editor summary {
  cursor: pointer;
  color: #e7cd75;
  font-weight: 800;
}

.product-cost-editor form {
  margin-top: 1rem;
}

.product-cost-editor input,
.product-cost-editor select {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 680px) {
  .product-sales-list .table-wrap {
    overflow-x: visible;
  }

  .product-sales-table,
  .product-sales-table tbody,
  .product-sales-table tr,
  .product-sales-table td {
    display: block;
    width: 100%;
  }

  .product-sales-table thead {
    display: none;
  }

  .product-sales-table tr {
    padding: 0.45rem;
    margin-bottom: 0.7rem;
    border: 1px solid #303743;
    border-radius: 0.85rem;
    background: #151a21;
  }

  .product-sales-table td,
  .product-sales-table td:first-child {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.48rem 0.6rem;
    border: 0;
    overflow-wrap: anywhere;
  }

  .product-sales-table td:first-child {
    display: block;
  }

  .product-sales-table td:not(:first-child)::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #aeb5bf;
  }
}
