/* Stentor Finance metallic theme. Loaded after component and responsive styles. */
:root {
  color-scheme: dark;
  background: #101113;
  color: #f1f2f2;
  accent-color: #d6dcdf;
}
body {
  background: radial-gradient(circle at 94% 0%, #31363a 0, #171a1d 32%, #101113 72%);
}
.sidebar {
  background: linear-gradient(180deg, #191c1f 0%, #111315 100%);
  border-color: #3c4144;
}
.brand { color: #f1f2f2; }
.brand strong { color: #d7dcdf; }
.sidebar .brand-mark { background: #101113; }
.eyebrow, .kicker { color: #aeb9bd; }
.sidebar nav button.active, .mobile-nav button.active {
  color: #f3f5f5;
  background: linear-gradient(120deg, #394044, #292e31);
}
.sidebar-bottom { border-color: #454b4e; }
.badge { background: #252b2e; border-color: #576066; color: #e3e7e8; }
.round-add, .primary, .admin-tabs button.active, .profile-tabs button.active,
.picker-day.selected, .photo-crop-confirm, .profile-edit-photo {
  background: linear-gradient(145deg, #f0f2f2, #c8d0d3);
  border-color: #d9dfe1;
  color: #171b1d;
  box-shadow: inset 0 1px 0 #fff8, 0 5px 14px #0004;
}
.primary:hover, .round-add:hover { filter: brightness(1.08); }
.card, .staff-row, .payment-card, .vehicle-card, .catalog-permission {
  background: linear-gradient(145deg, #30363a, #1d2225 76%);
  border-color: #51595e;
  box-shadow: inset 0 1px 0 #ffffff13, 0 13px 30px #0003;
}
.accent-card {
  background: radial-gradient(circle at 95% 10%, #485055, #2c3236 52%, #23282b 100%);
  border-color: #70797e;
}
.big-number { color: #f5f7f7; }
.metric-row, .row, .work-action { border-color: #4a5358; }
.metric-row.lifetime-first { margin-top: 10px; border-top: 2px solid #89949a; padding-top: 14px; }
.secondary, .pill, .admin-tabs button, .profile-tabs button,
.receipt-file-action, .photo-crop-dismiss {
  background: #343b3f;
  border-color: #626d72;
  color: #f0f2f2;
}
.secondary:hover, .pill:hover, .work-action:hover { background: #444d52; }
.ghost, .work-action-icon, .work-action-arrow, .admin-record-open,
.vehicle-symbol, .event-open:hover b { color: #e0e5e7; }
.work-action-icon, .vehicle-symbol { background: #3c454a; }
.notice, .calendar .day, .picker-day, .picker-event {
  background: #292f33;
  border-color: #525d62;
  color: #ecf0f0;
}
.calendar .day.active, .picker-event:hover, .staff-row.active { border-color: #d4dcdf; }
.calendar .day span, .calendar .calendar-event-indicator { color: #e4e9ea; }
.calendar .calendar-event-indicator { background: #505b60; }
input, select, textarea, .receipt-file-control {
  background: #202629;
  border-color: #515b60;
  color: #f4f6f6;
}
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, .receipt-file-input:focus-visible + .receipt-file-control {
  outline-color: #e0e6e8;
}
input[type="checkbox"], input[type="radio"], input[type="range"],
.catalog-permission input, #photo-crop-zoom { accent-color: #d7dee1; }
dialog, #work-event-picker-host:not([hidden]), #export-event-picker-host:not([hidden]) {
  background: #22282b;
  border-color: #677176;
  color: #f3f5f5;
  box-shadow: 0 24px 80px #0009;
}
dialog::backdrop { background: #050708d4; }
dialog .close { background: #3b4448; color: #f0f3f3; }
#entry-form .detail-line, #entry-form .work-total, .receipt-actions {
  background: #2a3135;
  border-color: #5b666b;
}
#entry-form .work-total b { color: #f5f7f7; }
.photo-crop-head, .payment-view-field { border-color: #5a656a; }
.profile-avatar { border-color: #dbe1e3; box-shadow: 0 0 0 5px #dbe1e326; }
.staff-avatar { background: #d9dfe1; color: #171b1d; }
.mobile-nav {
  background: #171b1eea;
  border-color: #4d555a;
}
@media (prefers-reduced-motion: no-preference) {
  .card, .primary, .round-add { transition: background .18s ease, filter .18s ease; }
}

/* Tenure is a separate footer inside the profile hero card. */
.profile-tenure { margin-top:22px; padding-top:17px; border-top:1px solid #647078; min-width:0; }
.profile-tenure-label { display:flex; align-items:center; gap:8px; color:#c1cbd0; font-size:.85rem; }
.profile-tenure-value { margin-top:8px; font-size:clamp(1.1rem,3.8vw,1.45rem); font-weight:600; letter-spacing:-.02em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.profile-tenure-date { margin-top:5px; color:#b9c3c9; font-size:.8rem; }
