.bookkeeping-subnav{display:grid;gap:2px;margin:-3px 0 8px 48px}.bookkeeping-subnav a{font-size:12px!important;padding:6px 10px!important;min-height:auto!important}.bookkeeping-subnav a.active{color:#078b68;font-weight:800}.bookkeeping-tabs{display:flex;gap:8px;margin:-8px 0 24px}.bookkeeping-tabs a{padding:10px 16px;border-radius:14px;color:#6f7d92;font-weight:700}.bookkeeping-tabs a.active{background:#e8f7f2;color:#078b68}.bookkeeping-ingest{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:18px;margin-bottom:20px}.bookkeeping-upload,.bookkeeping-manual-open{min-height:116px;border:1px solid #cfe1e4;border-radius:24px;background:#fff;display:flex;align-items:center;gap:18px;padding:22px 26px;text-align:left}.bookkeeping-upload-icon,.bookkeeping-manual-open>span{width:54px;height:54px;border-radius:18px;background:#e8f7f2;color:#078b68;display:grid;place-items:center;font-size:28px;font-weight:800}.bookkeeping-upload h2,.bookkeeping-manual-open strong{margin:0;color:#111b31;font:800 21px Manrope,sans-serif}.bookkeeping-upload p,.bookkeeping-manual-open small{display:block;margin:5px 0 0;color:#7b889c}.bookkeeping-upload label{margin-left:auto;cursor:pointer}.bookkeeping-upload input{display:none}.bookkeeping-manual-open{cursor:pointer}.bookkeeping-filter{display:grid;grid-template-columns:minmax(260px,1fr) 220px 190px auto;gap:10px;margin-bottom:16px}.bookkeeping-filter input,.bookkeeping-filter select,.bookkeeping-filter button,.bookkeeping-fields input,.bookkeeping-fields select,.bookkeeping-fields textarea{border:1px solid #cfdee4;border-radius:15px;background:#fff;padding:13px 15px;font:600 15px DM Sans,sans-serif;color:#172238}.bookkeeping-filter button{background:#078b68;color:#fff;border-color:#078b68}.bookkeeping-list{overflow:hidden}.bookkeeping-table{display:grid;grid-template-columns:1.35fr .8fr .75fr 1fr .8fr .9fr 28px;gap:16px;align-items:center;padding:17px 22px}.bookkeeping-table-head{color:#7b889c;font-size:12px;font-weight:800;text-transform:uppercase}.bookkeeping-row{border-top:1px solid #e6eef1;color:#172238}.bookkeeping-row:hover{background:#f7fbfa}.bookkeeping-row span{min-width:0}.bookkeeping-row strong,.bookkeeping-row small{display:block}.bookkeeping-row small{color:#8290a4;margin-top:3px}.bookkeeping-status{display:inline-flex;border-radius:999px;padding:6px 10px;background:#edf1f4;color:#647287;font-style:normal;font-size:12px;font-weight:700}.bookkeeping-status.needs_review,.bookkeeping-status.ocr,.bookkeeping-status.parsing{background:#fff3d6;color:#9b6900}.bookkeeping-status.completed{background:#ddf7ee;color:#05785a}.bookkeeping-status.failed,.duplicate{background:#ffe8eb!important;color:#c72c41!important}.bookkeeping-empty{padding:54px;text-align:center;color:#748196}.bookkeeping-empty strong{display:block;color:#172238;font-size:20px}.bookkeeping-dialog{width:min(760px,calc(100% - 32px));border:0;border-radius:26px;padding:0;box-shadow:0 30px 90px #12243a33}.bookkeeping-dialog::backdrop{background:#12243a66}.bookkeeping-dialog form{padding:26px}.dialog-head,.dialog-actions,.review-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-head small{color:#078b68;font-weight:800}.dialog-head h2{margin:3px 0 18px}.dialog-head>button{border:0;background:#edf3f4;border-radius:12px;width:40px;height:40px;font-size:24px}.bookkeeping-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.bookkeeping-fields label{display:grid;gap:7px;color:#68778d;font-size:13px;font-weight:800}.bookkeeping-fields .wide{grid-column:1/-1}.bookkeeping-fields textarea{min-height:80px;resize:vertical}.dialog-actions,.review-actions{margin-top:22px}.dialog-actions button,.review-actions button,.review-actions a{border:1px solid #bcded5;border-radius:15px;padding:13px 18px;background:#fff;color:#087c62;font-weight:800}.dialog-actions .primary,.review-actions .primary{background:#078b68;color:#fff}.bookkeeping-review-layout{display:grid;grid-template-columns:minmax(360px,.85fr) minmax(540px,1.15fr);gap:20px;align-items:start}.bookkeeping-document{overflow:hidden}.bookkeeping-document iframe,.bookkeeping-document>img{width:100%;height:700px;border:0;object-fit:contain;background:#eef3f4}.bookkeeping-review{padding:24px}.bookkeeping-validation{border-radius:16px;background:#fff4e1;color:#925e00;padding:10px 16px;margin-bottom:18px}.bookkeeping-validation p{margin:5px 0}.review-override{font-size:13px;color:#b52c3c}.report-head,.report-row{grid-template-columns:1fr .7fr .7fr 1fr 1fr 1fr}.report-row{border-top:1px solid #e6eef1}.bookkeeping-empty .primary{display:inline-block;margin-top:10px}@media(max-width:1050px){.bookkeeping-ingest,.bookkeeping-review-layout{grid-template-columns:1fr}.bookkeeping-filter{grid-template-columns:1fr 1fr}.bookkeeping-table{grid-template-columns:1.2fr .8fr .8fr .8fr}.bookkeeping-table>*:nth-child(4),.bookkeeping-table>*:nth-child(7){display:none}}@media(max-width:700px){.bookkeeping-ingest,.bookkeeping-filter,.bookkeeping-fields{grid-template-columns:1fr}.bookkeeping-upload{align-items:flex-start;flex-wrap:wrap}.bookkeeping-upload label{margin-left:0}.bookkeeping-table{grid-template-columns:1.4fr 1fr}.bookkeeping-table>*:nth-child(3),.bookkeeping-table>*:nth-child(5),.bookkeeping-table>*:nth-child(7){display:none}.bookkeeping-fields .wide{grid-column:auto}.review-actions{flex-wrap:wrap}}
.bookkeeping-rules{margin-top:18px;padding:0 24px}.bookkeeping-rules summary{display:flex;align-items:center;justify-content:space-between;padding:20px 0;cursor:pointer}.bookkeeping-rules summary strong,.bookkeeping-rules summary small{display:block}.bookkeeping-rules summary small{color:#8290a4;margin-top:4px}.bookkeeping-rules summary b{color:#078b68}.rule-form{display:grid;grid-template-columns:1.1fr 1.2fr 1fr 90px auto;gap:10px;padding:0 0 20px}.rule-form input,.rule-form select,.rule-form button{border:1px solid #cfdee4;border-radius:14px;padding:12px;background:#fff}.rule-form .primary{background:#078b68;color:#fff}.rule-list>div{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e7eef0;padding:14px 0}.rule-list small{display:block;color:#8290a4}.rule-list button{border:1px solid #f0c4ca;border-radius:11px;background:#fff;color:#cc3548;width:36px;height:36px}.issued-head,.issued-row{grid-template-columns:1.2fr 1fr 1fr 1fr 30px}.issued-row{border-top:1px solid #e7eef0;color:#172238}@media(max-width:900px){.rule-form{grid-template-columns:1fr 1fr}.rule-form button{grid-column:1/-1}}
.page-bookkeeping-incoming main>header h1,.page-bookkeeping-invoice main>header h1,.page-bookkeeping-issued main>header h1,.page-bookkeeping-reports main>header h1{font-size:clamp(30px,2.4vw,42px);line-height:1.08}.page-bookkeeping-incoming main>header p,.page-bookkeeping-invoice main>header p,.page-bookkeeping-issued main>header p,.page-bookkeeping-reports main>header p{font:800 10px/1.4 'DM Sans',sans-serif;letter-spacing:.13em;margin:0 0 5px}.bookkeeping-tabs{gap:6px;margin-bottom:20px}.bookkeeping-tabs a{padding:9px 14px;border-radius:13px;font-size:16px}.bookkeeping-ingest{gap:14px;margin-bottom:16px}.bookkeeping-upload,.bookkeeping-manual-open{min-height:98px;border-radius:21px;padding:18px 22px}.bookkeeping-upload-icon,.bookkeeping-manual-open>span{width:48px;height:48px;border-radius:15px;font-size:24px}.bookkeeping-upload h2,.bookkeeping-manual-open strong{font-size:19px}.bookkeeping-upload p,.bookkeeping-manual-open small{font-size:13px}.bookkeeping-upload .primary{font-size:14px;padding:12px 16px}.bookkeeping-filter{grid-template-columns:minmax(220px,1fr) 170px 205px 185px auto;gap:9px}.bookkeeping-filter input,.bookkeeping-filter select,.bookkeeping-filter button{font-size:14px;padding:11px 13px;min-width:0}.month-filter{position:relative}.month-filter span{position:absolute;left:12px;top:7px;color:#7b889c;font-size:10px;font-weight:800;z-index:1}.month-filter input{width:100%;height:100%;padding-top:20px}.bookkeeping-table{grid-template-columns:1.3fr .8fr .72fr .92fr .78fr .92fr 138px;gap:13px;padding:14px 18px;font-size:14px}.bookkeeping-table-head{font-size:11px}.bookkeeping-row strong{font-size:15px}.bookkeeping-row small{font-size:12px}.bookkeeping-status{font-size:11px;padding:5px 9px}.bookkeeping-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.bookkeeping-row-actions form{margin:0}.bookkeeping-row-actions a,.bookkeeping-row-actions button{border:1px solid #bcded5;border-radius:11px;background:#fff;color:#087c62;padding:8px 10px;font-size:12px;font-weight:800;line-height:1;cursor:pointer;text-decoration:none}.bookkeeping-row-actions button{border-color:#f0c4ca;color:#c93649}.bookkeeping-empty{padding:42px}.bookkeeping-rules summary strong{font-size:15px}.bookkeeping-rules summary small{font-size:12px}@media(max-width:1250px){.bookkeeping-filter{grid-template-columns:1fr 170px 1fr 1fr auto}.bookkeeping-table{grid-template-columns:1.2fr .8fr .72fr .8fr .8fr 128px}.bookkeeping-table>*:nth-child(4){display:none}}@media(max-width:850px){.bookkeeping-filter{grid-template-columns:1fr 1fr}.bookkeeping-filter>button{grid-column:1/-1}.bookkeeping-table{grid-template-columns:1.2fr .8fr .8fr 120px}.bookkeeping-table>*:nth-child(3),.bookkeeping-table>*:nth-child(4),.bookkeeping-table>*:nth-child(6){display:none}}

/* Keep the native month control on one centered line. */
.month-filter{display:block;min-width:0;position:relative}
.month-filter span{display:none}
.month-filter input{box-sizing:border-box;width:100%;height:100%;min-height:45px;padding:11px 13px;line-height:1.25}
.month-filter{height:45px}
.month-filter input[type="month"]{display:block;height:45px!important;min-height:45px!important;padding:10px 13px!important;line-height:23px!important}
.month-filter>.aig-calendar-control{display:block!important;position:relative!important;left:auto!important;top:auto!important;width:100%!important;height:45px!important;color:inherit!important;font-size:inherit!important;font-weight:inherit!important;z-index:auto!important}
.month-filter .aig-calendar-value{display:block!important;position:static!important;color:#172238!important;font-size:14px!important;font-weight:600!important;z-index:auto!important}
.month-filter .aig-calendar-trigger{height:45px!important;min-height:45px!important;padding:10px 13px!important}

.bookkeeping-report-tabs{display:flex;gap:8px;margin-bottom:14px}.bookkeeping-report-tabs a{border:1px solid #d6e5e7;border-radius:14px;background:#fff;color:#65758a;padding:11px 16px;font-size:14px;font-weight:800;text-decoration:none}.bookkeeping-report-tabs a.active{border-color:#b8e0d4;background:#e8f7f2;color:#087c62}.bookkeeping-report-note{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #cfe5df;border-radius:18px;background:#f3fbf8;padding:14px 18px;margin-bottom:14px;color:#087c62}.bookkeeping-report-note strong,.bookkeeping-report-note span{display:block}.bookkeeping-report-note strong{font-size:15px}.bookkeeping-report-note span{margin-top:3px;color:#68788d;font-size:12px}.bookkeeping-report-note b{border-radius:999px;background:#dff5ed;padding:7px 11px;font-size:10px;letter-spacing:.08em}.bookkeeping-report-builder{margin-bottom:14px}.received-report-filter{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr)) auto;gap:10px;padding:16px;margin-bottom:14px}.received-report-filter label{display:grid;gap:6px;color:#708096;font-size:11px;font-weight:800}.received-report-filter input,.received-report-filter select,.received-report-filter button{width:100%;min-height:44px;border:1px solid #d4e2e7;border-radius:13px;background:#fff;color:#172238;padding:10px 12px;font:700 13px 'DM Sans',sans-serif}.received-report-filter button{align-self:end;background:#078b68;color:#fff;border-color:#078b68}.vat-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;margin-bottom:14px}.vat-summary article{border:1px solid #d7e6e8;border-radius:18px;background:#fff;padding:15px 17px}.vat-summary article>span{color:#738197;font-size:11px;font-weight:800;text-transform:uppercase}.vat-summary article>div{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:10px}.vat-summary small{color:#7a889b;font-size:11px}.vat-summary strong{display:block;margin-top:3px;color:#172238;font-size:15px}.received-report-exports{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-bottom:12px}.received-report-exports span{margin-right:auto;color:#68788d;font-size:12px;font-weight:800}.received-report-exports button{border:1px solid #bcded5;border-radius:11px;background:#fff;color:#087c62;padding:9px 12px;font-size:12px;font-weight:800}.received-vat-list{overflow:hidden}.received-vat-row{display:grid;grid-template-columns:1.25fr .95fr .72fr .55fr .9fr .85fr .85fr;gap:12px;align-items:center;padding:13px 16px;border-top:1px solid #e6eef1;color:#172238;font-size:12px;text-decoration:none}.received-vat-row:first-child{border-top:0}.received-vat-row:hover:not(.received-vat-head){background:#f7fbfa}.received-vat-row strong,.received-vat-row small{display:block}.received-vat-row small{margin-top:3px;color:#8190a2}.received-vat-head{color:#7b889c;font-size:10px;font-weight:800;text-transform:uppercase}.vat-report-disclaimer{margin:12px 2px 0;color:#78869a;font-size:11px}.page-bookkeeping-reports main>header h1{font-size:clamp(30px,2.4vw,42px)}
@media(max-width:1100px){.received-report-filter{grid-template-columns:1fr 1fr}.received-report-filter button{grid-column:1/-1}.received-vat-row{grid-template-columns:1.2fr .9fr .7fr .8fr .8fr}.received-vat-row>*:nth-child(4),.received-vat-row>*:nth-child(7){display:none}}
@media(max-width:700px){.bookkeeping-report-tabs{display:grid}.bookkeeping-report-note{align-items:flex-start}.received-report-filter{grid-template-columns:1fr}.vat-summary article>div{grid-template-columns:1fr}.received-report-exports{flex-wrap:wrap;justify-content:flex-start}.received-report-exports span{flex-basis:100%}.received-vat-row{grid-template-columns:1.2fr .9fr .8fr}.received-vat-row>*:nth-child(3),.received-vat-row>*:nth-child(4),.received-vat-row>*:nth-child(5),.received-vat-row>*:nth-child(7){display:none}}

/* One visual language for both bookkeeping report types. */
.page-bookkeeping-reports main,.page-bookkeeping-reports button,.page-bookkeeping-reports input,.page-bookkeeping-reports select{font-family:'DM Sans',sans-serif}
.page-bookkeeping-reports main>header h1,.page-bookkeeping-reports h2,.page-bookkeeping-reports .bookkeeping-report-note strong{font-family:Manrope,sans-serif}
.page-bookkeeping-reports .bookkeeping-report-tabs a{font-size:14px;font-weight:700;line-height:1.2}
.page-bookkeeping-reports .bookkeeping-report-tabs a{display:flex;align-items:center;min-height:44px;padding:10px 15px;border-radius:14px}
.page-bookkeeping-reports .bookkeeping-report-note{min-height:68px;padding:13px 17px;border-radius:18px}
.page-bookkeeping-reports .bookkeeping-report-note strong{font-size:15px;line-height:1.25;font-weight:800}
.page-bookkeeping-reports .bookkeeping-report-note span{font-size:12px;line-height:1.4}
.page-bookkeeping-reports .bookkeeping-report-note b{font-family:'DM Sans',sans-serif;font-size:10px;font-weight:800}
.page-bookkeeping-reports .bookkeeping-report-builder,.page-bookkeeping-reports .received-report-filter{padding:16px;border-radius:18px}
.page-bookkeeping-reports .bookkeeping-report-builder .date-range,.page-bookkeeping-reports .received-report-filter{gap:10px}
.page-bookkeeping-reports .bookkeeping-report-builder .date-range{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));align-items:start}
.page-bookkeeping-reports .bookkeeping-report-builder .date-range>label,
.page-bookkeeping-reports .bookkeeping-report-builder .date-range .aig-calendar-control,
.page-bookkeeping-reports .bookkeeping-report-builder .date-range .aig-calendar-trigger{min-width:0;width:100%}
.page-bookkeeping-reports .bookkeeping-report-builder .date-range label,.page-bookkeeping-reports .received-report-filter label{gap:6px;color:#708096;font-size:11px;font-weight:800;line-height:1.2}
.page-bookkeeping-reports .aig-calendar-trigger,.page-bookkeeping-reports .received-report-filter select,.page-bookkeeping-reports .received-report-filter>button{height:44px!important;min-height:44px!important;border-radius:13px!important;padding:10px 12px!important;color:#172238!important;font:700 13px/1.2 'DM Sans',sans-serif!important;box-shadow:none!important}
.page-bookkeeping-reports .received-report-filter>button{color:#fff!important}
.page-bookkeeping-reports .aig-calendar-trigger svg{width:19px;height:19px}
.page-bookkeeping-reports .bookkeeping-report-builder .report-layout{gap:22px}
.page-bookkeeping-reports .bookkeeping-report-builder .series-heading h2,.page-bookkeeping-reports .bookkeeping-report-builder .report-layout aside h2{font-size:16px;line-height:1.25}
.page-bookkeeping-reports .bookkeeping-report-builder .series-heading p,.page-bookkeeping-reports .bookkeeping-report-builder .report-layout aside p{font-size:11px;line-height:1.4}
.page-bookkeeping-reports .bookkeeping-report-builder .series-heading button,.page-bookkeeping-reports .received-report-exports button{border-radius:11px;padding:9px 12px;font:800 12px/1 'DM Sans',sans-serif}
.page-bookkeeping-reports .bookkeeping-report-builder .series-checks label{border-radius:13px;padding:12px}
.page-bookkeeping-reports .bookkeeping-report-builder .series-checks strong{font:800 14px/1.2 Manrope,sans-serif}
.page-bookkeeping-reports .bookkeeping-report-builder .series-checks small{font-size:10px}
.page-bookkeeping-reports .bookkeeping-report-builder .report-layout aside{border-radius:16px;padding:16px;background:#f6f8fb}
.page-bookkeeping-reports .bookkeeping-report-builder .report-layout aside button{border-radius:11px;padding:11px 12px;font:800 13px/1.2 'DM Sans',sans-serif;color:#172238}
.page-bookkeeping-reports .bookkeeping-report-builder .report-layout aside button small{font-size:11px}
.page-bookkeeping-reports .received-report-exports span,.page-bookkeeping-reports .received-vat-row{font-family:'DM Sans',sans-serif}

.bookkeeping-upload{
  position:relative;
  transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.bookkeeping-upload.is-dragover{
  border-color:#0aa77b;
  background:#f1fbf7;
  box-shadow:0 0 0 4px #0aa77b1f,0 14px 34px #07578114;
  transform:translateY(-1px);
}
.bookkeeping-upload.is-dragover .bookkeeping-upload-icon{
  background:#0a8b6a;
  color:#fff;
}
.bookkeeping-upload.is-dragover h2{color:#087c62}
.bookkeeping-upload.has-drop-error{
  border-color:#df6675;
  background:#fff7f8;
  box-shadow:0 0 0 4px #df66751a;
}
.bookkeeping-upload.has-drop-error p{color:#c93649}
.bookkeeping-upload.is-uploading{pointer-events:none;opacity:.72}
.packeta-billing-sync{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:14px;margin:0 0 16px;padding:13px 16px;border:1px solid #cfe5de;border-radius:16px;background:#f4fbf8}.packeta-billing-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#cc2512;color:#fff;font-weight:900}.packeta-billing-sync>span:nth-child(4){display:grid;gap:3px}.packeta-billing-sync strong{color:#172338;font-size:14px}.packeta-billing-sync small{display:block;color:#718195;font-size:12px}.packeta-billing-sync button{border:0;border-radius:12px;padding:11px 15px}.packeta-billing-sync button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:700px){.packeta-billing-sync{grid-template-columns:44px 1fr}.packeta-billing-sync button{grid-column:1/-1}}

/* Received-invoice payment state and the three public document states. */
.page-bookkeeping-incoming .bookkeeping-table{grid-template-columns:1.35fr .78fr .72fr .78fr .86fr 1fr .88fr 138px}
.bookkeeping-status.needs_review{background:#fff3d6;color:#9b6900}
.bookkeeping-status.completed{background:#ddf7ee;color:#05785a}
.bookkeeping-status.failed{background:#ffe8eb;color:#c72c41}
.payment-status{display:inline-flex;border-radius:999px;padding:5px 9px;font-style:normal;font-size:11px;font-weight:800}
.payment-status.unpaid{background:#ffe8eb;color:#c72c41}.payment-status.partial{background:#fff3d6;color:#9b6900}.payment-status.paid{background:#ddf7ee;color:#05785a}
.payable-field input{border-color:#8bcfbb!important;background:#f5fcf9!important}.payable-field small,.paid-amount small{font-size:11px;font-weight:600;color:#7b889c}
.payment-control{margin:0;padding:16px;border:1px solid #cfe1e4;border-radius:18px;background:#f7fbfa}.payment-control legend{padding:0 7px;color:#172238;font:800 15px Manrope,sans-serif}
.payment-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.payment-buttons label{display:block!important}.payment-buttons input{position:absolute;opacity:0;pointer-events:none}.payment-buttons span{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #cfdfe4;border-radius:13px;background:#fff;color:#65758a;font-weight:800;cursor:pointer}.payment-buttons input:checked+span{border-color:#078b68;background:#078b68;color:#fff;box-shadow:0 6px 16px #078b6826}.payment-buttons label.unpaid input:checked+span{border-color:#c72c41;background:#c72c41}.payment-buttons label.partial input:checked+span{border-color:#b87800;background:#b87800}.paid-amount{margin-top:13px!important}
@media(max-width:1250px){.page-bookkeeping-incoming .bookkeeping-table{grid-template-columns:1.2fr .8fr .78fr .86fr 1fr .88fr 128px}.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(3){display:none}}
@media(max-width:850px){.page-bookkeeping-incoming .bookkeeping-table{grid-template-columns:1.25fr .8fr 1fr 120px}.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(3),.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(4),.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(5),.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(7){display:none}}
@media(max-width:700px){.payment-buttons{grid-template-columns:1fr}}

/* Keep search compact so reading and payment remain separate filters on one row. */
@media(min-width:1051px){
  .page-bookkeeping-incoming .bookkeeping-filter{
    grid-template-columns:minmax(240px,340px) 150px 200px 170px 100px;
    justify-content:start;
  }
}

/* Received invoices: balanced seven-column layout and inline payment editing. */
.page-bookkeeping-incoming .bookkeeping-table{grid-template-columns:minmax(170px,1.3fr) minmax(140px,.95fr) 100px minmax(110px,.85fr) minmax(175px,1.2fr) 125px 116px;gap:12px;padding:16px 18px}
.page-bookkeeping-incoming .bookkeeping-table-head{align-items:center;white-space:nowrap}
.page-bookkeeping-incoming .bookkeeping-row{align-items:start;min-height:78px}
.supplier-cell strong,.invoice-number-cell{line-height:1.3;overflow-wrap:normal;word-break:normal}.invoice-number-cell{white-space:nowrap;font-size:13px}
.amount-cell strong{white-space:nowrap}.amount-cell small{line-height:1.3}
.document-status-cell{display:flex;align-items:flex-start;flex-direction:column;gap:5px}
.bookkeeping-status{white-space:nowrap;line-height:1.2}
.inline-payment{position:relative;display:flex;min-width:0;align-items:flex-start;flex-direction:column;gap:5px;margin:0}
.inline-payment .payment-status{border:0;cursor:pointer;white-space:nowrap;font:800 12px/1.2 'DM Sans',sans-serif;transition:transform .14s ease,box-shadow .14s ease,background .14s ease}
.inline-payment .payment-status:hover{transform:translateY(-1px);box-shadow:0 5px 14px #17223814}
.payment-summary{display:block!important;margin:0!important;color:#7b889c!important;font-size:10px!important;line-height:1.35}
.partial-payment-editor{width:100%;box-sizing:border-box;margin-top:4px;padding:11px;border:1px solid #b9dcd3;border-radius:13px;background:#f8fcfb}.partial-payment-editor[hidden]{display:none}
.partial-payment-editor label{display:grid;gap:5px;color:#68778d;font-size:11px;font-weight:800}
.partial-payment-editor input{box-sizing:border-box;width:100%;height:39px;border:1px solid #cfe0e3;border-radius:10px;padding:0 11px;color:#172238;font:700 13px 'DM Sans',sans-serif}
.partial-payment-editor>small{display:block!important;margin:8px 0!important;color:#68778d!important;font-size:11px!important}.partial-payment-editor>small strong{display:inline;color:#172238;font-size:11px}
.partial-payment-editor button{width:100%;height:35px;border:1px solid #b9dcd3;border-radius:10px;background:#087f6c;color:#fff;font:800 11px 'DM Sans',sans-serif;cursor:pointer}
.bookkeeping-row-actions{gap:5px}.bookkeeping-row-actions .edit-action{display:grid;width:36px;height:36px;padding:0;place-items:center;border:1px solid #a9d9cc;border-radius:11px;background:#fff;color:#087f6c}.bookkeeping-row-actions .edit-action svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bookkeeping-row-actions button{height:36px;padding:0 8px}
@media(max-width:1250px){.page-bookkeeping-incoming .bookkeeping-table{grid-template-columns:minmax(180px,1.3fr) minmax(115px,.85fr) minmax(115px,.85fr) minmax(180px,1.2fr) minmax(130px,1fr) 128px}.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(3){display:none}}
@media(max-width:850px){.page-bookkeeping-incoming .bookkeeping-table{grid-template-columns:minmax(150px,1.2fr) minmax(110px,.8fr) minmax(165px,1fr) 118px}.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(3),.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(4),.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(6){display:none}}

/* Keep invoice mail beside the other ways to add an incoming invoice. */
.bookkeeping-ingest.has-email{grid-template-columns:minmax(0,1.65fr) minmax(225px,.82fr) minmax(295px,1.15fr);gap:14px}
.bookkeeping-ingest.has-email .bookkeeping-upload,.bookkeeping-ingest.has-email .bookkeeping-manual-open,.bookkeeping-email{min-height:116px;padding:20px 22px}
.bookkeeping-ingest.has-email .bookkeeping-upload>div:nth-of-type(2){min-width:0}
.bookkeeping-ingest.has-email .bookkeeping-upload p{font-size:13px}
.bookkeeping-email{min-width:0;border:1px solid #cfe1e4;border-radius:24px;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left}
.bookkeeping-email h2{margin:0 0 5px;color:#111b31;font:800 18px Manrope,sans-serif}
.bookkeeping-email small{display:block;color:#7b889c;font-size:12px;line-height:1.35}
.bookkeeping-email-address{display:block;max-width:100%;margin:5px 0 0;padding:4px 7px;border:0;outline:0;box-shadow:none;background:none;color:#078b68;font:700 13px 'DM Sans',sans-serif;text-align:left;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;cursor:pointer}
.bookkeeping-email-address:hover{color:#056e53}
.bookkeeping-email-address:focus-visible{outline:2px solid #078b68;outline-offset:2px;border-radius:7px}
.bookkeeping-email-feedback:not(:empty){margin-top:4px;color:#078b68;font-weight:700}
.bookkeeping-email details{margin-top:7px;font-size:12px}
.bookkeeping-email form{margin:9px 0 0}
.bookkeeping-email form .primary{padding:9px 12px;font-size:13px}
@media(max-width:1650px){.bookkeeping-ingest.has-email{grid-template-columns:repeat(2,minmax(0,1fr))}.bookkeeping-ingest.has-email .bookkeeping-upload{grid-column:1/-1}}
@media(max-width:700px){.bookkeeping-ingest.has-email{grid-template-columns:1fr}.bookkeeping-ingest.has-email .bookkeeping-upload{grid-column:auto}}

.bookkeeping-status.processing{background:#e8f3fb;color:#075781}

/* Received invoice selection and 20-row pagination. */
.page-bookkeeping-incoming .bookkeeping-table{grid-template-columns:44px minmax(170px,1.3fr) minmax(140px,.95fr) 100px minmax(110px,.85fr) minmax(175px,1.2fr) 125px 116px}
.bookkeeping-selection-heading{font-size:0}.bookkeeping-row-select{display:flex;align-items:flex-start;justify-content:center;padding-top:4px}.bookkeeping-row-select input,.bookkeeping-select-all input{width:17px;height:17px;margin:0;accent-color:#078b68;cursor:pointer}
.bookkeeping-bulk-control{display:flex;align-items:center;gap:10px;min-height:38px;margin:0 0 9px}.bookkeeping-select-all{display:flex;align-items:center;gap:8px;min-height:34px;padding:0 10px;border:1px solid #cfe1e4;border-radius:8px;background:#fff;color:#172238;font:800 11px 'DM Sans',sans-serif;cursor:pointer}.bookkeeping-bulk-toolbar{display:flex;align-items:center;gap:6px}.bookkeeping-bulk-toolbar[hidden]{display:none}.bookkeeping-bulk-toolbar span{color:#68788d;font-size:11px;font-weight:800}.bookkeeping-bulk-toolbar button{min-height:34px;padding:0 10px;border:1px solid #cfe1e4;border-radius:8px;background:#fff;color:#087c62;font:800 11px 'DM Sans',sans-serif;cursor:pointer}.bookkeeping-bulk-toolbar button:hover{background:#f3faf8}
.bookkeeping-pagination-footer{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:10px 16px 4px;padding:10px 0 4px;border-top:1px solid #e5ecee}.bookkeeping-page-size{justify-self:start;color:#718195;font-size:11px;font-weight:700}.bookkeeping-page-size strong{color:#172238}.bookkeeping-pagination{display:flex;align-items:center;justify-content:center;gap:8px}.bookkeeping-pagination a{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #c7d9dc;border-radius:8px;background:#fff;color:#087f68;font:500 24px/1 Manrope,'DM Sans',sans-serif;text-decoration:none}.bookkeeping-pagination a:hover{background:#f3faf8}.bookkeeping-pagination a.disabled{pointer-events:none;opacity:.4}.bookkeeping-page-position{min-width:54px;text-align:center;color:#172b3d;font-size:12px;font-weight:800}
@media(max-width:1250px){.page-bookkeeping-incoming .bookkeeping-table{grid-template-columns:38px minmax(180px,1.3fr) minmax(115px,.85fr) minmax(115px,.85fr) minmax(180px,1.2fr) minmax(130px,1fr) 128px}.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(4){display:none}}
@media(max-width:850px){.page-bookkeeping-incoming .bookkeeping-table{grid-template-columns:38px minmax(150px,1.2fr) minmax(110px,.8fr) minmax(165px,1fr) 118px}.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(4),.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(5),.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(7){display:none}}
@media(max-width:620px){.bookkeeping-pagination-footer{grid-template-columns:1fr auto}.bookkeeping-pagination-footer>span:last-child{display:none}.bookkeeping-bulk-control{flex-wrap:wrap}}

.bookkeeping-page-size-form{justify-self:start}.bookkeeping-page-size{display:flex;align-items:center;gap:7px;height:34px;padding:0 4px 0 9px;border:1px solid #dbe6eb;border-radius:8px;background:#fff;color:#526176;font-size:11px;font-weight:750;white-space:nowrap}.bookkeeping-page-size select{height:26px;min-width:50px;padding:0 19px 0 8px;border:0;border-left:1px solid #e5ecee;background:#fff;color:#152b3d;font:800 11px 'DM Sans',sans-serif;cursor:pointer;outline:0}.bookkeeping-page-size:focus-within{border-color:#079879;box-shadow:0 0 0 3px #0bb98b17}

.bookkeeping-bulk-toolbar button.danger{border-color:#f0c4ca;color:#c93649}.bookkeeping-bulk-toolbar button.danger:hover{background:#fff4f5}
@media(max-width:700px){.bookkeeping-bulk-toolbar{flex-wrap:wrap}}

/* The category card has its own border; keep the summary outline for keyboard focus only. */
.page-bookkeeping-incoming .bookkeeping-rules > summary{outline:none!important;box-shadow:none!important}
.page-bookkeeping-incoming .bookkeeping-rules > summary:focus-visible{outline:2px solid #078b68!important;outline-offset:3px}

/* Keep invoice rows visually consistent when the pointer moves across them. */
.page-bookkeeping-incoming .bookkeeping-row:hover{background:transparent}

/* Reserve the table's right inset instead of letting minimum grid tracks overflow it. */
@media(min-width:1451px){.page-bookkeeping-incoming .bookkeeping-table{grid-template-columns:44px minmax(160px,1.3fr) minmax(140px,.95fr) 100px minmax(110px,.85fr) minmax(160px,1.2fr) 125px 116px;column-gap:10px}}
@media(min-width:1051px) and (max-width:1450px){.page-bookkeeping-incoming .bookkeeping-table{grid-template-columns:38px minmax(135px,1.3fr) minmax(115px,.85fr) minmax(105px,.85fr) minmax(145px,1.2fr) minmax(105px,1fr) 116px;column-gap:10px}.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(4){display:none}}

/* Center the actions heading over its two controls. */
.page-bookkeeping-incoming .bookkeeping-table-head > :last-child{text-align:center}
.page-bookkeeping-incoming .bookkeeping-row-actions{justify-content:center}

/* Keep the selection control close to the table edge. */
.page-bookkeeping-incoming .bookkeeping-table{padding-left:4px}
@media(min-width:1451px){.page-bookkeeping-incoming .bookkeeping-table{grid-template-columns:28px minmax(160px,1.3fr) minmax(140px,.95fr) 100px minmax(110px,.85fr) minmax(160px,1.2fr) 125px 116px}}
@media(min-width:1051px) and (max-width:1450px){.page-bookkeeping-incoming .bookkeeping-table{grid-template-columns:28px minmax(135px,1.3fr) minmax(115px,.85fr) minmax(105px,.85fr) minmax(145px,1.2fr) minmax(105px,1fr) 116px}}

.bookkeeping-email-progress{display:flex;align-items:center;gap:8px;margin-top:8px;color:#087c62;font:700 12px 'DM Sans',sans-serif}
.bookkeeping-email-progress[hidden]{display:none}
.bookkeeping-email-spinner{width:15px;height:15px;flex:none;border:2px solid #bfe7dd;border-top-color:#078b68;border-radius:50%;animation:bookkeeping-email-spin .8s linear infinite}
@keyframes bookkeeping-email-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.bookkeeping-email-spinner{animation-duration:2s}}

/* Open the invoice from its number and highlight the edit action on hover. */
.page-bookkeeping-incoming .invoice-number-link{color:#087f6c;font-weight:700;text-decoration:none}
.page-bookkeeping-incoming .invoice-number-link:hover{text-decoration:underline;color:#056550}
.page-bookkeeping-incoming .invoice-number-link:focus-visible{outline:2px solid #087f6c;outline-offset:3px;border-radius:2px}
.page-bookkeeping-incoming .bookkeeping-row-actions .edit-action:hover,.page-bookkeeping-incoming .bookkeeping-row-actions .edit-action:focus-visible{background:#eaf7f2;border-color:#078b68;color:#056550}
/* Keep long country names inside their invoice form column. */
.bookkeeping-fields label{min-width:0}
.bookkeeping-fields select[name="supplier_country"]{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box}

/* Keep every received-invoice filter control pill shaped, including the custom month picker. */
.page-bookkeeping-incoming .bookkeeping-filter > input,
.page-bookkeeping-incoming .bookkeeping-filter > select,
.page-bookkeeping-incoming .bookkeeping-filter > button,
.page-bookkeeping-incoming .bookkeeping-filter .month-filter input,
.page-bookkeeping-incoming .bookkeeping-filter .month-filter .aig-calendar-trigger{border-radius:999px!important}

/* Align select-all with the received-invoice filters instead of leaving it below them. */
.page-bookkeeping-incoming .bookkeeping-filter-row{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:10px;row-gap:10px;align-items:center;margin-bottom:16px}
.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-bulk-control{display:contents}
.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-select-all{grid-column:1;grid-row:1;min-height:45px;padding:0 12px;border-radius:999px}
.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter{grid-column:2;grid-row:1;min-width:0;width:100%;margin:0}
.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-bulk-toolbar{grid-column:1/-1;grid-row:2}
@media(max-width:1450px){.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter{grid-template-columns:minmax(200px,1fr) minmax(130px,150px) minmax(150px,190px) minmax(140px,170px) 90px}}
@media(max-width:1150px){.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter>input[name="q"]{grid-column:1/-1}}
@media(max-width:700px){.page-bookkeeping-incoming .bookkeeping-filter-row{grid-template-columns:minmax(0,1fr)}.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-select-all{grid-column:1;grid-row:1;justify-self:start}.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter{grid-column:1;grid-row:2;grid-template-columns:minmax(0,1fr)}.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-bulk-toolbar{grid-column:1;grid-row:3}}

/* Both report types share one builder and the same field and export geometry. */
html body.bizumno-ui.page-bookkeeping-reports .bookkeeping-report-builder .date-range {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;
}
html body.bizumno-ui.page-bookkeeping-reports .bookkeeping-report-builder label {
  min-width:0;color:#708096;font:800 11px/1.2 'DM Sans',sans-serif;
}
html body.bizumno-ui.page-bookkeeping-reports .bookkeeping-report-builder .date-range label,
html body.bizumno-ui.page-bookkeeping-reports .bookkeeping-report-currency label {
  display:grid;gap:6px;
}
html body.bizumno-ui.page-bookkeeping-reports .bookkeeping-report-builder :is(.aig-calendar-trigger,select) {
  width:100%;min-width:0;height:44px;min-height:44px;padding:10px 12px;
  border:1px solid #d4e2e7;border-radius:13px;color:#172238;
  font:700 13px/1.2 'DM Sans',sans-serif;box-shadow:none;
}
html body.bizumno-ui.page-bookkeeping-reports .bookkeeping-report-builder .aig-calendar-trigger :is(span,b) {
  font:inherit;color:inherit;
}
html body.bizumno-ui.page-bookkeeping-reports .bookkeeping-report-currency {
  display:grid;grid-template-columns:minmax(0,320px) auto;justify-content:start;
  align-items:end;gap:12px;margin-top:18px;
}
html body.bizumno-ui.page-bookkeeping-reports .bookkeeping-report-currency > button {
  height:44px;padding:10px 18px;font:800 13px/1.2 'DM Sans',sans-serif;
}
html body.bizumno-ui.page-bookkeeping-reports .bookkeeping-report-builder .bookkeeping-report-export > button {
  min-height:40px;font:800 13px/1.2 'DM Sans',sans-serif;
}
@media(max-width:800px){
  html body.bizumno-ui.page-bookkeeping-reports .bookkeeping-report-builder .date-range {grid-template-columns:1fr;}
  html body.bizumno-ui.page-bookkeeping-reports .bookkeeping-report-currency {grid-template-columns:minmax(0,1fr) auto;}
}

/* Keep the file action readable when the upload description takes two lines. */
html body.bizumno-ui .bookkeeping-upload>.bookkeeping-upload-icon{flex:0 0 48px}
html body.bizumno-ui .bookkeeping-upload>div:nth-of-type(2){flex:1 1 180px;min-width:0}
html body.bizumno-ui .bookkeeping-upload>label.primary{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:44px;height:auto;box-sizing:border-box;max-width:100%;padding:12px 18px;margin-block:0;white-space:nowrap;line-height:1.4}

/* One complete drop target for incoming invoices, including the choose-file action. */
html body.bizumno-ui .bookkeeping-upload[data-drop-upload]{
 position:relative;isolation:isolate;overflow:hidden;cursor:copy;box-sizing:border-box;
 border:1.5px dashed #a9cfc4!important;background:linear-gradient(115deg,#fff 10%,#f0faf680 100%)!important;
 transition:border-color .2s ease,background-color .2s ease,box-shadow .25s ease,transform .25s cubic-bezier(.2,.8,.2,1);
}
html body.bizumno-ui .bookkeeping-upload[data-drop-upload]:hover,
html body.bizumno-ui .bookkeeping-upload[data-drop-upload]:focus-within{border-color:#4ba98e!important;box-shadow:0 0 0 3px #087f6c0b}
html body.bizumno-ui .bookkeeping-upload[data-drop-upload]>.bookkeeping-upload-icon{position:relative;flex:none;transition:background-color .2s,color .2s,transform .25s;border-radius:16px}
.bookkeeping-upload-icon>svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:opacity .15s}
html body.bizumno-ui .bookkeeping-upload[data-drop-upload]>.bookkeeping-upload-copy{min-width:0;flex:1 1 180px}
.bookkeeping-upload-copy>[data-drop-copy]{overflow-wrap:anywhere}
html body.bizumno-ui .bookkeeping-upload[data-drop-upload] [data-invoice-file-label]{cursor:pointer;outline-offset:4px;transition:background-color .2s,box-shadow .2s}
html body.bizumno-ui .bookkeeping-upload[data-drop-upload] [data-invoice-file-label]:focus-visible{outline:2px solid #087f6c}
html body.bizumno-ui .bookkeeping-upload[data-drop-upload].is-dragover{
 border-color:#07966e!important;background:linear-gradient(115deg,#effbf5,#dff5ec)!important;
 box-shadow:0 0 0 4px #07966e1a,0 12px 30px #075b4510!important;transform:translateY(-2px);
}
html body.bizumno-ui .bookkeeping-upload[data-drop-upload].is-dragover .bookkeeping-upload-icon{background:#087f6c!important;color:#fff;animation:invoice-drop-lift 1.4s ease-in-out infinite}
html body.bizumno-ui .bookkeeping-upload[data-drop-upload].is-dragover h2{color:#087f6c}
html body.bizumno-ui .bookkeeping-upload[data-drop-upload].is-uploading{pointer-events:none;opacity:1;cursor:progress;border-color:#51ae92!important;background:#f2faf6!important;transform:none}
.bookkeeping-upload.is-uploading .bookkeeping-upload-icon>svg{opacity:0}
.bookkeeping-upload.is-uploading .bookkeeping-upload-icon::after{content:'';position:absolute;width:24px;height:24px;border:2px solid #087f6c25;border-top-color:#087f6c;border-radius:50%;animation:invoice-upload-spin .85s linear infinite}
.bookkeeping-upload-progress{position:absolute;left:22px;right:22px;bottom:8px;height:3px;border-radius:3px;background:#087f6c12;overflow:hidden;opacity:0;transition:opacity .15s;pointer-events:none}
.bookkeeping-upload.is-uploading>.bookkeeping-upload-progress{opacity:1}
.bookkeeping-upload.is-uploading>.bookkeeping-upload-progress::after{content:'';position:absolute;inset:0 auto 0 0;width:35%;border-radius:inherit;background:linear-gradient(90deg,#087f6c00,#12a77e,#087f6c00);animation:invoice-upload-progress 1.5s ease-in-out infinite}
html body.bizumno-ui .bookkeeping-upload[data-drop-upload].has-drop-error{border-color:#d75b6e!important;background:#fff8f8!important;box-shadow:0 0 0 3px #d75b6e12!important;transform:none}
html body.bizumno-ui .bookkeeping-upload[data-drop-upload].has-drop-error [data-drop-copy]{color:#7b889c}
html body.bizumno-ui .bookkeeping-upload[data-drop-upload] [data-drop-error]{color:#bc3249;margin-top:7px;font-size:12px;font-weight:600}
html body.bizumno-ui .bookkeeping-upload[data-drop-upload] [hidden]{display:none!important}
@keyframes invoice-drop-lift{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes invoice-upload-spin{to{transform:rotate(360deg)}}
@keyframes invoice-upload-progress{from{transform:translateX(-110%)}to{transform:translateX(390%)}}
@media(max-width:700px){html body.bizumno-ui .bookkeeping-upload[data-drop-upload]{gap:14px}.bookkeeping-upload-progress{left:16px;right:16px}}
@media(prefers-reduced-motion:reduce){
 html body.bizumno-ui .bookkeeping-upload[data-drop-upload],html body.bizumno-ui .bookkeeping-upload[data-drop-upload] .bookkeeping-upload-icon{transition:none;animation:none;transform:none}
 .bookkeeping-upload-icon>svg,.bookkeeping-upload-progress{transition:none}
 .bookkeeping-upload.is-uploading .bookkeeping-upload-icon::after{animation:none;border-color:#087f6c;border-right-color:transparent}
 .bookkeeping-upload.is-uploading>.bookkeeping-upload-progress::after{animation:none;left:25%;width:50%}
}

/* Compact incoming-invoice workspace; retain Bizumno's shared glass surfaces. */
html body.bizumno-ui.page-bookkeeping-incoming main{padding-top:22px}
html body.bizumno-ui.page-bookkeeping-incoming main>header{min-height:0;margin:0 0 12px;padding:0}
html body.bizumno-ui.page-bookkeeping-incoming main>header h1{font-size:28px;line-height:1.15;margin:0}
html body.bizumno-ui.page-bookkeeping-incoming main>header p{font-size:9px;line-height:1.3;letter-spacing:.1em;margin:0 0 4px}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-tabs{display:flex;align-items:center;gap:8px;min-height:34px;margin:0 0 12px;padding:0;background:transparent!important;box-shadow:none;overflow-x:auto}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-tabs a{display:inline-flex;align-items:center;box-sizing:border-box;min-height:34px;padding:7px 12px;font-size:12px;line-height:1.3;text-decoration:none!important;white-space:nowrap}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:stretch;margin:0 0 10px}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar .bookkeeping-upload[data-drop-upload]{display:flex;align-items:center;position:relative;gap:10px;box-sizing:border-box;min-width:0;min-height:48px;margin:0;padding:8px 12px;border-radius:12px;border-style:dashed;overflow:hidden}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar .bookkeeping-upload-icon{width:26px;height:26px;min-width:26px;flex:none;border-radius:8px;font-size:18px}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar .bookkeeping-upload-icon svg{width:18px;height:18px}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar .bookkeeping-upload-copy{display:flex;flex-wrap:wrap;align-items:center;gap:3px 14px;min-width:0}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar h2{margin:0;font:700 13px/1.35 'DM Sans',sans-serif}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar .bookkeeping-upload-copy p{margin:0;font:400 11px/1.4 'DM Sans',sans-serif;overflow-wrap:anywhere}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar .bookkeeping-upload-error{flex-basis:100%}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar .bookkeeping-upload-hit{position:absolute;inset:0;z-index:2;display:block;min-width:0;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-upload-hit:focus-visible{outline:2px solid #087f6c;outline-offset:-3px}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar .bookkeeping-entry-action{display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:48px;margin:0;padding:10px 15px;border:1px solid #bcded5;border-radius:12px;color:#087c62;background:#ffffffb8;font:700 12px/1.3 'DM Sans',sans-serif;white-space:nowrap;cursor:pointer}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-entry-action svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-entry-action:focus-visible{outline:2px solid #087f6c;outline-offset:3px}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-entry-action:hover{border-color:#8bbdaf;background-color:#edf8f3}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-email-create{display:flex;margin:0}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-intake-status{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;color:#758397;font-size:11px;line-height:1.5}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-intake-status>[data-copy-email-status][data-copy-error]:not(:empty){margin-bottom:8px;overflow-wrap:anywhere;user-select:all}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-intake-status .bookkeeping-email-progress:not([hidden]){display:inline-flex;align-items:center;gap:7px;margin:0 0 8px;font-size:11px}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-held-mail{padding:0!important;margin:0 0 8px!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-held-mail summary{cursor:pointer;font-size:11px}
.bookkeeping-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row{gap:8px;align-items:center;margin:0 0 10px}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-select-all{box-sizing:border-box;min-height:36px;height:36px;padding:0 10px;font-size:11px}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter{display:grid;grid-template-columns:minmax(140px,1fr) 150px minmax(145px,185px) minmax(120px,145px) auto;align-items:center;gap:8px}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter>input[name=q]{grid-column:auto}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row :is(.bookkeeping-filter>input,.bookkeeping-filter>select,.bookkeeping-filter>button,.aig-calendar-trigger,.aa-choice-trigger){box-sizing:border-box;min-width:0;min-height:36px!important;height:36px!important;padding:6px 10px!important;font-size:12px!important;line-height:1.3;box-shadow:none!important}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .aig-calendar-trigger :is(span,b){font-size:12px!important;line-height:1.2}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter>button{grid-column:auto;padding-inline:14px!important}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .month-filter{min-width:0}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-bulk-toolbar{padding:7px 10px;font-size:11px}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-list{padding:0!important}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-row{min-height:54px!important;padding:7px 16px!important}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-table-head{padding:10px 16px!important;font-size:10px}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-row strong{font-size:13px}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-row small{font-size:10px}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-row .payment-status{font-size:11px;padding:4px 8px}
@media(max-width:1120px){
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter>input[name=q]{grid-column:1/3;grid-row:1}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .month-filter{grid-column:1;grid-row:2}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row select[name=processing_status]{grid-column:2;grid-row:2}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row select[name=payment_status]{grid-column:3;grid-row:2}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter>button{grid-column:3;grid-row:1}
}
@media(max-width:700px){
 html body.bizumno-ui.page-bookkeeping-incoming main{padding-top:16px}
 html body.bizumno-ui.page-bookkeeping-incoming main>header h1{font-size:24px}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar .bookkeeping-upload[data-drop-upload]{grid-column:1/-1;min-height:48px;padding:8px 10px}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar .bookkeeping-upload-copy{gap:2px}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar h2{font-size:12px;flex-basis:100%}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar .bookkeeping-upload-copy p{font-size:10px}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar .bookkeeping-entry-action{width:100%;min-height:36px;padding:7px 10px;font-size:11px}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter{display:contents}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-select-all{grid-column:1;grid-row:1;justify-self:start;padding:0 6px;font-size:10px}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter>input[name=q]{grid-column:1/-1;grid-row:1;width:calc(100% - 58px);justify-self:end}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .month-filter{grid-column:1;grid-row:2}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row select[name=processing_status]{grid-column:2;grid-row:2}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row select[name=payment_status]{grid-column:1;grid-row:3}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter>button{grid-column:2;grid-row:3}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-bulk-toolbar{grid-column:1/-1;grid-row:4}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-table{grid-template-columns:20px minmax(0,1fr) 68px 68px;gap:8px;padding-left:10px!important;padding-right:10px!important}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(5){display:block!important}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(3),html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(4),html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(6),html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-table>*:nth-child(7){display:none!important}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-row strong{font-size:12px}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-row-actions{gap:5px}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-row-actions :is(.edit-action,.delete-icon){box-sizing:border-box;width:30px;height:34px;min-height:34px;padding:6px}
}

html body.bizumno-ui.page-bookkeeping-incoming [data-copy-email-status]:not([data-copy-error]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Keep the date wrapper and every visible filter on the same 36px baseline. */
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .month-filter,
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .month-filter>.aig-calendar-control{box-sizing:border-box;height:36px!important;min-height:36px!important;margin:0!important}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row :is(.bookkeeping-select-all,.bookkeeping-filter>input:not([type=hidden]),.bookkeeping-filter>button,.aig-calendar-trigger,.aa-choice-trigger){height:36px!important;min-height:36px!important;border-radius:999px!important;font:600 12px/1.3 'DM Sans',sans-serif!important}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row :is(.bookkeeping-select-all,.bookkeeping-filter>input:not([type=hidden]),.aig-calendar-trigger,.aa-choice-trigger){border:1px solid rgba(53,93,103,.22)!important;background:rgba(255,255,255,.78)!important;box-shadow:none!important}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-select-all{font-size:11px!important}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row :is(.aig-calendar-trigger,.aa-choice-trigger){align-items:center;padding-inline:12px!important}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter>input[name=q]{padding-inline:12px!important}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row :is(.aig-calendar-trigger,.aa-choice-trigger):hover{border-color:rgba(8,127,108,.4)!important;background:rgba(255,255,255,.94)!important}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row :is(.aig-calendar-trigger,.aa-choice-trigger):focus-visible{outline:2px solid #087f6c;outline-offset:2px}
@media(max-width:700px){
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-select-all{width:88px;justify-content:center}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-filter-row .bookkeeping-filter>input[name=q]{width:calc(100% - 96px)}
}


/* Keep document actions in the upper-right corner and the filename below. */
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-document-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px 12px;margin:0 0 14px;padding:0!important}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-document-meta{display:contents}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-document-meta h2{grid-column:1;grid-row:1;align-self:center;min-width:0;margin:0;font-size:20px;line-height:1.3}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-document-meta p{grid-column:1/-1;grid-row:2;min-width:0;margin:0;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-document-actions{grid-column:2;grid-row:1;justify-self:end;align-self:start;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;max-width:100%}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-document-reprocess{display:flex;margin:0;padding:0}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-document-actions .bookkeeping-document-action{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;height:38px;margin:0;padding:8px 14px;border:1px solid #cbdde1!important;border-radius:999px!important;background:#fff!important;color:#294e59;font:700 13px/1.2 'DM Sans',sans-serif;white-space:nowrap;text-decoration:none;box-shadow:none!important;cursor:pointer}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-document-actions .bookkeeping-document-action:hover{border-color:#8bbdaf!important;background:#edf8f3!important}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-document-actions .bookkeeping-document-action:focus-visible{outline:2px solid #087f6c;outline-offset:3px}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-document-actions .bookkeeping-document-action:disabled{opacity:.5;cursor:wait}
@media(max-width:600px){html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-document-meta h2{grid-column:1/-1;grid-row:2}html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-document-meta p{grid-row:3}html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-document-actions{grid-column:1/-1;grid-row:1}}

/* Compact email receipt indicator, anchored above the copy action. */
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar:has(.bookkeeping-intake-badge){margin-top:28px}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-email-entry{position:relative;display:flex;min-width:0;align-items:stretch}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-intake-badge{position:absolute;right:0;bottom:calc(100% + 6px);display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;min-height:22px;margin:0;padding:3px 7px;border:1px solid #cbe5da;border-radius:999px;background:#edf7f1;color:#37715d;box-shadow:none;font:600 10px/1.3 'DM Sans',sans-serif;white-space:nowrap;cursor:pointer}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-intake-badge:hover{background:#e0f0e6;border-color:#9fcab8}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-intake-badge:focus-visible{outline:2px solid #087f6c;outline-offset:3px}
.bookkeeping-intake-dot{width:5px;height:5px;border-radius:50%;background:#478b6b;flex:none}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-intake-badge b{display:grid;place-items:center;min-width:15px;height:15px;padding:0 3px;box-sizing:border-box;border-radius:999px;background:#d7ebdf;font-size:9px;line-height:1;color:#295e48}
.bookkeeping-intake-badge svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
html body.bizumno-ui .bookkeeping-held-dialog{box-sizing:border-box;width:min(500px,calc(100vw - 32px));max-height:80vh;margin:auto;padding:24px;border:1px solid #dce8e4;border-radius:20px;background:#fff;color:#172238;box-shadow:0 24px 80px #16382d26;overflow:auto}
.bookkeeping-held-dialog::backdrop{background:#172d284d;backdrop-filter:blur(3px)}
.bookkeeping-held-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.bookkeeping-held-dialog-head p{margin:0 0 7px;color:#51816b;font:700 10px/1.3 'DM Sans',sans-serif;letter-spacing:.12em}
.bookkeeping-held-dialog-head h2{margin:0;font:700 21px/1.3 'DM Sans',sans-serif}
.bookkeeping-held-dialog-head h2 span{margin-left:5px;color:#789184;font-size:15px;font-weight:500}
html body.bizumno-ui .bookkeeping-held-dialog-head button{display:grid;place-items:center;flex:none;width:30px;height:30px;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background:#f1f5f3;color:#62796d;font:400 23px/1 sans-serif;cursor:pointer}
.bookkeeping-held-dialog-head button:focus-visible{outline:2px solid #087f6c;outline-offset:3px}
.bookkeeping-held-dialog>p{margin:13px 0 20px;color:#76847c;font:400 12px/1.6 'DM Sans',sans-serif}
html body.bizumno-ui .bookkeeping-held-files{display:grid;gap:10px;list-style:none;margin:0;padding:0}
.bookkeeping-held-files li{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid #e2ebe5;border-radius:13px;background:#f8faf8}
.bookkeeping-held-file-icon{display:grid;place-items:center;flex:none;width:34px;height:40px;border-radius:8px;background:#e7f0e9;color:#51816b}
.bookkeeping-held-file-icon svg{width:21px;height:25px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.bookkeeping-held-files li>div{min-width:0}
.bookkeeping-held-files strong{display:block;overflow-wrap:anywhere;color:#283c31;font:600 13px/1.5 'DM Sans',sans-serif}
.bookkeeping-held-files li span:not(.bookkeeping-held-file-icon),.bookkeeping-held-files time{display:block;margin-top:4px;overflow-wrap:anywhere;color:#7c8981;font:400 11px/1.4 'DM Sans',sans-serif}
.bookkeeping-held-files time{color:#94a096}
@media(max-width:700px){html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar:has(.bookkeeping-intake-badge){margin-top:0}html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar:has(.bookkeeping-intake-badge)>[data-open-manual]{margin-top:26px}html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-email-entry:has(.bookkeeping-intake-badge){margin-top:26px}html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-intake-badge{font-size:9px;gap:4px;padding-inline:6px}}

/* Invoice review: aligned rows and a consistent control size. */
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .bookkeeping-fields{align-items:start;gap:18px 16px}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .bookkeeping-fields label{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:7px;min-width:0;margin:0;color:#68778d;font:600 13px/18px 'DM Sans',sans-serif}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .bookkeeping-fields :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not(.aig-calendar-native),select:not([hidden]),.aig-calendar-trigger,.aa-choice-trigger){box-sizing:border-box;flex:none;width:100%;max-width:100%;min-width:0;height:40px!important;min-height:40px!important;margin:0!important;padding:9px 12px!important;border:1px solid #cfdee4!important;border-radius:10px!important;background:#ffffffdb!important;color:#172b3e!important;font:600 14px/20px 'DM Sans',sans-serif!important;letter-spacing:0;box-shadow:none!important}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .bookkeeping-fields :is(.aig-calendar-control,.aa-choice){display:block;flex:none;box-sizing:border-box;width:100%;min-width:0;height:40px;margin:0}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .bookkeeping-fields .aig-calendar-trigger :is(span,b){font:inherit!important;color:inherit!important}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .bookkeeping-fields .aig-calendar-trigger svg{width:18px;height:18px}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .bookkeeping-fields .aa-choice-caption{font:inherit!important}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .bookkeeping-fields .payable-field input{background:#f4faf7!important;border-color:#badbd0!important}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .bookkeeping-fields label>small{margin:0;color:#7b889c;font:400 11px/16px 'DM Sans',sans-serif}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .bookkeeping-fields label>strong{box-sizing:border-box;display:flex;align-items:center;height:40px;padding:9px 12px;border:1px solid #cfdee4;border-radius:10px;background:#f5f8f7;color:#172b3e;font:600 14px/20px 'DM Sans',sans-serif}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .bookkeeping-fields textarea{box-sizing:border-box;flex:none;width:100%;min-width:0;min-height:88px;margin:0;padding:10px 12px;border:1px solid #cfdee4;border-radius:10px!important;font:400 14px/20px 'DM Sans',sans-serif;resize:vertical;box-shadow:none!important}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .payment-control{box-sizing:border-box;min-width:0;width:100%;margin:0;padding:14px 16px 16px;border-radius:12px}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .payment-control legend{font:700 13px/18px 'DM Sans',sans-serif}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .payment-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .payment-buttons label{position:relative}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .payment-buttons span{box-sizing:border-box;min-height:40px;height:40px;padding:8px;border-radius:10px;font:600 12px/18px 'DM Sans',sans-serif;box-shadow:none}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .payment-buttons input:focus-visible+span{outline:2px solid #087f6c;outline-offset:2px}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .paid-amount{margin-top:14px!important}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .review-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:20px;padding-top:18px;border-top:1px solid #e2ebe7}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .review-actions>a{margin-right:auto}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .review-actions :is(a,button){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:40px;height:40px;margin-block:0;padding:9px 16px!important;border:1px solid #bcded5!important;border-radius:10px!important;background:#ffffffd9;color:#087c62;font:600 13px/20px 'DM Sans',sans-serif!important;white-space:nowrap;text-decoration:none!important;box-shadow:none!important}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .review-actions button.primary{background:#087f6c!important;color:#fff!important;border-color:#087f6c!important}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .review-actions :is(a,button):hover:not(:disabled){background:#edf8f3;border-color:#8bbdaf!important}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .review-actions button.primary:hover:not(:disabled){background:#076d5d!important}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .review-actions :is(a,button):focus-visible{outline:2px solid #087f6c;outline-offset:3px}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .review-actions .review-override{order:-1;flex-basis:100%;display:flex;align-items:center;gap:7px;margin:0;font:500 12px/18px 'DM Sans',sans-serif}
@media(max-width:700px){
 html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .bookkeeping-fields{grid-template-columns:minmax(0,1fr);gap:16px}
 html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .payment-buttons span{min-height:44px;height:44px;font-size:11px;padding:6px 3px}
 html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .payment-control{padding-inline:12px}
 html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .review-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .review-actions>a{margin-right:0}
 html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .review-actions :is(a,button){min-height:44px;height:44px;width:100%;padding-inline:10px!important;font-size:12px!important}
 html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .review-actions button.primary{grid-column:1/-1}
 html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-review .review-actions .review-override{grid-column:1/-1}
}

/* Email activity floats above its action; changing state never moves the toolbar. */
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar:has(.bookkeeping-intake-badge){margin-top:0}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-email-indicators{position:absolute;right:0;bottom:calc(100% + 6px);display:flex;align-items:center;justify-content:flex-end;gap:6px;width:max-content;max-width:calc(100vw - 30px);height:22px;pointer-events:none}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-email-indicators .bookkeeping-intake-badge{position:static;flex:none;box-sizing:border-box;height:22px;min-height:22px;max-width:none;pointer-events:auto}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-email-indicators .bookkeeping-email-progress{display:inline-flex;align-items:center;flex:none;gap:5px;box-sizing:border-box;height:22px;min-height:22px;margin:0;padding:3px 7px;border:1px solid #cbe5da;border-radius:999px;background:#edf7f1;color:#37715d;font:600 10px/1.3 'DM Sans',sans-serif;white-space:nowrap;box-shadow:none}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-email-indicators .bookkeeping-email-progress[hidden]{display:none}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-email-indicators .bookkeeping-email-spinner{box-sizing:border-box;width:11px;height:11px;border-width:1.5px}
@media(max-width:700px){
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-actionbar>[data-open-manual],html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-email-entry{margin-top:26px}
 html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-email-indicators .bookkeeping-email-progress{font-size:9px}
}

/* Invoice country picker uses local SVG flags in both its caption and options. */
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-fields .aa-choice:has([data-invoice-country]) .aa-choice-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:15px;min-width:20px;border:0;border-radius:2px;background:transparent;overflow:hidden}
html body.bizumno-ui.page-bookkeeping-invoice .bookkeeping-fields .aa-choice:has([data-invoice-country]) .aa-choice-icon img{display:block;width:20px;height:15px;object-fit:cover}
html body.bizumno-ui:is(.page-bookkeeping-invoice,.page-bookkeeping-incoming) .aa-choice-option .aa-choice-icon:has(img[src^="/assets/flags/"]){display:inline-flex;align-items:center;justify-content:center;width:20px;height:15px;min-width:20px;flex:0 0 20px;border:0;border-radius:2px;background:transparent;overflow:hidden}
html body.bizumno-ui:is(.page-bookkeeping-invoice,.page-bookkeeping-incoming) .aa-choice-option .aa-choice-icon img[src^="/assets/flags/"]{display:block;width:20px;height:15px;object-fit:cover}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-fields .aa-choice:has([data-invoice-country]) .aa-choice-icon:has(img){width:20px;height:15px;flex:0 0 20px;background:transparent}
html body.bizumno-ui.page-bookkeeping-incoming .bookkeeping-fields .aa-choice:has([data-invoice-country]) .aa-choice-icon img{width:20px;height:15px;object-fit:cover}
