/* FacturoDirecto: shared interface scale, measured against the user's FD workspace. */
@font-face{font-family:Space Grotesk;src:url('/space-grotesk.woff2') format('woff2');font-style:normal;font-weight:300 700;font-display:swap}
:root{--accent:#0070ba;--tint:#edf6fc;--line:#e0e0e0;--ink:#212121;--muted:#757575;--canvas:#edf0f3;font-family:Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--canvas)}
body,body.fd-workspace,body.company-doctorwheel,body.invoice-document-workspace{--accent:#0070ba;--tint:#edf6fc;--line:#e0e0e0;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.5;color:#212121;background:#edf0f3}
button,input,select,textarea{font-family:inherit}a{color:var(--accent)}a:hover{text-decoration:none}button,input,select,textarea{color:#212121}button:disabled{cursor:default;opacity:.55}
:where(a,button,summary,input,select,textarea):focus-visible{outline:2px solid #0070ba;outline-offset:3px}input[type=checkbox]{accent-color:#0070ba}
.brand-symbol{position:relative;display:inline-block;flex:0 0 30px;width:30px;height:30px;color:#0070ba}
.brand-symbol i,.brand-symbol b,.brand-symbol em{position:absolute;display:block;background:currentColor}
.brand-symbol i{left:0;top:0;width:22%;height:95%}.brand-symbol b{left:34%;top:0;width:66%;height:22%}.brand-symbol em{left:34%;top:42%;width:45%;height:22%}
.brand-word{font-family:Space Grotesk,Roboto,Arial,sans-serif;font-weight:600;font-size:25px;letter-spacing:-1.1px;white-space:nowrap;color:#212121}.brand-word>span{color:#0070ba}
body.fd-workspace .logo{gap:8px;color:#212121;min-width:0}body.fd-workspace .app-header{grid-template-columns:218px minmax(0,1fr) 88px auto}
body.fd-workspace .workspace{max-width:1560px;padding:40px 24px 32px}.workspace>.page-heading{margin:0 0 24px}.page-heading .breadcrumb{display:none}
h1,.invoice-title h1,.quote-title h1,.dash-toolbar h1{font-size:24px;line-height:32px;font-weight:700;letter-spacing:0;color:#212121}
h2{font-size:20px;line-height:28px;font-weight:500;color:#212121}h3{font-size:16px;line-height:24px;font-weight:500}
.invoice-title{margin-bottom:24px;min-height:40px}.button,.new-invoice{min-height:40px;padding:6px 16px;border-radius:8px;font-size:16px;line-height:26px;font-weight:500;color:#0070ba;border-color:#b2d4e9;white-space:normal;text-align:center}
.button.primary,body.fd-workspace .button.primary{background:#0070ba;border-color:#0070ba;color:#fff;box-shadow:0 2px 4px #0002}.button:not(.primary):hover{background:#edf6fc}.button.primary:hover{background:#005d9b}
.panel,.invoice-card{border:0;border-radius:32px;background:white}.panel.list-panel{overflow:visible}.list-panel .table-wrap{border-radius:0 0 32px 32px}.panel:not(.list-panel)>.table-wrap{border-radius:0}
.small,.muted,.breadcrumb,.intro-text p,.workspace-footer,.mode-note,.summary-note{font-size:13px;line-height:20px;color:#757575}.workspace-footer{margin-top:28px;font-size:12px}.mode-note{border:0;background:#e7f3fc;padding:16px 24px;border-radius:16px;margin-bottom:24px}.mode-note .pill{font-size:11px}.mode-note p{font-size:14px}
.alert,.notice{font-size:14px;line-height:22px;padding:16px 24px;border-radius:12px}.intro-text h2{font-size:20px}.intro-text p{font-size:14px}
table,td{font-size:14px;line-height:20px;color:#212121}th{font-size:14px;font-weight:500;color:#424242;background:#fff;line-height:20px}td{padding:12px 16px}.document-link{font-weight:400;color:inherit}.date{font-size:14px;color:#424242}.description small{font-size:12px;color:#757575}
.status{font-size:13px;line-height:20px;padding:2px 8px}.status-paid{color:#398043}.status-pending{color:#9b6000}.status-overdue{color:#b3422c}
.invoice-filters{padding:32px 32px 16px}.invoice-toolbar{gap:16px;min-height:40px}.invoice-toolbar select,.invoice-search input{font-size:16px}.invoice-search{width:300px}.invoice-search input{height:40px}.invoice-filter-chips{gap:8px;margin-top:24px;min-height:36px}.filter-chip,.filter-chip select,.add-filter,.apply-filters,.reset-filters{font-size:14px}.invoice-filter-chips label.filter-chip{min-height:32px}.invoice-filter-chips .filter-chip select{height:24px;line-height:24px;font-size:14px;max-width:200px}.client-filter label,.series-filter label{font-size:14px}.client-filter input,.series-filter select{font-size:16px;min-height:40px}.add-filter,.apply-filters{color:#0070ba}.invoice-menu summary{width:32px;height:32px}.invoice-menu a{font-size:14px}.invoice-menu{display:block}
.invoice-table{font-size:14px;min-width:1250px}.invoice-table th{font-size:14px;font-weight:500;height:56px;padding:14px 10px}.invoice-table td{font-size:14px;height:52px;padding:5px 10px;line-height:20px}.invoice-table .invoice-client strong{font-size:14px;line-height:20px}.invoice-table .invoice-client small{font-size:12px;line-height:20px;color:#757575}.invoice-table .invoice-currency{font-size:14px!important}.invoice-table input[type=checkbox]{width:18px;height:18px;accent-color:#0070ba}.document-type{width:24px;height:24px;font-size:14px}.vf-state,.invoice-state{font-size:14px}.state-pending,.state-overdue{color:#a46300}.invoice-table tfoot td,.invoice-table tfoot th{font-size:14px}.invoice-table tbody tr:hover,.invoice-table tbody tr.selected{background:#edf4ff}.invoice-pagination{font-size:14px;min-height:64px;gap:24px}.invoice-pagination select{font-size:14px;width:76px}.invoice-footnote{font-size:12px}.selection-toolbar,.selection-toolbar button{font-size:14px;color:#0070ba}.selection-toolbar{background:#edf6fc}.selection-toolbar button{border:0;background:transparent;cursor:pointer}
.filters{padding:24px;gap:16px}.filters label{font-size:12px;color:#757575}.filters input,.filters select{font-size:16px;min-height:44px}.pagination{font-size:14px}.empty{font-size:14px;line-height:24px}.result-count{font-size:14px}
.document-workspace-main,.quote-document-workspace .document-workspace-main{max-width:1200px;width:calc(100% - 64px);padding:24px 0}.document-tabs{gap:8px;margin-bottom:16px}.document-tabs>a,.quote-document-workspace .document-tabs>a{font-size:16px;line-height:24px;padding:12px 32px;border-radius:32px}.document-sheet,.quote-document-workspace .document-sheet{padding:48px;border-radius:32px}.document-sheet h1,.quote-document-workspace .document-sheet h1{font-size:24px;line-height:32px;font-weight:400}.document-context-line{font-size:14px;margin-bottom:40px}.document-heading{min-height:120px;margin-bottom:32px}.document-collection>span,.document-collection>p{font-size:12px}.document-collection>strong{font-size:24px;line-height:32px}.document-fields{gap:32px 24px;margin-bottom:64px}.document-field dt{font-size:12px;color:#757575}.document-field dd{font-size:16px;line-height:24px;color:#212121}.document-lines th,.document-tax-table th{font-size:12px}.document-lines td,.document-tax-table td,.document-subtotal{font-size:14px;line-height:22px}.document-grand-total{font-size:20px}.document-prose,.document-info-note p,.document-fiscal-state p{font-size:14px}.document-topbar{min-height:72px;height:auto;padding:14px 16px}.document-context>strong{font-size:20px;font-weight:500}.document-button{height:37px;font-size:14px;border-color:#b2d4e9;color:#0070ba!important}.document-print details>summary{height:37px;color:#0070ba;border-color:#b2d4e9}.invoice-document-workspace a{color:#0070ba}.document-menu-popup>a{font-size:14px}.document-footer{font-size:12px}
.settings-layout{grid-template-columns:320px minmax(0,1fr);gap:24px}.settings-nav{padding:8px;background:#fff;border-radius:24px;align-self:start}.settings-nav a{padding:16px;border-radius:12px;color:#212121}.settings-nav a strong{font-size:16px;font-weight:400}.settings-nav a small{font-size:12px;line-height:18px;color:#757575}.settings-nav a[aria-current=page]{background:#edf6fc;color:#0070ba}.settings-card{padding:32px}.settings-heading h2{font-size:20px}.settings-heading p,.settings-context,.settings-form small,.settings-save span{font-size:13px;color:#757575}.settings-grid{gap:24px;grid-template-columns:repeat(2,minmax(0,1fr))}.settings-form label,.manual-grid label,.manual-notes{font-size:14px;line-height:20px;font-weight:400;color:#616161}.settings-form input:not([type=checkbox]):not([type=hidden]):not([type=color]),.settings-form select,.settings-form textarea,.manual-grid input,.manual-grid select,.manual-notes textarea{font-size:16px;border:1px solid #bdbdbd;border-radius:4px;min-height:52px;padding:12px 14px;color:#212121}.settings-form input[type=file]{font-size:14px!important;max-width:100%}.settings-form input[type=checkbox]{width:18px;height:18px}.settings-save{margin-top:24px}.settings-content{min-width:0}.settings-nav a:hover{background:#f5f7fa}.settings-item{padding:20px 0}.settings-info{font-size:14px}.manual-invoice{max-width:1200px;margin:0 auto;padding:48px}.manual-grid{gap:24px;margin:28px 0}.manual-lines{min-width:800px}.manual-lines input,.manual-lines select{font-size:16px;min-height:48px}.manual-invoice h2{font-size:20px;font-weight:400}.trial-note{font-size:14px;background:#fff7e5}
.home-dashboard .dash-toolbar h1{font-size:24px;line-height:32px}.home-dashboard .dash-card{border:0;border-radius:24px;padding:24px}.home-dashboard .dash-card-heading h2{font-size:18px;line-height:28px;font-weight:400;color:#212121}.home-dashboard .dash-card-caption,.home-dashboard .dash-date,.home-dashboard .dash-muted{font-size:12px}.home-dashboard .dash-main-amount{font-size:36px;letter-spacing:-.5px}.dash-period summary{font-size:16px}.dash-legend li{font-size:13px}.overview-tabs a{font-size:16px;font-weight:400}.overview-tabs a[aria-current=page]{color:#0070ba;background:#fff}.business-summary-row strong,.tax-model-label strong{font-size:16px}.tax-model-label small,.overview-caption{font-size:13px}.tax-model-list,.business-card,.overview-side-card{border-radius:24px}.tax-main-tabs{gap:8px}.tax-main-tabs a{padding:12px 24px}.connection-card{padding:32px}.connection-card h2{font-size:20px}.connection-card>p,.connection-status,.connection-card dl>div{font-size:14px}.connection-card .small{font-size:12px}.help-page{font-family:Roboto,Helvetica,Arial,sans-serif}
.brand{display:flex;align-items:center;justify-content:center;gap:12px}.brand .brand-symbol{width:40px;height:40px;flex-basis:40px}.brand .brand-word{font-size:32px}
/* The purchase and contact lists share the same reading order as sales. */
.list-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}.list-page-heading h1{margin:0}.purchase-inbox-link{display:flex;align-items:center;gap:16px;padding:18px 24px;border-radius:24px;background:#e6f3fb;color:#315b72;font-size:14px;margin-bottom:24px}.purchase-inbox-link .button{font-size:14px;min-height:34px;padding:4px 12px;background:transparent}.purchase-table{min-width:1140px}.purchase-table th:nth-child(n){width:auto}.purchase-table th.select-cell{width:38px}.purchase-table th.type-cell{width:40px}.purchase-table th:nth-child(3){width:130px}.purchase-table th:nth-child(4){width:110px}.purchase-table th:nth-child(5){width:130px}.purchase-table th:nth-child(7){width:135px}.purchase-table th:nth-child(8),.purchase-table th:nth-child(9){width:100px}.purchase-table th:nth-child(10){width:75px}.purchase-table th.works-cell{width:80px}.purchase-table .document-type{background:#af451c}.purchase-table .document-type.receipt{background:#795548}.purchase-reference{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.purchase-table .invoice-client{min-width:220px}.purchase-table .expense-review{font-size:12px;line-height:18px;color:#8b691d}.list-summary-note{padding:0 32px 20px;font-size:12px;color:#757575;margin:0}
.contact-table{min-width:1120px}.contact-table th:nth-child(n){width:auto}.contact-table th.type-cell{width:48px}.contact-table th:first-child{width:48px}.contact-table th:nth-child(2){width:260px}.contact-table td{overflow-wrap:anywhere}.contact-table .contact-name{font-size:14px;color:#212121}.contact-table .document-type{background:#6b7085}.contact-header{display:flex;gap:18px;align-items:center;margin-bottom:24px}.contact-header h1{margin:0}.contact-header .avatar{width:48px;height:48px;border-radius:50%;font-size:20px;background:white;color:#757575}.contact-sheet{max-width:none}.contact-sheet .document-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.contact-list-note{font-size:13px;color:#757575;margin:24px 4px}
.form-section-tabs{display:flex;gap:8px;margin:0 0 16px;overflow-x:auto}.form-section-tabs a{padding:12px 24px;color:#424242;border-radius:24px;font-size:16px;white-space:nowrap}.form-section-tabs a[aria-current=page]{background:#fff;font-weight:500}.expense-editor{max-width:1200px;margin:auto}.expense-editor>.settings-card{border-radius:32px}.expense-editor .settings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.expense-editor .expense-reader{font-size:14px;background:#f1f7fb}.expense-editor .expense-lines input{min-width:90px;font-size:14px}.expense-editor .expense-lines td:first-child{min-width:260px}.expense-editor [data-form-panel][hidden]{display:none}.expense-editor .settings-card h2{font-size:24px;font-weight:400}.expense-editor .expense-heading{margin-bottom:24px}.expense-editor .expense-heading p{font-size:14px}.expense-document .document-fields{margin-bottom:48px}.expense-document .document-lines{min-width:600px}.expense-document .document-attachments{margin-top:24px}.document-more-panel{margin-top:24px}.document-more-panel summary{font-size:14px;color:#0070ba;padding:12px 0}
@media(min-width:1280px) and (max-width:1450px){body.fd-workspace .main-nav>div>a,body.fd-workspace .main-nav>div>.more-nav>summary{min-width:0;width:auto;padding-left:13px;padding-right:13px}}
@media(max-width:1279px){body.fd-workspace .app-header{grid-template-columns:210px minmax(0,1fr) 80px auto}.settings-layout{grid-template-columns:260px minmax(0,1fr)}.invoice-toolbar{flex-wrap:wrap}.invoice-card{border-radius:24px}}
@media(max-width:999px){body.fd-workspace .app-header{grid-template-columns:minmax(0,1fr) 88px auto}.settings-layout{grid-template-columns:1fr}.settings-nav{display:flex;overflow-x:auto;gap:4px;padding:8px}.settings-nav a{min-width:150px}.settings-nav a small{display:none}.document-sheet,.quote-document-workspace .document-sheet{padding:32px}.document-workspace-main,.quote-document-workspace .document-workspace-main{width:calc(100% - 32px)}.expense-editor .settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){body.fd-workspace .workspace{padding:24px 12px}.brand-word{font-size:22px}.brand-symbol{width:26px;height:26px;flex-basis:26px}.invoice-title h1,.list-page-heading h1,.dash-toolbar h1{font-size:22px}.button,.new-invoice{font-size:14px;min-height:40px;padding:6px 12px}.invoice-filters{padding:24px 16px 12px}.invoice-toolbar{gap:12px}.invoice-toolbar select{font-size:14px;max-width:180px}.invoice-search{width:100%;order:3}.invoice-dates{margin-left:auto}.invoice-menu{display:block}.invoice-filter-chips{margin-top:16px}.invoice-pagination{padding:16px;gap:12px;flex-wrap:wrap}.document-workspace-main,.quote-document-workspace .document-workspace-main{width:calc(100% - 24px);padding-top:16px}.document-sheet,.quote-document-workspace .document-sheet{padding:24px 20px;border-radius:24px}.document-topbar{gap:8px;flex-wrap:wrap}.document-context>strong{font-size:16px}.document-tabs>a,.quote-document-workspace .document-tabs>a{font-size:14px;padding:10px 20px}.document-fields,.contact-sheet .document-facts{grid-template-columns:1fr 1fr;gap:24px 16px;margin-bottom:32px}.document-fields .document-field:nth-child(7){grid-column:1/-1}.document-heading{grid-template-columns:1fr;min-height:0;margin-bottom:32px}.document-field dd{font-size:16px}.document-summary{width:100%}.settings-card,.manual-invoice{padding:24px 20px}.settings-grid,.manual-grid,.expense-editor .settings-grid{grid-template-columns:1fr}.expense-heading{flex-direction:column}.purchase-inbox-link{padding:16px;align-items:flex-start;flex-direction:column;gap:10px}.panel{border-radius:24px}.mode-note{flex-wrap:wrap}.mode-note a{margin-left:0}.list-page-heading{gap:12px}.invoice-title{gap:12px}.workspace-footer{flex-wrap:wrap}.form-section-tabs{gap:0}.form-section-tabs a{font-size:14px;padding:10px 16px}.document-footer{flex-wrap:wrap}.home-dashboard .dash-main-amount{font-size:30px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

body.fd-workspace .more-nav>div.more-sections{left:auto;right:-120px;width:min(850px,calc(100vw - 48px));padding:24px;border-radius:24px;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}body.fd-workspace .more-nav[open]>div.more-sections{display:grid}.more-sections h2{font-size:14px;font-weight:500;margin:0 0 12px;color:#757575}body.fd-workspace .more-sections section a{display:block;white-space:normal;padding:10px 0;font-size:16px;line-height:24px;border-radius:4px;box-shadow:none;color:#424242}.more-sections section a:hover{background:#edf6fc}.invoice-document-workspace .document-tabs>a{color:#424242}.invoice-document-workspace .document-tabs>a[aria-current=page]{color:#212121}
@media(max-width:999px){body.fd-workspace .more-nav>div.more-sections{right:0;width:min(680px,calc(100vw - 32px));grid-template-columns:repeat(2,minmax(0,1fr));padding:20px}}
@media(max-width:599px){body.fd-workspace .app-header{grid-template-columns:minmax(0,1fr) 72px 40px}body.fd-workspace .company-picker>summary strong{display:none}body.fd-workspace .company-picker>summary{padding:4px;gap:0}body.fd-workspace .company-picker>summary .avatar{width:28px;height:28px;font-size:10px}body.fd-workspace .header-end>a.header-icon{width:36px;flex-basis:36px}}

.archive-table{min-width:1060px}.archive-table th:nth-child(n){width:auto}.archive-table th.type-cell{width:48px}.archive-table th:nth-child(2){width:130px}.archive-table th:nth-child(3){width:110px}.archive-table th.number{width:130px}.archive-table .document-type{background:#6b7085}.view-deliveryNotes .archive-table .document-type{background:#469489}.archive-table .invoice-client{min-width:350px}

/* Received purchase documents remain visible until reviewed or resolved. */
.purchase-attention{display:flex;align-items:flex-start;gap:16px;margin:0 0 24px;padding:20px 24px;border:1px solid #e9cf8d;border-left:4px solid #bf8612;border-radius:16px;background:#fff8e8;color:#5e471a}.purchase-attention>svg{width:24px;height:24px;flex:0 0 24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;margin-top:2px}.purchase-attention-copy{flex:1;min-width:0}.purchase-attention h2{font-size:16px;line-height:24px;font-weight:600;margin:0 0 4px;color:inherit}.purchase-attention p{font-size:14px;line-height:21px;margin:4px 0 0;color:inherit}.purchase-attention .purchase-attention-counts{font-weight:500}.purchase-attention-counts span{font-weight:400}.purchase-attention-actions{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.purchase-attention-actions:empty{display:none}.purchase-attention.has-problems{border-color:#e8b9a7;border-left-color:#b74b24;background:#fff4ef;color:#773319}.drive-inbox-panel{padding:24px}.drive-inbox-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px}.drive-inbox-filters label{display:flex;flex-direction:column;gap:6px;font-size:14px}.drive-inbox-filters select{font-size:14px;min-height:40px;min-width:230px}.drive-inbox-filters>span,.drive-inbox-summary{font-size:14px;color:#616161}.drive-inbox-filters>span{align-self:center;margin-left:auto}.drive-inbox-summary{margin:16px 0}.drive-inbox-file{max-width:540px;overflow-wrap:anywhere}.drive-inbox-file small{display:block;line-height:20px;margin-top:6px}.drive-inbox-status{font-size:14px;white-space:nowrap}.drive-unprocessed{background:#fff8f4}.drive-unprocessed .drive-inbox-status{color:#9c3d1e;font-weight:500}.drive-inbox-panel td:last-child{min-width:170px}.drive-inbox-panel td:last-child>a{display:block;margin-bottom:8px}.drive-inbox-panel td:last-child .button{display:inline-flex}.drive-inbox-panel .table-wrap{margin-top:12px}
@media(max-width:760px){.purchase-attention{padding:16px;flex-wrap:wrap;gap:12px}.purchase-attention-copy{flex-basis:calc(100% - 36px)}.purchase-attention-actions{margin-left:36px;flex-direction:row;flex-wrap:wrap}.drive-inbox-panel{padding:16px}.drive-inbox-filters>span{margin-left:0;width:100%}}

/* Dashboard cards share the height of their grid row, including expanded breakdowns. */
.home-dashboard .dash-card-grid{align-items:stretch}
.home-dashboard .dash-card-grid>.dash-card{align-self:stretch}
