:root { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #243033; background: #f5f7f7; font-size: 14px; }
* { box-sizing: border-box; } body { margin: 0; } a { color: #087763; text-decoration: none; } a:hover { text-decoration: underline; } button, input, select, textarea { font: inherit; } button { cursor: pointer; }
.shell { display: grid; grid-template-columns: 214px minmax(0, 1fr); min-height: 100vh; }.sidebar { background: #172729; color: #eaf2f0; padding: 24px 14px; display: flex; flex-direction: column; gap: 38px; }.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: inherit; font-size: 16px; font-weight: 700; padding: 0 10px; line-height: 1.2; }.brand:hover { text-decoration: none; }.brand small { display: block; font-size: 11px; font-weight: 500; color: #a7bcb8; }.brand-logo { width: 132px; height: auto; display: block; }
.sidebar nav { display: grid; gap: 3px; }.sidebar nav a, .logout { color: #bfcecb; padding: 10px 12px; border-radius: 6px; font-weight: 550; }.sidebar nav a:hover, .sidebar nav a.active { background: #294244; color: white; text-decoration: none; }.logout { margin-top: auto; }.logout:hover { color: white; }
.main { width: 100%; min-width: 0; padding: 36px clamp(20px, 4vw, 64px) 80px; }.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 25px; }.page-head h1 { margin: 2px 0 0; font-size: 28px; line-height: 1.2; letter-spacing: 0; }.eyebrow { color: #697b7d; margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; }.head-actions { display: flex; gap: 8px; }.back { display: inline-block; margin: 0 0 20px; font-weight: 600; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 36px; border: 1px solid #b9c9c9; border-radius: 6px; background: white; padding: 7px 13px; color: #263638; font-weight: 650; white-space: nowrap; }.button:hover { background: #edf4f2; text-decoration: none; }.button.primary { background: #087763; border-color: #087763; color: white; }.button.primary:hover { background: #086553; }.button.full { width: 100%; margin-top: 14px; }
.notice { border: 1px solid #b8d9cb; background: #ecf8f1; color: #125d44; padding: 12px 15px; border-radius: 5px; margin: 0 0 18px; }.notice.error { border-color: #e6b7ae; background: #fff2ef; color: #933f32; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid #dce4e3; border-radius: 7px; } table { width: 100%; border-collapse: collapse; text-align: left; } th { background: #f2f5f4; color: #5d6d6e; text-transform: uppercase; font-size: 11px; font-weight: 750; } th, td { padding: 13px 15px; border-bottom: 1px solid #e5ebea; white-space: nowrap; } tr:last-child td { border-bottom: 0; } .align-right { text-align: right; }.strong-link { font-weight: 700; }.empty { color: #738083; padding: 35px 15px; text-align: center; }.status { display: inline-block; border-radius: 4px; background: #f1f1ed; padding: 4px 7px; font-size: 12px; color: #5c625c; }.status.historical { background: #e7f1f2; color: #35636a; }
.form-surface, .document-sheet { background: white; border: 1px solid #dce4e3; border-radius: 7px; padding: clamp(18px, 3vw, 34px); max-width: 1000px; }.form-surface h2 { font-size: 16px; margin: 0 0 16px; padding-top: 8px; }.form-surface h2:not(:first-child) { margin-top: 30px; border-top: 1px solid #e6eceb; padding-top: 25px; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }.span-2 { grid-column: 1 / -1; } label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: #415356; } input, select, textarea { width: 100%; border: 1px solid #bdcbca; border-radius: 5px; min-height: 37px; padding: 7px 10px; background: white; color: #233134; outline: none; } input:focus, select:focus, textarea:focus { border-color: #087763; box-shadow: 0 0 0 3px #ccebe1; } textarea { resize: vertical; min-height: 75px; } ul { margin: 5px 0; padding-left: 18px; color: #a64136; }.form-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #e5ebea; margin-top: 28px; padding-top: 22px; }
.line-list { display: grid; gap: 10px; margin-bottom: 12px; }.line-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(80px, .7fr) minmax(110px, 1fr) auto; gap: 12px; align-items: end; border-bottom: 1px solid #e9eeee; padding-bottom: 10px; }.line-row > div { min-width: 0; }.line-row .remove-line { margin-bottom: 0; }
.label { color: #718183; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.document-sheet { --sheet-accent: #d7314d; max-width: 900px; padding: clamp(22px, 4vw, 48px); color: #20272b; }.document-sheet.quote { --sheet-accent: #087d70; }
.sheet-banner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; min-height: 118px; gap: 28px; padding: 24px 28px; background: #000; color: #fff; }.sheet-banner img { display: block; width: min(100%, 190px); height: auto; }.sheet-logo-fallback { font-size: 24px; }.sheet-banner-title { text-align: right; min-width: 0; }.sheet-banner h2 { margin: 0 0 8px; color: #fff; font-size: 32px; line-height: 1.1; }.sheet-banner-title strong { color: #d7d7d7; font-size: 14px; overflow-wrap: anywhere; }.sheet-meta { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid #d9e0e0; padding: 11px 0; color: #68777a; font-size: 12px; }.sheet-meta span:first-child:not(:empty) { color: var(--sheet-accent); font-weight: 750; text-transform: uppercase; }
.sheet-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 26px 0 28px; }.sheet-parties section { min-width: 0; border-bottom: 1px solid #d9e0e0; padding: 20px 22px 20px 0; }.sheet-parties section.sheet-client { border-left: 3px solid var(--sheet-accent); padding: 20px 22px; background: #f6f8f7; }.sheet-parties h3 { margin: 14px 0 10px; font-size: 16px; overflow-wrap: anywhere; }.sheet-parties p { margin: 0; color: #435155; line-height: 1.65; overflow-wrap: anywhere; }.sheet-section { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d9e0e0; padding-bottom: 10px; }.sheet-section h3 { margin: 0; font-size: 17px; }.sheet-section span { color: #697579; font-size: 12px; }.sheet-subject { font-size: 14px; font-weight: 750; margin: 18px 0; }
.sheet-table-wrap { overflow-x: auto; }.sheet-items { min-width: 550px; table-layout: fixed; }.sheet-items th { background: #edf2f0; color: #485a5c; border-bottom: 2px solid var(--sheet-accent); }.sheet-items th:first-child, .sheet-items td:first-child { width: 49%; }.sheet-items th:nth-child(2), .sheet-items td:nth-child(2) { width: 12%; }.sheet-items th:nth-child(3), .sheet-items td:nth-child(3) { width: 18%; }.sheet-items th:nth-child(4), .sheet-items td:nth-child(4) { width: 21%; }.sheet-items td { white-space: normal; vertical-align: top; overflow-wrap: anywhere; }.sheet-items td:first-child { font-weight: 650; }
.sheet-totals { width: min(100%, 48%); margin: 26px 0 28px auto; }.sheet-totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }.sheet-totals > div strong { white-space: nowrap; }.sheet-totals .sheet-grand { border-top: 2px solid var(--sheet-accent); margin-top: 6px; padding-top: 15px; font-size: 20px; font-weight: 750; }.sheet-grand strong { color: var(--sheet-accent); }.sheet-payment { border-left: 3px solid var(--sheet-accent); background: #edf2f0; padding: 16px 20px; color: #435155; line-height: 1.6; overflow-wrap: anywhere; }.sheet-payment > * { display: block; }.sheet-payment strong { color: #20272b; margin-top: 5px; }.sheet-notes { margin-top: 30px; }.sheet-notes-title { margin: 0 0 18px; border-bottom: 2px solid var(--sheet-accent); padding-bottom: 12px; font-size: 20px; }.document-note { line-height: 1.6; color: #4b5c5d; overflow-wrap: anywhere; }.document-note p { margin: 0 0 10px; }.sheet-footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid #d9e0e0; color: #697579; font-size: 11px; margin-top: 34px; padding-top: 11px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }.login-box { width: min(100%, 380px); padding: 30px; background: white; border: 1px solid #dce4e3; border-radius: 7px; }.login-box .brand { color: #223033; padding: 0; }.login-box .brand small { color: #697579; }.login-box h1 { font-size: 24px; margin: 34px 0 20px; }.login-box label { margin-top: 14px; }
.logo-preview { max-width: 160px; max-height: 80px; display: block; object-fit: contain; margin: 0 0 12px; }
.sheet-terms { margin-top: 27px; padding-top: 15px; border-top: 1px solid #d9e0e0; color: #526365; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.sheet-terms h3 { margin: 0 0 7px; color: #263335; font-size: 13px; }
.sheet-terms p { margin: 0; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }.filters input[type=search] { max-width: 300px; }.filters input[type=number] { width: 95px; }.result-count { color: #667679; margin-left: auto; font-size: 12px; }.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; color: #607173; }
.rich-editor { margin-top: 18px; }.editor-toolbar, .editor-mount { display: none; }.rich-editor.is-ready .editor-toolbar { display: flex; flex-wrap: wrap; gap: 3px; border: 1px solid #bdcbca; border-bottom: 0; border-radius: 5px 5px 0 0; padding: 5px; background: #f4f7f6; }.rich-editor.is-ready .editor-mount { display: block; border: 1px solid #bdcbca; border-radius: 0 0 5px 5px; min-height: 150px; }.editor-toolbar button { border: 0; background: transparent; border-radius: 4px; min-width: 31px; height: 29px; color: #344548; font-weight: 700; }.editor-toolbar button:hover { background: #dfe9e6; }.editor-mount .tiptap { min-height: 150px; padding: 12px; outline: none; line-height: 1.55; }.editor-mount .tiptap p { margin: 0 0 9px; }.editor-mount .tiptap h2 { border: 0 !important; margin: 6px 0 10px !important; padding: 0 !important; }.editor-mount .tiptap ul, .editor-mount .tiptap ol { color: inherit; }
@media (max-width: 760px) { .shell { display: block; }.sidebar { padding: 14px 16px; gap: 14px; }.sidebar .brand { flex-direction: row; align-items: center; }.sidebar .brand-logo { width: 90px; }.sidebar nav { display: flex; overflow-x: auto; }.sidebar nav a { white-space: nowrap; }.logout { display: inline-block; align-self: flex-end; margin-top: 0; font-size: 12px; }.main { padding: 24px 16px 60px; }.page-head { align-items: flex-start; }.page-head h1 { font-size: 23px; }.form-grid, .form-grid.three { grid-template-columns: 1fr; }.line-row { grid-template-columns: 1fr 1fr; }.line-row > div:first-child { grid-column: 1 / -1; }.line-row .remove-line { justify-self: end; }.head-actions { flex-wrap: wrap; justify-content: flex-end; }.sheet-banner { min-height: 90px; padding: 18px; gap: 14px; }.sheet-banner img { width: min(100%, 120px); }.sheet-banner h2 { font-size: 23px; }.sheet-banner-title strong { font-size: 11px; }.sheet-meta { flex-wrap: wrap; }.sheet-parties { grid-template-columns: 1fr; gap: 22px; }.sheet-parties section { padding: 0 0 18px; }.sheet-parties section.sheet-client { padding: 18px; }.sheet-totals { width: 100%; }.sheet-section span { text-align: right; }.sheet-footer { flex-wrap: wrap; } }

/* Workspace shell */
:root { color: #222d2e; background: #f7f8f7; }
a { color: #126e60; }
.shell { grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: #1b2323; padding: 30px 14px 18px; gap: 0; }
.brand { padding: 0 12px 36px; gap: 10px; }
.brand-logo { width: 155px; border-radius: 2px; }
.brand small { color: #92a7a3; font-size: 11px; font-weight: 650; letter-spacing: 0; }
.nav-label { color: #718985; font-size: 10px; font-weight: 750; text-transform: uppercase; padding: 0 13px; margin: 0 0 10px; }
.nav-label-secondary { margin-top: 30px; }
.sidebar nav { gap: 3px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 9px 12px; border-radius: 5px; color: #bbc8c5; font-weight: 600; border-left: 2px solid transparent; }
.sidebar nav a svg { width: 17px; height: 17px; stroke-width: 1.8; flex: none; color: #8ca39e; }
.sidebar nav a:hover { background: #2b3837; color: #fff; }
.sidebar nav a.active { background: #303d3b; color: #fff; border-left-color: #43b59b; }
.sidebar nav a.active svg { color: #61d2b7; }
.sidebar-footer { margin-top: auto; border-top: 1px solid #34403e; padding: 17px 9px 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.workspace-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.workspace-avatar { width: 35px; height: 35px; display: grid; place-items: center; background: #e9f7f2; color: #176c5d; border-radius: 5px; font-size: 11px; font-weight: 800; flex: none; }
.workspace-identity strong, .workspace-identity small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-identity strong { color: #f0f5f3; font-size: 12px; }
.workspace-identity small { color: #859994; font-size: 11px; margin-top: 2px; }
.logout { display: grid; place-items: center; padding: 7px; margin: 0; color: #aebfbb; }
.logout svg { width: 17px; height: 17px; }
.logout:hover { background: #303d3b; }
.main { padding: 0; }
.topbar { height: 64px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e7e5; background: #fff; padding: 0 clamp(24px, 3.5vw, 54px); color: #4e5e5c; font-size: 12px; font-weight: 650; }
.topbar-divider { display: inline-block; margin: 0 9px; color: #aebcb7; }
.topbar-right { display: flex; align-items: center; gap: 8px; color: #74857f; font-weight: 550; }
.topbar-indicator { width: 6px; height: 6px; border-radius: 50%; background: #43aa87; }
.content { width: 100%; max-width: 1530px; padding: 32px clamp(24px, 3.5vw, 54px) 84px; margin: 0 auto; }
.page-head { margin-bottom: 27px; align-items: flex-end; flex-wrap: wrap; }
.head-actions { flex-wrap: wrap; justify-content: flex-end; }
.head-action-form { display: inline-flex; margin: 0; }
.head-action-form .button { height: 100%; }
.page-head h1 { font-size: 27px; font-weight: 750; }
.eyebrow { color: #52756d; font-size: 11px; }
.page-subtitle { color: #7a8985; margin: 6px 0 0; font-size: 13px; }
.button { gap: 8px; min-height: 37px; border-color: #ced8d4; border-radius: 5px; font-size: 12px; background: #fff; transition: background .15s, border-color .15s; }
.button svg, .back svg { width: 15px; height: 15px; stroke-width: 2; flex: none; }
.button.subtle { background: #eef5f2; color: #176e5c; border-color: #d8e8e1; }
.button.subtle:hover { background: #e1f0ea; }
.button.primary { background: #147664; border-color: #147664; }
.button.primary:hover { background: #0e6052; }
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid transparent; background: transparent; color: #576e69; border-radius: 4px; padding: 0; }
.icon-button svg { width: 16px; height: 16px; stroke-width: 1.8; }
.icon-button:hover:not(:disabled) { border-color: #d5e5df; background: #ecf5f1; color: #176e5c; }
.icon-button.danger:hover:not(:disabled) { border-color: #eed1ca; background: #fdf0ed; color: #b74e40; }
.icon-button:disabled { opacity: .28; cursor: not-allowed; }
.back { display: inline-flex; align-items: center; gap: 7px; color: #63766f; font-size: 12px; margin-bottom: 21px; }
.notice { display: flex; align-items: flex-start; gap: 10px; }
.notice svg { width: 17px; height: 17px; flex: none; }
.notice.caution { background: #fff8eb; border-color: #eddab4; color: #785927; }
.filters { gap: 9px; margin-bottom: 15px; }
.search-field { position: relative; width: min(100%, 330px); }
.search-field svg { position: absolute; left: 11px; top: 10px; width: 15px; height: 15px; color: #8a9b95; pointer-events: none; }
.search-field input[type=search] { max-width: none; padding-left: 35px; }
.result-count { font-weight: 600; }
.table-wrap { border-color: #e0e7e3; border-radius: 6px; box-shadow: 0 2px 7px #1a40300a; }
th { background: #f4f6f5; color: #6a7a74; font-size: 10px; }
th, td { padding: 13px 16px; border-bottom-color: #edf0ee; }
tbody tr:hover { background: #fafcfb; }
.strong-link { color: #1a6859; }
.status { padding: 4px 8px; font-size: 11px; font-weight: 700; background: #edf4ef; color: #487059; }
.status.historical { background: #f1f3f1; color: #5e706a; }
.form-surface { border-color: #e0e7e3; border-radius: 6px; box-shadow: 0 2px 7px #1a40300a; max-width: 1040px; }
.form-surface h2 { font-size: 14px; font-weight: 750; }
.document-footer-preview { margin-top: 28px; padding-top: 18px; border-top: 1px solid #e6eceb; color: #526365; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.document-footer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.document-footer-head h3 { margin: 0; color: #263335; font-size: 13px; }
.document-footer-head .icon-button { width: 30px; height: 30px; }
.document-footer-preview p { margin: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 30px; border-top: 1px solid #e6eceb; padding-top: 25px; margin-bottom: 17px; }
.section-heading h2 { padding: 0 !important; margin: 0 !important; border: 0 !important; }
label { color: #405653; font-size: 11px; }
input, select, textarea { border-color: #cbd7d2; border-radius: 4px; }
input:focus, select:focus, textarea:focus { border-color: #16826d; box-shadow: 0 0 0 3px #d9f1e7; }
.line-list { gap: 0; margin: 0; border-top: 1px solid #e7edeb; }
.line-row { grid-template-columns: 32px minmax(0, 3fr) minmax(90px, .75fr) minmax(120px, 1fr) 105px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #e7edeb; }
.line-row label { margin-bottom: 5px; }
.line-row .line-field { min-width: 0; }
.line-row .line-field > div { min-width: 0; }
.line-row .line-field ul { font-size: 11px; }
.line-number { align-self: center; color: #9aa9a3; font-size: 11px; font-weight: 750; }
.line-tools { display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.form-actions { margin-top: 32px; }
.snapshot-option { border-top: 1px solid #edf1ef; padding-top: 15px; }
.snapshot-option > div { display: flex; flex-wrap: wrap; gap: 5px 9px; align-items: center; }
.snapshot-option input[type=checkbox] { order: -1; width: 16px; height: 16px; min-height: 16px; flex: none; margin: 0; accent-color: #147664; }
.snapshot-option label { margin: 0; font-size: 12px; }
.snapshot-option .help-text { flex-basis: 100%; margin: 0 0 0 25px; color: #758780; font-size: 11px; }
.revision-entry { max-width: 1040px; background: #fff; border: 1px solid #e0e7e3; border-bottom: 0; padding: 20px 23px; }
.revision-entry:first-of-type { border-radius: 6px 6px 0 0; }
.revision-entry:last-of-type { border-bottom: 1px solid #e0e7e3; border-radius: 0 0 6px 6px; }
.revision-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.revision-head h2 { margin: 4px 0 0; font-size: 15px; }
.revision-index { font-size: 11px; color: #198069; font-weight: 750; text-transform: uppercase; }
.revision-head time { color: #6e7e79; font-size: 12px; white-space: nowrap; }
.revision-meta { display: flex; flex-wrap: wrap; gap: 9px 23px; margin: 14px 0 0; font-size: 12px; color: #60736b; }
.revision-meta strong { color: #263e36; }
.revision-entry details { border-top: 1px solid #eef1ef; padding-top: 12px; margin-top: 14px; }
.revision-entry summary { color: #176e5c; cursor: pointer; font-size: 12px; font-weight: 700; }
.revision-detail { padding-top: 8px; font-size: 12px; line-height: 1.6; }
.revision-detail p { margin: 7px 0; }
.revision-detail ol { color: #263937; padding-left: 18px; }
.revision-notes { border-top: 1px solid #edf0ee; padding-top: 12px; white-space: normal; }
.empty-state { color: #71837d; padding: 25px 0; }
.issue-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 22px; padding: 17px 20px; border-left: 3px solid #148068; background: #eef7f3; }
.issue-panel strong { display: block; font-size: 14px; color: #183d35; }
.issue-panel p { margin: 4px 0 0; font-size: 12px; color: #49685e; }
.issue-panel form { flex: none; }
.document-state-cell { min-width: 140px; }
.document-actions-cell { width: 166px; padding-left: 10px; padding-right: 13px; }
.document-row-actions { display: grid; grid-template-columns: repeat(4, 34px); gap: 2px; justify-content: end; align-items: center; }
.document-row-actions form { margin: 0; }
.document-row-actions .icon-button, .document-row-actions .action-spacer { width: 34px; height: 34px; }
.document-row-actions .icon-button:focus-visible { outline: 2px solid #147664; outline-offset: 2px; }
.tracking-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 5px 9px; border: 1px solid #dce3e0; border-radius: 4px; background: #f3f5f4; color: #566b64; font-size: 11px; font-weight: 750; line-height: 1; white-space: nowrap; }
.tracking-badge svg, .tracking-badge i { display: block; width: 14px; height: 14px; flex: none; stroke-width: 2; }
.tracking-badge--paid, .tracking-badge--accepted { border-color: #b8dec9; background: #e7f5ed; color: #176544; }
.tracking-badge--unpaid { border-color: #efd49e; background: #fff5df; color: #885a16; }
.tracking-badge--sent { border-color: #bfdae8; background: #eaf4fa; color: #2b637f; }
.tracking-badge--rejected { border-color: #efc6c1; background: #fcefeb; color: #9b4038; }
.tracking-badge--draft, .tracking-badge--unsent, .tracking-badge--untracked { border-color: #dce3e0; background: #f3f5f4; color: #586b65; }
.tracking-badge--adjustment { border-color: #d5dce7; background: #eff3f8; color: #42546e; }
.filters select { width: 170px; }
.tracking-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; max-width: 900px; margin: 0 0 22px; padding: 15px 0; border-top: 1px solid #dce5e1; border-bottom: 1px solid #dce5e1; }
.tracking-strip > div { min-width: 135px; margin-right: auto; }
.tracking-strip .label { display: block; }
.tracking-current .tracking-badge { margin-top: 7px; min-height: 33px; padding: 7px 10px; font-size: 12px; }
.tracking-strip form { display: flex; align-items: center; gap: 8px; }
.tracking-strip select { width: 100%; }
.tracking-strip .button svg { width: 16px; height: 16px; }
.tracking-strip .tracking-form { display: grid; grid-template-columns: 155px 150px 150px auto; align-items: end; gap: 8px; }
.tracking-strip .tracking-form--quote { grid-template-columns: 155px auto; }
.tracking-strip .tracking-form--with-payments { grid-template-columns: 155px 150px auto; }
.tracking-field { display: grid; gap: 6px; min-width: 0; margin: 0; color: #516c62; font-size: 11px; font-weight: 700; }
.tracking-field input[type="date"], .tracking-field select { width: 100%; height: 37px; min-height: 37px; }
.tracking-readonly { display: flex; align-items: center; height: 37px; padding: 0 10px; border: 1px solid #dce5e1; border-radius: 5px; background: #f4f7f5; color: #3b594e; font-size: 12px; }
.tracking-form .button { height: 37px; }
.tracking-balance { display: grid; gap: 2px; margin-top: 11px; color: #546b63; font-size: 11px; font-weight: 650; }
.tracking-balance strong { color: #233b33; font-size: 17px; font-weight: 750; }
.collection-date { display: block; margin-top: 5px; color: #71837d; font-size: 11px; font-weight: 650; white-space: nowrap; }
.collection-date--overdue { color: #aa433e; font-weight: 800; }
.collection-date--soon { color: #936514; font-weight: 750; }
.email-form { max-width: 760px; }
.email-form form > div { margin-bottom: 16px; }
.email-form textarea { min-height: 180px; line-height: 1.55; }
.email-context { padding-bottom: 19px; margin-bottom: 22px; border-bottom: 1px solid #e5ebea; }
.email-context strong { display: block; margin-top: 5px; font-size: 13px; overflow-wrap: anywhere; }
.email-signature-preview { border-top: 1px solid #e5ebea; padding-top: 16px; margin: 20px 0; }
.email-signature-preview .mail-signature { margin-top: 12px; }
.email-attachment { display: flex; align-items: center; gap: 12px; border-top: 1px solid #e5ebea; padding: 16px 0 4px; }
.email-attachment svg { width: 18px; height: 18px; color: #52645e; flex: none; }
.email-attachment strong { display: block; margin-top: 3px; font-size: 13px; overflow-wrap: anywhere; }
.delivery-history { max-width: 900px; margin: 0 0 24px; }
.delivery-history h2 { margin: 0 0 12px; font-size: 15px; }
.delivery-history td { white-space: normal; vertical-align: top; font-size: 12px; }
.delivery-history td:nth-child(2) { overflow-wrap: anywhere; }
.delivery-history summary { cursor: pointer; font-weight: 650; }
.delivery-message { max-width: 440px; padding-top: 10px; color: #52645e; line-height: 1.5; }
.payments-section { max-width: 900px; margin: 0 0 25px; padding-bottom: 22px; border-bottom: 1px solid #dce5e1; }
.payments-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 13px; }
.payments-heading h2 { margin: 0; font-size: 15px; }
.payments-heading > span { color: #637970; font-size: 12px; }
.payments-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 11px 0 15px; }
.payments-summary > div { display: grid; gap: 3px; min-width: 0; }
.payments-summary span { color: #647b72; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.payments-summary strong { color: #273d34; font-size: 17px; }
.payment-form { display: grid; grid-template-columns: 135px 155px minmax(160px, 1fr) auto; align-items: end; gap: 10px; margin: 2px 0 17px; }
.payment-form label { display: grid; gap: 6px; min-width: 0; margin: 0; font-size: 11px; }
.payment-form label small { color: #74877e; font-weight: 500; }
.payment-form input { height: 37px; }
.payment-form .button { height: 37px; }
.payment-history { margin-top: 10px; }
.payment-history table { min-width: 620px; }
.payment-history td { white-space: normal; font-size: 12px; }
.payment-history td:nth-child(3) { overflow-wrap: anywhere; }
.payment-history td:last-child { min-width: 290px; }
.payment-void-form { display: flex; align-items: center; gap: 7px; }
.payment-void-form input { min-width: 0; height: 32px; min-height: 32px; }
.payment-void-form .button { min-height: 32px; }
.payment-voided { color: #7c8b84; background: #f7f9f7; }
.payment-voided td:nth-child(2) { text-decoration: line-through; }
.delivery-status { display: inline-block; border-radius: 4px; padding: 4px 8px; background: #f0f2f1; color: #63716b; font-size: 11px; font-weight: 750; white-space: nowrap; }
.delivery-status--sent { background: #e7f5ed; color: #176544; }
.delivery-status--failed { background: #fcefeb; color: #9b4038; }
@media (max-width: 600px) { .email-context { grid-template-columns: 1fr; }.delivery-history table { min-width: 650px; } }
.state-action-group { display: flex; align-items: center; gap: 8px; }
.inline-action { display: inline-flex; margin: 0; }
.collect-action { min-height: 28px; padding: 4px 8px; font-size: 11px; }
.overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #dce5e1; border-bottom: 1px solid #dce5e1; margin-bottom: 30px; }
.overview-metrics a { display: grid; align-content: center; gap: 5px; min-width: 0; padding: 18px; border-right: 1px solid #dce5e1; color: #263b35; }
.overview-metrics a:first-child { padding-left: 0; }
.overview-metrics a:last-child { border-right: 0; }
.overview-metric--overdue strong { color: #9e453c; }
.overview-metrics a:hover { background: #f1f7f3; text-decoration: none; }
.overview-metrics span { color: #5c746b; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.overview-metrics strong { font-size: 28px; line-height: 1; }
.overview-metrics small { color: #637970; font-size: 12px; font-weight: 600; }
.work-section { margin-top: 28px; }
.work-section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.work-section-head h2 { margin: 0; font-size: 16px; }
.work-section-head a { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12px; font-weight: 700; }
.work-section-head a svg { width: 14px; height: 14px; }
.work-section-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; }
.work-table td:last-child { width: 1%; }
.work-table .button { min-height: 30px; }
@media (max-width: 1000px) { .tracking-strip > div, .tracking-strip .tracking-form { width: 100%; }.tracking-strip .tracking-form, .tracking-strip .tracking-form--quote, .tracking-strip .tracking-form--with-payments { grid-template-columns: repeat(2, minmax(0, 1fr)); }.tracking-form .tracking-field:first-of-type { grid-column: 1 / -1; }.tracking-form .button { grid-column: 2; justify-self: end; } }
@media (max-width: 760px) { .payment-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }.payment-form label:nth-of-type(3) { grid-column: 1 / -1; }.payment-form .button { grid-column: 2; justify-self: end; } }
@media (max-width: 480px) { .tracking-strip .tracking-form, .tracking-strip .tracking-form--quote, .tracking-strip .tracking-form--with-payments { grid-template-columns: minmax(0, 1fr); }.tracking-form .button { grid-column: 1; width: 100%; }.payment-form { grid-template-columns: minmax(0, 1fr); }.payment-form label:nth-of-type(3), .payment-form .button { grid-column: 1; }.payment-form .button { width: 100%; } }
@media (max-width: 1080px) { .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.overview-metrics a:nth-child(2) { border-right: 0; }.overview-metrics a:nth-child(-n+2) { border-bottom: 1px solid #dce5e1; }.overview-metrics a:nth-child(3) { padding-left: 0; } }
@media (max-width: 520px) { .overview-metrics { grid-template-columns: 1fr; }.overview-metrics a { padding: 15px 0; border-right: 0; border-bottom: 1px solid #dce5e1; }.overview-metrics a:last-child { border-bottom: 0; }.work-section-head { align-items: flex-start; } }
.sheet-tax-note { margin: 10px 0; font-size: 12px; color: #415853; }
.client-head { flex-wrap: wrap; }
.client-head > div:first-child { min-width: 0; max-width: 100%; }
.client-head h1 { overflow-wrap: anywhere; }
.client-head .head-actions { flex-wrap: wrap; }
.client-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #dce5e1; border-bottom: 1px solid #dce5e1; margin: 0 0 25px; }
.client-metrics > div { display: grid; align-content: center; gap: 5px; min-width: 0; padding: 17px 18px; border-right: 1px solid #dce5e1; }
.client-metrics > div:first-child { padding-left: 0; }
.client-metrics > div:last-child { border-right: 0; }
.client-metrics span { color: #5c746b; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.client-metrics strong { color: #243b34; font-size: 23px; line-height: 1.2; overflow-wrap: anywhere; }
.client-metrics > div:last-child strong { color: #a3483e; }
.client-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 35px; max-width: 900px; padding-bottom: 25px; border-bottom: 1px solid #dce5e1; }
.client-details h2 { margin: 0 0 12px; font-size: 15px; }
.client-details dl { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 9px 15px; margin: 0; }
.client-details dt { color: #687b72; font-size: 12px; font-weight: 700; }
.client-details dd { margin: 0; overflow-wrap: anywhere; }
.client-details p { margin: 0; color: #3f5550; line-height: 1.65; overflow-wrap: anywhere; }
.client-internal-notes { grid-column: 1 / -1; }
.client-history .table-wrap { max-width: 1100px; }
.client-history-title { min-width: 220px; max-width: 420px; white-space: normal; overflow-wrap: anywhere; }
.client-filter { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 13px; padding: 6px 8px 6px 11px; background: #e8f4ee; border: 1px solid #c5e1d1; border-radius: 4px; color: #255e49; font-size: 12px; font-weight: 700; }
.client-filter > a { display: inline-flex; color: #456d5b; }
.client-filter svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .client-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.client-metrics > div:nth-child(2) { border-right: 0; }.client-metrics > div:nth-child(-n+2) { border-bottom: 1px solid #dce5e1; }.client-metrics > div:nth-child(3) { padding-left: 0; } }
@media (max-width: 580px) { .client-metrics { grid-template-columns: 1fr; }.client-metrics > div { padding: 12px 0; border-right: 0; border-bottom: 1px solid #dce5e1; }.client-metrics > div:last-child { border-bottom: 0; }.client-details { grid-template-columns: 1fr; }.client-internal-notes { grid-column: 1; }.client-head .head-actions { width: 100%; }.client-head .head-actions .button { flex: 1; } }
.recurring-table td:first-child { min-width: 220px; max-width: 360px; white-space: normal; overflow-wrap: anywhere; }
.recurring-table td:last-child { min-width: 150px; }
.recurring-state { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 8px; border: 1px solid #dce3e0; border-radius: 4px; color: #536960; background: #f3f5f4; font-size: 11px; font-weight: 750; white-space: nowrap; }
.recurring-state--due { border-color: #edc4ac; color: #934f2d; background: #fff1e9; }
.recurring-state--soon { border-color: #d8d09f; color: #76681d; background: #fbf8e6; }
.recurring-state--paused { border-color: #d6dce0; color: #69777d; background: #f0f2f4; }
.recurring-head { flex-wrap: wrap; }
.recurring-head > div:first-child { min-width: 0; max-width: 100%; }
.recurring-head h1 { overflow-wrap: anywhere; }
.recurring-head .head-actions { flex-wrap: wrap; }
.recurring-head .head-actions form { display: inline-flex; }
.recurring-metrics > div:last-child strong { color: #243b34; }
.recurring-alert { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 960px; margin: 25px 0; padding: 16px 20px; border-left: 3px solid #d0843f; background: #fff5e9; }
.recurring-alert strong { color: #6f4122; }
.recurring-alert p { margin: 4px 0 0; color: #755b45; font-size: 12px; }
.recurring-alert form { margin: 0; flex: none; }
.recurring-description { max-width: 900px; padding: 10px 0 20px; border-bottom: 1px solid #dce5e1; }
.recurring-description h2 { font-size: 15px; }
.recurring-description p { line-height: 1.65; color: #405650; white-space: normal; overflow-wrap: anywhere; }
.recurring-form { max-width: 900px; }
.recurring-form textarea { line-height: 1.55; }
.recurring-active { margin-top: 23px; }
.recurring-active > div { display: flex; align-items: center; gap: 9px; }
.recurring-active label { margin: 0; }
.recurring-active input[type=checkbox] { order: -1; width: 16px; height: 16px; min-height: 16px; margin: 0; accent-color: #147664; }
.recurring-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 4px; background: #fff0e4; color: #95512e; font-size: 12px; }
.recurring-overview .work-section-head { flex-wrap: wrap; }
.recurring-upcoming-label td { padding-top: 18px; color: #60726e; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.overview-document-status { display: block; margin-top: 6px; }
@media (max-width: 620px) { .recurring-alert { flex-direction: column; align-items: stretch; }.recurring-alert .button { width: 100%; }.recurring-head .head-actions { width: 100%; } }
@media (max-width: 760px) { .issue-panel { flex-direction: column; align-items: stretch; }.issue-panel form, .issue-panel .button { width: 100%; justify-content: center; } }
@media (max-width: 920px) { .shell { grid-template-columns: 210px minmax(0, 1fr); }.sidebar { padding-left: 10px; padding-right: 10px; }.line-row { grid-template-columns: 26px minmax(0, 2fr) 80px 100px 100px; gap: 8px; } }
@media (max-width: 760px) { .shell { display: block; }.sidebar { position: relative; height: auto; padding: 12px 14px; }.brand { padding: 0 0 12px; }.brand-logo { width: 104px; }.brand small, .nav-label, .sidebar-footer, .sidebar nav[aria-label="Preferencias"] { display: none; }.sidebar nav { display: flex; gap: 3px; overflow-x: auto; }.sidebar nav a { min-height: 38px; padding: 8px 10px; white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; font-size: 12px; }.sidebar nav a.active { border-bottom-color: #43b59b; }.sidebar nav a svg { width: 15px; height: 15px; }.topbar { height: 45px; padding: 0 17px; }.topbar-right { display: none; }.content { padding: 25px 16px 65px; }.page-head { align-items: flex-start; gap: 12px; }.page-head h1 { font-size: 23px; }.page-head .button { align-self: flex-start; }.filters .result-count { width: 100%; margin: 4px 0 0; }.search-field { width: 100%; }.line-row { grid-template-columns: 25px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: end; }.line-number { grid-column: 1; grid-row: 1; align-self: center; }.line-row .concept { grid-column: 2 / -1; }.line-row .line-field:not(.concept) { grid-row: 2; }.line-row .line-field:nth-of-type(2) { grid-column: 2; }.line-row .line-field:nth-of-type(3) { grid-column: 3; }.line-tools { grid-column: 2 / -1; justify-content: flex-end; }.section-heading { align-items: center; }.revision-head { flex-direction: column; gap: 6px; }.head-actions { justify-content: flex-start; } }
.catalog-picker { display: flex; align-items: center; gap: 8px; margin: -2px 0 16px; max-width: 510px; }
.catalog-picker select { min-width: 0; flex: 1; }
.catalog-picker .button { flex: none; }
.catalog-empty { margin: -4px 0 15px; font-size: 12px; }
.catalog-description { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-state { font-size: 11px; font-weight: 700; color: #60726e; }
.catalog-state.is-active { color: #0a7662; }
.catalog-active { margin-top: 20px; }
.catalog-active > div { display: flex; align-items: center; gap: 8px; }
.catalog-active input { width: auto; min-height: 0; }
.catalog-active label { margin: 0; }
@media (max-width: 580px) { .catalog-picker { max-width: none; }.catalog-description { max-width: 170px; } }
.export-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 18px 0 20px; margin-bottom: 21px; border-top: 1px solid #dde6e1; border-bottom: 1px solid #dde6e1; }
.export-field { width: min(100%, 168px); }
.export-field[hidden] { display: none; }
.export-field label { margin-bottom: 6px; }
.export-filters .button { align-self: end; }
.export-result-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; }
.export-result-head h2 { font-size: 17px; margin: 0 0 4px; }
.export-result-head p { color: #6e807a; margin: 0; font-size: 12px; }
.export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.export-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid #172f2b; border-bottom: 1px solid #dce5e1; margin-bottom: 28px; }
.export-totals > div { display: grid; gap: 5px; min-width: 0; padding: 17px 20px 17px 0; }
.export-totals span { color: #697b76; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.export-totals strong { font-size: 21px; font-weight: 750; white-space: nowrap; }
.export-totals .export-grand strong { color: #137563; }
.export-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 30px; }
.export-breakdown section { min-width: 0; }
.export-breakdown h3, .export-list-title { font-size: 14px; margin: 0 0 10px; }
.export-breakdown th, .export-breakdown td { padding: 11px 14px; }
.export-overflow, .export-note { color: #6a7c76; font-size: 12px; line-height: 1.55; }
.export-note { margin-top: 21px; max-width: 900px; }
.export-empty { border-top: 1px solid #dce5e1; }
@media (max-width: 900px) { .export-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }.export-breakdown { grid-template-columns: 1fr; } }
@media (max-width: 580px) { .export-field { flex: 1 1 calc(50% - 8px); }.export-filters .button { width: 100%; }.export-result-head { align-items: flex-start; flex-direction: column; }.export-actions { width: 100%; }.export-actions .button { width: 100%; }.export-totals > div { padding-right: 6px; }.export-totals strong { font-size: 17px; white-space: normal; } }

.invoice-list { container: invoice-list / inline-size; overflow: visible; }
.invoice-list .document-table { table-layout: fixed; }
.invoice-list .document-table th, .invoice-list .document-table td { padding: 12px 10px; }
.invoice-list .document-table th:nth-child(1) { width: 138px; }
.invoice-list .document-table th:nth-child(2) { width: 100px; }
.invoice-list .document-table th:nth-child(5) { width: 204px; }
.invoice-list .document-table th:nth-child(6) { width: 124px; }
.invoice-list .document-table th:nth-child(7) { width: 154px; }
.invoice-list .document-table td { white-space: normal; overflow-wrap: anywhere; }
.invoice-list .document-state-cell { min-width: 0; }
.invoice-list .state-action-group { flex-wrap: wrap; }
.invoice-list .collection-date { white-space: normal; }
.invoice-list .document-actions-cell { width: auto; padding-left: 7px; padding-right: 7px; }
.invoice-list .document-row-actions { grid-template-columns: repeat(4, 32px); }
.invoice-list .document-row-actions .icon-button, .invoice-list .document-row-actions .action-spacer { width: 32px; height: 32px; }

@container invoice-list (max-width: 1000px) {
    .document-table, .document-table tbody { display: block; width: 100%; }
    .document-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .document-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 15px; padding: 15px 17px; border-bottom: 1px solid #edf0ee; }
    .document-table tbody tr:last-child { border-bottom: 0; }
    .document-table tbody td { display: block; min-width: 0; width: auto; padding: 0; border: 0; }
    .document-table tbody td:nth-child(1) { grid-column: 1; grid-row: 1; align-self: center; }
    .document-table tbody td:nth-child(6) { grid-column: 2; grid-row: 1; align-self: center; text-align: right; }
    .document-table tbody td:nth-child(3) { grid-column: 1; grid-row: 2; font-weight: 650; }
    .document-table tbody td:nth-child(2) { grid-column: 2; grid-row: 2; text-align: right; }
    .document-table tbody td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; color: #4f625c; }
    .document-table tbody td:nth-child(5) { grid-column: 1 / -1; grid-row: 4; margin-top: 3px; }
    .document-table tbody td:nth-child(7) { grid-column: 1 / -1; grid-row: 5; margin-top: 5px; padding-top: 8px; border-top: 1px solid #edf0ee; }
    .document-table tbody td:nth-child(2)::before, .document-table tbody td:nth-child(3)::before, .document-table tbody td:nth-child(4)::before { display: block; content: attr(data-label); color: #85948e; font-size: 10px; font-weight: 750; text-transform: uppercase; }
    .document-table .document-row-actions { justify-content: end; }
    .document-table tbody td.empty { grid-column: 1 / -1; text-align: center; padding: 20px 0; }
}

.report-head .head-actions { align-items: end; }
.report-year-form { display: flex; align-items: end; gap: 7px; margin: 0; }
.report-year-form label { margin: 0 2px 11px 0; }
.report-year-form select { width: 100px; }
.report-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 33px; border-top: 2px solid #253932; border-bottom: 1px solid #dce5e1; }
.report-metrics > div { min-width: 0; padding: 21px 18px 19px; border-right: 1px solid #dce5e1; }
.report-metrics > div:first-child { padding-left: 0; }
.report-metrics > div:last-child { border-right: 0; }
.report-metrics span, .report-collection-grid span { display: block; color: #61746c; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.report-metrics strong, .report-collection-grid strong { display: block; margin: 8px 0 4px; color: #20322c; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.report-metrics small, .report-collection-grid small { display: block; color: #7b8a84; font-size: 11px; }
.report-main-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 42px; }
.report-section { min-width: 0; margin: 0 0 34px; padding-top: 16px; border-top: 1px solid #dce5e1; }
.report-section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.report-section-head h2 { margin: 3px 0 0; font-size: 17px; line-height: 1.25; }
.report-section-meta { color: #7c8b84; font-size: 11px; text-align: right; }
.report-chart { display: grid; gap: 3px; }
.report-chart-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 115px 25px; align-items: center; gap: 9px; min-height: 29px; }
.report-chart-month { color: #60736b; font-size: 11px; font-weight: 700; }
.report-chart-track { display: block; height: 10px; background: #edf1ee; }
.report-chart-bar { display: block; height: 100%; min-width: 0; background: #2c9b7d; }
.report-chart-bar--negative { background: #c66d5c; }
.report-chart-value { text-align: right; color: #263d33; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.report-chart-count { color: #899891; text-align: right; font-size: 11px; }
.report-chart-legend { display: flex; align-items: center; gap: 7px; margin: 13px 0 0 41px; color: #61746c; font-size: 11px; }
.report-chart-legend > span { width: 9px; height: 9px; background: #2c9b7d; }
.report-client-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 12px 0; border-bottom: 1px solid #edf0ee; }
.report-client-row:first-child { padding-top: 0; }
.report-client-rank { color: #9aa9a0; font-size: 11px; font-weight: 800; }
.report-client-row div { min-width: 0; }
.report-client-row a { display: block; color: #244c3d; font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.report-client-row small { display: block; color: #88988f; font-size: 10px; margin-top: 3px; }
.report-client-row strong { color: #263d33; font-size: 12px; white-space: nowrap; }
.report-empty { color: #71837d; font-size: 12px; }
.report-quarter-wrap { border: 1px solid #e0e7e3; border-radius: 6px; overflow: hidden; background: #fff; }
.report-quarter-table { table-layout: fixed; }
.report-quarter-table th, .report-quarter-table td { padding: 12px 14px; white-space: normal; }
.report-quarter-table th:first-child { width: 110px; }
.report-quarter-table th:nth-child(2) { width: 90px; }
.report-quarter-table tbody th { background: #fff; color: #253c33; font-size: 12px; }
.report-quarter-table tbody tr:last-child th { border-bottom: 0; }
.report-quarter-table tbody td { font-size: 12px; }
.report-quarter-table tbody td strong { color: #183e31; }
.report-quarter-table tfoot th, .report-quarter-table tfoot td { background: #edf5f0; border-top: 1px solid #cbddd0; border-bottom: 0; font-size: 12px; font-weight: 750; }
.report-text-link { display: inline-flex; align-items: center; gap: 3px; color: #126e60; font-size: 12px; font-weight: 700; white-space: nowrap; }
.report-text-link svg { width: 14px; height: 14px; }
.report-collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #edf0ee; border-bottom: 1px solid #edf0ee; }
.report-collection-grid a { display: block; min-width: 0; padding: 17px 18px; border-right: 1px solid #edf0ee; }
.report-collection-grid a:first-child { padding-left: 0; }
.report-collection-grid a:last-child { border-right: 0; }
.report-collection-grid a:hover { background: #f6faf8; text-decoration: none; }
.report-collection-grid a:nth-child(2) strong { color: #a14e45; }
.report-footnote { max-width: 1000px; margin: 0 0 22px; color: #78877f; font-size: 11px; line-height: 1.6; }
.report-quote-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 25px; border-top: 1px solid #dce5e1; border-bottom: 1px solid #dce5e1; }
.report-quote-metrics > div { min-width: 0; padding: 17px 17px 16px; border-right: 1px solid #dce5e1; }
.report-quote-metrics > div:first-child { padding-left: 0; }
.report-quote-metrics > div:last-child { border-right: 0; }
.report-quote-metrics span { display: block; color: #61746c; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.report-quote-metrics strong { display: block; margin: 6px 0 4px; color: #20322c; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.report-quote-metrics small { display: block; color: #7b8a84; font-size: 11px; line-height: 1.35; }
.report-quote-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 42px; margin-bottom: 20px; }
.report-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.report-subhead h3 { margin: 0; color: #2b3d35; font-size: 13px; }
.report-subhead > span { color: #87968e; font-size: 11px; white-space: nowrap; }
.report-quote-state { display: grid; grid-template-columns: 8px minmax(0, 1fr) 35px minmax(85px, auto); align-items: center; gap: 9px; min-height: 39px; border-bottom: 1px solid #edf0ee; color: #4f6259; font-size: 12px; }
.report-quote-state strong { color: #263d33; text-align: right; }
.report-quote-amount { color: #314b3f; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.report-state-dot { width: 7px; height: 7px; border-radius: 50%; background: #aab7b0; }
.report-state-dot--sent { background: #478bae; }
.report-state-dot--accepted { background: #279471; }
.report-state-dot--rejected { background: #c36c60; }
.report-followup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 54px; padding: 10px 0; border-bottom: 1px solid #edf0ee; }
.report-followup-row:hover { text-decoration: none; background: #f6faf8; }
.report-followup-main, .report-followup-end { display: grid; gap: 3px; min-width: 0; }
.report-followup-main strong { color: #176d5a; font-size: 12px; }
.report-followup-main span { color: #63766d; font-size: 11px; overflow-wrap: anywhere; }
.report-followup-end { text-align: right; }
.report-followup-end strong { color: #263d33; font-size: 12px; white-space: nowrap; }
.report-followup-end time { color: #89968f; font-size: 11px; }
.report-quotes > .report-footnote { margin-top: 15px; }
@media (max-width: 1120px) { .report-main-grid { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 950px) { .report-quote-grid { grid-template-columns: 1fr; gap: 25px; } }
@media (max-width: 800px) { .report-metrics, .report-quote-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.report-metrics > div:nth-child(2), .report-quote-metrics > div:nth-child(2) { border-right: 0; }.report-metrics > div:nth-child(-n+2), .report-quote-metrics > div:nth-child(-n+2) { border-bottom: 1px solid #dce5e1; }.report-metrics > div:nth-child(3), .report-quote-metrics > div:nth-child(3) { padding-left: 0; } }
@media (max-width: 620px) {
    .report-head .head-actions { width: 100%; justify-content: flex-start; }
    .report-collection-grid { grid-template-columns: 1fr; }
    .report-collection-grid a { padding: 14px 0; border-right: 0; border-bottom: 1px solid #edf0ee; }
    .report-collection-grid a:last-child { border-bottom: 0; }
    .report-collection-grid strong { font-size: 21px; }
    .report-quarter-table, .report-quarter-table tbody, .report-quarter-table tfoot { display: block; width: 100%; }
    .report-quarter-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .report-quarter-table tbody tr, .report-quarter-table tfoot tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; padding: 13px 15px; border-bottom: 1px solid #edf0ee; }
    .report-quarter-table tbody tr:last-child { border-bottom: 0; }
    .report-quarter-table tbody th, .report-quarter-table tfoot th { grid-column: 1 / -1; padding: 0 0 5px; border: 0; }
    .report-quarter-table tbody td, .report-quarter-table tfoot td { min-width: 0; padding: 0; border: 0; text-align: left; overflow-wrap: anywhere; }
    .report-quarter-table tbody td::before, .report-quarter-table tfoot td::before { display: block; content: attr(data-label); color: #84948b; font-size: 10px; font-weight: 750; text-transform: uppercase; }
}
@media (max-width: 400px) { .report-metrics strong { font-size: 19px; }.report-chart-row { grid-template-columns: 28px minmax(0, 1fr) 105px 18px; gap: 5px; }.report-client-row strong { font-size: 11px; } }
@media (max-width: 420px) { .report-quote-metrics { grid-template-columns: 1fr; }.report-quote-metrics > div { padding: 12px 0; border-right: 0; border-bottom: 1px solid #dce5e1; }.report-quote-metrics > div:last-child { border-bottom: 0; }.report-quote-metrics strong { font-size: 22px; }.report-quote-state { grid-template-columns: 7px minmax(0, 1fr) 25px minmax(75px, auto); gap: 6px; }.report-followup-end strong { white-space: normal; } }
.forecast-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid #253932; border-bottom: 1px solid #dce5e1; margin-bottom: 32px; }
.forecast-metrics > div { min-width: 0; padding: 19px 18px; border-right: 1px solid #dce5e1; }
.forecast-metrics > div:first-child { padding-left: 0; }
.forecast-metrics > div:last-child { border-right: 0; }
.forecast-metrics span { display: block; color: #61746c; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.forecast-metrics strong { display: block; margin: 8px 0 5px; color: #20322c; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.forecast-metrics small { color: #78877f; font-size: 11px; }
.forecast-metrics .forecast-overdue strong { color: #a14e45; }
.forecast-section .work-section-head { align-items: flex-end; gap: 15px; }
.forecast-section .work-section-head > div { min-width: 0; }
.forecast-periods { display: inline-flex; flex: none; border: 1px solid #d4dfda; border-radius: 5px; overflow: hidden; }
.forecast-periods a { padding: 8px 12px; border-right: 1px solid #d4dfda; color: #5b7168; font-size: 11px; font-weight: 750; white-space: nowrap; }
.forecast-periods a:last-child { border-right: 0; }
.forecast-periods a.active { background: #1e6f5c; color: #fff; }
.forecast-periods a:hover { text-decoration: none; background: #eaf4ef; }
.forecast-periods a.active:hover { background: #1e6f5c; }
.forecast-table { table-layout: fixed; }
.forecast-table th, .forecast-table td { padding: 12px 13px; }
.forecast-table th:nth-child(1) { width: 115px; }
.forecast-table th:nth-child(2) { width: 29%; }
.forecast-table th:nth-child(3) { width: 85px; }
.forecast-table th:nth-child(4) { width: 115px; }
.forecast-table th:nth-child(5) { width: 155px; }
.forecast-table th:nth-child(6) { width: 170px; }
.forecast-table td { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.forecast-table td:last-child .button { max-width: 100%; white-space: normal; text-align: center; }
.forecast-table td:last-child .icon-button { margin-left: auto; }
.forecast-date-note, .forecast-client { display: block; margin-top: 3px; color: #778780; font-size: 11px; }
.forecast-client { color: #63776e; }
.recurring-state--paid { border-color: #b9ddc9; color: #176b4b; background: #eaf7ee; }
@media (max-width: 1100px) { .forecast-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.forecast-metrics > div:nth-child(2) { border-right: 0; }.forecast-metrics > div:nth-child(-n+2) { border-bottom: 1px solid #dce5e1; }.forecast-metrics > div:nth-child(3) { padding-left: 0; } }
@media (max-width: 900px) {
    .forecast-table-wrap { overflow: visible; }
    .forecast-table, .forecast-table tbody { display: block; width: 100%; }
    .forecast-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .forecast-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 20px; padding: 15px; border-bottom: 1px solid #e5ebea; }
    .forecast-table tr:last-child { border-bottom: 0; }
    .forecast-table td { padding: 0; border: 0; text-align: left; }
    .forecast-table td::before { display: block; content: attr(data-label); color: #84948b; font-size: 10px; font-weight: 750; text-transform: uppercase; margin-bottom: 3px; }
    .forecast-table td:last-child .icon-button { margin-left: 0; }
    .forecast-table td.empty { grid-column: 1 / -1; }
    .forecast-table td.empty::before { display: none; }
}
@media (max-width: 600px) { .forecast-section .work-section-head { align-items: flex-start; flex-direction: column; }.forecast-metrics strong { font-size: 20px; }.forecast-metrics > div { padding: 15px 11px; }.forecast-metrics > div:first-child, .forecast-metrics > div:nth-child(3) { padding-left: 0; } }

.sidebar-menu { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.mobile-nav-toggle { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid #465754; border-radius: 5px; background: #283634; color: #eaf2f0; }
.mobile-nav-toggle svg { width: 20px; height: 20px; }
.mobile-nav-toggle .nav-close-icon, .sidebar.is-open .mobile-nav-toggle .nav-open-icon { display: none; }
.sidebar.is-open .mobile-nav-toggle .nav-close-icon { display: block; }
.mobile-nav-toggle:focus-visible { outline: 2px solid #61d2b7; outline-offset: 2px; }
@media (max-width: 760px) {
    .sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .sidebar .brand { padding: 0; }
    .mobile-nav-toggle { display: grid; flex: none; }
    .sidebar-menu { display: none; }
    .sidebar.is-open .sidebar-menu { display: flex; padding-top: 14px; margin-top: 12px; border-top: 1px solid #34403e; }
    .sidebar nav, .sidebar nav[aria-label="Preferencias"] { display: grid; overflow: visible; }
    .sidebar nav a { min-height: 42px; padding: 9px 12px; border-left: 2px solid transparent; border-bottom: 0; white-space: normal; font-size: 13px; }
    .sidebar nav a.active { border-left-color: #43b59b; border-bottom-color: transparent; }
    .sidebar .nav-label { display: block; margin: 0 0 6px; }
    .sidebar .nav-label-secondary { margin-top: 16px; }
    .sidebar .sidebar-footer { display: flex; margin-top: 16px; }
}
