:root {
  --sea: #027f9b;
  --sea-dark: #07566a;
  --teal: #19b6a3;
  --sand: #f3dfbf;
  --sand-soft: #fff8eb;
  --ink: #17313b;
  --muted: #667985;
  --line: #d9e5e7;
  --bg: #f4f8f8;
  --white: #ffffff;
  --danger: #c0392b;
  --warning: #c77b00;
  --success: #178a52;
  --shadow: 0 10px 28px rgba(7, 86, 106, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

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

button {
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  padding: clamp(20px, 4vw, 64px);
  background:
    linear-gradient(90deg, rgba(0, 20, 26, 0.55), rgba(2, 44, 54, 0.66)),
    url("https://images.unsplash.com/photo-1540541338287-41700207dee6?auto=format&fit=crop&w=1800&q=85") center/cover fixed;
  color: #fff4df;
}

.login-showcase {
  min-height: calc(100vh - clamp(40px, 8vw, 128px));
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(380px, 600px);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  width: min(1320px, 100%);
  margin: 0 auto;
}

.login-brand {
  display: grid;
  justify-items: center;
  text-align: center;
  color: #fff3d8;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.5);
}

.login-brand h1 {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  letter-spacing: 10px;
}

.login-brand strong {
  margin-top: 8px;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: 14px;
}

.login-brand h2 {
  margin: 58px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 400;
  letter-spacing: 8px;
  line-height: 1.2;
}

.login-brand p {
  margin: 22px 0 6px;
  color: #fff8ea;
  font-size: clamp(18px, 2vw, 24px);
}

.login-brand small {
  color: rgba(255, 250, 239, 0.92);
  font-size: clamp(16px, 1.6vw, 20px);
}

.login-mark {
  width: min(360px, 78vw);
  aspect-ratio: 1.15;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.login-divider {
  width: 86px;
  height: 2px;
  background: #ffd99f;
}

.login-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: min(780px, calc(100vh - 72px));
  overflow: hidden;
  border: 1px solid rgba(153, 218, 220, 0.28);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(1, 25, 35, 0.88), rgba(0, 80, 91, 0.52));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.login-card-main {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(36px, 6vw, 76px);
  text-align: center;
}

.login-card-logo {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border: 1px solid rgba(255, 214, 153, 0.86);
  border-radius: 50%;
  margin-bottom: 28px;
  background: rgba(0, 36, 46, 0.44);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.login-card-main h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  color: #fffaf1;
}

.login-card-main > p {
  margin: 12px 0 38px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.face-login {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  margin-bottom: 22px;
  border: 1px solid rgba(80, 174, 232, 0.28);
  background: radial-gradient(circle at 35% 25%, rgba(37, 101, 154, 0.78), rgba(7, 42, 69, 0.9));
  color: #fff;
  font-size: 54px;
}

.quick-login-label {
  color: #fff;
  font-size: 19px;
}

.login-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin: 38px 0 24px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 1px;
}

.login-or span {
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.password-login,
.login-recovery {
  width: 100%;
}

.password-login summary,
.login-recovery summary {
  list-style: none;
}

.password-login summary::-webkit-details-marker,
.login-recovery summary::-webkit-details-marker {
  display: none;
}

.password-login summary {
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  border: 1px solid #f6bc6c;
  border-radius: 8px;
  padding: 0 22px;
  color: #fff8ec;
  cursor: pointer;
  font-size: 20px;
  text-align: left;
}

.password-login summary b {
  color: #ffc66d;
  font-size: 30px;
  font-weight: 400;
}

.password-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  text-align: left;
}

.password-panel .field,
.recover-panel .field {
  margin: 0;
}

.password-panel label,
.recover-panel label {
  color: rgba(255, 255, 255, 0.82);
}

.login-form h2,
.section-title {
  margin: 0 0 6px;
}

.hint {
  color: var(--muted);
  font-size: 14px;
}

.demo-users {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.demo-user {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
}

.login-recovery {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 16px;
  text-align: left;
}

.login-recovery summary {
  color: #ffd99f;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.recover-panel {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.recover-panel + .recover-panel {
  margin-top: 10px;
}

.login-card .field input {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.94);
}

.login-card .hint {
  color: rgba(255, 255, 255, 0.72);
}

.login-card-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 26px;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
}

.field {
  display: grid;
  gap: 7px;
  margin: 16px 0;
}

.field label {
  font-weight: 700;
  font-size: 14px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
}

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

.primary,
.secondary,
.ghost,
.danger {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  min-height: 40px;
}

.primary {
  color: var(--white);
  background: var(--sea);
}

.secondary {
  color: var(--sea-dark);
  background: #dff6f4;
}

.ghost {
  color: var(--sea-dark);
  background: transparent;
  border: 1px solid var(--line);
}

.danger {
  color: var(--white);
  background: var(--danger);
}

.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 10px 9px;
  background:
    radial-gradient(circle at 70% 12%, rgba(25, 182, 163, 0.22), transparent 30%),
    linear-gradient(165deg, #003947, #064f61 48%, #00313c);
  color: var(--white);
  box-shadow: 12px 0 28px rgba(7, 86, 106, 0.16);
}

.brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 8px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

.brand-logo {
  width: 86px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 217, 156, 0.65);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0;
}

.brand span {
  display: block;
  color: #c9f4ef;
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 6px;
  flex: 1;
  align-content: start;
}

.nav-group {
  display: grid;
  gap: 3px;
}

.nav button {
  position: relative;
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 14px;
  padding: 8px 10px;
  min-height: 52px;
  color: #e8fbfa;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav button span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.nav-caret {
  flex: 0 0 auto !important;
  color: #bdeeea;
  font-size: 18px;
  line-height: 1;
}

.nav-sub {
  display: grid;
  gap: 4px;
  margin: 0 0 3px 0;
  padding-left: 0;
  border-left: 0;
}

.nav-sub button {
  padding: 7px 10px 7px 22px;
  color: #d7f6f3;
  font-size: 13px;
}

.nav-symbol {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #41a5ff;
  background: rgba(255, 255, 255, 0.1);
  text-shadow: none;
  font-size: 18px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.12);
}

.nav-symbol svg,
.menu-card-icon svg {
  width: 1.25em;
  height: 1.25em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-sub .nav-symbol {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 10px;
  font-size: 16px;
}

.nav-symbol.blue,
.menu-card-icon.blue {
  background: rgba(65, 165, 255, 0.14);
  color: #43a6ff;
}

.nav-symbol.mint,
.menu-card-icon.mint,
.nav-symbol.teal,
.menu-card-icon.teal {
  background: rgba(16, 224, 202, 0.14);
  color: #13e0c8;
}

.nav-symbol.gold,
.menu-card-icon.gold {
  background: rgba(255, 197, 39, 0.14);
  color: #ffc527;
}

.nav-symbol.red,
.menu-card-icon.red,
.nav-symbol.pink,
.menu-card-icon.pink {
  background: rgba(255, 85, 123, 0.14);
  color: #ff557b;
}

.nav-symbol.purple,
.menu-card-icon.purple {
  background: rgba(139, 92, 246, 0.16);
  color: #9a70ff;
}

.nav-symbol.orange,
.menu-card-icon.orange {
  background: rgba(255, 138, 31, 0.15);
  color: #ff8a1f;
}

.nav-symbol.green,
.menu-card-icon.green {
  background: rgba(33, 225, 139, 0.15);
  color: #21e18b;
}

.nav button.active,
.nav button:hover {
  background: linear-gradient(90deg, rgba(20, 227, 210, 0.34), rgba(2, 105, 126, 0.62));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.nav button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #18e4d3;
  box-shadow: 0 0 14px rgba(24, 228, 211, 0.7);
}

.nav-sub button.active {
  background: linear-gradient(90deg, rgba(20, 227, 210, 0.28), rgba(2, 105, 126, 0.52));
  color: var(--white);
}

.side-user {
  display: grid;
  grid-template-columns: 34px 1fr 20px;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.side-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--sea-dark);
  background: linear-gradient(135deg, #e9f7ff, #b9ddff);
  font-size: 14px;
  font-weight: 900;
}

.side-user span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.side-user strong {
  color: var(--white);
  font-size: 13px;
}

.side-user small {
  color: #c9f4ef;
  font-size: 11px;
}

.side-user button {
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 16px;
}

.main {
  min-width: 0;
  background:
    radial-gradient(circle at 82% 0%, rgba(25, 182, 163, 0.1), transparent 28%),
    linear-gradient(180deg, #fbfdfd, #f3f7f7);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

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

.mobile-menu {
  display: none;
}

.bell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--white);
  color: var(--sea-dark);
  font-weight: 800;
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 6px;
  color: var(--white);
  background: var(--danger);
  font-size: 12px;
  font-weight: 800;
}

.content {
  padding: 34px 44px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(23, 49, 59, 0.05);
}

.menu-hub {
  display: grid;
  gap: 22px;
}

.menu-hub-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.menu-hub-head h1 {
  margin: 0;
  color: var(--sea-dark);
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: 0;
}

.menu-hub-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 22px;
}

.hub-menu-button {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 18px;
  background: #f0f4f5;
  color: var(--sea-dark);
  font-size: 30px;
  box-shadow: 0 14px 32px rgba(23, 49, 59, 0.08);
}

.menu-card-list {
  width: min(820px, 100%);
  display: grid;
  gap: 16px;
}

.menu-card,
.menu-card button {
  width: 100%;
}

.menu-card {
  display: grid;
  gap: 10px;
}

.menu-card > button,
.menu-card-children button {
  display: grid;
  grid-template-columns: 96px 1fr 28px;
  align-items: center;
  gap: 22px;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(23, 49, 59, 0.08);
  color: var(--ink);
  text-align: left;
}

.menu-card > button:hover,
.menu-card-children button:hover,
.menu-card.active > button,
.menu-card-children button.active {
  border-color: var(--teal);
  background: linear-gradient(135deg, #ffffff, #f0fffd);
}

.menu-card-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 42px;
  font-weight: 900;
}

.menu-card-text {
  display: grid;
  gap: 8px;
}

.menu-card-text strong {
  font-size: 24px;
}

.menu-card-text small {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.38;
}

.menu-card-arrow {
  color: #667985;
  font-size: 38px;
}

.menu-card-children {
  display: grid;
  gap: 10px;
  margin-left: 56px;
  padding-left: 18px;
  border-left: 2px solid #d9f4f0;
}

.menu-card-children button {
  grid-template-columns: 76px 1fr 26px;
  padding: 14px 18px;
}

.menu-card-children .menu-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 17px;
  font-size: 32px;
}

.menu-card-children .menu-card-text strong {
  font-size: 21px;
}

.menu-card-children .menu-card-text small {
  font-size: 16px;
}

.overview-shell {
  display: grid;
  gap: 20px;
}

.overview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.overview-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.overview-title h1 {
  margin: 0;
  color: #111827;
  font-size: 32px;
  letter-spacing: 0;
}

.overview-title p {
  margin: 4px 0 0;
  color: var(--muted);
}

.date-chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(23, 49, 59, 0.06);
  font-weight: 800;
}

