﻿:root {
  --ink: #071225;
  --muted: #65758f;
  --line: #dbe4ef;
  --line-strong: #c4d0df;
  --paper: #ffffff;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --field: #ffffff;
  --dark: #071229;
  --dark-soft: #142a52;
  --orange: #aeb7c5;
  --orange-deep: #737f8f;
  --nav-dark: #344154;
  --gold: #d8dde6;
  --red: #ef4444;
  --blue: #2f64d8;
  --shadow: 0 18px 46px rgba(7, 18, 41, 0.12);
  --radius: 18px;
  --app-bg-photo: url("https://q.hongyicar.tw/hongyi-assets/mock-cars/mazda-cx5.jpg");
}

@media (min-width: 900px) {
  body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-quick-upload > h4 {
    margin-bottom: 2px;
  }

  body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-upload-card.upload-row {
    grid-template-columns: 82px minmax(0, 1fr) 82px;
  }

  body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-upload-card-title,
  body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-upload-card-title > div {
    display: contents;
  }

  body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-upload-card-title > svg,
  body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-upload-card-title small,
  body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-upload-card-title em,
  body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-upload-picker > span,
  body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-upload-picker > b,
  body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-upload-picker > small {
    display: none;
  }

  body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-upload-picker {
    display: block;
    min-width: 0;
  }

  body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-upload-picker input {
    display: block;
    width: 100%;
  }

  body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-current-title {
    margin: 18px 0 8px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: #efe7da;
  color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

body.photo-viewer-open {
  overflow: hidden;
}

img[src] {
  cursor: zoom-in;
}

[data-home-logo] img,
.brand-home-link img,
.hy-page-brand img,
.hy-page-logo img,
[data-no-photo-viewer] img,
img.brand-logo-horizontal {
  cursor: pointer;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 22px 38px;
  background: rgba(5, 10, 20, 0.88);
  backdrop-filter: blur(8px);
}

.photo-viewer.active {
  display: flex;
}

.photo-viewer img {
  width: auto;
  max-width: min(94vw, 1280px);
  max-height: 84vh;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  cursor: zoom-out;
}

.photo-viewer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.photo-viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #071225;
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

.photo-viewer-nav.prev {
  left: 18px;
}

.photo-viewer-nav.next {
  right: 18px;
}

.photo-viewer-nav[hidden] {
  display: none;
}

.photo-viewer-caption {
  position: absolute;
  right: 22px;
  bottom: 16px;
  left: 22px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .photo-viewer {
    padding-right: 10px;
    padding-left: 10px;
  }

  .photo-viewer-nav {
    width: 42px;
    height: 42px;
    font-size: 34px;
  }

  .photo-viewer-nav.prev {
    left: 8px;
  }

  .photo-viewer-nav.next {
    right: 8px;
  }
}

.mobile-app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #efe7da;
}

.mobile-app::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 430px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 18, 37, 0.84) 0%, rgba(7, 18, 37, 0.5) 33%, rgba(155, 82, 25, 0.58) 66%, rgba(235, 125, 23, 0.9) 100%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.13), transparent 28%),
    linear-gradient(90deg, rgba(7, 18, 37, 0.64), rgba(217, 111, 26, 0.28)),
    var(--app-bg-photo) center top / cover no-repeat;
}

.mobile-app > * {
  position: relative;
  z-index: 1;
}

body.modal-open .mobile-app {
  filter: blur(3px);
}

.app-header {
  display: grid;
  grid-template-columns: minmax(132px, 0.92fr) minmax(0, 1.08fr);
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(7, 18, 37, 0.56) 0%, rgba(19, 28, 39, 0.38) 54%, rgba(119, 64, 24, 0.32) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-home-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-horizontal {
  display: block;
  width: min(100%, 176px);
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.brand-home-link,
.brand-home-link:hover,
.brand-home-link:focus-visible,
.brand-home-link:hover .brand-logo-horizontal,
.brand-home-link:focus-visible .brand-logo-horizontal,
.brand-logo-horizontal {
  transform: none !important;
  transition: none !important;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #e36a12;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(7, 18, 37, 0.2);
}

.brand-row > div:last-child {
  min-width: 0;
}

.brand-row strong,
.account-card strong {
  display: block;
  font-weight: 900;
}

.brand-row strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-row span,
.account-card span {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
}

.account-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  margin-top: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.account-card strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card button {
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(216, 105, 22, 0.26);
  color: #fff7dd;
  font-size: 13px;
  font-weight: 800;
}

.main-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: calc(100% + 28px);
  max-width: none;
  max-height: 430px;
  gap: 6px 12px;
  margin: 0 -14px 24px;
  padding: 10px 10px 14px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  transition:
    max-height 0.24s ease,
    margin 0.24s ease,
    padding 0.24s ease,
    opacity 0.2s ease,
    border-color 0.2s ease;
}

body:not(.desktop-page):not(.nav-collapsed) .main-tabs {
  min-height: 258px;
  align-content: start;
}

.main-tabs button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  width: 100%;
  min-height: 54px;
  padding: 7px 8px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.main-tabs button[hidden],
[data-page-jump][hidden],
[data-panel][hidden] {
  display: none !important;
}

.main-tabs button:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
}

.main-tabs button:active {
  background: transparent;
  transform: translateY(1px);
}

.main-tabs button.active {
  border: 0;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

.main-tabs .nav-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.68);
}

.main-tabs .nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-tabs button.active .nav-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #f2c76e;
}

.main-tabs button > span:not(.nav-icon) {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-tabs button > span:not(.nav-icon)::after {
  content: attr(data-en);
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.1;
  opacity: 1;
}

.main-tabs button.active > span:not(.nav-icon)::after {
  color: rgba(255, 255, 255, 0.58);
}

.main-tabs .owner-report-menu {
  display: grid;
  grid-column: 1 / -1;
  gap: 5px;
  min-width: 0;
}

.main-tabs .owner-report-toggle {
  position: relative;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  min-height: 50px;
}

.main-tabs .owner-report-toggle i {
  justify-self: end;
  align-self: start;
  width: 8px;
  height: 8px;
  margin-top: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.7;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.main-tabs .owner-report-menu.expanded .owner-report-toggle i {
  transform: rotate(225deg);
}

.main-tabs .owner-report-submenu {
  position: relative;
  display: none;
  gap: 2px;
  padding: 2px 0 2px 50px;
}

.main-tabs .owner-report-submenu::before {
  content: "";
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 36px;
  z-index: 0;
  width: 1px;
  border-radius: 999px;
  background: rgba(242, 199, 110, 0.72);
}

.main-tabs .owner-report-menu.expanded .owner-report-submenu {
  display: grid;
}

.main-tabs .owner-report-submenu button {
  position: relative;
  display: flex;
  min-height: 28px;
  align-items: center;
  grid-template-columns: none;
  padding: 3px 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.main-tabs .owner-report-submenu button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;
  z-index: 1;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f2c76e;
  box-shadow: 0 0 0 2px rgba(16, 24, 39, 0.62);
  transform: translate(-50%, -50%);
}

.page-title-strip .main-tabs-collapse {
  position: absolute;
  right: 10px;
  top: 45px;
  z-index: 30;
  display: grid;
  width: 42px;
  min-height: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  touch-action: manipulation;
  transform: translateY(-50%);
  -webkit-tap-highlight-color: transparent;
}

.page-title-strip .main-tabs-collapse > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page-title-strip .main-tabs-collapse::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.page-title-strip .main-tabs-collapse:hover {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
}

.page.active > .main-tabs + * {
  margin-top: 0 !important;
}

.nav-collapsed .main-tabs {
  min-height: 0 !important;
  height: 0 !important;
  max-height: 0;
  margin-top: 0;
  margin-bottom: 12px;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-color: transparent;
  pointer-events: none;
}

.nav-collapsed .page-title-strip .main-tabs-collapse::after {
  margin-top: -4px;
  transform: rotate(225deg);
}

.nav-collapsed .page-stack {
  background: linear-gradient(180deg, transparent 0 76px, #efe7da 76px 100%);
}

.page-stack {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 14px;
  background: linear-gradient(180deg, transparent 0 346px, #efe7da 346px 100%);
  backdrop-filter: blur(8px);
}

.page {
  display: none;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.page.active {
  display: block;
}

.owner-fuel-page.active {
  display: block;
}

.owner-fuel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.owner-fuel-title > div {
  min-width: 0;
}

.owner-fuel-card {
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
}

.owner-fuel-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid rgba(196, 208, 223, 0.72);
  background: #f8fafc;
}

.owner-fuel-toolbar label {
  display: grid;
  min-width: min(180px, 100%);
  gap: 5px;
  color: #253143;
  font-size: 12px;
  font-weight: 950;
}

.owner-fuel-toolbar select {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #c4d0df;
  border-radius: 7px;
  background: #ffffff;
  color: #071225;
  font-size: 13px;
  font-weight: 850;
}

.owner-fuel-sheets {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  overflow-x: hidden;
  background: #f8fafc;
}

.owner-fuel-sheet {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow-x: auto;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.owner-fuel-sheets,
.owner-expense-sheet,
.owner-repair-sheet {
  zoom: 1.1;
}

.owner-fuel-sheet h2 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.95);
  background: #ffffff;
  color: #071225;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
  text-align: left;
}

.owner-fuel-mode-actions {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.owner-fuel-mode-actions button,
.owner-fuel-delete {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(214, 154, 45, 0.72);
  border-radius: 999px;
  background: #fff7e8;
  color: #6f3d05;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.owner-fuel-mode-actions button.active {
  border-color: #12213a;
  background: #12213a;
  color: #ffffff;
}

.owner-fuel-mode-actions [data-owner-fuel-mode],
.owner-fuel-mode-actions [data-owner-expense-mode],
.owner-fuel-mode-actions [data-owner-repair-mode] {
  order: 2;
  width: 58px;
}

.owner-fuel-mode-actions [data-owner-fuel-add-row],
.owner-fuel-mode-actions [data-owner-expense-open-dialog],
.owner-fuel-mode-actions [data-owner-expense-add-row],
.owner-fuel-mode-actions [data-owner-repair-add-vendor] {
  order: 1;
}

.owner-fuel-delete {
  min-height: 24px;
  padding: 0 7px;
  border-color: rgba(239, 34, 34, 0.28);
  background: #fff1f1;
  color: #df1f2d;
  font-size: 11px;
}

.owner-fuel-table {
  width: max(100%, 1180px);
  flex: 1 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: #071225;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
}

.owner-fuel-table th,
.owner-fuel-table td {
  height: 39px;
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px solid #dbe4ef;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-fuel-table th {
  height: 32px;
  background: #111827;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
}

.owner-fuel-edit-cell {
  display: block;
  min-height: 22px;
  padding: 3px 5px;
  overflow: hidden;
  border-radius: 3px;
  color: inherit;
  font-weight: inherit;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-fuel-edit-cell:empty::before {
  content: "";
}

.owner-fuel-edit-cell:focus {
  background: #ffffff;
  outline: 2px solid rgba(37, 99, 235, 0.28);
}

.owner-fuel-table tfoot td {
  height: 38px;
  background: #f8fafc;
  color: #071225;
  font-size: 13px;
  font-weight: 950;
}

.owner-fuel-sheet.company .owner-fuel-table tfoot td {
  background: #f8fafc;
}

.owner-fuel-sheet.company {
  background: #ffffff;
}

.owner-fuel-sheet.company h2 {
  background: #ffffff;
}

.owner-fuel-table tbody tr,
.owner-fuel-sheet.company .owner-fuel-table tbody tr,
.owner-fuel-sheet.service .owner-fuel-table tbody tr:nth-child(odd),
.owner-fuel-sheet.service .owner-fuel-table tbody tr:nth-child(even) {
  background: #ffffff;
}

.owner-fuel-table tbody tr:nth-child(even),
.owner-fuel-sheet.company .owner-fuel-table tbody tr:nth-child(even),
.owner-fuel-sheet.service .owner-fuel-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.owner-fuel-table td:nth-child(6),
.owner-fuel-table tfoot td:nth-child(2) {
  font-weight: 950;
  text-align: right;
}

.owner-fuel-dashboard-card .owner-fuel-table td:nth-child(5),
.owner-fuel-dashboard-card .owner-fuel-table tfoot td:nth-child(2) {
  font-weight: 950;
  text-align: right;
}

.owner-fuel-dashboard-card .owner-fuel-table td:nth-child(6) {
  text-align: center;
}

.owner-fuel-table .return-cell {
  color: #047857;
  font-weight: 950;
}

.owner-fuel-table .owner-fuel-actions {
  overflow: visible;
  text-align: center;
  white-space: nowrap;
}

.owner-fuel-view-btn {
  min-height: 24px;
  padding: 0 9px;
  font-size: 11px;
}

.owner-fuel-actions .owner-fuel-delete {
  margin-left: 6px;
}

.owner-fuel-empty td {
  height: 68px;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.owner-fuel-grand-total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(196, 208, 223, 0.72);
  background: #ffffff;
  color: #071225;
}

.owner-fuel-grand-total span {
  font-size: 15px;
  font-weight: 950;
}

.owner-fuel-grand-total strong {
  min-width: 120px;
  padding: 8px 14px;
  border: 1px solid rgba(214, 154, 45, 0.52);
  border-radius: 8px;
  background: #fff4dc;
  color: #7a3f05;
  font-size: 18px;
  font-weight: 950;
  text-align: right;
}

.owner-fuel-dashboard-card {
  border: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 244, 220, 0.76), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, #f8fafc 100%);
  box-shadow: none;
}

.owner-fuel-dashboard-card .owner-fuel-toolbar {
  align-items: end;
  padding: 16px 18px 20px;
  border-bottom: 1px solid #dbe4ef;
  background: rgba(255, 255, 255, 0.78);
}

.owner-fuel-dashboard-card .owner-fuel-toolbar label {
  min-width: 150px;
}

.owner-fuel-dashboard-card .owner-fuel-toolbar select {
  min-height: 38px;
  border-color: #cbd8e8;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.owner-fuel-dashboard-card .owner-fuel-mode-actions {
  align-items: end;
  gap: 10px;
}

.owner-fuel-dashboard-card .owner-fuel-mode-actions button {
  min-height: 38px;
  padding: 0 16px;
  border-color: #12213a;
  background: #12213a;
  color: #fff;
}

.owner-fuel-dashboard-card .owner-fuel-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) minmax(260px, 1.35fr);
  gap: 14px;
  padding: 18px;
}

.owner-fuel-metric,
.owner-fuel-comparison,
.owner-fuel-analysis-card {
  border: 1px solid rgba(219, 228, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.owner-fuel-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 104px;
  padding: 18px;
}

.owner-fuel-metric-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 9px;
  background: #fff3e0;
  color: #f97316;
  font-weight: 950;
}

.owner-fuel-metric.blue .owner-fuel-metric-icon {
  background: #eaf2ff;
  color: #2563eb;
}

.owner-fuel-metric.purple .owner-fuel-metric-icon {
  background: #f1e9ff;
  color: #7c3aed;
}

.owner-fuel-metric.green .owner-fuel-metric-icon {
  background: #e8f7f0;
  color: #059669;
}

.owner-fuel-metric b,
.owner-fuel-comparison header h3,
.owner-fuel-analysis-card header h3 {
  display: block;
  color: #334155;
  font-size: 13px;
  font-weight: 950;
}

.owner-fuel-metric strong {
  display: block;
  margin-top: 5px;
  color: #071225;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.owner-fuel-delta,
.owner-fuel-comparison em {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.owner-fuel-delta.up,
.owner-fuel-comparison em.up {
  color: #e11d48;
}

.owner-fuel-delta.down,
.owner-fuel-comparison em.down {
  color: #059669;
}

.owner-fuel-comparison {
  padding: 16px 18px;
}

.owner-fuel-comparison header {
  margin-bottom: 8px;
}

.owner-fuel-comparison div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
  color: #071225;
  font-size: 12px;
  font-weight: 850;
}

.owner-fuel-comparison b {
  font-weight: 950;
}

.owner-fuel-dashboard-card .owner-fuel-sheets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 18px 18px;
  background: transparent;
}

.owner-fuel-dashboard-card .owner-fuel-sheets:has(.owner-fuel-sheet:only-child) {
  grid-template-columns: 1fr;
}

.owner-fuel-dashboard-card .owner-fuel-sheet {
  border-color: #dbe4ef;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.owner-fuel-dashboard-card .owner-fuel-sheet h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #071225;
}

.owner-fuel-dashboard-card .owner-fuel-sheet h2 span {
  font-size: 16px;
}

.owner-fuel-dashboard-card .owner-fuel-sheet h2 em {
  color: #334155;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
}

.owner-fuel-dashboard-card .owner-fuel-table {
  width: max(100%, 860px);
  font-size: 12px;
}

.owner-fuel-dashboard-card .owner-fuel-table th,
.owner-fuel-dashboard-card .owner-fuel-table td {
  height: 31px;
  padding: 5px 7px;
}

.owner-fuel-dashboard-card .owner-fuel-table th {
  height: 34px;
  background: #111827;
}

.owner-fuel-dashboard-card .owner-fuel-table tfoot td {
  background: #ffffff;
}

.owner-fuel-dashboard-card .owner-fuel-view-btn {
  border-color: #c7d8ff;
  background: #fff;
  color: #1d4ed8;
}

.owner-fuel-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.35fr);
  gap: 16px;
  padding: 0 18px 22px;
}

.owner-fuel-analysis-card {
  min-height: 210px;
  padding: 18px;
}

.owner-fuel-analysis-card header {
  margin-bottom: 16px;
}

.owner-fuel-analysis-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.owner-fuel-analysis-card li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  color: #071225;
  font-size: 13px;
  font-weight: 900;
}

.owner-fuel-analysis-card li span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
}

.owner-fuel-analysis-card li:nth-child(n + 4) span {
  background: #e2e8f0;
  color: #071225;
}

.owner-fuel-analysis-card li b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-fuel-analysis-card li em,
.owner-fuel-analysis-card li strong {
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.owner-fuel-analysis-card li.empty {
  grid-template-columns: 1fr;
  color: #64748b;
}

.owner-fuel-share-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px 24px;
  align-items: center;
}

.owner-fuel-share-card header,
.owner-fuel-share-total {
  grid-column: 1 / -1;
}

.owner-fuel-donut {
  position: relative;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#2563eb 0 calc(var(--company-share) * 1%), #f97316 0 100%);
}

.owner-fuel-donut::after {
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: #ffffff;
  content: "";
}

.owner-fuel-share-legend {
  display: grid;
  gap: 12px;
}

.owner-fuel-share-legend span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.owner-fuel-share-legend i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #2563eb;
}

.owner-fuel-share-legend i.service {
  background: #f97316;
}

.owner-fuel-share-legend b {
  grid-column: 2;
  color: #071225;
  font-weight: 950;
}

.owner-fuel-share-total {
  justify-self: end;
  color: #475569;
  font-size: 14px;
  font-weight: 950;
}

@media (max-width: 1180px) {
  .owner-fuel-dashboard-card .owner-fuel-metrics,
  .owner-fuel-dashboard-card .owner-fuel-sheets,
  .owner-fuel-analysis-grid {
    grid-template-columns: 1fr;
  }
}

.owner-expense-card {
  overflow: hidden;
  background: #f8fafc;
}

.owner-expense-sheet {
  min-width: 0;
  padding: 0 14px 14px;
  background: #ffffff;
}

.owner-expense-sheet h2 {
  margin: 0 0 10px;
  padding: 14px 10px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  color: #071225;
  font-size: 18px;
  font-weight: 950;
  text-align: center;
}

.owner-expense-card .owner-fuel-toolbar {
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.96);
}

.owner-expense-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 16px 14px;
}

.owner-expense-summary-grid article {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.owner-expense-summary-grid .owner-expense-category-card {
  position: relative;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.owner-expense-summary-grid .owner-expense-category-card:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 114, 22, 0.48);
}

.owner-expense-summary-grid .owner-expense-category-card.active {
  border-color: #b7791f;
  box-shadow: 0 0 0 2px rgba(183, 121, 31, 0.18), 0 12px 28px rgba(15, 23, 42, 0.08);
}

.owner-expense-summary-grid .owner-expense-category-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
}

.owner-expense-summary-grid article > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.owner-expense-summary-grid article.pink {
  background: #fff1f2;
}

.owner-expense-summary-grid article.pink > span {
  background: #d1495b;
}

.owner-expense-summary-grid article.blue {
  background: #eff6ff;
}

.owner-expense-summary-grid article.blue > span {
  background: #4f86b9;
}

.owner-expense-summary-grid article.yellow {
  background: #fffbeb;
}

.owner-expense-summary-grid article.yellow > span {
  background: #d99a05;
}

.owner-expense-summary-grid article.green {
  background: #f0fdf4;
}

.owner-expense-summary-grid article.green > span {
  background: #5aa142;
}

.owner-expense-summary-grid article.total {
  border-color: rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #9a4d12 100%);
  color: #ffffff;
}

.owner-expense-summary-grid article.total > span {
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(15, 23, 42, 0.38);
  color: #fb923c;
}

.owner-expense-summary-grid small,
.owner-expense-summary-grid b,
.owner-expense-summary-grid em {
  display: block;
}

.owner-expense-summary-grid small {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.owner-expense-summary-grid .total small,
.owner-expense-summary-grid .total b,
.owner-expense-summary-grid .total em {
  color: rgba(255, 255, 255, 0.82);
}

.owner-expense-summary-grid strong {
  color: #0f172a;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
}

.owner-expense-summary-grid .total strong {
  color: #fb923c;
}

.owner-expense-summary-grid em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.owner-expense-summary-grid b {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.owner-expense-category-tabs {
  display: block;
  margin-bottom: 10px;
}

.owner-expense-category-select {
  display: grid;
  grid-template-columns: auto minmax(220px, 420px);
  align-items: center;
  gap: 12px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 950;
}

.owner-expense-category-select select {
  width: 100%;
  min-height: 44px;
  padding: 0 38px 0 14px;
  border: 1px solid rgba(203, 213, 225, 0.96);
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.owner-expense-category-tabs button {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-right: 1px solid rgba(226, 232, 240, 0.96);
  background: #ffffff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.owner-expense-category-tabs button:last-child {
  border-right: 0;
}

.owner-expense-category-tabs button.active {
  border-bottom: 3px solid #f97316;
  color: #f97316;
}

.owner-expense-category-tabs button:hover {
  background: #fff7ed;
}

.owner-expense-detail-grid {
  display: grid;
  gap: 14px;
}

.owner-expense-detail-card {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.owner-expense-detail-card header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.96);
}

.owner-expense-detail-card header > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.owner-expense-detail-card header span {
  color: #f97316;
  font-weight: 950;
}

.owner-expense-detail-card header strong {
  color: #111827;
  font-size: 15px;
  font-weight: 950;
}

.owner-expense-detail-card header small {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.owner-expense-detail-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.owner-expense-detail-table th,
.owner-expense-detail-table td {
  height: 36px;
  padding: 6px 8px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  color: #172033;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  vertical-align: middle;
}

.owner-expense-detail-table th {
  background: #101722;
  color: #ffffff;
  font-weight: 950;
}

.owner-expense-detail-table td:nth-child(2) {
  text-align: left;
}

.owner-expense-detail-table td:nth-child(3),
.owner-expense-detail-table tfoot td:nth-child(3) {
  font-weight: 950;
}

.owner-expense-detail-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.owner-expense-detail-table tfoot td {
  background: #f7fbf4;
  font-weight: 950;
}

.owner-expense-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
}

.owner-expense-dialog-card {
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}

.owner-expense-dialog-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.96);
  background: #f8fafc;
}

.owner-expense-dialog-card header p,
.owner-expense-dialog-card header h2 {
  margin: 0;
}

.owner-expense-dialog-card header p {
  color: #f97316;
  font-size: 12px;
  font-weight: 950;
}

.owner-expense-dialog-card header h2 {
  color: #071225;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
}

.owner-expense-dialog-card header button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 22px;
  font-weight: 900;
}

.owner-expense-dialog-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.owner-expense-dialog-body label {
  display: grid;
  gap: 7px;
}

.owner-expense-dialog-body span {
  color: #071225;
  font-size: 13px;
  font-weight: 950;
}

.owner-expense-dialog-body input,
.owner-expense-dialog-body select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(188, 204, 226, 0.98);
  border-radius: 8px;
  background: #ffffff;
  color: #071225;
  font-size: 14px;
  font-weight: 850;
}

.owner-expense-dialog-body input:focus,
.owner-expense-dialog-body select:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, 0.16);
}

.owner-expense-dialog-body input[type="date"]:required:invalid::-webkit-datetime-edit {
  color: transparent;
}

.owner-expense-dialog-body .owner-expense-dialog-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.owner-expense-dialog-body .owner-expense-dialog-check input {
  width: 17px;
  min-height: 17px;
  padding: 0;
  accent-color: #2563eb;
}

.owner-expense-dialog-card footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.96);
}

.owner-expense-dialog-card footer button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 950;
}

.owner-expense-dialog-card footer .primary {
  border-color: #12213a;
  background: #12213a;
  color: #ffffff;
}

.owner-expense-insight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid rgba(51, 65, 85, 0.78);
  border-radius: 8px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #ffffff;
  overflow: hidden;
}

.owner-expense-insight-strip section {
  min-height: 134px;
  padding: 14px 18px;
  border-right: 1px solid rgba(148, 163, 184, 0.28);
}

.owner-expense-insight-strip section:last-child {
  border-right: 0;
}

.owner-expense-insight-strip h3 {
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 950;
}

.owner-expense-insight-strip p,
.owner-expense-insight-strip li {
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 750;
}

.owner-expense-insight-strip ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.owner-expense-insight-strip li,
.owner-expense-insight-strip section:nth-child(3) p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.owner-expense-insight-strip strong {
  color: #fb923c;
  font-weight: 950;
}

.owner-expense-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #172033;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.owner-expense-table .expense-name-col {
  width: 7.25%;
}

.owner-expense-table .expense-amount-col {
  width: 6.25%;
}

.owner-expense-table .expense-paid-col {
  width: 7%;
}

.owner-expense-table .expense-action-col {
  width: 4.5%;
}

.owner-expense-table .expense-name-col-view,
.owner-expense-table .expense-amount-col-view,
.owner-expense-table .expense-paid-col-view {
  width: 8.3333%;
}

.owner-expense-table th,
.owner-expense-table td {
  height: 29px;
  min-height: 29px;
  padding: 4px 5px;
  border: 1px solid rgba(132, 146, 166, 0.78);
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-expense-table thead tr:first-child th {
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.owner-expense-table th.pink {
  background: #f3c7ca;
}

.owner-expense-table th.blue {
  background: #d5e3ed;
}

.owner-expense-table th.yellow {
  background: #fff0c8;
}

.owner-expense-table th.green {
  background: #b9dcb0;
}

.owner-expense-table tbody tr:nth-child(odd) {
  background: #e8f1fa;
}

.owner-expense-table tbody tr:nth-child(even) {
  background: #ffffff;
}

.owner-expense-table tfoot td {
  height: 34px;
  background: #f7fbf4;
  color: #071225;
  font-size: 14px;
  font-weight: 800;
}

.owner-expense-table .owner-expense-grand td {
  background: #dff0d8;
  color: #071225;
  font-size: 15px;
}

.owner-expense-table .owner-expense-grand td:last-child {
  color: #d33434;
  font-weight: 800;
}

.owner-repair-card {
  min-height: 620px;
  overflow: hidden;
  background: #ffffff;
}

.owner-repair-card .owner-fuel-toolbar {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.9);
  overflow: visible;
}

.owner-repair-card .owner-fuel-toolbar label {
  min-width: 160px;
}

.owner-repair-card .owner-fuel-toolbar .owner-repair-vendor-select-field {
  min-width: 260px;
  flex: 0 1 320px;
}

.owner-repair-card .owner-fuel-mode-actions {
  order: 3;
  flex: 0 0 auto;
  margin-left: auto;
}

.owner-repair-sheet {
  min-width: 0;
  min-height: 430px;
  padding: 12px 12px 8px;
  background: #ffffff;
}

.owner-repair-vendor-actions {
  display: flex;
  order: 2;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
}

.owner-repair-vendor-actions button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(143, 158, 178, 0.78);
  border-radius: 999px;
  background: #ffffff;
  color: #12213a;
  font-size: 13px;
  font-weight: 900;
}

.owner-repair-vendor-actions button.active {
  border-color: #12213a;
  background: #12213a;
  color: #ffffff;
}

