:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #667085;
  --line: #d8dee8;
  --panel: #f5f7fb;
  --paper: #ffffff;
  --accent: #123a63;
  --accent-dark: #0b2542;
  --brand-red: #d92d20;
  --gold: #b7791f;
  --danger: #b42318;
  --shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #eef2f7;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

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

button,
.file-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button:hover,
.file-button:hover {
  border-color: #a8b4c4;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(18, 58, 99, 0.2);
}

.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.ghost {
  background: #ffffff;
  color: #344054;
}

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

.icon {
  width: 36px;
  padding: 0;
}

.file-button input {
  display: none;
}

.auth-screen {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(11, 37, 66, 0.96), rgba(18, 58, 99, 0.92)),
    #0b2542;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.auth-brand {
  color: var(--ink);
  margin-bottom: 8px;
}

.auth-brand strong {
  font-size: 22px;
}

.auth-brand small {
  color: var(--muted);
}

.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.sidebar {
  background: #0b1f3a;
  color: #f7faf8;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 62px;
  height: 54px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.auth-brand .brand-logo {
  width: 86px;
  height: 74px;
  border-color: var(--line);
}

.brand small {
  color: #aab8ca;
  display: block;
  margin-top: 2px;
}

.brand strong {
  letter-spacing: 0.01em;
}

nav {
  display: grid;
  gap: 7px;
}

.company-switcher {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.company-switcher span {
  color: #aab8ca;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.company-switcher select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: #0b2542;
  font-weight: 800;
}

.company-switcher .mini-link {
  min-height: 32px;
  justify-content: center;
  padding: 0 10px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: none;
}

.nav-button {
  justify-content: flex-start;
  background: transparent;
  border-color: transparent;
  color: #d8e2ef;
  width: 100%;
  box-shadow: none;
}

.nav-button.active {
  background: #ffffff;
  color: #ffffff;
  color: #0b2542;
  border-color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.storage-note {
  margin-top: auto;
  color: #d8e2ef;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.storage-note small {
  grid-column: 2;
  color: #aab8ca;
  display: block;
  font-size: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64d58a;
  box-shadow: 0 0 0 4px rgba(100, 213, 138, 0.12);
}

.status-dot.online {
  background: #56b6ff;
  box-shadow: 0 0 0 4px rgba(86, 182, 255, 0.16);
}

.sidebar-logout {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: none;
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.shell {
  position: relative;
  min-width: 0;
  padding: 32px;
  overflow-x: clip;
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 26px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  margin: 0 0 4px;
  color: #475467;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 0;
  letter-spacing: 0;
}

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

.backup-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sync-warning {
  display: block;
  margin-top: 8px;
  color: #b42318;
  font-weight: 800;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.settings-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.settings-card h3 {
  margin: 0 0 8px;
  color: #123a63;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}

.settings-card.is-disabled {
  opacity: 0.72;
}

.print-format {
  min-height: 42px;
  width: auto;
  min-width: 108px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.panel-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}

.panel-subhead h3 {
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #123a63;
  font-size: 12px;
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.metric,
.panel,
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.metric {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: var(--brand-red);
}

.metric small {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  font-size: 27px;
  line-height: 1.15;
  margin-top: 8px;
}

.dashboard-rich {
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 0%, rgba(79, 140, 255, 0.12), transparent 34%),
    linear-gradient(135deg, #0a1424 0%, #111f33 55%, #0c1625 100%);
  color: #f8fafc;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  max-width: 100%;
  overflow-x: hidden;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-hero span,
.dashboard-panel-head span,
.dashboard-card span,
.dashboard-list-row span,
.dashboard-list-row small,
.dashboard-progress-summary small {
  color: #9fb0c7;
}

.dashboard-hero span,
.dashboard-card small,
.dashboard-progress-summary small {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-hero h2 {
  margin: 4px 0 0;
  font-size: 28px;
  letter-spacing: 0;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-card,
.dashboard-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(22, 34, 52, 0.96), rgba(15, 25, 40, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 32px rgba(0, 0, 0, 0.18);
}

.dashboard-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 118px;
  padding: 17px;
}

.dashboard-card strong {
  display: block;
  margin: 7px 0 5px;
  font-size: 28px;
  line-height: 1.05;
}

.dashboard-card b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.24);
  color: #c4b5fd;
  font-size: 12px;
  text-transform: uppercase;
}

.dashboard-card.success b {
  background: rgba(50, 213, 131, 0.18);
  color: #86efac;
}

.dashboard-card.warning b {
  background: rgba(251, 113, 133, 0.18);
  color: #fecdd3;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 16px;
}

.dashboard-panel {
  padding: 18px;
  min-width: 0;
}

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

.dashboard-panel-head h3 {
  margin: 0;
  font-size: 17px;
}

.trips-overview {
  min-height: 300px;
}

.monthly-chart {
  min-height: 220px;
}

.monthly-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.monthly-chart text {
  fill: #9fb0c7;
  font-size: 13px;
}

.chart-grid {
  stroke: rgba(148, 163, 184, 0.14);
  stroke-width: 1;
}

.chart-area {
  fill: rgba(124, 92, 255, 0.28);
}

.chart-line {
  fill: none;
  stroke: #8b5cf6;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dot {
  fill: #a78bfa;
  stroke: #172033;
  stroke-width: 3;
}

.dashboard-progress-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.dashboard-progress-summary div {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.34);
}

.dashboard-progress-summary strong {
  display: block;
  margin-top: 6px;
}

.status-wrap {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.status-donut {
  width: min(190px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
}

.status-donut > div {
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: #101b2d;
}

.status-donut strong {
  font-size: 27px;
  line-height: 1;
}

.status-donut span {
  color: #9fb0c7;
  font-size: 12px;
}

.status-legend {
  display: grid;
  gap: 12px;
}

.status-legend div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  color: #dbe7f5;
}

.status-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-legend small {
  color: #9fb0c7;
}

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

.dashboard-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.28);
}

.dashboard-list-row strong,
.dashboard-list-row b {
  display: block;
}

.dashboard-list-row > div:last-child {
  text-align: right;
}

.invoice-shell {
  padding: 20px;
}

.invoice-form {
  display: grid;
  gap: 16px;
}

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

.invoice-trip-select input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.invoice-detail-wrap {
  display: grid;
  gap: 16px;
}

.invoice-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.invoice-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.invoice-edit-panel,
.invoice-preview {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.invoice-edit-panel {
  padding: 18px;
  max-height: calc(100vh - 180px);
  overflow: auto;
}

.invoice-edit-panel h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.invoice-side-form {
  display: grid;
  gap: 12px;
}

.invoice-side-form h3 {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  text-transform: uppercase;
  color: #475467;
}

.invoice-side-form label,
.invoice-form label {
  display: grid;
  gap: 6px;
}

.invoice-side-form span,
.invoice-form span {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.invoice-side-form input,
.invoice-side-form select,
.invoice-side-form textarea,
.invoice-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
}

.invoice-side-form textarea {
  min-height: 92px;
  resize: vertical;
}

.check-line {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.check-line input {
  width: 18px;
  min-height: 18px;
}

.invoice-preview {
  padding: 16px;
  overflow: auto;
}

.invoice-preview.is-scaled {
  position: relative;
  overflow: hidden;
}

.invoice-preview .hind-invoice-document {
  transform-origin: top left;
}

.invoice-preview.is-scaled .hind-invoice-document {
  position: absolute;
  top: 16px;
  left: 16px;
}

.invoice-document {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid #cfd6e3;
  background: #ffffff;
  color: #101828;
  font-family: Arial, sans-serif;
}

.invoice-doc-header {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(150px, auto);
  gap: 18px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--accent);
}

.invoice-doc-header img {
  width: 78px;
  height: 68px;
  object-fit: contain;
}

.invoice-doc-header h2 {
  margin: 0 0 6px;
  font-size: 30px;
  text-transform: uppercase;
  color: var(--accent);
}

.invoice-doc-header p,
.invoice-doc-grid p,
.invoice-doc-bottom p {
  margin: 0 0 5px;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.invoice-doc-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.invoice-doc-meta strong {
  color: var(--brand-red);
  font-size: 15px;
  text-transform: uppercase;
}

.invoice-doc-meta span {
  font-size: 24px;
  font-weight: 800;
}

.invoice-doc-grid,
.invoice-doc-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.invoice-doc-grid > div,
.invoice-doc-bottom > div {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 14px;
}

.invoice-document h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
}

.invoice-doc-grid strong {
  display: block;
  margin-bottom: 6px;
}

.invoice-doc-grid p span,
.invoice-doc-bottom p span,
.invoice-total-box p span {
  color: #667085;
  font-weight: 700;
}

.invoice-doc-grid p {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
}

.invoice-doc-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 12px;
}

.invoice-doc-table th {
  background: var(--accent);
  color: #ffffff;
  text-align: left;
}

.invoice-doc-table th,
.invoice-doc-table td {
  border: 1px solid #cfd6e3;
  padding: 8px;
  vertical-align: top;
}

.invoice-total-box {
  background: #f8fafc;
}

.invoice-total-box p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e4e9f2;
}

.invoice-total-box p.strong {
  font-size: 16px;
  color: var(--accent);
}

.invoice-total-box small {
  display: block;
  margin-top: 10px;
  color: #667085;
}

.invoice-signature {
  display: grid;
  justify-items: end;
  gap: 28px;
  margin-top: 28px;
  color: #344054;
}

.invoice-signature strong {
  border-top: 1px solid #98a2b3;
  padding-top: 8px;
}

.invoice-zoho {
  display: grid;
  gap: 16px;
}

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

.invoice-summary-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.invoice-summary-card small {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.invoice-summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
}

.invoice-summary-card.warning strong {
  color: var(--danger);
}

.invoice-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.invoice-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #123a63;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.invoice-status.status-paid {
  background: #ecfdf3;
  color: #027a48;
}

.invoice-status.status-overdue,
.invoice-status.status-void {
  background: #fff1f0;
  color: var(--danger);
}

.invoice-status.status-draft {
  background: #f2f4f7;
  color: #475467;
}

.invoice-status.status-partially-paid {
  background: #fffaeb;
  color: #b54708;
}

.zoho-invoice-form {
  display: grid;
  gap: 16px;
}

.zoho-form-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.zoho-form-card label {
  display: grid;
  gap: 6px;
}

.zoho-form-card span {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.zoho-form-card input,
.zoho-form-card select,
.zoho-form-card textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #ffffff;
}

.zoho-form-card textarea {
  min-height: 72px;
  resize: vertical;
}

.zoho-line-table textarea {
  min-height: 54px;
}

.zoho-line-table input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

.invoice-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.invoice-settings-logo-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.invoice-settings-logo-row img {
  width: 120px;
  height: 96px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.invoice-fixed-note {
  padding: 12px;
  border: 1px dashed #b6c2d2;
  border-radius: 8px;
  background: #f8fbff;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.zoho-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 16px;
  align-items: start;
}

.invoice-total-panel {
  display: grid;
  gap: 10px;
}

.inline-total-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 10px;
  align-items: center;
}

.zoho-sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 -8px 22px rgba(16, 24, 40, 0.08);
}

.invoice-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.invoice-detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.invoice-side-summary {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.invoice-side-summary h2 {
  margin: 0;
}

.invoice-side-summary h3 {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #475467;
  font-size: 13px;
  text-transform: uppercase;
}

.invoice-payment-list {
  display: grid;
  gap: 8px;
}

.invoice-payment-list div {
  display: grid;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.invoice-payment-list div strong {
  color: #0f172a;
}

.invoice-payment-list div span,
.invoice-payment-list div small {
  color: #64748b;
  font-size: 12px;
}

.manual-invoice-entry-table {
  min-width: 1120px;
}

.manual-invoice-entry-table th,
.manual-invoice-entry-table td {
  padding: 8px;
  vertical-align: middle;
}

.manual-invoice-entry-table input {
  min-width: 92px;
  border-radius: 6px;
}

.manual-invoice-entry-table td:nth-child(1) {
  width: 44px;
  text-align: center;
  font-weight: 800;
}

.hind-invoice-document {
  --invoice-orange: #f15a00;
  --invoice-green: #08742a;
  --invoice-black: #101418;
  --invoice-line: #b8bec7;
  --invoice-soft: #f8fafc;
  width: 980px;
  max-width: none;
  min-width: 980px;
  color: #05070a;
  border: 0;
  padding: 12px 14px 8px;
  font-size: 12px;
  box-shadow: none;
  background: #ffffff;
}

.hind-invoice-document.theme-executive {
  --invoice-green: #0f3f2d;
  --invoice-black: #0b1220;
  --invoice-line: #aeb7c5;
  --invoice-soft: #f4f7fb;
}

.hind-invoice-document.theme-minimal {
  --invoice-green: #111827;
  --invoice-black: #111827;
  --invoice-line: #d4d8df;
  --invoice-soft: #ffffff;
}

.hind-invoice-document.theme-ledger {
  --invoice-green: #334155;
  --invoice-black: #1f2937;
  --invoice-line: #9ca3af;
  --invoice-soft: #f9fafb;
}

.hind-invoice-document.font-small {
  font-size: 11px;
}

.hind-invoice-document.font-large {
  font-size: 13px;
}

.hind-invoice-modern-head {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 250px;
  gap: 18px;
  align-items: center;
  min-height: 255px;
  padding: 24px 0 18px;
}

.hind-invoice-document.density-compact .hind-invoice-modern-head {
  min-height: 190px;
  padding: 14px 0 12px;
}

.hind-invoice-document.density-spacious .hind-invoice-modern-head {
  min-height: 290px;
  padding: 34px 0 28px;
}

.hind-invoice-template-head {
  grid-auto-flow: row;
}

.hind-header-block {
  min-width: 0;
}

.hind-header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 150px;
  border-right: 2px solid #555b63;
}

.hind-header-logo img {
  width: 260px;
  height: 175px;
  object-fit: contain;
}

.hind-invoice-document.logo-medium .hind-invoice-modern-head {
  grid-template-columns: 245px minmax(0, 1fr) 265px;
  min-height: 235px;
}

.hind-invoice-document.logo-medium .hind-header-logo img {
  width: 205px;
  height: 138px;
}

.hind-invoice-document.logo-extraLarge .hind-invoice-modern-head {
  grid-template-columns: 330px minmax(0, 1fr) 235px;
  min-height: 275px;
}

.hind-invoice-document.logo-extraLarge .hind-header-logo img {
  width: 310px;
  height: 205px;
}

.hind-invoice-document.layout-balanced .hind-invoice-modern-head {
  grid-template-columns: 285px minmax(0, 1fr) 245px;
}

.hind-invoice-document.layout-compact .hind-invoice-modern-head {
  grid-template-columns: 205px minmax(0, 1fr) 210px;
  min-height: 180px;
  padding: 16px 0 14px;
}

.hind-invoice-document.layout-compact .hind-header-logo {
  min-height: 125px;
}

.hind-invoice-document.layout-compact .hind-header-logo img {
  width: 175px;
  height: 115px;
}

.hind-invoice-document.layout-compact .hind-header-contact {
  gap: 8px;
}

.hind-header-title {
  display: grid;
  gap: 4px;
  text-align: center;
  text-transform: uppercase;
}

.hind-header-title strong,
.hind-header-title span {
  display: block;
  font-weight: 1000;
  line-height: 0.95;
  letter-spacing: 0.08em;
}

.hind-header-title strong {
  color: var(--invoice-orange);
  font-size: 56px;
}

.hind-header-title span {
  color: var(--invoice-green);
  font-size: 42px;
}

.hind-header-contact {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 120px;
}

.hind-invoice-template-head .hind-header-contact,
.hind-invoice-template-head .hind-tax-info {
  grid-column: span 1;
}

.hind-invoice-template-head .hind-tax-info {
  width: auto;
  align-content: center;
}

.hind-invoice-badge {
  overflow: hidden;
  border-radius: 6px;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.12);
}

.hind-invoice-document.border-soft .hind-invoice-badge,
.hind-invoice-document.border-soft .hind-invoice-card,
.hind-invoice-document.border-soft .hind-modern-box,
.hind-invoice-document.border-soft .hind-modern-signature,
.hind-invoice-document.border-soft .hind-modern-total,
.hind-invoice-document.border-soft .hind-invoice-footer {
  border-color: #d8dee8;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.hind-invoice-document.border-line .hind-invoice-badge,
.hind-invoice-document.border-line .hind-invoice-card,
.hind-invoice-document.border-line .hind-modern-box,
.hind-invoice-document.border-line .hind-modern-signature,
.hind-invoice-document.border-line .hind-modern-total,
.hind-invoice-document.border-line .hind-invoice-footer {
  border-radius: 0;
  box-shadow: none;
}

.hind-invoice-badge strong,
.hind-invoice-badge span {
  display: block;
  padding: 12px;
  color: #ffffff;
}

.hind-invoice-badge strong {
  background: linear-gradient(135deg, #0b0f14, #1d242b);
  font-size: 34px;
  letter-spacing: 0.04em;
}

.hind-invoice-badge span {
  background: var(--invoice-orange);
  font-size: 24px;
  font-weight: 900;
  text-transform: none;
}

.hind-invoice-company-grid {
  display: flex;
  justify-content: flex-end;
  min-height: 78px;
  padding: 0 14px 16px;
  border-bottom: 2px solid #24272b;
}

.hind-company-info {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
}

.hind-info-icon {
  color: var(--invoice-orange);
  font-size: 24px;
  line-height: 1;
}

.hind-company-info strong,
.hind-tax-info span,
.hind-tax-info strong {
  font-weight: 900;
}

.hind-company-info p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.hind-tax-info {
  display: grid;
  width: 300px;
  gap: 10px;
}

.hind-tax-info p {
  display: grid;
  grid-template-columns: 92px 14px minmax(0, 1fr);
  margin: 0;
  gap: 8px;
}

.hind-invoice-card-grid {
  display: grid;
  grid-template-columns: 475px 475px;
  gap: 24px;
  margin: 20px 0 18px;
}

.hind-invoice-document.density-compact .hind-invoice-card-grid {
  gap: 16px;
  margin: 14px 0;
}

.hind-invoice-document.density-spacious .hind-invoice-card-grid {
  gap: 28px;
  margin: 26px 0 22px;
}

.hind-invoice-card {
  position: relative;
  border: 1px solid #848b96;
  border-radius: 5px;
  height: 240px;
}

.hind-invoice-document.density-compact .hind-invoice-card {
  height: 205px;
}

.hind-invoice-document.density-spacious .hind-invoice-card {
  height: 255px;
}

.hind-invoice-card h3 {
  position: absolute;
  top: -1px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, #090d11, #1a2026);
  color: #ffffff;
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
}

.hind-invoice-card h3 span,
.hind-modern-box h3 span {
  color: var(--invoice-orange);
}

.hind-invoice-card-body {
  padding: 58px 22px 18px;
  font-size: 15px;
  line-height: 1.6;
}

.hind-invoice-card-body strong {
  display: block;
  margin-bottom: 16px;
  font-size: 17px;
  text-transform: uppercase;
}

.hind-detail-table {
  padding-top: 36px;
}

.hind-detail-table p {
  display: grid;
  grid-template-columns: minmax(145px, 0.8fr) minmax(0, 1.1fr);
  margin: 0;
  border-top: 1px solid #c7ccd4;
}

.hind-detail-table p span,
.hind-detail-table p strong {
  padding: 10px 16px;
}

.hind-detail-table p span {
  border-right: 1px solid #c7ccd4;
  font-weight: 900;
}

.hind-detail-table p strong {
  font-weight: 500;
}

.hind-invoice-lines {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  table-layout: fixed;
  overflow: hidden;
  border: 1px solid var(--invoice-line);
  border-radius: 5px;
}

.hind-invoice-lines th,
.hind-invoice-lines td {
  border-right: 1px solid var(--invoice-line);
  border-bottom: 1px solid var(--invoice-line);
  padding: 11px 8px;
  color: #05070a;
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
}

.hind-invoice-lines th:last-child,
.hind-invoice-lines td:last-child {
  border-right: 0;
}

.hind-invoice-lines thead th {
  height: 62px;
  background: linear-gradient(135deg, #0b1015, #1d242c);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.hind-invoice-document.table-accent .hind-invoice-lines thead th {
  background: linear-gradient(135deg, var(--invoice-orange), #c74300);
}

.hind-invoice-document.table-minimal .hind-invoice-lines thead th {
  background: #ffffff;
  color: #0f172a;
  border-bottom: 2px solid var(--invoice-black);
}

.hind-invoice-document.table-minimal .hind-invoice-lines {
  border-radius: 0;
}

.hind-invoice-document.density-compact .hind-invoice-lines th,
.hind-invoice-document.density-compact .hind-invoice-lines td {
  padding: 8px 6px;
}

.hind-invoice-document.density-spacious .hind-invoice-lines th,
.hind-invoice-document.density-spacious .hind-invoice-lines td {
  padding: 13px 9px;
}

.hind-invoice-lines .blank-row td {
  height: 40px;
}

.hind-invoice-lower-grid {
  display: grid;
  grid-template-columns: 565px 390px;
  gap: 24px;
  margin-top: 22px;
}

.hind-invoice-document.density-compact .hind-invoice-lower-grid {
  gap: 16px;
  margin-top: 16px;
}

.hind-invoice-document.density-spacious .hind-invoice-lower-grid {
  gap: 28px;
  margin-top: 28px;
}

.hind-left-stack,
.hind-right-stack {
  display: grid;
  gap: 14px;
}

.hind-modern-box,
.hind-modern-signature,
.hind-modern-total {
  border: 1px solid #a5abb5;
  border-radius: 5px;
  background: var(--invoice-soft);
}

.hind-modern-box {
  padding: 18px 22px;
}

.hind-modern-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 16px;
  text-transform: uppercase;
}

.hind-modern-box.amount-words {
  position: relative;
  height: 170px;
  overflow: hidden;
}

.hind-modern-box.amount-words strong {
  display: block;
  font-size: 19px;
}

.hind-modern-box.amount-words em {
  position: absolute;
  right: 36px;
  bottom: 18px;
  color: rgba(16, 24, 40, 0.045);
  font-size: 76px;
  font-style: italic;
  font-weight: 1000;
}

.bank-box p {
  display: grid;
  grid-template-columns: 110px 14px minmax(0, 1fr);
  gap: 8px;
  margin: 8px 0;
}

.bank-box strong {
  font-weight: 900;
}

.remarks-box {
  min-height: 80px;
}

.hind-modern-total {
  overflow: hidden;
}

.hind-modern-total p {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(130px, 0.8fr);
  margin: 0;
  border-bottom: 1px solid #c8cdd5;
}

.hind-modern-total p:last-child {
  border-bottom: 0;
}

.hind-modern-total span,
.hind-modern-total strong {
  padding: 10px 18px;
  font-size: 15px;
}

.hind-modern-total strong {
  border-left: 1px solid #c8cdd5;
  text-align: right;
}

.hind-modern-total .grand {
  background: var(--invoice-orange);
  color: #ffffff;
}

.hind-modern-total .grand span,
.hind-modern-total .grand strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 1000;
  text-transform: uppercase;
}

.hind-modern-signature {
  display: grid;
  justify-items: center;
  height: 245px;
  padding: 18px;
  text-align: center;
}

.stamp-circle {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-top: 10px;
  border: 4px solid #154bb4;
  border-radius: 50%;
  color: #154bb4;
  font-size: 30px;
  font-weight: 1000;
}

.signature-line {
  width: 220px;
  height: 46px;
  border-bottom: 2px solid #61656d;
}

.hind-modern-signature b {
  font-size: 15px;
}

.hind-invoice-footer {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.6fr;
  margin: 16px 0 8px;
  border: 1px solid #a5abb5;
  border-radius: 5px;
}

.hind-invoice-footer span {
  padding: 12px;
  border-right: 1px solid #a5abb5;
  text-align: center;
  font-weight: 800;
}

.hind-invoice-footer span:last-child {
  border-right: 0;
}

.exact-sample-invoice {
  --invoice-green: #08742a;
  --invoice-black: #101418;
  --invoice-line: #b8bec7;
  --invoice-soft: #ffffff;
  padding: 12px 14px 8px;
  font-size: 12px;
}

.exact-sample-head {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr) 265px;
  gap: 24px;
  align-items: center;
  min-height: 185px;
  padding: 26px 0 22px;
}

.exact-sample-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 130px;
  border-right: 2px solid #555b63;
}

.exact-sample-logo img {
  width: 205px;
  height: 140px;
  object-fit: contain;
}

.exact-sample-company-title {
  display: grid;
  gap: 4px;
  text-align: center;
  text-transform: uppercase;
}

.exact-sample-company-title strong,
.exact-sample-company-title span {
  display: block;
  font-weight: 1000;
  line-height: 0.95;
  letter-spacing: 0.08em;
}

.exact-sample-company-title strong {
  color: var(--invoice-orange);
  font-size: 58px;
}

.exact-sample-company-title span {
  color: var(--invoice-green);
  font-size: 45px;
}

.exact-sample-company-row {
  display: grid;
  grid-template-columns: 320px 320px 260px;
  gap: 24px;
  min-height: 145px;
  padding: 0 14px 20px;
  border-bottom: 2px solid #24272b;
}

.exact-sample-contact {
  align-content: center;
}

.exact-sample-tax {
  align-content: center;
  width: auto;
}

.exact-sample-invoice .hind-invoice-card-grid {
  grid-template-columns: 475px 475px;
  gap: 24px;
  margin: 20px 0 18px;
}

.exact-sample-invoice .hind-invoice-card {
  height: 240px;
  border-radius: 5px;
  box-shadow: none;
}

.exact-sample-invoice .hind-invoice-lines {
  margin-top: 0;
}

.exact-sample-invoice .hind-invoice-lower-grid {
  grid-template-columns: 565px 390px;
  gap: 24px;
  margin-top: 22px;
}

.exact-sample-amount-row .hind-left-stack,
.exact-sample-bank-row .hind-left-stack,
.exact-sample-amount-row .hind-right-stack,
.exact-sample-bank-row .hind-right-stack {
  align-content: start;
}

.exact-sample-invoice .hind-modern-box,
.exact-sample-invoice .hind-modern-signature,
.exact-sample-invoice .hind-modern-total,
.exact-sample-invoice .hind-invoice-footer {
  background: #ffffff;
  border-color: #a5abb5;
  border-radius: 5px;
  box-shadow: none;
}

.exact-sample-invoice .amount-words {
  height: 170px;
}

.exact-sample-invoice .hind-modern-signature {
  height: 245px;
}

.dark-empty {
  background: rgba(15, 23, 42, 0.24);
  color: #9fb0c7;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 18px;
}

.panel {
  padding: 20px;
}

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

.panel-header h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.search {
  min-width: 240px;
  flex: 1;
  direction: ltr;
  text-align: left;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 13px;
  color: var(--ink);
  min-height: 46px;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #123a63;
  box-shadow: 0 0 0 4px rgba(18, 58, 99, 0.1);
  outline: none;
}

.date-field {
  position: relative;
}

.date-picker-input {
  min-height: 48px;
  font-size: 17px;
  max-width: 360px;
  cursor: pointer;
}

.date-picker-popover {
  width: min(430px, 100%);
  margin-top: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(23, 33, 29, 0.18);
  z-index: 5;
}

.date-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.date-picker-head strong {
  font-size: 18px;
}

.date-weekdays,
.date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.date-weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.date-day,
.date-empty {
  width: 100%;
  aspect-ratio: 1;
  min-height: 42px;
}

.date-day {
  padding: 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
}

.date-day.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

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

th {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  background: #f3f6fa;
}

tbody tr:hover {
  background: #f8fafc;
}

.address-lines {
  display: block;
  max-width: 260px;
  line-height: 1.45;
}

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

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.list-table-scroll {
  max-height: min(492px, 58vh);
  overflow: auto;
  scrollbar-gutter: stable;
}

.list-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  box-shadow: 0 1px 0 #dbe3ef, 0 8px 14px rgba(15, 23, 42, 0.06);
}

.suppliers-list-scroll table {
  min-width: 980px;
}

.trips-table-scroll {
  max-height: calc(100dvh - 330px);
  min-height: 360px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.trips-table {
  min-width: 1320px;
}

.trips-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  box-shadow: 0 1px 0 #dbe3ef, 0 8px 14px rgba(15, 23, 42, 0.06);
}

.trips-table th,
.trips-table td {
  white-space: nowrap;
}

.trips-table .lr-cell {
  min-width: 130px;
}

.trips-table .date-cell {
  min-width: 118px;
}

.trips-table .status-cell {
  min-width: 130px;
}

.trips-table .truck-cell {
  min-width: 135px;
}

.trips-table .route-cell,
.trips-table .party-cell {
  min-width: 190px;
  white-space: normal;
}

.trips-table .actions-heading,
.trips-table .actions-cell {
  position: sticky;
  right: 0;
  z-index: 1;
  min-width: 116px;
  background: var(--paper);
  box-shadow: -10px 0 16px rgba(15, 23, 42, 0.08);
}

.trips-table .actions-heading {
  z-index: 4;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
}

.trip-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
}