.overview-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.op-stat-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(23, 49, 59, 0.07);
}

.op-stat-card p {
  margin: 0;
  color: #314752;
}

.op-stat-card strong {
  display: block;
  margin-top: 3px;
  font-size: 30px;
  line-height: 1;
}

.op-stat-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.op-icon,
.quick-action span,
.overview-alert span,
.reminder-item > span,
.activity-item > span {
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 900;
}

.op-icon {
  width: 56px;
  height: 56px;
  font-size: 28px;
}

.op-icon.green,
.quick-action span.green,
.overview-alert span.green,
.reminder-item > span.green,
.activity-item > span.green {
  color: #0a9f54;
  background: #dff8eb;
}

.op-icon.blue,
.quick-action span.blue,
.overview-alert span.blue,
.reminder-item > span.blue,
.activity-item > span.blue {
  color: #256dd9;
  background: #e3efff;
}

.op-icon.orange,
.quick-action span.orange,
.overview-alert span.orange,
.reminder-item > span.orange,
.activity-item > span.orange {
  color: #e77d00;
  background: #fff0da;
}

.op-icon.red,
.quick-action span.red,
.overview-alert span.red,
.reminder-item > span.red,
.activity-item > span.red {
  color: #df2d2d;
  background: #ffe2e2;
}

.op-icon.purple,
.quick-action span.purple,
.overview-alert span.purple,
.reminder-item > span.purple,
.activity-item > span.purple {
  color: #7b3ed6;
  background: #eee2ff;
}

.op-icon.teal,
.quick-action span.teal,
.overview-alert span.teal,
.reminder-item > span.teal,
.activity-item > span.teal {
  color: #009c91;
  background: #d9f8f5;
}

.overview-main-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.75fr 0.95fr;
  gap: 14px;
}

.finance-panel {
  display: grid;
  gap: 10px;
  min-height: 235px;
}

.finance-panel h3 {
  margin: 0;
  font-size: 15px;
}

.finance-panel > strong {
  font-size: 28px;
}

.finance-panel.green > strong,
.finance-panel.green b {
  color: #009a3e;
}

.finance-panel.red > strong,
.finance-panel.red b {
  color: #f03232;
}

.finance-panel p {
  margin: 0;
  color: var(--muted);
}

.mini-sparkline,
.mini-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 60px;
  padding-top: 8px;
}

.mini-sparkline i,
.mini-bars i {
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #19b6a3, rgba(25, 182, 163, 0.16));
}

.finance-panel.red .mini-sparkline i {
  background: linear-gradient(180deg, #ff7a7a, rgba(255, 122, 122, 0.16));
}

.finance-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.finance-split span {
  display: grid;
  gap: 6px;
  border-right: 1px solid var(--line);
}

.finance-split span:last-child {
  border-right: 0;
}

.finance-split small {
  color: var(--muted);
}

.overview-alert-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.overview-alert {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 9px;
  align-items: center;
}

.overview-alert span {
  width: 28px;
  height: 28px;
}

.overview-alert.danger span {
  color: #df2d2d;
  background: #ffe2e2;
}

.overview-alert.warning span {
  color: #e77d00;
  background: #fff0da;
}

.overview-alert:not(.danger):not(.warning) span {
  color: #256dd9;
  background: #e3efff;
}

.overview-alert strong {
  font-size: 14px;
}

.overview-alert em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  text-align: right;
}

.overview-bottom-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1fr;
  gap: 14px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.quick-action {
  width: 92px;
  display: grid;
  justify-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.quick-action span {
  width: 64px;
  height: 64px;
  color: currentColor;
  font-size: 28px;
}

.quick-action small {
  font-weight: 800;
}

.reminder-list,
.activity-list {
  display: grid;
  gap: 13px;
}

.reminder-item,
.activity-item {
  display: grid;
  grid-template-columns: 52px 34px 1fr;
  gap: 10px;
  align-items: start;
}

.reminder-item time,
.activity-item time {
  color: var(--sea-dark);
  font-weight: 800;
}

.reminder-item > span,
.activity-item > span {
  width: 30px;
  height: 30px;
}

.reminder-item div,
.activity-item div {
  display: grid;
  gap: 3px;
}

.reminder-item small,
.activity-item small {
  color: var(--muted);
}

.metric {
  display: grid;
  gap: 8px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  font-size: 28px;
}

.chart-card {
  min-height: 260px;
}

.donut-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
}

.donut {
  width: 180px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: var(--white);
}

.donut span {
  position: relative;
  z-index: 1;
  font-size: 32px;
  font-weight: 900;
  color: var(--sea-dark);
}

.legend {
  display: grid;
  gap: 10px;
}

.legend div {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.legend strong {
  color: var(--ink);
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.bar-label strong {
  color: var(--ink);
  text-align: right;
}

.bar-track {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eeee;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--sea));
}

.bar-track span.success {
  background: linear-gradient(90deg, #23c779, var(--success));
}

.bar-track span.warning {
  background: linear-gradient(90deg, #ffd166, var(--warning));
}

.bar-track span.danger {
  background: linear-gradient(90deg, #ff8b7e, var(--danger));
}

.report-dashboard {
  display: grid;
  gap: 16px;
}

.report-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: stretch;
  border-radius: 8px;
  padding: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sea-dark), var(--sea), var(--teal));
  box-shadow: var(--shadow);
}

.report-hero h2 {
  margin: 6px 0;
  font-size: clamp(26px, 4vw, 42px);
}

.report-hero p,
.report-hero .hint {
  color: #e8fbfa;
}

.report-score {
  min-width: 230px;
  display: grid;
  align-content: center;
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.14);
}

.report-score span {
  color: #e8fbfa;
}

.report-score strong {
  margin-top: 8px;
  font-size: 28px;
}

.report-kpi {
  display: grid;
  gap: 8px;
}

.report-kpi span,
.report-kpi small {
  color: var(--muted);
}

.report-kpi strong {
  font-size: 24px;
  color: var(--sea-dark);
}

.report-chart {
  min-height: 320px;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: var(--sand-soft);
}

.ranking-item b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--sea);
}

.ranking-item span {
  display: grid;
  gap: 4px;
}

.ranking-item small {
  color: var(--muted);
}

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

.alert-card {
  display: grid;
  gap: 6px;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  padding: 13px;
  background: #effbfa;
}

.alert-card.danger {
  border-left-color: var(--danger);
  background: #fff1ef;
}

.alert-card.warning {
  border-left-color: var(--warning);
  background: #fff7e6;
}

.alert-card span {
  color: var(--muted);
  line-height: 1.45;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filters input,
.filters select {
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
}

.attendance-card {
  margin-top: 18px;
}

.attendance-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.attendance-controls input,
.attendance-controls select {
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
}

.month-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.month-filter input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.monthly-rental-card {
  margin: 16px 0;
  border-left: 5px solid var(--sea);
}

.shift-list {
  display: grid;
  gap: 10px;
}

.shift-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fcfc;
}

.shift-item span {
  display: grid;
  gap: 3px;
}

.shift-item small {
  color: var(--muted);
}

.audit-filter-panel {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  border: 1px solid rgba(38, 224, 209, 0.28);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(12, 45, 69, 0.92), rgba(7, 29, 50, 0.9));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.audit-filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f7fbff;
}

.audit-filter-title strong {
  color: #ffffff;
  font-size: 16px;
}

.audit-filter-title span {
  color: #8ff4ea;
  font-weight: 900;
}

.audit-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(150px, 0.8fr)) auto;
  gap: 10px;
  align-items: center;
}

.audit-filter-grid input,
.audit-filter-grid select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(127, 196, 220, 0.32);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(6, 25, 43, 0.84);
  color: #f2fbff;
  font: inherit;
  font-weight: 800;
}

.audit-filter-grid input::placeholder {
  color: #a8bfd3;
  opacity: 1;
}

.audit-filter-grid button {
  min-height: 42px;
  white-space: nowrap;
}

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

@media (max-width: 640px) {
  .audit-filter-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .audit-filter-grid {
    grid-template-columns: 1fr;
  }
}

.oil-alert-card {
  margin: 16px 0;
  border-left: 5px solid var(--warning);
}

tr.alert-row td {
  background: #fff8e8;
}

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

.table-wrap:has(.bike-avatar) {
  overflow: visible;
}

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

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

.compact-table th,
.compact-table td {
  padding: 10px;
}

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

th {
  color: var(--sea-dark);
  background: #eefafa;
  font-size: 13px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  color: var(--sea-dark);
  background: #dff6f4;
}

.pill.danger {
  color: #7d1d15;
  background: #ffe1dd;
}

.pill.warning {
  color: #714400;
  background: #fff0cf;
}

.pill.success {
  color: #0e5a35;
  background: #dff7ea;
}

.pill.muted {
  color: #4b5960;
  background: #edf1f2;
}

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

.actions button {
  min-height: 34px;
  padding: 7px 10px;
}

.download-fallback {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(34, 211, 238, .45);
  border-radius: 10px;
  color: #f8fdff;
  background: #06324a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.download-fallback a {
  color: #7df7ef;
  font-weight: 900;
  text-decoration: underline;
}

.download-fallback button {
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.status-control {
  display: grid;
  gap: 8px;
  min-width: 130px;
}

.status-control select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 13px;
}

.bike-avatar {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  outline: 0;
}

.bike-avatar > img,
.bike-avatar.placeholder {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e7f7f5;
}

.bike-avatar.placeholder {
  display: grid;
  place-items: center;
  color: var(--sea-dark);
  font-size: 13px;
  font-weight: 900;
}

.person-avatar > img,
.person-avatar.placeholder {
  border-radius: 50%;
  background: #eef8f7;
}

.bike-avatar-zoom {
  position: absolute;
  left: 68px;
  top: 50%;
  z-index: 25;
  width: 260px;
  min-height: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.94);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.bike-avatar-zoom img {
  width: 100%;
  max-height: 260px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.bike-avatar-zoom.placeholder {
  display: grid;
  place-items: center;
  color: var(--sea-dark);
  background: #e7f7f5;
}

.bike-avatar-zoom.placeholder span {
  display: grid;
  gap: 8px;
  text-align: center;
  font-weight: 900;
}

.bike-avatar-zoom.placeholder small {
  color: var(--muted);
  font-weight: 700;
}

.bike-avatar:hover .bike-avatar-zoom,
.bike-avatar:focus .bike-avatar-zoom,
.bike-avatar:focus-within .bike-avatar-zoom {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

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

.panel-title h3 {
  margin: 0;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--sand-soft);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 49, 59, 0.44);
}

.modal {
  width: min(780px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal header,
.modal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
}

.modal-body {
  padding: 18px;
}

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

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

.empty {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: none;
  max-width: min(420px, calc(100vw - 40px));
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--white);
  background: var(--sea-dark);
  box-shadow: var(--shadow);
}

.toast.show {
  display: block;
}

.progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eeee;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--sea));
}

.money {
  font-weight: 800;
  color: var(--sea-dark);
}

.photo-preview {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fbfb;
  color: var(--muted);
}

