:root {
  --navy: #2f2925;
  --navy-2: #463b33;
  --orange: #b89372;
  --orange-soft: #f4ebe3;
  --ink: #2f2925;
  --muted: #776d66;
  --line: #e7ded5;
  --surface: #ffffff;
  --canvas: #faf9f7;
  --green: #14804a;
  --red: #b42318;
  --blue: #795d47;
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(184, 147, 114, .35); outline-offset: 2px; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: 252px; padding: 28px 20px 20px; background: var(--navy); color: white; display: flex; flex-direction: column; z-index: 5; }
.brand { color: white; display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 0 8px 30px; }
.brand-mark { width: 42px; height: 38px; border-radius: 10px; display: block; overflow: hidden; background: #fff; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.brand strong, .brand small { display: block; line-height: 1.1; letter-spacing: .08em; }
.brand small { font-size: 10px; opacity: .65; margin-top: 4px; }
.nav { display: grid; gap: 8px; }
.nav a { position: relative; color: #c9d2e3; text-decoration: none; padding: 12px 13px; border-radius: 10px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 650; }
.nav a:hover { background: rgba(255,255,255,.07); color: white; }
.nav a.active { background: rgba(184,147,114,.16); color: var(--ink); }
.nav a.active::before { content: ""; position: absolute; left: -20px; width: 4px; height: 24px; border-radius: 0 4px 4px 0; background: var(--orange); }
.nav a span { width: 20px; text-align: center; font-size: 17px; }
.nav a em { margin-left: auto; font-size: 9px; font-style: normal; letter-spacing: .08em; color: #8e9ab0; }
.nav a.disabled { cursor: default; opacity: .64; }
.sidebar-foot { margin-top: auto; padding: 16px 10px 4px; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 10px; }
.company-avatar { width: 34px; height: 34px; border-radius: 50%; background: #2f4268; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { font-size: 13px; }.sidebar-foot small { color: #95a2b8; font-size: 11px; margin-top: 2px; }

.shell { margin-left: 252px; padding: 30px 38px 56px; max-width: 1600px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.eyebrow { margin: 0 0 5px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.topbar h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; }
.menu-button { display: none; border: 0; background: transparent; font-size: 24px; }
.primary-button, .secondary-button, .ghost-button { border: 0; border-radius: 10px; min-height: 42px; padding: 0 17px; font-weight: 750; }
.primary-button { background: var(--orange); color: #211b17; box-shadow: 0 6px 16px rgba(184,147,114,.22); }
.primary-button:hover { background: #a98566; }
.secondary-button { background: var(--navy); color: white; }
.ghost-button { color: var(--ink); background: transparent; border: 1px solid var(--line); }

.intro-panel { position: relative; overflow: hidden; color: white; background: var(--navy); border-radius: 20px; padding: 27px 30px; display: flex; align-items: end; justify-content: space-between; gap: 30px; box-shadow: 0 16px 32px rgba(23,35,59,.12); }
.intro-panel::after { content: ""; position: absolute; right: 17%; top: -80px; width: 180px; height: 260px; background: var(--orange); opacity: .12; transform: rotate(28deg); }
.intro-kicker { color: #aab6c9; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.intro-panel h2 { position: relative; margin: 8px 0 7px; font-size: clamp(20px, 2.6vw, 29px); letter-spacing: -.025em; max-width: 720px; z-index: 1; }
.intro-panel p { color: #b9c2d2; margin: 0; font-size: 14px; }
.intro-number { position: relative; z-index: 1; min-width: 180px; text-align: right; }
.intro-number span, .intro-number strong { display: block; }.intro-number span { color: #b9c2d2; font-size: 12px; }.intro-number strong { font-size: 24px; margin-top: 6px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.metrics article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 19px; display: grid; gap: 6px; }
.metrics span { color: var(--muted); font-size: 13px; font-weight: 650; }.metrics strong { font-size: 25px; letter-spacing: -.03em; }.metrics small { color: #98a2b3; font-size: 11px; }
.metrics .accent { border-color: #e4d2c2; background: linear-gradient(135deg, #fff 60%, var(--orange-soft)); }
.metrics .accent strong { color: #795d47; }
.metric-inline-link { justify-self: start; margin-top: 4px; padding: 0; border: 0; background: transparent; color: #795d47; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.content-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-heading { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.card-heading h2 { margin: 0; font-size: 18px; }.card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.table-tools { display: flex; gap: 10px; }
.receipt-filter-button { min-height: 40px; border: 1px solid #e6c6bd; border-radius: 9px; padding: 0 12px; background: #fff8f6; color: var(--red); font-size: 12px; font-weight: 800; white-space: nowrap; }
.receipt-filter-button span { display: inline-grid; min-width: 22px; height: 22px; margin-left: 5px; padding: 0 6px; place-items: center; border-radius: 12px; background: #feeeee; font-size: 11px; }
.receipt-filter-button:hover, .receipt-filter-button.active { border-color: var(--red); background: var(--red); color: white; }
.receipt-filter-button.active span { background: rgba(255,255,255,.2); color: white; }
.expense-group-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.expense-group-control select { min-width: 112px; }
.expense-group-row td { padding-top: 11px; padding-bottom: 11px; background: #f7f3ee; border-top: 1px solid #e6dbd0; border-bottom: 1px solid #e6dbd0; color: var(--ink); }
.expense-group-row td:first-child { border-left: 3px solid var(--orange); }
.expense-group-row span { margin-left: 9px; color: var(--muted); font-size: 10px; font-weight: 650; }
.search { height: 40px; width: min(260px, 32vw); border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 8px; padding: 0 11px; color: var(--muted); }
.search input { border: 0; outline: 0; width: 100%; color: var(--ink); background: transparent; }
select { min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); padding: 0 30px 0 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 15px 24px; text-align: left; border-bottom: 1px solid #eef0f4; font-size: 13px; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; background: #fafbfc; }
td strong { font-size: 13px; }.right { text-align: right; }
.customer-cell span { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; }
.source-reference { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 5px 9px; font-size: 11px; font-weight: 750; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-draft { color: #5d6573; background: #eef0f3; }.status-sent { color: var(--blue); background: #eaf2ff; }.status-accepted { color: var(--green); background: #e7f7ee; }.status-rejected { color: var(--red); background: #feeeee; }
.status-unpaid, .status-overdue { color: var(--red); background: #feeeee; }.status-partial { color: #b54708; background: #fff3e0; }.status-paid { color: var(--green); background: #e7f7ee; }.status-cancelled { color: #5d6573; background: #eef0f3; }
.view-button { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 7px 10px; font-weight: 700; color: var(--navy); }
.empty-state { text-align: center; padding: 54px 20px 60px; }.empty-icon { margin: auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--orange-soft); color: var(--orange); font-size: 24px; }.empty-state h3 { margin: 16px 0 7px; }.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 20px; font-size: 14px; }

dialog { border: 0; padding: 0; color: var(--ink); box-shadow: 0 30px 80px rgba(15,23,42,.25); }
dialog::backdrop { background: rgba(12,20,35,.62); backdrop-filter: blur(3px); }
.quotation-dialog { width: min(980px, calc(100vw - 32px)); max-height: 92vh; border-radius: 18px; }
.quotation-dialog form { display: flex; flex-direction: column; max-height: 92vh; }
.dialog-head { padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }.dialog-head h2 { margin: 0; font-size: 23px; }.icon-button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: white; font-size: 23px; color: var(--muted); }
.form-scroll { overflow-y: auto; padding: 2px 26px 28px; }
.form-section { padding: 25px 0; border-bottom: 1px solid var(--line); }.form-section:last-child { border: 0; }
.section-title { display: flex; gap: 12px; margin-bottom: 18px; }.section-title > span { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 8px; background: var(--orange-soft); color: #795d47; font-size: 11px; font-weight: 800; }.section-title h3 { margin: 0 0 3px; font-size: 16px; }.section-title p { margin: 0; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding-left: 40px; }.form-grid.two { max-width: 620px; }.form-grid .full { grid-column: 1 / -1; }
label > span { display: block; font-size: 12px; color: #4c5668; font-weight: 700; margin-bottom: 7px; }
input, textarea { width: 100%; border: 1px solid #d9dee7; border-radius: 9px; padding: 10px 11px; color: var(--ink); background: white; }
input { min-height: 42px; } textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--orange); outline: 3px solid rgba(184,147,114,.14); }
.items-header, .item-row { display: grid; grid-template-columns: minmax(220px, 1fr) 90px 130px 130px 38px; gap: 10px; align-items: center; padding-left: 40px; }.items-header { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }.item-row { margin-bottom: 9px; }.item-row output { text-align: right; font-weight: 750; font-size: 13px; }.remove-item { width: 34px; height: 34px; border-radius: 8px; border: 0; background: #fff1f0; color: var(--red); font-size: 18px; }.add-item { margin: 7px 0 0 40px; background: white; border: 1px dashed #bbc3d0; color: var(--navy); min-height: 38px; border-radius: 9px; padding: 0 13px; font-weight: 750; }
.totals-section { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding-left: 40px; }.notes-grid { display: grid; gap: 15px; }.totals-box { padding: 17px; border-radius: 12px; background: #f8f9fb; border: 1px solid var(--line); }.totals-box > div, .totals-box > label { display: grid; grid-template-columns: 1fr 130px; align-items: center; margin-bottom: 12px; }.totals-box div span { font-size: 12px; color: var(--muted); }.totals-box strong { text-align: right; }.totals-box label > span { margin: 0; }.totals-box input { text-align: right; min-height: 38px; }.totals-box .grand-total { margin: 16px -17px -17px; padding: 16px 17px; background: var(--navy); color: white; border-radius: 0 0 12px 12px; }.totals-box .grand-total span { color: #bec7d6; }.totals-box .grand-total strong { font-size: 20px; }
.payment-terms-field { display: grid; gap: 10px; }
.payment-terms-field select { width: 100%; }
.payment-terms-field small { margin-top: -3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.dialog-actions { min-height: 72px; border-top: 1px solid var(--line); padding: 14px 26px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }.dialog-actions p { margin: 0 auto 0 0; color: var(--red); font-size: 12px; }

.preview-dialog { width: min(1040px, calc(100vw - 26px)); max-height: 94vh; background: #e8ebf0; border-radius: 16px; }.preview-toolbar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; background: white; border-bottom: 1px solid var(--line); }.preview-actions { display: flex; gap: 9px; }.paper { width: 780px; min-height: 1040px; margin: 28px auto; padding: 56px 62px; background: white; box-shadow: 0 8px 28px rgba(15,23,42,.12); }.paper-head { display: flex; justify-content: space-between; border-bottom: 3px solid var(--navy); padding-bottom: 24px; }.paper-brand { font-size: 22px; font-weight: 900; color: var(--navy); letter-spacing: .06em; }.paper-brand i { color: var(--orange); font-style: normal; }.paper-head h2 { margin: 0; font-size: 28px; letter-spacing: .12em; }.paper-meta { margin: 26px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }.paper-meta h3 { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }.paper-meta p { white-space: pre-line; line-height: 1.6; font-size: 13px; }.paper table { min-width: 0; }.paper th, .paper td { padding: 11px 9px; }.paper-summary { width: 310px; margin: 25px 0 30px auto; }.paper-summary div { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; }.paper-summary .paper-total { border-top: 2px solid var(--navy); margin-top: 6px; padding-top: 12px; font-size: 18px; font-weight: 850; }.paper-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 38px; }.paper-notes h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }.paper-notes p { font-size: 12px; line-height: 1.65; white-space: pre-line; }.paper-footer { margin-top: 70px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; display: flex; justify-content: space-between; }
.paper-company { display: flex; align-items: flex-start; gap: 14px; }
.paper-logo-box { width: 118px; height: 45px; flex: none; overflow: hidden; border-radius: 5px; background: #fff; }
.paper-logo-box img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.paper-company p { margin: 1px 0 0; max-width: 190px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.paper-company p strong { color: var(--ink); font-size: 10px; }
.paper-head > div:last-child { text-align: right; }
.paper-summary { margin-bottom: 22px; }
.payment-card { display: grid; grid-template-columns: minmax(0, 1fr) 122px; gap: 8px 22px; align-items: center; margin: 18px 0 28px; padding: 16px 18px; border-left: 4px solid var(--orange); background: #f7f8fa; }
.payment-card-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; min-width: 0; }
.payment-qr { display: grid; justify-items: center; gap: 4px; padding-left: 14px; border-left: 1px solid #dfe3e9; text-align: center; }
.payment-qr img { width: 94px; height: 94px; display: block; object-fit: cover; border-radius: 8px; background: white; }
.payment-qr span { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.payment-qr strong { font-size: 9px; }
.payment-card div span, .payment-card div strong { display: block; }
.payment-card div span { margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.payment-card div strong { font-size: 13px; }
.payment-card p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.payment-card .payment-schedule { grid-column: 1 / -1; margin-top: 8px; padding-top: 12px; border-top: 1px solid #dfe3e9; }
.payment-card .payment-schedule p { margin-top: 5px; color: var(--ink); font-size: 10px; line-height: 1.6; white-space: pre-line; }
.paper-notes { margin-top: 28px; }
.paper-footer { margin-top: 48px; gap: 28px; font-size: 9px; }
.paper-footer span:first-child { max-width: 430px; }
.document-preview-table { overflow-x: auto; }
.sales-order-dialog .paper-summary { max-width: 100%; }
.sales-order-notice { font-size: 11px; color: var(--muted); line-height: 1.6; }
.sales-order-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 55px; font-size: 11px; color: var(--muted); }
.sales-order-signatures > div { border-top: 1px solid var(--line); padding-top: 10px; }
.sales-order-dialog .preview-toolbar { flex-wrap: wrap; }
.sales-order-dialog .preview-actions { justify-content: flex-end; }
.toast { position: fixed; right: 24px; bottom: 24px; transform: translateY(120px); opacity: 0; transition: .25s ease; background: var(--navy); color: white; padding: 13px 17px; border-radius: 10px; box-shadow: 0 12px 35px rgba(15,23,42,.25); z-index: 30; font-size: 13px; }.toast.show { transform: translateY(0); opacity: 1; }

[hidden] { display: none !important; }
.auth-locked > .sidebar, .auth-locked > .shell { filter: blur(7px); pointer-events: none; user-select: none; }
.auth-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 70% 20%, rgba(211,187,163,.25), transparent 32%), #faf9f7; }
.auth-card { width: min(430px, 100%); padding: 34px; border-radius: 20px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.auth-logo { width: 138px; height: 52px; overflow: hidden; border-radius: 7px; background: #fff; margin-bottom: 26px; }
.auth-logo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.auth-card h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.035em; }
.auth-copy { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.auth-card form { display: grid; gap: 15px; }
.auth-card .primary-button { width: 100%; margin-top: 2px; }
.auth-card.setup-mode { width: min(820px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.setup-fields { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f7; }
.setup-section { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.setup-section span { color: var(--muted); font-size: 11px; }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.setup-grid .full { grid-column: 1 / -1; }
.setup-fields details { border-top: 1px solid var(--line); padding-top: 10px; }
.setup-fields summary { cursor: pointer; font-weight: 700; margin-bottom: 12px; }
.company-settings-form { padding: 24px 26px 28px; }
.company-settings-form .form-grid { padding-left: 0; }
.company-settings-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding-top: 20px; }
.company-settings-actions p { margin: 0 auto 0 0; color: var(--muted); }
.auth-message { min-height: 18px; margin: -2px 0 0; color: var(--red); font-size: 12px; }
.logout-button { margin-left: auto; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: transparent; color: #b9c3d5; }
.logout-button:hover { color: white; background: rgba(255,255,255,.08); }
.customer-summary { margin-bottom: 18px; padding: 22px 25px; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--navy); color: white; }
.customer-summary div span, .customer-summary div strong { display: block; }.customer-summary div span { color: #aeb9ca; font-size: 12px; }.customer-summary div strong { margin-top: 4px; font-size: 27px; }.customer-summary p { margin: 0; color: #c2cad7; font-size: 13px; }
.customer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px; }
.customer-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.customer-card-head { display: flex; align-items: flex-start; gap: 11px; }.customer-initials { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; background: var(--orange-soft); color: #c9560c; font-size: 12px; font-weight: 850; }.customer-card h3 { margin: 1px 0 3px; font-size: 14px; }.customer-card .company-name { color: var(--muted); font-size: 11px; }.customer-card dl { margin: 17px 0 0; display: grid; gap: 8px; }.customer-card dl div { display: grid; grid-template-columns: 58px 1fr; gap: 8px; font-size: 11px; }.customer-card dt { color: var(--muted); }.customer-card dd { margin: 0; overflow-wrap: anywhere; }.customer-card-actions { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }.customer-card-actions button { border: 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 750; }
.customer-dialog { width: min(720px, calc(100vw - 32px)); border-radius: 18px; }.customer-form-body { padding: 24px 26px 28px; }.customer-form-body .form-grid { padding-left: 0; }
.receipt-scan-panel { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #f7f8fa; }
.receipt-scan-preview { width: 78px; height: 78px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #bbc3d0; border-radius: 10px; background: white; color: var(--muted); font-size: 25px; }
.receipt-scan-preview img { width: 100%; height: 100%; object-fit: cover; }
.receipt-scan-copy strong { display: block; font-size: 13px; }.receipt-scan-copy p { margin: 4px 0 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }.receipt-scan-copy small { color: var(--muted); font-size: 10px; }.receipt-scan-copy small.scanning { color: var(--blue); }.receipt-scan-copy small.success { color: var(--green); }.receipt-scan-copy small.error { color: var(--red); }
.receipt-file-button { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; text-align: center; font-size: 11px; }
.receipt-native-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 100px; }
.receipt-upload-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.receipt-remove-button { grid-column: 3; min-height: 30px; padding: 0 8px; color: var(--red); font-size: 10px; }
.receipt-view-link, .receipt-attach-button { color: var(--blue); font-size: 11px; font-weight: 800; text-decoration: none; }.receipt-view-link:hover { text-decoration: underline; }.receipt-attach-button { border: 0; background: transparent; padding: 0; cursor: pointer; }.receipt-attach-button:hover { text-decoration: underline; }.muted-dash { color: var(--muted); }
.expense-edit-button { white-space: nowrap; }
.section-gap { margin-top: 22px; }
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.directory-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(180px, .4fr) minmax(140px, .3fr); gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8f9fb; }
.directory-toolbar label { min-width: 0; }
.directory-toolbar label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.directory-toolbar input, .directory-toolbar select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.directory-toolbar input { padding: 0 12px; }
.pagination-bar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line); }
.pagination-bar:empty { display: none; }
.pagination-copy { color: var(--muted); font-size: 11px; font-weight: 700; }
.pagination-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.pagination-button { min-width: 34px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--navy); font-size: 11px; font-weight: 800; }
.pagination-button:hover:not(:disabled), .pagination-button.active { border-color: var(--orange); background: var(--orange-soft); color: #b94c08; }
.pagination-button:disabled { opacity: .42; cursor: default; }
.pagination-gap { padding: 0 3px; color: var(--muted); }
.supplier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px; }
.supplier-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: white; }.supplier-card > div:first-child { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; }.supplier-card h3 { margin: 0; font-size: 14px; }.supplier-card p { grid-column: 2; margin: 3px 0 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }.supplier-card dl { margin: 17px 0 0; padding-top: 13px; border-top: 1px solid var(--line); }.supplier-card dl div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 11px; }.supplier-card dt { color: var(--muted); }.supplier-card dd { margin: 0; font-weight: 750; }.supplier-card .supplier-balance { margin-top: 4px; color: var(--red); font-size: 12px; }
.payroll-toolbar { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }.payroll-toolbar label { min-width: 190px; }.payroll-toolbar input { min-height: 42px; }
.clock-help { margin: 14px 0; color: var(--muted); font-size: 12px; }.clock-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.clock-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 70% 20%, rgba(255,138,61,.18), transparent 32%), var(--navy); }.clock-card { width: min(460px, 100%); padding: 34px; border-radius: 22px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.32); }.clock-card h1 { margin: 0 0 8px; font-size: 30px; }.clock-live { margin: 0 0 24px; color: var(--muted); font-size: 13px; }.clock-card form { display: grid; gap: 15px; }.clock-result { min-height: 42px; margin: 2px 0 0; padding: 11px; border-radius: 9px; background: #f5f6f8; color: var(--muted); font-size: 12px; line-height: 1.5; }.clock-result.success { background: #e7f7ee; color: var(--green); }.clock-result.error { background: #feeeee; color: var(--red); }.clock-back { display: block; margin-top: 18px; color: var(--blue); text-align: center; font-size: 12px; }
.clock-links { display: flex; justify-content: center; gap: 20px; }.clock-links .clock-back { margin-top: 18px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }.danger-button { color: var(--red); border-color: #f4c7c7; }.full-action { width: 100%; }.invite-copy { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.portal-auth-page { min-height: 100vh; padding: 28px 16px; background: radial-gradient(circle at 80% 10%, rgba(255,138,61,.15), transparent 30%), #eef1f5; }.onboarding-card { width: min(850px, 100%); margin: auto; padding: 34px; border-radius: 22px; background: white; box-shadow: 0 22px 70px rgba(15,23,42,.13); }.onboarding-card h1 { margin: 0 0 8px; }.onboarding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.onboarding-grid .full { grid-column: 1 / -1; }.account-setup { margin: 24px 0 18px; padding-top: 22px; border-top: 1px solid var(--line); }.account-setup h2 { margin: 0 0 14px; font-size: 18px; }
.staff-portal-page { min-width: 320px; background: var(--canvas); }.staff-portal-head { height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(20px, calc((100vw - 1240px) / 2)); background: var(--navy); color: white; }.staff-portal-head .brand { position: static; }.staff-portal-head > div { display: flex; align-items: center; gap: 12px; }.staff-portal-head .ghost-button { min-height: 34px; padding: 0 11px; border-color: rgba(255,255,255,.2); color: white; }.staff-portal-shell { max-width: 1240px; margin: auto; padding: 30px 20px 50px; }.portal-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 28px; border-radius: 18px; background: var(--navy); color: white; }.portal-welcome h1 { margin: 0; font-size: 30px; }.portal-welcome p:not(.eyebrow) { margin: 6px 0 0; color: #b9c3d5; }.portal-clock { min-width: 270px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.08); }.portal-clock > span { display: block; margin-bottom: 10px; color: #dbe2ec; font-size: 12px; }.portal-clock > div { display: flex; gap: 8px; }.portal-month { display: flex; justify-content: flex-end; margin: 0 0 18px; }.portal-month label { width: 190px; }.portal-columns { display: grid; grid-template-columns: 1.35fr .85fr; gap: 20px; }.portal-form { display: grid; gap: 13px; padding: 20px; }.portal-form .form-grid { padding-left: 0; }.leave-history { padding: 0 20px 20px; }.leave-history > div { display: grid; grid-template-columns: 1fr auto auto; gap: 9px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 10px; }.leave-history em { padding: 4px 7px; border-radius: 12px; font-style: normal; }.leave-approved { color: var(--green); background: #e7f7ee; }.leave-rejected { color: var(--red); background: #feeeee; }.leave-pending { color: #9a5a00; background: #fff3e0; }.payslip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }.payslip-grid div { display: flex; justify-content: space-between; padding: 15px 18px; background: white; font-size: 12px; }.payslip-grid .payslip-total { grid-column: 1 / -1; background: var(--navy); color: white; font-size: 16px; }
.saved-customer-field { margin-bottom: 3px; padding: 12px; border-radius: 11px; background: #f7f8fa; border: 1px solid var(--line); }.saved-customer-field select { width: 100%; }
.dialog-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.payment-balance-card { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 15px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.payment-balance-card div { padding: 14px 16px; background: #f8f9fb; border-right: 1px solid var(--line); }.payment-balance-card div:last-child { border-right: 0; background: var(--orange-soft); }
.payment-balance-card span, .payment-balance-card strong { display: block; }.payment-balance-card span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }.payment-balance-card strong { margin-top: 4px; font-size: 16px; }
.milestone-buttons { display: flex; gap: 8px; margin-bottom: 20px; }.milestone-buttons button { border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; background: white; color: var(--navy); font-size: 11px; font-weight: 750; }.milestone-buttons button:hover { border-color: var(--orange); background: var(--orange-soft); }
.payment-form-grid { padding-left: 0; }.payment-form-grid select { width: 100%; }
.payment-history { margin: 26px 0 5px; padding-top: 20px; border-top: 1px solid var(--line); }.payment-history h3 { margin: 0 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }.payment-history-list { display: grid; gap: 7px; }.payment-history-row { display: grid; grid-template-columns: 100px 1fr 120px 78px; gap: 12px; align-items: center; padding: 9px 11px; border-radius: 8px; background: #f7f8fa; font-size: 10px; }.payment-history-row strong { font-size: 11px; text-align: right; }.receipt-link { border: 0; background: transparent; color: var(--blue); font-size: 10px; font-weight: 800; }
.report-filters { display: flex; align-items: end; gap: 12px; margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }.report-filters label { min-width: 180px; }.report-filters .primary-button { margin-bottom: 0; }.report-category-list { padding: 10px 24px 22px; }.report-category-row { display: grid; grid-template-columns: 180px 1fr 130px; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }.report-category-row:last-child { border-bottom: 0; }.report-category-row .bar { height: 8px; border-radius: 8px; background: var(--orange-soft); overflow: hidden; }.report-category-row .bar i { display: block; height: 100%; border-radius: inherit; background: var(--orange); }.report-category-row strong { text-align: right; }
.receipt-paper { min-height: 720px; }.receipt-heading { margin: 34px 0; text-align: center; }.receipt-heading h2 { margin: 0; font-size: 30px; letter-spacing: .12em; }.receipt-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }.receipt-amount { margin: 24px 0; padding: 24px; text-align: center; border-radius: 12px; background: var(--navy); color: white; }.receipt-amount span, .receipt-amount strong { display: block; }.receipt-amount span { color: #bcc6d6; font-size: 10px; letter-spacing: .1em; }.receipt-amount strong { margin-top: 6px; font-size: 30px; }.receipt-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; }.receipt-details div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }.receipt-details span { color: var(--muted); }.receipt-details strong { text-align: right; }

@media (max-width: 1050px) { .metrics { grid-template-columns: repeat(2, 1fr); }.totals-section { grid-template-columns: 1fr; }.totals-box { max-width: 440px; margin-left: auto; width: 100%; } }
@media (max-width: 1050px) { .customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1050px) { .supplier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: 10px 0 30px rgba(15,23,42,.22); }.sidebar.open { transform: translateX(0); }
  .shell { margin-left: 0; padding: 22px 16px 40px; }.menu-button { display: block; margin-right: 8px; }.topbar > div:not(.topbar-actions) { margin-right: auto; }.topbar .primary-button { padding: 0 12px; font-size: 12px; }
  #quotationPage .topbar { align-items: flex-start; flex-wrap: wrap; }
  #quotationPage #newQuotationButton { flex: 1 0 100%; width: 100%; min-height: 46px; margin-top: 10px; font-size: 13px; }
  #quotationDialog { position: fixed; inset: auto 0 auto 0; top: var(--quotation-dialog-top, 0px); width: 100vw; max-width: none; height: var(--quotation-dialog-height, 100dvh); max-height: var(--quotation-dialog-height, 100dvh); margin: 0; overflow: hidden; border-radius: 0; }
  #quotationDialog form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; height: 100%; max-height: none; overflow: hidden; }
  #quotationDialog .dialog-head { flex: 0 0 auto; padding: calc(15px + env(safe-area-inset-top)) 16px 15px; background: white; }
  #quotationDialog .form-scroll { min-height: 0; overflow-y: auto; padding: 2px 16px 28px; overscroll-behavior: contain; scroll-padding-bottom: 24px; -webkit-overflow-scrolling: touch; }
  #quotationDialog .dialog-actions { position: relative; z-index: 4; min-height: 72px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: white; box-shadow: 0 -8px 24px rgba(15,23,42,.1); }
  #quotationDialog .dialog-actions #saveButton { flex: 1 1 auto; min-width: 150px; min-height: 48px; }
  .intro-panel { align-items: start; flex-direction: column; padding: 24px; }.intro-number { text-align: left; }.metrics { grid-template-columns: 1fr 1fr; }.card-heading { align-items: stretch; flex-direction: column; }.table-tools { flex-direction: column; }.search { width: 100%; }
  .document-table-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; gap: 10px; }
  .document-table-tools .expense-group-control { display: grid; grid-template-columns: 1fr; gap: 5px; width: 100%; min-width: 0; }
  .document-table-tools .expense-group-control select { width: 100%; min-width: 0; }
  .document-table-tools .search, .document-table-tools > select { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .expense-table-tools .receipt-filter-button { width: 100%; min-height: 46px; }
  .form-grid { grid-template-columns: 1fr; padding-left: 0; }.form-grid .full { grid-column: auto; }.items-header { display: none; }.item-row { padding-left: 0; grid-template-columns: 1fr 1fr 38px; border: 1px solid var(--line); border-radius: 11px; padding: 11px; }.item-row input:first-child { grid-column: 1 / -1; }.item-row output { grid-column: 1 / 3; text-align: left; }.totals-section { padding-left: 0; }.add-item { margin-left: 0; }.paper { width: calc(100% - 24px); margin: 12px; padding: 28px 24px; }.paper-meta, .paper-notes { grid-template-columns: 1fr; }.preview-toolbar { align-items: stretch; gap: 8px; }.preview-actions { flex: 1; }.preview-actions select { min-width: 0; flex: 1; }
}
@media (max-width: 760px) {
  .paper-head { flex-direction: column; }
  .paper-head > div:last-child { text-align: left; }
  .paper-company { flex-direction: column; }
  .payment-card { grid-template-columns: 1fr; }.payment-card-details { grid-template-columns: 1fr; }.payment-qr { justify-items: start; padding: 12px 0 0; border-top: 1px solid #dfe3e9; border-left: 0; text-align: left; }.payment-qr img { width: 116px; height: 116px; }
  .payment-card p { grid-column: 1; }
  .paper-footer { flex-direction: column; gap: 6px; }
  .preview-actions { flex-wrap: wrap; justify-content: flex-end; }
  .payment-balance-card { grid-template-columns: 1fr; }.payment-balance-card div { border-right: 0; border-bottom: 1px solid var(--line); }.payment-balance-card div:last-child { border-bottom: 0; }
  .payment-history-row { grid-template-columns: 1fr 1fr; }.payment-history-row strong { text-align: left; }.receipt-details { grid-template-columns: 1fr; }
  .receipt-scan-panel { grid-template-columns: 68px 1fr; }.receipt-scan-preview { width: 68px; height: 68px; }.receipt-upload-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }.receipt-file-button { width: 100%; }.receipt-remove-button { grid-column: 1 / -1; }
  #expensesPage .topbar { align-items: flex-start; flex-wrap: wrap; } #expensesPage .topbar-actions { width: 100%; margin-top: 12px; flex-wrap: wrap; } #expensesPage .topbar-actions > * { flex: 1 1 calc(50% - 6px); min-height: 44px; }
  .payroll-toolbar { align-items: stretch; flex-direction: column; }.payroll-toolbar label, .payroll-toolbar button { width: 100%; }.supplier-grid { grid-template-columns: 1fr; }.directory-toolbar { grid-template-columns: 1fr; }.pagination-bar { align-items: flex-start; flex-direction: column; }.pagination-buttons { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .onboarding-grid, .portal-columns { grid-template-columns: 1fr; }.onboarding-grid .full { grid-column: auto; }.portal-welcome { align-items: stretch; flex-direction: column; }.portal-clock { min-width: 0; }.payslip-grid { grid-template-columns: 1fr; }.payslip-grid .payslip-total { grid-column: auto; }.staff-portal-head { padding: 0 14px; }.staff-portal-head > div > strong { display: none; }.row-actions { flex-direction: column; }
}
@media (max-width: 480px) { .metrics { grid-template-columns: 1fr; }.topbar h1 { font-size: 24px; }.intro-panel h2 { font-size: 21px; }.dialog-actions { padding: 12px 16px; }.dialog-actions p { display: none; }.topbar-actions { gap: 6px; }.topbar-actions button { padding: 0 9px; font-size: 10px; } }
@media (max-width: 600px) { .customer-grid { grid-template-columns: 1fr; }.customer-summary { align-items: flex-start; flex-direction: column; }.auth-card { padding: 27px 22px; } }
@media (max-width: 600px) { .setup-grid { grid-template-columns: 1fr; }.setup-grid .full { grid-column: auto; }.setup-section { align-items: flex-start; flex-direction: column; } }

.staff-app-card { width: min(500px, 100%); }
.staff-app-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 22px; padding: 4px; border-radius: 11px; background: #eef1f5; }
.staff-app-tabs button { min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; }
.staff-app-tabs button.active { background: white; color: var(--navy); box-shadow: 0 3px 12px rgba(15,23,42,.1); }
.staff-panel-copy { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
#portalPanel > form, #quickClockPanel > form { display: grid; gap: 15px; }
#portalPanel .primary-button { width: 100%; }
.onboarding-id-card { margin: 0 0 22px; padding: 18px 20px; border-left: 4px solid var(--orange); border-radius: 11px; background: var(--navy); color: white; }
.onboarding-id-card span, .onboarding-id-card strong, .onboarding-id-card small { display: block; }
.onboarding-id-card span { color: #b9c3d5; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.onboarding-id-card strong { margin: 5px 0; color: var(--orange); font-size: 27px; letter-spacing: .06em; }
.onboarding-id-card small { color: #b9c3d5; font-size: 10px; }
.admin-broadcast-card { margin-bottom: 18px; }
.admin-announcement-list, .portal-announcement-list { display: grid; gap: 10px; padding: 0 20px 20px; }
.admin-announcement, .portal-announcement { padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid #9aa4b5; border-radius: 10px; background: #fff; }
.admin-announcement.priority-important, .portal-announcement.priority-important { border-left-color: var(--orange); }
.admin-announcement.priority-urgent, .portal-announcement.priority-urgent { border-left-color: var(--red); background: #fff9f9; }
.admin-announcement > div, .portal-announcement > div { display: flex; justify-content: space-between; gap: 14px; }
.admin-announcement strong, .portal-announcement strong { font-size: 13px; }
.admin-announcement span, .portal-announcement span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.admin-announcement p, .portal-announcement p { margin: 7px 0 0; color: #4c5668; font-size: 12px; line-height: 1.55; white-space: pre-line; }
.announcement-empty { margin: 0; padding: 12px 0; color: var(--muted); font-size: 12px; }
.portal-announcements { margin-bottom: 18px; }
.portal-announcement.unread { background: #fcf8f4; box-shadow: inset 0 0 0 1px rgba(184,147,114,.16); }
.portal-announcement button { margin-top: 10px; border: 0; background: transparent; color: var(--blue); font-size: 10px; font-weight: 800; }
.portal-announcement small { display: block; margin-top: 8px; color: var(--green); font-size: 10px; }
.notification-count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; margin-left: 5px; padding: 0 6px; border-radius: 10px; background: var(--red); color: white; font-size: 10px; vertical-align: 2px; }
.payslip-grid .employer-contribution { background: #f3f6fa; color: #40506a; }

.workflow-strip { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: white; scrollbar-width: thin; }
.workflow-strip span { flex: 0 0 auto; padding: 9px 12px; border-radius: 9px; background: #f2f4f7; color: var(--navy); font-size: 10px; font-weight: 800; white-space: nowrap; }
.workflow-strip span:last-child { background: var(--navy); color: white; }
.workflow-strip i { flex: 0 0 auto; color: var(--orange); font-size: 13px; font-style: normal; transform: rotate(-90deg); }
.purchasing-flow span:last-child { background: #214d3a; }
.accounting-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: 18px; }
.account-balance-list { margin: 0; padding: 7px 22px 22px; }
.account-balance-list div { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.account-balance-list div:last-child { border-bottom: 0; }
.account-balance-list dt { color: var(--muted); }
.account-balance-list dd { margin: 0; color: var(--navy); font-weight: 850; }
.journal-list { display: grid; gap: 10px; padding: 0 20px 20px; }
.journal-entry { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; }
.journal-entry header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: #f6f7f9; }
.journal-entry header strong, .journal-entry header span { display: block; }
.journal-entry header strong { font-size: 12px; }
.journal-entry header span, .journal-entry time { color: var(--muted); font-size: 10px; }
.journal-entry > div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 11px; }
.journal-entry > div strong { min-width: 120px; text-align: right; }
.accounting-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.accounting-module-grid .content-card { min-width: 0; }
.compact-table { max-height: 330px; overflow: auto; }
.compact-table table { min-width: 560px; }
.negative-amount { color: var(--red); }
.period-list, .audit-list { display: grid; gap: 0; padding: 4px 20px 20px; }
.period-list > div, .audit-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.period-list > div:last-child, .audit-list > div:last-child { border-bottom: 0; }
.period-list span, .period-list strong, .period-list small, .audit-list span, .audit-list strong, .audit-list small { display: block; }
.period-list strong, .audit-list span { color: var(--ink); font-size: 11px; }
.period-list small, .audit-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.period-list em { padding: 5px 8px; border-radius: 12px; background: #feeeee; color: var(--red); font-size: 9px; font-style: normal; font-weight: 850; text-transform: uppercase; }
.myinvois-readiness { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; border-left: 4px solid var(--orange); }
.myinvois-readiness h2 { margin: 4px 0 5px; font-size: 18px; }
.myinvois-readiness p { max-width: 780px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.user-role-badge { display: inline-flex; min-width: 72px; justify-content: center; padding: 6px 9px; border-radius: 14px; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.user-role-badge.role-admin { background: #e8efff; color: #2859a8; }
.user-role-badge.role-accounts { background: #e7f7ee; color: #23724d; }
.role-permission-note { display: grid; gap: 4px; margin-top: 18px; padding: 13px 15px; border: 1px solid #dce6f2; border-radius: 11px; background: #f6f9fc; }
.role-permission-note strong { color: var(--navy); font-size: 11px; }
.role-permission-note span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.inline-customer-fields { margin: 18px 0; padding: 18px; border: 1px solid #dce6f2; border-radius: 13px; background: #f7f9fc; }
.inline-customer-fields .section-title { margin-bottom: 15px; }
.inline-customer-fields .section-title > span { background: #e8efff; color: #2859a8; }
.enquiry-detail-fields { margin-top: 18px; padding-top: 18px !important; border-top: 1px solid var(--line); }
.bank-file-upload { padding: 14px; border: 1px dashed #aeb9c8; border-radius: 11px; background: #f7f9fc; }
.bank-file-upload input { padding: 8px; background: white; }
.bank-file-upload small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.45; }
@media (max-width: 1050px) { .accounting-module-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .accounting-split { grid-template-columns: 1fr; }.myinvois-readiness { align-items: flex-start; flex-direction: column; }.accounting-module-grid .card-heading .row-actions { width: 100%; }.accounting-module-grid .card-heading .row-actions button { flex: 1; } }

.pwa-install-banner { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 200; width: min(560px, calc(100vw - 24px)); transform: translateX(-50%); display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 28px; gap: 11px; align-items: center; padding: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(23,35,59,.97); color: white; box-shadow: 0 18px 55px rgba(0,0,0,.3); backdrop-filter: blur(14px); }
.pwa-install-banner img { width: 46px; height: 46px; border-radius: 11px; }
.pwa-install-banner strong, .pwa-install-banner span { display: block; }
.pwa-install-banner strong { margin-bottom: 3px; font-size: 13px; }
.pwa-install-banner span { color: #c6cfdd; font-size: 10px; line-height: 1.35; }
.pwa-install-action { min-height: 36px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--orange); color: #211b17; font-size: 11px; font-weight: 850; }
.pwa-install-close { width: 28px; height: 28px; border: 0; background: transparent; color: #c6cfdd; font-size: 20px; }
@media (max-width: 480px) { .pwa-install-banner { grid-template-columns: 42px minmax(0, 1fr) 28px; }.pwa-install-banner img { width: 42px; height: 42px; }.pwa-install-action { grid-column: 1 / -1; width: 100%; }.pwa-install-close { grid-column: 3; grid-row: 1; } }

@media print {
  html, body { background: #fff !important; }
  body, .paper, .paper * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body * { visibility: hidden !important; }
  #quotationPreview, #quotationPreview * { visibility: visible !important; }
  #quotationPreview { position: absolute; inset: 0; width: 100%; min-height: 0; margin: 0; padding: 18mm 16mm; box-shadow: none; }
  body.printing-quotation #quotationPreview, body.printing-quotation #quotationPreview * { visibility: visible !important; }
  body.printing-quotation #quotationPreview { position: absolute; inset: 0; width: 100%; min-height: 0; margin: 0; padding: 18mm 16mm; box-shadow: none; }
  body.printing-sales-order #quotationPreview, body.printing-sales-order #quotationPreview *,
  body.printing-invoice #quotationPreview, body.printing-invoice #quotationPreview *,
  body.printing-receipt #quotationPreview, body.printing-receipt #quotationPreview * { visibility: hidden !important; }
  body.printing-invoice #invoicePreview, body.printing-invoice #invoicePreview * { visibility: visible !important; }
  body.printing-invoice #invoicePreview { position: absolute; inset: 0; width: 100%; min-height: 0; margin: 0; padding: 18mm 16mm; box-shadow: none; }
  body.printing-receipt #receiptPreview, body.printing-receipt #receiptPreview * { visibility: visible !important; }
  body.printing-receipt #receiptPreview { position: absolute; inset: 0; width: 100%; min-height: 0; margin: 0; padding: 18mm 16mm; box-shadow: none; }
  body.printing-sales-order #salesOrderPreview, body.printing-sales-order #salesOrderPreview * { visibility: visible !important; }
  body.printing-sales-order #salesOrderPreview { position: absolute; inset: 0; width: 100%; min-height: 0; margin: 0; padding: 18mm 16mm; box-shadow: none; }
  body.printing-sales-order .document-preview-table { overflow: visible; }
  body.printing-sales-order #salesOrderPreview img { display: block !important; visibility: visible !important; opacity: 1 !important; }
  body.printing-quotation #quotationPreview img,
  body.printing-invoice #invoicePreview img,
  body.printing-receipt #receiptPreview img { display: block !important; visibility: visible !important; opacity: 1 !important; }
  @page { size: A4; margin: 0; }
}

/* White + warm beige interface theme */
.sidebar {
  background: #fff;
  color: var(--ink);
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 30px rgba(47, 41, 37, .035);
}
.brand { color: var(--ink); }
.brand-mark,
.auth-logo,
.paper-logo-box { background: #fff; }
.brand-mark img { object-fit: contain; }
.auth-logo img,
.paper-logo-box img { object-fit: contain; }
.nav a { color: var(--muted); }
.nav a:hover { background: var(--orange-soft); color: var(--ink); }
.nav a.active { background: var(--orange-soft); color: var(--ink); }
.nav a em { color: #9b8e84; }
.sidebar-foot { border-top-color: var(--line); }
.company-avatar { background: var(--orange-soft); color: #795d47; }
.sidebar-foot small { color: var(--muted); }
.logout-button { border-color: var(--line); color: var(--muted); }
.logout-button:hover { background: var(--orange-soft); color: var(--ink); }
.auth-gate,
.clock-page,
.portal-auth-page {
  background: radial-gradient(circle at 72% 18%, rgba(211, 187, 163, .25), transparent 34%), #faf9f7;
}
.auth-card,
.clock-card,
.onboarding-card { border: 1px solid var(--line); box-shadow: 0 28px 80px rgba(47, 41, 37, .13); }
.intro-panel,
.customer-summary,
.portal-welcome,
.receipt-amount,
.onboarding-id-card,
.payslip-grid .payslip-total { background: var(--navy); }
.intro-panel { box-shadow: 0 16px 32px rgba(47, 41, 37, .12); }
.intro-kicker,
.intro-panel p,
.intro-number span,
.customer-summary div span,
.customer-summary p,
.portal-welcome p:not(.eyebrow),
.onboarding-id-card span,
.onboarding-id-card small,
.receipt-amount span { color: #d8cec5; }
.customer-initials { color: #795d47; }
.portal-announcement.unread { background: #fcf8f4; box-shadow: inset 0 0 0 1px rgba(184,147,114,.16); }
.staff-app-tabs { background: var(--orange-soft); }
.payslip-grid .employer-contribution,
.journal-entry header,
.workflow-strip span,
.receipt-scan-panel,
.totals-box,
.payment-card { background: #f8f5f2; color: var(--ink); }
.role-permission-note,
.inline-customer-fields,
.bank-file-upload { border-color: var(--line); background: #fcfaf8; }
.inline-customer-fields .section-title > span { background: var(--orange-soft); color: #795d47; }
.staff-portal-head {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(47, 41, 37, .05);
}
.staff-portal-head .ghost-button { border-color: var(--line); color: var(--ink); }
.pwa-install-banner { background: rgba(47,41,37,.97); border-color: rgba(211,187,163,.22); }
.pwa-install-banner span,
.pwa-install-close { color: #ded4cb; }
.pwa-install-action { color: #211b17; }

.dashboard-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
.dashboard-period-controls { display: flex; align-items: center; gap: 8px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.dashboard-period-controls select, .dashboard-period-controls input { min-height: 34px; border: 0; background: #fff; color: var(--ink); font: inherit; font-size: 12px; font-weight: 650; padding: 0 8px; outline: none; }
.dashboard-period-controls input { border-left: 1px solid var(--line); }
.dashboard-period-label { display: inline-flex; margin-top: 13px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid rgba(122,93,71,.16); color: #795d47; font-size: 11px; font-weight: 750; }
.dashboard-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(460px, 1.4fr); gap: 18px; margin-top: 18px; }
.dashboard-action-list { display: grid; gap: 9px; }
.dashboard-action-item { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; text-align: left; color: var(--ink); cursor: pointer; }
.dashboard-action-item:hover { border-color: #c9aa8f; background: #fcfaf8; }
.dashboard-action-item span { display: grid; gap: 4px; }
.dashboard-action-item strong { font-size: 13px; }
.dashboard-action-item small { color: var(--muted); font-size: 11px; }
.dashboard-action-item b { font-size: 22px; color: #9b7558; }
.dashboard-action-item.urgent { border-left: 4px solid #bd4b4b; }
.dashboard-action-item.pending { border-left: 4px solid #c99241; }
.dashboard-clear-state { min-height: 150px; display: grid; place-content: center; text-align: center; gap: 6px; color: var(--muted); }
.dashboard-clear-state strong { color: var(--ink); }
.dashboard-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dashboard-quick-actions button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 15px; text-align: left; font: inherit; font-weight: 700; cursor: pointer; }
.dashboard-quick-actions button:hover { background: var(--orange-soft); border-color: #cfb39a; }
@media (max-width: 1100px) { .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .dashboard-metrics, .dashboard-quick-actions { grid-template-columns: 1fr; } .dashboard-grid { display: block; } .dashboard-grid > * + * { margin-top: 16px; } .dashboard-topbar-actions { width: 100%; justify-content: stretch; } .dashboard-period-controls { width: 100%; } .dashboard-period-controls select, .dashboard-period-controls input { min-width: 0; flex: 1; } }

.payroll-deduction-editor { display: flex; align-items: center; gap: 7px; min-width: 150px; }
.payroll-deduction-editor input { width: 92px; min-height: 34px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; text-align: right; }
.payroll-deduction-editor input:focus { outline: 2px solid rgba(184,147,114,.22); border-color: #b89372; }
.payroll-deduction-editor input:disabled { background: #f3f0ed; color: var(--muted); cursor: not-allowed; }
.payroll-deduction-editor .view-button { white-space: nowrap; }
.payroll-clear-contributions { margin-top: 14px; }
.payroll-final-preview { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(280px, .8fr); align-items: end; gap: 22px; background: #f8f5f2; border-radius: 14px; }
.payroll-final-preview > div:first-child { display: grid; gap: 5px; }
.payroll-final-preview > div:first-child span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.payroll-final-preview > div:first-child strong { font-size: 28px; }
.payroll-final-preview > div:first-child small { color: var(--muted); }
@media (max-width: 700px) { .payroll-final-preview { grid-template-columns: 1fr; } }

/* Supplier details dialog */
.supplier-dialog { overflow: hidden; }
.supplier-dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.supplier-dialog .dialog-head, .supplier-dialog .dialog-actions { flex: none; }
.supplier-dialog .customer-form-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.supplier-section + .supplier-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.supplier-section h3 { margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.supplier-dialog-summary { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.supplier-card[data-open-supplier] { cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.supplier-card[data-open-supplier]:hover, .supplier-card[data-open-supplier]:focus-visible { border-color: var(--orange); box-shadow: 0 8px 22px rgba(47, 41, 37, .08); outline: none; }
.supplier-card-link { display: block; margin-top: 12px; color: var(--orange); font-size: 11px; font-weight: 800; }

/* Modules switched off for this company (e.g. Payroll); the menu item stays in the markup so it can be restored. */
[data-module-hidden] { display: none !important; }
.supplier-dialog #supplierExpenseSection table { min-width: 0; font-size: 12px; }
.supplier-dialog #supplierExpenseSection th, .supplier-dialog #supplierExpenseSection td { padding-left: 8px; padding-right: 8px; }
.supplier-dialog #supplierExpenseSection td:first-child, .supplier-dialog #supplierExpenseSection td:last-child { white-space: nowrap; }

/* Cash sale dialog */
.cash-sale-dialog { width: min(820px, calc(100vw - 32px)); }
.cash-sale-items { margin-top: 16px; overflow-x: auto; }
.cash-sale-items table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.cash-sale-items th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #667085); padding: 6px 4px; }
.cash-sale-items td { padding: 4px; vertical-align: middle; }
.cash-sale-items .right { text-align: right; }
.cash-sale-items input, .cash-sale-items select { width: 100%; min-width: 0; }
.cash-sale-items td:nth-child(3) { width: 70px; }
.cash-sale-items td:nth-child(4) { width: 110px; }
.cash-sale-items td:nth-child(5) { width: 100px; white-space: nowrap; }
.cash-sale-items td:last-child { width: 36px; }
.cash-sale-items-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.cash-sale-note { display: grid; gap: 6px; margin-top: 14px; }

/* Items list */
#itemsPage .table-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
#itemGroupRows select { min-width: 220px; }
.muted-row td { color: var(--muted); }
#salesItemForm .checkbox-row { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; }
#salesItemForm .checkbox-row input { width: auto; }

/* Receipt reading progress */
#receiptScanStatus { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; }
#receiptScanStatus.scanning { color: var(--ink, #2b2622); font-weight: 600; }
#receiptScanStatus.scanning::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: receipt-spin .8s linear infinite; }
#receiptScanStatus.error { color: #b42318; font-weight: 600; }
#receiptScanStatus.success { color: #067647; font-weight: 600; }
.receipt-retry-button { margin-top: 8px; }
@keyframes receipt-spin { to { transform: rotate(360deg); } }

/* Dialog forms: columns never grow wider than the dialog (long account / supplier names used to push it sideways) */
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid > label { min-width: 0; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.form-grid select { text-overflow: ellipsis; }
.customer-dialog { max-width: calc(100vw - 32px); overflow-x: hidden; }
.customer-dialog .customer-form-body { overflow-x: hidden; }
@media (max-width: 760px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* Expense form: Vendor Library link status under the vendor field */
.vendor-link-status { font-size: 12.5px; margin-top: -6px; }
.vendor-link-status:empty { display: none; }
.vendor-link-status .vendor-linked { color: #067647; }
.vendor-link-status .vendor-new { display: flex; align-items: center; gap: 8px; color: var(--ink, #2b2622); cursor: pointer; }
.vendor-link-status .vendor-new input { width: auto; margin: 0; }
.vendor-link-status .vendor-similar { margin-bottom: 6px; color: var(--muted); }
.vendor-link-status .link-button { border: 0; background: none; padding: 0 4px; color: #1d4ed8; text-decoration: underline; cursor: pointer; font: inherit; }

.voucher-payee-heading { margin: 22px 0 4px; font-size: 14px; }
.voucher-payee-help { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.voucher-payee-table th { white-space: nowrap; font-size: 11px; }
.voucher-payee-table td { vertical-align: top; padding: 6px 4px; }
.voucher-payee-table input, .voucher-payee-table textarea { width: 100%; min-width: 110px; box-sizing: border-box; font: inherit; font-size: 12px; padding: 6px 8px; border: 1px solid var(--line, #ddd); border-radius: 8px; }
.voucher-payee-table textarea { min-width: 190px; resize: vertical; }
.voucher-settings-card .card-heading { gap: 12px; flex-wrap: wrap; }

.paper-logo-box.paper-logo-trimmed { position: relative; border-radius: 0; background: transparent; }
.paper-logo-box.paper-logo-trimmed img { position: absolute; max-width: none; object-fit: fill; }
.document-total-row td { border-top: 2px solid var(--ink, #2f2925); background: var(--soft, #f8f5f2); }
.item-code-cell { white-space: nowrap; font-weight: 600; }
.item-desc-inline { display: none; }
.document-total-row span.customer-cell { display: block; margin-top: 3px; }
@media (max-width: 600px) {
  .preview-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .preview-toolbar { flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; }
  .preview-toolbar > .ghost-button { min-height: 40px; height: auto; padding: 0 12px; }
  .preview-actions { flex: 1 1 auto; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
  .preview-actions button, .preview-actions select { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .preview-actions select { flex: 1 1 110px; min-width: 110px; }
  .paper { width: auto; min-height: 0; margin: 8px; padding: 22px 16px; }
  .paper-meta { margin: 18px 0 20px; gap: 16px; }
  .paper-summary { width: 100%; }
  .paper-notes { gap: 16px; margin-top: 24px; }
  .paper-footer { flex-direction: column; gap: 4px; margin-top: 32px; }
  .paper table.line-items { width: 100%; table-layout: fixed; font-size: 12px; }
  .paper table.line-items th { font-size: 9px; letter-spacing: .04em; }
  .paper table.line-items th, .paper table.line-items td { padding: 9px 4px; overflow-wrap: anywhere; }
  .paper table.line-items .item-desc-col { display: none; }
  .paper table.line-items th:nth-child(1) { width: 40%; }
  .paper table.line-items th:nth-child(3) { width: 14%; }
  .paper table.line-items th:nth-child(4), .paper table.line-items th:nth-child(5) { width: 23%; }
  .paper table.line-items .item-code-cell { white-space: normal; }
  .item-code-cell .item-desc-inline { display: block; margin-top: 2px; font-weight: 400; font-size: 11px; color: var(--muted); }
}
.metrics .metric-link { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.metrics .metric-link:hover, .metrics .metric-link:focus-visible { border-color: var(--accent, #b8916f); box-shadow: 0 6px 18px rgba(47,41,37,.08); transform: translateY(-1px); outline: none; }
.metrics .metric-link.is-active { border-color: var(--accent, #b8916f); box-shadow: inset 0 0 0 1px var(--accent, #b8916f); }
.ai-paste-box { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; margin-bottom: 14px; padding: 14px 16px; border: 1.5px dashed var(--accent, #b8916f); border-radius: 12px; background: var(--soft, #f8f5f2); color: inherit; text-align: left; cursor: pointer; }
.ai-paste-box:hover, .ai-paste-box:focus-visible { background: #f3ece5; outline: none; }
.ai-paste-box strong { font-size: 14px; }
.ai-paste-box span { font-size: 12px; color: var(--muted); }
.ai-summary { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; }
.ai-summary ul { margin: 6px 0 0; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.ai-summary li.warn { color: #9a5b00; font-weight: 600; }
.ai-summary li.ok { color: var(--ink, #2f2925); }
#cashSaleItemRows tr.needs-check td { background: #fff4d6; }
.paste-dialog textarea { width: 100%; min-height: 240px; font: inherit; font-size: 14px; }
.cash-sale-totals { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cash-sale-discount { display: flex; align-items: center; gap: 6px; }
.cash-sale-discount span { font-size: 12px; color: var(--muted); }
.cash-sale-discount input { width: 110px; }
#cashSaleSubtotalLine { color: var(--muted); font-size: 12px; }
.danger-fill { background: var(--red, #b42318); border-color: var(--red, #b42318); color: #fff; }
.cancelled-banner { margin: -10px 0 18px; padding: 10px 14px; border: 1.5px solid var(--red, #b42318); border-radius: 10px; color: var(--red, #b42318); font-size: 12.5px; background: #fff5f4; }
@media print { .cancelled-banner { display: none; } }
.paper-summary .paper-subtotal-strong { font-weight: 800; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 9px; }
#deleteInvoiceButton { background: #fff; color: var(--red, #b42318); border: 1.5px solid var(--red, #b42318); }
#deleteInvoiceButton:hover { background: #fff5f4; }
.form-hint { margin: -4px 0 0; font-size: 12px; color: var(--muted); }
.role-select { min-width: 120px; padding: 6px 8px; font-size: 12px; }
.user-role-badge.role-owner { background: #2f2925; color: #fff; }
[data-not-admin][hidden], [data-full-access-only][hidden] { display: none !important; }
.proof-cell { white-space: nowrap; }
.proof-cell .receipt-view-link { margin-right: 6px; }
.proof-cell .receipt-none { color: var(--muted); font-size: 12px; }
.attach-proof-button { padding: 4px 10px; font-size: 12px; }
#deleteExpenseButton { margin-right: auto; background: #fff; color: var(--red, #b42318); border: 1.5px solid var(--red, #b42318); }
#deleteExpenseButton:hover { background: #fff5f4; }
