:root {
  --sm-bg: #f8fafc;
  --sm-surface: #ffffff;
  --sm-surface-soft: #f8fafc;
  --sm-ink: #1e293b;
  --sm-muted: #64748b;
  --sm-line: #e2e8f0;
  --sm-primary: #2563eb;
  --sm-primary-dark: #1d4ed8;
  --sm-primary-soft: #eff6ff;
  --sm-submit: #10b981;
  --sm-submit-dark: #059669;
  --sm-warning: #f59e0b;
  --sm-warning-dark: #d97706;
  --sm-warning-soft: #fffbeb;
  --sm-delete: #ef4444;
  --sm-delete-dark: #dc2626;
  --sm-shadow: 0 18px 42px rgba(30, 41, 59, 0.08);
}

body {
  background: var(--sm-bg);
  color: var(--sm-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--sm-primary);
  font-weight: 600;
}

a:hover {
  color: var(--sm-primary-dark);
}

.page-shell {
  max-width: 1220px;
  padding: 30px 24px 52px;
}

.app-topbar {
  align-items: center;
  background: var(--sm-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.18);
  display: flex;
  height: 66px;
  justify-content: flex-start;
  padding-left: 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-brand {
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 4px 10px;
  text-decoration: none;
}

.app-brand img {
  display: block;
  height: 28px;
  width: auto;
}

.app-brand:hover {
  background: #ffffff;
}

.topbar-action {
  margin-left: auto;
  margin-right: 20px;
  z-index: 1;
}

.topbar-action .btn {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.topbar-action .btn:hover {
  background: #ffffff;
  color: var(--sm-primary);
}

.app-layout {
  display: flex;
  min-height: calc(100vh - 66px);
}

.app-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--sm-line);
  box-shadow: 8px 0 28px rgba(30, 41, 59, 0.04);
  flex: 0 0 220px;
  min-height: calc(100vh - 66px);
  padding: 30px 16px;
  position: sticky;
  top: 66px;
}

.side-link {
  border-radius: 8px;
  color: #475569;
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 11px 13px;
  text-decoration: none;
}

