:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #f1f5f3;
  --text: #17211d;
  --muted: #6b7772;
  --border: #dce4e0;
  --accent: #0f8f62;
  --accent-2: #0b6b4d;
  --amber: #d88711;
  --red: #c24135;
  --shadow: 0 14px 36px rgba(24, 33, 29, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #101714;
}

.external-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background: #101714;
}

.login-screen.hidden {
  display: none;
}

.external-card {
  margin: auto;
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.login-card .brand-mark {
  margin-bottom: 4px;
}

.login-language {
  justify-self: start;
}

.login-card h1 {
  font-size: 28px;
}

.login-card small {
  color: var(--muted);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 18px;
  background: #101714;
  color: #f5fbf8;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7fff5;
  color: #0b6b4d;
  font-weight: 800;
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.brand strong {
  display: block;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.brand small,
.sidebar-note span {
  color: #9cafaa;
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c9d8d2;
  text-align: left;
}

.nav-badge {
  min-width: 20px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: #f7b731;
  color: #101714;
  font-size: 11px;
  font-weight: 900;
}

.nav-item:hover,
.nav-item.active {
  background: #1d2925;
  color: #ffffff;
}

.sidebar-note {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-note strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
}

h2 {
  font-size: 17px;
  line-height: 1.25;
}

p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.topbar-language {
  height: 40px;
}

.month-picker {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.month-picker input {
  border: 0;
  background: transparent;
  color: var(--text);
}

.user-pill {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.primary-action,
.secondary-action,
.icon-button,
.mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
}

.primary-action {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.primary-action:hover {
  background: var(--accent-2);
}

.secondary-action,
.mini-action {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.mini-action {
  height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.danger-action {
  border-color: rgba(185, 28, 28, 0.28);
  color: #b91c1c;
}

.danger-action:hover {
  background: #fff1f2;
}

.claim-slip-upload {
  position: relative;
  overflow: hidden;
}

.claim-slip-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.filter-bar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.filter-bar label {
  width: 170px;
}

.trip-record-filter {
  margin-top: 2px;
}

.trip-record-filter .trip-record-customer {
  width: min(260px, 100%);
}

.filter-summary {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric,
.panel,
.customer-card,
.driver-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric {
  padding: 16px;
}

.metric span,
label span,
.settlement-list span,
.receipt-card span {
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 24px;
}

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

.view {
  display: none;
}

.view.active {
  display: block;
}

.view > .panel + .panel {
  margin-top: 14px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(300px, 0.85fr) minmax(310px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.content-grid:empty {
  display: none;
}

.panel {
  min-width: 0;
  padding: 18px;
  box-shadow: var(--shadow);
}

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

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.paid {
  background: #e7fff5;
  color: #08734f;
}

.unpaid,
.pending {
  background: #fff5db;
  color: #a15e03;
}

.balance-row.company-owes,
.status-chip.company-owes {
  background: #e7fff5;
  color: #08734f;
}

.balance-row.driver-owes,
.status-chip.driver-owes {
  background: #ffe8e5;
  color: var(--red);
}

.rejected {
  background: #ffe8e5;
  color: var(--red);
}

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

label {
  display: grid;
  gap: 6px;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  outline: none;
}

input,
select {
  height: 40px;
}

textarea {
  min-height: 84px;
  padding-top: 10px;
  resize: vertical;
}

.input-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

.input-with-action input {
  min-width: 0;
}

.icon-only {
  width: 42px;
  height: 40px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.customer-quick-select {
  margin-top: 8px;
}

.external-link-output {
  height: 34px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 143, 98, 0.65);
  box-shadow: 0 0 0 3px rgba(15, 143, 98, 0.12);
}

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

.select-driver,
.commission-control {
  margin-bottom: 14px;
}

.commission-control span {
  display: flex;
  justify-content: space-between;
}

.commission-control input {
  padding: 0;
  accent-color: var(--accent);
}

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

.settlement-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.settlement-list .balance-row {
  margin-top: 4px;
  padding: 14px 12px;
  border: 0;
  border-radius: var(--radius);
  background: #effaf5;
}

.formula-note,
.file-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
}

.balance-row strong {
  color: var(--accent-2);
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 112px;
  margin-top: 18px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.bar {
  flex: 1;
  min-width: 18px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #17a974, #0b6b4d);
}

.expense-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.compact-form {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.expense-form input[type="file"],
.expense-form > button,
.camera-tools,
.camera-panel {
  grid-column: 1 / -1;
}

.camera-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.camera-tools span {
  color: var(--muted);
  font-size: 12px;
}

.camera-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.camera-panel video,
.camera-panel img {
  width: 100%;
  max-height: 280px;
  border-radius: 7px;
  background: #101714;
  object-fit: contain;
}

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

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

.receipt-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.receipt-thumb {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e8efec;
  color: var(--accent-2);
  overflow: hidden;
}

.receipt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.receipt-meta {
  min-width: 0;
}

.receipt-meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.receipt-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.sub-panel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.sub-panel h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.change-list {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.locked-note {
  color: var(--muted);
  font-size: 12px;
}

.admin-only.hidden,
.driver-hidden.hidden {
  display: none !important;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

td strong {
  font-size: 14px;
}

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

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

.customer-filter {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.customer-filter-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 5;
  width: min(520px, calc(100vw - 40px));
  max-height: 260px;
  display: none;
  gap: 8px;
  flex-direction: column;
  flex-wrap: nowrap;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.customer-filter.open .customer-filter-options {
  display: flex;
}

.customer-directory {
  display: block;
  width: 100%;
}

.customer-directory-options {
  position: static;
  width: 100%;
  max-height: 260px;
  box-shadow: none;
}

.customer-account-panel {
  margin-bottom: 14px;
}

.customer-account-panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.batch-customer-options {
  position: static;
  width: 100%;
  max-height: 220px;
  box-shadow: none;
}

.customer-filter.open .batch-customer-options {
  display: flex;
}

.customer-check {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.customer-check:last-child {
  border-bottom: 0;
}

.customer-check input {
  width: 14px;
  height: 14px;
  padding: 0;
  accent-color: var(--accent);
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.checkbox-line input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--accent);
}

.customer-option {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.customer-option:last-child {
  border-bottom: 0;
}

.customer-option span {
  color: var(--muted);
  font-size: 12px;
}

.customer-option:hover {
  border-color: rgba(15, 143, 98, 0.45);
  background: #f5fbf8;
}

.mini-input {
  width: 92px;
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.customer-card,
.driver-card {
  padding: 16px;
}

.customer-card {
  display: grid;
  gap: 12px;
}

.customer-card h3,
.driver-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.inactive-driver-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.inactive-driver-list .section-title {
  grid-column: 1 / -1;
}

.inactive-driver-card {
  background: var(--muted);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mini-stats div {
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.mini-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.mini-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.customer-summary {
  margin-bottom: 12px;
}

.settlement-sheet {
  display: grid;
  gap: 12px;
}

.advance-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1.25fr);
  gap: 14px;
  margin-bottom: 16px;
  align-items: start;
}

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

.settings-card {
  margin-top: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.settings-card p {
  margin: 4px 0 12px;
}

.settings-company-card,
.settings-audit-card {
  grid-column: 1 / -1;
}

.settings-audit-card {
  order: 99;
}

.settings-company-card .compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-audit-card .queue-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.segmented-control {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.segmented-control .active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.settlement-payment-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.85fr);
  gap: 14px;
  margin-bottom: 16px;
  align-items: start;
}

.customer-detail {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.settlement-row {
  display: grid;
  grid-template-columns: 1.1fr repeat(8, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.settlement-row strong:last-child {
  padding: 8px;
  border-radius: var(--radius);
  text-align: center;
}

.report-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12px;
  margin-top: 14px;
}

.receivable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.receivable-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-title h3 {
  margin: 0;
  font-size: 14px;
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.audit-section {
  margin-top: 12px;
}

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

.report-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.report-row-wide {
  grid-template-columns: 0.9fr repeat(4, 1fr) 1fr;
}

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

.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 30px 16px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--text);
}

[data-icon] {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex: 0 0 auto;
}

[data-icon] svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: auto;
  background: rgba(16, 23, 20, 0.62);
}

.modal-card {
  width: min(640px, 100%);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.modal-card .panel-header {
  margin-bottom: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(15, 143, 98, 0.28);
  border-radius: var(--radius);
  background: #101714;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(16, 23, 20, 0.2);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .sidebar {
    padding: 18px 12px;
  }

  .brand div,
  .nav-item:not(.active)::after,
  .nav-item {
    font-size: 0;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .nav-badge {
    position: absolute;
    transform: translate(16px, -12px);
    margin-left: 0;
    font-size: 10px;
  }

  .sidebar-note {
    display: none;
  }

  .content-grid,
  .metrics-grid,
  .report-grid,
  .receivable-grid,
  .advance-grid,
  .settings-grid,
  .settlement-payment-grid,
  .cards-grid,
  .driver-grid,
  .inactive-driver-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    overscroll-behavior-x: contain;
    padding: 14px 16px;
  }

  .nav-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }

  .nav-item {
    min-width: max-content;
    height: 42px;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    font-size: 14px;
  }

  .nav-item [data-i18n] {
    display: inline;
  }

  .nav-item::after {
    content: none;
  }

  .nav-item span[data-icon] {
    width: 17px;
    height: 17px;
  }

  .nav-badge {
    position: static;
    transform: none;
    margin-left: 4px;
    min-width: 20px;
    min-height: 20px;
    padding: 0 6px;
    font-size: 11px;
  }

  .workspace {
    padding: 16px;
  }

  .topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .topbar-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .form-actions {
    justify-content: stretch;
  }

  .topbar-actions .secondary-action {
    flex: 0 0 auto;
    width: auto;
    height: 34px;
    min-width: 58px;
    padding: 0 10px;
    font-size: 13px;
  }

  .topbar-actions .topbar-language {
    flex: 0 0 auto;
    width: auto;
    height: 34px;
    padding: 3px;
  }

  .topbar-actions .topbar-language .mini-action {
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
  }

  .topbar-actions .primary-action,
  .topbar-actions .month-picker,
  .topbar-actions .user-pill {
    flex: 0 0 auto;
  }

  .form-actions .primary-action,
  .form-actions .secondary-action,
  .expense-form > button {
    width: 100%;
  }

  .content-grid,
  .metrics-grid,
  .form-grid,
  .report-grid,
  .receivable-grid,
  .advance-grid,
  .settings-grid,
  .settlement-payment-grid,
  .cards-grid,
  .driver-grid,
  .inactive-driver-list {
    grid-template-columns: 1fr;
  }

  .settings-company-card .compact-form {
    grid-template-columns: 1fr;
  }

  .settlement-row,
  .report-row-wide {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .sidebar,
  .topbar,
  .metrics-grid,
  .panel:not(.print-target) {
    display: none !important;
  }

  .app-shell,
  .workspace {
    display: block;
    padding: 0;
  }
}