.photo-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-height: 94px;
  align-items: stretch;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfb;
  overflow: visible;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.image-thumb {
  position: relative;
  isolation: isolate;
}

.image-thumb img {
  display: block;
  min-height: 96px;
  border: 2px solid #b7d4e2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.image-thumb:hover {
  z-index: 20;
}

.image-thumb:hover img {
  transform: scale(1.06);
}

.image-thumb button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  min-height: 0;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  color: var(--white);
  background: #c0392b;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.image-thumb button:hover {
  background: #e33434;
  transform: scale(1.08);
}

.image-thumb small {
  position: absolute;
  left: 6px;
  bottom: 6px;
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--sea-dark);
  background: rgba(223, 246, 244, 0.94);
  font-size: 11px;
  font-weight: 800;
}

.image-grid span {
  grid-column: 1 / -1;
  align-self: center;
  color: var(--muted);
  text-align: center;
}

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

.permission-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfb;
}

.permission-item input {
  width: auto;
  margin-top: 3px;
}

.permission-item span {
  display: grid;
  gap: 3px;
}

.permission-item small {
  color: var(--muted);
}

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

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(310px, 88vw);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu {
    display: inline-flex;
  }

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

  .donut-layout,
  .alert-grid,
  .report-hero {
    grid-template-columns: 1fr;
  }

  .report-hero {
    display: grid;
  }

  .donut {
    justify-self: center;
  }

  .table-wrap:has(.bike-avatar) {
    overflow: auto;
  }

  .login-shell {
    padding: 18px;
  }

  .login-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .login-card {
    min-height: auto;
  }

  .login-brand h2 {
    margin-top: 28px;
  }

  .content {
    padding: 24px;
  }

  .menu-card-list {
    width: 100%;
  }

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

  .overview-main-grid,
  .overview-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .content {
    padding: 14px;
  }

  .topbar {
    padding: 12px;
  }

  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .bar-label {
    display: grid;
  }

  .report-score {
    min-width: 0;
  }

  .menu-hub-head h1 {
    font-size: 34px;
  }

  .menu-hub-head p {
    font-size: 18px;
  }

  .menu-card > button,
  .menu-card-children button {
    grid-template-columns: 62px 1fr 20px;
    gap: 12px;
    padding: 13px;
  }

  .menu-card-icon,
  .menu-card-children .menu-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 27px;
  }

  .menu-card-text strong,
  .menu-card-children .menu-card-text strong {
    font-size: 18px;
  }

  .menu-card-text small,
  .menu-card-children .menu-card-text small {
    font-size: 14px;
  }

  .menu-card-children {
    margin-left: 20px;
  }

  .overview-head,
  .overview-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-stat-grid {
    grid-template-columns: 1fr;
  }

  .op-stat-card {
    grid-template-columns: 54px 1fr;
    padding: 14px;
  }

  .op-icon {
    width: 48px;
    height: 48px;
  }

  .finance-split {
    grid-template-columns: 1fr;
  }

  .finance-split span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
  }

  .finance-split span:last-child {
    border-bottom: 0;
  }

  .quick-action {
    width: 78px;
  }

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

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .login-card-main {
    padding: 28px 20px;
  }

  .login-brand h1 {
    letter-spacing: 6px;
  }

  .login-brand strong,
  .login-brand h2 {
    letter-spacing: 5px;
  }

  .filters,
  .filters input,
  .filters select,
  .toolbar > button {
    width: 100%;
  }
}

@media print {
  .sidebar,
  .topbar,
  .toolbar,
  .actions,
  .toast {
    display: none !important;
  }

  body,
  .app-shell,
  .main,
  .content {
    display: block;
    min-height: 0;
    background: white;
    padding: 0;
  }

  .card,
  .report-hero {
    box-shadow: none;
    break-inside: avoid;
  }

  .report-hero {
    color: var(--ink);
    background: white;
    border: 2px solid var(--teal);
  }

  .report-hero p,
  .report-hero .hint,
  .report-score span {
    color: var(--muted);
  }

  .report-score {
    background: #effbfa;
  }
}