.side-link-alert {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.nav-count-badge,
.nav-count-muted {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  padding: 5px 7px;
  white-space: nowrap;
}

.nav-count-badge {
  background: #fef3c7;
  color: #92400e;
}

.nav-count-muted {
  background: #f1f5f9;
  color: #64748b;
}

.side-link:hover {
  background: var(--sm-primary-soft);
  color: var(--sm-primary);
}

.page-header,
.section-title,
.action-row,
.filter-bar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.page-header h1 {
  color: var(--sm-ink);
  font-weight: 800;
}

.text-secondary {
  color: var(--sm-muted) !important;
}

.action-row,
.filter-bar {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary {
  background: var(--sm-primary);
  border-color: var(--sm-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--sm-primary-dark);
  border-color: var(--sm-primary-dark);
}

.btn-success {
  background: var(--sm-submit);
  border-color: var(--sm-submit);
  color: #ffffff;
}

.btn-success:hover,
.btn-success:focus {
  background: var(--sm-submit-dark);
  border-color: var(--sm-submit-dark);
  color: #ffffff;
}

.btn-outline-secondary {
  border-color: #cbd5e1;
  color: #475569;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: var(--sm-ink);
  border-color: var(--sm-ink);
  color: #ffffff;
}

.btn-outline-primary {
  border-color: var(--sm-primary);
  color: var(--sm-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--sm-primary);
  border-color: var(--sm-primary);
  color: #ffffff;
}

.btn-outline-danger {
  border-color: #fecaca;
  color: var(--sm-delete);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  background: var(--sm-delete);
  border-color: var(--sm-delete);
  color: #ffffff;
}

.filter-bar {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--sm-line);
  border-radius: 8px;
  box-shadow: var(--sm-shadow);
  padding: 14px;
}

.filter-bar .form-control,
.filter-bar .form-select {
  max-width: 210px;
}

.form-control,
.form-select {
  background-color: #ffffff;
  border-color: #475569;
  border-width: 2px;
  border-radius: 8px;
  color: var(--sm-ink);
  font-weight: 600;
}

.form-control:focus,
.form-select:focus {
  background-color: #ffffff;
  border-color: #111827;
  box-shadow: 0 0 0 0.2rem rgba(15, 23, 42, 0.14);
}

.metric-grid,
.content-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

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

.content-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.metric-card,
.content-grid > section,
.form-panel,
.narrow-panel,
.note-block,
.detail-list {
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: 8px;
  box-shadow: var(--sm-shadow);
}

.metric-card,
.content-grid > section,
.form-panel,
.narrow-panel,
.note-block {
  padding: 20px;
}

.metric-card {
  border-top: 4px solid var(--sm-primary);
}

.metric-card--sales {
  border-top-color: var(--sm-primary);
}

.metric-card--fuel {
  border-top-color: var(--sm-warning);
}

.metric-card--gross {
  border-top-color: var(--sm-submit);
}

.metric-card--value {
  border-top-color: #0f766e;
}

.metric-card--difference {
  border-top-color: #7c3aed;
}

.metric-card--net {
  border-top-color: var(--sm-delete);
}

.metric-card span {
  color: var(--sm-muted);
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

.metric-card strong {
  color: var(--sm-ink);
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 7px;
}

.section-title {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.section-title h2 {
  color: var(--sm-ink);
  font-weight: 800;
  margin-bottom: 0;
}

.calculation-summary {
  background: var(--sm-surface-soft);
  border: 1px solid var(--sm-line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 18px;
  padding: 14px;
}

.calculation-summary > div {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}

.calculation-summary span {
  color: var(--sm-muted);
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
}

.calculation-summary strong {
  color: var(--sm-ink);
  display: block;
  font-size: 1.25rem;
  margin-top: 4px;
}

.calculation-warning {
  background: var(--sm-warning-soft);
  border: 1px solid #fcd34d;
  border-radius: 8px;
  color: #92400e;
  margin-bottom: 18px;
  padding: 10px 12px;
}

.narrow-panel {
  margin: 64px auto 0;
  max-width: 480px;
}

.quote-page {
  display: grid;
  gap: 28px;
}

.quote-hero {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--sm-line);
  border-radius: 8px;
  box-shadow: var(--sm-shadow);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  padding: 32px;
}

.quote-kicker {
  color: var(--sm-primary);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.quote-hero h1 {
  color: var(--sm-ink);
  font-size: 2rem;
  font-weight: 850;
  line-height: 1.15;
  margin-bottom: 12px;
}

.quote-hero p {
  color: var(--sm-muted);
  font-size: 1rem;
  margin-bottom: 18px;
  max-width: 620px;
}

.quote-feature-row,
.quote-image-frame,
.how-panel,
.quote-form-panel {
  background: #ffffff;
  border: 1px solid var(--sm-line);
  border-radius: 8px;
  box-shadow: var(--sm-shadow);
}

.quote-feature-stack {
  display: grid;
  gap: 18px;
}

.quote-feature-row {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  padding: 24px;
}

.quote-feature-number {
  color: var(--sm-primary);
  display: block;
  font-weight: 850;
  margin-bottom: 8px;
}

.quote-feature-row h2 {
  color: var(--sm-ink);
  font-size: 1.28rem;
  font-weight: 850;
  margin-bottom: 8px;
}

.quote-feature-row p {
  color: var(--sm-muted);
  margin-bottom: 12px;
}

.quote-feature-row ul {
  color: var(--sm-ink);
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.quote-feature-row li {
  font-weight: 700;
}

.quote-mobile-row {
  background: linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
  border-color: #d8e0ea;
  overflow: hidden;
  position: relative;
}

.quote-mobile-row::before {
  background: #2563eb;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 5px;
}

.quote-mobile-copy {
  position: relative;
}

.quote-mobile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.quote-mobile-tags span {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: var(--sm-ink);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 8px 12px;
}

.quote-image-frame {
  overflow: hidden;
  padding: 10px;
}

.quote-image-frame img {
  border: 1px solid var(--sm-line);
  border-radius: 8px;
  display: block;
  height: auto;
  width: 100%;
}

.quote-phone-frame {
  background: #ffffff;
  justify-self: center;
  max-width: 360px;
}

.how-panel,
.quote-form-panel {
  padding: 22px;
}

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

.how-steps div {
  background: var(--sm-surface-soft);
  border: 1px solid var(--sm-line);
  border-radius: 8px;
  padding: 14px;
}

.how-steps strong {
  align-items: center;
  background: var(--sm-primary);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  margin-bottom: 10px;
  width: 28px;
}

.how-steps span {
  color: var(--sm-ink);
  display: block;
  font-weight: 700;
}

.quote-form-panel {
  max-width: 720px;
}

.form-panel {
  max-width: 720px;
}

.form-panel.wide {
  max-width: 960px;
}

.form-submit-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stacked-form {
  display: grid;
  gap: 14px;
}

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

.invoice-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form-grid > div,
.invoice-form-grid > div,
.stacked-form > div {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  padding: 12px;
}

.form-grid > div:nth-child(2n),
.invoice-form-grid > div:nth-child(2n),
.stacked-form > div:nth-child(2n) {
  background: #f1f5f9;
  border-color: #94a3b8;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.form-grid > div:nth-child(3n),
.invoice-form-grid > div:nth-child(3n),
.stacked-form > div:nth-child(3n) {
  background: #e5e7eb;
  border-color: #64748b;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.form-grid > div:nth-child(4n),
.invoice-form-grid > div:nth-child(4n),
.stacked-form > div:nth-child(4n) {
  background: #ffffff;
  border-color: #334155;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.09);
}

.form-grid > div:focus-within,
.invoice-form-grid > div:focus-within,
.stacked-form > div:focus-within {
  background: #ffffff;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.14), 0 12px 24px rgba(15, 23, 42, 0.12);
}

.span-2 {
  grid-column: 1 / -1;
}

.form-label {
  color: #111827;
  font-weight: 700;
}

.required-marker {
  color: var(--sm-delete);
  font-weight: 800;
}

.upload-card {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.invoice-upload-panel,
.attachment-panel {
  background: #ffffff;
  border: 1px solid var(--sm-line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.invoice-upload-card {
  background: #f8fafc;
  border: 1px dashed #64748b;
  border-radius: 8px;
  padding: 14px;
}

.invoice-upload-card:focus-within {
  background: #ffffff;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.attachment-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.attachment-card-top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.upload-current {
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.upload-actions {
  flex: 0 0 auto;
}

.upload-input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.upload-selected-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.upload-selected-item {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 10px;
}

.upload-selected-item span {
  color: #111827;
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.fuel-dip-panel {
  background: #ffffff;
  border: 2px solid #111827;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  margin-top: 14px;
  padding: 14px;
}

.fuel-dip-panel-header {
  align-items: center;
  border-bottom: 1px solid #cbd5e1;
  color: #111827;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.fuel-dip-row {
  align-items: end;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1.4fr) minmax(0, 1fr);
  margin-bottom: 10px;
  padding: 12px;
}

.fuel-dip-row:nth-child(2n + 1) {
  background: #eef2f7;
  border-color: #94a3b8;
}

.fuel-dip-number {
  align-items: center;
  align-self: stretch;
  background: #111827;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 52px;
}

.span-2 {
  grid-column: 1 / -1;
}

.detail-list {
  display: grid;
  grid-template-columns: 180px 1fr;
  margin: 0;
  padding: 18px;
}

.detail-list dt,
.detail-list dd {
  border-bottom: 1px solid #e2e8f0;
  margin: 0;
  padding: 10px 0;
}

.detail-list dt {
  color: var(--sm-muted);
  font-weight: 800;
}

.table-responsive {
  border-radius: 8px;
}

.table {
  background: var(--sm-surface);
  margin-bottom: 0;
}

.table thead th {
  background: var(--sm-primary-soft);
  color: var(--sm-ink);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.table tbody tr:hover {
  background: #f1f5f9;
}

.table td,
.table th {
  border-color: #e2e8f0;
  vertical-align: middle;
}

.invoice-name-pill {
  border-radius: 999px;
  display: inline-block;
  font-weight: 800;
  line-height: 1.2;
  padding: 6px 10px;
}

.invoice-name-pill--tone-1 {
  background: #eff6ff;
  color: #1d4ed8;
}

.invoice-name-pill--tone-2 {
  background: #fffbeb;
  color: #b45309;
}

.invoice-name-pill--tone-3 {
  background: #ecfdf5;
  color: #047857;
}

.invoice-name-pill--tone-4 {
  background: #fdf2f8;
  color: #be185d;
}

.invoice-name-pill--tone-5 {
  background: #f5f3ff;
  color: #6d28d9;
}

.invoice-name-pill--tone-6 {
  background: #f0fdfa;
  color: #0f766e;
}

.invoice-name-pill--tone-7 {
  background: #fff7ed;
  color: #c2410c;
}

.invoice-name-pill--tone-8 {
  background: #f0f9ff;
  color: #0369a1;
}

.invoice-name-pill--tone-9 {
  background: #f7fee7;
  color: #4d7c0f;
}

.invoice-name-pill--tone-10 {
  background: #fef2f2;
  color: #b91c1c;
}

.invoice-name-pill--tone-11 {
  background: #eef2ff;
  color: #4338ca;
}

.invoice-name-pill--tone-12 {
  background: #faf5ff;
  color: #7e22ce;
}

.table-dayend tbody tr td:first-child {
  font-weight: 700;
}

.line-highlight--blue {
  background: #eff6ff;
}

.line-highlight--amber {
  background: #fffbeb;
}

.line-highlight--green {
  background: #ecfdf5;
}

.line-total td {
  border-top-width: 2px;
  font-weight: 800;
}

.line-total--sales {
  background: #dbeafe;
  color: #1e40af;
}

.line-total--fuel {
  background: #fef3c7;
  color: #92400e;
}

.line-total--gross {
  background: #d1fae5;
  color: #065f46;
}

.line-total--net {
  background: #fee2e2;
  color: #991b1b;
}

.alert {
  border-radius: 8px;
  box-shadow: var(--sm-shadow);
}

.errorlist {
  color: var(--sm-delete);
  margin-bottom: 0;
}

.invoice-preview-body,
.pdf-preview-body {
  background: var(--sm-surface-soft);
  min-height: 70vh;
  padding: 0;
}

.invoice-preview-body iframe,
.pdf-preview-body iframe {
  border: 0;
  display: block;
  height: 70vh;
  width: 100%;
}

.invoice-preview-unavailable {
  align-content: center;
  color: var(--sm-ink);
  min-height: 70vh;
  padding: 32px;
  text-align: center;
}

.invoice-preview-unavailable strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.invoice-preview-unavailable p {
  color: var(--sm-muted);
  margin: 0;
}

.report-preview-table {
  background: var(--sm-surface);
  border-radius: 8px;
  max-height: 70vh;
  overflow: auto;
}

.report-preview-table .table {
  min-width: 920px;
}

.modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(30, 41, 59, 0.22);
}

.modal-header {
  background: var(--sm-primary);
  color: #ffffff;
}

.modal-header .btn-close {
  filter: invert(1);
}

.login-page {
  background: #f4f7ff;
}

.login-page .app-topbar {
  display: none;
}

.login-page .app-layout {
  display: block;
  min-height: 100vh;
}

.login-page .page-shell {
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.login-shell {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.11), rgba(255, 255, 255, 0.68) 36%, rgba(37, 99, 235, 0.1)),
    #f8fbff;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 34px 20px;
  position: relative;
}

.login-shell::before {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 0 0 0 58%;
  content: "";
  height: 52vh;
  position: absolute;
  right: -8vw;
  top: 0;
  width: 42vw;
}

.login-wave {
  background: rgba(37, 99, 235, 0.08);
  border-radius: 56% 0 0 0;
  bottom: -22vh;
  height: 58vh;
  position: absolute;
  right: 0;
  width: 44vw;
}

.login-dot-grid {
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0 3px, transparent 3px);
  background-size: 26px 26px;
  height: 180px;
  left: 8vw;
  opacity: 0.9;
  position: absolute;
  top: 28vh;
  width: 180px;
}

.login-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.72);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(30, 41, 59, 0.12);
  max-width: 565px;
  padding: 68px 74px 36px;
  position: relative;
  width: min(100%, 565px);
  z-index: 1;
}

.login-brand {
  text-align: center;
}

.login-brand img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 245px;
  width: 62%;
}

.login-tagline,
.login-heading p,
.login-secure-text,
.login-register {
  color: #64748b;
  text-align: center;
}

.login-tagline {
  font-size: 1.05rem;
  margin: 20px 0 36px;
}

.login-heading {
  margin-bottom: 28px;
  text-align: center;
}

.login-heading h1 {
  color: #0f172a;
  font-size: 1.7rem;
  font-weight: 850;
  margin-bottom: 16px;
}

.login-heading p {
  font-size: 1.05rem;
  margin: 0;
}

.login-form {
  display: grid;
  gap: 22px;
}

.login-label {
  color: #0f172a;
  display: block;
  font-weight: 800;
  margin-bottom: 12px;
}

.login-input-wrap {
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #dbe3ef;
  border-radius: 8px;
  display: flex;
  min-height: 58px;
  padding: 0 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input-wrap:focus-within {
  border-color: var(--sm-primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.13);
}

.login-input-icon,
.login-password-toggle {
  color: #718096;
  flex: 0 0 auto;
}

.login-input-icon svg,
.login-password-toggle svg,
.login-secure svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.login-input-icon svg {
  height: 25px;
  width: 25px;
}

.login-input {
  background: transparent;
  border: 0;
  color: #0f172a;
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  min-width: 0;
  outline: 0;
  padding: 0 14px;
}

.login-input::placeholder {
  color: #8190a8;
  font-weight: 500;
}

.login-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  display: inline-flex;
  justify-content: center;
  padding: 6px;
}

.login-password-toggle svg {
  height: 22px;
  width: 22px;
}

.login-options {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.login-check {
  align-items: center;
  color: #475569;
  display: flex;
  font-weight: 600;
  gap: 10px;
}

.login-check input {
  accent-color: var(--sm-primary);
  height: 20px;
  width: 20px;
}

.login-options a,
.login-register a {
  color: var(--sm-primary);
  text-decoration: none;
}

.login-submit {
  background: var(--sm-primary);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  min-height: 58px;
  margin-top: 2px;
}

.login-submit:hover,
.login-submit:focus {
  background: var(--sm-primary-dark);
}

.login-secure {
  align-items: center;
  color: #718096;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 34px;
}

.login-secure span {
  background: #e2e8f0;
  display: block;
  height: 1px;
}

.login-secure svg {
  height: 28px;
  width: 28px;
}

.login-secure-text {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 14px 0 0;
}

.login-register {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 20px 0 0;
}

@media (max-width: 720px) {
  .page-shell {
    padding: 22px 14px 42px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar .form-control,
  .filter-bar .form-select {
    max-width: none;
    width: 100%;
  }

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

  .fuel-dip-row {
    align-items: stretch;
    grid-template-columns: 36px 1fr;
  }

  .fuel-dip-row > div {
    grid-column: 2;
  }

  .fuel-dip-number {
    grid-row: 1 / span 2;
  }

  .login-shell {
    padding: 20px 12px;
  }

  .login-shell::before,
  .login-wave,
  .login-dot-grid {
    display: none;
  }

  .login-card {
    border-radius: 14px;
    padding: 42px 24px 30px;
  }

  .login-brand {
    font-size: 2.35rem;
  }

  .login-tagline {
    margin-bottom: 28px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .quote-hero,
  .quote-feature-row,
  .how-steps {
    grid-template-columns: 1fr;
  }

  .quote-hero {
    padding: 22px;
  }

  .quote-hero h1 {
    font-size: 1.55rem;
  }

  .quote-feature-row {
    padding: 18px;
  }
}

@media (max-width: 991.98px) {
  .app-topbar {
    height: 58px;
  }

  .app-brand {
    font-size: 1.25rem;
  }

  .app-layout {
    display: block;
  }

  .app-sidebar {
    border-bottom: 1px solid var(--sm-line);
    border-right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: auto;
    padding: 12px;
    position: static;
  }

  .side-link {
    margin-bottom: 0;
  }

  .quote-hero,
  .quote-feature-row {
    grid-template-columns: 1fr;
  }

  .how-steps {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
}