.empty {
  color: var(--muted);
  padding: 34px;
  text-align: center;
  border: 1px dashed #b8c2d0;
  border-radius: 8px;
  background: #f8fafc;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  background: #e9f2ff;
  color: #123a63;
  font-size: 13px;
  font-weight: 800;
}

.lr-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 120px;
}

.lr-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #cfd8e6;
  border-radius: 999px;
  background: #f8fafc;
  color: #123a63;
  font-size: 12px;
  font-weight: 800;
}

.amount-positive {
  color: #067647;
  font-weight: 700;
}

.amount-negative {
  color: var(--danger);
  font-weight: 700;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  padding: 16px;
}

.card h3 {
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

.report-controls {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.report-controls h2,
.report-controls p {
  margin: 0;
}

.report-controls label {
  width: min(260px, 100%);
}

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

.trip-filters {
  display: grid;
  grid-template-columns: repeat(8, minmax(126px, 1fr));
  gap: 12px;
  align-items: end;
  position: sticky;
  top: 14px;
  z-index: 10;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.trip-filters label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
}

.trip-filters label span {
  min-height: 16px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.trip-filters input,
.trip-filters select {
  height: 46px;
  min-height: 46px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.trip-filters [data-clear-trip-filters] {
  width: 100%;
  height: 46px;
  min-height: 46px;
  align-self: end;
}

@media (max-width: 1500px) {
  .trip-filters {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
  }
}

@media (max-width: 1180px) {
  .trip-filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

.report-document {
  margin-bottom: 18px;
  color: #111827;
}

.report-heading {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-bottom: 2px solid #1f2937;
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.report-heading img {
  width: 96px;
  height: 82px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-heading h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.report-heading p {
  margin: 0 0 6px;
  color: var(--muted);
}

.report-summary {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.report-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 4px 0;
}

.report-line strong {
  font-size: 17px;
  white-space: nowrap;
}

.report-line.strong {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.report-sub-line {
  padding-left: 26px;
  color: #374151;
}

.report-notes {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 18px;
}

.report-notes ol {
  margin: 8px 0 0;
  padding-left: 22px;
  color: #374151;
}

.report-notes li {
  margin: 4px 0;
}

.report-table-wrap {
  overflow: visible;
}

.report-table-wrap h3 {
  margin-bottom: 12px;
}

.report-table-scroll {
  max-height: min(492px, 58vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  -webkit-overflow-scrolling: touch;
}

.report-table-scroll table {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.report-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  box-shadow: 0 1px 0 #dbe3ef, 0 8px 14px rgba(15, 23, 42, 0.06);
}

.report-trip-table {
  min-width: 1120px;
  font-size: 13px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.audit-history-scroll table {
  min-width: 980px;
}

.report-trip-table th,
.report-trip-table td {
  padding: 9px;
}

.report-total-row td {
  font-weight: 800;
  background: #f5f8f6;
}

.report-footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

dialog {
  width: min(760px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(16, 24, 40, 0.34);
}

dialog::backdrop {
  background: rgba(11, 31, 58, 0.52);
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.dialog-header h2 {
  margin: 0;
  font-size: 20px;
}

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

.form-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: #fbfcfe;
}

.form-grid > label,
.form-grid .date-field > label,
.trip-vehicle-field label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
}

.form-grid > label > span,
.form-grid .date-field > label > span,
.trip-vehicle-field label > span {
  display: block;
  min-height: 17px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
}

.form-grid input,
.form-grid select {
  height: 46px;
  min-height: 46px;
}

.form-grid select {
  line-height: 1.2;
}

.form-section-title {
  grid-column: 1 / -1;
  padding: 14px 0 4px;
  border-bottom: 1px solid var(--line);
  color: #123a63;
  font-size: 15px;
  font-weight: 800;
}

.form-error {
  margin: 14px 18px 0;
  padding: 10px 12px;
  border: 1px solid #f4b8b1;
  border-radius: 8px;
  background: #fff1f0;
  color: var(--danger);
  font-weight: 700;
}

.expense-builder {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.expense-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.expense-builder-head span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.expense-rows {
  display: grid;
  gap: 10px;
}

.expense-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(150px, 1fr) minmax(110px, 0.7fr) auto;
  gap: 10px;
  align-items: center;
}

.payment-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(150px, 0.9fr) minmax(120px, 0.7fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.permissions-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.trip-vehicle-field {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.permission-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px 14px;
}

.permission-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.permission-option input {
  width: auto;
}

.permission-option span {
  margin: 0;
  color: var(--ink);
}

.permission-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.expense-row [hidden] {
  display: none;
}

.attachment-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.attachment-note,
.attachment-empty,
.attachment-item span {
  color: var(--muted);
  font-size: 13px;
}

.attachment-note {
  margin-top: 8px;
}

.attachment-list,
.attachment-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.attachment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.attachment-item a,
.attachment-links a {
  color: var(--accent-dark);
  font-weight: 700;
  word-break: break-word;
}

.attachment-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--danger);
  font-size: 13px;
  white-space: nowrap;
}

.attachment-remove input {
  width: auto;
}

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

label span {
  display: block;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.field-hint {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 6px;
}

.inline-add {
  width: 100%;
  margin-top: 8px;
}

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

/* Premium visual refresh: appearance-only overrides. */
:root {
  --ink: #101827;
  --muted: #64748b;
  --line: #dce4ef;
  --panel: #f4f7fb;
  --paper: #ffffff;
  --accent: #0f3a5f;
  --accent-dark: #08243f;
  --brand-red: #ef5b17;
  --gold: #c7922e;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.06), 0 16px 38px rgba(15, 23, 42, 0.08);
}

body {
  background:
    radial-gradient(circle at top left, rgba(239, 91, 23, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(15, 58, 95, 0.18), transparent 36%),
    linear-gradient(135deg, #f8fafc 0%, #eef3f9 52%, #f7f9fc 100%);
}

button,
.file-button {
  min-height: 44px;
  border-radius: 11px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

button:hover,
.file-button:hover {
  border-color: #9baabc;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.primary {
  background: linear-gradient(135deg, #123f67 0%, #08243f 100%);
  border-color: #123f67;
  box-shadow: 0 14px 30px rgba(15, 58, 95, 0.24);
}

.primary:hover {
  background: linear-gradient(135deg, #0f3659 0%, #061d34 100%);
}

.ghost {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.auth-screen {
  background:
    radial-gradient(circle at 30% 20%, rgba(239, 91, 23, 0.26), transparent 28%),
    radial-gradient(circle at 74% 16%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(135deg, #07162a 0%, #0f355a 54%, #061322 100%);
}

.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    var(--paper);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.32);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.96)),
    #ffffff;
  color: #0b1f3a;
  border-right: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 18px 0 46px rgba(15, 23, 42, 0.08);
}

.brand-logo {
  width: 68px;
  height: 68px;
  padding: 5px;
  border-radius: 16px;
  border-color: rgba(203, 213, 225, 0.92);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.auth-brand .brand-logo {
  width: 98px;
  height: 98px;
}

.brand strong {
  color: #0b1f3a;
  font-weight: 900;
}

.brand small {
  color: #64748b;
}

.company-switcher,
.storage-note,
.sidebar-logout {
  border-radius: 14px;
  border-color: rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.storage-note {
  color: #0b1f3a;
}

.company-switcher span,
.storage-note small {
  color: #64748b;
}

.company-switcher .mini-link,
.sidebar-logout {
  color: #0b1f3a;
  background: #f8fafc;
  border-color: #dbe3ef;
}

.company-switcher .mini-link:hover,
.sidebar-logout:hover {
  background: #eef5fb;
  border-color: #cbd5e1;
}

.nav-button {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 13px;
  font-weight: 800;
  color: #334155;
}

.nav-button:hover {
  background: rgba(239, 91, 23, 0.08);
  color: #0b1f3a;
  transform: translateX(3px);
}

.nav-button.active {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border-color: rgba(239, 91, 23, 0.32);
  color: #0b1f3a;
  box-shadow: 0 14px 28px rgba(239, 91, 23, 0.12);
}

.shell {
  padding: 34px;
}

.topbar {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 255, 0.9)),
    var(--paper);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 900;
  color: #0b1f3a;
}

.panel,
.metric,
.card {
  border-color: rgba(203, 213, 225, 0.9);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96)),
    var(--paper);
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 24px;
}

.metric {
  padding: 22px;
}

.metric::before {
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-red), #f59e0b);
}

.metric strong {
  color: #0b1f3a;
}

.dashboard-rich {
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(239, 91, 23, 0.1), transparent 32%),
    radial-gradient(circle at 88% 6%, rgba(16, 91, 153, 0.1), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 52%, #eef5fb 100%);
  color: #0b1f3a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.dashboard-card,
.dashboard-panel {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.98));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.dashboard-hero span,
.dashboard-panel-head span,
.dashboard-card span,
.dashboard-list-row span,
.dashboard-list-row small,
.dashboard-progress-summary small,
.monthly-chart text,
.status-donut span,
.status-legend small {
  color: #64748b;
}

.dashboard-card strong,
.dashboard-panel-head h3,
.status-donut strong,
.status-legend div,
.dashboard-list-row strong,
.dashboard-list-row b {
  color: #0b1f3a;
}

.chart-grid {
  stroke: rgba(100, 116, 139, 0.18);
}

.chart-area {
  fill: rgba(239, 91, 23, 0.16);
}

.chart-line {
  stroke: #ef5b17;
}

.chart-dot {
  fill: #ff8a3d;
  stroke: #ffffff;
}

.dashboard-progress-summary div,
.dashboard-list-row {
  border-color: rgba(203, 213, 225, 0.82);
  background: rgba(255, 255, 255, 0.74);
}

.dashboard-search-panel,
.attention-panel {
  margin-bottom: 16px;
}

.global-search-input {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
}

.global-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.global-result,
.attention-card {
  appearance: none;
  text-align: left;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #0b1f3a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.global-result {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.global-result span,
.attention-card small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.global-result strong,
.attention-card strong {
  color: #0b1f3a;
  font-size: 18px;
}

.global-result small,
.attention-card span {
  color: #64748b;
  line-height: 1.35;
}

.global-result:hover,
.attention-card:hover {
  border-color: rgba(239, 91, 23, 0.45);
  transform: translateY(-1px);
}

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

.attention-card {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 14px;
  min-width: 0;
  align-content: start;
  white-space: normal;
  overflow: hidden;
}

.attention-card small,
.attention-card strong,
.attention-card span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.attention-card.warning {
  border-color: rgba(239, 91, 23, 0.32);
  background: linear-gradient(180deg, #fff8f2, #ffffff);
}

.attention-card.success {
  border-color: rgba(22, 163, 74, 0.26);
  background: linear-gradient(180deg, #f5fff9, #ffffff);
}

.ledger-statement-scroll table {
  min-width: 1060px;
}

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

.safety-item {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 12px;
  background: #ffffff;
}

.safety-item.warning {
  border-color: rgba(239, 91, 23, 0.28);
  background: #fff8f2;
}

.safety-item span {
  color: #64748b;
}

.status-donut > div {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.85);
}

input,
select,
textarea {
  border-radius: 11px;
  border-color: #d9e2ee;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #0f3a5f;
  box-shadow: 0 0 0 4px rgba(15, 58, 95, 0.12), inset 0 1px 2px rgba(16, 24, 40, 0.03);
}

.date-picker-popover,
.expense-builder,
.file-attachments {
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

table {
  border-color: #dbe3ef;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

th {
  color: #334155;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
}

td,
th {
  border-bottom-color: #e2e8f0;
}

tbody tr:hover {
  background: #f6f9fc;
}

dialog {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 36px 110px rgba(15, 23, 42, 0.38);
  overflow: hidden;
  max-height: calc(100dvh - 36px);
}

dialog form {
  max-height: calc(100dvh - 36px);
  display: flex;
  flex-direction: column;
}

#entryDialog {
  max-height: calc(100dvh - 28px);
}

#entryForm {
  width: 100%;
  max-height: calc(100dvh - 28px);
}

#formFields {
  min-height: 0;
  max-height: calc(100dvh - 174px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

dialog::backdrop {
  background: rgba(7, 22, 42, 0.58);
  backdrop-filter: blur(4px);
}

.dialog-header,
.dialog-actions {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.form-grid {
  background:
    radial-gradient(circle at top right, rgba(15, 58, 95, 0.06), transparent 34%),
    #fbfcfe;
}

.toolbar {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.search {
  background: #ffffff;
}

.card {
  padding: 18px;
}

.card h3 {
  color: #123a63;
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
    height: auto;
    max-height: 100vh;
    padding: 14px;
  }

  nav {
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .storage-note {
    display: none;
  }

  .topbar,
  .grid-2,
  .report-controls,
  .dashboard-grid,
  .status-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .trip-filters {
    top: 8px;
  }

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

}

@media (max-width: 640px) {
  .shell {
    padding: 18px;
  }

  .trip-filters {
    position: static;
  }

  h1 {
    font-size: 25px;
  }

  .metrics,
  .cards,
  .dashboard-cards,
  .dashboard-progress-summary,
  .trip-vehicle-field,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-rich {
    padding: 14px;
  }

  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .dashboard-list-row > div:last-child {
    text-align: left;
  }

  .expense-row {
    grid-template-columns: 1fr;
  }

  .payment-row {
    grid-template-columns: 1fr;
  }

  .attachment-item {
    grid-template-columns: 1fr;
  }

  .report-heading {
    grid-template-columns: 1fr;
  }

  .report-line {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .report-sub-line {
    padding-left: 14px;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  .invoice-layout,
  .invoice-detail-grid,
  .zoho-bottom-grid,
  .invoice-doc-grid,
  .invoice-doc-bottom,
  .invoice-doc-header {
    grid-template-columns: 1fr;
  }

  .invoice-edit-panel {
    max-height: none;
  }

  .invoice-doc-meta {
    justify-items: start;
    text-align: left;
  }

  .invoice-toolbar,
  .invoice-actions,
  .invoice-action-group {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-total-row {
    grid-template-columns: 1fr;
  }

  .hind-invoice-document table {
    display: table;
    overflow: visible;
  }
}

@media print {
  .sidebar,
  .top-actions,
  .toolbar,
  .topbar,
  .no-print,
  .invoice-edit-panel,
  .actions-cell {
    display: none !important;
  }

  body {
    display: block;
    background: #fff;
  }

  .shell {
    padding: 0;
  }

  .invoice-layout {
    display: block;
  }

  .invoice-preview {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .invoice-document {
    width: 100%;
    border: 0;
    padding: 8px 12px;
    box-shadow: none;
  }

  .hind-invoice-document {
    min-width: 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .panel,
  .metric,
  .card,
  table {
    box-shadow: none;
  }
}

.invoice-lr-picker-wrap {
  max-height: 560px;
  overflow: auto;
}

.sample-paper-invoice {
  width: 840px;
  min-width: 840px;
  padding: 26px 32px 44px;
  border: 0;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.25;
}

.sample-paper-invoice,
.sample-paper-invoice * {
  box-sizing: border-box;
}

.sample-paper-head,
.sample-paper-strip,
.sample-paper-contact,
.sample-paper-party-grid,
.sample-paper-bottom-grid,
.sample-paper-remark,
.sample-paper-eoe,
.sample-paper-office {
  border-color: #6f7680;
}

.sample-paper-head {
  min-height: 92px;
  border: 1px solid #6f7680;
  border-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sample-paper-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.sample-paper-brand img {
  width: 175px;
  height: 78px;
  object-fit: contain;
}

.sample-paper-brand strong {
  color: #d46527;
  font-size: 42px;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
}

.sample-paper-strip,
.sample-paper-contact {
  border: 1px solid #6f7680;
  border-bottom: 0;
  padding: 6px 8px;
  text-align: right;
  font-weight: 700;
}

.sample-paper-contact {
  padding: 4px 8px;
  font-size: 13px;
}

.sample-paper-party-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  min-height: 150px;
  border: 1px solid #6f7680;
  border-bottom: 0;
}

.sample-paper-bill-to {
  padding: 8px 10px;
  border-right: 1px solid #6f7680;
}

.sample-paper-bill-to p {
  margin: 0 0 8px;
  font-size: 15px;
}

.sample-paper-bill-to strong {
  display: block;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.sample-paper-meta p {
  display: grid;
  grid-template-columns: 145px 16px 1fr;
  min-height: 26px;
  margin: 0;
  border-bottom: 1px solid #6f7680;
}

.sample-paper-meta span,
.sample-paper-meta b,
.sample-paper-meta strong {
  padding: 4px 8px;
  text-align: right;
  font-size: 15px;
}

.sample-paper-meta span {
  font-weight: 900;
}

.sample-paper-meta strong {
  border-left: 1px solid #6f7680;
  color: #111827;
  font-weight: 900;
}

.sample-paper-meta .highlight strong {
  color: #c83535;
}

.sample-paper-jurisdiction {
  padding: 6px 8px;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
}

.sample-paper-lines {
  border: 1px solid #6f7680;
  border-collapse: collapse;
  border-radius: 0;
}

.sample-paper-lines th,
.sample-paper-lines td {
  border: 1px solid #9ca3af;
  padding: 6px 5px;
  color: #111827;
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
  word-break: break-word;
}

.sample-paper-lines thead th {
  height: 76px;
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.sample-paper-lines .blank-row td {
  height: 25px;
}

.sample-paper-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 216px;
  border-left: 1px solid #6f7680;
  border-right: 1px solid #6f7680;
}

.sample-paper-words {
  min-height: 82px;
  padding: 6px 8px;
  border-bottom: 1px solid #6f7680;
  border-right: 1px solid #6f7680;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 6px;
  align-items: start;
}

.sample-paper-words strong,
.sample-paper-words span {
  font-size: 15px;
  font-weight: 900;
}

.sample-paper-totals {
  grid-row: span 2;
}

.sample-paper-totals p {
  display: grid;
  grid-template-columns: 1fr 92px;
  min-height: 26px;
  margin: 0;
  border-bottom: 1px solid #6f7680;
}

.sample-paper-totals span,
.sample-paper-totals strong {
  padding: 4px 7px;
  font-size: 15px;
}

.sample-paper-totals strong {
  border-left: 1px solid #6f7680;
  text-align: right;
  font-weight: 900;
}

.sample-paper-totals .grand {
  min-height: 34px;
}

.sample-paper-totals .grand span,
.sample-paper-totals .grand strong {
  font-weight: 900;
}

.sample-paper-bank {
  min-height: 122px;
  padding: 10px 8px;
  border-bottom: 1px solid #6f7680;
  border-right: 1px solid #6f7680;
}

.sample-paper-bank p {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  margin: 0 0 9px;
  font-size: 20px;
}

.sample-paper-bank strong {
  font-weight: 900;
}

.sample-paper-sign {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 122px;
  gap: 8px;
  border-bottom: 1px solid #6f7680;
  text-align: center;
}

.sample-paper-stamp {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 4px solid #253f9f;
  border-radius: 50%;
  color: #253f9f;
  font-size: 28px;
  font-weight: 900;
}

.sample-paper-sign span {
  font-size: 13px;
}

.invoice-signature-space {
  width: 140px;
  height: 72px;
}

.sample-paper-remark {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: 26px;
  border: 1px solid #6f7680;
  border-top: 0;
  padding: 4px 6px;
  gap: 8px;
}

.sample-paper-remark span {
  font-weight: 700;
}

.sample-paper-eoe {
  min-height: 28px;
  margin-top: 8px;
  border: 1px solid #6f7680;
  padding: 5px 6px;
  font-weight: 700;
}

.sample-paper-office {
  display: grid;
  gap: 10px;
  min-height: 78px;
  margin-top: 30px;
  border-bottom: 2px solid #222;
  padding-bottom: 8px;
  font-size: 15px;
}

.pro-invoice-document {
  --invoice-orange: #f36c00;
  --invoice-green: #087b20;
  position: relative;
  width: 900px;
  min-width: 900px;
  padding: 30px;
  border: 1px solid #d7dee9;
  background: #ffffff;
  color: #172033;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.pro-invoice-document::before {
  content: "";
  display: block;
  height: 7px;
  margin: 0 0 5px;
  background: var(--invoice-orange);
}

.pro-invoice-header {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 178px;
  grid-template-rows: auto auto;
  column-gap: 20px;
  row-gap: 10px;
  align-items: start;
  min-height: 164px;
  padding: 18px 20px 20px;
  overflow: hidden;
  border: 1px solid #d7dee9;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.pro-invoice-header::before {
  content: none;
}

.pro-invoice-header::after {
  content: none;
}

.pro-invoice-logo-block {
  display: grid;
  grid-column: 1;
  grid-row: 1 / 3;
  place-items: center;
  height: 126px;
  padding: 2px 18px 2px 0;
  border-right: 1px solid rgba(17, 24, 39, 0.78);
  align-self: center;
}

.pro-logo-crop {
  display: grid;
  place-items: center;
  width: 198px;
  height: 132px;
  overflow: visible;
}

.pro-invoice-logo-block img {
  width: 198px;
  height: 132px;
  object-fit: contain;
  transform: none;
  filter: drop-shadow(0 9px 12px rgba(15, 23, 42, 0.13));
}

.pro-invoice-company {
  display: contents;
}

.pro-company-name {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  color: #101827;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: none;
}

.pro-company-name span:first-child {
  color: #101827;
}

.pro-company-name span:last-child {
  color: #101827;
  font-size: 46px;
}

.pro-company-detail-card {
  display: grid;
  grid-column: 2 / 4;
  grid-row: 2;
  gap: 5px;
  width: 100%;
  margin: 0;
  padding: 8px 22px 7px;
  border-top: 1px solid #d8e1ec;
  border-bottom: 1px solid #d8e1ec;
  background: transparent;
  box-shadow: none;
}

.pro-company-address {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #263449;
  font-size: 11.2px;
  line-height: 1.28;
  text-align: center;
  white-space: nowrap;
}

.pro-company-contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.pro-company-contact-grid p {
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #263449;
  font-size: 11.2px;
  line-height: 1.28;
  text-align: center;
}

.pro-company-detail-card b {
  flex: 0 0 auto;
  color: #101827;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pro-company-detail-card b::after {
  content: ":";
  margin-left: 2px;
}

.pro-company-contact-grid span,
.pro-company-address span {
  min-width: 0;
  color: #263449;
  font-weight: 600;
  overflow-wrap: break-word;
}

.pro-invoice-badge {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  width: 178px;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid #111827;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.13);
}

.pro-invoice-badge span {
  display: block;
  padding: 10px 10px 9px;
  background: #111827;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.pro-invoice-badge strong {
  display: block;
  padding: 10px 8px;
  background: var(--invoice-orange);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.pro-invoice-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 335px;
  gap: 16px;
  margin-top: 16px;
}

.pro-invoice-card {
  border: 1px solid #d7dee9;
  border-radius: 6px;
  background: #ffffff;
}

.pro-bill-card {
  min-height: 145px;
  padding: 16px 18px;
}

.pro-bill-card h3,
.sample-paper-bank h3 {
  margin: 0 0 12px;
  color: #0f1f35;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pro-bill-card strong {
  display: block;
  margin-bottom: 9px;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.pro-bill-card p {
  margin: 0 0 7px;
  color: #273244;
  font-size: 13px;
}

.pro-meta-card {
  overflow: hidden;
}

.pro-meta-card p {
  display: grid;
  grid-template-columns: 118px 12px 1fr;
  min-height: 31px;
  margin: 0;
  border-bottom: 1px solid #e1e7f0;
}

.pro-meta-card p:last-child {
  border-bottom: 0;
}

.pro-meta-card span,
.pro-meta-card b,
.pro-meta-card strong {
  padding: 8px 10px;
  font-size: 12px;
}

.pro-meta-card span {
  color: #526072;
  font-weight: 900;
}

.pro-meta-card strong {
  color: #172033;
  font-weight: 800;
}

.pro-meta-card .highlight strong {
  color: #172033;
}

.pro-invoice-document .sample-paper-lines {
  width: 100%;
  margin-top: 16px;
  border: 1px solid #ccd6e3;
  border-collapse: collapse;
  table-layout: fixed;
}

.pro-invoice-document .sample-paper-lines th,
.pro-invoice-document .sample-paper-lines td {
  border: 1px solid #d9e1ec;
  padding: 8px 6px;
  color: #172033;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  vertical-align: middle;
}

.pro-invoice-document .sample-paper-lines thead th {
  height: 48px;
  background: #122238;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pro-invoice-document .sample-paper-lines td:nth-child(6),
.pro-invoice-document .sample-paper-lines td:nth-child(7) {
  text-align: left;
}

.pro-invoice-document .sample-paper-lines .blank-row td {
  height: 29px;
}

.pro-invoice-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas:
    "words totals"
    "bank totals"
    "terms sign";
  gap: 16px;
  margin-top: 16px;
}

.pro-invoice-left-stack,
.pro-invoice-right-stack {
  display: contents;
}

.pro-invoice-document .sample-paper-words {
  grid-area: words;
  display: grid;
  grid-template-columns: max-content 10px 1fr;
  gap: 6px;
  min-height: auto;
  padding: 14px 16px;
  border: 1px solid #d7dee9;
}

.pro-invoice-document .sample-paper-words strong,
.pro-invoice-document .sample-paper-words b,
.pro-invoice-document .sample-paper-words span {
  font-size: 13px;
  font-weight: 900;
}

.pro-invoice-document .sample-paper-words b,
.pro-invoice-document .sample-paper-bank b {
  color: #172033;
  text-align: center;
}

.pro-invoice-document .sample-paper-bank {
  grid-area: bank;
  min-height: auto;
  padding: 12px 16px;
  border: 1px solid #d7dee9;
}

.pro-invoice-document .sample-paper-bank p {
  display: grid;
  grid-template-columns: 110px 12px 1fr;
  gap: 8px;
  margin: 0 0 5px;
  color: #273244;
  font-size: 12.5px;
  line-height: 1.2;
}

.pro-invoice-document .sample-paper-bank p:last-child {
  margin-bottom: 0;
}

.pro-invoice-document .sample-paper-bank strong {
  color: #111827;
  font-weight: 900;
}

.pro-invoice-document .sample-paper-remark {
  grid-area: remark;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  min-height: auto;
  padding: 12px 16px;
  border: 1px solid #d7dee9;
}

.pro-invoice-document .sample-paper-remark strong,
.pro-invoice-document .sample-paper-remark span {
  font-size: 12px;
}

.pro-invoice-document .sample-paper-terms {
  grid-area: terms;
  display: grid;
  gap: 8px;
  min-height: auto;
  padding: 12px 16px;
  border: 1px solid #d7dee9;
}

.pro-invoice-document .sample-paper-terms strong {
  color: #0f1f35;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pro-invoice-document .sample-paper-terms ol {
  margin: 0;
  padding-left: 17px;
  color: #273244;
}

.pro-invoice-document .sample-paper-terms li {
  margin: 0 0 4px;
  font-size: 11.5px;
  line-height: 1.25;
}

.pro-invoice-document .sample-paper-terms li:last-child {
  margin-bottom: 0;
}

.pro-invoice-document .sample-paper-totals {
  grid-area: totals;
  overflow: hidden;
  border: 1px solid #d7dee9;
  border-radius: 6px;
}

.pro-invoice-document .sample-paper-totals p {
  display: grid;
  grid-template-columns: 1fr 116px;
  min-height: 34px;
  margin: 0;
  border-bottom: 1px solid #e1e7f0;
}

.pro-invoice-document .sample-paper-totals p:last-child {
  border-bottom: 0;
}

.pro-invoice-document .sample-paper-totals .total-note {
  display: block;
  min-height: auto;
  padding: 10px 12px;
  background: #ffffff;
  border-bottom: 0;
}

.pro-invoice-document .sample-paper-totals .total-note span {
  display: block;
  padding: 0;
  color: #172033;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.pro-invoice-document .sample-paper-totals span,
.pro-invoice-document .sample-paper-totals strong {
  padding: 9px 12px;
  font-size: 13px;
}

.pro-invoice-document .sample-paper-totals span {
  color: #526072;
  font-weight: 800;
}

.pro-invoice-document .sample-paper-totals strong {
  border-left: 1px solid #e1e7f0;
  color: #111827;
  text-align: right;
  font-weight: 900;
}

.pro-invoice-document .sample-paper-totals .grand {
  background: var(--invoice-orange);
}

.pro-invoice-document .sample-paper-totals .grand span,
.pro-invoice-document .sample-paper-totals .grand strong {
  color: #ffffff;
  font-size: 15px;
  text-transform: uppercase;
}

.pro-invoice-document .sample-paper-sign {
  grid-area: sign;
  display: grid;
  min-height: 150px;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid #d7dee9;
  text-align: center;
}

.pro-invoice-document .sample-paper-stamp {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 4px solid #253f9f;
  border-radius: 50%;
  color: #253f9f;
  font-size: 25px;
  font-weight: 900;
}

.pro-invoice-footer {
  display: block;
  height: 7px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: var(--invoice-green);
}

@page {
  size: A4 portrait;
  margin: 6mm;
}

@media print {
  html,
  body {
    width: 210mm;
    min-height: 297mm;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body {
    display: block !important;
    overflow: visible !important;
  }

  .shell,
  .content,
  .invoice-detail-wrap,
  .invoice-detail-grid,
  .invoice-preview {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .sample-paper-invoice {
    width: 198mm !important;
    min-width: 0 !important;
    max-width: 198mm !important;
    min-height: 284mm;
    margin: 0 auto !important;
    padding: 3mm 4mm 4mm !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 8.6pt !important;
    line-height: 1.15 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .sample-paper-head {
    min-height: 24mm;
  }

  .sample-paper-brand {
    gap: 5mm;
  }

  .sample-paper-brand img {
    width: 44mm;
    height: 19mm;
  }

  .sample-paper-brand strong {
    font-size: 24pt;
  }

  .sample-paper-strip,
  .sample-paper-contact {
    padding: 1.3mm 2mm;
    font-size: 8.3pt;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .sample-paper-party-grid {
    grid-template-columns: 1.38fr 0.9fr;
    min-height: 36mm;
  }

  .sample-paper-bill-to {
    padding: 2mm;
  }

  .sample-paper-bill-to p,
  .sample-paper-bill-to strong,
  .sample-paper-meta span,
  .sample-paper-meta b,
  .sample-paper-meta strong,
  .sample-paper-jurisdiction {
    font-size: 8.8pt;
  }

  .sample-paper-bill-to p,
  .sample-paper-bill-to strong {
    margin-bottom: 1.8mm;
  }

  .sample-paper-meta p {
    grid-template-columns: 32mm 4mm 1fr;
    min-height: 6mm;
  }

  .sample-paper-meta span,
  .sample-paper-meta b,
  .sample-paper-meta strong {
    padding: 1mm 1.5mm;
  }

  .sample-paper-lines th,
  .sample-paper-lines td {
    padding: 1.3mm 1mm !important;
    font-size: 7.8pt !important;
  }

  .sample-paper-lines thead th {
    height: 16mm;
    font-size: 8.5pt !important;
  }

  .sample-paper-lines .blank-row td {
    height: 6mm;
  }

  .sample-paper-bottom-grid {
    grid-template-columns: 1fr 48mm;
  }

  .sample-paper-words {
    min-height: 18mm;
    grid-template-columns: 36mm 1fr;
    padding: 1.5mm 2mm;
  }

  .sample-paper-words strong,
  .sample-paper-words span,
  .sample-paper-totals span,
  .sample-paper-totals strong {
    font-size: 8.8pt;
  }

  .sample-paper-totals p {
    grid-template-columns: 1fr 22mm;
    min-height: 6mm;
  }

  .sample-paper-totals span,
  .sample-paper-totals strong {
    padding: 1mm 1.5mm;
  }

  .sample-paper-bank {
    min-height: 30mm;
    padding: 2mm;
  }

  .sample-paper-bank p {
    grid-template-columns: 34mm 1fr;
    gap: 3mm;
    margin-bottom: 1.7mm;
    font-size: 12pt;
  }

  .sample-paper-sign {
    min-height: 30mm;
    gap: 1.2mm;
  }

  .sample-paper-stamp {
    width: 17mm;
    height: 17mm;
    border-width: 1mm;
    font-size: 14pt;
  }

  .sample-paper-sign span,
  .sample-paper-remark,
  .sample-paper-eoe,
  .sample-paper-office {
    font-size: 8.8pt;
  }

  .sample-paper-remark {
    grid-template-columns: 22mm 1fr;
    min-height: 6mm;
    padding: 1mm 1.5mm;
  }

  .sample-paper-eoe {
    min-height: 7mm;
    margin-top: 2mm;
    padding: 1.2mm 1.5mm;
  }

  .sample-paper-office {
    min-height: 16mm;
    margin-top: 6mm;
    gap: 2mm;
    padding-bottom: 2mm;
  }
}

@media print {
  .pro-invoice-document {
    width: 198mm !important;
    max-width: 198mm !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 5mm !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 8.4pt !important;
    line-height: 1.18 !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .pro-invoice-document::before {
    height: 1.8mm !important;
    margin-bottom: 1.2mm !important;
  }

  .pro-invoice-header {
    grid-template-columns: 44mm 1fr 40mm;
    grid-template-rows: auto auto;
    column-gap: 3.5mm;
    row-gap: 2.4mm;
    min-height: 35mm !important;
    padding: 3.4mm 4mm 4mm !important;
    border-width: 0.25mm !important;
    border-radius: 1.3mm !important;
  }

  .pro-invoice-header::before {
    content: none !important;
  }

  .pro-invoice-header::after {
    content: none !important;
  }

  .pro-invoice-logo-block {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    align-self: center !important;
    height: 28.5mm !important;
    padding: 0 3mm 0 0 !important;
    border-right-width: 0.3mm !important;
  }

  .pro-logo-crop {
    width: 39mm !important;
    height: 26mm !important;
  }

  .pro-invoice-logo-block img {
    width: 39mm !important;
    height: 26mm !important;
    transform: none !important;
  }

  .pro-company-name {
    grid-column: 2 !important;
    grid-row: 1 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.6mm !important;
    color: #101827 !important;
    font-size: 23pt !important;
    line-height: 0.95 !important;
    letter-spacing: 0 !important;
  }

  .pro-company-name span:first-child,
  .pro-company-name span:last-child {
    color: #101827 !important;
    font-size: 23pt !important;
  }

  .pro-company-detail-card {
    grid-column: 2 / 4 !important;
    grid-row: 2 !important;
    width: 100% !important;
    gap: 0.9mm !important;
    padding: 1.5mm 3mm 1.4mm !important;
  }

  .pro-company-address {
    display: flex !important;
    justify-content: center !important;
    gap: 1mm !important;
    padding: 0 !important;
    font-size: 5.9pt !important;
    line-height: 1.16 !important;
    white-space: nowrap !important;
  }

  .pro-company-contact-grid {
    display: flex !important;
    justify-content: center !important;
    gap: 2.8mm !important;
  }

  .pro-company-contact-grid p {
    padding: 0 !important;
    font-size: 5.8pt !important;
    line-height: 1.16 !important;
  }

  .pro-invoice-badge span {
    padding: 2mm !important;
    font-size: 12pt !important;
  }

  .pro-invoice-badge {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: start !important;
    justify-self: end !important;
    width: 40mm !important;
    margin-top: 0 !important;
  }

  .pro-invoice-badge strong {
    display: block !important;
    padding: 2mm 1.5mm !important;
    font-size: 8.2pt !important;
  }

  .pro-invoice-info-grid {
    grid-template-columns: 1fr 70mm;
    gap: 3mm;
    margin-top: 3mm;
  }

  .pro-bill-card {
    min-height: 31mm;
    padding: 3mm !important;
  }

  .pro-bill-card h3,
  .sample-paper-bank h3 {
    margin-bottom: 2mm;
    font-size: 8pt !important;
  }

  .pro-bill-card strong,
  .pro-bill-card p {
    margin-bottom: 1.2mm;
    font-size: 8.4pt !important;
  }

  .pro-meta-card p {
    grid-template-columns: 25mm 3mm 1fr;
    min-height: 5.5mm;
  }

  .pro-meta-card span,
  .pro-meta-card b,
  .pro-meta-card strong {
    padding: 1mm 1.2mm !important;
    font-size: 7.6pt !important;
  }

  .pro-invoice-document .sample-paper-lines {
    margin-top: 3mm;
  }

  .pro-invoice-document .sample-paper-lines th,
  .pro-invoice-document .sample-paper-lines td {
    padding: 1.15mm 0.8mm !important;
    font-size: 6.8pt !important;
    line-height: 1.12 !important;
  }

  .pro-invoice-document .sample-paper-lines thead th {
    height: 12mm !important;
    font-size: 6.9pt !important;
  }

  .pro-invoice-document .sample-paper-lines .blank-row td {
    height: 5.2mm !important;
  }

  .pro-invoice-summary-grid {
    grid-template-columns: 1fr 62mm;
    grid-template-areas:
      "words totals"
      "bank totals"
      "terms sign";
    gap: 3mm;
    margin-top: 3mm;
  }

  .pro-invoice-left-stack,
  .pro-invoice-right-stack {
    display: contents !important;
  }

  .pro-invoice-document .sample-paper-words {
    grid-template-columns: max-content 3mm 1fr;
    padding: 2.2mm 2.5mm !important;
  }

  .pro-invoice-document .sample-paper-words strong,
  .pro-invoice-document .sample-paper-words b,
  .pro-invoice-document .sample-paper-words span,
  .pro-invoice-document .sample-paper-remark strong,
  .pro-invoice-document .sample-paper-remark span {
    font-size: 7.8pt !important;
  }

  .pro-invoice-document .sample-paper-bank {
    padding: 1.8mm 2.5mm !important;
  }

  .pro-invoice-document .sample-paper-bank p {
    grid-template-columns: 24mm 3mm 1fr;
    gap: 1.6mm;
    margin-bottom: 0.75mm;
    font-size: 7.6pt !important;
    line-height: 1.12 !important;
  }

  .pro-invoice-document .sample-paper-remark {
    grid-template-columns: 18mm 1fr;
    padding: 2mm 2.5mm !important;
  }

  .pro-invoice-document .sample-paper-terms {
    gap: 1.3mm;
    padding: 2mm 2.5mm !important;
  }

  .pro-invoice-document .sample-paper-terms strong {
    font-size: 7.6pt !important;
  }

  .pro-invoice-document .sample-paper-terms ol {
    padding-left: 4mm;
  }

  .pro-invoice-document .sample-paper-terms li {
    margin-bottom: 0.7mm;
    font-size: 7.1pt !important;
    line-height: 1.15 !important;
  }

  .pro-invoice-document .sample-paper-totals p {
    grid-template-columns: 1fr 24mm;
    min-height: 6.2mm;
  }

  .pro-invoice-document .sample-paper-totals span,
  .pro-invoice-document .sample-paper-totals strong {
    padding: 1.2mm 1.6mm !important;
    font-size: 7.8pt !important;
  }

  .pro-invoice-document .sample-paper-totals .total-note {
    padding: 1.4mm 1.6mm !important;
  }

  .pro-invoice-document .sample-paper-totals .total-note span {
    font-size: 7.4pt !important;
  }

  .pro-invoice-document .sample-paper-totals .grand span,
  .pro-invoice-document .sample-paper-totals .grand strong {
    font-size: 8.7pt !important;
  }

  .pro-invoice-document .sample-paper-sign {
    min-height: 30mm;
    padding: 2.5mm !important;
    gap: 1.5mm;
  }

  .pro-invoice-document .sample-paper-stamp {
    width: 15mm !important;
    height: 15mm !important;
    border-width: 0.8mm !important;
    font-size: 12pt !important;
  }

  .pro-invoice-footer {
    display: block !important;
    height: 1.8mm !important;
    margin-top: 3mm;
    padding: 0 !important;
    border: 0 !important;
  }
}
