:root {
  color-scheme: light;
  --ink: #1d2925;
  --muted: #78827d;
  --line: #e7eae5;
  --paper: #fff;
  --canvas: #f5f6f2;
  --green: #15765d;
  --green-dark: #105d49;
  --green-soft: #e8f4ee;
  --orange: #e5a84c;
  --red: #c7584d;
  --shadow: 0 12px 35px rgba(37, 54, 46, .06);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 250px; flex: 0 0 250px; padding: 27px 17px 18px; background: #173c32; color: #edf5f0; display: flex; flex-direction: column; min-height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; padding: 0 8px 31px; }
.brand-logo { width: 68px; height: 48px; flex: 0 0 auto; object-fit: contain; border-radius: 7px; background: #fff; }
.brand strong { display: block; letter-spacing: 2px; font-size: 17px; }
.brand small { display: block; font-size: 11px; color: #a7c0b5; margin-top: 2px; }
.nav-caption { padding: 0 12px 10px; color: #96b1a5; font-size: 11px; }
.main-nav { display: grid; gap: 5px; }
.nav-link { border: 0; width: 100%; background: transparent; color: #c5d5cd; display: flex; align-items: center; gap: 11px; border-radius: 10px; padding: 10px 12px; text-align: right; font-size: 13px; transition: .18s ease; }
.nav-link:hover, .nav-link.active { background: #285447; color: #fff; }
.nav-link.active { box-shadow: inset -3px 0 #e4b45c; }
.nav-icon { width: 20px; text-align: center; font-size: 16px; }
.sidebar-bottom { margin-top: auto; }
.local-status { padding: 12px; margin: 15px 3px 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; display: flex; align-items: center; gap: 8px; color: #c1d4ca; font-size: 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #70d49f; box-shadow: 0 0 0 4px rgba(112,212,159,.12); }
.sidebar-foot { margin: 16px 10px 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); color: #91aa9e; font-size: 10px; }
.sidebar-foot span { padding: 0 4px; color: #e3b55d; }
.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 70px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.72); }
.breadcrumbs { color: var(--muted); font-size: 12px; }
.breadcrumbs span { margin: 0 8px; color: #b4bcb6; }
.breadcrumbs strong { color: var(--ink); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.language-toggle { padding: 7px 11px; }
.today { color: var(--muted); font-size: 11px; }
.icon-button { width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #45554d; font-size: 20px; display: inline-grid; place-items: center; }
.icon-button:hover { border-color: #b8d5c6; color: var(--green); }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top, #e4f0e9, var(--canvas) 60%); }
.auth-screen[hidden] { display: none; }
.auth-card { width: min(460px, 100%); background: #fff; padding: 30px; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.auth-language-toggle { display: block; margin-inline-start: auto; margin-bottom: 12px; }
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.auth-brand img { width: 110px; height: 65px; object-fit: contain; border-radius: 8px; }
.auth-brand h1 { margin: 0 0 4px; font-size: 19px; }
.auth-brand p, .auth-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.auth-card h2 { margin: 0 0 7px; font-size: 18px; }
.auth-form { display: grid; gap: 14px; margin-top: 20px; }
.auth-form .field label { font-size: 11px; }
.auth-form .field input { padding: 11px; font-size: 13px; }
.auth-error { color: #a53d33; background: #fff0ef; border-radius: 8px; padding: 9px 11px; font-size: 12px; }
.account-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px; color: #c1d4ca; font-size: 11px; }
.account-controls .text-button { color: #c1d4ca; }
.permission-table { width: 100%; border-collapse: collapse; }
.permission-table th, .permission-table td { border-bottom: 1px solid var(--line); padding: 9px 6px; text-align: center; font-size: 11px; }
.permission-table th:first-child, .permission-table td:first-child { text-align: right; }
.permission-table input { accent-color: var(--green); }
.user-admin-toggle { display: flex; align-items: center; gap: 8px; padding: 12px; background: var(--green-soft); border-radius: 9px; font-size: 12px; }
.user-state { color: var(--muted); font-size: 10px; }
.mobile-menu { display: none; border: 0; background: none; color: var(--ink); font-size: 21px; }
.content { width: min(1440px, 100%); padding: 32px 38px 28px; margin: 0 auto; flex: 1; }
.app-footer { text-align: center; padding: 14px; color: #9aa39d; font-size: 10px; border-top: 1px solid var(--line); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 3px 0 5px; font-size: 26px; letter-spacing: -.5px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .3px; margin: 0; }
.heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.button { border: 1px solid transparent; border-radius: 9px; padding: 9px 15px; font-size: 12px; font-weight: 600; transition: .15s ease; white-space: nowrap; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { background: #fff; border-color: var(--line); color: #42514a; }
.button-secondary:hover, .button-quiet:hover { border-color: #b9d1c3; color: var(--green); }
.button-quiet { background: #fff; border-color: var(--line); color: var(--muted); }
.button-small { padding: 6px 9px; font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.metric-card, .panel, .table-panel, .welcome-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.metric-card { padding: 17px; position: relative; overflow: hidden; }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-soft); font-size: 15px; }
.metric-value { font-size: 24px; font-weight: 700; margin: 14px 0 4px; letter-spacing: -.5px; }
.metric-foot { color: #98a19b; font-size: 10px; }
.metric-periods { display: grid; gap: 5px; margin: 9px 0 6px; }
.metric-period-row { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; color: var(--muted); font-size: 10px; }
.metric-period-row strong { color: var(--ink); direction: ltr; font-size: 10px; font-weight: 600; white-space: nowrap; }
.metric-foot-note { display: block; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; }
.panel { padding: 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.panel-heading h2 { font-size: 14px; margin: 0 0 4px; }
.panel-heading p { margin: 0; font-size: 10px; color: var(--muted); }
.year-label { color: var(--muted); font-size: 10px; background: var(--canvas); border-radius: 7px; padding: 6px 8px; }
.bar-chart { height: 190px; display: flex; align-items: flex-end; justify-content: space-around; gap: 9px; border-bottom: 1px solid var(--line); padding: 0 4px 0; }
.bar-column { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; }
.bar-value { font-size: 9px; color: var(--muted); min-height: 12px; }
.bar-track { flex: 1; width: 100%; max-width: 34px; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; min-height: 3px; border-radius: 5px 5px 0 0; background: #91c6aa; transition: height .25s ease; }
.bar-column.current .bar-fill { background: var(--green); }
.bar-month { font-size: 9px; color: #89938d; padding-bottom: 9px; }
.daily-sales-panel { grid-column: 1 / -1; }
.daily-chart-wrap { width: 100%; overflow: hidden; }
.daily-sales-chart { display: block; width: 100%; height: auto; min-height: 170px; overflow: visible; }
.chart-axis-label { fill: #8a968e; font: 10px Tahoma,Arial,sans-serif; }
.chart-date-label { fill: #78857d; font: 10px Tahoma,Arial,sans-serif; }
.daily-chart-legend { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 11px; }
.daily-chart-legend span { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.daily-chart-legend i { width: 10px; height: 10px; border-radius: 50%; background: #f06b47; box-shadow: 0 0 0 4px #fff0e9; }
.daily-chart-legend strong { color: #d65b3b; font-size: 13px; }
.daily-chart-empty { margin: -5px 0 11px; color: var(--muted); text-align: center; font-size: 11px; }
.ranking-list { display: grid; gap: 16px; }
.ranking-item { display: grid; gap: 8px; }
.ranking-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ranking-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ranking-name strong { overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 600; }
.ranking-number { width: 24px; height: 24px; display: grid; place-items: center; flex: none; border-radius: 8px; color: #fff; background: #8d63d8; font-size: 10px; font-weight: 700; }
.ranking-item:nth-child(2) .ranking-number { background: #f0a52e; }
.ranking-item:nth-child(3) .ranking-number { background: #22a68a; }
.ranking-item:nth-child(4) .ranking-number { background: #e55383; }
.ranking-item:nth-child(5) .ranking-number { background: #4386d7; }
.ranking-value { color: #47574d; font-size: 10px; white-space: nowrap; }
.ranking-track { height: 7px; overflow: hidden; border-radius: 8px; background: #f0f3f0; }
.ranking-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ff9b67,#f06b47); }
.ranking-item:nth-child(2) .ranking-fill { background: linear-gradient(90deg,#ffd56b,#f0a52e); }
.ranking-item:nth-child(3) .ranking-fill { background: linear-gradient(90deg,#65d0b1,#22a68a); }
.ranking-item:nth-child(4) .ranking-fill { background: linear-gradient(90deg,#ff91b2,#e55383); }
.ranking-item:nth-child(5) .ranking-fill { background: linear-gradient(90deg,#7bb8ff,#4386d7); }
.ranking-empty { padding: 22px 10px; color: var(--muted); text-align: center; font-size: 11px; }
.quick-list { display: grid; gap: 10px; }
.quick-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f1ee; }
.quick-row:last-child { padding-bottom: 0; border: 0; }
.quick-label { display: flex; align-items: center; gap: 9px; min-width: 0; }
.quick-mark { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; color: var(--green); background: #eef6f1; }
.quick-label strong { display: block; font-size: 11px; font-weight: 600; }
.quick-label small { color: var(--muted); font-size: 9px; }
.quick-row .button { padding: 6px 9px; font-size: 10px; }
.inventory-alerts { margin-top: 16px; }
.alert-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #f0f1ee; font-size: 11px; }
.alert-row:last-child { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; border-radius: 20px; background: #edf5ef; color: #347252; font-size: 9px; padding: 4px 8px; white-space: nowrap; }
.badge-warning { color: #a46a1f; background: #fff4e2; }
.badge-danger { color: #ac5148; background: #fcecea; }
.welcome-card { margin-bottom: 17px; padding: 18px 20px; background: linear-gradient(110deg, #1d503f, #2d775a); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: none; }
.page-heading h1.page-title-with-logo { display: flex; align-items: center; gap: 10px; }
.page-title-with-logo img { width: 108px; height: 84px; object-fit: contain; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.welcome-card h2 { font-size: 16px; margin: 0 0 5px; }
.welcome-card p { margin: 0; color: #c3ded0; font-size: 11px; }
.welcome-card .button { background: #fff; color: var(--green-dark); }
.table-panel { overflow: hidden; }
.table-toolbar { padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.search-box { position: relative; width: min(310px, 100%); }
.search-box input { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fafbf9; padding: 9px 34px 9px 11px; font-size: 11px; outline: none; }
.search-box:before { content: "⌕"; position: absolute; right: 12px; top: 5px; font-size: 19px; color: #87918a; }
.search-box input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: #80b89c; box-shadow: 0 0 0 3px rgba(21,118,93,.08); }
.table-meta { color: var(--muted); font-size: 10px; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { background: #f8f9f7; color: #77827c; text-align: right; font-size: 10px; font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); }
td { padding: 11px 14px; border-bottom: 1px solid #eff1ed; font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfa; }
.table-primary { font-weight: 600; color: #27362f; }
.table-secondary { color: var(--muted); font-size: 10px; margin-top: 3px; }
.empty-state { text-align: center; padding: 43px 16px; color: var(--muted); }
.empty-icon { font-size: 30px; color: #b2c5b9; margin-bottom: 9px; }
.empty-state strong { display: block; color: #55635b; font-size: 12px; margin-bottom: 4px; }
.empty-state p { margin: 0 0 15px; font-size: 10px; }
.row-actions { display: flex; gap: 5px; }
.text-button { background: none; border: 0; color: var(--green); font-size: 10px; padding: 3px 5px; }
.text-button.danger { color: var(--red); }
.summary-strip { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 13px 15px; background: #f8faf8; border-bottom: 1px solid var(--line); font-size: 10px; }
.summary-strip strong { color: var(--ink); font-size: 12px; padding-right: 4px; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.report-card { padding: 18px; }
.report-select { min-width: 210px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { color: #55625a; font-size: 10px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #e0e5df; border-radius: 8px; padding: 9px 10px; color: var(--ink); background: #fff; font-size: 11px; outline: none; }
.field textarea { min-height: 73px; resize: vertical; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(13,31,24,.47); display: grid; place-items: center; padding: 20px; }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(680px, 100%); max-height: min(90vh, 880px); overflow: auto; background: #fff; border-radius: 15px; box-shadow: 0 24px 80px rgba(0,0,0,.2); }
.modal-header { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 17px 21px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 3px 0 0; font-size: 16px; }
.modal-body { padding: 20px 21px; }
.modal-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-start; gap: 8px; padding: 13px 21px; background: #fff; border-top: 1px solid var(--line); }
.line-items { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.line-items-head, .line-item { display: grid; grid-template-columns: minmax(0, 1.5fr) .7fr .8fr .7fr 32px; gap: 7px; align-items: center; padding: 8px; }
.line-items-head { background: #f8f9f7; color: var(--muted); font-size: 9px; }
.line-item { border-top: 1px solid var(--line); }
.line-item select, .line-item input { min-width: 0; width: 100%; padding: 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.line-item-total { text-align: left; font-size: 9px; color: var(--muted); }
.remove-line { border: 0; background: #fff0ef; color: var(--red); border-radius: 6px; width: 25px; height: 25px; }
.line-total { display: flex; justify-content: space-between; padding: 11px 10px; font-size: 11px; font-weight: 600; background: #fafbf9; }
.purchase-line-items { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.purchase-lines-head, .purchase-line { display: grid; grid-template-columns: minmax(0, 1.5fr) .7fr .8fr .7fr 32px; gap: 7px; align-items: center; padding: 8px; }
.purchase-lines-head { background: #f8f9f7; color: var(--muted); font-size: 9px; }
.purchase-line { border-top: 1px solid var(--line); }
.purchase-line select, .purchase-line input { min-width: 0; width: 100%; padding: 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.purchase-line-total { text-align: left; font-size: 9px; color: var(--muted); }
.purchase-lines > .button { margin-top: 8px; }
.purchase-lines > small { display: block; margin-top: 8px; line-height: 1.7; }
.product-bom > p { line-height: 1.7; }
.bom-line-items { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.bom-lines-head, .bom-line { display: grid; grid-template-columns: minmax(0, 1.5fr) .8fr .8fr .8fr 32px; gap: 7px; align-items: center; padding: 8px; }
.bom-lines-head { background: #f8f9f7; color: var(--muted); font-size: 9px; }
.bom-line { border-top: 1px solid var(--line); }
.bom-line select, .bom-line input { min-width: 0; width: 100%; padding: 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.bom-unit-cost, .bom-line-total { text-align: left; font-size: 9px; color: var(--muted); }
.product-bom > .button { margin-top: 8px; }
.report-select-label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.product-cost-report { grid-column: 1 / -1; }
.product-cost-report > .table-secondary { line-height: 1.8; margin: 10px 0; }
.product-cost-report .summary-strip { margin-bottom: 12px; }
.product-cost-report .table-primary { color: var(--green-dark); }
.transport-field { padding: 10px; background: #fff; }
.transport-field input { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }
.invoice-grand-total { color: var(--green-dark); background: var(--green-soft); }
.add-line { margin-top: 8px; }
.settings-section { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.settings-section h2 { font-size: 13px; margin: 0 0 15px; }
.settings-footer { display: flex; justify-content: flex-start; margin-top: 15px; }
.payroll-preview { margin-top: 16px; padding: 16px; border: 1px solid #dcebe1; border-radius: 10px; background: linear-gradient(135deg, #f3fbf6, #f7f5ff); }
.payroll-preview h3 { margin: 0 0 12px; color: var(--green-dark); font-size: 13px; }
.payroll-breakdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.payroll-breakdown span { display: grid; gap: 5px; padding: 10px; border-radius: 8px; background: rgba(255,255,255,.82); color: var(--muted); font-size: 10px; }
.payroll-breakdown strong { color: var(--ink); font-size: 12px; }
.payroll-preview p { margin: 12px 0 0; line-height: 1.7; }
.toast-region { position: fixed; z-index: 30; bottom: 22px; left: 22px; display: grid; gap: 8px; }
.toast { background: #203b30; color: #fff; border-radius: 9px; box-shadow: var(--shadow); padding: 11px 15px; font-size: 11px; animation: appear .18s ease-out; }
.toast.error { background: #9e443c; }
@keyframes appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1080px) {
  .sidebar { width: 220px; flex-basis: 220px; }
  .content { padding: 26px 24px; }
  .topbar { padding: 0 24px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; z-index: 15; inset: 0 0 0 auto; width: 250px; transform: translateX(100%); transition: transform .2s ease; box-shadow: -10px 0 30px rgba(0,0,0,.12); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-grid; place-items: center; }
  .topbar { height: 58px; padding: 0 14px; gap: 12px; }
  .topbar-actions { gap: 9px; }
  .today { display: none; }
  .content { padding: 22px 14px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .page-heading h1 { font-size: 22px; }
  .metric-grid { gap: 9px; }
  .metric-card { padding: 13px; }
  .metric-value { font-size: 20px; margin-top: 10px; }
  .dashboard-grid, .report-grid { grid-template-columns: 1fr; }
  .payroll-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-card { align-items: flex-start; flex-direction: column; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
}
@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-width: 0; }
  .metric-top { font-size: 9px; }
  .metric-value { font-size: 17px; }
  .metric-period-row { align-items: flex-start; flex-direction: column; gap: 1px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .line-items-head, .line-item { grid-template-columns: minmax(0, 1.2fr) .6fr .7fr 26px; }
  .line-items-head span:nth-child(4), .line-item-total { display: none; }
  .line-item { grid-template-areas: "product qty price remove"; }
  .line-item select { grid-area: product; }
  .line-item input:nth-of-type(1) { grid-area: qty; }
  .line-item input:nth-of-type(2) { grid-area: price; }
  .line-item .remove-line { grid-area: remove; }
  .purchase-lines-head, .purchase-line { grid-template-columns: minmax(0, 1.2fr) .6fr .7fr 26px; }
  .purchase-lines-head span:nth-child(4), .purchase-line-total { display: none; }
  .purchase-line { grid-template-areas: "item qty price remove"; }
  .purchase-line select { grid-area: item; }
  .purchase-line input:nth-of-type(1) { grid-area: qty; }
  .purchase-line input:nth-of-type(2) { grid-area: price; }
  .purchase-line .remove-line { grid-area: remove; }
  .bom-lines-head, .bom-line { grid-template-columns: minmax(0, 1.2fr) .7fr .7fr 26px; }
  .bom-lines-head span:nth-child(3), .bom-unit-cost { display: none; }
  .bom-line { grid-template-areas: "material qty total remove"; }
  .bom-line select { grid-area: material; }
  .bom-line input { grid-area: qty; }
  .bom-line-total { grid-area: total; }
  .bom-line .remove-line { grid-area: remove; }
}
html[dir="ltr"] .nav-link { text-align: left; }
html[dir="ltr"] .nav-link.active { box-shadow: inset 3px 0 #e4b45c; }
html[dir="ltr"] .search-box input { padding: 9px 11px 9px 34px; }
html[dir="ltr"] .search-box:before { right: auto; left: 12px; }
html[dir="ltr"] .totals { margin-right: 0; margin-left: auto; }
@media print {
  .sidebar, .topbar, .app-footer, .page-heading, .no-print { display: none !important; }
  .content { padding: 0; width: 100%; }
  body { background: white; }
}