.owner-repair-sheet h2 {
  width: 100%;
  margin: 0 auto;
  padding: 12px 10px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-bottom: 0;
  background: #ffffff;
  color: #071225;
  font-size: 18px;
  font-weight: 950;
  text-align: center;
}

.owner-repair-summary-grid {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.96);
}

.owner-staff-commission-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.96);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.owner-staff-commission-summary article {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.owner-staff-commission-summary span,
.owner-staff-commission-summary small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.owner-staff-commission-summary strong {
  display: block;
  margin: 8px 0 4px;
  color: #0f172a;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.owner-staff-commission-summary .tone-1 strong { color: #1d4ed8; }
.owner-staff-commission-summary .tone-2 strong { color: #7c3aed; }
.owner-staff-commission-summary .tone-3 strong { color: #c2410c; }
.owner-staff-commission-summary .tone-4 strong { color: #047857; }
.owner-staff-commission-summary .tone-5 strong { color: #b45309; }

.owner-staff-commission-table button,
.owner-staff-commission-detail-dialog button {
  border: 1px solid #d69a28;
  border-radius: 999px;
  background: #fffaf0;
  color: #7c4a03;
  font-size: 12px;
  font-weight: 900;
}

.owner-staff-commission-table tr.selected td {
  background: #fff7ed;
}

.owner-staff-commission-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}

.owner-staff-commission-detail-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1500px, calc(100vw - 48px));
  height: min(820px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid rgba(226, 218, 207, 0.95);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

.owner-staff-commission-detail-dialog header,
.owner-staff-commission-detail-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #fffaf0;
}

.owner-staff-commission-detail-dialog header {
  border-bottom: 1px solid rgba(226, 218, 207, 0.95);
}

.owner-staff-commission-detail-dialog footer {
  justify-content: flex-end;
  border-top: 1px solid rgba(226, 218, 207, 0.95);
}

.owner-staff-commission-detail-dialog p,
.owner-staff-commission-detail-dialog h3,
.owner-staff-commission-detail-dialog span {
  margin: 0;
}

.owner-staff-commission-detail-dialog p {
  color: #b87912;
  font-size: 12px;
  font-weight: 950;
}

.owner-staff-commission-detail-dialog h3 {
  margin-top: 4px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
}

.owner-staff-commission-detail-dialog span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.owner-staff-commission-detail-dialog header button {
  min-height: 40px;
}

.owner-staff-commission-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.owner-staff-commission-detail-dialog header .owner-staff-commission-action-button {
  width: auto;
  min-width: 104px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: #ffffff;
  color: #7c4a03;
  font-size: 14px;
}

.owner-staff-commission-detail-dialog header .owner-staff-commission-action-button:hover {
  background: #fff3d6;
}

.owner-staff-commission-detail-dialog header .owner-staff-commission-close-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 24px;
}

.owner-staff-commission-detail-body {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 20px;
  background: #f8fafc;
}

.owner-staff-commission-detail-body .owner-repair-table-wrap {
  width: 100%;
  overflow: visible;
}

.owner-staff-commission-detail-table.owner-repair-ledger-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.owner-staff-commission-detail-table :is(th, td) {
  min-width: 0;
  height: 72px;
  padding: 14px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
  line-height: 1.45;
}

.owner-staff-commission-detail-table thead th {
  height: 52px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 13px;
}

.owner-staff-commission-detail-table tbody td {
  font-size: 13px;
}

.owner-staff-commission-detail-table tfoot td {
  height: 58px;
  font-size: 13px;
}

.owner-staff-commission-detail-table :is(th, td):nth-child(1) {
  width: 9%;
}

.owner-staff-commission-detail-table :is(th, td):nth-child(2) {
  width: 14%;
}

.owner-staff-commission-detail-table :is(th, td):nth-child(3) {
  width: 9%;
}

.owner-staff-commission-detail-table :is(th, td):nth-child(n + 4) {
  width: 9.7%;
}

.owner-staff-commission-role,
.owner-staff-commission-other-bonus small {
  display: block;
  margin-top: 3px;
  color: #7c6f60;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  white-space: normal;
}

@media (max-width: 820px) {
  .owner-staff-commission-detail-overlay {
    padding: 8px;
  }

  .owner-staff-commission-detail-dialog {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .owner-staff-commission-detail-dialog header {
    align-items: flex-start;
    padding: 14px;
  }

  .owner-staff-commission-detail-dialog header .owner-staff-commission-action-button {
    display: none;
  }

  .owner-staff-commission-detail-dialog h3 {
    font-size: 18px;
  }

  .owner-staff-commission-detail-dialog header span {
    font-size: 11px;
  }

  .owner-staff-commission-detail-body {
    overflow-x: auto;
    padding: 10px;
  }

  .owner-staff-commission-detail-table.owner-repair-ledger-table {
    min-width: 760px;
  }

  .owner-staff-commission-detail-table :is(th, td) {
    height: 64px;
    padding: 10px 6px;
    font-size: 11px;
  }
}

@media print {
  body.printing-owner-staff-commission-detail > :not(.owner-staff-commission-detail-overlay) {
    display: none !important;
  }

  body.printing-owner-staff-commission-detail .owner-staff-commission-detail-overlay {
    position: static;
    display: block;
    padding: 0;
    background: #ffffff;
    backdrop-filter: none;
  }

  body.printing-owner-staff-commission-detail .owner-staff-commission-detail-dialog {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.printing-owner-staff-commission-detail .owner-staff-commission-detail-actions,
  body.printing-owner-staff-commission-detail .owner-staff-commission-detail-dialog footer {
    display: none !important;
  }

  body.printing-owner-staff-commission-detail .owner-staff-commission-detail-body {
    overflow: visible;
    padding: 14px 0 0;
    background: #ffffff;
  }

  body.printing-owner-staff-commission-detail .owner-staff-commission-detail-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  body.printing-owner-staff-commission-detail .owner-staff-commission-detail-table :is(th, td) {
    height: auto;
    padding: 8px 5px;
    font-size: 10pt;
    color: #000000;
    white-space: normal;
  }
}

.owner-staff-commission-other-bonus strong {
  display: block;
  color: #0f172a;
  font-weight: 950;
}

.owner-repair-payment-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.96);
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.owner-repair-payment-bar strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.owner-repair-payment-bar small {
  margin-left: auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.owner-repair-payment-action {
  border-color: #d69a28 !important;
  background: linear-gradient(135deg, #f8cf5a, #c57d05) !important;
  color: #111827 !important;
}

.owner-repair-payment-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.owner-repair-table {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.35;
}

.owner-repair-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.owner-repair-table th,
.owner-repair-table td {
  height: 34px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  color: #071225;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  vertical-align: middle;
}

.owner-repair-ledger-table {
  min-width: 1180px;
}

.owner-repair-select-col {
  width: 54px;
}

.owner-repair-select-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.owner-repair-select-check input {
  width: 16px;
  height: 16px;
  accent-color: #0f172a;
}

.owner-repair-ledger-table th {
  background: #101722;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.owner-repair-ledger-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.owner-repair-ledger-table td:nth-child(6) {
  text-align: left;
}

.owner-repair-ledger-table td:nth-child(7),
.owner-repair-ledger-table td:nth-child(8) {
  font-weight: 900;
}

.owner-repair-table thead tr:first-child th {
  font-size: 14px;
  font-weight: 800;
}

.owner-repair-table thead tr:first-child th span {
  display: inline-block;
  max-width: calc(100% - 76px);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.owner-repair-color-select {
  width: 68px;
  min-height: 24px;
  margin-left: 8px;
  border: 1px solid rgba(143, 158, 178, 0.72);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  color: #071225;
  font-size: 11px;
  font-weight: 850;
  vertical-align: middle;
}

.owner-repair-table th.pink {
  background: #f3c7ca;
}

.owner-repair-table th.blue {
  background: #d5e3ed;
}

.owner-repair-table th.yellow {
  background: #fff0c8;
}

.owner-repair-table th.green {
  background: #b9dcb0;
}

.owner-repair-table th.peach {
  background: #ffd8b5;
}

.owner-repair-table th.lavender {
  background: #ddd6fe;
}

.owner-repair-table th.mint {
  background: #c8f7dc;
}

.owner-repair-table th.sky {
  background: #cfe8ff;
}

.owner-repair-table th.amber {
  background: #fde68a;
}

.owner-repair-table th.rose {
  background: #fecdd3;
}

.owner-repair-table th.teal {
  background: #b7efe6;
}

.owner-repair-table th.lime {
  background: #d9f99d;
}

.owner-repair-table th.cyan {
  background: #bae6fd;
}

.owner-repair-table th.orange {
  background: #fed7aa;
}

.owner-repair-table th.purple {
  background: #e9d5ff;
}

.owner-repair-table th.slate {
  background: #cbd5e1;
}

.owner-repair-table th.beige {
  background: #eadfc8;
}

.owner-repair-payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.55);
}

.owner-repair-payment-dialog {
  width: min(920px, 96vw);
  max-height: min(760px, 92vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(190, 204, 225, 0.95);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.owner-repair-payment-dialog header,
.owner-repair-payment-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #f8fafc;
}

.owner-repair-payment-dialog header {
  border-bottom: 1px solid rgba(226, 232, 240, 0.96);
}

.owner-repair-payment-dialog footer {
  border-top: 1px solid rgba(226, 232, 240, 0.96);
}

.owner-repair-payment-dialog h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
}

.owner-repair-payment-dialog p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.owner-repair-payment-dialog button {
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(190, 204, 225, 0.95);
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 900;
}

.owner-repair-payment-dialog button.primary {
  border-color: #d69a28;
  background: linear-gradient(135deg, #f8cf5a, #c57d05);
}

.owner-repair-payment-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 0;
}

.owner-repair-payment-summary article {
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 10px;
  background: #fbfdff;
}

.owner-repair-payment-summary span,
.owner-repair-payment-fields span {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
}

.owner-repair-payment-summary strong {
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.owner-repair-payment-summary em {
  margin-left: 4px;
  color: #64748b;
  font-style: normal;
  font-weight: 850;
}

.owner-repair-payment-table-wrap {
  margin: 14px 18px;
  overflow: auto;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 10px;
}

.owner-repair-payment-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.owner-repair-payment-table th,
.owner-repair-payment-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.96);
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.owner-repair-payment-table th {
  background: #101722;
  color: #ffffff;
  font-weight: 950;
}

.owner-repair-payment-fields {
  display: grid;
  grid-template-columns: minmax(220px, 320px);
  gap: 12px;
  padding: 0 18px 16px;
}

.owner-repair-payment-fields label.wide {
  grid-column: 1 / -1;
}

.owner-repair-payment-fields input,
.owner-repair-payment-fields textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(190, 204, 225, 0.95);
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.owner-repair-payment-fields textarea {
  min-height: 74px;
  resize: vertical;
}

.owner-accounting-checkout-dialog {
  width: min(1120px, 97vw);
}

.owner-accounting-checkout-capture {
  overflow: auto;
  background: #ffffff;
}

.owner-accounting-checkout-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-accounting-checkout-table {
  min-width: 980px;
}

.owner-accounting-checkout-table th:first-child,
.owner-accounting-checkout-table td:first-child {
  width: 54px;
}

.owner-accounting-checkout-check {
  display: inline-grid;
  place-items: center;
  margin: 0;
}

.owner-accounting-checkout-check input {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.owner-accounting-checkout-row-excluded td {
  color: #94a3b8;
  background: #f8fafc;
  text-decoration: line-through;
}

.owner-accounting-checkout-row-excluded td:first-child {
  text-decoration: none;
}

.owner-accounting-checkout-dialog footer {
  flex-wrap: wrap;
}

.owner-accounting-checkout-tools,
.owner-accounting-checkout-submit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-accounting-checkout-submit-actions {
  justify-content: flex-end;
}

.owner-accounting-checkout-dialog [data-owner-accounting-checkout-submit]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.mobile-field.deposit-seller-locked select:disabled,
.form-section .deposit-seller-locked select:disabled {
  border-color: rgba(148, 163, 184, 0.8);
  background: #f1f5f9;
  color: #334155;
  cursor: not-allowed;
  opacity: 1;
}

.owner-finance-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.85fr);
  gap: 16px;
  padding: 18px;
  background: #f8fafc;
}

.owner-finance-ledger {
  overflow: hidden;
  border: 1px solid rgba(190, 204, 225, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.owner-finance-ledger h2,
.owner-finance-detail h2 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.98);
  background: #eef4fb;
  color: #050814;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
}

.owner-finance-income-ledger {
  background: #ffffff;
}

.owner-finance-ledger table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.owner-finance-ledger th,
.owner-finance-ledger td {
  min-height: 34px;
  padding: 9px 12px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  color: #071225;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
  vertical-align: middle;
}

.owner-finance-ledger th {
  background: #f8fafc;
  font-size: 15px;
  font-weight: 950;
}

.owner-finance-ledger td:first-child {
  text-align: left;
}

.owner-finance-ledger td:last-child {
  width: 34%;
  font-size: 15px;
  font-weight: 950;
  text-align: center;
}

.owner-finance-ledger strong,
.owner-finance-ledger small {
  display: block;
}

.owner-finance-ledger small {
  margin-top: 3px;
  color: rgba(7, 18, 37, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.owner-finance-income-total td:first-child strong {
  color: #d21f3c;
}

.owner-finance-grand-row td {
  background: #eef6ec;
  font-size: 16px;
  font-weight: 950;
}

.owner-finance-side {
  display: grid;
  grid-template-rows: auto minmax(170px, 1fr);
  gap: 16px;
  min-width: 0;
}

.owner-finance-surplus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 150px;
  border: 1px solid rgba(245, 158, 11, 0.55);
  border-radius: 8px;
  background: #fff7ed;
  color: #050814;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.owner-finance-surplus span,
.owner-finance-surplus strong {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 18px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.owner-finance-surplus span {
  border-right: 1px solid rgba(245, 158, 11, 0.3);
  color: #7c2d12;
  font-size: 22px;
  letter-spacing: 0;
}

.owner-finance-surplus strong {
  color: #7c2d12;
  font-size: 34px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.owner-finance-surplus.negative strong {
  color: #b42318;
}

.owner-finance-detail {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.owner-finance-detail h2 {
  border-bottom: 0;
  background: #eef4fb;
  font-size: 18px;
}

.owner-finance-detail-table {
  min-width: 1060px;
}

.owner-finance-detail-table th {
  background: #111827;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 950;
}

.owner-finance-detail-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.owner-finance-detail-table td:nth-child(2) {
  text-align: left;
}

.owner-finance-detail-table td:nth-child(n + 4),
.owner-finance-detail-table tfoot td:nth-child(n + 2) {
  font-weight: 950;
  text-align: right;
}

.owner-finance-detail-table tfoot td {
  background: #eef6ec;
  color: #071225;
  font-size: 14px;
  font-weight: 950;
}

@media (max-width: 1100px) {
  .owner-finance-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 12px;
  }

  .owner-finance-side {
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .owner-finance-ledger h2,
  .owner-finance-detail h2 {
    font-size: 17px;
  }

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

  .owner-finance-surplus span {
    border-right: 0;
    border-bottom: 1px solid rgba(7, 18, 37, 0.12);
    font-size: 40px;
  }

  .owner-finance-surplus strong {
    font-size: 32px;
  }
}

/* 2026-07-19 shared five-category mobile application shell. */
.mobile-bottom-nav,.mobile-nav-branch-host { display:none; }
@media (max-width:899px) {
  body:not(.desktop-page) .mobile-app { padding-bottom:calc(82px + env(safe-area-inset-bottom)); background:#f5f5f3; }
  body:not(.desktop-page) .mobile-app::before { display:none; }
  body:not(.desktop-page) .app-header { position:sticky; top:0; z-index:120; min-height:70px; grid-template-columns:minmax(140px,1fr) auto; padding:8px 13px; border-bottom:1px solid #eee5d8; color:#29261f; background:rgba(255,255,255,.96); box-shadow:0 5px 18px rgba(35,31,24,.06); backdrop-filter:blur(16px); }
  body:not(.desktop-page) .brand-logo-horizontal { width:158px; height:48px; }
  body:not(.desktop-page) .account-card { display:grid; width:auto; grid-template-columns:auto auto; gap:6px; padding:0; border:0; background:transparent; box-shadow:none; }
  body:not(.desktop-page) .account-card > div { display:none; }
  body:not(.desktop-page) .account-card > button:not(.coin-wallet-button) { min-width:50px; height:34px; padding:0 10px; border:0; border-radius:999px; color:#fff; background:linear-gradient(135deg,#c99b50,#895a1d); font-size:11px; }
  body:not(.desktop-page) .account-card .coin-wallet-button { display:grid; width:68px; min-width:68px; height:34px; grid-template-columns:17px auto; grid-template-rows:12px 12px; column-gap:4px; align-content:center; align-items:center; padding:2px 8px; border:1px solid #e2cfaa; border-radius:999px; color:#96651b; background:#fffaf0; }
  body:not(.desktop-page) .account-card .coin-wallet-button svg { grid-row:1/3; width:17px; height:17px; fill:#f4d987; stroke:#9a6819; stroke-width:1.6; }
  body:not(.desktop-page) .account-card .coin-wallet-button span { margin:0; color:#9b8768; font-size:7px; line-height:1; text-align:left; }
  body:not(.desktop-page) .account-card .coin-wallet-button strong { color:#835714; font-size:11px; line-height:1; text-align:left; }
  body:not(.desktop-page) .main-tabs,
  body:not(.desktop-page) .main-tabs-collapse { display:none !important; }
  body:not(.desktop-page) .page-stack { padding-bottom:12px; }
  body:not(.desktop-page) .page { padding-bottom:12px; }
  body:not(.desktop-page) .mobile-bottom-nav { position:fixed; right:0; bottom:0; left:0; z-index:5000; display:grid; height:calc(70px + env(safe-area-inset-bottom)); grid-template-columns:repeat(5,minmax(0,1fr)); align-items:start; padding:7px 5px env(safe-area-inset-bottom); border-top:1px solid #e8e3da; background:rgba(255,255,255,.97); box-shadow:0 -8px 26px rgba(31,28,22,.08); backdrop-filter:blur(16px); }
  body:not(.desktop-page) .mobile-bottom-nav > button { position:relative; display:grid; min-width:0; height:58px; justify-items:center; align-content:center; gap:4px; padding:0 2px; border:0; color:#3f403f; background:transparent; cursor:pointer; }
  body:not(.desktop-page) .mobile-bottom-nav > button > span { display:grid; width:28px; height:26px; place-items:center; border-radius:9px; }
  body:not(.desktop-page) .mobile-bottom-nav svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
  body:not(.desktop-page) .mobile-bottom-nav strong { overflow:hidden; max-width:100%; font-size:10px; line-height:1; text-overflow:ellipsis; white-space:nowrap; }
  body:not(.desktop-page) .mobile-bottom-nav > button.active { color:#ae7622; }
  body:not(.desktop-page) .mobile-bottom-nav > button.active > span { color:#fff; background:linear-gradient(145deg,#d5a858,#9b6418); box-shadow:0 5px 12px rgba(164,110,29,.24); }
  body:not(.desktop-page) .mobile-bottom-nav > button.active::before { content:""; position:absolute; top:-7px; width:28px; height:3px; border-radius:0 0 5px 5px; background:#b77b24; }
  body:not(.desktop-page) .mobile-nav-branch-host { position:fixed; inset:0; z-index:4999; display:block; }
  body:not(.desktop-page) .mobile-nav-branch-backdrop { position:absolute; inset:0; width:100%; height:100%; border:0; background:rgba(18,20,22,.34); backdrop-filter:blur(2px); }
  body:not(.desktop-page) .mobile-nav-branch-sheet { position:absolute; right:10px; bottom:calc(77px + env(safe-area-inset-bottom)); left:10px; max-height:min(65vh,520px); overflow:hidden; border:1px solid #e7d9c3; border-radius:18px; background:#fffdf9; box-shadow:0 20px 55px rgba(28,24,18,.25); animation:mobileBranchUp .18s ease-out; }
  body:not(.desktop-page) .mobile-nav-branch-sheet > header { display:flex; height:56px; align-items:center; justify-content:space-between; padding:0 14px; border-bottom:1px solid #eee4d5; background:linear-gradient(110deg,#fff9ed,#fff); }
  body:not(.desktop-page) .mobile-nav-branch-sheet > header > div { display:flex; gap:9px; align-items:center; color:#8f5e18; }
  body:not(.desktop-page) .mobile-nav-branch-sheet > header span { display:grid; width:32px; height:32px; place-items:center; border-radius:10px; background:#f9e8c4; }
  body:not(.desktop-page) .mobile-nav-branch-sheet svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
  body:not(.desktop-page) .mobile-nav-branch-sheet > header strong { color:#403629; font-size:15px; }
  body:not(.desktop-page) .mobile-nav-branch-sheet > header > button { display:grid; width:34px; height:34px; place-items:center; padding:0; border:1px solid #e8ddcb; border-radius:50%; color:#806d54; background:#fff; }
  body:not(.desktop-page) .mobile-nav-branch-sheet > div { display:grid; max-height:calc(min(65vh,520px) - 56px); grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; overflow:auto; padding:12px; }
  body:not(.desktop-page) .mobile-nav-branch-sheet > div > button { display:flex; min-height:48px; align-items:center; justify-content:space-between; padding:0 13px; border:1px solid #eee3d3; border-radius:12px; color:#3e372e; background:#fff; font-size:12px; font-weight:800; text-align:left; }
  body:not(.desktop-page) .mobile-nav-branch-sheet > div > button:active { border-color:#cf9b4b; background:#fff8ea; }
  body:not(.desktop-page) .mobile-nav-branch-sheet > div > button svg { width:16px; height:16px; color:#b68130; }
  body[data-mobile-page="login"] .mobile-bottom-nav,
  body[data-mobile-page="line-register"] .mobile-bottom-nav,
  body[data-mobile-page="testlogin"] .mobile-bottom-nav { display:none; }
  .coin-panel-card { top:10px; right:10px; width:calc(100vw - 20px); max-height:calc(100vh - 20px - env(safe-area-inset-bottom)); }
}
@keyframes mobileBranchUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

.page[data-panel="owner-profit-report"] > .page-title-strip {
  display: none;
}

.page[data-panel="owner-profit-report"] > .content-card {
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page[data-panel="owner-profit-report"] .owner-fuel-toolbar {
  display: none;
}

.page[data-panel="owner-accounting-cash-report"] > .content-card {
  padding: 14px;
  border: 0;
  background: #f7f9fc;
  box-shadow: none;
}

.page[data-panel="owner-accounting-cash-report"] .owner-fuel-toolbar {
  display: none;
}

.page[data-panel="owner-accounting-cash-report"] > .page-title-strip {
  min-height: 148px;
  margin-bottom: 18px;
  padding: 26px 32px;
  align-items: center;
}

.page[data-panel="owner-accounting-cash-report"] > .page-title-strip h1 {
  font-size: clamp(31px, 4vw, 38px);
}

.owner-accounting-title-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.owner-accounting-title-actions .outline-action {
  min-height: 40px;
  padding: 0 16px;
  border-color: rgba(114, 65, 8, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, #f6c052 0%, #d89220 48%, #91570d 100%);
  color: #071225;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(55, 33, 8, 0.24);
}

.owner-accounting-cash-page {
  display: grid;
  gap: 14px;
  color: #0f172a;
}

.owner-accounting-header,
.owner-accounting-filter-row,
.owner-accounting-table-card,
.owner-accounting-side article {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.owner-accounting-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.owner-accounting-title h2,
.owner-accounting-table-card h3,
.owner-accounting-side h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
}

.owner-accounting-title span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

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

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

.owner-accounting-summary-grid article {
  min-height: 100px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.owner-accounting-summary-grid span {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.owner-accounting-summary-grid strong {
  display: block;
  margin-top: 10px;
  color: #0f172a;
  font-size: 26px;
  font-weight: 950;
}

.owner-accounting-summary-grid strong.green,
.owner-accounting-side strong.green {
  color: #059669;
}

.owner-accounting-summary-grid strong.red,
.owner-accounting-side strong.red {
  color: #dc2626;
}

.owner-accounting-summary-grid strong.orange,
.owner-accounting-side strong.orange {
  color: #f97316;
}

.owner-accounting-summary-grid small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.owner-accounting-limit-card {
  position: relative;
}

.owner-accounting-used-card {
  position: relative;
}

.owner-accounting-used-card small {
  position: absolute;
  right: 16px;
  top: 55px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
}

.owner-accounting-limit-card button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(214, 154, 45, 0.68);
  border-radius: 999px;
  background: linear-gradient(135deg, #f4c86b 0%, #d28b26 52%, #8e5516 100%);
  color: #071225;
  font-size: 12px;
  font-weight: 950;
}

.owner-accounting-progress {
  height: 9px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.owner-accounting-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.owner-accounting-filter-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) auto minmax(130px, 0.8fr) minmax(220px, 1.4fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
}

.owner-accounting-filter-row--checkout {
  grid-template-columns: minmax(150px, 220px) auto minmax(150px, 220px);
  justify-content: start;
}

.owner-accounting-filter-row label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.owner-accounting-filter-row input {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.owner-accounting-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: start;
}

.owner-accounting-table-card {
  padding: 14px;
}

.owner-accounting-table-card h3 {
  margin-bottom: 12px;
}

.owner-accounting-table th {
  background: #0f172a;
  color: #fff;
}

.owner-accounting-table td:nth-child(6) {
  font-weight: 950;
}

.owner-accounting-table select {
  min-width: 104px;
  min-height: 30px;
  padding: 4px 26px 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.owner-accounting-status-select.pending {
  border-color: #fecaca;
  background: #fff1f2;
  color: #e11d48;
}

.owner-accounting-status-select.paid {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #15803d;
}

.owner-accounting-source-select.accounting {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.owner-accounting-source-select.boss {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.owner-accounting-include-check {
  display: inline-grid;
  place-items: center;
  width: 100%;
  min-height: 24px;
}

.owner-accounting-include-check input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.owner-accounting-include-col {
  width: 86px;
  min-width: 86px;
  text-align: center;
}

.owner-accounting-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.owner-accounting-table-head h3 {
  margin: 0;
}

.owner-accounting-table-head button {
  min-height: 32px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: none;
}

.owner-accounting-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.owner-accounting-head-actions button {
  border-color: #cbd5e1;
  background: #fff;
  color: #334155;
  box-shadow: none;
}

.owner-accounting-table-head button:hover,
.owner-accounting-head-actions button:hover {
  border-color: #93c5fd;
  background: #f8fbff;
  color: #0f172a;
}

.owner-accounting-head-actions button.active {
  border-color: #93c5fd;
  background: #f8fbff;
  color: #0f172a;
}

.owner-accounting-head-actions button.gold,
.owner-accounting-head-actions .owner-accounting-settle-button {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.owner-accounting-empty-state {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
  font-weight: 900;
}

.owner-accounting-reconcile-page {
  display: grid;
  gap: 14px;
}

.owner-accounting-reconcile-batch {
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fff;
}

.owner-accounting-reconcile-batch > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.owner-accounting-reconcile-batch > header div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.owner-accounting-reconcile-batch > header strong,
.owner-accounting-reconcile-batch > header b {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.owner-accounting-reconcile-batch > header span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
}

.owner-accounting-reconcile-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #f8fafc;
}

.owner-accounting-reconcile-total span {
  color: #334155;
  font-size: 14px;
  font-weight: 950;
}

.owner-accounting-reconcile-total strong {
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.owner-accounting-reconcile-total em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.owner-accounting-paid-badge,
.owner-accounting-reconcile-badge,
.owner-accounting-status-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.owner-accounting-paid-badge {
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: #dcfce7;
  color: #15803d;
}

.owner-accounting-paid-badge.pending {
  border-color: rgba(245, 158, 11, 0.32);
  background: #fffbeb;
  color: #b45309;
}

.owner-accounting-reconcile-badge {
  border: 1px solid rgba(37, 99, 235, 0.24);
  background: #dbeafe;
  color: #1d4ed8;
}

.owner-accounting-reconcile-badge.pending {
  border-color: rgba(148, 163, 184, 0.34);
  background: #f8fafc;
  color: #64748b;
}

.owner-accounting-reconciled-row td {
  color: #64748b;
  background: #fbfcfe;
}

.owner-accounting-status-empty {
  color: #94a3b8;
}

.owner-accounting-pending td {
  color: #dc2626;
  background: #fff7f7;
}

.owner-accounting-side {
  display: grid;
  gap: 12px;
}

.owner-accounting-side article {
  padding: 14px;
}

.owner-accounting-side article > div,
.owner-accounting-side li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
  color: #475569;
  font-size: 13px;
  font-weight: 850;
}

.owner-accounting-side article > div:last-child,
.owner-accounting-side li:last-child {
  border-bottom: 0;
}

.owner-accounting-side p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.owner-accounting-side ol {
  display: grid;
  gap: 2px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.owner-accounting-side li b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
}

.owner-accounting-side li span {
  flex: 1;
}

.owner-accounting-side .owner-accounting-topup-list {
  gap: 6px;
}

.owner-accounting-side .owner-accounting-topup-list li {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
}

.owner-accounting-side .owner-accounting-topup-list li b {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
  text-align: right;
}

.owner-accounting-side .owner-accounting-topup-list li em {
  grid-column: 1 / -1;
  color: #b45309;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.owner-accounting-checkout-card {
  display: grid;
  gap: 10px;
}

.owner-accounting-checkout-page {
  display: grid;
  gap: 12px;
}

.owner-accounting-checkout-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.owner-accounting-checkout-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
  color: #10203a;
  cursor: pointer;
  text-align: left;
}

.owner-accounting-checkout-list button:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.owner-accounting-checkout-list button span,
.owner-accounting-checkout-list button b,
.owner-accounting-checkout-list button em {
  min-width: 0;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
}

.owner-accounting-checkout-list button span {
  overflow: hidden;
  color: #0f172a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-accounting-checkout-list button b {
  color: #0f172a;
  text-align: right;
}

.owner-accounting-checkout-list button em {
  grid-column: 1 / -1;
  color: #64748b;
  font-style: normal;
}

.owner-accounting-checkout-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  padding-top: 8px;
  border-top: 1px solid #eef2f7;
}

.owner-accounting-checkout-total span,
.owner-accounting-checkout-total em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.owner-accounting-checkout-total strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
  text-align: right;
}

.owner-accounting-checkout-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.owner-accounting-batch-dialog {
  width: min(980px, 96vw);
}

.owner-accounting-batch-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-accounting-batch-table th,
.owner-accounting-batch-table td {
  text-align: center;
}

.page[data-panel="owner-accounting-cash-report"] > .content-card {
  padding: 10px 12px;
  background: #f7f9fc;
}

.page[data-panel="owner-accounting-cash-report"] > .page-title-strip {
  min-height: 52px;
  margin-bottom: 8px;
  padding: 10px 18px;
  background: transparent;
  box-shadow: none;
}

.page[data-panel="owner-accounting-cash-report"] > .page-title-strip h1 {
  color: #0f172a;
  font-size: 24px;
}

.page[data-panel="owner-accounting-cash-report"] > .main-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  height: auto;
  min-height: 0;
  max-height: none;
  align-items: center;
  margin-bottom: 8px;
  padding: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.page[data-panel="owner-accounting-cash-report"] > .main-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0;
  min-height: 34px;
  height: 34px;
  padding: 6px 10px;
  white-space: nowrap;
}

.page[data-panel="owner-accounting-cash-report"] > .main-tabs .nav-icon {
  width: 18px;
  height: 18px;
}

body:not(.desktop-page):not(.nav-collapsed) .page[data-panel="owner-accounting-cash-report"] > .main-tabs {
  min-height: 0 !important;
}

.owner-accounting-cash-page {
  gap: 10px;
}

.owner-accounting-summary-grid {
  grid-template-columns: 1.05fr 1.05fr 1.05fr 1.05fr 1.6fr;
  gap: 10px;
}

.owner-accounting-summary-grid article {
  min-height: 92px;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.owner-accounting-summary-grid span {
  color: #334155;
  font-size: 13px;
}

.owner-accounting-summary-grid strong {
  margin-top: 8px;
  font-size: 24px;
  letter-spacing: 0;
}

.owner-accounting-pending-card strong {
  color: #f97316;
}

.owner-accounting-used-card a {
  display: inline-block;
  margin-top: 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.owner-accounting-help-card h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.owner-accounting-help-card ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 17px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.owner-accounting-filter-row {
  grid-template-columns: minmax(130px, 0.85fr) auto minmax(130px, 0.85fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(240px, 1.45fr) auto auto;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.owner-accounting-filter-row--checkout {
  grid-template-columns: minmax(150px, 220px) auto minmax(150px, 220px);
}

.owner-accounting-filter-row input,
.owner-accounting-filter-row select {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #d7e0ec;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.owner-accounting-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
}

.owner-accounting-table-card {
  padding: 12px;
  border: 0;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.owner-accounting-table-head {
  margin-bottom: 8px;
}

.owner-accounting-table-head h3 {
  font-size: 17px;
}

.owner-accounting-table th {
  height: 42px;
  background: #0d1524;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.owner-accounting-table td {
  height: 42px;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.owner-accounting-table td:nth-child(6) {
  color: #0f172a;
  font-weight: 950;
}

.owner-accounting-pending td {
  color: #ef4444 !important;
  background: #fff5f5;
}

.owner-accounting-side {
  gap: 12px;
}

.owner-accounting-ranking-card {
  order: 0;
}

.owner-accounting-side article {
  padding: 14px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.owner-accounting-side h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.owner-accounting-side article > div {
  padding: 5px 0;
  font-size: 12px;
}

.owner-accounting-side article > div strong {
  font-size: 16px;
}

.owner-accounting-checkout-center {
  display: grid;
  gap: 14px;
  padding: 14px 12px 16px !important;
}

.owner-accounting-checkout-center .owner-accounting-center-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border-bottom: 0;
}

.owner-accounting-checkout-center .owner-accounting-center-metrics span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.owner-accounting-checkout-center .owner-accounting-center-metrics em {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-accounting-checkout-center .owner-accounting-center-metrics strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
}

.owner-accounting-checkout-center .owner-accounting-center-metrics strong.orange {
  color: #ea580c;
}

.owner-accounting-checkout-center .owner-accounting-center-metrics strong.green {
  color: #059669;
}

.owner-accounting-checkout-center .owner-accounting-center-metrics strong.red {
  color: #dc2626;
}

.owner-accounting-action-stack {
  display: grid;
  gap: 12px;
  padding: 0 !important;
  border-bottom: 0 !important;
}

.owner-accounting-side-action {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 84px;
  padding: 14px 16px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.owner-accounting-side-action::before {
  content: "";
  display: grid;
  width: 44px;
  height: 44px;
  grid-row: span 2;
  place-items: center;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px #bfdbfe;
  color: #2563eb;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.owner-accounting-side-action.warn {
  border-color: #fdba74;
  background: #fffaf4;
}

.owner-accounting-side-action.active {
  border-color: #bfdbfe;
  background: #ffffff;
}

.owner-accounting-side-action.warn::before {
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fdba74;
  color: #f97316;
}

.owner-accounting-side-action.active::before {
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px #93c5fd;
}

.owner-accounting-side-action.document::before {
  content: "\25A4";
}

.owner-accounting-side-action.clock::before {
  content: "\25F7";
}

.owner-accounting-side-action.sliders::before {
  content: "\2630";
}

.owner-accounting-side-action strong {
  align-self: end;
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.25;
}

.owner-accounting-side-action.warn strong {
  color: #ea580c;
}

.owner-accounting-side-action.active strong,
.owner-accounting-side-action.sliders strong {
  color: #1d4ed8;
}

.owner-accounting-side-action span {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.owner-accounting-ranking-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.owner-accounting-ranking-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
}

.owner-accounting-ranking-list li[data-owner-accounting-view] {
  cursor: pointer;
}

.owner-accounting-ranking-list li[data-owner-accounting-view]:hover {
  background: #f8fafc;
}

.owner-accounting-ranking-list li:last-child {
  border-bottom: 0;
}

.owner-accounting-ranking-list b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.owner-accounting-ranking-list span {
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-accounting-ranking-list strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

@media (max-width: 980px) {
  .owner-accounting-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .owner-accounting-summary-grid article {
    min-height: 64px;
    padding: 8px 10px;
  }

  .owner-accounting-summary-grid strong {
    margin-top: 3px;
    font-size: 18px;
  }

  .owner-accounting-summary-grid small,
  .owner-accounting-used-card a {
    margin-top: 2px;
    font-size: 10px;
  }

  .owner-accounting-help-card {
    min-height: 64px !important;
  }

  .owner-accounting-help-card h3 {
    margin-bottom: 0;
    font-size: 12px;
  }

  .owner-accounting-help-card ul {
    display: none;
  }

  .owner-accounting-filter-row {
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto auto;
    align-items: end;
    gap: 6px;
    padding: 8px;
  }

  .owner-accounting-filter-row--checkout {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .owner-accounting-filter-row label {
    min-width: 0;
    gap: 3px;
    font-size: 10px;
  }

  .owner-accounting-filter-row input,
  .owner-accounting-filter-row select {
    width: 100%;
    min-height: 30px;
    padding: 4px 6px;
    font-size: 11px;
  }

  .owner-accounting-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 8px;
  }

  .owner-accounting-filter-row > span {
    display: none;
  }

  .owner-accounting-side article {
    padding: 10px;
  }

  .owner-accounting-side-action {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 84px;
    padding: 14px 16px;
  }

  .owner-accounting-side-action strong {
    display: block;
    font-size: 16px;
  }

  .owner-accounting-side-action span {
    display: block;
    font-size: 13px;
  }

  .owner-accounting-ranking-list li {
    gap: 6px;
    padding: 3px 0;
  }
}

.finance-overview-dashboard {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(221, 211, 198, 0.92);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 245, 0.98)),
    #fff;
  color: #050814;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.finance-overview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.finance-overview-header h2 {
  margin: 0;
  color: #111111;
  font-size: 28px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: 0;
}

.finance-overview-header p {
  margin: 8px 0 0;
  color: #555b66;
  font-size: 14px;
  font-weight: 750;
}

.finance-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 7px;
  background: #0b0b0b;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.finance-export-btn::before {
  content: "??;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #d8a340;
  font-size: 20px;
  line-height: 1;
}

.finance-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.finance-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d6a13e;
  border-radius: 7px;
  background: #fff8eb;
  color: #7c4a05;
  font-size: 14px;
  font-weight: 900;
}

.finance-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.finance-summary-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 20px 22px;
  border: 1px solid rgba(226, 218, 207, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.finance-summary-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  font-size: 30px;
  font-weight: 950;
}

.finance-summary-card.green .finance-summary-icon {
  background: #e6f4df;
  color: #3c7f1f;
}

.finance-summary-card.red .finance-summary-icon {
  background: #fde9e7;
  color: #dc2626;
}

.finance-summary-card.gold .finance-summary-icon,
.finance-summary-card.percent .finance-summary-icon {
  background: #f3eadc;
  color: #9a600f;
}

.finance-summary-card small,
.finance-summary-card strong,
.finance-summary-card em {
  display: block;
}

.finance-summary-card small {
  color: #111111;
  font-size: 15px;
  font-weight: 900;
}

.finance-summary-card strong {
  margin-top: 12px;
  color: #050814;
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

.finance-summary-card em {
  margin-top: 20px;
  color: #171717;
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
}

.finance-summary-card em b {
  margin-left: 12px;
  color: #0f8a35;
  font-weight: 950;
}

.finance-summary-card.red em b {
  color: #dc2626;
}

.finance-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.25fr) minmax(300px, 1fr);
  gap: 16px;
}

.finance-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(226, 218, 207, 0.94);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.finance-panel h3 {
  margin: 0;
  color: #111111;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.2;
}

.finance-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.finance-panel > header button {
  border: 0;
  background: transparent;
  color: #8a5d18;
  font-size: 13px;
  font-weight: 850;
}

.finance-donut-wrap {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.finance-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: conic-gradient(#b87912 0 42.4%, #1f7acb 42.4% 78.7%, #7aa23f 78.7% 89.2%, #efb51b 89.2% 92.7%, #bfbfbf 92.7% 100%);
}

.finance-donut::after {
  content: "";
  position: absolute;
  inset: 39px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(226, 218, 207, 0.88);
}

.finance-donut strong,
.finance-donut span {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.finance-donut strong {
  color: #111111;
  font-size: 15px;
  font-weight: 950;
}

.finance-donut span {
  margin-top: 6px;
  color: #111111;
  font-size: 20px;
  font-weight: 950;
}

.finance-expense-structure ul,
.finance-income-ranking ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finance-expense-structure li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 54px 70px;
  align-items: center;
  gap: 10px;
  color: #111111;
  font-size: 13px;
  font-weight: 850;
}

.finance-expense-structure li i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.finance-expense-structure li i.loan {
  background: #b87912;
}

.finance-expense-structure li i.salary {
  background: #1f7acb;
}

.finance-expense-structure li i.rent {
  background: #7aa23f;
}

.finance-expense-structure li i.insurance {
  background: #efb51b;
}

.finance-expense-structure li i.other {
  background: #bfbfbf;
}

.finance-expense-structure li b,
.finance-expense-structure li em {
  color: #111111;
  font-style: normal;
  text-align: right;
}

.finance-loan-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.finance-loan-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid rgba(226, 218, 207, 0.92);
  border-radius: 8px;
  background: #fff;
}

.finance-loan-card h4 span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f4e6cf;
  color: #a16207;
  font-size: 13px;
  font-weight: 950;
}

.finance-loan-card.green h4 span {
  background: #e0f2df;
  color: #318432;
}

.finance-loan-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #111111;
  font-size: 13px;
  font-weight: 950;
}

.finance-loan-card strong {
  color: #111111;
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
}

.finance-loan-card small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.finance-loan-card dl {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 7px 8px;
  margin: 6px 0 0;
  color: #111111;
  font-size: 12px;
  font-weight: 850;
}

.finance-loan-card dt,
.finance-loan-card dd {
  margin: 0;
}

.finance-loan-card dt {
  color: #6b7280;
}

.finance-loan-card dd {
  text-align: right;
}

.finance-loan-card > i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee7df;
}

.finance-loan-card > i::before {
  content: "";
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: #b87912;
}

.finance-income-ranking ol {
  margin-top: 20px;
}

.finance-income-ranking li {
  display: grid;
  grid-template-columns: 28px minmax(110px, 1fr) minmax(92px, 1.05fr) 82px;
  align-items: center;
  gap: 11px;
  color: #111111;
  font-size: 13px;
  font-weight: 850;
}

.finance-income-ranking li b {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: #f2efe9;
  color: #111111;
  font-size: 12px;
}

.finance-income-ranking li i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeeae5;
}

.finance-income-ranking li i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #bd7d16;
}

.finance-income-ranking li strong {
  text-align: right;
}

.finance-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(320px, 1fr);
  gap: 16px;
}

.finance-detail-table-card,
.finance-income-table-card {
  padding: 0;
  overflow: hidden;
}

.finance-detail-table-card h3,
.finance-income-table-card h3 {
  padding: 16px 18px 12px;
}

.finance-detail-table-card table,
.finance-income-table-card table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.finance-detail-table-card th,
.finance-detail-table-card td,
.finance-income-table-card th,
.finance-income-table-card td {
  padding: 9px 12px;
  border: 1px solid rgba(225, 225, 225, 0.95);
  color: #111111;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
}

.finance-detail-table-card th,
.finance-income-table-card th {
  background: linear-gradient(180deg, #171717, #050505);
  color: #ffffff;
  font-weight: 950;
  text-align: center;
}

.finance-detail-table-card td:nth-child(2),
.finance-detail-table-card tfoot td:nth-child(2),
.finance-income-table-card td:nth-child(2),
.finance-income-table-card tfoot td:nth-child(2) {
  font-weight: 950;
  text-align: right;
}

.finance-detail-table-card td:nth-child(3) {
  text-align: left;
}

.finance-detail-table-card tfoot td,
.finance-income-table-card tfoot td {
  padding: 16px 18px;
  background: #fff;
  color: #b7791f;
  font-size: 20px;
  font-weight: 950;
}

.finance-detail-table-card tfoot td:first-child,
.finance-income-table-card tfoot td:first-child {
  color: #111111;
  text-align: left;
}

.finance-detail-table-card tfoot td:nth-child(2) {
  color: #dc2626;
  font-size: 14px;
}

.finance-income-table-card tr.red td {
  color: #dc2626;
  font-weight: 950;
}

.owner-profit-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
}

.owner-profit-table-head h3 {
  padding: 0;
}

.owner-profit-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.owner-profit-table-head button,
.owner-profit-row-delete,
.owner-profit-row-detail,
.owner-profit-config-card header button,
.owner-profit-config-card td button {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid #e3a94b;
  border-radius: 999px;
  background: #fffaf0;
  color: #8a4f05;
  font-size: 13px;
  font-weight: 900;
}

.owner-profit-row-detail {
  border-color: #d89a32;
  background: #fff7e8;
  color: #8a4f05;
  cursor: pointer;
}

.owner-profit-company-income-row {
  cursor: pointer;
}

.owner-profit-company-income-row:hover td,
.owner-profit-company-income-row:focus td {
  background: #fff7e8;
}

.owner-profit-table-head button.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.owner-profit-row-delete,
.owner-profit-config-card td button {
  border-color: #ffb4c2;
  background: #fff7f9;
  color: #d61f45;
}

.owner-profit-fixed-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf2f7;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.owner-profit-fixed-pill.preset {
  background: #fff4d6;
  color: #9a5a00;
}

.owner-profit-fixed-pill.manual {
  background: #e7f5ff;
  color: #1d5f99;
}

.owner-profit-editable-row td[contenteditable="true"] {
  outline: 0;
  background: #fffdf7;
  box-shadow: inset 0 0 0 1px rgba(225, 163, 64, 0.28);
}

.owner-profit-editable-row td[contenteditable="true"]:focus {
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(212, 151, 46, 0.58);
}

.finance-detail-table-card td.money-cell,
.finance-income-table-card td.money-cell {
  text-align: right;
  font-weight: 950;
}

.owner-profit-empty-note {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.owner-profit-effective-field {
  display: inline-grid;
  gap: 5px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.owner-profit-effective-field input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d6a13e;
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.owner-profit-settings-grid {
  display: grid;
  gap: 16px;
}

.owner-profit-config-card {
  padding: 0;
  overflow: hidden;
}

.owner-profit-config-card.wide {
  grid-column: 1 / -1;
}

.owner-profit-config-card header {
  padding: 16px 18px 12px;
}

.owner-profit-config-table-wrap {
  overflow-x: auto;
}

.owner-profit-config-card table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.owner-profit-config-card th,
.owner-profit-config-card td {
  padding: 8px;
  border: 1px solid rgba(225, 225, 225, 0.95);
  color: #111827;
  font-size: 13px;
  font-weight: 850;
}

.owner-profit-config-card th {
  background: linear-gradient(180deg, #171717, #050505);
  color: #ffffff;
  text-align: center;
  font-weight: 950;
}

.owner-profit-config-card input,
.owner-profit-config-card select {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #bfd0e8;
  border-radius: 7px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
}

.owner-profit-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.owner-profit-check input {
  width: 16px;
  min-height: 16px;
  padding: 0;
}

.page[data-panel="owner-profit-report"] > .content-card {
  padding: 6px 8px;
}

.page[data-panel="owner-profit-report"] .finance-overview-dashboard {
  gap: 12px;
  padding: 14px 16px;
}

.page[data-panel="owner-profit-report"] .finance-overview-header {
  align-items: center;
  gap: 12px;
}

.page[data-panel="owner-profit-report"] .finance-overview-header h2 {
  font-size: 24px;
}

.page[data-panel="owner-profit-report"] .finance-overview-header p {
  margin-top: 4px;
  font-size: 12px;
}

.page[data-panel="owner-profit-report"] .finance-header-actions {
  gap: 8px;
}

.page[data-panel="owner-profit-report"] .finance-export-btn,
.page[data-panel="owner-profit-report"] .finance-settings-btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.page[data-panel="owner-profit-report"] .finance-summary-cards,
.page[data-panel="owner-profit-report"] .finance-dashboard-grid,
.page[data-panel="owner-profit-report"] .finance-bottom-grid {
  gap: 10px;
}

.page[data-panel="owner-profit-report"] .finance-summary-card {
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 10px;
  min-height: 76px;
  padding: 8px 12px;
}

.page[data-panel="owner-profit-report"] .finance-summary-icon {
  width: 44px;
  height: 44px;
  font-size: 21px;
}

.page[data-panel="owner-profit-report"] .finance-summary-card small {
  font-size: 12px;
}

.page[data-panel="owner-profit-report"] .finance-summary-card strong {
  margin-top: 4px;
  font-size: 24px;
}

.page[data-panel="owner-profit-report"] .finance-summary-card em {
  margin-top: 10px;
  font-size: 12px;
}

.page[data-panel="owner-profit-report"] .finance-panel {
  padding: 12px;
}

.page[data-panel="owner-profit-report"] .finance-panel h3 {
  font-size: 16px;
}

.page[data-panel="owner-profit-report"] .finance-panel > header {
  margin-bottom: 9px;
}

.page[data-panel="owner-profit-report"] .finance-donut-wrap {
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.page[data-panel="owner-profit-report"] .finance-donut {
  width: 102px;
  height: 102px;
}

.page[data-panel="owner-profit-report"] .finance-donut::after {
  inset: 27px;
}

.page[data-panel="owner-profit-report"] .finance-donut strong {
  font-size: 12px;
}

.page[data-panel="owner-profit-report"] .finance-donut span {
  margin-top: 3px;
  font-size: 16px;
}

.page[data-panel="owner-profit-report"] .finance-expense-structure ul,
.page[data-panel="owner-profit-report"] .finance-income-ranking ol {
  gap: 7px;
}

.page[data-panel="owner-profit-report"] .finance-expense-structure li {
  grid-template-columns: 10px minmax(0, 1fr) 38px 62px;
  gap: 7px;
  font-size: 12px;
}

.page[data-panel="owner-profit-report"] .finance-loan-cards {
  gap: 8px;
}

.page[data-panel="owner-profit-report"] .finance-loan-card {
  gap: 6px;
  padding: 9px 8px;
}

.page[data-panel="owner-profit-report"] .finance-loan-card strong {
  font-size: 19px;
}

.page[data-panel="owner-profit-report"] .finance-loan-card dl {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 8px;
  margin-top: 3px;
}

.page[data-panel="owner-profit-report"] .finance-loan-card dt,
.page[data-panel="owner-profit-report"] .finance-loan-card dd {
  white-space: nowrap;
}

.page[data-panel="owner-profit-report"] .finance-income-ranking ol {
  margin-top: 10px;
}

.page[data-panel="owner-profit-report"] .finance-income-ranking li {
  gap: 8px;
  font-size: 12px;
}

.page[data-panel="owner-profit-report"] .owner-profit-table-head,
.page[data-panel="owner-profit-report"] .finance-detail-table-card h3,
.page[data-panel="owner-profit-report"] .finance-income-table-card h3 {
  padding: 8px 10px 6px;
}

.page[data-panel="owner-profit-report"] .owner-profit-table-head button,
.page[data-panel="owner-profit-report"] .owner-profit-row-delete {
  min-height: 22px;
  padding: 0 7px;
  font-size: 11px;
}

.page[data-panel="owner-profit-report"] .finance-detail-table-card td,
.page[data-panel="owner-profit-report"] .finance-income-table-card td {
  vertical-align: middle;
}

.page[data-panel="owner-profit-report"] .finance-detail-table-card td:last-child,
.page[data-panel="owner-profit-report"] .finance-income-table-card td:last-child {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.page[data-panel="owner-profit-report"] .finance-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.page[data-panel="owner-profit-report"] .finance-detail-table-card table {
  min-width: 880px;
}

.page[data-panel="owner-profit-report"] .finance-income-table-card table {
  min-width: 360px;
}

.page[data-panel="owner-profit-report"] .finance-detail-table-card col.expense-name {
  width: 16%;
}

.page[data-panel="owner-profit-report"] .finance-detail-table-card col.expense-money {
  width: 12%;
}

.page[data-panel="owner-profit-report"] .finance-detail-table-card col.expense-account {
  width: 30%;
}

.page[data-panel="owner-profit-report"] .finance-detail-table-card col.expense-date {
  width: 11%;
}

.page[data-panel="owner-profit-report"] .finance-detail-table-card col.expense-rate {
  width: 8%;
}

.page[data-panel="owner-profit-report"] .finance-detail-table-card col.expense-actions {
  width: 14%;
}

.page[data-panel="owner-profit-report"] .finance-detail-table-card th,
.page[data-panel="owner-profit-report"] .finance-detail-table-card td,
.page[data-panel="owner-profit-report"] .finance-income-table-card th,
.page[data-panel="owner-profit-report"] .finance-income-table-card td {
  padding: 4px 7px;
  font-size: 11px;
  line-height: 1.18;
}

.page[data-panel="owner-profit-report"] .finance-detail-table-card tfoot td,
.page[data-panel="owner-profit-report"] .finance-income-table-card tfoot td {
  padding: 7px 10px;
  font-size: 15px;
}

.page[data-panel="owner-profit-report"] .owner-profit-fixed-pill {
  min-height: 20px;
  padding: 0 6px;
  font-size: 11px;
}

.owner-profit-fixed-pill.auto {
  background: #e9f7ef;
  color: #0f7a35;
}

.owner-profit-row-delete.view {
  border-color: #b8d2ff;
  background: #f4f8ff;
  color: #1d5fba;
}

.owner-profit-auto-cell {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 950;
}

.owner-profit-period-field {
  display: grid;
  gap: 3px;
  min-width: 102px;
  color: #5b6470;
  font-size: 11px;
  font-weight: 900;
}

.owner-profit-period-field select {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #d7c6ad;
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.owner-profit-expense-summary-card {
  width: min(920px, calc(100vw - 28px));
}

.owner-profit-expense-summary-card header small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.owner-profit-expense-summary-body {
  display: grid;
  gap: 12px;
  max-height: min(62vh, 620px);
  overflow: auto;
  padding: 14px;
}

.owner-profit-expense-summary-body section {
  overflow: hidden;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #fff;
}

.owner-profit-expense-summary-body h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.owner-profit-expense-summary-body h4 strong {
  color: #b87912;
  font-size: 14px;
}

.owner-profit-expense-summary-body table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.owner-profit-expense-summary-body th,
.owner-profit-expense-summary-body td {
  padding: 8px 10px;
  border-top: 1px solid #e5edf5;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
}

.owner-profit-expense-summary-body th {
  background: #111827;
  color: #fff;
}

.owner-profit-expense-summary-body td:nth-child(2) {
  text-align: right;
  font-weight: 950;
}

.owner-profit-company-income-card {
  width: min(1220px, calc(100vw - 28px));
}

.owner-profit-company-income-card header small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.owner-profit-company-income-body {
  display: grid;
  gap: 10px;
  max-height: min(68vh, 680px);
  overflow: auto;
  padding: 14px;
}

.owner-profit-company-income-formula {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #efd8ae;
  border-radius: 8px;
  background: #fff8e9;
  color: #764a08;
  font-size: 13px;
  font-weight: 900;
}

.owner-profit-company-income-table-wrap {
  overflow: auto;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
}

.owner-profit-company-income-table-wrap table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
}

.owner-profit-company-income-table-wrap th,
.owner-profit-company-income-table-wrap td {
  padding: 9px 10px;
  border: 1px solid #e5edf5;
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.owner-profit-company-income-table-wrap th {
  position: sticky;
  top: 0;
  background: #111827;
  color: #fff;
  text-align: center;
}

.owner-profit-company-income-table-wrap td:nth-child(n + 4),
.owner-profit-company-income-table-wrap tfoot td {
  text-align: right;
}

.owner-profit-company-income-table-wrap td:last-child,
.owner-profit-company-income-table-wrap tfoot td:last-child {
  color: #087443;
  font-weight: 950;
}

.owner-profit-company-income-table-wrap tfoot td {
  background: #f8fafc;
  color: #111827;
  font-size: 13px;
  font-weight: 950;
}

.owner-profit-company-income-empty {
  padding: 30px !important;
  color: #64748b !important;
  text-align: center !important;
}

@media (max-width: 1280px) {
  .finance-summary-cards,
  .finance-dashboard-grid,
  .finance-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-income-ranking {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .finance-overview-dashboard {
    padding: 14px;
  }

  .finance-overview-header,
  .finance-donut-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .finance-overview-header {
    display: grid;
  }

  .finance-summary-cards,
  .finance-dashboard-grid,
  .finance-bottom-grid,
  .finance-loan-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .finance-detail-table-card,
  .finance-income-table-card {
    overflow-x: auto;
  }

  .finance-detail-table-card table {
    min-width: 760px;
  }
}

@media (min-width: 861px) {
  .page[data-panel="owner-profit-report"] .finance-summary-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page[data-panel="owner-profit-report"] .finance-dashboard-grid {
    grid-template-columns: minmax(210px, 0.72fr) minmax(520px, 1.72fr) minmax(240px, 0.82fr);
  }

  .page[data-panel="owner-profit-report"] .finance-bottom-grid {
    grid-template-columns: minmax(0, 2.15fr) minmax(300px, 0.95fr);
    align-items: start;
  }

  .page[data-panel="owner-profit-report"] .finance-income-ranking {
    grid-column: auto;
  }
}

.owner-repair-table th.coral {
  background: #fecaca;
}

.owner-repair-table th.indigo {
  background: #c7d2fe;
}

.owner-repair-table th.gray {
  background: #e5e7eb;
}

.owner-repair-table th.blank {
  background: #ffffff;
}

.owner-repair-table thead tr:nth-child(2) th {
  background: #e8f1fa;
  font-size: 13px;
  font-weight: 800;
}

.owner-repair-table tbody tr,
.owner-repair-table tbody tr:nth-child(odd),
.owner-repair-table tbody tr:nth-child(even) {
  background: #ffffff;
}

.owner-repair-ledger-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.owner-repair-table tfoot td {
  height: 30px;
  background: #f7fbf4;
  font-weight: 800;
}

.owner-repair-status-select {
  width: 100%;
  min-height: 24px;
  border: 1px solid #c4d0df;
  border-radius: 6px;
  background: #ffffff;
  color: #071225;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.owner-repair-photo-view {
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.owner-repair-status-badge {
  display: inline-flex;
  min-width: 54px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.owner-repair-status-badge.unpaid {
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: #fff1f2;
  color: #dc2626;
}

.owner-repair-status-badge.paid {
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: #dcfce7;
  color: #15803d;
}

.owner-repair-ledger-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 4px 0;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.owner-repair-ledger-footer select {
  width: 112px;
  min-height: 34px;
  border: 1px solid rgba(203, 213, 225, 0.94);
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 850;
}

.owner-repair-grand-total {
  border-top: 1px solid rgba(173, 187, 205, 0.78);
  padding-top: 10px;
}

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

.agency-page-actions {
  display: flex;
  justify-content: flex-end;
}

.agency-add-btn {
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(183, 114, 22, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, #f2c76e 0%, #d8a340 48%, #9a6517 100%);
  color: #111827;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(154, 101, 23, 0.18);
}

.agency-add-btn:hover {
  filter: brightness(1.02);
}

.agency-inline-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #7a4b08;
  font-size: 12px;
  font-weight: 900;
}

.agency-add-inline-btn {
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(183, 114, 22, 0.34);
  border-radius: 999px;
  background: #ffffff;
  color: #7a4b08;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.agency-add-inline-btn:hover {
  background: #fff7e6;
}

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

.agency-summary-grid article,
.agency-table-card,
.agency-total-card,
.agency-note-card {
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.agency-summary-grid article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 16px 18px;
}

.agency-summary-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #fff7ed;
  color: #b7791f;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(183, 114, 22, 0.16);
}

.agency-summary-icon.money,
.agency-summary-icon.company {
  background: #fff8e6;
}

.agency-summary-icon.customer {
  background: #f8fafc;
}

.agency-summary-grid small,
.agency-total-card span {
  display: block;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.agency-summary-grid strong {
  margin-right: 6px;
  color: #111827;
  font-size: 28px;
  line-height: 1.1;
}

.agency-summary-grid em,
.agency-total-card em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.agency-table-card {
  overflow-x: auto;
}

.agency-table-card > .agency-page-actions {
  padding: 14px 14px 10px;
}

.agency-report-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  color: #111827;
  font-size: 13px;
}

.agency-report-table th,
.agency-report-table td {
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}

.agency-report-table th {
  background: #111827;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.agency-report-table thead th:first-child {
  border-top-left-radius: 6px;
}

.agency-report-table thead th:last-child {
  border-top-right-radius: 6px;
}

.agency-report-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.agency-report-table tbody tr.agency-row-group-alt {
  background: #f8fbff;
}

.agency-report-table tbody tr.agency-group-row td:first-child,
.agency-report-table tbody tr.agency-group-add-row td {
  border-left: 2px solid rgba(216, 163, 64, 0.52);
}

.agency-report-table tbody tr.agency-group-row td:last-child,
.agency-report-table tbody tr.agency-group-add-row td {
  border-right: 2px solid rgba(216, 163, 64, 0.52);
}

.agency-report-table tbody tr.agency-group-start td {
  border-top: 2px solid rgba(216, 163, 64, 0.52);
}

.agency-report-table tbody tr.agency-group-add-row td {
  border-bottom: 2px solid rgba(216, 163, 64, 0.52);
  background: #fffaf0;
  padding: 9px 14px;
}

.agency-report-table tbody tr.agency-row-empty {
  color: #94a3b8;
}

.agency-report-table tbody tr.agency-row-empty .agency-type-pill {
  opacity: 0.72;
}

.agency-report-table td:nth-child(10) {
  font-weight: 900;
  text-align: right;
}

.agency-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.agency-type-pill.purchase {
  background: #eaf3ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.agency-type-pill.sale {
  background: #fff3dc;
  color: #b7791f;
  box-shadow: inset 0 0 0 1px rgba(183, 114, 22, 0.18);
}

.agency-type-pill.manual {
  background: #eefdf4;
  color: #047857;
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.18);
}

.agency-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.agency-badge.company {
  background: #101827;
  color: #fff;
}

.agency-badge.customer {
  background: #fff2d8;
  color: #b7791f;
}

.agency-nature-select {
  min-width: 88px;
  min-height: 28px;
  padding: 0 24px 0 10px;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  cursor: pointer;
}

.agency-nature-select.company {
  background: #101827;
  color: #ffffff;
}

.agency-nature-select.customer {
  background: #fff2d8;
  color: #b7791f;
}

.agency-view-btn {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.agency-view-btn:hover {
  border-color: rgba(37, 99, 235, 0.48);
  background: #dbeafe;
}

.agency-row-actions {
  text-align: center;
}

.agency-delete-btn {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(225, 29, 72, 0.28);
  border-radius: 999px;
  background: #fff1f2;
  color: #e11d48;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.agency-delete-btn:hover {
  border-color: rgba(225, 29, 72, 0.48);
  background: #ffe4e6;
}

.agency-table-card footer {
  padding: 12px 16px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.agency-table-card .remittance-pagination-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
}

.remittance-pagination {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.remittance-pagination button {
  min-width: 34px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.remittance-pagination button.active {
  border-color: #d8a340;
  background: linear-gradient(135deg, #f2c76e 0%, #d8a340 48%, #9a6517 100%);
  color: #111827;
}

.remittance-pagination button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .agency-table-card .remittance-pagination-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .remittance-pagination {
    justify-content: flex-start;
  }
}

.agency-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.agency-total-card,
.agency-note-card {
  padding: 18px;
}

.agency-total-card {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}

.agency-total-card h3,
.agency-note-card h3 {
  margin: 0;
  color: #111827;
  font-size: 16px;
}

.agency-total-card div {
  border-left: 1px solid rgba(226, 232, 240, 0.95);
  padding-left: 16px;
}

.agency-total-card strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 25px;
}

.agency-note-card p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.remittance-filter-card {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.remittance-filter-card label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.remittance-filter-card select,
.remittance-filter-card input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 750;
}

.remittance-filter-card button {
  min-height: 38px;
  padding: 0 22px;
  border: 0;
  border-radius: 7px;
  background: #b7791f;
  color: #fff;
  font-weight: 900;
}

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

.remittance-summary-grid article {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.remittance-summary-grid small {
  display: block;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.remittance-summary-grid strong {
  margin-right: 6px;
  color: #111827;
  font-size: 28px;
  line-height: 1.1;
}

.remittance-summary-grid em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

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

.remittance-tabs span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.remittance-tabs span:first-child {
  background: #eff6ff;
  color: #1d4ed8;
}

.remittance-tabs b {
  color: inherit;
}

.remittance-report-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  color: #111827;
  font-size: 12px;
}

.remittance-report-table th,
.remittance-report-table td {
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  padding: 7px 8px;
  text-align: center;
  white-space: nowrap;
}

.remittance-report-table th {
  background: #111827;
  color: #fff;
  font-weight: 900;
}

.remittance-report-table td:nth-child(8),
.remittance-report-table td:nth-child(9) {
  font-weight: 900;
  text-align: right;
}

.remittance-status {
  display: inline-flex;
  min-width: 62px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.remittance-status.paid {
  background: #dcfce7;
  color: #15803d;
}

.remittance-status.pending {
  background: #fff7ed;
  color: #b7791f;
}

.remittance-status-select {
  min-width: 82px;
  min-height: 24px;
  padding: 0 24px 0 10px;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  cursor: pointer;
}

.remittance-status-select.paid {
  background: #dcfce7;
  color: #15803d;
}

.remittance-status-select.pending {
  background: #fff7ed;
  color: #b7791f;
}

.remittance-action-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.remittance-view-btn,
.remittance-delete-btn {
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.remittance-view-btn:hover {
  border-color: rgba(37, 99, 235, 0.48);
  background: #dbeafe;
}

.remittance-delete-btn {
  border-color: rgba(225, 29, 72, 0.28);
  background: #fff1f2;
  color: #e11d48;
}

.remittance-delete-btn:hover {
  border-color: rgba(225, 29, 72, 0.48);
  background: #ffe4e6;
}

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

@media (max-width: 900px) {
  .agency-summary-grid,
  .remittance-filter-card,
  .remittance-summary-grid,
  .agency-bottom-grid,
  .agency-total-card {
    grid-template-columns: 1fr;
  }

  .agency-summary-grid strong,
  .agency-total-card strong {
    font-size: 22px;
  }
}

body:not(.hongyi-auth-ready) .app-header,
body:not(.hongyi-auth-ready) .main-tabs,
body:not(.hongyi-auth-ready) [data-panel]:not([data-panel="login"]):not([data-panel="line-register"]):not([data-panel="testlogin"]) {
  display: none !important;
}

body[data-mobile-page="login"],
body[data-mobile-page="line-register"] {
  background: #071225;
}

body[data-mobile-page="login"] .mobile-app,
body[data-mobile-page="line-register"] .mobile-app {
  min-height: 100svh;
  background: #071225;
}

body[data-mobile-page="login"] .mobile-app::before,
body[data-mobile-page="line-register"] .mobile-app::before {
  position: fixed;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(7, 18, 37, 0.92) 0%, rgba(31, 31, 35, 0.76) 38%, rgba(128, 65, 24, 0.68) 68%, rgba(235, 125, 23, 0.9) 100%),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.16), transparent 25%),
    radial-gradient(circle at 86% 82%, rgba(255, 199, 101, 0.22), transparent 30%),
    var(--app-bg-photo) center / cover no-repeat;
}

body[data-mobile-page="login"] .app-header,
body[data-mobile-page="login"] .main-tabs,
body[data-mobile-page="line-register"] .app-header,
body[data-mobile-page="line-register"] .main-tabs {
  display: none !important;
}

body[data-mobile-page="login"] .page-stack,
body[data-mobile-page="line-register"] .page-stack {
  min-height: 100svh;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

body.people-management-locked [data-page="people"],
body.people-management-locked [data-page-jump="people"],
body.people-management-locked [data-panel="people"],
body.people-management-locked [data-modal="staff-create"],
body.people-management-locked [data-open-modal="staff-create"],
body.people-management-locked [data-sql-staff-edit],
body.people-management-locked [data-sql-staff-delete] {
  display: none !important;
}

.login-page {
  min-height: 100svh;
  color: #fff;
}

.login-page.active {
  display: grid;
}

.login-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 235, 205, 0.96);
  color: #b96a14;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.login-btn,
.role-login {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 900;
  line-height: 1.1;
}

.login-btn {
  height: 38px;
  color: #071225;
  box-shadow: 0 12px 24px rgba(7, 18, 37, 0.12);
}

.login-btn.primary {
  border-color: rgba(164, 102, 18, 0.28);
  background: linear-gradient(135deg, #f6cf78 0%, #d99c2f 46%, #9e650e 100%);
}

.login-btn.guest {
  border-color: rgba(7, 18, 37, 0.16);
  background: linear-gradient(135deg, #ffffff 0%, #f1e8da 100%);
  color: #263449;
}

.register-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 80;
  display: grid;
  align-content: start;
  gap: 10px;
  width: min(720px, calc(100vw - 28px));
  max-height: min(86vh, 680px);
  margin: 0;
  padding: 20px;
  overflow: auto;
  border: 1px solid rgba(196, 208, 223, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 240, 230, 0.98)),
    #ffffff;
  color: #071225;
  box-shadow:
    0 28px 80px rgba(7, 18, 37, 0.34),
    0 0 0 9999px rgba(7, 18, 37, 0.52);
  transform: translate(-50%, -50%);
  isolation: isolate;
}

.register-panel::before {
  content: none;
}

.register-panel.hidden {
  display: none;
}

.register-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(196, 208, 223, 0.88);
  border-radius: 50%;
  background: #ffffff;
  color: #071225;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(7, 18, 37, 0.12);
}

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

.register-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.register-grid label.wide {
  grid-column: 1 / -1;
}

.register-grid span {
  color: #344154;
  font-size: 12px;
  font-weight: 900;
}

.register-grid input,
.register-grid select,
.register-grid textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(196, 208, 223, 0.9);
  border-radius: 10px;
  background: #ffffff;
  color: #071225;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.register-grid input,
.register-grid select {
  height: 38px;
  padding: 0 12px;
}

.register-grid textarea {
  min-height: 74px;
  resize: vertical;
  padding: 10px 12px;
}

.register-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.register-panel-actions .login-btn {
  width: auto;
  min-width: 132px;
}

.role-login-panel {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(196, 208, 223, 0.78);
}

.role-login-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.role-login-title span {
  color: #071225;
  font-size: 14px;
  font-weight: 900;
}

.role-login-title small {
  color: #8a97aa;
  font-size: 11px;
  font-weight: 850;
}

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

.role-login {
  display: grid;
  min-height: 48px;
  align-content: center;
  gap: 3px;
  padding: 7px 9px;
  text-align: left;
}

.role-login span {
  color: #071225;
  font-size: 13px;
}

.role-login small {
  color: rgba(7, 18, 37, 0.58);
  font-size: 10px;
  font-weight: 850;
}

.role-login.owner {
  border-color: rgba(169, 104, 16, 0.34);
  background: linear-gradient(135deg, #ffe2a1 0%, #f0b74e 100%);
}

.role-login.manager {
  border-color: rgba(200, 85, 19, 0.34);
  background: linear-gradient(135deg, #ffcfaa 0%, #ff8a37 100%);
}

.role-login.finance {
  border-color: rgba(33, 139, 134, 0.32);
  background: linear-gradient(135deg, #dff8f4 0%, #75d0c5 100%);
}

.role-login.sales {
  border-color: rgba(168, 67, 56, 0.32);
  background: linear-gradient(135deg, #ffe4df 0%, #ff9c8c 100%);
}

.lux-login-page {
  --lux-gold: #d8b77b;
  --lux-gold-soft: #f4dfb2;
  --lux-ink: #050403;
  --lux-muted: rgba(232, 219, 194, 0.62);
  min-height: 100svh;
  overflow: hidden;
  color: #f8eedb;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.98) 0%, rgba(4, 4, 4, 0.96) 42%, rgba(8, 8, 8, 0.9) 100%),
    var(--app-bg-photo) center / cover no-repeat;
}

.lux-login-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  min-height: 100svh;
  isolation: isolate;
}

.lux-login-shell::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: min(180px, 23vw);
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(248, 216, 162, 0.05) 0 5px, rgba(0, 0, 0, 0.22) 5px 17px),
    linear-gradient(90deg, rgba(225, 189, 128, 0.24), transparent 78%);
  border-right: 1px solid rgba(216, 183, 123, 0.26);
}

.lux-login-shell::after {
  position: absolute;
  inset: 0 31% 0 45%;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.78)),
    var(--app-bg-photo) center / cover no-repeat;
  filter: grayscale(0.35) brightness(0.48) blur(0.2px);
  opacity: 0.52;
}

.login-language {
  position: absolute;
  top: 30px;
  right: 38px;
  z-index: 3;
  color: rgba(238, 225, 200, 0.68);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.login-language span {
  padding-left: 7px;
  color: var(--lux-gold);
}

.lux-login-brand,
.lux-login-action {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100svh;
}

.lux-login-brand {
  padding: clamp(42px, 7vw, 96px);
}

.lux-brand-card {
  width: min(620px, 76vw);
  margin-left: clamp(0px, 13vw, 210px);
  text-align: center;
}

.lux-brand-monogram {
  color: var(--lux-gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 7vw, 128px);
  font-style: italic;
  line-height: 0.9;
  text-shadow: 0 20px 44px rgba(0, 0, 0, 0.74);
}

.lux-brand-en,
.lux-login-action small {
  margin: 46px 0 22px;
  color: var(--lux-gold);
  font-size: clamp(14px, 1.4vw, 24px);
  font-weight: 500;
  letter-spacing: 0.42em;
}

.lux-brand-card h1 {
  margin: 0;
  color: var(--lux-gold-soft);
  font-size: clamp(28px, 3.1vw, 58px);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.86);
}

.lux-brand-subtitle {
  display: block;
  margin-top: 24px;
  color: rgba(239, 230, 212, 0.56);
  font-size: clamp(12px, 1.1vw, 18px);
  letter-spacing: 0.32em;
}

.lux-brand-rule,
.lux-action-line {
  display: block;
  width: 92px;
  height: 1px;
  margin: 50px auto 0;
  background: linear-gradient(90deg, transparent, var(--lux-gold), transparent);
}

.lux-brand-tags {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.6vw, 42px);
  margin-top: 48px;
  color: rgba(238, 225, 200, 0.52);
  font-size: clamp(14px, 1.35vw, 22px);
  letter-spacing: 0.18em;
}

.lux-brand-tags span + span::before {
  margin-right: clamp(14px, 2.4vw, 38px);
  color: rgba(216, 183, 123, 0.55);
  content: "|";
}

.lux-copy {
  position: absolute;
  left: clamp(24px, 5vw, 78px);
  bottom: 28px;
  color: rgba(238, 225, 200, 0.42);
  font-size: 13px;
}

.lux-login-action {
  justify-items: center;
  padding: 86px clamp(24px, 5vw, 92px) 58px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.9) 18%, rgba(0, 0, 0, 0.98));
  border-left: 1px solid rgba(216, 183, 123, 0.11);
  text-align: center;
}

.lux-line-login {
  position: relative;
  display: grid;
  place-items: center;
  width: min(290px, 45vw);
  height: min(290px, 45vw);
  min-height: 0;
  max-height: none;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(216, 183, 123, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.54);
  cursor: pointer;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease,
    background 0.28s ease;
}

.lux-line-login::before,
.lux-line-login::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.lux-line-login::before {
  inset: 20%;
  border: 1px solid rgba(247, 221, 176, 0.9);
  box-shadow: 0 0 32px rgba(218, 184, 126, 0.36), inset 0 0 26px rgba(218, 184, 126, 0.18);
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.42s ease;
}

.lux-line-login::after {
  inset: 34%;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.56);
  transition:
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.lux-line-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #111;
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 950;
  transition: transform 0.28s ease;
}

.lux-line-login:hover,
.lux-line-login:focus-visible {
  border-color: rgba(248, 224, 180, 0.72);
  background: rgba(22, 16, 8, 0.34);
  box-shadow:
    0 30px 86px rgba(0, 0, 0, 0.66),
    0 0 44px rgba(216, 183, 123, 0.24);
  transform: translateY(-5px) scale(1.015);
}

.lux-line-login:hover::before,
.lux-line-login:focus-visible::before {
  border-color: rgba(255, 240, 210, 1);
  box-shadow:
    0 0 42px rgba(248, 224, 180, 0.52),
    inset 0 0 34px rgba(218, 184, 126, 0.24);
  transform: rotate(10deg) scale(1.08);
}

.lux-line-login:hover::after,
.lux-line-login:focus-visible::after {
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.62),
    0 0 28px rgba(255, 255, 255, 0.32);
  transform: scale(0.94);
}

.lux-line-login:hover .lux-line-orbit,
.lux-line-login:focus-visible .lux-line-orbit {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .lux-line-login,
  .lux-line-login::before,
  .lux-line-login::after,
  .lux-line-orbit {
    transition: none;
  }

  .lux-line-login:hover,
  .lux-line-login:focus-visible,
  .lux-line-login:hover::before,
  .lux-line-login:focus-visible::before,
  .lux-line-login:hover::after,
  .lux-line-login:focus-visible::after,
  .lux-line-login:hover .lux-line-orbit,
  .lux-line-login:focus-visible .lux-line-orbit {
    transform: none;
  }
}

.lux-login-action h2 {
  margin: 54px 0 12px;
  color: var(--lux-gold);
  font-size: clamp(24px, 2.2vw, 40px);
  font-weight: 400;
  letter-spacing: 0.18em;
}

.lux-login-action p {
  margin: 0;
  color: rgba(238, 225, 200, 0.64);
  font-size: clamp(15px, 1.35vw, 22px);
  letter-spacing: 0.12em;
}

.lux-guest-login {
  min-height: 34px;
  margin-top: 22px;
  padding: 0 18px;
  border: 1px solid rgba(216, 183, 123, 0.34);
  border-radius: 999px;
  color: rgba(244, 226, 190, 0.72);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.lux-guest-login:hover,
.lux-guest-login:focus-visible {
  border-color: rgba(248, 224, 180, 0.62);
  color: rgba(255, 242, 214, 0.94);
  background: rgba(27, 19, 8, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 28px rgba(216, 183, 123, 0.14);
  transform: translateY(-1px);
}

.lux-review-notice {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(216, 183, 123, 0.16), transparent 34%),
    rgba(0, 0, 0, 0.28);
  animation: luxReviewNoticeIn 0.42s ease both;
}

.lux-review-notice.is-leaving {
  animation: luxReviewNoticeOut 1.25s ease forwards;
}

.lux-review-card {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: min(520px, calc(100vw - 48px));
  padding: clamp(28px, 5vw, 52px) clamp(30px, 6vw, 74px);
  border: 1px solid rgba(216, 183, 123, 0.28);
  background:
    linear-gradient(180deg, rgba(9, 7, 4, 0.72), rgba(0, 0, 0, 0.9)),
    repeating-linear-gradient(90deg, rgba(248, 216, 162, 0.045) 0 5px, transparent 5px 17px);
  box-shadow:
    0 34px 96px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 64px rgba(216, 183, 123, 0.16);
  text-align: center;
  overflow: hidden;
}

.lux-review-card::before,
.lux-review-card::after {
  position: absolute;
  left: 50%;
  width: 96px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, #d8b77b, transparent);
  transform: translateX(-50%);
}

.lux-review-card::before {
  top: 22px;
}

.lux-review-card::after {
  bottom: 22px;
}

.lux-review-card span {
  color: rgba(216, 183, 123, 0.78);
  font-size: clamp(10px, 1vw, 14px);
  font-weight: 600;
  letter-spacing: 0.42em;
}

.lux-review-card strong {
  margin-top: 18px;
  color: #f4dfb2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1;
  text-shadow:
    0 18px 42px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(216, 183, 123, 0.24);
}

.lux-review-card small {
  margin-top: 20px;
  color: rgba(238, 225, 200, 0.64);
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 600;
  letter-spacing: 0.16em;
}

@keyframes luxReviewNoticeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes luxReviewNoticeOut {
  from {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
  to {
    opacity: 0;
    filter: blur(8px);
    transform: scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lux-review-notice,
  .lux-review-notice.is-leaving {
    animation-duration: 0.01ms;
  }
}

.lux-login-action .lux-action-line {
  width: 1px;
  height: 68px;
  margin-top: clamp(40px, 8vh, 92px);
}

.lux-login-action small {
  margin-top: 30px;
  font-size: clamp(10px, 0.9vw, 14px);
}

.lux-register-panel {
  color: #071225;
}

.line-register-page.active {
  display: grid;
}

.line-register-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.82fr);
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.line-register-shell::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(6, 5, 4, 0.84) 48%, rgba(0, 0, 0, 0.98)),
    var(--app-bg-photo) center / cover no-repeat;
}

.line-register-shell::after {
  position: absolute;
  inset: 0 33% 0 0;
  z-index: -1;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(248, 216, 162, 0.05) 0 5px, rgba(0, 0, 0, 0.26) 5px 17px),
    linear-gradient(120deg, rgba(216, 183, 123, 0.2), transparent 66%);
  border-right: 1px solid rgba(216, 183, 123, 0.2);
}

.line-register-brand,
.line-register-form-wrap {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100svh;
}

.line-register-brand {
  padding: clamp(42px, 7vw, 96px);
}

.line-register-brand .lux-brand-card {
  width: min(560px, 100%);
  margin-left: clamp(0px, 5vw, 72px);
}

.line-register-brand .lux-brand-card h1 {
  font-size: clamp(26px, 2.6vw, 44px);
}

.line-register-form-wrap {
  justify-items: center;
  padding: clamp(30px, 5vw, 80px);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.95) 22%, #050403);
  border-left: 1px solid rgba(216, 183, 123, 0.13);
}

.line-register-card.register-panel {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  width: min(560px, 100%);
  max-height: none;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(238, 204, 142, 0.34);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 249, 235, 0.98) 0%, rgba(239, 223, 194, 0.94) 100%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.86), transparent 34%),
    #fff8e8;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(154, 101, 23, 0.12);
  transform: none;
}

.line-register-card.register-panel::before {
  position: absolute;
  inset: 12px;
  z-index: 0;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  pointer-events: none;
}

.line-register-card.register-panel::after {
  position: absolute;
  top: -1px;
  right: 34px;
  left: 34px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 231, 180, 0.95), transparent);
}

.line-register-card > * {
  position: relative;
  z-index: 1;
}

.line-register-card.register-panel.hidden {
  display: grid;
}

.line-register-card .role-login-title {
  position: relative;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(169, 121, 45, 0.22);
}

.line-register-card .role-login-title span {
  color: #071225;
  font-size: clamp(24px, 2vw, 30px);
  letter-spacing: 0.02em;
}

.line-register-card .role-login-title small {
  color: #a96f18;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.line-register-card .role-login-title::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 132px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(214, 154, 45, 0), rgba(214, 154, 45, 0.95));
}

.line-register-card .register-grid {
  gap: 16px;
  margin-top: 22px;
}

.line-register-card .register-grid label {
  position: relative;
  gap: 8px;
}

.line-register-card .register-grid span {
  color: #152033;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.line-register-card .register-grid input,
.line-register-card .register-grid select {
  height: 54px;
  border: 1px solid rgba(172, 132, 65, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 244, 0.9));
  color: #071225;
  font-size: 16px;
  font-weight: 780;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(77, 48, 9, 0.08);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.line-register-card .register-grid input::placeholder {
  color: rgba(68, 78, 96, 0.52);
}

.line-register-card .register-grid input:hover,
.line-register-card .register-grid select:hover {
  border-color: rgba(214, 154, 45, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 30px rgba(77, 48, 9, 0.12);
}

.line-register-card .register-grid input:focus,
.line-register-card .register-grid select:focus {
  border-color: rgba(214, 154, 45, 0.95);
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(214, 154, 45, 0.16),
    0 16px 34px rgba(77, 48, 9, 0.14);
  transform: translateY(-1px);
}

.line-register-card .register-panel-actions {
  gap: 14px;
  margin-top: 28px;
}

.line-register-card .login-btn {
  height: 50px;
  min-width: 150px;
  border-radius: 14px;
  font-size: 16px;
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease,
    filter 0.22s ease;
}

.line-register-card .login-btn.primary {
  border-color: rgba(154, 101, 23, 0.42);
  background:
    linear-gradient(135deg, #ffdd84 0%, #e6a934 48%, #a96a0e 100%);
  box-shadow:
    0 16px 34px rgba(154, 101, 23, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.line-register-card .login-btn.guest {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(7, 18, 37, 0.13);
}

.line-register-card .login-btn:hover,
.line-register-card .login-btn:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.08);
}

.line-register-card .login-btn.primary:hover,
.line-register-card .login-btn.primary:focus-visible {
  box-shadow:
    0 20px 42px rgba(154, 101, 23, 0.34),
    0 0 28px rgba(214, 154, 45, 0.18);
}

.test-login-page.active {
  display: grid;
  place-items: center;
}

.test-login-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100svh;
  padding: 26px;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.86), rgba(10, 8, 5, 0.82)),
    var(--app-bg-photo) center / cover no-repeat;
}

.test-login-card {
  width: min(460px, calc(100vw - 34px));
  padding: 30px;
  border: 1px solid rgba(216, 183, 123, 0.36);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.95);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.test-login-card .login-eyebrow {
  color: #a96f18;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.test-login-card h1 {
  margin: 8px 0 8px;
  color: #071225;
  font-size: 30px;
}

.test-login-card p {
  margin: 0 0 18px;
  color: #65738a;
  font-weight: 750;
}

.test-login-card .role-login-panel {
  border-top-color: rgba(169, 121, 45, 0.26);
}

.test-login-back {
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 4;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(216, 183, 123, 0.48);
  border-radius: 999px;
  color: var(--lux-gold-soft);
  background: rgba(0, 0, 0, 0.42);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 760px) {
  .line-register-shell {
    grid-template-columns: 1fr;
    min-height: 100svh;
    overflow: auto;
  }

  .line-register-shell::after {
    inset: 0;
    border-right: 0;
  }

  .line-register-brand,
  .line-register-form-wrap {
    min-height: auto;
  }

  .line-register-brand {
    padding: 76px 22px 28px;
  }

  .line-register-brand .lux-brand-card {
    width: 100%;
    margin-left: 0;
  }

  .line-register-brand .lux-brand-monogram {
    font-size: 70px;
  }

  .line-register-brand .lux-brand-card h1 {
    font-size: 28px;
  }

  .line-register-brand .lux-brand-tags {
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 24px;
  }

  .line-register-form-wrap {
    padding: 0 18px 28px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.82));
    border-left: 0;
  }

  .line-register-card.register-panel {
    width: 100%;
    padding: 20px;
  }

  .line-register-card .register-grid {
    grid-template-columns: 1fr;
  }

  .line-register-card .register-panel-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .line-register-card .login-btn {
    width: 100%;
  }

  .lux-login-shell {
    grid-template-columns: 1fr;
  }

  .lux-login-shell::after {
    inset: 0;
    opacity: 0.23;
  }

  .login-language {
    top: 18px;
    right: 18px;
    font-size: 12px;
  }

  .lux-login-brand {
    min-height: 54svh;
    padding: 74px 22px 20px;
    align-content: end;
  }

  .lux-brand-card {
    width: 100%;
    margin: 0;
  }

  .lux-brand-en {
    margin-top: 28px;
  }

  .lux-brand-tags {
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 30px;
  }

  .lux-copy {
    display: none;
  }

  .lux-login-action {
    min-height: 46svh;
    padding: 24px 22px 44px;
    border-left: 0;
  }

  .lux-line-login {
    width: min(238px, 70vw);
    height: min(238px, 70vw);
  }

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

.page-title-strip {
  position: relative;
  width: calc(100% + 28px);
  min-height: 74px;
  margin: -14px -14px 0;
  padding: 14px 14px 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-title-strip > * {
  position: relative;
  z-index: 1;
}

.page-title-strip p {
  width: fit-content;
  margin: 0 0 5px;
  color: #ffc66f;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-title-strip h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 7.1vw, 29px);
  line-height: 1.08;
  text-shadow: 0 7px 18px rgba(7, 18, 37, 0.48);
}

body:not(.desktop-page) .page-title-strip > span,
body:not(.desktop-page) .page-title-strip > div > span,
body:not(.desktop-page) .command-clock {
  display: none;
}

.page[data-panel="command"] .page-title-strip {
  margin-bottom: 0;
}

.metric-grid,
.status-summary,
.role-grid,
.info-grid,
.field-grid,
.choice-grid,
.sold-filter-grid,
.vehicle-list,
.sold-list,
.data-list,
.notice-list,
.person-list,
.permission-list,
.sale-sheet-grid {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 10px;
}

.metric-grid,
.status-summary,
.role-grid,
.info-grid,
.field-grid.two,
.choice-grid,
.sold-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.sale-agency-fee-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.status-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

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

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

.view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

.metric-card,
.content-card,
.toolbar-card,
.filter-card,
.sold-filter-grid,
.vehicle-card,
.sold-card,
.notice-card,
.profile-card,
.person-list article,
.form-section,
.report-section,
.record-list,
.article-box {
  border: 1px solid rgba(196, 208, 223, 0.78);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(245, 237, 225, 0.94)),
    #f8f0e4;
  box-shadow: var(--shadow);
}

.metric-card {
  min-width: 0;
  min-height: 92px;
  display: grid;
  align-content: start;
  gap: 5px;
  overflow: hidden;
  padding: 12px;
}

.sold-metrics,
.compact-metrics,
.page[data-panel="ranking"] .metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 6px;
}

.sold-metrics .metric-card,
.compact-metrics .metric-card,
.page[data-panel="ranking"] .metric-card {
  min-height: 70px;
  padding: 8px 7px;
  border-radius: 14px;
}

.sold-metrics .metric-card span,
.compact-metrics .metric-card span,
.page[data-panel="ranking"] .metric-card span {
  font-size: 12px;
  line-height: 1.25;
}

.sold-metrics .metric-card strong,
.compact-metrics .metric-card strong,
.page[data-panel="ranking"] .metric-card strong {
  margin: 4px 0 2px;
  font-size: clamp(15px, 4.2vw, 17px);
  line-height: 1.05;
}

.sold-metrics .metric-card small,
.compact-metrics .metric-card small,
.page[data-panel="ranking"] .metric-card small {
  font-size: 10px;
  line-height: 1.2;
}

.content-card,
.filter-card,
.toolbar-card,
.sold-filter-grid,
.profile-card {
  margin-top: 12px;
  padding: 14px;
}

.filter-card,
.toolbar-card {
  border-color: rgba(205, 190, 170, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(245, 235, 219, 0.92)),
    #f8f0e4;
  box-shadow:
    0 14px 26px rgba(72, 50, 24, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: none;
}

.sold-filter-grid {
  position: relative;
  width: min(100%, 402px);
  overflow: hidden;
  gap: 10px;
  padding: 12px;
  border-color: rgba(216, 163, 64, 0.34);
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 28px rgba(154, 101, 23, 0.1);
}

.sold-filter-grid::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(242, 199, 110, 0.22);
  border-radius: 13px;
  pointer-events: none;
}

.metric-card span,
.metric-card small,
.sold-card p,
.mobile-field span,
.helper-text,
.notice-card p,
.person-list small,
.profile-card p,
.info-grid span,
.status-summary span,
.role-grid span,
.permission-list span,
.record-list span,
.history-box span {
  color: var(--muted);
}

.metric-card span {
  display: block;
  min-width: 0;
  margin: -4px -4px 0;
  padding: 4px 6px 5px;
  overflow: hidden;
  border-bottom: 1px solid rgba(216, 163, 64, 0.28);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 248, 233, 0.96), rgba(243, 224, 184, 0.72));
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-field span {
  color: #374151;
  font-weight: 800;
}

.mobile-field span[data-required]::after,
.add-photo-card span[data-required]::after {
  content: " *";
  color: #ef4444;
  font-weight: 950;
}

.field-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.field-with-unit em {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.metric-card strong {
  display: block;
  min-width: 0;
  margin: 0;
  padding-bottom: 5px;
  overflow: hidden;
  border-bottom: 1px solid rgba(196, 208, 223, 0.7);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card strong:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.metric-card small {
  display: block;
  min-width: 0;
  margin: 0;
  padding-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card.danger strong,
.danger-text {
  color: #b42318;
}

.vehicle-info p,
.vehicle-info small {
  color: #071225;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.vehicle-info p {
  margin: 6px 0 0;
}

.vehicle-info small {
  display: block;
  margin-top: 8px;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -14px -14px 10px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(216, 163, 64, 0.2);
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    radial-gradient(circle at 100% 50%, rgba(177, 125, 28, 0.22), transparent 36%),
    linear-gradient(135deg, #071229 0%, #10203e 64%, #263447 100%);
}

.tone-gold .card-title {
  background:
    radial-gradient(circle at 100% 50%, rgba(216, 163, 64, 0.22), transparent 36%),
    linear-gradient(135deg, #2a1d05 0%, #70480d 58%, #9a6517 100%);
}

.tone-danger .card-title {
  background:
    radial-gradient(circle at 100% 50%, rgba(190, 75, 55, 0.2), transparent 36%),
    linear-gradient(135deg, #24050c 0%, #5f1717 58%, #8a3212 100%);
}

.tone-success .card-title {
  background:
    radial-gradient(circle at 100% 50%, rgba(80, 145, 72, 0.2), transparent 36%),
    linear-gradient(135deg, #04251f 0%, #0f4f2b 58%, #2f5f16 100%);
}

.tone-violet .card-title {
  background:
    radial-gradient(circle at 100% 50%, rgba(116, 83, 170, 0.2), transparent 36%),
    linear-gradient(135deg, #130526 0%, #351467 58%, #172a62 100%);
}

.tone-blue .card-title {
  background:
    radial-gradient(circle at 100% 50%, rgba(65, 110, 178, 0.2), transparent 36%),
    linear-gradient(135deg, #051225 0%, #153b8a 58%, #0c504d 100%);
}

.tone-teal .card-title {
  background:
    radial-gradient(circle at 100% 50%, rgba(63, 150, 132, 0.2), transparent 36%),
    linear-gradient(135deg, #032523 0%, #0b554f 58%, #104a5c 100%);
}

.card-title h2,
.notice-card h2,
.vehicle-title-row h2,
.sold-card h2 {
  margin: 0;
  line-height: 1.15;
}

.card-title h2 {
  color: #fff;
  font-size: 15px;
}

.card-title > span {
  color: rgba(255, 247, 221, 0.82);
  font-size: 11px;
  font-weight: 800;
}

.notice-card h2,
.vehicle-title-row h2,
.sold-card h2 {
  font-size: 21px;
}

.card-title button,
.notice-card button,
.profile-card button,
.person-list button {
  border: 1px solid rgba(154, 101, 23, 0.56);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4d6 0%, #e2b452 100%);
  color: #5d3c0b;
  font-weight: 900;
  box-shadow:
    0 8px 18px rgba(68, 43, 8, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.card-title button {
  height: 24px;
  padding: 0 9px;
  font-size: 11px;
  white-space: nowrap;
}


.notice-card button,
.profile-card button,
.person-list button {
  height: 32px;
}

.data-list,
.notice-list,
.person-list,
.permission-list,
.vehicle-list,
.sold-list {
  margin-top: 12px;
}

.data-list article,
.status-summary b,
.role-grid b,
.info-grid div,
.sold-grid span,
.permission-list article,
.photo-grid article,
.sub-photo-box,
.upload-box,
.account-box,
.history-box,
.record-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.data-list article,
.status-summary b,
.role-grid b,
.info-grid div,
.sold-grid span,
.permission-list article {
  min-width: 0;
  padding: 10px;
}

.status-summary span,
.role-grid span,
.info-grid span {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.toolbar-card {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
}

.toolbar-card.inventory-mobile-search-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inventory-mobile-search-card input,
.inventory-mobile-search-card button {
  grid-column: 1 / -1;
}

.toolbar-card input,
.toolbar-card select,
.toolbar-card button,
.sold-filter-grid select,
.mobile-field input,
.mobile-field select,
.mobile-field textarea,
.upload-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--field);
  color: var(--ink);
}

.toolbar-card input,
.toolbar-card select,
.sold-filter-grid select,
.mobile-field input,
.mobile-field select {
  height: 44px;
  padding: 0 12px;
}

.toolbar-card input,
.toolbar-card select {
  border-color: rgba(196, 177, 153, 0.72);
  background: #fffaf2;
  color: #071225;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 16px rgba(72, 50, 24, 0.06);
}

.toolbar-card select {
  cursor: pointer;
}

.sold-filter-grid select {
  position: relative;
  z-index: 1;
  border-color: #bed0e6;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 242, 0.96)),
    var(--field);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(7, 18, 41, 0.05);
}

.sold-filter-grid select:focus {
  outline: none;
  border-color: rgba(216, 163, 64, 0.78);
  box-shadow:
    0 0 0 3px rgba(216, 163, 64, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.toolbar-card input::placeholder,
.mobile-field input::placeholder,
.mobile-field textarea::placeholder {
  color: #98a2b3;
}

.buyer-name-menu {
  position: fixed;
  z-index: 10050;
  display: grid;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(144, 166, 194, 0.92);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(7, 18, 41, 0.18);
}

.buyer-name-menu button {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #071225;
  font-weight: 850;
  text-align: left;
}

.buyer-name-menu button:hover,
.buyer-name-menu button:focus {
  outline: none;
  background: #eef5ff;
}

.buyer-name-menu-empty {
  padding: 10px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

input[type="file"] {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 4px 8px 4px 4px;
  overflow: hidden;
  border: 1px solid rgba(196, 208, 223, 0.95);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(251, 252, 254, 0.98), rgba(239, 242, 246, 0.96)),
    var(--field);
  color: #526784;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  height: 28px;
  margin: 0 8px 0 0;
  padding: 0 12px;
  border: 1px solid rgba(174, 183, 197, 0.62);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(251, 252, 254, 0.98), rgba(236, 240, 245, 0.96)),
    #f7f8fa;
  color: #071229;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(7, 18, 41, 0.08);
}

input[type="file"]:focus {
  outline: none;
  border-color: rgba(115, 127, 143, 0.78);
  box-shadow:
    0 0 0 3px rgba(174, 183, 197, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.toolbar-card button,
.full-action,
.outline-action {
  height: 44px;
  border: 1px solid rgba(159, 99, 24, 0.44);
  border-radius: 14px;
  background: linear-gradient(135deg, #f4c86b 0%, #d28b26 52%, #8e5516 100%);
  color: #071225;
  font-weight: 900;
  box-shadow:
    0 12px 22px rgba(117, 72, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.backoffice-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.backoffice-toolbar button {
  width: auto;
  min-width: 136px;
  padding: 0 18px;
}

@media (max-width: 720px) {
  .backoffice-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .backoffice-toolbar button {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;
  }
}

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

.backoffice-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.backoffice-form-actions button,
.backoffice-card [data-account-list] button {
  width: auto;
  min-width: 96px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(159, 99, 24, 0.44);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(250, 242, 229, 0.94));
  color: #071225;
  font-weight: 900;
}

.deposit-detail-preview {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(196, 208, 223, 0.95);
  border-radius: 12px;
  background: rgba(248, 250, 253, 0.92);
  color: #526784;
  font-size: 13px;
  font-weight: 800;
}

.deposit-detail-preview strong {
  color: #071225;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.deposit-detail-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid rgba(196, 208, 223, 0.9);
  border-radius: 10px;
  background: #fff;
}

.deposit-ledger {
  display: grid;
  gap: 12px;
}

.deposit-ledger-current,
.deposit-ledger-history {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #c7d8ef;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.deposit-ledger-current > header,
.deposit-ledger-history > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(198, 211, 228, 0.82);
}

.deposit-ledger-current h4,
.deposit-ledger-history h4 {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: #071225;
  font-size: 16px;
  font-weight: 950;
}

.deposit-ledger-current h4::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 18px;
  border-radius: 999px;
  background: #1f5f9f;
  box-shadow: none;
  content: "";
  transform: translateY(-50%);
}

.deposit-ledger-current header span,
.deposit-ledger-history header span {
  color: #49617d;
  font-size: 13px;
  font-weight: 900;
}

.deposit-ledger-history {
  background: rgba(255, 255, 255, 0.68);
}

.deposit-history-list {
  display: grid;
  max-height: 184px;
  gap: 10px;
  overflow-y: auto;
  padding-right: 6px;
}

.deposit-record-row {
  display: grid;
  grid-template-columns: 34px minmax(160px, 1.1fr) minmax(98px, 0.7fr) minmax(130px, 0.85fr) minmax(130px, 0.85fr) auto;
  gap: 8px;
  align-items: stretch;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.deposit-record-index,
.deposit-record-field {
  min-height: 48px;
  border: 1px solid rgba(186, 204, 226, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.deposit-record-index {
  display: grid;
  place-items: center;
  color: #17365f;
  font-size: 14px;
  font-weight: 950;
}

.deposit-record-field {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 6px 12px;
}

.deposit-record-field small {
  color: #6b7e95;
  font-size: 11px;
  font-weight: 900;
}

.deposit-record-field strong {
  color: #071225;
  font-size: 14px;
  font-weight: 950;
}

.deposit-record-field.person strong {
  font-size: 15px;
}

.deposit-record-cancel {
  min-width: 70px;
  min-height: 48px;
  border: 1px solid rgba(245, 91, 91, 0.55);
  border-radius: 999px;
  background: #fff;
  color: #e33a3a;
  font-weight: 950;
}

.deposit-record-row.empty {
  grid-template-columns: 1fr;
}

.deposit-record-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 13px 16px;
  border: 1px solid #c7d8ef;
  border-radius: 10px;
  background: #fff;
}

.deposit-record-card b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #0d4488;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.deposit-record-card > div {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.deposit-record-card strong,
.deposit-record-pills em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #102033;
  font-weight: 950;
}

.deposit-record-card strong {
  justify-content: flex-start;
  min-width: 0;
  overflow: hidden;
  color: #102033;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deposit-record-pills {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
}

.deposit-record-pills em {
  min-height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #eaf3ff;
  color: #102033;
  font-size: 12px;
  font-style: normal;
}

.deposit-record-account,
.deposit-record-content {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #40546f;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deposit-record-content {
  color: #63758f;
}

.deposit-record-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.deposit-record-actions button {
  width: 78px;
  min-width: 78px;
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.deposit-record-detail-toggle {
  border: 1px solid #7fb0e4;
  background: #fff;
  color: #1f5f9f;
}

.deposit-record-detail-toggle:disabled {
  border-color: #d8e2ef;
  background: #f7f9fc;
  color: #8a9ab0;
  cursor: not-allowed;
  opacity: 1;
}

.deposit-record-cancel {
  border: 1px solid #ff8b8b;
  background: #fff;
  color: #e33a3a;
}

.deposit-record-detail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(190, 209, 232, 0.9);
  border-radius: 10px;
  background: #f8fbff;
}

.deposit-record-detail[hidden] {
  display: none !important;
}

.deposit-record-detail > div,
.deposit-detail-attachment {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(198, 211, 228, 0.9);
  border-radius: 8px;
  background: #fff;
}

.deposit-record-detail span {
  color: #637890;
  font-size: 12px;
  font-weight: 900;
}

.deposit-record-detail strong,
.deposit-record-detail a {
  color: #102033;
  font-size: 14px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.deposit-detail-attachment,
.deposit-detail-empty {
  grid-column: 1 / -1;
}

.deposit-detail-attachment img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border: 1px solid rgba(196, 208, 223, 0.9);
  border-radius: 8px;
  background: #fff;
}

.deposit-detail-empty {
  color: #637890;
  font-size: 13px;
  font-weight: 900;
}

.deposit-record-card.empty {
  grid-template-columns: minmax(0, 1fr);
}

.deposit-record-card.empty strong {
  justify-content: flex-start;
}

.deposit-detail-viewer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 15, 27, 0.58);
}

.deposit-detail-viewer-card {
  display: grid;
  width: min(720px, 100%);
  max-height: min(86vh, 720px);
  overflow: hidden;
  border: 1px solid rgba(190, 209, 232, 0.92);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(7, 18, 37, 0.28);
}

.deposit-detail-viewer-card header,
.deposit-detail-viewer-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(198, 211, 228, 0.82);
}

.deposit-detail-viewer-card footer {
  border-top: 1px solid rgba(198, 211, 228, 0.82);
  border-bottom: 0;
  justify-content: flex-end;
}

.deposit-detail-viewer-card h2 {
  margin: 0;
  color: #071225;
  font-size: 17px;
  font-weight: 950;
}

.deposit-detail-viewer-card button {
  width: 34px;
  height: 34px;
  border: 1px solid #c9d8ea;
  border-radius: 50%;
  background: #fff;
  color: #0f2747;
  font-size: 24px;
  line-height: 1;
}

.deposit-detail-viewer-body {
  display: grid;
  min-height: 180px;
  max-height: calc(86vh - 116px);
  overflow: auto;
  place-items: center;
  padding: 14px;
  background: #f7fbff;
}

.deposit-detail-viewer-body img {
  display: block;
  max-width: 100%;
  max-height: calc(86vh - 152px);
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.deposit-detail-viewer a {
  color: #1f5f9f;
  font-weight: 950;
}

.full-action {
  width: 100%;
  margin-top: 12px;
  border-radius: 15px;
}

.card-actions button,
.choice-grid button,
.outline-action,
.account-box button,
.history-box button,
.modal-actions button,
.manage-tabs button {
  min-width: 0;
  border-radius: 999px;
  font-weight: 900;
}

.card-actions button,
.choice-grid button,
.manage-tabs button {
  height: 38px;
}

.status-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  height: 34px;
  padding: 0 4px;
  border: 1px solid rgba(196, 174, 141, 0.58);
  border-radius: 0;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f6eee1 100%),
    #fffaf2;
  color: #18243a;
  font-size: 11px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 5px 12px rgba(75, 50, 22, 0.06);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.status-tabs button::after {
  position: absolute;
  top: 5px;
  right: -2px;
  width: 18px;
  height: 1px;
  background: rgba(196, 174, 141, 0.78);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
  transform-origin: center;
}

.status-tabs button.active {
  border-color: rgba(151, 99, 27, 0.82);
  background:
    linear-gradient(180deg, #f8d98a 0%, #d7a13b 56%, #b77a1d 100%),
    #d8a340;
  color: #071225;
  box-shadow:
    0 9px 16px rgba(117, 72, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -3px 0 rgba(93, 58, 16, 0.5);
}

.status-tabs button.active::after {
  background: rgba(151, 99, 27, 0.9);
}

.status-tabs button::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8c6a2c;
}

.status-tabs .all::before {
  background: #2f64d8;
}

.status-tabs .stock::before {
  background: #15946a;
}

.status-tabs .delivery::before {
  background: #7c4de8;
}

.status-tabs .repair::before {
  background: #64748b;
}

.status-tabs .deposit::before {
  background: #b77216;
}

.view-tabs button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(196, 174, 141, 0.58);
  border-radius: 999px;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f6eee1 100%),
    #fffaf2;
  color: #18243a;
  font-size: 14px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 6px 12px rgba(75, 50, 22, 0.06);
}

.view-tabs button.active {
  border-color: rgba(151, 99, 27, 0.82);
  background:
    linear-gradient(180deg, #f8d98a 0%, #d7a13b 56%, #b77a1d 100%),
    #d8a340;
  color: #071229;
  box-shadow:
    0 9px 16px rgba(117, 72, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -3px 0 rgba(93, 58, 16, 0.5);
}


.sold-card,
.notice-card,
.person-list article {
  padding: 14px;
}

.rank-list b,
.history-box b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #071229, #142a52);
  color: #fff7dd;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: start stretch;
  overflow: auto;
  background: rgba(7, 18, 41, 0.68);
  backdrop-filter: blur(8px);
}

.modal-layer[hidden] {
  display: none;
}

.mobile-modal {
  display: none;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 163, 64, 0.16), transparent 28%),
    linear-gradient(180deg, #fffaf2 0%, var(--surface) 42%, #ebe3d8 100%);
  box-shadow: none;
}

.mobile-modal.active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  align-items: start;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(242, 199, 110, 0.24);
  background:
    radial-gradient(circle at calc(100% - 44px) 34px, rgba(242, 199, 110, 0.28), transparent 30%),
    radial-gradient(circle at 18% 12%, rgba(47, 100, 216, 0.18), transparent 34%),
    linear-gradient(135deg, #071229 0%, #10244a 58%, #071229 100%);
}

.modal-header p {
  margin: 0 0 4px;
  color: #f2c76e;
  font-size: 12px;
  font-weight: 900;
}

.modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.12;
}

.modal-header span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 247, 221, 0.74);
}

.modal-close {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(242, 199, 110, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #071225;
  font-size: 0;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(7, 18, 41, 0.24);
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  content: "";
}

.modal-close::before {
  width: 16px;
  height: 16px;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: translateX(3px) rotate(45deg);
}

.modal-close::after {
  width: 20px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(3px);
}

.modal-body {
  min-height: 0;
  padding: 14px;
  overflow: auto;
}

.mobile-modal[data-modal="vehicle-sell"] .modal-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.modal-actions button {
  min-width: 86px;
  height: 38px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
}

.modal-actions .primary,
.modal-actions .confirm {
  order: 1;
  border-color: rgba(242, 199, 110, 0.72);
  background: linear-gradient(135deg, #f2c76e 0%, #d8a340 44%, #9a6517 100%);
  color: #071225;
}

.modal-actions button:not(.primary):not(.confirm) {
  order: 2;
}

.modal-actions button.footer-sale-report-mode {
  order: 0 !important;
  min-width: 118px;
  margin-right: 0;
  border-color: #d59a25;
  background: #fff8e6;
  color: #071229;
  font-weight: 950;
}

.modal-actions button.footer-sale-report-mode.active,
.modal-actions button.footer-sale-report-mode.user-active {
  border-color: #d59a25;
  background: #f2c76e;
  color: #071229;
}

.modal-actions .dark {
  border-color: var(--dark);
  background: linear-gradient(135deg, var(--dark), var(--dark-soft));
  color: #fff7dd;
}

.modal-actions .sold-recalculate {
  border-color: #f0b84f;
  background: #fff8e8;
  color: #7a4a00;
  font-weight: 950;
}

.modal-actions .sold-recalculate.dirty {
  border-color: #dc2626;
  background: linear-gradient(135deg, #fee2e2 0%, #ef4444 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.24);
}

.action-dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 18, 41, 0.36);
  backdrop-filter: blur(4px);
}

.action-dialog[hidden] {
  display: none;
}

.action-dialog-card {
  width: min(470px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(184, 177, 166, 0.8);
  border-radius: 7px;
  background: #f0ebe3;
  box-shadow: 0 22px 60px rgba(7, 18, 41, 0.26);
}

.action-dialog-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid rgba(196, 184, 170, 0.86);
  background: linear-gradient(180deg, #f5f0e8 0%, #e9e3da 100%);
}

.action-dialog-header h2 {
  margin: 0;
  color: #071225;
  font-size: 18px;
  font-weight: 900;
}

.action-dialog-close {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(75, 125, 188, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #526784;
  font-size: 0;
  box-shadow:
    0 0 0 2px rgba(64, 142, 230, 0.18),
    0 8px 18px rgba(20, 42, 82, 0.16);
}

.action-dialog-close::before,
.action-dialog-close::after {
  position: absolute;
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.action-dialog-close::before {
  transform: rotate(45deg);
}

.action-dialog-close::after {
  transform: rotate(-45deg);
}

.action-dialog-body {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid rgba(196, 184, 170, 0.86);
}

.action-dialog.agency-manual-compact-dialog .action-dialog-card {
  width: min(760px, calc(100vw - 32px));
}

.action-dialog.agency-manual-compact-dialog .action-dialog-header {
  min-height: 52px;
  padding-left: 18px;
}

.action-dialog.agency-manual-compact-dialog .action-dialog-header h2 {
  font-size: 17px;
}

.action-dialog.agency-manual-compact-dialog .action-dialog-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  max-height: min(68vh, 520px);
  overflow: auto;
  padding: 14px 18px;
}

.action-field {
  display: grid;
  gap: 10px;
}

.action-dialog.agency-manual-compact-dialog .action-field {
  gap: 5px;
}

.action-dialog.agency-manual-compact-dialog .action-field-wide {
  grid-column: 1 / -1;
}

.action-field[hidden] {
  display: none !important;
}

.action-field span {
  color: #071225;
  font-size: 13px;
  font-weight: 900;
}

.action-field.confirm-only span {
  display: block;
  padding: 2px 0;
  font-size: 15px;
  line-height: 1.6;
}

.action-info-field {
  gap: 6px;
}

.action-info-text {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(216, 163, 64, 0.34);
  border-radius: 8px;
  background: #fff8e8;
  color: #7a4b08;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.action-field.action-check-field {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.action-field.action-check-field span {
  margin: 0;
}

.action-field.action-check-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 5px;
  accent-color: #12213a;
}

.action-field input,
.action-field select,
.action-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid #e35b45;
  border-radius: 999px;
  background: #fffdf8;
  color: #071225;
  font-size: 15px;
  font-weight: 850;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 4px 14px rgba(227, 91, 69, 0.12);
}

.action-dialog.agency-manual-compact-dialog .action-field input,
.action-dialog.agency-manual-compact-dialog .action-field select,
.action-dialog.agency-manual-compact-dialog .action-field textarea {
  min-height: 36px;
  padding: 0 12px;
  border-color: rgba(203, 213, 225, 0.95);
  border-radius: 8px;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.action-dialog.agency-manual-compact-dialog .action-dialog-actions {
  padding: 12px 18px;
}

@media (max-width: 640px) {
  .action-dialog.agency-manual-compact-dialog .action-dialog-card {
    width: min(420px, calc(100vw - 32px));
  }

  .action-dialog.agency-manual-compact-dialog .action-dialog-body {
    grid-template-columns: 1fr;
  }
}

.action-field select {
  appearance: none;
}

.action-field input:focus,
.action-field select:focus,
.action-field textarea:focus {
  outline: none;
  border-color: #d9482f;
  box-shadow:
    0 0 0 3px rgba(217, 72, 47, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.action-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  background: #e8e2d8;
}

.action-dialog-actions button {
  min-width: 92px;
  height: 40px;
  padding: 0 22px;
  border: 1px solid rgba(196, 184, 170, 0.95);
  border-radius: 999px;
  background: #f7f2ea;
  color: #1b2b45;
  font-size: 14px;
  font-weight: 850;
}

.action-dialog-actions button:last-child {
  border-color: #e35b45;
  background: #fffaf4;
  color: #071225;
}

.action-dialog-actions [data-action-confirm] {
  order: 1;
}

.action-dialog-actions [data-action-cancel] {
  order: 2;
}

.form-section {
  margin-bottom: 12px;
  padding: 14px;
}

.form-section h3,
.report-section h3,
.record-list h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.form-section h3 span {
  color: #d9482f;
}

.repair-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 0 0 14px;
}

.repair-entry-header h3 {
  margin: 0;
}

.repair-entry-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.repair-entry-actions > .outline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 34px;
  height: 34px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d69a2d;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4c86b 0%, #d28b26 52%, #8e5516 100%);
  color: #071225;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.repair-accounting-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 32px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #26364f;
  font-size: 13px;
  font-weight: 900;
}

.repair-accounting-toggle[hidden] {
  display: none !important;
}

.repair-accounting-toggle input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #0f766e;
}

.repair-accounting-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  vertical-align: middle;
}

.company-fuel-records {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.45);
}

.company-fuel-records > h4 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.company-fuel-total-row {
  background: #fff7ed;
}

.repair-fuel-note-field[hidden] {
  display: none !important;
}

.repair-fuel-locked {
  border-color: #d7c5a8;
  background: #f7f1e8;
  color: #5d6675;
  cursor: not-allowed;
}

.choice-grid button {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(196, 174, 141, 0.64);
  border-radius: 999px;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f6eee1 100%),
    #fffaf2;
  color: #18243a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 6px 12px rgba(75, 50, 22, 0.06);
}

.choice-grid button.selected {
  border-color: rgba(151, 99, 27, 0.82);
  background:
    linear-gradient(180deg, #f8d98a 0%, #d7a13b 56%, #b77a1d 100%),
    #d8a340;
  color: #071225;
  box-shadow:
    0 9px 16px rgba(117, 72, 18, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -3px 0 rgba(93, 58, 16, 0.42);
}

.choice-grid button.green.selected {
  border-color: rgba(32, 140, 91, 0.78);
  background:
    linear-gradient(180deg, #dff7eb 0%, #9fe2bf 58%, #2fa66d 100%),
    #bfeccb;
  color: #063f2a;
  box-shadow:
    0 9px 16px rgba(21, 148, 106, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -3px 0 rgba(12, 93, 60, 0.28);
}

.manage-panel[data-manage-panel="repair"] .choice-grid {
  grid-template-columns: repeat(2, minmax(0, 128px));
  justify-content: center;
  gap: 8px;
}

.manage-panel[data-manage-panel="repair"] .choice-grid button {
  justify-self: stretch;
  height: 32px;
  padding: 0 10px;
  border-color: #4b5563;
  font-size: 13px;
}

.manage-panel[data-manage-panel="repair"] > .outline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 138px;
  height: 34px;
  margin: 22px 0 0;
  padding: 0 14px;
  font-size: 13px;
}

.mobile-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.mobile-field textarea {
  min-height: 82px;
  padding: 10px 12px;
  resize: vertical;
}

.mobile-field.wide {
  grid-column: 1 / -1;
}

.hidden,
.manage-panel {
  display: none;
}

.manage-panel.active {
  display: block;
}

.mobile-modal[data-modal="vehicle-manage"] [data-manage-panel]:not(.active) {
  display: none !important;
}

.mobile-modal[data-modal="vehicle-manage"] [data-manage-panel].active {
  display: block !important;
}

.manage-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(7, 18, 41, 0.08);
}

.manage-tabs button {
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: #f8fbff;
  color: #071225;
}

.manage-tabs button.active {
  border-color: #102750;
  background: #f8fbff;
  color: #071225;
  box-shadow:
    inset 0 0 0 1px rgba(16, 39, 80, 0.18),
    0 8px 16px rgba(7, 18, 41, 0.08);
}

.manage-info-panel,
.manage-info-stack,
.manage-info-block {
  display: grid;
  gap: 12px;
}

.manage-choice-grid,
.manage-brand-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.manage-info-block {
  margin-bottom: 0;
}

.manage-info-block .manage-brand-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manage-choice-grid button,
.manage-brand-actions button {
  display: inline-flex;
  min-width: 0;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(196, 174, 141, 0.64);
  border-radius: 999px;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f6eee1 100%),
    #fffaf2;
  color: #18243a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 6px 12px rgba(75, 50, 22, 0.06);
}

.manage-choice-grid button.selected.user-selected {
  border-color: rgba(151, 99, 27, 0.82);
  background:
    linear-gradient(180deg, #f8d98a 0%, #d7a13b 56%, #b77a1d 100%),
    #d8a340;
  color: #071225;
  box-shadow:
    0 8px 16px rgba(117, 72, 18, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -3px 0 rgba(93, 58, 16, 0.38);
}

.manage-brand-grid,
.manage-vehicle-fields {
  display: grid;
  gap: 10px;
}

.mobile-modal.vehicle-manage-guest [data-manage-panel="info"] .mobile-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 12px;
  background-image: none !important;
  color: var(--ink);
  opacity: 1;
  pointer-events: none;
}

.mobile-modal.vehicle-manage-guest [data-manage-panel="info"] .mobile-field select::-ms-expand {
  display: none;
}

.manage-search-field {
  margin-top: 0;
}

.current-status {
  margin: 0 0 14px;
  font-size: 16px;
}

.current-status strong {
  display: inline-flex;
  margin-left: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff8e9;
  color: var(--nav-dark);
}

.photo-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.photo-section-head h3 {
  margin: 0;
}

.photo-section-head button {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(216, 163, 64, 0.54);
  border-radius: 999px;
  background: #fff8e9;
  color: var(--nav-dark);
  font-size: 13px;
  font-weight: 900;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.photo-grid article,
.sub-photo-box,
.upload-box,
.account-box,
.history-box,
.record-table {
  padding: 10px;
}

.photo-grid article {
  position: relative;
  display: grid;
  grid-template-rows: 32px minmax(188px, 1fr);
  align-items: stretch;
}

.sub-photo-box {
  width: 100%;
  box-sizing: border-box;
}

.photo-grid h4,
.sub-photo-box h4,
.upload-box h4,
.account-box h4,
.history-box h4,
.record-table h4 {
  margin: 0 0 8px;
}

.repair-record-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.repair-record-filter button {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid #c8d6e6;
  border-radius: 999px;
  background: #fff;
  color: #12233f;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.repair-record-filter button.active {
  border-color: #10203a;
  background: #10203a;
  color: #fff;
}

.photo-grid h4,
.sub-photo-box header,
.history-box header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
}

.photo-grid h4 {
  padding-right: 0;
}

.sub-photo-box header span {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 94px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 7px;
  border: 2px solid #c7932c;
  border-radius: 999px;
  color: #9a6517;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.sub-photo-box header button {
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 1px solid rgba(216, 163, 64, 0.48);
  border-radius: 999px;
  background: #fff8e9;
  color: var(--nav-dark);
  font-size: 12px;
  line-height: 1;
}

.photo-empty,
.sub-photo-empty {
  display: grid;
  min-height: 188px;
  gap: 6px;
  box-sizing: border-box;
  padding: 6px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #f3f6fa;
  color: var(--muted);
}

.photo-preview-frame {
  display: grid;
  width: 100%;
  gap: 8px;
}

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

.photo-preview-frame .photo-delete-action {
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #ff8a8a;
  border-radius: 999px;
  background: #fff5f5;
  color: #ef4444;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.sub-photo-empty .photo-preview-frame {
  width: 100%;
  max-width: 100%;
}

.sub-photo-empty .photo-preview-frame img {
  background: #f8fafc;
  object-fit: cover;
}

.sub-photo-box .sub-photo-empty:has(.photo-preview-frame) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  justify-content: start;
  justify-items: stretch;
  place-items: stretch;
}

.sub-photo-box,
.upload-box,
.account-box,
.history-box,
.record-table {
  margin-top: 10px;
}

.upload-row {
  display: grid;
  grid-template-columns: 58px 1fr 62px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.upload-row:first-of-type {
  border-top: 0;
}

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

.add-photo-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.add-photo-card span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.add-photo-card input {
  width: 100%;
  min-width: 0;
}

.add-photo-card b {
  position: relative;
  display: grid;
  min-height: 124px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #f3f6fa;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.add-photo-card b img {
  width: 100%;
  height: 100%;
  min-height: 124px;
  object-fit: cover;
}

.add-photo-card b em {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(7, 18, 37, 0.74);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.certificate-link-card input[type="url"] {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.certificate-link-card b {
  align-content: center;
  padding: 24px 12px 12px;
  line-height: 1.55;
}

.upload-row button,
.account-box button {
  height: 34px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: transparent;
  color: var(--nav-dark);
  font-weight: 900;
}

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

.account-box h4 {
  grid-column: 1 / -1;
}

.account-box button {
  min-height: 48px;
  height: auto;
  padding: 9px 8px;
  border-color: var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  line-height: 1.25;
  text-align: center;
}

.account-box button.selected {
  border-color: var(--nav-dark);
  box-shadow: inset 0 0 0 1px var(--nav-dark);
  background: var(--card);
}

.backoffice-master-group {
  align-items: start;
}

.backoffice-master-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.backoffice-master-group-head > div:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.backoffice-master-group-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.backoffice-master-group-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.backoffice-master-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.backoffice-master-actions button {
  width: auto;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(179, 137, 71, 0.5);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe08c 0%, #d69725 100%);
  color: var(--ink);
  font-weight: 950;
}

.backoffice-master-actions button:disabled {
  opacity: 0.45;
}

.backoffice-master-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.backoffice-master-list button {
  width: auto;
  min-height: 34px;
  padding: 7px 10px;
}

.backoffice-master-list small {
  margin-left: 6px;
  color: #c62828;
  font-weight: 900;
}

.backoffice-repair-tree {
  display: grid;
  gap: 10px;
  width: 100%;
}

.backoffice-repair-node {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.backoffice-repair-node.muted {
  background: #f8fafc;
}

.backoffice-repair-node header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.backoffice-repair-node header b {
  color: var(--ink);
  font-size: 16px;
}

.backoffice-repair-node header span {
  margin-right: auto;
  color: var(--muted);
  font-weight: 800;
}

.backoffice-repair-node header button {
  min-height: 30px;
  padding: 5px 9px;
}

.backoffice-repair-node > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.backoffice-repair-node em,
.backoffice-repair-tree > em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.backoffice-repair-browser {
  display: grid;
  gap: 12px;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

.backoffice-repair-vendor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.backoffice-repair-vendor-tabs button {
  display: grid;
  gap: 2px;
  min-width: 132px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.backoffice-repair-vendor-tabs button.selected {
  border-color: rgba(159, 99, 24, 0.62);
  background: linear-gradient(135deg, #fff8ea 0%, #e5aa3d 100%);
  box-shadow: 0 8px 18px rgba(117, 72, 18, 0.14);
}

.backoffice-repair-vendor-tabs b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backoffice-repair-vendor-tabs span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.backoffice-repair-detail-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.backoffice-repair-detail-panel.muted {
  background: #f8fafc;
}

.backoffice-repair-detail-panel header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.backoffice-repair-detail-panel header > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.backoffice-repair-detail-panel header b {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.backoffice-repair-detail-panel header span {
  color: var(--muted);
  font-weight: 850;
}

.backoffice-repair-detail-panel header button {
  width: auto;
  min-height: 34px;
  padding: 7px 12px;
}

.backoffice-repair-detail-items {
  min-height: 46px;
  align-items: center;
}

@media (max-width: 720px) {
  .backoffice-master-group-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .backoffice-master-actions {
    justify-content: stretch;
  }

  .backoffice-master-actions button {
    flex: 1 1 120px;
  }
}

.backoffice-master-dialog {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 18, 41, 0.46);
  backdrop-filter: blur(8px);
}

.backoffice-master-dialog.hidden {
  display: none;
}

.backoffice-master-dialog-card {
  width: min(980px, calc(100vw - 36px));
  max-height: min(86dvh, 640px);
  overflow: auto;
  box-shadow: 0 24px 70px rgba(7, 18, 41, 0.28);
}

.page[data-panel="backoffice"] {
  gap: 12px;
}

.page[data-panel="backoffice"] .page-title-strip {
  margin-bottom: 4px;
}

.page[data-panel="backoffice"] .backoffice-toolbar {
  gap: 8px;
  padding: 10px;
  border-color: rgba(209, 163, 82, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 240, 228, 0.94)),
    #fffaf1;
}

.page[data-panel="backoffice"] .backoffice-toolbar button {
  height: 38px;
  min-width: 0;
  border-radius: 10px;
  font-size: 13px;
}

.page[data-panel="backoffice"] .backoffice-card {
  overflow: hidden;
  padding: 0;
  border-color: rgba(196, 208, 223, 0.92);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 31, 52, 0.08);
}

.page[data-panel="backoffice"] .backoffice-card > .card-title {
  min-height: 46px;
  margin: 0;
  padding: 0 14px;
  border-bottom: 1px solid rgba(218, 226, 235, 0.95);
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(90deg, rgba(255, 243, 220, 0.92), rgba(247, 250, 253, 0.96)),
    #ffffff;
}

.page[data-panel="backoffice"] .backoffice-card > .card-title > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.page[data-panel="backoffice"] .backoffice-card > .card-title h2 {
  color: #071225;
  font-size: 16px;
  font-weight: 950;
}

.page[data-panel="backoffice"] .backoffice-card > .card-title span,
.page[data-panel="backoffice"] .backoffice-card > .card-title > div > span {
  color: #526784;
  font-size: 12px;
  font-weight: 900;
}

.page[data-panel="backoffice"] .backoffice-card > .card-title button {
  min-width: 104px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(179, 137, 71, 0.52);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe08c 0%, #d69725 100%);
  color: #071225;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(117, 72, 18, 0.12);
}

.page[data-panel="backoffice"] .permission-list {
  gap: 10px;
  margin: 0;
  padding: 12px;
}

.page[data-panel="backoffice"] .backoffice-watch-access-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(207, 216, 230, 0.9);
  border-radius: 12px;
  background: #fff;
}

.page[data-panel="backoffice"] .backoffice-watch-access-picker label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.page[data-panel="backoffice"] .backoffice-watch-access-picker label > span {
  color: #526784;
  font-size: 12px;
  font-weight: 900;
}

.page[data-panel="backoffice"] .backoffice-watch-access-picker select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(176, 193, 215, 0.95);
  border-radius: 10px;
  background: #fff;
  color: #071225;
  font-size: 13px;
  font-weight: 850;
}

.page[data-panel="backoffice"] [data-watch-permission-list] {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.page[data-panel="backoffice"] [data-watch-permission-list] .backoffice-watch-access-picker {
  grid-column: 1 / -1;
}

.page[data-panel="backoffice"] .permission-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border-color: rgba(207, 216, 230, 0.9);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.96)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.page[data-panel="backoffice"] .permission-list article > strong {
  min-width: 0;
  overflow: hidden;
  color: #071225;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page[data-panel="backoffice"] .permission-list article > span {
  grid-column: 1;
  min-width: 0;
  overflow: visible;
  color: #526784;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
}

.page[data-panel="backoffice"] .permission-list article > div {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.page[data-panel="backoffice"] .permission-list button,
.page[data-panel="backoffice"] .backoffice-master-list button,
.page[data-panel="backoffice"] .backoffice-repair-detail-panel header button {
  width: auto;
  min-width: 74px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(179, 137, 71, 0.48);
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaf0 0%, #f5ead6 100%);
  color: #071225;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

.page[data-panel="backoffice"] .permission-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf7ef;
  color: #2f8f43;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 520px) {
  .page[data-panel="backoffice"] .backoffice-watch-access-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .page[data-panel="backoffice"] .backoffice-watch-access-picker button {
    width: 100%;
  }
}

.page[data-panel="backoffice"] .permission-list small,
.page[data-panel="backoffice"] .backoffice-master-list small {
  color: #df2935;
  font-size: 12px;
}

.page[data-panel="backoffice"] .backoffice-master-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  min-height: 0;
}

.page[data-panel="backoffice"] .backoffice-master-group > strong {
  color: #071225;
  font-size: 15px;
  font-weight: 950;
}

.page[data-panel="backoffice"] .backoffice-master-group > span {
  margin-top: -6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.page[data-panel="backoffice"] .backoffice-repair-master-panel {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.page[data-panel="backoffice"] .backoffice-repair-master-panel > .backoffice-master-group-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 2px;
  border: 0;
}

.page[data-panel="backoffice"] .backoffice-repair-master-panel > .backoffice-master-group-head > div:first-child {
  display: grid;
  gap: 2px;
}

.page[data-panel="backoffice"] .backoffice-repair-master-panel > .backoffice-master-group-head strong {
  color: #071225;
  font-size: 15px;
  font-weight: 950;
}

.page[data-panel="backoffice"] .backoffice-repair-master-panel > .backoffice-master-group-head span {
  color: #526784;
  font-size: 12px;
  font-weight: 850;
}

.page[data-panel="backoffice"] .backoffice-repair-master-panel .backoffice-master-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.page[data-panel="backoffice"] > [data-backoffice-vehicle-masters] {
  width: 100%;
}

.page[data-panel="backoffice"] .backoffice-vehicle-master-card {
  display: grid;
  gap: 14px;
}

.page[data-panel="backoffice"] .backoffice-vehicle-master-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.page[data-panel="backoffice"] .backoffice-vehicle-brand-panel,
.page[data-panel="backoffice"] .backoffice-vehicle-model-panel {
  width: 100%;
}

.page[data-panel="backoffice"] .backoffice-vehicle-master-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(207, 216, 230, 0.9);
  border-radius: 14px;
  background: #f8fafc;
}

.page[data-panel="backoffice"] .backoffice-vehicle-brand-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.page[data-panel="backoffice"] .backoffice-vehicle-brand-tabs article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px 12px;
  align-items: start;
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(191, 204, 224, 0.95);
  border-radius: 12px;
  background: #ffffff;
}

.page[data-panel="backoffice"] .backoffice-vehicle-brand-tabs article.selected {
  border-color: #d99a22;
  background: #fff8e8;
  box-shadow: 0 8px 18px rgba(217, 154, 34, 0.12);
}

.page[data-panel="backoffice"] .backoffice-vehicle-brand-tab {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #071225;
  text-align: left;
  cursor: pointer;
}

.page[data-panel="backoffice"] .backoffice-vehicle-brand-tab strong,
.page[data-panel="backoffice"] .backoffice-vehicle-brand-tab span {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
}

.page[data-panel="backoffice"] .backoffice-vehicle-brand-tab strong {
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.page[data-panel="backoffice"] .backoffice-vehicle-brand-tab span {
  color: #526784;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.page[data-panel="backoffice"] .backoffice-vehicle-brand-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-self: start;
}

.page[data-panel="backoffice"] .backoffice-vehicle-brand-actions button,
.page[data-panel="backoffice"] .backoffice-vehicle-master-list article > div button {
  min-width: 56px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #d8b16b;
  border-radius: 999px;
  background: #fffaf1;
  color: #071225;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 9px rgba(154, 103, 20, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.page[data-panel="backoffice"] .backoffice-vehicle-brand-actions button:hover,
.page[data-panel="backoffice"] .backoffice-vehicle-master-list article > div button:hover {
  background: #fff3d8;
  border-color: #c88712;
  box-shadow: 0 6px 14px rgba(154, 103, 20, 0.14);
  transform: translateY(-1px);
}

.page[data-panel="backoffice"] .backoffice-vehicle-brand-actions button[data-sql-repair-master-delete-id],
.page[data-panel="backoffice"] .backoffice-vehicle-master-list article > div button[data-sql-repair-master-delete-id] {
  border-color: #ffb6b6;
  background: #fff6f6;
  color: #e11d48;
}

.page[data-panel="backoffice"] .backoffice-vehicle-brand-actions button[data-sql-repair-master-delete-id]:hover,
.page[data-panel="backoffice"] .backoffice-vehicle-master-list article > div button[data-sql-repair-master-delete-id]:hover {
  border-color: #fb7185;
  background: #fff1f2;
}

.page[data-panel="backoffice"] .backoffice-vehicle-master-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.page[data-panel="backoffice"] .backoffice-vehicle-master-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 8px 12px;
  align-items: start;
  min-height: 70px;
  padding: 12px;
}

.page[data-panel="backoffice"] .backoffice-vehicle-master-list article > strong,
.page[data-panel="backoffice"] .backoffice-vehicle-master-list article > span {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

.page[data-panel="backoffice"] .backoffice-vehicle-master-list article > div {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-self: start;
}

@media (max-width: 760px) {
  .page[data-panel="backoffice"] .backoffice-vehicle-master-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.page[data-panel="backoffice"] .backoffice-master-group > .backoffice-master-list:not(.backoffice-repair-tree) {
  padding: 10px;
  border: 1px solid rgba(207, 216, 230, 0.9);
  border-radius: 12px;
  background: #f8fafc;
}

.page[data-panel="backoffice"] .backoffice-repair-browser {
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page[data-panel="backoffice"] .backoffice-repair-vendor-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.page[data-panel="backoffice"] .backoffice-repair-vendor-tabs button {
  width: 100%;
  min-width: 128px;
  border-radius: 12px;
}

.page[data-panel="backoffice"] .backoffice-repair-detail-panel {
  padding: 10px;
  border-color: rgba(207, 216, 230, 0.95);
  background: #ffffff;
}

.page[data-panel="backoffice"] .backoffice-repair-matrix {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.page[data-panel="backoffice"] .backoffice-repair-vendor-bank,
.page[data-panel="backoffice"] .backoffice-repair-matrix-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(207, 216, 230, 0.95);
  border-radius: 12px;
  background: #ffffff;
}

.page[data-panel="backoffice"] .backoffice-repair-vendor-bank {
  background: #fff7e8;
  border-color: rgba(183, 114, 22, 0.26);
}

.page[data-panel="backoffice"] .backoffice-repair-vendor-bank header,
.page[data-panel="backoffice"] .backoffice-repair-matrix-row header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.page[data-panel="backoffice"] .backoffice-repair-matrix-row header > div {
  display: grid;
  gap: 2px;
}

.page[data-panel="backoffice"] .backoffice-repair-vendor-bank strong,
.page[data-panel="backoffice"] .backoffice-repair-matrix-row b {
  color: #071225;
  font-size: 15px;
  font-weight: 950;
}

.page[data-panel="backoffice"] .backoffice-repair-vendor-bank span,
.page[data-panel="backoffice"] .backoffice-repair-matrix-row header span {
  color: #526784;
  font-size: 12px;
  font-weight: 850;
}

.page[data-panel="backoffice"] .backoffice-repair-vendor-bank > div,
.page[data-panel="backoffice"] .backoffice-repair-vendor-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page[data-panel="backoffice"] .backoffice-repair-vendor-bank button,
.page[data-panel="backoffice"] .backoffice-repair-matrix-row header button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(183, 114, 22, 0.34);
  border-radius: 999px;
  background: #fffaf2;
  color: #071225;
  font-size: 12px;
  font-weight: 900;
}

.page[data-panel="backoffice"] .backoffice-repair-vendor-bank button small,
.page[data-panel="backoffice"] .backoffice-repair-matrix-row header button {
  color: #dc2626;
}

.page[data-panel="backoffice"] .backoffice-repair-vendor-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(207, 216, 230, 0.95);
  border-radius: 999px;
  background: #f8fafc;
  color: #1f2a44;
  font-size: 13px;
  font-weight: 900;
}

.page[data-panel="backoffice"] .backoffice-repair-vendor-checks input {
  width: 15px;
  height: 15px;
  accent-color: #b7791f;
}

.page[data-panel="backoffice"] .backoffice-inline-form {
  padding: 14px;
}

.page[data-panel="backoffice"] .backoffice-master-dialog-card {
  padding: 0;
}

.page[data-panel="backoffice"] .backoffice-master-dialog-card .field-grid,
.page[data-panel="backoffice"] .backoffice-master-dialog-card .backoffice-form-actions {
  padding: 14px;
}

.history-box article,
.record-list article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.history-box article div,
.record-list article div {
  display: grid;
  gap: 4px;
}

.history-box .deposit-record-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.history-box .deposit-record-actions {
  justify-self: end;
  align-self: center;
}

.history-box .deposit-record-card.empty {
  grid-template-columns: minmax(0, 1fr);
}

.sql-deposit-records.history-box {
  padding: 12px;
  border-color: #c7d8ef;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
}

.sql-deposit-records.history-box article.deposit-record-card {
  margin-top: 0;
  padding: 10px;
  border-color: #c7d8ef;
  border-radius: 10px;
  background: #fff;
}

.sql-deposit-records .deposit-record-card > div {
  display: grid;
}

.sql-deposit-records .deposit-record-card b {
  display: grid;
}

.sql-deposit-records .deposit-record-pills {
  display: flex;
  gap: 7px;
}

@media (max-width: 720px) {
  .history-box .deposit-record-card,
  .deposit-record-card {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
  }

  .sql-deposit-records .deposit-record-pills {
    flex-wrap: wrap;
  }

  .deposit-record-actions {
    grid-column: 2;
    width: 100%;
    justify-content: flex-start;
  }

  .deposit-record-actions button {
    flex: 0 0 78px;
  }

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

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

  .deposit-record-index {
    display: none;
  }

  .deposit-record-account,
  .deposit-record-content {
    white-space: normal;
  }
}

.table-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.table-row.head {
  color: var(--muted);
  font-weight: 900;
}

.manage-panel[data-manage-panel="repair"] .record-table .table-row {
  grid-template-columns: minmax(110px, 0.85fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(92px, 0.7fr) minmax(142px, 0.95fr);
  align-items: center;
  gap: 0;
  padding: 0;
  border-top: 0;
  border-left: 1px solid #b7c7da;
  border-bottom: 1px solid #b7c7da;
  background: #fff;
}

.manage-panel[data-manage-panel="repair"] .record-table .table-row > * {
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  min-height: 39px;
  padding: 8px 10px;
  border-right: 1px solid #b7c7da;
  box-sizing: border-box;
}

.manage-panel[data-manage-panel="repair"] .record-table .table-row.head {
  border-top: 1px solid #b7c7da;
  background: #dbe8f4;
  color: #071225;
}

.manage-panel[data-manage-panel="repair"] .record-table .table-row.head > span {
  justify-content: center;
  text-align: center;
}

.manage-panel[data-manage-panel="repair"] .record-table .table-row.head > span:nth-child(4) {
  justify-content: center;
  text-align: center;
}

.manage-panel[data-manage-panel="repair"] .record-table .table-row.head > span:nth-child(5) {
  justify-content: flex-end;
  text-align: center;
}

.manage-panel[data-manage-panel="repair"] .record-table .table-row.head > span:nth-child(6) {
  justify-content: center;
  text-align: center;
}

.manage-panel[data-manage-panel="repair"] .record-table .table-row > strong {
  justify-content: flex-end;
  text-align: right;
  white-space: nowrap;
}

.manage-panel[data-manage-panel="repair"] .record-table .table-row.empty > span:first-child {
  grid-column: 1 / -1;
  justify-content: center;
  text-align: center;
  font-weight: 900;
  color: #53647a;
}

.manage-panel[data-manage-panel="repair"] .record-table .table-row.empty > span:not(:first-child) {
  display: none;
}

.manage-panel[data-manage-panel="repair"] .record-table .system-repair-row {
  color: #071225;
}

.manage-panel[data-manage-panel="repair"] .record-table .system-repair-row em {
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
  text-align: center;
}

.manage-panel[data-manage-panel="repair"] .record-table .fuel-repair-row em {
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
  text-align: center;
}

.manage-panel[data-manage-panel="repair"] .record-table .repair-total-row {
  margin: 0;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #f2f9ef;
}

.manage-panel[data-manage-panel="repair"] .record-table .repair-total-row > span:first-child {
  grid-column: 1 / 4;
  justify-content: flex-start;
  text-align: left;
  font-weight: 950;
  color: #071225;
}

.manage-panel[data-manage-panel="repair"] .record-table .repair-total-row > strong {
  grid-column: 4 / 5;
  justify-content: flex-end;
  align-items: center;
  text-align: right;
  color: #071225;
  font-size: 15px;
}

.manage-panel[data-manage-panel="repair"] .record-table .repair-total-row > span:not(:first-child) {
  display: none;
}

.record-delete-action,
.record-edit-action {
  justify-self: end;
  width: 54px;
  min-width: 54px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(190, 18, 60, 0.28);
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.record-edit-action {
  border-color: rgba(37, 99, 235, 0.26);
  background: #eff6ff;
  color: #1d4ed8;
}

.record-delete-action:hover {
  background: #ffe4e6;
}

.repair-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.repair-photo-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.record-upload-action,
.record-view-action {
  width: 54px;
  min-width: 54px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(183, 114, 22, 0.36);
  border-radius: 999px;
  background: #fff7ed;
  color: #8a4b0f;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.record-view-action {
  border-color: rgba(37, 99, 235, 0.26);
  background: #eff6ff;
  color: #1d4ed8;
}

.repair-mode-toolbar {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 12px;
}

.repair-mode-toolbar button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #d69a2d;
  border-radius: 999px;
  background: #fff8e9;
  color: #7a4a0b;
  font-size: 13px;
  font-weight: 950;
}

.repair-mode-toolbar button.active {
  background: #10203a;
  border-color: #10203a;
  color: #fff;
}

.repair-detail-wrap {
  display: none;
}

.manage-panel[data-manage-panel="repair"].repair-detail-mode > .field-grid,
.manage-panel[data-manage-panel="repair"].repair-detail-mode > .outline-action,
.manage-panel[data-manage-panel="repair"].repair-detail-mode > .repair-entry-actions,
.manage-panel[data-manage-panel="repair"].repair-detail-mode > .repair-accounting-toggle,
.manage-panel[data-manage-panel="repair"].repair-detail-mode > .record-table {
  display: none;
}

.manage-panel[data-manage-panel="repair"].repair-detail-mode .repair-entry-header {
  display: flex;
}

.manage-panel[data-manage-panel="repair"].repair-detail-mode .repair-detail-wrap {
  display: block;
}

@media (max-width: 640px) {
  .manage-panel[data-manage-panel="repair"] .repair-entry-actions {
    align-items: center;
    gap: 8px;
  }

  .manage-panel[data-manage-panel="repair"] .repair-accounting-toggle {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 34px;
    margin: 0;
    padding: 5px 9px;
    gap: 6px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .manage-panel[data-manage-panel="repair"] .repair-accounting-toggle input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px !important;
    min-width: 16px;
    max-width: 16px;
    height: 16px !important;
    min-height: 16px;
    margin: 0;
    padding: 0;
  }

  .manage-panel[data-manage-panel="repair"] .repair-accounting-toggle span {
    display: inline;
    width: auto;
    white-space: nowrap;
  }

  .manage-panel[data-manage-panel="repair"] .record-table {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .manage-panel[data-manage-panel="repair"] .record-table .table-row.head {
    display: none;
  }

  .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head) {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 8px;
    border: 1px solid #b7c7da;
    border-radius: 10px;
    overflow: hidden;
  }

  .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head) > * {
    min-height: 52px;
    padding: 7px 9px;
    border-right: 0;
    border-bottom: 1px solid #d7e0ea;
    overflow-wrap: anywhere;
  }

  .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head) > *:nth-child(odd) {
    border-right: 1px solid #d7e0ea;
  }

  .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head) > *:nth-child(1)::before,
  .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head) > *:nth-child(2)::before,
  .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head) > *:nth-child(3)::before,
  .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head) > *:nth-child(4)::before {
    display: block;
    margin-right: 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
  }

  .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head) > *:nth-child(1)::before {
    content: "日期";
  }

  .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head) > *:nth-child(2)::before {
    content: "廠商／維修廠";
  }

  .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head) > *:nth-child(3)::before {
    content: "項目";
  }

  .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head) > *:nth-child(4)::before {
    content: "金額";
  }

  .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head) > *:nth-child(5) {
    grid-column: 1 / -1;
    min-height: 42px;
    justify-content: flex-end;
    border-right: 0;
    border-bottom: 0;
  }

  .manage-panel[data-manage-panel="repair"] .record-table .table-row.empty > span:first-child {
    grid-column: 1 / -1;
    min-height: 58px;
    border: 0;
  }

  .manage-panel[data-manage-panel="repair"] .record-table .table-row.empty > span:first-child::before,
  .manage-panel[data-manage-panel="repair"] .record-table .repair-total-row > span:first-child::before,
  .manage-panel[data-manage-panel="repair"] .record-table .repair-total-row > strong::before {
    content: none;
  }

  .manage-panel[data-manage-panel="repair"] .record-table .repair-total-row {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .manage-panel[data-manage-panel="repair"] .record-table .repair-total-row > span:first-child {
    grid-column: 1;
    min-height: 44px;
    border-bottom: 0;
  }

  .manage-panel[data-manage-panel="repair"] .record-table .repair-total-row > strong {
    grid-column: 2;
    min-height: 44px;
    border-right: 0;
    border-bottom: 0;
  }
}

.owner-accounting-source-overlay {
  align-items: center;
}

.owner-accounting-source-dialog {
  width: min(760px, 94vw);
  max-height: min(760px, 92vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(190, 204, 225, 0.95);
  border-radius: 14px;
  background: #fff7ec;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.owner-accounting-source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px 12px;
  background: #fff7ec;
}

.owner-accounting-source-header h2 {
  margin: 0;
  padding-left: 10px;
  border-left: 4px solid #d89524;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
}

.owner-accounting-source-toolbar {
  margin: 0;
}

.owner-accounting-source-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 24px 18px;
}

.owner-accounting-source-dialog footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 24px 18px;
  background: #fff7ec;
}

.owner-accounting-source-dialog footer button {
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(190, 204, 225, 0.95);
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 900;
}

.repair-detail-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid #b9c8db;
  background: #fff;
  color: #071426;
}

.repair-detail-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #10203a;
  color: #fff;
}

.repair-detail-card header span {
  color: #f4c04d;
  font-size: 13px;
  font-weight: 950;
}

.repair-detail-card header h4 {
  margin: 4px 0 2px;
  font-size: 24px;
  line-height: 1.08;
}

.repair-detail-card header p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-weight: 800;
}

.repair-detail-card header strong {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 10px;
  background: #fff7e1;
  color: #8a4f08;
  font-size: 20px;
  font-weight: 950;
}

.repair-detail-basic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #b9c8db;
}

.repair-detail-basic span {
  display: grid;
  gap: 4px;
  min-height: 54px;
  padding: 8px 10px;
  border-right: 1px solid #d5dfeb;
  background: #f6f9fc;
  color: #52647a;
  font-size: 12px;
  font-weight: 850;
}

.repair-detail-basic span:last-child {
  border-right: 0;
}

.repair-detail-basic b {
  color: #071426;
  font-size: 15px;
  font-weight: 950;
}

.repair-detail-card table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.repair-detail-card th,
.repair-detail-card td {
  height: 40px;
  padding: 7px 8px;
  border-right: 1px solid #b9c8db;
  border-bottom: 1px solid #b9c8db;
  text-align: center;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.22;
  word-break: break-word;
}

.repair-detail-card th {
  background: #dfeaf5;
  font-weight: 950;
}

.repair-detail-card td:nth-child(2),
.repair-detail-card td:nth-child(3) {
  text-align: left;
}

.repair-detail-card tfoot td {
  background: #f5faf2;
  font-weight: 950;
}

.repair-detail-card .empty td {
  color: #718096;
  text-align: center;
}

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

.sheet-table b,
.sheet-table strong {
  grid-column: 1 / -1;
  padding: 12px;
  background: #f6f9fd;
  font-size: 16px;
}

.sheet-table span {
  min-height: 40px;
  padding: 10px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--card);
}

.sheet-table strong {
  text-align: center;
  color: #8a1c1c;
  font-size: 24px;
}

.sell-tabs {
  grid-template-columns: 120px 120px 120px 120px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  border-radius: 14px;
}

.sell-tabs .sell-price-note {
  grid-column: 5;
  align-self: center;
  color: #8a6a2e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.sell-tabs .sell-detail-save {
  grid-column: 5;
  min-width: 74px;
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #0f5132;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 81, 50, 0.16);
  font-weight: 900;
}

.sell-tabs .sell-detail-save:not(.active) {
  background: #0f5132;
  color: #fff;
}

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

  .sell-tabs .sell-price-note {
    grid-column: 1 / -1;
  }

  .sell-tabs .sell-detail-save {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

.sell-panel {
  display: none;
}

.sell-panel.active {
  display: block;
}

.sell-profit-panel {
  display: none;
  gap: 18px;
  padding: 20px;
  border: 1px solid #ead8b8;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff 100%);
}

.sell-profit-panel.active {
  display: grid;
}

.sell-profit-heading,
.sell-profit-card-title,
.sell-profit-preview-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sell-profit-heading p {
  margin: 0 0 3px;
  color: #b47d19;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.sell-profit-heading h3,
.sell-profit-card h4,
.sell-profit-preview h4 {
  margin: 0;
  color: #172033;
}

.sell-profit-heading span,
.sell-profit-card-title span,
.sell-profit-preview-title span {
  color: #7a6b54;
  font-size: 12px;
  font-weight: 700;
}

.sell-profit-heading button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #d9a33f;
  border-radius: 999px;
  background: #fff;
  color: #9a6410;
  font-weight: 900;
}

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

.sell-profit-card,
.sell-profit-preview {
  padding: 16px;
  border: 1px solid #eadfce;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(78, 54, 18, 0.05);
}

.sell-profit-card-title {
  align-items: flex-start;
  margin-bottom: 14px;
}

.sell-profit-card-title span {
  max-width: 180px;
  text-align: right;
}

.sell-profit-rate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sell-profit-rate-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sell-profit-rate-grid.one {
  grid-template-columns: minmax(0, 180px);
}

.sell-profit-rate-grid label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 4px;
  align-items: center;
}

.sell-profit-rate-grid label > span {
  grid-column: 1 / -1;
  color: #5f513d;
  font-size: 12px;
  font-weight: 900;
}

.sell-profit-rate-grid input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #d8c7aa;
  border-radius: 10px;
  background: #fffdf8;
  color: #172033;
  font-size: 16px;
  font-weight: 900;
  text-align: right;
}

.sell-profit-rate-grid input[readonly] {
  background: #f3efe7;
  color: #776d5d;
}

.sell-profit-rate-grid b {
  color: #a97924;
}

.sell-profit-rate-grid label.hidden {
  display: none;
}

.sell-profit-total {
  min-height: 20px;
  margin: 10px 0 0;
  color: #c43838;
  font-size: 12px;
  font-weight: 900;
}

.sell-profit-total.valid {
  color: #3b7a57;
}

.sell-profit-fixed-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #e3d3ba;
  border-radius: 12px;
  background: #fffaf1;
  color: #7a6b54;
  font-weight: 800;
}

.sell-profit-fixed-rule strong {
  color: #b1781e;
  font-size: 22px;
  line-height: 1;
}

.sell-profit-preview-title {
  margin-bottom: 12px;
}

.sell-profit-preview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.sell-profit-preview-grid article {
  padding: 11px 12px;
  border-radius: 10px;
  background: #fbf7ef;
}

.sell-profit-preview-grid span,
.sell-profit-preview-grid strong {
  display: block;
}

.sell-profit-preview-grid span {
  margin-bottom: 4px;
  color: #78694f;
  font-size: 11px;
  font-weight: 800;
}

.sell-profit-preview-grid strong {
  color: #8b5b08;
  font-size: 16px;
}

@media (max-width: 900px) {
  .sell-profit-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .sell-profit-panel {
    gap: 12px;
    padding: 12px;
  }

  .sell-profit-heading {
    align-items: flex-start;
  }

  .sell-profit-heading > div {
    min-width: 0;
  }

  .sell-profit-heading button {
    padding: 0 10px;
    font-size: 12px;
  }

  .sell-profit-card-title {
    display: block;
  }

  .sell-profit-card-title span {
    display: block;
    margin-top: 3px;
    max-width: none;
    text-align: left;
  }
}

.sell-repair-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sell-repair-readonly {
  display: grid;
  gap: 16px;
}

.sell-repair-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(185, 200, 219, 0.85);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(7, 18, 37, 0.08);
}

.sell-repair-toolbar h3 {
  margin: 0;
  color: #071225;
  font-size: 17px;
  font-weight: 950;
}

.sell-repair-toolbar .sale-report-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.sell-repair-toolbar button {
  width: auto;
  min-height: 34px;
  padding: 6px 16px;
  border: 1px solid rgba(204, 126, 14, 0.64);
  border-radius: 999px;
  background: #fffaf2;
  color: #8a4f08;
  font-weight: 950;
  white-space: nowrap;
}

.sell-repair-record-table {
  min-width: 0;
  padding: 12px;
  border: 1px solid #b7c7da;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(7, 18, 37, 0.08);
}

.sell-repair-record-table h4 {
  margin: 0 0 10px;
  color: #071225;
  font-size: 18px;
  font-weight: 950;
}

.sell-repair-table-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.85fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(96px, 0.7fr);
  align-items: center;
  gap: 0;
  border-left: 1px solid #b7c7da;
  border-bottom: 1px solid #b7c7da;
  background: #fff;
}

.sell-repair-table-row > * {
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 9px 12px;
  border-right: 1px solid #b7c7da;
  box-sizing: border-box;
  color: #071225;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
}

.sell-repair-table-row.head {
  border-top: 1px solid #b7c7da;
  background: #dbe8f4;
  color: #071225;
  font-size: 17px;
  font-weight: 950;
}

.sell-repair-table-row.head > span {
  justify-content: center;
  text-align: center;
}

.sell-repair-table-row > strong {
  justify-content: center;
  color: #071225;
  font-size: 17px;
  font-weight: 950;
  text-align: center;
  white-space: nowrap;
}

.sell-repair-table-row.empty > span:first-child {
  grid-column: 1 / -1;
  justify-content: center;
  color: #53647a;
  font-weight: 900;
  text-align: center;
}

.sell-repair-table-row.empty > span:not(:first-child) {
  display: none;
}

.sell-repair-table-row.repair-total-row {
  border-radius: 0 0 10px 10px;
  background: #f2f9ef;
}

.sell-repair-table-row.repair-total-row > span:first-child {
  grid-column: 1 / 4;
  justify-content: center;
  color: #071225;
  font-size: 17px;
  font-weight: 950;
}

.sell-repair-table-row.repair-total-row > strong {
  grid-column: 4 / 5;
  font-size: 18px;
}

.sell-repair-table-row.repair-total-row > span:not(:first-child) {
  display: none;
}

.sell-form-panel {
  margin-bottom: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sell-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 7px;
  min-width: 0;
}

.sell-form-grid-redesign {
  grid-template-columns: minmax(320px, 0.8fr) minmax(195px, 0.5fr) minmax(440px, 1.25fr);
  grid-template-areas:
    "buyer money gift"
    "transaction transaction gift"
    "payment payment payment";
  align-items: start;
}

.sell-buyer-card {
  grid-area: buyer;
}

.sell-money-card {
  grid-area: money;
}

.sell-transaction-card {
  grid-area: transaction;
}

.sell-gift-card {
  grid-area: gift;
  border-color: rgba(230, 67, 83, 0.38);
}

.sell-payment-card {
  grid-area: payment;
}

.sell-form-card {
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid rgba(214, 160, 57, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 16px rgba(7, 18, 37, 0.055);
}

.sell-form-card.wide {
  grid-column: 1 / -1;
}

.sell-form-card h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(216, 163, 64, 0.34);
  color: #172033;
  font-size: 13px;
  font-weight: 950;
}

.sell-form-card h3::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 999px;
  background: #d8a340;
}

.sell-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(216, 163, 64, 0.34);
}

.sell-card-heading h3 {
  margin: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.sell-card-add-button {
  width: auto;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid rgba(22, 79, 153, 0.24);
  border-radius: 4px;
  background: #f8fbff;
  color: #164f99;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.sell-form-grid-redesign .field-grid {
  gap: 6px 8px;
}

.sell-transaction-card .sale-agency-fee-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sell-transaction-card .sale-agency-fee-grid .mobile-field.wide {
  grid-column: auto;
}

.sell-form-grid-redesign .mobile-field {
  gap: 4px;
}

.sell-form-grid-redesign .mobile-field > span {
  font-size: 13px;
}

.sell-form-grid-redesign .mobile-field input,
.sell-form-grid-redesign .mobile-field select,
.sell-form-grid-redesign .mobile-field textarea {
  height: 32px;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.sell-form-grid-redesign .mobile-field textarea {
  resize: vertical;
}

.sale-gift-list {
  display: grid;
  gap: 5px;
}

.sale-gift-row {
  display: grid;
  grid-template-columns: minmax(112px, 1.05fr) minmax(72px, 0.7fr) minmax(104px, 0.92fr) minmax(104px, 0.92fr) 28px;
  gap: 5px;
  align-items: end;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(220, 226, 234, 0.9);
}

.sale-gift-row label {
  display: grid;
  gap: 2px;
  color: #243044;
  font-size: 12px;
  font-weight: 900;
}

.sale-gift-row input {
  width: 100%;
  min-height: 28px;
  border: 1px solid #cfdae8;
  border-radius: 4px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-weight: 800;
  padding: 3px 6px;
}

.sale-gift-system-row {
  padding: 8px;
  border: 1px solid rgba(205, 148, 34, 0.34);
  border-radius: 7px;
  background: rgba(255, 248, 232, 0.82);
}

.sale-gift-system-row input[readonly] {
  color: #6c5323;
  background: #fffaf0;
  cursor: not-allowed;
}

.sale-gift-delete {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #e23d4d;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}

.sale-gift-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(230, 67, 83, 0.15);
  border-radius: 4px;
  background: #fff3f5;
  color: #172033;
  font-weight: 950;
}

.sale-gift-total strong {
  color: #d72839;
  font-size: 17px;
}

.sale-gift-total.is-profit {
  border-color: rgba(20, 145, 92, 0.22);
  background: #effbf5;
}

.sale-gift-total.is-profit strong {
  color: #087847;
}

.sale-gift-total.is-loss {
  border-color: rgba(230, 67, 83, 0.15);
  background: #fff3f5;
}

.sell-form-card .mobile-field input[readonly] {
  background: #f7f9fc;
  color: #233044;
}

.sell-payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.sale-payment-list {
  display: grid;
  gap: 7px;
  margin-top: 0;
}

.sale-payment-head {
  display: grid;
  grid-template-columns: 36px minmax(130px, 0.9fr) minmax(100px, 0.7fr) minmax(120px, 0.78fr) minmax(180px, 1.15fr) minmax(160px, 1fr) 30px;
  gap: 8px;
  padding: 0 10px 5px;
  color: #243044;
  font-size: 13px;
  font-weight: 950;
}

.sale-payment-row {
  display: grid;
  grid-template-columns: 36px minmax(130px, 0.9fr) minmax(100px, 0.7fr) minmax(120px, 0.78fr) minmax(180px, 1.15fr) minmax(160px, 1fr) 30px;
  gap: 8px;
  align-items: end;
  padding: 5px 10px;
  border: 1px solid rgba(220, 226, 234, 0.95);
  border-radius: 7px;
  background: #fff;
}

.sale-payment-index {
  display: grid;
  place-items: center;
  min-height: 34px;
  color: #172033;
  font-size: 14px;
  font-weight: 950;
}

.sale-payment-row label {
  display: grid;
  gap: 0;
  color: #243044;
  font-size: 13px;
  font-weight: 900;
}

.sale-payment-row label span {
  display: none;
}

.sale-payment-row input,
.sale-payment-row select {
  width: 100%;
  height: 34px;
  min-height: 34px;
  border: 1px solid #cfdae8;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-weight: 800;
  padding: 5px 9px;
}

.sale-payment-row [hidden] {
  display: none !important;
}

.sale-payment-delete {
  grid-column: 7;
  width: 30px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #e23d4d;
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
}

.sale-payment-row.is-linked-deposit {
  border-color: rgba(201, 148, 52, 0.5);
  background: linear-gradient(90deg, rgba(255, 249, 231, 0.98), #fff);
}

.sale-payment-row.is-linked-deposit input[readonly],
.sale-payment-row.is-linked-deposit select:disabled {
  opacity: 1;
  background: #f7f1e4;
  color: #263043;
  cursor: not-allowed;
}

.sale-payment-linked-note {
  grid-column: 7;
  display: grid;
  place-items: center;
  min-height: 34px;
  color: #a66b05;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.sell-payment-helper {
  display: none;
  margin: 5px 0 0;
  color: #5a6678;
  font-size: 11px;
  font-weight: 800;
}

.sell-payment-divider {
  width: 1px;
  min-height: 100%;
  background: rgba(214, 160, 57, 0.26);
}

.sell-customer-card {
  overflow: hidden;
  border: 3px solid #164f99;
  background: #f6f9fd;
}

.sell-customer-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 10px;
  background: #164f99;
  color: #fff;
}

.sell-customer-card > header h3 {
  margin: 0;
  color: #fff;
}

.sell-customer-card > header button {
  width: auto;
  min-height: 32px;
  padding: 6px 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #071225;
  box-shadow: none;
}

.sell-customer-table {
  width: calc(100% - 20px);
  margin-top: 10px;
  background: #f8fbff;
}

.sell-customer-table th {
  background: #356bab;
  color: #fff;
}

.sell-customer-table th + th {
  background: #d1c9bd;
  color: #061220;
}

.sell-customer-total {
  background: #456fac;
  color: #fff;
}

.sale-money-table {
  width: calc(100% - 20px);
  margin: 0 10px;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  color: #061220;
  font-size: 12px;
}

.sale-money-table th {
  height: 42px;
  border: 1px solid #8e9aa6;
  background: #91ab88;
  font-size: 17px;
  font-weight: 900;
}

.sale-money-table th + th {
  background: #d1c9bd;
}

.sale-money-table td {
  height: 32px;
  padding: 7px 5px;
  border: 1px solid #c1c8ce;
  background: #fff;
  text-align: center;
  font-weight: 700;
}

.sale-money-table td:nth-child(2),
.sale-money-table td:nth-child(4) {
  text-align: center;
  font-weight: 900;
}

.sale-money-table input {
  width: 100%;
  height: 24px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #061220;
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.sale-money-table input[readonly],
.sale-money-table .sale-report-locked {
  border-color: #d7dee8;
  background: #f3f6fa;
  color: #23364d;
  cursor: default;
}

.sale-money-table .sale-report-label-input {
  text-align: center;
}

.sale-report-custom-amount {
  display: block;
}

.sale-money-table td.sale-report-delete-target {
  border-color: #f87171;
  background: #fff1f2;
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.72);
}

.sale-report-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sale-report-add-row .sale-report-row-actions button {
  width: auto;
  min-width: 42px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 950;
}

.sale-report-add-row .sale-report-row-actions button[data-sale-report-add-row] {
  min-width: 28px;
  padding: 0;
  border: 0;
  background: #bbf7d0;
  color: #047857;
  font-size: 20px;
}

.sale-report-add-row .sale-report-row-actions button[data-sale-report-delete-selected] {
  border: 1px solid #fecaca;
  background: #fff7f7;
  color: #dc2626;
}

.sale-report-add-row button {
  width: auto;
}

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

.sold-view-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
}

.sold-view-actions button {
  min-width: 54px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(190, 132, 46, 0.42);
  border-radius: 7px;
  background: linear-gradient(135deg, #fff8ea 0%, #f0bd55 100%);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.sale-detail-tabs {
  display: inline-grid;
  grid-template-columns: 120px 120px;
  gap: 0;
  margin-bottom: 0;
  padding: 4px;
  border-radius: 20px;
  background: #e8eef5;
}

.sale-detail-tabs button {
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #25344a;
  box-shadow: none;
}

.sale-detail-tabs button.active {
  background: #071225;
  color: #fff;
}

.sale-report-top-save {
  width: auto;
  min-height: 38px;
  padding: 8px 18px;
  border: 0;
  border-radius: 9px;
  background: #0f5132;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 81, 50, 0.18);
  font-weight: 900;
}

.mobile-modal[data-modal="vehicle-sell"] .sell-modal-title {
  min-width: 0;
}

.mobile-modal[data-modal="vehicle-sell"] .modal-header {
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 92px;
  padding-right: 16px;
}

.mobile-modal[data-modal="vehicle-sell"] .sell-vehicle-summary {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.mobile-modal[data-modal="vehicle-sell"] .sell-vehicle-info-row {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: flex-start;
  gap: 4px;
  overflow: hidden;
}

.mobile-modal[data-modal="vehicle-sell"] .sell-vehicle-info-row h2 {
  flex: 0 1 auto;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-modal[data-modal="vehicle-sell"] .sell-vehicle-meta-row {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: rgba(255, 247, 221, 0.86);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-modal[data-modal="vehicle-sell"] .sell-vehicle-photo {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  width: 96px;
  height: 66px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(242, 199, 110, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #f2c76e;
  font-size: 13px;
  font-weight: 950;
}

.mobile-modal[data-modal="vehicle-sell"] .sell-vehicle-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.mobile-modal[data-modal="vehicle-sell"] .modal-header .modal-close {
  position: relative;
  top: auto;
  right: auto;
  justify-self: end;
  transform: translateX(28px);
}

.mobile-modal[data-modal="vehicle-sell"] .modal-header .sell-tabs {
  grid-template-columns: 82px 110px 72px 90px minmax(210px, auto);
  align-items: center;
  gap: 8px;
  justify-self: center;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mobile-modal[data-modal="vehicle-sell"] .modal-header .sell-tabs button {
  min-height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 999px;
  background: #f8fbff;
  color: #071225;
  box-shadow: none;
  font-weight: 950;
}

.mobile-modal[data-modal="vehicle-sell"] .modal-header .sell-tabs button:first-child {
  border-radius: 999px;
}

.mobile-modal[data-modal="vehicle-sell"] .modal-header .sell-tabs button:nth-child(2) {
  border-left: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 999px;
}

.mobile-modal[data-modal="vehicle-sell"] .modal-header .sell-tabs button.active {
  border-color: #102750;
  background: #f8fbff;
  color: #071225;
  box-shadow: inset 0 0 0 1px rgba(16, 39, 80, 0.18);
}

.mobile-modal[data-modal="vehicle-sell"] .modal-header .sell-tabs button.user-active {
  border-color: #102750;
  background: #f8fbff;
  color: #071225;
  box-shadow: inset 0 0 0 1px rgba(16, 39, 80, 0.18);
}

.mobile-modal[data-modal="vehicle-sell"] .modal-header .sell-tabs .sell-price-note {
  display: block;
  grid-column: 5;
  grid-row: 1;
  align-self: center;
  margin: 0 0 0 12px;
  color: #f2c76e;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .mobile-modal[data-modal="vehicle-sell"] .modal-header {
    grid-template-columns: 1fr 44px;
    min-height: 88px;
    padding-right: 16px;
  }

  .mobile-modal[data-modal="vehicle-sell"] .sell-vehicle-summary {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
  }

  .mobile-modal[data-modal="vehicle-sell"] .sell-vehicle-info-row {
    gap: 6px;
  }

  .mobile-modal[data-modal="vehicle-sell"] .sell-vehicle-info-row h2 {
    flex-basis: 100%;
    font-size: 19px;
  }

  .mobile-modal[data-modal="vehicle-sell"] .sell-vehicle-photo {
    width: 82px;
    height: 60px;
  }

  .mobile-modal[data-modal="vehicle-sell"] .modal-header .modal-close {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
  }

  .mobile-modal[data-modal="vehicle-sell"] .modal-header .sell-tabs {
    grid-column: 1 / -1;
    justify-self: stretch;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 8px;
  }

  .mobile-modal[data-modal="vehicle-sell"] .modal-header .sell-tabs .sell-price-note {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 6px 0 0;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  body {
    font-size: 14px;
  }

  .metric-grid:not(.compact-metrics):not(.sold-metrics),
  .field-grid.two,
  .photo-grid,
  .sold-filter-grid,
  .status-tabs,
  .choice-grid,
  .choice-grid.three,
  .info-grid,
  .status-summary,
  .role-grid,
  .register-grid,
  .toolbar-card,
  .vehicle-card,
  .view-top-card,
  .upload-row {
    grid-template-columns: 1fr;
  }

  .page[data-panel="ranking"] .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page[data-panel="ranking"] .sold-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-card img,
  .vehicle-placeholder,
  .view-top-card img {
    width: 100%;
    height: 150px;
  }

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

/* Mobile vehicle photo upload — compact file-manager layout. */
@media (max-width: 899px) {
  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] [data-manage-panel="photos"] {
    padding: 14px 12px 118px;
    background: #f7f8fa;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-section-head {
    align-items: center;
    margin: 0 -12px 12px;
    padding: 2px 12px 12px;
    border-bottom: 1px solid #e3e6eb;
    background: #fff;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-section-head > div {
    min-width: 0;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-section-head small {
    display: block;
    margin-bottom: 2px;
    color: #b57a14;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .13em;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-section-head h3 {
    color: #111827;
    font-size: 21px;
    line-height: 1.15;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-section-head button {
    height: 38px;
    padding: 0 14px;
    border-radius: 9px;
    background: #fffdf8;
    color: #9a6517;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-quick-upload {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 12px;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .04);
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-quick-upload > h4 {
    grid-column: 1 / -1;
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 950;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-upload-card.upload-row {
    display: flex;
    min-width: 0;
    padding: 10px;
    flex-direction: column;
    gap: 9px;
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    background: #fff;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-upload-card-title {
    display: grid;
    min-width: 0;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-upload-card-title > svg {
    width: 28px;
    height: 28px;
    padding: 5px;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    fill: none;
    stroke: #1f2937;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-upload-card-title > div {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-upload-card-title strong {
    color: #111827;
    font-size: 13px;
    font-weight: 950;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-upload-card-title small {
    overflow: hidden;
    color: #7b8493;
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-upload-card-title em {
    padding: 4px 7px;
    border-radius: 6px;
    background: #fff4d8;
    color: #9a6517;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-upload-picker {
    display: grid;
    min-height: 106px;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 10px 5px;
    box-sizing: border-box;
    border: 1px dashed #ccd2dc;
    border-radius: 9px;
    background: #fcfcfd;
    color: #111827;
    cursor: pointer;
    text-align: center;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-upload-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-upload-picker > span {
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-upload-picker > b {
    font-size: 11px;
    font-weight: 950;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-upload-picker > small {
    display: block;
    width: 100%;
    overflow: hidden;
    color: #9aa1ad;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-upload-picker > small.has-file {
    color: #9a6517;
    font-size: 9px;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-upload-card > button {
    width: 100%;
    height: 32px;
    min-height: 32px;
    border-color: #d4a44a;
    border-radius: 7px;
    background: linear-gradient(180deg, #f5cb70, #d99c28);
    color: #111827;
    font-size: 10px;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-current-title {
    margin: 16px 0 8px;
    color: #111827;
    font-size: 15px;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-grid article,
  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .sub-photo-box {
    background: #fff;
  }
}

@media (max-width: 760px) {
  .mobile-modal[data-modal="vehicle-sell"] {
    width: min(calc(100vw - 10px), 520px);
  }

  .mobile-modal[data-modal="vehicle-sell"] .modal-body {
    padding-right: 10px;
    padding-left: 10px;
  }

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

  .sell-form-grid-redesign {
    grid-template-areas:
      "buyer"
      "money"
      "transaction"
      "gift"
      "payment";
  }

  .sell-form-card {
    padding: 12px;
  }

  .sell-card-heading {
    flex-direction: column;
    align-items: stretch;
  }

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

  .sale-gift-delete {
    width: 100%;
  }

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

  .sale-payment-head {
    display: none;
  }

  .sale-payment-row label span {
    display: block;
  }

  .sale-payment-index {
    justify-content: start;
    min-height: 0;
  }

  .sale-payment-delete {
    grid-column: 1;
    width: 100%;
  }

  .sale-payment-linked-note {
    grid-column: 1;
    justify-content: start;
    min-height: 0;
    padding: 4px 0 1px;
    font-size: 12px;
  }

  .sell-payment-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

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

  .sell-payment-divider {
    display: none;
  }
}

/* Backoffice page polish */
.page[data-panel="backoffice"] .permission-list .backoffice-master-group {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  padding: 12px;
}

.page[data-panel="backoffice"] .permission-list .backoffice-master-group > strong,
.page[data-panel="backoffice"] .permission-list .backoffice-master-group > span,
.page[data-panel="backoffice"] .permission-list .backoffice-master-group > .backoffice-repair-browser,
.page[data-panel="backoffice"] .permission-list .backoffice-master-group > .backoffice-master-list {
  grid-column: 1 / -1;
}

.page[data-panel="backoffice"] .permission-list .backoffice-master-group > strong,
.page[data-panel="backoffice"] .permission-list .backoffice-master-group > span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.page[data-panel="backoffice"] .permission-list .backoffice-master-group > div {
  grid-column: 1 / -1;
  grid-row: auto;
  justify-content: stretch;
}

.page[data-panel="backoffice"] .backoffice-repair-browser {
  align-content: start;
}

/* Force the accounting checkout center to match the horizontal card design. */
.page[data-panel="owner-accounting-cash-report"] .owner-accounting-layout {
  grid-template-columns: minmax(0, 1fr) 320px !important;
}

.page[data-panel="owner-accounting-cash-report"] .owner-accounting-checkout-center {
  padding: 12px !important;
}

.page[data-panel="owner-accounting-cash-report"] .owner-accounting-action-stack {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  min-height: 0 !important;
  align-items: stretch !important;
  justify-content: stretch !important;
}

.page[data-panel="owner-accounting-cash-report"] .owner-accounting-side-action {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 5px 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 70px !important;
  padding: 10px 14px !important;
  text-align: left !important;
}

.page[data-panel="owner-accounting-cash-report"] .owner-accounting-side-action::before {
  display: grid !important;
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 38px !important;
  height: 38px !important;
}

.page[data-panel="owner-accounting-cash-report"] .owner-accounting-side-action strong,
.page[data-panel="owner-accounting-cash-report"] .owner-accounting-side-action span {
  display: block !important;
  grid-column: 2 !important;
  min-width: 0 !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  letter-spacing: 0 !important;
  text-align: left !important;
}

.page[data-panel="owner-accounting-cash-report"] .owner-accounting-side-action strong {
  align-self: end !important;
  font-size: 15px !important;
  line-height: 1.18 !important;
}

.page[data-panel="owner-accounting-cash-report"] .owner-accounting-side-action span {
  align-self: start !important;
  font-size: 12px !important;
  line-height: 1.32 !important;
}

.mobile-modal[data-modal="vehicle-manage"] .sub-photo-box .sub-photo-empty:has(.photo-preview-frame) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  align-items: start !important;
  justify-items: stretch !important;
  place-items: stretch !important;
  padding: 6px !important;
}

.mobile-modal[data-modal="vehicle-manage"] .sub-photo-empty .photo-preview-frame {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  gap: 6px !important;
}

.mobile-modal[data-modal="vehicle-manage"] .sub-photo-empty .photo-preview-frame img {
  width: 100% !important;
  height: 148px !important;
  object-fit: cover !important;
}

.mobile-modal[data-modal="vehicle-manage"] .sub-photo-empty .photo-preview-frame .photo-delete-action {
  width: 100% !important;
}

/* Keep uploads inside the original photo library instead of rendering a second upload page. */
.mobile-modal[data-modal="vehicle-manage"] .photo-library-grid article {
  grid-template-rows: auto minmax(188px, 1fr) auto;
  gap: 8px;
}

.mobile-modal[data-modal="vehicle-manage"] .photo-inline-uploader.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: stretch;
  min-width: 0;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #e2e5ea;
  border-radius: 9px;
  background: #fffaf1;
}

.mobile-modal[data-modal="vehicle-manage"] .photo-inline-uploader > strong {
  display: none;
}

.mobile-modal[data-modal="vehicle-manage"] .photo-inline-uploader .photo-upload-picker {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 48px;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon action"
    "icon hint";
  align-content: center;
  align-items: center;
  gap: 1px 7px;
  padding: 6px 9px;
  border: 1px dashed #c8ced8;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  cursor: pointer;
}

.mobile-modal[data-modal="vehicle-manage"] .photo-inline-uploader .photo-upload-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-inline-uploader .photo-upload-picker input {
  position: absolute !important;
  display: block !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

.mobile-modal[data-modal="vehicle-manage"] .photo-inline-uploader .photo-upload-picker > span {
  grid-area: icon;
  color: #a66b13;
  font-size: 22px;
  line-height: 1;
}

body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-inline-uploader .photo-upload-picker > span,
body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-inline-uploader .photo-upload-picker > b,
body.desktop-page .mobile-modal[data-modal="vehicle-manage"] .photo-inline-uploader .photo-upload-picker > small {
  display: block !important;
}

.mobile-modal[data-modal="vehicle-manage"] .photo-inline-uploader .photo-upload-picker > b {
  grid-area: action;
  overflow: hidden;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-modal[data-modal="vehicle-manage"] .photo-inline-uploader .photo-upload-picker > small {
  grid-area: hint;
  overflow: hidden;
  color: #8b94a3;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-modal[data-modal="vehicle-manage"] .photo-inline-uploader .photo-upload-picker > small.has-file {
  color: #9a6517;
}

.mobile-modal[data-modal="vehicle-manage"] .photo-inline-uploader > button {
  min-width: 84px;
  height: auto;
  min-height: 48px;
  padding: 0 10px;
  border: 1px solid #c58c26;
  border-radius: 7px;
  background: linear-gradient(180deg, #f5cb70, #d99c28);
  color: #111827;
  font-size: 10px;
  font-weight: 950;
}

.mobile-modal[data-modal="vehicle-manage"] .certificate-link-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #e2e5ea;
  border-radius: 9px;
  background: #f8fafc;
}

.mobile-modal[data-modal="vehicle-manage"] .certificate-source-divider,
.mobile-modal[data-modal="vehicle-manage"] .certificate-link-editor > small {
  grid-column: 1 / -1;
}

.mobile-modal[data-modal="vehicle-manage"] .certificate-source-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b94a3;
  font-size: 10px;
  font-weight: 900;
}

.mobile-modal[data-modal="vehicle-manage"] .certificate-source-divider::before,
.mobile-modal[data-modal="vehicle-manage"] .certificate-source-divider::after {
  height: 1px;
  flex: 1;
  background: #d9dee7;
  content: "";
}

.mobile-modal[data-modal="vehicle-manage"] .certificate-link-editor > label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mobile-modal[data-modal="vehicle-manage"] .certificate-link-editor > label > span {
  color: #374151;
  font-size: 10px;
  font-weight: 900;
}

.mobile-modal[data-modal="vehicle-manage"] .certificate-link-editor input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #c8ced8;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
}

.mobile-modal[data-modal="vehicle-manage"] .certificate-link-editor > button {
  align-self: end;
  min-width: 84px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #c58c26;
  border-radius: 7px;
  background: linear-gradient(180deg, #f5cb70, #d99c28);
  color: #111827;
  font-size: 10px;
  font-weight: 950;
}

.mobile-modal[data-modal="vehicle-manage"] .certificate-link-editor > small {
  color: #7b8492;
  font-size: 9px;
  line-height: 1.5;
}

.mobile-modal[data-modal="vehicle-manage"] .certificate-link-preview {
  display: grid;
  min-height: 120px;
  place-content: center;
  padding: 18px;
  color: #9a6517;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  word-break: break-all;
}

.mobile-modal[data-modal="vehicle-manage"] .certificate-link-preview small {
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
}

.mobile-modal[data-modal="vehicle-manage"] .photo-pending-preview {
  position: relative;
}

.mobile-modal[data-modal="vehicle-manage"] .photo-pending-preview::after {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(7, 18, 37, .78);
  color: #fff;
  content: "待上傳";
  font-size: 9px;
  font-weight: 900;
}

@media (max-width: 760px) {
  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-grid article {
    padding: 9px;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-inline-uploader.upload-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-inline-uploader > button {
    min-height: 34px;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .sub-photo-box > .photo-inline-uploader.upload-row {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .sub-photo-box > .photo-inline-uploader > button {
    min-height: 48px;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .certificate-link-editor {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .certificate-link-editor > button {
    min-height: 38px;
  }

  /* Once a single-photo slot already has an image, keep its replacement control compact. */
  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .photo-grid article.has-uploaded-photo .photo-inline-uploader.upload-row,
  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .sub-photo-box.has-uploaded-photo > .photo-inline-uploader.upload-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
    padding: 5px;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .has-uploaded-photo .photo-inline-uploader .photo-upload-picker {
    min-height: 32px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "action";
    justify-items: center;
    padding: 0 8px;
    border-style: solid;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .has-uploaded-photo .photo-inline-uploader .photo-upload-picker > span,
  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .has-uploaded-photo .photo-inline-uploader .photo-upload-picker > small {
    display: none;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .has-uploaded-photo .photo-inline-uploader .photo-upload-picker > b {
    font-size: 10px;
    text-align: center;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .has-uploaded-photo .photo-inline-uploader > button,
  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] .sub-photo-box.has-uploaded-photo > .photo-inline-uploader > button {
    min-width: 70px;
    height: 32px;
    min-height: 32px;
    padding: 0 7px;
  }
}

.mobile-modal[data-modal="vehicle-manage"] .vehicle-photo-viewer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.mobile-modal[data-modal="vehicle-manage"] .vehicle-photo-viewer-empty {
  padding: 42px 16px;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 850;
  text-align: center;
}

.mobile-modal[data-modal="vehicle-manage"] .vehicle-photo-viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-weight: 850;
}

.mobile-modal[data-modal="vehicle-manage"] .vehicle-photo-viewer-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.mobile-modal[data-modal="vehicle-manage"] .vehicle-photo-viewer-list figure {
  margin: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #0f172a;
  overflow: hidden;
}

.mobile-modal[data-modal="vehicle-manage"] .vehicle-photo-viewer-list img {
  display: block;
  width: 100%;
  max-height: none;
  object-fit: contain;
  background: #0f172a;
}

.mobile-modal[data-modal="vehicle-manage"] .vehicle-photo-viewer-list figcaption {
  padding: 9px 12px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .mobile-modal[data-modal="vehicle-manage"] .vehicle-photo-viewer-list {
    gap: 10px;
  }
}




.vehicle-public-content-panel .public-document-summary {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #ead8bb;
  border-radius: 14px;
  background: #fffaf2;
}
.vehicle-public-content-panel .public-document-summary h4 { margin: 0 0 6px; }
.vehicle-public-content-panel .public-document-summary p { margin: 0 0 12px; color: #806e59; }
.vehicle-public-content-panel textarea { min-height: 92px; resize: vertical; }

.vehicle-info-public-content {
  margin-top: 2px;
}

.vehicle-info-public-content > h3 {
  margin-bottom: 0;
}

.vehicle-info-public-content .required-mark {
  color: #c9483d;
  font: inherit;
}

.certification-logo-picker {
  margin-top: 14px;
}

.certification-logo-picker > span {
  display: block;
  margin-bottom: 8px;
  color: #536079;
  font-size: 12px;
  font-weight: 800;
}

.certification-logo-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.certification-logo-options button {
  min-width: 0;
  min-height: 126px;
  padding: 6px 6px 5px;
  border: 1px solid #decfb8;
  border-radius: 10px;
  background: #fff;
  color: #71501d;
  cursor: pointer;
}

.certification-logo-options button.active {
  border-color: #b77b20;
  box-shadow: 0 0 0 2px rgba(183, 123, 32, .18);
  background: #fff9ee;
}

.certification-logo-options button em {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.certification-logo-options .certification-logo {
  display: block;
  width: 100%;
  height: 94px;
  max-width: 100%;
  margin: auto;
  background-color: #fff;
  background-repeat: no-repeat;
  image-rendering: auto;
}

.certification-logo-options .certification-logo-hot { background-image: url("vehicle-site-assets/certification-logo-hot-20260723.jpg?v=1"); }
.certification-logo-options .certification-logo-yes { background-image: url("vehicle-site-assets/certification-logo-yes-20260723.jpg?v=1"); }
.certification-logo-options .certification-logo-tsi { background-image: url("vehicle-site-assets/certification-logo-tsi-20260723.jpg?v=1"); }
.certification-logo-options .certification-logo-goo { background-image: url("vehicle-site-assets/certification-logo-goo-20260723.jpg?v=1"); }
.certification-logo-options .certification-logo-save { background-image: url("vehicle-site-assets/certification-logo-save-20260723.jpg?v=1"); }
.certification-logo-options .certification-logo-none { background-image: url("vehicle-site-assets/certification-logo-none-white-corners-20260724.png?v=2"); }

.certification-logo-options .certification-logo-hot,
.certification-logo-options .certification-logo-yes,
.certification-logo-options .certification-logo-tsi,
.certification-logo-options .certification-logo-goo,
.certification-logo-options .certification-logo-save,
.certification-logo-options .certification-logo-none {
  background-position: center;
  background-size: contain;
  border-radius: 0;
}

.warranty-link-fields {
  margin-top: 14px;
}

.public-advantage-picker {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.public-advantage-picker legend {
  margin-bottom: 8px;
  color: #536079;
  font-size: 12px;
  font-weight: 800;
}

.public-advantage-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-advantage-options label {
  position: relative;
  cursor: pointer;
}

.public-advantage-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.public-advantage-options span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #decfb8;
  border-radius: 999px;
  color: #725a38;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  transition: .16s ease;
}

.public-advantage-options input:checked + span {
  border-color: #b77b20;
  color: #fff;
  background: linear-gradient(135deg, #d1a24b, #9d6817);
  box-shadow: 0 4px 12px rgba(157, 104, 23, .2);
}

.public-advantage-options input:focus-visible + span {
  outline: 2px solid #b77b20;
  outline-offset: 2px;
}

@media (max-width: 620px) {
  .certification-logo-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] {
    padding: 10px;
    border: 0;
    background: #f7f7f6;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > h3 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 16px;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 10px !important;
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #fff;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid .mobile-field {
    min-width: 0;
    max-width: 100%;
    gap: 5px;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid .mobile-field:nth-child(1),
  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid .mobile-field:nth-child(4),
  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid .mobile-field:nth-child(5) {
    grid-column: 1 / -1 !important;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid .mobile-field:nth-child(2) {
    grid-column: 1 !important;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid .mobile-field:nth-child(3) {
    grid-column: 2 !important;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid .mobile-field > span {
    color: #344054;
    font-size: 11px;
    font-weight: 850;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid input:not([type="file"]),
  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    border-color: #e2e6ec;
    border-radius: 8px;
    background-color: #fff;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid .repair-date-field {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    contain: inline-size;
    overflow: hidden;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid .repair-date-field input[type="date"] {
    position: relative;
    display: block !important;
    width: calc(100% - 4px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 4px) !important;
    height: 42px !important;
    min-height: 42px !important;
    justify-self: center;
    margin: 0 2px !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px !important;
    line-height: 1.2;
    text-align: center !important;
    text-align-last: center !important;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid .repair-date-field input[type="date"]::-webkit-date-and-time-value,
  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid .repair-date-field input[type="date"]::-webkit-datetime-edit {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid .repair-date-field input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid .repair-date-field input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid .mobile-field:nth-child(5) {
    margin-top: 2px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #fafafa;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .field-grid input[type="file"] {
    width: 100%;
    min-height: 76px;
    padding: 20px 10px;
    border: 1px dashed #c7ced8;
    border-radius: 8px;
    background: #fff;
    color: #667085;
    font-size: 11px;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .repair-accounting-toggle {
    min-height: 34px;
    margin: 0 0 8px;
    border-color: #d8dde5;
    border-radius: 8px;
    background: #fff;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .outline-action,
  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-entry-actions > .outline-action {
    width: 100%;
    min-width: 0;
    height: 38px;
    margin: 0 0 10px;
    border: 1px solid #d89a35;
    border-radius: 999px;
    background: #fff;
    color: #a56512;
    box-shadow: none;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-mode-toolbar {
    justify-content: flex-end;
    gap: 6px;
    margin: 0 0 10px;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-mode-toolbar button {
    min-height: 30px;
    padding: 0 11px;
    font-size: 11px;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table {
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #fff;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table > h4,
  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .company-fuel-records > h4 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 14px;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .company-fuel-records > h4 {
    font-size: 16px;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head):not(.repair-total-row) {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 0;
    margin: 0 0 8px;
    border: 1px solid #d9e0e8;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head):not(.repair-total-row) > * {
    min-height: 0;
    padding: 7px 8px;
    border: 0;
    background: transparent;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head):not(.repair-total-row) > *::before {
    display: inline;
    margin-right: 5px;
    color: #718096;
    font-size: 9px;
    font-weight: 800;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head):not(.repair-total-row) > *:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
    align-items: flex-start;
    border-right: 1px solid #edf0f4;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head):not(.repair-total-row) > *:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
    padding-top: 2px;
    color: #667085;
    font-size: 10px;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head):not(.repair-total-row) > *:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    padding-bottom: 2px;
    color: #172033;
    font-size: 12px;
    font-weight: 850;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head):not(.repair-total-row) > *:nth-child(4) {
    grid-column: 3;
    grid-row: 1 / 3;
    align-items: center;
    justify-content: flex-end;
    color: #172033;
    font-size: 16px;
    font-weight: 900;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head):not(.repair-total-row) > *:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 37px;
    padding: 5px 7px;
    border-top: 1px solid #edf0f4;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-row-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    margin: 0;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-row-actions button {
    width: 100%;
    min-width: 0;
    height: 27px;
    border-radius: 6px;
    font-size: 10px;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .repair-total-row {
    margin: 0 0 10px;
    border-color: #d5e5d2;
    border-radius: 9px;
    background: #f2f9ef;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .company-fuel-records {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .repair-accounting-toggle {
    display: flex;
    width: 100%;
    min-height: 30px;
    margin: 0 0 6px;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #344054;
    box-shadow: none;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .repair-accounting-toggle input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    border-radius: 4px;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .outline-action,
  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-entry-actions > .outline-action {
    height: 40px;
    margin-bottom: 8px;
    border-color: #dda13e;
    background: linear-gradient(180deg, #fff 0%, #fffcf7 100%);
    color: #a56512;
    font-size: 12px;
    font-weight: 900;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-mode-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
    margin: 0 0 10px;
    padding: 4px;
    border: 1px solid #e3e6eb;
    border-radius: 11px;
    background: #f4f5f7;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-mode-toolbar button {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 0 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #667085;
    box-shadow: none;
    font-size: 11px;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-mode-toolbar button.active {
    background: #10203a;
    color: #fff;
    box-shadow: 0 3px 8px rgba(16, 32, 58, 0.18);
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] > .modal-body > .manage-tabs {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 7px;
  }

  body:not(.desktop-page) .mobile-modal[data-modal="vehicle-manage"] > .modal-body > .manage-tabs button {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 3px;
    font-size: 11px;
    white-space: nowrap;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .repair-accounting-toggle {
    display: inline-flex !important;
    width: 108px;
    min-height: 36px;
    margin: 0 6px 10px 0;
    padding: 0 4px;
    vertical-align: top;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] > .outline-action {
    display: inline-flex;
    width: calc(100% - 118px);
    min-width: 0;
    height: 36px;
    margin: 0 0 10px;
    padding: 0 8px;
    vertical-align: top;
    font-size: 11px;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row.empty {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(54px, auto) !important;
    width: 100%;
    min-height: 54px;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row.empty > span:first-child {
    display: flex !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    min-height: 54px;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 12px;
    border: 0 !important;
    text-align: center !important;
    white-space: nowrap;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row.empty > span:first-child::before {
    content: none !important;
    display: none !important;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row.empty > span:not(:first-child) {
    display: none !important;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] input[list="repair-item-options"] {
    width: 100%;
    min-height: 42px;
    padding: 0 38px 0 12px;
    border: 1px solid #e2e6ec;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23344054' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 11px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    color: #344054;
    font: inherit;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] input[list="repair-item-options"]::-webkit-calendar-picker-indicator {
    width: 28px;
    height: 100%;
    margin: 0 -34px 0 0;
    opacity: 0;
    cursor: pointer;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] input[list="repair-item-options"]:focus {
    border-color: #c79039;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(199, 144, 57, 0.12);
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-photo-section {
    display: block;
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #fff;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-photo-section > header {
    display: flex;
    min-height: 30px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-photo-section > header > strong {
    color: #172033;
    font-size: 12px;
    font-weight: 900;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-photo-section .repair-accounting-toggle {
    display: inline-flex !important;
    width: auto;
    min-width: 0;
    min-height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #344054;
    font-size: 10px;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-photo-section .repair-accounting-toggle input {
    width: 15px !important;
    height: 15px !important;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-photo-field {
    position: relative;
    display: grid;
    min-height: 84px;
    place-content: center;
    justify-items: center;
    margin: 0 0 10px;
    border: 1px dashed #c7ced8;
    border-radius: 8px;
    background: #fff;
    color: #667085;
    cursor: pointer;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-photo-field::before {
    content: "▧";
    margin-bottom: 5px;
    color: #667085;
    font-size: 17px;
    line-height: 1;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-photo-field::after {
    content: "點擊上傳照片\A或拖曳檔案至此";
    color: #667085;
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
    white-space: pre;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-photo-field.has-preview {
    min-height: 150px;
    place-content: stretch;
    overflow: hidden;
    border-style: solid;
    border-color: #dda13e;
    background: #f7f8fa;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-photo-field.has-preview::before,
  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-photo-field.has-preview::after {
    display: none;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-photo-field [data-repair-photo-preview] {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #f7f8fa;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-photo-field [data-repair-photo-preview][hidden] {
    display: none;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-photo-field input[type="file"] {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .repair-photo-section > .outline-action {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    height: 36px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #dda13e;
    border-radius: 999px;
    background: #fff;
    color: #a56512;
    box-shadow: none;
    font-size: 11px;
    font-weight: 900;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head):not(.repair-total-row) {
    position: relative;
    grid-template-columns: 88px minmax(0, 1fr) auto;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head):not(.repair-total-row) > *:nth-child(1) {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10px;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head):not(.repair-total-row) > *:nth-child(1)::before {
    content: none !important;
    display: none !important;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row:not(.head):not(.repair-total-row) .repair-accounting-mark {
    position: static;
    min-width: 22px;
    height: 18px;
    margin: 0 0 0 5px;
    padding: 0 5px;
    font-size: 10px;
    vertical-align: middle;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row.repair-total-row > span:first-child::before,
  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row.company-fuel-total-row > span:first-child::before {
    content: none !important;
    display: none !important;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row.repair-total-row > strong,
  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row.company-fuel-total-row > strong {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row.repair-total-row,
  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row.company-fuel-total-row {
    grid-template-columns: 122px minmax(0, 1fr) !important;
    justify-content: start;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row.repair-total-row > span:first-child,
  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row.company-fuel-total-row > span:first-child {
    grid-column: 1 !important;
    width: auto;
    padding-right: 6px;
    padding-left: 8px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }

  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row.repair-total-row > strong,
  body:not(.desktop-page) .manage-panel[data-manage-panel="repair"] .record-table .table-row.company-fuel-total-row > strong {
    grid-column: 2 !important;
    width: auto;
    border-right: 0 !important;
  }
}