/* Modern motorbike management */
.motorbike-page { display: grid; gap: 18px; }
.motorbike-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.motorbike-title { display: flex; align-items: center; gap: 16px; }
.motorbike-title-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, #028c9f, #18b6a6); font-size: 30px; box-shadow: 0 12px 28px rgba(2, 140, 159, .22); }
.motorbike-title h2 { margin: 0; color: #102437; font-size: 28px; letter-spacing: 0; }
.motorbike-title p { margin: 6px 0 0; color: var(--muted); }
.motorbike-add { min-width: 130px; min-height: 48px; font-size: 16px; box-shadow: 0 12px 28px rgba(2, 140, 159, .18); }
.motorbike-stats { display: grid; grid-template-columns: repeat(6, minmax(140px, 1fr)); gap: 16px; }
.motorbike-stat { display: flex; align-items: center; gap: 16px; min-height: 112px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 8px 24px rgba(16, 36, 55, .06); }
.motorbike-stat .stat-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; font-size: 30px; font-weight: 900; }
.stat-icon.mint { color: #058c91; background: #d9f5f1; }
.stat-icon.green { color: #00934d; background: #dff7e6; }
.stat-icon.blue { color: #1264e7; background: #e1ebff; }
.stat-icon.orange { color: #ef8a00; background: #fff0cf; }
.stat-icon.red { color: #e22b2b; background: #ffe1e1; }
.stat-icon.purple { color: #8a3fd3; background: #f1e2ff; }
.motorbike-stat small, .motorbike-stat em { display: block; color: var(--muted); font-style: normal; }
.motorbike-stat strong { display: block; margin: 3px 0; color: #102437; font-size: 28px; line-height: 1; }
.owner-summary-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(38, 224, 209, 0.28);
  border-radius: 10px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(9, 33, 55, 0.86), rgba(8, 28, 48, 0.9));
}
.owner-summary-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.owner-summary-title strong {
  color: #ffffff;
  font-size: 16px;
}
.owner-summary-title span {
  color: #9bd3e8;
  font-size: 13px;
  font-weight: 800;
}
.owner-summary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.owner-summary-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 3px 10px;
  min-height: 78px;
  border: 1px solid rgba(127, 196, 220, 0.28);
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  color: #eaf7ff;
  background: rgba(6, 25, 43, 0.72);
  cursor: pointer;
}
.owner-summary-card:hover {
  border-color: rgba(38, 224, 209, 0.62);
  background: rgba(7, 70, 86, 0.78);
}
.owner-summary-icon {
  grid-row: 1 / span 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8a3fd3;
  background: #f1e2ff;
  font-weight: 900;
}
.owner-summary-card.warning .owner-summary-icon {
  color: #a45800;
  background: #fff0cf;
}
.owner-summary-card strong {
  color: #ffffff;
  font-size: 15px;
}
.owner-summary-card em {
  color: #8ff4ea;
  font-style: normal;
  font-weight: 900;
}
.owner-summary-card small {
  color: #b7cce0;
  font-weight: 750;
}
.motorbike-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 10px 32px rgba(16, 36, 55, .07); }
.motorbike-filters { display: grid; grid-template-columns: minmax(250px, 1.25fr) minmax(170px, .72fr) minmax(170px, .72fr) minmax(190px, .82fr) 52px minmax(170px, .7fr); gap: 14px; padding: 20px; align-items: center; }
.motorbike-filters select, .search-box input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; color: var(--ink); background: var(--white); font: inherit; }
.search-box { position: relative; display: block; }
.search-box input { padding-right: 44px; }
.search-box span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 22px; }
.square-action { width: 52px; min-height: 44px; padding: 0; font-size: 20px; }
.export-bike-btn { min-height: 44px; color: var(--sea-dark); white-space: nowrap; overflow: visible; }
.motorbike-table-wrap { border-width: 1px 0; border-radius: 0; }
.motorbike-table { min-width: 1180px; font-size: 15px; }
.motorbike-table th { padding: 16px 18px; color: #07566a; background: #ebfbfa; font-size: 14px; }
.motorbike-table td { padding: 18px; vertical-align: middle; }
.motorbike-table tr { background: var(--white); }
.bike-photo-code { display: grid; grid-template-columns: 112px 54px; align-items: center; gap: 18px; }
.bike-photo-hover { position: relative; width: 112px; height: 78px; overflow: visible; }
.bike-photo-code img, .bike-photo-empty { width: 112px; height: 78px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #ffffff; }
.bike-photo-empty { display: grid; place-items: center; color: var(--sea-dark); font-weight: 900; }
.bike-photo-zoom {
  position: fixed;
  z-index: 9999;
  left: min(360px, 28vw);
  top: 110px;
  display: none;
  width: min(460px, 46vw);
  min-height: 300px;
  border: 2px solid rgba(38, 224, 209, 0.72);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}
.bike-photo-zoom img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border: 0;
  background: #ffffff;
}
.bike-photo-hover:hover .bike-photo-zoom,
.bike-photo-hover:focus .bike-photo-zoom,
.bike-photo-hover:focus-within .bike-photo-zoom {
  display: block;
}
.bike-photo-code > span { display: grid; place-items: center; min-width: 54px; min-height: 48px; border: 1px solid #cde9e7; border-radius: 8px; color: var(--sea-dark); background: #e7f8f6; font-weight: 900; }
.bike-name { display: block; color: #102437; font-size: 17px; }
.bike-sub, .price-line, .maintenance-cell span, .status-stack span, .owner-cell span { display: block; margin-top: 6px; color: var(--muted); }
.plate-badge { display: inline-flex; margin-top: 8px; padding: 5px 9px; border: 1px solid #cfdde2; border-radius: 6px; background: #f8fbfc; color: #102437; font-weight: 700; }
.owner-cell { display: flex; align-items: center; gap: 12px; }
.owner-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #007b86; background: #d9f5f1; font-size: 12px; }
.maintenance-cell strong { color: #102437; }
.status-stack { display: grid; gap: 5px; justify-items: start; }
.status-stack .pill { gap: 5px; }
.status-stack .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.motorbike-actions { display: flex; align-items: center; gap: 12px; }
.motorbike-actions .secondary { min-width: 108px; min-height: 42px; }
.motorbike-delete { min-height: 42px; padding: 0 13px; white-space: nowrap; }
.icon-only { width: 44px; min-height: 42px; padding: 0; font-size: 22px; }
.motorbike-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; color: var(--muted); }
.pager { display: flex; align-items: center; gap: 10px; }
.pager button { min-width: 38px; min-height: 38px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--white); font-weight: 800; }
.pager button.active { color: white; border-color: var(--sea); background: var(--sea); }
.pager button:disabled { opacity: .5; }
@media (max-width: 1200px) { .motorbike-stats { grid-template-columns: repeat(2, 1fr); } .motorbike-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .motorbike-hero { align-items: flex-start; flex-direction: column; } .motorbike-stats, .motorbike-filters { grid-template-columns: 1fr; } .motorbike-footer { align-items: flex-start; flex-direction: column; } }


/* Visual operations dashboard */
.ops-dashboard { display: grid; gap: 18px; color: #0f2133; }
.ops-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ops-title-wrap { display: flex; align-items: center; gap: 18px; }
.ops-menu-button { width: 44px; height: 44px; border: 0; background: transparent; color: #0f2133; font-size: 24px; box-shadow: none; }
.ops-title-wrap h1 { margin: 0; color: #0f172a; font-size: 24px; letter-spacing: 0; }
.ops-title-wrap p { margin: 8px 0 0; color: #64748b; }
.ops-top-actions { display: flex; align-items: center; gap: 14px; }
.ops-date, .ops-bell, .ops-user { border: 1px solid #e3ebef; border-radius: 12px; background: #fff; color: #0f2133; box-shadow: 0 8px 22px rgba(15, 33, 51, .05); }
.ops-date { min-height: 46px; padding: 0 18px; font-weight: 800; }
.ops-bell { position: relative; width: 42px; height: 42px; font-size: 21px; }
.ops-bell span { position: absolute; right: -4px; top: -6px; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 99px; color: #fff; background: #e33434; font-size: 11px; font-weight: 900; }
.ops-user { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; font-weight: 800; }
.ops-user b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, #028c9f, #19b6a3); }
.ops-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 12px; }
.ops-stat { position: relative; display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 16px; min-height: 96px; padding: 16px; border: 1px solid #e3ebef; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 10px 24px rgba(15, 33, 51, .055); overflow: hidden; }
.ops-stat.active::after { content: ""; position: absolute; left: 16px; bottom: 0; width: 72px; height: 3px; border-radius: 99px; background: #19b6a3; }
.ops-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; font-size: 27px; font-weight: 900; }
.ops-icon.teal { color: #007f87; background: #d9f7f3; }
.ops-icon.green { color: #059447; background: #daf6e5; }
.ops-icon.blue { color: #1c64d8; background: #e2edff; }
.ops-icon.orange { color: #ec8300; background: #fff0d4; }
.ops-icon.red { color: #dc2626; background: #ffe2e2; }
.ops-icon.purple { color: #7c3ed6; background: #eee4ff; }
.ops-stat p { margin: 0; color: #0f2133; font-weight: 800; }
.ops-stat strong { display: block; margin-top: 4px; color: #0f172a; font-size: 27px; line-height: 1; }
.ops-stat small { display: block; margin-top: 7px; color: #64748b; }
.ops-main-grid { display: grid; grid-template-columns: 1.25fr 1fr .8fr 1.05fr; gap: 14px; }
.ops-finance, .ops-profit, .ops-alert-card, .ops-quick-card, .ops-reminder-card, .ops-activity-card { border-radius: 12px; box-shadow: 0 10px 28px rgba(15, 33, 51, .06); }
.ops-finance { display: grid; gap: 11px; min-height: 270px; }
.ops-finance h3, .ops-profit h3 { margin: 0; color: #0f172a; font-size: 14px; }
.ops-finance > strong, .ops-profit > strong { font-size: 26px; }
.ops-finance.green > strong, .ops-finance.green b, .ops-profit.green > strong, .ops-profit.green b { color: #079447; }
.ops-finance.red > strong, .ops-finance.red b, .ops-profit.red > strong, .ops-profit.red b { color: #ef3030; }
.ops-finance p, .ops-profit p { margin: 0; color: #64748b; }
.ops-line { height: 78px; display: flex; align-items: end; gap: 5px; padding-top: 8px; }
.ops-line i { flex: 1; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #22c55e, rgba(34,197,94,.08)); }
.ops-line.red i { background: linear-gradient(180deg, #ff4b55, rgba(255,75,85,.08)); }
.ops-finance-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid #e3ebef; padding-top: 12px; }
.ops-finance-split span { display: grid; gap: 6px; padding-right: 8px; border-right: 1px solid #e3ebef; }
.ops-finance-split span:last-child { border-right: 0; }
.ops-finance-split small, .ops-profit small { color: #64748b; }
.ops-profit { display: grid; gap: 10px; min-height: 270px; }
.ops-bars { height: 82px; display: flex; align-items: end; gap: 8px; }
.ops-bars i { flex: 1; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, #22c55e, rgba(34,197,94,.12)); }
.ops-profit.red .ops-bars i { background: linear-gradient(180deg, #ef4444, rgba(239,68,68,.12)); }
.ops-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ops-card-title h3 { margin: 0; color: #0f172a; font-size: 14px; }
.ops-card-title .ghost { min-height: auto; padding: 4px 0; border: 0; color: #006bd6; background: transparent; }
.ops-alert-list { display: grid; gap: 11px; }
.ops-alert { display: grid; grid-template-columns: 30px 1fr auto; align-items: start; gap: 10px; }
.ops-alert > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.ops-alert.danger > span { color: #dc2626; background: #ffe2e2; }
.ops-alert.warning > span { color: #ec8300; background: #fff0d4; }
.ops-alert:not(.danger):not(.warning) > span { color: #1c64d8; background: #e2edff; }
.ops-alert strong { display: block; color: #e11d1d; font-size: 13px; }
.ops-alert small { display: block; margin-top: 3px; color: #64748b; }
.ops-alert time { color: #ef3030; font-size: 12px; font-weight: 800; }
.ops-bottom-grid { display: grid; grid-template-columns: 1.35fr .92fr 1.1fr; gap: 14px; }
.ops-quick-actions { display: flex; flex-wrap: wrap; gap: 20px; }
.ops-dashboard .quick-action { width: 78px; }
.ops-dashboard .quick-action span { width: 54px; height: 54px; border-radius: 12px; box-shadow: 0 8px 18px rgba(15,33,51,.07); }
.ops-dashboard .quick-action small { line-height: 1.35; }
.ops-dashboard .reminder-item, .ops-dashboard .activity-item { grid-template-columns: 52px 34px 1fr; }
.ops-dashboard .reminder-item, .ops-dashboard .activity-item { padding-bottom: 10px; border-bottom: 1px solid #edf3f5; }
.ops-dashboard .reminder-item:last-child, .ops-dashboard .activity-item:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 1300px) { .ops-kpi-grid { grid-template-columns: repeat(3, 1fr); } .ops-main-grid, .ops-bottom-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .ops-topbar, .ops-top-actions { align-items: flex-start; flex-direction: column; } .ops-kpi-grid, .ops-main-grid, .ops-bottom-grid { grid-template-columns: 1fr; } .ops-finance-split { grid-template-columns: 1fr; } .ops-finance-split span { border-right: 0; border-bottom: 1px solid #e3ebef; padding-bottom: 8px; } }

/* Dashboard finance and alert focus row */
.ops-main-grid {
  grid-template-columns: minmax(260px, 1.06fr) minmax(250px, .98fr) minmax(220px, .78fr) minmax(285px, 1.06fr);
  align-items: stretch;
}

.ops-finance,
.ops-profit,
.ops-alert-card {
  min-height: 248px;
  padding: 18px 20px;
  border: 1px solid #e7eef2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 33, 51, .055);
}

.ops-finance {
  gap: 9px;
}

.ops-finance h3,
.ops-profit h3 {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

.ops-finance > strong,
.ops-profit > strong {
  font-size: 24px;
  line-height: 1.1;
}

.ops-finance p,
.ops-profit p {
  font-size: 12px;
}

.ops-line-chart {
  height: 82px;
  margin: 4px -4px 0;
}

.ops-line-chart svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.ops-line-chart polygon {
  fill: rgba(34, 197, 94, .14);
}

.ops-line-chart polyline {
  fill: none;
  stroke: #22c55e;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ops-line-chart.red polygon {
  fill: rgba(239, 68, 68, .12);
}

.ops-line-chart.red polyline {
  stroke: #ff3d4a;
}

.ops-chart-times {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  color: #64748b;
  font-size: 10px;
}

.ops-finance-split {
  margin-top: 6px;
  padding-top: 12px;
}

.ops-finance-split small {
  font-size: 11px;
}

.ops-finance-split b {
  font-size: 13px;
}

.ops-profit {
  gap: 9px;
}

.ops-bars {
  height: 82px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #dce6ea;
}

.ops-bars i {
  max-width: 16px;
  align-self: flex-start;
  background: linear-gradient(180deg, #22c55e, rgba(34, 197, 94, .4));
}

.ops-bars i.neg {
  align-self: flex-end;
  background: linear-gradient(180deg, rgba(34, 197, 94, .35), #22c55e);
  opacity: .75;
}

.ops-profit.red .ops-bars i,
.ops-profit.red .ops-bars i.neg {
  background: linear-gradient(180deg, #22c55e, rgba(34, 197, 94, .35));
}

.ops-profit > b {
  color: #ef3030;
  font-size: 16px;
}

.ops-alert-card {
  align-content: start;
}

.ops-alert-list {
  gap: 10px;
}

.ops-alert {
  grid-template-columns: 28px minmax(0, 1fr) 72px;
  gap: 10px;
}

.ops-alert > span {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.ops-alert strong {
  overflow: hidden;
  color: #e11d1d;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-alert.warning strong {
  color: #e77d00;
}

.ops-alert:not(.danger):not(.warning) strong {
  color: #4f46e5;
}

.ops-alert small {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-alert time {
  text-align: right;
  font-size: 11px;
}

/* Alert readability override */
.ops-alert-card .ops-alert {
  grid-template-columns: 28px minmax(0, 1fr) 72px;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #e7eef2;
  border-radius: 8px;
  background: #ffffff;
}

.ops-alert-card .ops-alert.danger {
  border-color: #ffd4d4;
  background: #fff8f8;
}

.ops-alert-card .ops-alert.warning {
  border-color: #ffe0a8;
  background: #fffaf0;
}

.ops-alert-card .ops-alert:not(.danger):not(.warning) {
  border-color: #dbe7ff;
  background: #f8fbff;
}

.ops-alert-card .ops-alert > span {
  width: 24px;
  height: 24px;
  color: #dc2626;
  background: #ffe2e2;
  font-size: 12px;
}

.ops-alert-card .ops-alert.warning > span {
  color: #d97706;
  background: #fff0d4;
}

.ops-alert-card .ops-alert:not(.danger):not(.warning) > span {
  color: #2563eb;
  background: #e2edff;
}

.ops-alert-card .ops-alert strong {
  overflow: hidden;
  color: #991b1b;
  font-size: 12.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-alert-card .ops-alert.warning strong {
  color: #9a5800;
}

.ops-alert-card .ops-alert:not(.danger):not(.warning) strong {
  color: #1d4ed8;
}

.ops-alert-card .ops-alert small {
  overflow: hidden;
  color: #334155;
  font-size: 11.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-alert-card .ops-alert time {
  color: #991b1b;
  text-align: right;
  font-size: 11px;
  font-weight: 800;
}

.ops-alert-card .ops-alert.warning time {
  color: #9a5800;
}

.ops-alert-card .ops-alert:not(.danger):not(.warning) time {
  color: #1d4ed8;
}


/* Modern bike type management */
.bike-type-page { display: grid; gap: 18px; }
.bike-type-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bike-type-title { display: flex; align-items: center; gap: 18px; }
.bike-type-title-icon { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; color: #007f87; background: #e2f8f4; font-size: 36px; box-shadow: 0 12px 30px rgba(2, 140, 159, .12); }
.bike-type-title h2 { margin: 0; color: #102437; font-size: 42px; letter-spacing: 0; }
.bike-type-title p { margin: 8px 0 0; color: #52697a; font-size: 20px; }
.bike-type-add { min-width: 190px; min-height: 60px; border-radius: 10px; font-size: 20px; box-shadow: 0 14px 30px rgba(2, 140, 159, .18); }
.bike-type-panel { overflow: hidden; border: 1px solid #dde9ed; border-radius: 12px; background: #fff; box-shadow: 0 14px 34px rgba(16, 36, 55, .065); }
.bike-type-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; }
.bike-type-search { width: min(410px, 100%); }
.bike-type-search input { min-height: 50px; font-size: 17px; }
.bike-type-hint { color: #708396; font-size: 16px; }
.bike-type-stats { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 20px; padding: 0 20px 22px; }
.bike-type-stat { display: grid; grid-template-columns: 86px 1fr; align-items: center; gap: 18px; min-height: 124px; padding: 20px; border: 1px solid #e2edf0; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px rgba(16,36,55,.055); }
.type-stat-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 16px; font-size: 34px; font-weight: 900; }
.type-stat-icon.blue { color: #1769d8; background: #e6f0ff; }
.type-stat-icon.green { color: #159447; background: #e0f7e7; }
.type-stat-icon.orange { color: #ed9500; background: #fff0cf; }
.type-stat-icon.purple { color: #8a3fd3; background: #f1e2ff; }
.bike-type-stat small, .bike-type-stat em { display: block; color: #52697a; font-style: normal; font-size: 16px; }
.bike-type-stat strong { display: block; margin: 6px 0; color: #102437; font-size: 34px; line-height: 1; }
.bike-type-table-wrap { border-width: 1px 0; border-radius: 0; }
.bike-type-table { min-width: 1180px; font-size: 18px; }
.bike-type-table th { padding: 18px 22px; color: #102437; background: #ecfbfa; font-size: 17px; }
.bike-type-table td { padding: 22px; vertical-align: middle; }
.bike-type-table tbody tr { position: relative; background: #fff; }
.bike-type-table tbody tr::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #19b6a3; }
.bike-type-table tbody tr.type-row-blue::before { background: #1976e9; }
.bike-type-table tbody tr.type-row-orange::before { background: #ed9500; }
.bike-type-table tbody tr.type-row-teal::before { background: #11aeb8; }
.type-name-cell { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 22px; }
.type-illustration { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 14px; font-size: 48px; }
.type-illustration.green { background: linear-gradient(135deg, #eafff7, #d9f5e8); }
.type-illustration.blue { background: linear-gradient(135deg, #eef6ff, #dcecff); }
.type-illustration.teal { background: linear-gradient(135deg, #e9fffd, #d5f7f3); }
.type-illustration.orange { background: linear-gradient(135deg, #fff8e8, #ffedd0); }
.type-name-cell strong { display: block; color: #102437; font-size: 30px; }
.type-name-cell em { display: inline-flex; margin-top: 12px; padding: 6px 12px; border-radius: 999px; color: #108348; background: #dff4df; font-style: normal; font-size: 16px; }
.type-km-cell { display: grid; gap: 12px; }
.type-km-cell strong { color: #102437; font-size: 27px; }
.type-km-cell strong span { color: #1976e9; font-size: 22px; }
.type-km-cell em { color: #52697a; font-style: normal; }
.type-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #dfe6ec; }
.type-progress i { display: block; height: 100%; border-radius: inherit; background: #18b67e; }
.type-progress.blue i { background: #1976e9; }
.type-progress.teal i { background: #11aeb8; }
.type-progress.orange i { background: #ed9500; }
.type-checklist { display: grid; gap: 9px; }
.type-checklist span { display: flex; align-items: center; gap: 10px; color: #102437; }
.type-checklist i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: #16a34a; font-size: 13px; font-style: normal; }
.type-checklist b { color: #078da0; }
.type-note { display: grid; gap: 9px; width: min(220px, 100%); padding: 16px; border-radius: 10px; background: linear-gradient(135deg, #edf9f7, #f8fbfb); color: #52697a; }
.type-note strong { color: #102437; line-height: 1.3; }
.type-note.muted { background: #f5f7f8; }
.type-actions { display: grid; gap: 12px; min-width: 130px; }
.type-actions button { min-height: 44px; justify-content: center; }
@media (max-width: 1100px) { .bike-type-stats { grid-template-columns: repeat(2, 1fr); } .bike-type-toolbar { align-items: flex-start; flex-direction: column; } }
@media (max-width: 720px) { .bike-type-hero { align-items: flex-start; flex-direction: column; } .bike-type-title h2 { font-size: 32px; } .bike-type-title p { font-size: 16px; } .bike-type-stats { grid-template-columns: 1fr; } }


/* Modern rental management */
.rental-page { display: grid; gap: 22px; }
.rental-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rental-title { display: flex; align-items: center; gap: 18px; }
.rental-title-icon { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; color: #008c8f; background: #dff8f4; font-size: 34px; box-shadow: 0 12px 30px rgba(2,140,159,.12); }
.rental-title h2 { margin: 0; color: #102437; font-size: 38px; letter-spacing: 0; }
.rental-title p { margin: 8px 0 0; color: #52697a; font-size: 18px; }
.rental-add { min-width: 185px; min-height: 58px; border-radius: 10px; font-size: 18px; box-shadow: 0 14px 30px rgba(2,140,159,.18); }
.rental-stats { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 18px; }
.rental-stat { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 18px; min-height: 126px; padding: 22px; border: 1px solid #e1ebef; border-radius: 10px; background: #fff; box-shadow: 0 10px 24px rgba(16,36,55,.055); }
.rental-stat > span { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 18px; font-size: 34px; font-weight: 900; }
.rental-stat.green > span { color: #049a58; background: #def8e9; }
.rental-stat.blue > span { color: #1976e9; background: #e6f1ff; }
.rental-stat.orange > span { color: #f08a00; background: #fff0d7; }
.rental-stat.purple > span { color: #7b35c9; background: #f0e4ff; }
.rental-stat.money > span { color: #68a61a; background: #edf8e2; }
.rental-stat small, .rental-stat em { display: block; color: #52697a; font-style: normal; font-size: 16px; }
.rental-stat strong { display: block; margin: 6px 0; color: #102437; font-size: 29px; line-height: 1; }
.rental-stat.money strong { color: #079447; font-size: 26px; }
.rental-panel { overflow: hidden; border: 1px solid #dde9ed; border-radius: 10px; background: #fff; box-shadow: 0 14px 34px rgba(16,36,55,.065); }
.rental-filters { display: grid; grid-template-columns: minmax(260px, 1.35fr) minmax(180px, .8fr) minmax(220px, 1fr) auto; gap: 16px; align-items: center; padding: 22px; }
.rental-search input, .rental-filters select, .rental-date-filter { min-height: 50px; border: 1px solid #cfdde4; border-radius: 8px; background: #fff; color: #102437; font: inherit; font-size: 17px; }
.rental-filters select { padding: 0 16px; }
.rental-date-filter { display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #708396; }
.rental-date-filter input { width: 130px; border: 0; outline: 0; color: #102437; font: inherit; }
.rental-date-filter em { font-style: normal; }
.rental-export { min-height: 50px; min-width: 150px; color: #007b86; }
.rental-table-wrap { border-width: 1px 0; border-radius: 0; }
.rental-table { min-width: 1220px; font-size: 16px; }
.rental-table th { padding: 18px 24px; color: #07566a; background: #eefafa; font-size: 15px; }
.rental-table td { padding: 24px; vertical-align: middle; }
.rental-code-cell, .rental-customer { display: flex; align-items: center; gap: 14px; }
.rental-code-cell > span, .rental-customer > span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; color: #049a58; background: #def8e9; font-size: 28px; font-weight: 900; flex: 0 0 auto; }
.rental-code-cell strong { display: block; color: #102437; line-height: 1.25; }
.rental-code-cell em { display: inline-flex; margin: 10px 0; padding: 5px 10px; border-radius: 999px; color: #b26b00; background: #fff1cf; font-size: 13px; font-style: normal; font-weight: 800; }
.rental-code-cell em.paid { color: #0f7a43; background: #dff7ea; }
.rental-code-cell small, .rental-customer small { display: block; color: #52697a; margin-top: 5px; }
.rental-customer > span { width: 36px; height: 36px; border-radius: 50%; color: #008c8f; background: #dff8f4; font-size: 14px; }
.rental-customer strong { display: block; color: #102437; }
.rental-photo { width: 92px; height: 70px; object-fit: cover; border: 1px solid #d7e4e8; border-radius: 8px; background: #f2f8f8; }
.rental-photo.empty { display: grid; place-items: center; color: #007b86; font-weight: 900; }
.rental-bike-code { display: block; color: #102437; font-size: 24px; }
.rental-bike-name { display: block; margin: 8px 0; color: #52697a; }
.rental-time { display: grid; gap: 8px; color: #102437; }
.rental-time em { display: inline-flex; width: max-content; padding: 7px 12px; border-radius: 999px; color: #1d65c9; background: #e2f0ff; font-style: normal; font-weight: 800; }
.rental-paid { display: block; color: #079447; font-size: 20px; }
.rental-paid + span { display: block; margin-top: 10px; color: #52697a; }
.rental-status-cell { display: grid; gap: 10px; justify-items: start; }
.rental-status-cell > span:last-child { color: #52697a; }
.rental-actions { display: grid; grid-template-columns: minmax(118px, auto) 44px; gap: 10px; align-items: center; }
.rental-actions button { min-height: 46px; justify-content: center; }
.rental-actions .primary, .rental-actions .ghost:not(.icon-only) { grid-column: 1; }
.rental-actions .icon-only { grid-column: 2; grid-row: 1 / span 3; }
.rental-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; color: #52697a; }
.rental-pager { display: flex; align-items: center; gap: 12px; }
.rental-pager button, .rental-pager select { min-height: 42px; border: 1px solid #d7e4e8; border-radius: 8px; background: #fff; color: #102437; font-weight: 800; }
.rental-pager button { min-width: 42px; }
.rental-pager button.active { color: #fff; border-color: #008c8f; background: #008c8f; }
.rental-pager select { padding: 0 14px; }
.rental-note { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border: 1px solid #a9d0ff; border-radius: 8px; background: #f8fbff; color: #52697a; }
.rental-note > span { color: #1976e9; font-size: 24px; }
.rental-note p { margin: 0; line-height: 1.55; }
.rental-note strong { color: #102437; }
@media (max-width: 1200px) { .rental-stats { grid-template-columns: repeat(2, 1fr); } .rental-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .rental-hero { align-items: flex-start; flex-direction: column; } .rental-title h2 { font-size: 32px; } .rental-stats, .rental-filters { grid-template-columns: 1fr; } .rental-footer { align-items: flex-start; flex-direction: column; } }


/* Modern rental calendar */
.calendar-page { display: grid; gap: 22px; }
.calendar-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.calendar-title { display: flex; align-items: center; gap: 18px; }
.calendar-title-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; color: #008c8f; background: #dff8f4; font-size: 32px; box-shadow: 0 12px 30px rgba(2,140,159,.12); }
.calendar-title h2 { margin: 0; color: #102437; font-size: 34px; letter-spacing: 0; }
.calendar-title p { margin: 8px 0 0; color: #52697a; font-size: 17px; }
.calendar-controls { display: flex; align-items: center; gap: 14px; }
.calendar-range, .calendar-filter, .calendar-tabs { min-height: 48px; border: 1px solid #dbe7eb; border-radius: 8px; background: #fff; color: #102437; box-shadow: 0 8px 22px rgba(16,36,55,.045); }
.calendar-range { padding: 0 18px; font-weight: 800; }
.calendar-tabs { display: flex; overflow: hidden; }
.calendar-tabs button { min-width: 72px; border: 0; background: transparent; color: #52697a; font-weight: 800; }
.calendar-tabs button.active { color: #fff; background: #18b6a6; }
.calendar-filter { padding: 0 18px; font-weight: 800; }
.calendar-stats { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 20px; }
.calendar-stat { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 18px; min-height: 118px; padding: 22px; border: 1px solid #e1ebef; border-radius: 10px; background: #fff; box-shadow: 0 10px 24px rgba(16,36,55,.055); }
.calendar-stat > span { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; font-size: 31px; font-weight: 900; }
.calendar-stat > span.teal { color: #008c8f; background: #dff8f4; }
.calendar-stat > span.green { color: #16a34a; background: #def8e9; }
.calendar-stat > span.orange { color: #f08a00; background: #fff0d7; }
.calendar-stat > span.blue { color: #1683ce; background: #e6f1ff; }
.calendar-stat small, .calendar-stat em { display: block; color: #52697a; font-style: normal; font-size: 16px; }
.calendar-stat strong { display: block; margin: 6px 0; color: #102437; font-size: 30px; line-height: 1; }
.calendar-section { overflow: hidden; border: 1px solid #dde9ed; border-radius: 10px; background: #fff; box-shadow: 0 14px 34px rgba(16,36,55,.055); }
.calendar-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid #e5eef2; }
.calendar-section-head h3 { display: flex; align-items: center; gap: 12px; margin: 0; color: #007b86; font-size: 20px; }
.calendar-section-head h3 span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #dff8f4; }
.calendar-section-head em { padding: 8px 14px; border-radius: 999px; color: #07566a; background: #eefafa; font-style: normal; font-weight: 800; }
.calendar-timeline { display: grid; }
.calendar-row { display: grid; grid-template-columns: 82px 28px 78px minmax(185px, .9fr) minmax(210px, 1fr) minmax(210px, 1fr) minmax(230px, 1fr) 120px 44px; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid #e7eef2; }
.calendar-row:last-child { border-bottom: 0; }
.calendar-day strong { display: block; color: #008c8f; font-size: 18px; }
.calendar-day small { color: #008c8f; }
.calendar-line { position: relative; height: 62px; display: grid; place-items: center; }
.calendar-line::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: #bce9e4; }
.calendar-line i, .calendar-line b { position: relative; z-index: 1; width: 9px; height: 9px; border-radius: 50%; background: #18b6a6; }
.calendar-line b { display: none; }
.calendar-row time { color: #008c8f; font-weight: 900; }
.calendar-ticket { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-left: 4px solid #c7f2ee; border-radius: 8px; background: #effcfa; }
.calendar-ticket strong { color: #102437; }
.calendar-ticket em { padding: 7px 12px; border-radius: 8px; color: #008c8f; background: #dff8f4; font-style: normal; font-weight: 800; }
.calendar-customer, .calendar-bike, .calendar-duration { display: flex; align-items: center; gap: 14px; }
.calendar-customer > span, .calendar-duration > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #008c8f; background: #f0f6f7; font-size: 21px; font-weight: 900; }
.calendar-customer strong, .calendar-bike strong, .calendar-duration strong { display: block; color: #102437; }
.calendar-customer small, .calendar-bike small, .calendar-duration small { display: block; margin-top: 5px; color: #52697a; }
.calendar-bike img, .calendar-bike .rental-photo { width: 58px; height: 48px; border-radius: 8px; object-fit: cover; }
.calendar-status .pill { min-width: 78px; justify-content: center; }
.calendar-more { display: grid; place-items: center; padding: 18px; border-top: 1px solid #e7eef2; }
.calendar-more button { min-width: 128px; }
@media (max-width: 1250px) { .calendar-stats { grid-template-columns: repeat(2, 1fr); } .calendar-row { grid-template-columns: 70px 24px 70px 1fr; } .calendar-customer, .calendar-bike, .calendar-duration, .calendar-status, .calendar-row > button { grid-column: 4; } }
@media (max-width: 780px) { .calendar-hero, .calendar-controls { align-items: flex-start; flex-direction: column; } .calendar-stats { grid-template-columns: 1fr; } .calendar-row { grid-template-columns: 1fr; gap: 10px; } .calendar-line { display: none; } .calendar-customer, .calendar-bike, .calendar-duration, .calendar-status, .calendar-row > button { grid-column: auto; } }


/* Dark navy interface theme */
:root {
  --sea: #0aa6b7;
  --sea-dark: #071d31;
  --teal: #26e0d1;
  --sand: #ffd166;
  --sand-soft: rgba(255, 209, 102, 0.12);
  --ink: #eef7ff;
  --muted: #9db3c9;
  --line: rgba(127, 196, 220, 0.18);
  --bg: #061424;
  --white: #0c2238;
  --danger: #ff5a65;
  --warning: #f7b731;
  --success: #35dc8b;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

body {
  background:
    radial-gradient(circle at 80% 0%, rgba(18, 118, 148, 0.22), transparent 34%),
    radial-gradient(circle at 20% 18%, rgba(38, 224, 209, 0.12), transparent 32%),
    linear-gradient(135deg, #05101d 0%, #071a2d 45%, #08233b 100%);
  color: #eef7ff;
}

.app-shell {
  background:
    radial-gradient(circle at 78% 6%, rgba(0, 209, 193, 0.14), transparent 30%),
    linear-gradient(135deg, #061424, #071c30 52%, #082942);
}

.sidebar {
  background:
    radial-gradient(circle at 18% 6%, rgba(38, 224, 209, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(5, 21, 36, 0.98), rgba(4, 26, 44, 0.98));
  border-right: 1px solid rgba(127, 196, 220, 0.18);
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.22);
}

.brand {
  border-bottom-color: rgba(127, 196, 220, 0.16);
}

.brand span,
.side-user small,
.nav-sub button {
  color: #a9c6d8;
}

.main {
  background:
    radial-gradient(circle at 72% 6%, rgba(27, 104, 149, 0.24), transparent 32%),
    radial-gradient(circle at 24% 12%, rgba(38, 224, 209, 0.08), transparent 34%),
    linear-gradient(135deg, #071525 0%, #08213a 52%, #061a2d 100%);
}

.topbar {
  border-bottom: 1px solid rgba(127, 196, 220, 0.18);
  background: rgba(5, 18, 32, 0.78);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.topbar h1,
.page-title h2,
.calendar-title h2,
.rental-title h2,
.motorbike-title h2,
.bike-type-title h2,
h2,
h3,
h4,
strong,
.table-wrap th,
table th {
  color: #f5fbff;
}

.topbar small,
.page-title p,
.calendar-title p,
.rental-title p,
.motorbike-title p,
.bike-type-title p,
.card p,
.muted,
small,
.calendar-customer small,
.calendar-bike small,
.calendar-duration small,
.rental-code-cell small,
.rental-customer small,
.bike-sub,
.price-line,
.maintenance-cell span,
.status-stack span,
.owner-cell span {
  color: #9db3c9;
}

.card,
.table-wrap,
.motorbike-panel,
.bike-type-panel,
.rental-panel,
.calendar-section,
.op-stat,
.ops-stat,
.motorbike-stat,
.bike-type-stat,
.rental-stat,
.modal,
.summary-card,
.detail-card {
  border-color: rgba(127, 196, 220, 0.18);
  background:
    linear-gradient(145deg, rgba(13, 38, 61, 0.88), rgba(8, 28, 48, 0.82));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.card:hover,
.motorbike-stat:hover,
.bike-type-stat:hover,
.rental-stat:hover,
.calendar-stat:hover,
.op-stat:hover {
  border-color: rgba(38, 224, 209, 0.36);
}

.field input,
.field select,
.field textarea,
.filters input,
.filters select,
.month-filter input,
.attendance-controls input,
.attendance-controls select,
.motorbike-filters select,
.search-box input,
.bike-type-search input,
.rental-search input,
.rental-filters select,
.rental-date-filter,
.calendar-range,
.calendar-filter,
.calendar-tabs,
.status-control select,
.topbar button,
.ops-date,
.ops-bell,
.ops-user {
  border-color: rgba(127, 196, 220, 0.22);
  background: rgba(8, 27, 47, 0.76);
  color: #eaf7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 26px rgba(0, 0, 0, 0.14);
}

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

select option {
  background: #081b2f;
  color: #eef7ff;
}

.primary,
.rental-add,
.btn.primary {
  border-color: rgba(38, 224, 209, 0.36);
  color: #f6ffff;
  background: linear-gradient(135deg, #07859a, #11bfb2);
  box-shadow: 0 16px 34px rgba(0, 191, 178, 0.2);
}

.ghost,
.secondary,
.rental-export,
.calendar-more button,
.pager button,
.rental-pager button,
.rental-pager select {
  border-color: rgba(127, 196, 220, 0.22);
  color: #bdefff;
  background: rgba(10, 34, 56, 0.82);
}

.ghost:hover,
.secondary:hover,
.pager button.active,
.rental-pager button.active,
.calendar-tabs button.active {
  color: #ffffff;
  border-color: rgba(38, 224, 209, 0.5);
  background: linear-gradient(135deg, rgba(11, 136, 156, 0.95), rgba(27, 198, 184, 0.88));
}

thead th,
.motorbike-table th,
.bike-type-table th,
.rental-table th {
  color: #aef9f1;
  background: rgba(18, 77, 98, 0.52);
}

tbody tr,
.motorbike-table tr,
.bike-type-table tbody tr {
  background: rgba(8, 28, 48, 0.58);
}

td,
th,
.table-wrap td,
.calendar-row,
.calendar-section-head,
.calendar-more,
.rental-table-wrap,
.motorbike-table-wrap,
.bike-type-table-wrap {
  border-color: rgba(127, 196, 220, 0.14);
}

table td,
.rental-code-cell strong,
.rental-customer strong,
.rental-bike-code,
.rental-time,
.calendar-ticket strong,
.calendar-customer strong,
.calendar-bike strong,
.calendar-duration strong,
.motorbike-stat strong,
.bike-type-stat strong,
.rental-stat strong,
.type-name-cell strong,
.type-km-cell strong,
.type-checklist span,
.maintenance-cell strong,
.plate-badge {
  color: #f3f9ff;
}

.calendar-title-icon,
.rental-title-icon,
.motorbike-title-icon,
.bike-type-title-icon {
  color: #42fff0;
  background: linear-gradient(145deg, rgba(17, 184, 177, 0.24), rgba(11, 84, 112, 0.45));
  border: 1px solid rgba(38, 224, 209, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.calendar-stat {
  border-radius: 14px;
  border-color: rgba(38, 224, 209, 0.3);
  background:
    radial-gradient(circle at 12% 50%, rgba(38, 224, 209, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(8, 78, 91, 0.76), rgba(7, 31, 51, 0.86));
}

.calendar-stat:nth-child(2) {
  border-color: rgba(53, 220, 139, 0.3);
  background:
    radial-gradient(circle at 12% 50%, rgba(53, 220, 139, 0.19), transparent 28%),
    linear-gradient(135deg, rgba(20, 82, 55, 0.72), rgba(7, 31, 51, 0.86));
}

.calendar-stat:nth-child(3) {
  border-color: rgba(247, 183, 49, 0.36);
  background:
    radial-gradient(circle at 12% 50%, rgba(247, 183, 49, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(99, 75, 18, 0.62), rgba(7, 31, 51, 0.86));
}

.calendar-stat:nth-child(4) {
  border-color: rgba(70, 148, 255, 0.34);
  background:
    radial-gradient(circle at 12% 50%, rgba(70, 148, 255, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(18, 68, 118, 0.72), rgba(7, 31, 51, 0.86));
}

.calendar-stat > span,
.rental-stat > span,
.type-stat-icon,
.stat-icon,
.ops-icon,
.calendar-section-head h3 span,
.calendar-customer > span,
.calendar-duration > span,
.rental-code-cell > span,
.rental-customer > span,
.owner-icon {
  background: rgba(38, 224, 209, 0.12);
  border: 1px solid rgba(38, 224, 209, 0.13);
}

.calendar-stat small,
.calendar-stat em,
.rental-stat small,
.rental-stat em,
.bike-type-stat small,
.bike-type-stat em,
.motorbike-stat small,
.motorbike-stat em {
  color: #a9c6d8;
}

.calendar-section {
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(10, 34, 56, 0.92), rgba(6, 24, 42, 0.9));
}

.calendar-section-head h3 {
  color: #ecfbff;
}

.calendar-section-head em,
.calendar-ticket em,
.plate-badge,
.pill {
  color: #b8fff7;
  background: rgba(38, 224, 209, 0.12);
  border-color: rgba(38, 224, 209, 0.18);
}

.calendar-line::before {
  background: rgba(117, 211, 229, 0.28);
}

.calendar-line i,
.calendar-line b {
  background: #42fff0;
  box-shadow: 0 0 18px rgba(66, 255, 240, 0.7);
}

.calendar-row time,
.calendar-day strong,
.calendar-day small,
.calendar-section-head h3 span {
  color: #42fff0;
}

.calendar-ticket {
  border-left-color: rgba(38, 224, 209, 0.55);
  background: linear-gradient(135deg, rgba(13, 48, 76, 0.88), rgba(9, 35, 58, 0.9));
}

.calendar-bike img,
.rental-photo,
.bike-photo-code img,
.bike-photo-empty,
.type-illustration {
  border-color: rgba(127, 196, 220, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.timeline-item,
.quick-action,
.type-note,
.rental-note,
.alert-item,
.ops-alert {
  border-color: rgba(127, 196, 220, 0.18);
  background: rgba(9, 31, 52, 0.72);
  color: #ddecf8;
}

.side-user,
.modal-actions,
.calendar-section-head,
.rental-footer,
.motorbike-footer {
  border-color: rgba(127, 196, 220, 0.16);
}

@media print {
  body,
  .main,
  .content,
  .card,
  .table-wrap {
    background: #ffffff !important;
    color: #17313b !important;
    box-shadow: none !important;
  }

  table th {
    color: #07566a !important;
    background: #eefafa !important;
  }
}

/* High-contrast text pass for the dark dashboard */
.ops-dashboard,
.overview-shell,
.content,
.main {
  color: #edf8ff;
}

.ops-title-wrap h1,
.overview-title h1,
.page-title h2,
.ops-stat p,
.op-stat-card p,
.ops-finance h3,
.ops-profit h3,
.ops-card-title h3,
.overview-alert-card h3,
.card h3,
.card h4 {
  color: #f7fbff !important;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.25);
}

.ops-stat strong,
.op-stat-card strong,
.overview-stat-grid strong,
.calendar-stat strong,
.motorbike-stat strong,
.bike-type-stat strong,
.rental-stat strong,
.card strong {
  color: #ffffff !important;
}

.ops-stat small,
.op-stat-card small,
.overview-title p,
.overview-stat-grid small,
.ops-title-wrap small,
.topbar small,
.card small,
.card p,
.hint,
.muted {
  color: #b7cce0 !important;
}

.op-stat-card,
.ops-stat {
  background:
    linear-gradient(145deg, rgba(14, 45, 72, 0.94), rgba(7, 29, 50, 0.9)) !important;
  border-color: rgba(126, 210, 236, 0.24) !important;
}

.op-stat-card:hover,
.ops-stat:hover {
  border-color: rgba(38, 224, 209, 0.5) !important;
}

.topbar button,
.ops-date,
.ops-bell,
.ops-user,
.calendar-range,
.calendar-filter,
.calendar-tabs {
  color: #f2fbff !important;
}

/* Report and KPI contrast on dark cards */
.metric span,
.metric strong,
.report-kpi span,
.report-kpi strong,
.report-score span,
.report-score strong,
.monthly-rental-card span,
.monthly-rental-card strong,
.finance-panel h3,
.finance-panel > strong,
.finance-panel b,
.finance-split small,
.finance-split b,
.money,
.bar-label span,
.bar-label strong,
.panel-title h3 {
  color: #ffffff !important;
}

.metric span,
.report-kpi span,
.report-score span,
.monthly-rental-card .hint,
.monthly-rental-card small,
.report-kpi small,
.finance-panel p,
.finance-split small,
.bar-label span {
  color: #c9d9e8 !important;
}

.metric strong,
.report-kpi strong,
.report-score strong,
.monthly-rental-card strong,
.finance-panel > strong,
.money {
  color: #f8fdff !important;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
}

.metric,
.report-kpi,
.monthly-rental-card,
.finance-panel,
.chart-card {
  color: #edf8ff !important;
  border-color: rgba(126, 210, 236, 0.24) !important;
  background:
    linear-gradient(145deg, rgba(14, 45, 72, 0.94), rgba(7, 29, 50, 0.9)) !important;
}

.monthly-rental-card .month-filter,
.month-filter,
.month-filter input {
  color: #f2fbff !important;
}


/* Booking timeline module */
.booking-page {
  display: grid;
  gap: 16px;
  color: #edf8ff;
}

.booking-head,
.booking-toolbar,
.booking-layout,
.booking-detail,
.booking-board,
.booking-simple-card {
  border: 1px solid rgba(126, 210, 236, 0.22);
  background: linear-gradient(145deg, rgba(14, 45, 72, 0.94), rgba(7, 29, 50, 0.9));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

.booking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
}

.booking-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  letter-spacing: .02em;
}

.booking-head p,
.booking-toolbar,
.booking-detail dt,
.booking-detail small,
.booking-simple-card small {
  color: #b7cce0;
}

.booking-head p { margin: 5px 0 0; }

.booking-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 12px;
}

.booking-toolbar select,
.booking-toolbar input,
.booking-date,
.booking-tabs,
.booking-toolbar button {
  min-height: 42px;
  border: 1px solid rgba(126, 210, 236, 0.24);
  border-radius: 8px;
  background: rgba(8, 27, 47, 0.82);
  color: #f2fbff;
  padding: 0 14px;
}

.booking-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(126, 210, 236, 0.24);
  border-radius: 8px;
  background: rgba(8, 27, 47, 0.82);
  color: #f2fbff;
  padding: 0 12px;
  font-weight: 800;
}

.booking-control span {
  color: #b7cce0;
  font-size: 12px;
}

.booking-control input {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 0;
}

.booking-control input::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.65);
  opacity: .88;
}

.booking-tabs {
  display: flex;
  padding: 0;
  overflow: hidden;
}

.booking-tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b7cce0;
}

.booking-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, #0b889c, #1bc6b8);
}

.booking-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
  font-size: 12px;
}

.booking-legend span,
.booking-service em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dff8ff;
}

.booking-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.booking-legend .green { color: #45e08f; }
.booking-legend .blue { color: #61a7ff; }
.booking-legend .orange { color: #ffb545; }
.booking-legend .purple { color: #b38cff; }
.booking-legend .red { color: #ff6b78; }

.booking-layout {
  display: grid;
  grid-template-columns: minmax(820px, 1fr) 320px;
  gap: 0;
  overflow: hidden;
  border-radius: 14px;
}

.booking-board {
  position: relative;
  overflow: auto;
  border: 0;
  border-radius: 0;
  min-height: 620px;
}

.booking-grid-head,
.booking-hotel-row,
.booking-room-row,
.booking-more-row {
  display: grid;
  grid-template-columns: 220px repeat(var(--booking-days, 16), 86px);
  min-width: var(--booking-min, 1596px);
}

.booking-grid-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(9, 30, 51, 0.96);
  border-bottom: 1px solid rgba(126, 210, 236, 0.16);
}

.booking-grid-head > div,
.booking-hotel-row > div,
.booking-room-row > div,
.booking-more-row > div {
  min-height: 42px;
  border-right: 1px solid rgba(126, 210, 236, 0.12);
  border-bottom: 1px solid rgba(126, 210, 236, 0.12);
}

.booking-grid-head > div:not(:first-child) {
  display: grid;
  place-items: center;
  color: #dff8ff;
  font-size: 12px;
}

.booking-grid-head small {
  color: #9fb9ce;
}

.booking-grid-head .weekend strong,
.booking-grid-head .weekend small {
  color: #ff6b78;
}

.booking-hotel-name,
.booking-room-name,
.booking-more-row > div:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: rgba(9, 30, 51, 0.98);
}

.booking-hotel-name {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.booking-hotel-name span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(38, 224, 209, .14);
}

.booking-hotel-name span.green { color: #45e08f; }
.booking-hotel-name span.blue { color: #61a7ff; }
.booking-hotel-name span.purple { color: #b38cff; }
.booking-hotel-name span.orange { color: #ffb545; }
.booking-hotel-name strong { color: #ffffff; font-size: 13px; }
.booking-hotel-name small { grid-column: 2; color: #b7cce0; }

.booking-room-name {
  padding: 10px 12px;
  color: #cfe5f5;
  font-size: 12px;
}

.booking-room-name strong { color: #fff; }

.booking-room-row > div:not(:first-child) {
  position: relative;
  background: linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
}

.booking-pill {
  position: absolute;
  z-index: 2;
  left: 4px;
  top: 6px;
  width: calc(var(--span) * 86px - 8px);
  min-height: 48px;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 2px;
  border: 1px solid currentColor;
  border-radius: 5px;
  padding: 5px 8px;
  text-align: left;
  font-size: 11px;
  background: rgba(38, 224, 209, 0.12);
  color: #45e08f;
  cursor: pointer;
}

.booking-pill strong { color: #fff !important; font-size: 11px; }
.booking-pill small { color: rgba(255,255,255,.78); }
.booking-pill em {
  display: block;
  width: 100%;
  overflow: hidden;
  color: rgba(255,255,255,.66);
  font-size: 10px;
  font-style: normal;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booking-pill.blue { color: #61a7ff; background: rgba(97, 167, 255, .12); }
.booking-pill.orange { color: #ffb545; background: rgba(255, 181, 69, .12); }
.booking-pill.purple { color: #b38cff; background: rgba(179, 140, 255, .12); }
.booking-pill.red { color: #ff6b78; background: rgba(255, 107, 120, .12); }

.booking-pill:hover {
  filter: brightness(1.18);
  transform: translateY(-1px);
}

.today-line {
  position: absolute;
  top: 42px;
  bottom: 0;
  width: 2px;
  background: #ff5a65;
  z-index: 4;
  box-shadow: 0 0 18px rgba(255, 90, 101, .65);
  pointer-events: none;
}

.today-line span {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 10px;
  border-radius: 6px;
  color: #fff;
  background: #ff5a65;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.booking-form-grid select,
.booking-form-grid input,
.booking-form-grid textarea {
  color: #f7fdff !important;
  background: rgba(5, 23, 40, 0.92) !important;
  border-color: rgba(126, 210, 236, 0.34) !important;
}

.booking-form-grid input::placeholder,
.booking-form-grid textarea::placeholder {
  color: rgba(234, 247, 255, 0.72) !important;
}

.booking-form-grid label {
  color: #ffffff !important;
}

.booking-form-grid select option {
  color: #f7fdff;
  background: #071a2e;
}

.booking-form-grid input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.8);
  opacity: .9;
}

.booking-detail {
  position: relative;
  border-width: 0 0 0 1px;
  border-radius: 0;
  padding: 18px;
  overflow: auto;
}

.booking-close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: transparent;
  color: #eaf7ff;
  font-size: 22px;
}

.booking-detail h3,
.booking-detail h4 { margin: 0 0 14px; color: #fff; }
.booking-detail h4 { margin-top: 20px; font-size: 13px; letter-spacing: .04em; }

.booking-detail-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.booking-detail-title > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(179, 140, 255, .16);
  font-size: 25px;
}

.booking-detail dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 12px;
  margin: 0;
  font-size: 13px;
}

.booking-detail dd { margin: 0; color: #fff; font-weight: 800; text-align: right; }

.booking-services { display: grid; gap: 8px; }
.booking-service {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 9px;
  background: rgba(255,255,255,.05);
}
.booking-service span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: rgba(38,224,209,.14); }
.booking-service strong { color: #fff !important; }
.booking-service small { display: block; }
.booking-service.green span { color: #45e08f; }
.booking-service.blue span { color: #61a7ff; }
.booking-service.red span { color: #ff6b78; }

.booking-pay dd:nth-of-type(3) { color: #ff6b78; }
.booking-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.booking-actions button { min-height: 38px; justify-content: center; }

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

.booking-simple-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 12px;
}

.booking-simple-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #26e0d1;
  background: rgba(38,224,209,.12);
}
.booking-simple-card svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.booking-simple-card strong { display: block; color: #fff !important; margin-bottom: 6px; }
.booking-simple-card small { display: block; margin-top: 4px; }

.hotel-card-grid .hotel-card {
  align-items: stretch;
}

.hotel-card .secondary {
  margin-top: 12px;
}

.hotel-management-page table strong {
  color: #ffffff !important;
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.room-actions button {
  min-height: 34px;
  padding: 7px 10px;
}

.hotel-card.is-hidden,
.muted-row {
  opacity: .58;
}

.muted-row td {
  color: rgba(234, 247, 255, .68);
}

@media (max-width: 1200px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-detail { border-width: 1px 0 0; }
}

/* Stronger alert contrast on the dark operations dashboard */
.ops-alert-card {
  border: 1px solid rgba(38, 224, 209, 0.28) !important;
  background: linear-gradient(145deg, rgba(8, 28, 48, 0.98), rgba(5, 20, 35, 0.98)) !important;
}

.ops-alert-card .ops-card-title h3 {
  color: #ffffff !important;
}

.ops-alert-card .ops-card-title .ghost {
  color: #42fff0 !important;
  font-weight: 900;
}

.ops-alert-card .ops-alert {
  grid-template-columns: 30px minmax(0, 1fr) 64px;
  align-items: center;
  min-height: 48px;
  padding: 9px 10px;
  border-width: 1px;
  border-style: solid;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.ops-alert-card .ops-alert.danger {
  border-color: #ffb4b4 !important;
  background: #fff0f0 !important;
}

.ops-alert-card .ops-alert.warning {
  border-color: #ffd88a !important;
  background: #fff7e8 !important;
}

.ops-alert-card .ops-alert:not(.danger):not(.warning) {
  border-color: #b7d4ff !important;
  background: #f2f7ff !important;
}

.ops-alert-card .ops-alert strong {
  color: #9f1111 !important;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: none;
}

.ops-alert-card .ops-alert.warning strong {
  color: #a45800 !important;
}

.ops-alert-card .ops-alert:not(.danger):not(.warning) strong {
  color: #1746b8 !important;
}

.ops-alert-card .ops-alert small {
  color: #294056 !important;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}

.ops-alert-card .ops-alert time {
  color: #b91c1c !important;
  font-size: 11px;
  font-weight: 900;
}

.ops-alert-card .ops-alert.warning time {
  color: #a45800 !important;
}

.ops-alert-card .ops-alert:not(.danger):not(.warning) time {
  color: #1746b8 !important;
}

/* Permission modal readability */
.modal .permission-grid {
  gap: 10px;
}

.modal .permission-item {
  align-items: flex-start;
  gap: 12px;
  min-height: 60px;
  padding: 12px 14px;
  border: 1px solid #c9dce8 !important;
  border-radius: 8px;
  background: #f8fcff !important;
  color: #0f2638 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.modal .permission-item:has(input:checked) {
  border-color: #16b7ad !important;
  background: #e9fffc !important;
  box-shadow: inset 4px 0 0 #16b7ad, 0 8px 18px rgba(0, 0, 0, 0.12);
}

.modal .permission-item input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #078894;
}

.modal .permission-item span {
  display: grid;
  gap: 4px;
}

.modal .permission-item strong {
  color: #0b1f31 !important;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: none;
}

.modal .permission-item small {
  color: #31526b !important;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

.modal .permission-item input:disabled + span strong,
.modal .permission-item input:disabled + span small {
  opacity: 1;
}

/* Dashboard activity split tables */
.ops-bottom-grid {
  grid-template-columns: 1fr !important;
}

.ops-bottom-grid .ops-reminder-card,
.ops-bottom-grid .ops-activity-card {
  display: none !important;
}

.ops-activity-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ops-activity-board {
  min-height: 300px;
  border: 1px solid rgba(38, 224, 209, 0.28) !important;
  background: linear-gradient(145deg, rgba(8, 28, 48, 0.98), rgba(5, 20, 35, 0.98)) !important;
}

.ops-activity-board .ops-card-title h3 {
  color: #ffffff !important;
}

.ops-activity-board .ops-card-title .ghost {
  color: #42fff0 !important;
  font-weight: 900;
}

.ops-activity-board .activity-list {
  gap: 0;
}

.ops-activity-board .activity-item {
  grid-template-columns: 50px 34px minmax(0, 1fr);
  padding: 12px 0;
  border-bottom: 1px solid rgba(220, 238, 248, 0.72) !important;
  background: transparent !important;
  color: #eaf7ff !important;
}

.ops-activity-board .activity-item:last-child {
  border-bottom: 0 !important;
}

.ops-activity-board .activity-item time {
  color: #b9d4e8 !important;
  font-weight: 900;
}

.ops-activity-board .activity-item strong {
  color: #ffffff !important;
  font-size: 13.5px;
}

.ops-activity-board .activity-item small {
  color: #b9d4e8 !important;
  font-weight: 700;
}

@media (max-width: 1300px) {
  .ops-activity-split {
    grid-template-columns: 1fr;
  }
}

/* Login form readability */
.login-card .password-panel label,
.login-card .recover-panel label {
  color: #ffffff !important;
  font-weight: 900;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.38);
}

.login-card .field input {
  min-height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.92) !important;
  background: #f8fcff !important;
  color: #081f2f !important;
  caret-color: #078894;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.login-card .field input::placeholder {
  color: #4a6678 !important;
  opacity: 1;
  font-weight: 700;
}

.login-card .field input:focus {
  border-color: #ffd36f !important;
  background: #ffffff !important;
  color: #061927 !important;
  outline: 3px solid rgba(255, 211, 111, 0.34);
}

.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: #081f2f !important;
  box-shadow: 0 0 0 1000px #f8fcff inset, 0 8px 18px rgba(0, 0, 0, 0.16) !important;
}

/* Maintenance alert table readability */
.oil-alert-card .panel-title h3 {
  color: #ffffff !important;
}

.oil-alert-card .panel-title .hint {
  color: #cfe5f4 !important;
}

.oil-alert-card .table-wrap {
  border-color: rgba(255, 215, 140, 0.34) !important;
  background: #fffaf0 !important;
}

.oil-alert-card table th {
  color: #ffffff !important;
  background: #104a5e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  font-weight: 900;
}

.oil-alert-card table td {
  color: #102437 !important;
  background: #fff7e6 !important;
  border-color: #ead9b8 !important;
  font-weight: 750;
}

.oil-alert-card table tr:nth-child(even) td {
  background: #fffdf6 !important;
}

.oil-alert-card tr.alert-row td {
  background: #fff1d0 !important;
}

.oil-alert-card table td strong {
  color: #061927 !important;
  font-weight: 950;
}

.oil-alert-card table td .hint,
.oil-alert-card table td small {
  color: #37566e !important;
  font-weight: 800;
}

.oil-alert-card table .pill {
  color: #753c00 !important;
  background: #ffe9ad !important;
  border: 1px solid #ffd16b !important;
  font-weight: 950;
}

.oil-alert-card table .actions button {
  color: #ffffff !important;
  border-color: #164b63 !important;
  background: #164b63 !important;
  font-weight: 950;
  text-shadow: none;
}

.oil-alert-card table .actions button:hover {
  border-color: #078f9a !important;
  background: linear-gradient(135deg, #078f9a, #12b7ad) !important;
}

/* Uploaded bike images: keep previews visible on the dark theme */
.modal .image-grid {
  border-color: rgba(127, 196, 220, 0.42) !important;
  background: #f7fcff !important;
}

.modal .image-thumb img,
.motorbike-table .bike-photo-code img,
.motorbike-table .bike-photo-empty,
.motorbike-table .bike-photo-zoom,
.motorbike-table .bike-photo-zoom img {
  background: #ffffff !important;
}

.modal .image-thumb img {
  border-color: #9ec7d6 !important;
}

.modal .image-grid > span {
  color: #31526b !important;
  font-weight: 800;
}
