/* Square-inspired workspace. Shared design follows every module stylesheet. */
:root {
  --bg:#fff; --panel:#fff; --text:#1a1a1a; --muted:#646464; --muted-2:#707070;
  --border:#dedede; --border-2:#eeeeee; --primary:#1a1a1a; --primary-700:#333333;
  --focus:0 0 0 3px #00000020; --sb-width:228px; --sb-divider:#e8e8e8;
  --field-focus:0 0 0 2px #0000000d; --field-focus-border:#777;
  --sb-text:#242424; --sb-icon:#646464; --sb-hover:#f5f5f5;
  --sb-active-bg:#f2f2f2; --sb-active-border:transparent;
  --radius-xl:10px; --radius-lg:8px; --radius-md:8px; --radius-sm:6px;
  --shadow-xs:none; --shadow-sm:0 6px 24px #0000000d;
  --danger:#333; --warning:#444; --info:#333; --success:#333;
  --w-heading:650; --w-ui:600; --w-text:400;
  --table-cell-font:13px; --table-cell-pad-y:8px; --table-cell-pad-x:14px;
  --table-head-pad-y:10px; --table-head-pad-x:14px;
}
:focus-visible {outline:2px solid var(--primary);outline-offset:3px;border-radius:4px;}
body {background:#fff;}
#app .page {padding:24px 28px;}
#app .sidebar {background:#fafafa;padding:18px 10px 12px;gap:8px;grid-template-rows:auto auto minmax(0,1fr) auto auto auto;}
#app .sidebar__brand {padding:0 8px 12px;gap:8px;}
#app .sidebar__brandName {font-size:18px;color:#1a1a1a;}
#app .sidebar__brandSub {font-size:10px;font-weight:400;letter-spacing:0;text-transform:none;color:#646464;}
#app .sidebar__divider {width:100%;margin:0;background:var(--border-2);}
#app .sidebar__nav {gap:4px;}
#app .sidebar__group {gap:2px;margin-bottom:6px;}
#app .sidebar__groupTitle {font-size:11px;letter-spacing:0;text-transform:none;color:#646464;font-weight:500;padding:7px 10px 4px;}
#app .sidebar__link {grid-template-columns:18px 1fr;gap:9px;font-size:13px;font-weight:500;border-radius:5px;min-height:34px;padding:6px 10px;color:#242424;}
#app .sidebar__link:hover {transform:none;background:#f6f6f6;}
#app .sidebar__link.is-active {background:var(--sb-active-bg);color:#111;font-weight:650;}
#app .sidebar__icon,#app .sidebar__link.is-active .sidebar__icon {width:18px;height:18px;background:transparent;border:0;border-radius:0;color:currentColor;}
#app .sidebar__icon svg {width:18px;height:18px;}
#app .sidebar__avatar {background:#ededed;border:1px solid #dedede;color:#242424;width:30px;height:30px;font-size:11px;}
#app .sidebar__footer {padding:6px 2px 0;gap:8px;}
#app .sidebar__user {gap:8px;}
#app .sidebar__userName {font-size:12px;}
#app .sidebar__userEmail {font-size:11px;max-width:150px;color:#646464;}
#app .sidebar__action {background:transparent;border-color:transparent;color:#444;border-radius:5px;min-height:34px;padding:6px 8px;font-size:12px;}
#app .sidebar__action:hover {background:#f2f2f2;transform:none;box-shadow:none;}
#app .eyebrow {display:none;}
#app :is(.overview-header,.clients-header,.quotes-header,.invoices-header,.productsservices-header,.expenses-header) {margin:0 0 16px;align-items:center;gap:16px;}
#app :is(.overview-header h1,.clients-h1,.quotes-h1,.invoices-h1,.productsservices-h1,.expenses-h1) {font-size:26px;line-height:1.2;letter-spacing:-.6px;font-weight:650;color:#1a1a1a;margin:0 0 6px;}
#app :is(.overview-header p,.clients-sub,.quotes-sub,.invoices-sub,.productsservices-sub,.expenses-sub) {font-size:13px;line-height:1.5;margin:0;color:#646464;max-width:660px;}
#app .btn {border-radius:6px;font-size:13px;letter-spacing:0;height:36px;min-height:36px;padding:0 12px;box-shadow:none;}
#app .btn-primary {background:var(--primary);border-color:var(--primary);filter:none;}
#app .btn-primary:hover {background:var(--primary-700);border-color:var(--primary-700);box-shadow:none;}
#app .btn-ghost,#app #financeExport {color:#242424;background:#f4f4f4;border:1px solid #e8e8e8;}
#app .btn-ghost:hover,#app #financeExport:hover {background:#eaeaea;box-shadow:none;}
#app .btn:disabled {cursor:not-allowed;}
#app .input {border-color:#c9c9c9;background:#fff;border-radius:6px;height:36px;min-height:36px;font-size:13px;}
#app .input {transition:border-color .15s ease,box-shadow .15s ease;}
#app :is(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color],[type=button],[type=submit],[type=reset]),textarea,select):is(:focus,:focus-visible) {outline:none;outline-offset:0;border-color:var(--field-focus-border);box-shadow:var(--field-focus);}
#app .input:focus {border-color:var(--field-focus-border);box-shadow:var(--field-focus);}
#app .input:disabled,#app .input[readonly] {background:#f7f7f7;color:#646464;}
#app textarea.input {height:auto;line-height:1.5;padding:10px;}
#app .label {color:#242424;font-size:13px;letter-spacing:0;}
#app .list-toolbar {display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--border-2);}
#app .list-toolbar>[class$="-search"] {width:min(300px,100%);}
#app .list-toolbar .input {background:#f7f7f7;border-color:#e8e8e8;padding-left:38px;}
#app .list-toolbar .input:focus {background:white;border-color:var(--field-focus-border);}
#app :is(.clients-panel,.quotes-panel,.invoices-panel,.productsservices-panel,.expenses-panel) {padding:0;box-shadow:none;border:1px solid #e8e8e8;border-radius:8px;overflow:hidden;}
#app .table th {background:#f7f7f7;color:#5c5c5c;letter-spacing:0;text-transform:none;font-size:12px;font-weight:600;border-bottom:1px solid #e8e8e8;}
#app .table td {color:#242424;border-bottom-color:#ededed;}
#app .table tbody tr:hover {background:#fafafa;}
#app :is(.client-action,.quote-action,.invoice-action,.expenses-action,.productsservices-action) {border:0;border-radius:6px;background:transparent;color:#5c5c5c;width:28px;height:28px;box-shadow:none;}
#app :is(.client-action,.quote-action,.invoice-action,.expenses-action,.productsservices-action):hover {background:#ededed;box-shadow:none;}
#app :is(.client-action--danger,.quote-action--danger,.invoice-action--danger,.expenses-action--danger,.productsservices-action--danger):hover {color:var(--danger);background:#f4f4f4;}
#app .invoice-action--paid {color:var(--success);background:#ededed;}
#app .expenses-receiptLink {color:var(--primary);}
#app .list-pagination__controls {display:flex;align-items:center;gap:6px;}
#app .list-pagination__numbers {display:flex;align-items:center;flex-wrap:wrap;gap:6px;}
#app .list-pagination {display:flex;justify-content:flex-start;margin:0;padding:10px 14px;border-top:1px solid #eee;}
#app :is(.list-pagination__num,.list-pagination__arrow) {border-radius:6px;min-width:30px;min-height:30px;font-size:12px;background:#f4f4f4;color:#333;border:1px solid transparent;}
#app .list-pagination__num.is-active {background:#ededed;color:#333333;border-color:#bcbcbc;}
#app :is(.list-pagination__num,.list-pagination__arrow):hover {background:#eaeaea;}
#app .list-pagination__arrow:disabled {opacity:.45;}
#app .money-grid {gap:0;border:1px solid #e4e4e4;border-radius:8px;overflow:hidden;margin-bottom:18px;}
#app .money-card {border:0;border-right:1px solid #e8e8e8;border-radius:0;padding:18px;background:white;}
#app .money-card:last-child {border-right:0;}
#app .money-card__label {font-size:12px;color:#555;margin-bottom:12px;}
#app .money-card__value {font-size:26px;letter-spacing:-.7px;color:#1a1a1a;}
#app .money-card__note {font-size:11px;color:#707070;margin-top:8px;}
#app .money-card--accent {background:#f5f5f5;}
#app .money-card--accent .money-card__value {color:#333333;}
#app .overview-grid {gap:16px;margin-bottom:18px;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);}
#app :is(.trend-panel,.action-panel,.records-panel) {border:1px solid #e4e4e4;border-radius:8px;box-shadow:none;}
#app .records-panel {padding:0;}
#app .panel-heading h2 {font-size:15px;color:#1a1a1a;}
#app .panel-heading p {font-size:12px;color:#646464;}
#app .trend-chart {height:180px;}
#app .month__bar {border-radius:2px 2px 0 0;}
#app .month__bar--income,#app .legend-income {background:#1a1a1a;}
#app .month__bar--expense,#app .legend-expense {background:#b8b8b8;}
#app .month__bar--negative,#app .legend-negative {background:#f4f4f4;border:1px dashed #444444;}
#app .month {color:#646464;font-size:11px;}
#app .trend-legend {font-size:12px;}
#app .action-row {padding:12px 0;gap:10px;}
#app .action-row strong {font-size:13px;}
#app .action-row small {font-size:11px;margin-top:3px;}
#app .action-icon {border-radius:6px;background:#f3f3f3;color:#333;}
#app .overview-table :is(th,td) {padding:10px 16px;font-size:13px;}
#app :is(.text-link,.record-link) {font-size:13px;}
#app .overview-footnote {font-size:12px;color:#707070;}
#app :is(.quotes-card,.invoices-card,.settings-panel,.stammdaten-panel) {padding:18px;border:1px solid #e4e4e4;border-radius:8px;}
#app :is(.quotes-card__title,.invoices-card__title,.settings-h2,.stammdaten-h2) {font-size:16px;font-weight:650;color:#1a1a1a;margin-bottom:10px;}
#app :is(.quotes-grid,.invoices-grid) {gap:16px;}
#app :is(.quotes-form,.invoices-form,.stammdaten-grid,.settings-grid) {gap:12px;}
#app .quote-recipient-fields {gap:12px;}
#app .quotes-totals,#app .invoices-totals {padding-top:12px;gap:8px;font-size:13px;}
#app .settings-tabs {border-bottom:1px solid #dedede;gap:20px;margin-bottom:18px;}
#app .settings-tabs button {border:0;border-bottom:3px solid transparent;border-radius:0;padding:10px 0;font-size:13px;color:#646464;}
#app .settings-tabs button[aria-selected=true] {background:transparent;color:#1a1a1a;border-bottom-color:#1a1a1a;}
#app :is(.quotes-datepicker__day,.invoices-datepicker__day,.expense-datepicker__day).is-selected {background:#ededed;border-color:#bcbcbc;color:#333333;}
#app :is(.modal__card,.ui-alert__panel) {border-radius:10px;background:#fff;box-shadow:0 20px 70px #00000025;}
#app .modal__head {padding:16px 18px;border-bottom:1px solid #e8e8e8;}
#app .modal__title {font-size:18px;font-weight:650;color:#1a1a1a;}
#app .modal__body {padding:18px;}
#app .modal__close {border-radius:6px;background:#f4f4f4;box-shadow:none;}
#app .expense-modal__body {padding-bottom:0;}
#app .expense-modal__footer {background:#fff;padding:12px 0;}
#app .login-page {background:#fff;}
#app .login-story {background:#f4f4f4;color:#1a1a1a;border-right:1px solid #e8e8e8;}
#app .login-brand span,#app .login-story p,#app .login-story__body>span {color:#646464;}
#app .login-eyebrow,#app .login-story__footer {color:#646464;}
#app .login-story__line {background:#1a1a1a;}
#app .login-submit {height:48px;}
@media (min-width:981px) and (max-width:1250px) {
  #app .page {padding:22px 24px;}
  #app .overview-header {align-items:flex-start;flex-direction:column;}
  #app .overview-grid {grid-template-columns:1fr;}
  #app .money-card {padding:16px;}
  #app .money-card__value {font-size:25px;}
}
@media (max-width:980px) {
  #app .page {padding:22px 20px calc(22px + env(safe-area-inset-bottom));}
  #app .sidebar {padding-top:12px;grid-template-rows:auto auto auto minmax(0,1fr) auto auto auto;}
  #app .sidebar__link,#app .sidebar__action {min-height:44px;}
  #app .mobile-topbar {background:white;}
  #app :is(.clients-header,.quotes-header,.invoices-header,.productsservices-header,.expenses-header) {flex-direction:row;align-items:flex-start;}
  #app :is(.clients-header__right,.quotes-header__right,.invoices-header__right,.productsservices-header__right,.expenses-header__right) {width:auto;flex-shrink:0;}
  #app #expensesNewBtn {width:auto;}
  #app .overview-grid {grid-template-columns:1fr;}
  #app .money-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  #app .money-card:nth-child(2) {border-right:0;}
  #app .money-card:nth-child(-n+2) {border-bottom:1px solid #e8e8e8;}
}
@media (max-width:760px) {
  #app .page {padding:20px 14px calc(20px + env(safe-area-inset-bottom));}
  #app :is(.overview-header,.clients-header,.quotes-header,.invoices-header,.productsservices-header,.expenses-header) {flex-direction:column;align-items:stretch;gap:12px;margin-bottom:14px;}
  #app :is(.overview-header h1,.clients-h1,.quotes-h1,.invoices-h1,.productsservices-h1,.expenses-h1) {font-size:24px;margin-bottom:6px;}
  #app .input {font-size:16px;height:44px;min-height:44px;}
  #app textarea.input {height:auto;}
  #app .btn {height:44px;min-height:44px;}
  #app .list-toolbar {padding:10px 0;}
  #app .list-toolbar>[class$="-search"] {width:100%;}
  #app :is(.clients-panel,.quotes-panel,.invoices-panel,.productsservices-panel,.expenses-panel) {border:0;overflow:visible;}
  #app .table tbody {gap:8px;}
  #app .table tbody tr {padding:14px 12px;gap:8px;border-color:#dedede;border-radius:8px;}
  #app .table tbody td {border:0;font-size:13px;padding:0;}
  #app .table tbody td::before {font-size:12px;letter-spacing:0;text-transform:none;color:#646464;font-weight:500;}
  #app :is(.client-action,.quote-action,.invoice-action,.expenses-action,.productsservices-action) {min-width:44px;min-height:44px;background:#f5f5f5;}
  #app .list-pagination {justify-content:center;padding:12px 0;}
  #app :is(.list-pagination__num,.list-pagination__arrow) {min-width:40px;min-height:40px;}
  #app .money-card {padding:16px 12px;}
  #app .money-card__value {font-size:23px;letter-spacing:-.7px;}
  #app .money-card__label {min-height:30px;font-size:12px;}
  #app .money-card__note {font-size:11px;}
  #app .trend-chart {height:165px;}
  #app .month {font-size:10px;}
  #app :is(.records-panel,.trend-panel,.action-panel) {padding:14px;}
  #app .records-panel>.panel-heading {padding:0;}
  #app .records-panel .table tbody {padding:0;}
  #app .finance-ledger>summary.panel-heading {padding:0;}
  #app .finance-ledger[open]>summary {padding-bottom:20px;}
  #app :is(.quotes-card,.invoices-card,.settings-panel,.stammdaten-panel) {padding:16px 14px;}
  #app .modal__head {padding:18px 16px;}
  #app .modal__body {padding:16px 14px;}
  #app .expense-modal__body {padding-bottom:0;}
}

#app :is(#quotesEditorView,#invoicesEditorView)>:is(.quotes-panel,.invoices-panel) {border:0;overflow:visible;}
#app :is(.quotes-form,.invoices-form) {grid-template-columns:repeat(2,minmax(0,1fr));}
#app .quote-recipient-fields {grid-column:1 / -1;grid-template-columns:repeat(2,minmax(0,1fr));}
#app .quote-recipient-fields>:first-child,#app .quote-recipient-fields>.help-text {grid-column:1 / -1;}
@media(max-width:760px) {#app :is(.quotes-form,.invoices-form,.quote-recipient-fields) {grid-template-columns:1fr;}#app :is(.quotes-header__right,.invoices-header__right) {flex-wrap:wrap;width:100%;gap:8px;}}

/* Monochrome accents extend to status controls and document modals. */
#app :is(.login-brand img,.login-mobile-brand img) {filter:grayscale(1);}
#app :is(.badge,.pill,.invoice-status,.modal-tab.is-active) {color:#333;background:#f1f1f1;border-color:#dedede;}
#app .invoice-status--paid {color:#111;background:#e5e5e5;border-color:#bcbcbc;}
#app :is(.ui-alert__ok,.client-modal__save,.productservice-modal__save) {background:var(--primary);color:white;box-shadow:none;}
#app :is(.ui-alert__ok,.client-modal__save,.productservice-modal__save):hover {background:var(--primary-700);box-shadow:none;}
#app :is(.client-modal__input,.client-modal__textarea,.productservice-modal__input,.productservice-modal__textarea):focus {border-color:var(--field-focus-border);box-shadow:var(--field-focus);}
#app .modal-related-download {color:#333;background:#eee;border-color:#ccc;}
#app .finance-status--error {color:#222;background:#f1f1f1;}

#app .modal-related-download:hover {background:#e5e5e5;}

/* A tighter shared rhythm for lists, documents, and the financial overview. */
#app .field {gap:6px;}
#app :is(.trend-panel,.action-panel) {padding:18px;}
#app .panel-heading {margin-bottom:14px;}
#app .records-panel>.panel-heading {padding:18px 18px 0;}
#app .finance-ledger {margin-top:18px;}
#app .finance-ledger>summary.panel-heading {padding:18px;margin:0;}
#app .action-icon {width:30px;height:30px;font-size:18px;}
#app .trend-legend {margin-top:14px;}
#app .login-card .input {height:48px;}
@media(max-width:760px) {
  #app :is(.trend-panel,.action-panel) {padding:14px;}
  #app .records-panel>.panel-heading,#app .finance-ledger>summary.panel-heading {padding:0;}
  #app .finance-ledger[open]>summary.panel-heading {padding-bottom:14px;}
  #app .overview-table tbody td {padding:0;}
}

/* Customer and service dialogs share the workspace form treatment. */
#app :is(#clientModal,#serviceModal) .modal__backdrop {background:#00000035;backdrop-filter:blur(6px);}
#app :is(#clientModal,#serviceModal) .modal__card {height:auto;max-height:calc(100dvh - 48px);border-radius:10px;box-shadow:0 20px 70px #00000025;}
#app :is(#clientModal,#serviceModal) .modal__head {padding:16px 18px;border-color:#e8e8e8;}
#app :is(.client-modal__title,.productservice-modal__title) {font-size:18px;font-weight:650;color:var(--text);letter-spacing:-.2px;}
#app :is(#clientModal,#serviceModal) .modal__body {padding:18px;overflow-y:auto;}
#app :is(.client-modal__grid,.productservice-modal__grid) {gap:12px;}
#app :is(.client-modal__label,.productservice-modal__label) {font-size:13px;font-weight:500;color:#242424;letter-spacing:0;text-transform:none;margin:0;}
#app :is(#clientModal,#serviceModal) .input {height:36px;min-height:36px;border:1px solid #c9c9c9;border-radius:6px;padding:0 10px;box-shadow:none;font-size:13px;font-weight:400;color:var(--text);line-height:1.5;}
#app :is(#clientModal,#serviceModal) select.input {padding-right:36px;}
#app :is(#clientModal,#serviceModal) textarea.input {height:auto;min-height:120px;padding:10px;resize:vertical;}
#app :is(#clientModal,#serviceModal) .input:focus {border-color:var(--field-focus-border);box-shadow:var(--field-focus);}
#app :is(#clientModal,#serviceModal) .modal__footer {margin-top:16px;padding:12px 0 0;border-color:#e8e8e8;background:#fff;gap:10px;}
#app :is(#clientModal,#serviceModal) .modal__save {height:36px;min-height:36px;min-width:0;padding:0 12px;border-radius:6px;font-size:13px;font-weight:600;background:var(--primary);box-shadow:none;}
#app :is(#clientModal,#serviceModal) .modal__save:hover {background:var(--primary-700);box-shadow:none;}
#app :is(.client-modal__close,.productservice-modal__close) {border-radius:6px;background:#f4f4f4;color:#555;}
#app :is(.client-modal__close,.productservice-modal__close):hover {background:#eaeaea;color:#242424;}
#app .modal-tabs {gap:6px;margin-bottom:16px;}
#app .modal-tab {background:#f7f7f7;border-color:#e8e8e8;padding:8px 10px;border-radius:6px;font-size:13px;color:#646464;}
#app .modal-tab.is-active {color:#1a1a1a;background:#f2f2f2;border-color:#dedede;}
#app :is(.settings-help,.stammdaten-help) {color:#646464;}
@media(max-width:760px) {
  #app :is(#clientModal,#serviceModal) .modal__card {max-height:calc(100dvh - 24px);}
  #app :is(#clientModal,#serviceModal) .modal__head {padding:16px 14px;}
  #app :is(#clientModal,#serviceModal) .modal__body {padding:14px;}
  #app :is(#clientModal,#serviceModal) .input {height:44px;min-height:44px;font-size:16px;}
  #app :is(#clientModal,#serviceModal) textarea.input {height:auto;}
  #app :is(#clientModal,#serviceModal) .modal__save {height:44px;min-height:44px;}
  #app :is(.client-modal__close,.productservice-modal__close) {width:44px;height:44px;}
  #app .modal-tab {min-height:44px;}
}


/* Compact, shared offer and invoice editors. */
#app .document-editor [hidden] {display:none!important;}
#app .document-editor {max-width:1200px;}
#app .document-editor .sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
#app .document-grid {gap:14px;}
#app .document-editor :is(.quotes-card,.invoices-card) {padding:16px;min-width:0;}
#app .document-editor :is(.quotes-card__title,.invoices-card__title) {font-size:15px;margin:0 0 12px;}
#app .document-recipient-form {display:grid;grid-template-columns:220px minmax(0,1.2fr) minmax(0,1fr) 140px 160px;gap:12px;align-items:start;}
#app .document-recipient-form>#quoteRegisteredRecipient {grid-column:2 / -2;}
#app #invoicesEditorView .document-recipient-form {grid-template-columns:minmax(0,1fr) 160px;}
#app #invoiceLeadInput {max-width:560px;}
#app .document-text-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:14px;}
#app .document-recipient-form>#quoteManualRecipient {display:contents;}
#app .document-recipient-form>#quoteManualRecipient>.field {grid-column:auto;}
#app #quoteRecipientCountry {max-width:190px;}
#app .document-recipient-mode select {max-width:360px;}
#app .document-editor :is(#quoteCustomerAddress,#invoiceCustomerAddress) {height:100px;min-height:100px;resize:vertical;padding:8px 10px;}
#app .document-editor :is(#quoteHeaderText,#invoiceHeaderText) {min-height:100px;resize:vertical;padding:8px 10px;}
#app .document-date {max-width:190px;}
#app .document-editor :is(.quotes-dateField,.invoices-dateField) {gap:0;}
#app .document-date input {padding-right:40px;}
#app .document-editor :is(.quotes-dateField__btn,.invoices-dateField__btn) {position:absolute;right:4px;top:4px;width:28px;height:28px;min-height:28px;padding:0;border:0;background:transparent;}
#app .document-editor :is(.quotes-datepicker,.invoices-datepicker) {width:min(286px,calc(100vw - 60px));}
#app .document-terms-note {margin:8px 0 0;font-size:11px;line-height:1.5;color:#707070;}
#app .document-mobile-label {display:none;}
#app .document-positions-heading {display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:10px;}
#app .document-positions-heading :is(.quotes-card__title,.invoices-card__title) {margin:0;}
#app .document-items {table-layout:fixed;min-width:800px;}
#app .document-items :is(th,td) {padding:8px;}
#app .document-items [data-column=qty] {width:76px;}
#app .document-items [data-column=unit] {width:98px;}
#app .document-items [data-column=price] {width:118px;}
#app .document-items [data-column=vat] {width:72px;}
#app .document-items [data-column=discount] {width:82px;}
#app .document-items [data-column=total] {width:124px;text-align:right;white-space:nowrap;}
#app .document-items [data-column=actions] {width:44px;}
#app .document-items .input {width:100%;min-width:0;padding-left:8px;padding-right:8px;}
#app .document-items select.input {padding-right:26px;}
#app .document-items input[inputmode=decimal] {text-align:right;}
#app .document-items [data-action=removeItem] {width:28px;height:28px;min-height:28px;padding:0;background:transparent;border:0;color:#707070;}
#app .document-items [data-action=removeItem]:hover {background:#f1f1f1;color:#111;}
#app .document-bottom {display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-top:1px solid #eee;margin-top:12px;padding-top:14px;}
#app .document-bottom>:is(.quotes-totals,.invoices-totals) {margin:0;padding:0;border:0;width:280px;max-width:100%;gap:6px;}
#app .document-bottom [class$="-totals__row--strong"] {border-top:1px solid #eee;padding-top:8px;margin-top:2px;font-size:15px;}
@media(min-width:761px) and (max-width:1250px) {
  #app .document-recipient-form {grid-template-columns:repeat(3,minmax(0,1fr));}
  #app .document-recipient-form>#quoteRegisteredRecipient {grid-column:2 / -1;}
}
@media(max-width:760px) {
  #app .document-recipient-form,#app #invoicesEditorView .document-recipient-form,#app .document-text-grid {grid-template-columns:1fr;}
  #app .document-recipient-form>#quoteRegisteredRecipient {grid-column:auto;}
  #app .document-desktop-label {display:none;}
  #app .document-mobile-label {display:inline;}
  #app .document-editor :is(.quotes-card,.invoices-card) {padding:14px;}
  #app .document-date {max-width:220px;}
  #app .document-editor :is(.quotes-dateField__btn,.invoices-dateField__btn) {right:2px;top:2px;width:40px;height:40px;min-height:40px;}
  #app .document-positions-heading {align-items:flex-start;}
  #app .document-items tbody tr {position:relative;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;}
  #app .document-items tbody td {display:flex;flex-direction:column;align-items:stretch;gap:5px;width:auto!important;min-width:0;}
  #app .document-items tbody td::before {font-size:11px;}
  #app .document-items [data-column=description] {grid-column:1 / -1;padding-right:42px;order:0;}
  #app .document-items [data-column=qty] {order:1;}
  #app .document-items [data-column=unit] {order:2;}
  #app .document-items [data-column=price] {order:3;}
  #app .document-items [data-column=total] {order:4;}
  #app .document-items [data-column=vat] {order:5;}
  #app .document-items [data-column=discount] {order:6;}
  #app .document-items [data-column=total]>span {display:flex;align-items:center;justify-content:flex-end;min-height:44px;font-variant-numeric:tabular-nums;}
  #app .document-items td[data-column=actions] {position:absolute;top:8px;right:6px;width:44px!important;}
  #app .document-items [data-action=removeItem] {width:44px;height:44px;min-height:44px;}
  #app .document-bottom {flex-direction:column;gap:16px;}
  #app .document-bottom>:is(.quotes-totals,.invoices-totals) {width:100%;}
}
