
    * { box-sizing: border-box; }
    body { margin: 0; font-family: Arial, sans-serif; background: #f8f5ff; color: #310064; }
    header { background: #310064; color: white; padding: 20px 28px; display: flex; align-items: center; gap: 20px; }
    .logo { background: white; border-radius: 12px; width: 70px; height: 70px; display: grid; place-items: center; color: #310064; font-weight: bold; }
    header h1 { font-size: 24px; margin: 0 0 8px; }
    header p { margin: 0; }
    .layout { display: flex; min-height: calc(100vh - 110px); }
    nav { background: #310064; color: white; width: 260px; padding: 20px; flex-shrink: 0; }
    nav button { display: block; width: 100%; text-align: left; padding: 13px; margin-bottom: 6px; background: transparent; color: white; border: 0; border-radius: 9px; cursor: pointer; font-size: 16px; }
    nav button:hover, nav button.active { background: #9845ef; }
    main { flex: 1; padding: 30px; min-width: 0; }
    h2 { margin-top: 0; }
    .panel { background: white; border: 1px solid #e5d8f5; border-radius: 15px; padding: 24px; box-shadow: 0 3px 12px #31006412; }
    .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 15px; }
    .item { padding: 22px; border: 1px solid #dfcef4; border-radius: 12px; background: #faf7ff; color: #4a008c; font-size: 16px; text-align: left; cursor: pointer; }
    .item:hover { background: #eedcff; }
    #detail { margin-top: 20px; }
    label { display: block; margin: 14px 0; font-weight: bold; }
    input { display: block; width: 100%; padding: 12px; margin-top: 6px; border: 1px solid #cbb5e5; border-radius: 7px; }
    .save { padding: 12px 22px; background: #6500ba; color: white; border: 0; border-radius: 8px; cursor: pointer; }
    @media(max-width: 700px) { .layout { flex-direction: column; } nav { width: 100%; } header h1 { font-size: 18px; } }

[hidden]{display:none!important}button,input,select{font:inherit}button:disabled{cursor:wait;opacity:.6}.logo{object-fit:contain;padding:5px;flex-shrink:0}header .identity{flex:1}header .save{background:#9845ef}.login{max-width:470px;margin:48px auto;padding:28px}.login .logo{width:90px;height:90px;margin:auto}select{padding:10px;border:1px solid #cbb5e5;border-radius:7px;background:white;max-width:100%}.companybar{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:24px}.companybar label{margin:0}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.secondary{border:1px solid #cbb5e5;border-radius:8px;background:white;color:#6500ba;padding:11px;cursor:pointer}.danger{color:#ab2137}small,.muted{color:#6f6180}table{width:100%;border-collapse:collapse;text-align:left}td,th{padding:12px;border-bottom:1px solid #eadff5;vertical-align:top}.tablewrap{overflow:auto}.error{background:#fff0f1;color:#9e1731;padding:14px;border-radius:8px}.notice{background:#efe5ff;padding:14px;border-radius:8px}.formgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 18px}.panel+.panel{margin-top:20px}form .grid{margin-bottom:20px}.check{display:flex;gap:9px;align-items:center;font-weight:normal;margin:9px 0}.check input{width:auto;margin:0}fieldset{border:1px solid #dfcef4;border-radius:9px;margin:14px 0;padding:16px}.kpi strong{display:block;font-size:28px;margin-top:12px}.tabbar{display:flex;gap:12px;margin:0 0 20px}#globalStatus:empty{display:none}#globalStatus{position:sticky;top:0;z-index:2;margin:12px 28px}footer{padding:20px;font-size:13px;text-align:center}h3{margin-top:0}#userInfo{font-size:14px;margin-bottom:6px}a{color:#6500ba}@media(max-width:700px){main{padding:18px}header{padding:16px;flex-wrap:wrap}.login{margin:20px 14px}nav{display:flex;overflow:auto;padding:10px}nav button{min-width:160px;margin:0}td,th{padding:10px}}@media print{nav,.companybar,.actions,form,header button,#globalStatus,footer{display:none!important}body{background:white;color:black}main{padding:0}.panel{box-shadow:none;border:0}header{background:white;color:black}.layout{display:block}}

.brand-banner{background:#330044;padding:12px 24px;display:flex;justify-content:center}.brand-logo{display:block;width:min(100%,540px);height:auto;object-fit:contain}@media(max-width:700px){.brand-banner{padding:10px 18px}.brand-logo{max-width:340px}}


/* Login e primeiro acesso */
.auth-logo { display:none; }
body:has(#login:not([hidden]),#firstAccess:not([hidden])) {
 min-height:100vh;
 padding:clamp(24px,5vh,62px) 16px;
 background:radial-gradient(ellipse at 0 0,#8230bc 0 7%,transparent 7.2%),
  radial-gradient(ellipse at 100% 100%,#9140c6 0 11%,transparent 11.2%),linear-gradient(150deg,#fbf7ff,#ede0fc);
}
body:has(#login:not([hidden]),#firstAccess:not([hidden])) #topbar { background:transparent; }
body:has(#login:not([hidden]),#firstAccess:not([hidden])) .brand-banner {background:transparent;padding:0;}
body:has(#login:not([hidden]),#firstAccess:not([hidden])) .brand-logo,
body:has(#login:not([hidden]),#firstAccess:not([hidden])) #topbar header,
body:has(#login:not([hidden]),#firstAccess:not([hidden])) footer {display:none;}
body:has(#login:not([hidden]),#firstAccess:not([hidden])) .auth-logo {
 display:block;width:min(100%,300px);height:auto;mix-blend-mode:multiply;
}
body:has(#login:not([hidden]),#firstAccess:not([hidden])) .login {
 max-width:540px;margin:24px auto 0;padding:clamp(22px,5vw,40px);border-radius:20px;
 box-shadow:0 16px 36px #3f126b20;
}
.login h2 {font-size:clamp(24px,4vw,34px);margin:0 0 8px;}
.login h2 + p {margin:0 0 23px;color:#675573;}
.login .save {width:100%;margin-top:17px;font-weight:700;}
.login-password {display:flex;align-items:center;gap:8px;}
.login-password input {flex:1;min-width:0;margin:0;}
.login-password .secondary {white-space:nowrap;}
.first-access-logout {margin-top:12px;width:100%;}
.service-editor{margin-top:24px}.fiscal-control{padding:0 0 16px;min-width:0}.fiscal-control input[readonly]{background:#faf7ff}.fiscal-control .actions{gap:6px}.fiscal-control button{font-size:13px;padding:8px}.service-city{border-bottom:1px solid #dfcef4;padding:8px 0 18px;margin-bottom:18px}.fiscal-picker{width:min(1050px,94vw);max-height:88vh;border:1px solid #cbb5e5;border-radius:14px;padding:24px;color:#310064}.fiscal-picker::backdrop{background:#16002680}.fiscal-picker-results{max-height:55vh;overflow:auto;margin:18px 0}.save-more{position:relative}.save-more summary{cursor:pointer;padding:12px;background:#6500ba;color:white;border-radius:8px}.save-more[open] button{position:absolute;bottom:48px;left:0;min-width:190px;background:white;z-index:3}.service-editor fieldset:disabled{opacity:.85}

.fiscal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.fiscal-control textarea{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #cbb5e5;border-radius:7px;background:#faf7ff;font:inherit;resize:vertical}.save-more summary{list-style:none}.save-more summary::-webkit-details-marker{display:none}.service-editor fieldset{min-width:0}@media(max-width:700px){.fiscal-grid{grid-template-columns:minmax(0,1fr)}}

.sale-editor{margin-top:24px}.sale-editor fieldset{min-width:0}.sale-item,.sale-installment{padding:18px 0;border-bottom:1px solid #eadff5}.sale-item:last-child,.sale-installment:last-child{margin-bottom:18px}.sale-installment output{display:block;margin-top:18px}.sale-editor select{width:100%;display:block;margin-top:6px}

#expenseForm fieldset,#financialAccountForm fieldset{min-width:0;margin-bottom:20px;border:1px solid #dfcef4;border-radius:10px;padding:20px}#expenseForm textarea{display:block;width:100%;padding:12px;border:1px solid #cbb5e5;border-radius:8px;font:inherit}#expenseForm select,#financialAccountForm select{display:block;width:100%;margin-top:6px}#expenseForm .check input,#financialAccountForm .check input{width:auto}.expense-parcel,.expense-allocation{padding:12px 0;border-bottom:1px solid #eadff5}.expense-parcel input,.expense-allocation input{min-width:0}.kpi{padding:12px}.kpi strong{display:block;font-size:1.2em;margin-top:8px}@media print{nav,header,.brand-banner,.companybar,.actions,form,button,footer,#globalStatus{display:none!important}.layout,main{display:block;width:100%;padding:0}.panel{break-inside:auto;box-shadow:none;border:0}.tablewrap{overflow:visible}table{font-size:10px}}

/* Identidade SYRUS em fundos claro e escuro. */
.brand-banner { background:#370643; }
.brand-logo { width:min(100%,300px); border-radius:8px; }
.syrus-sale-heading { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.syrus-sale-heading img { width:112px; height:auto; }
.syrus-sale-heading h2 { margin:0; }
.sale-invoice { border-top:3px solid #652085; }
#reconciliationReview { border:1px solid #d5bfde; border-radius:12px; padding:24px; width:min(480px,94vw); }
#reconciliationReview::backdrop { background:rgba(40,12,52,.4); }

.finance-section-head,.finance-catalog-controls { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; }
.finance-section-head h1 { font-size:1.55rem; margin:0; }
.finance-catalog-controls { justify-content:flex-start; margin:15px 0; }
.finance-catalog-controls label { min-width:210px; }
.finance-tabs,.finance-metrics { display:flex; gap:7px; margin:10px 0; flex-wrap:wrap; }
.finance-tabs button,.finance-metrics button { flex:1; }
.finance-tabs [aria-pressed=true],.finance-metrics [aria-pressed=true] { background:#efe0f7; border-color:#a761bf; color:#4d096d; }
.finance-metrics strong { display:block; margin-top:3px; }
.finance-status { border-radius:20px; background:#f2eef5; padding:4px 8px; color:#544761; white-space:nowrap; }
.finance-status.is-active { background:#e7f4e8; color:#245e30; }
.finance-code { color:#642280; font-weight:650; }
.finance-row-actions { margin:0; gap:4px; }
.finance-row-actions button,.finance-tree-toggle { padding:3px 7px; }
.finance-depth-1 { text-indent:1rem; }.finance-depth-2 { text-indent:2rem; }.finance-depth-3 { text-indent:3rem; }
.finance-depth-4,.finance-depth-5,.finance-depth-6 { text-indent:4rem; }
.finance-dialog { border:1px solid #d9c6e3; border-radius:14px; width:min(700px,95vw); padding:0; }
.finance-dialog::backdrop { background:rgba(31,7,43,.45); }
.finance-dialog-head { display:flex; align-items:center; gap:12px; padding:12px 20px; background:#370643; color:white; margin:0; border-radius:0; }
.finance-dialog-head img { width:110px; }.finance-dialog-head h2 { margin:0; font-size:1.2rem; }
.finance-dialog-content { padding:15px; }.finance-dialog-content fieldset { margin:0 0 12px; }
.finance-dialog-footer { display:flex; justify-content:flex-end; gap:8px; padding:14px; border-top:1px solid #ded0e8; }
.product-sale-item,.product-installment {
 border:1px solid #eadff5; border-radius:10px; background:#faf7fc; padding:10px 12px; margin:10px 0;
}
.product-installment>strong { grid-column:1/-1; }
.product-sale-item .actions { align-self:end; padding-bottom:9px; }
.service-sale-item-fields { grid-template-columns:minmax(0,1.45fr) minmax(0,.75fr) minmax(0,1.65fr) minmax(0,.7fr) minmax(0,.9fr); }
.service-sale-item-fields label { min-width:0; }
@media(max-width:1100px) {
 .service-sale-item-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:560px) {
 .service-sale-item-fields { grid-template-columns:1fr; }
}
#treatPurchase [data-purchase-line] select { min-width:220px; }
#treatPurchase [data-create-product] { margin-top:5px; }

body:has(#workspace:not([hidden])) #topbar {
 display:flex; justify-content:space-between; background:#370643; min-height:68px;
}
body:has(#workspace:not([hidden])) #topbar .brand-banner { padding:8px 20px; align-items:center; }
body:has(#workspace:not([hidden])) #topbar .brand-logo { width:150px; }
body:has(#workspace:not([hidden])) #topbar header { background:transparent; padding:9px 20px; }
#topbar #account { display:flex; align-items:center; gap:14px; }
#topbar #userInfo { margin:0; }
#topbar .save { background:#552267; padding:9px 12px; }
#topbar .save:hover { background:#713486; }
#navigation {
 background:#370643; width:238px; padding:14px 12px; border-right:1px solid #602271;
}
.syrus-menu-top { display:grid; gap:5px; width:100%; align-content:start; }
#navigation button {
 font-size:0.9rem; min-width:0; margin:0; padding:10px 12px; border-radius:8px; line-height:1.35;
}
.syrus-menu-top > button,.syrus-menu-toggle { font-weight:700; }
.syrus-menu-toggle { display:flex; align-items:center; justify-content:space-between; }
#navigation .syrus-menu-toggle::after {
 content:""; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor;
 transform:rotate(-45deg); margin-right:2px; transition:transform .15s ease;
}
#navigation .syrus-menu-toggle[aria-expanded=true]::after { transform:rotate(45deg); }
#navigation button:hover,#navigation [data-current-module],#navigation [aria-expanded=true] { background:#5a1d6b; }
#navigation [aria-current=page] { background:#f0dff8; color:#3b074f; font-weight:700; }
#navigation button:focus-visible,#mobileMenuToggle:focus-visible { outline:2px solid #e9b7ff; outline-offset:2px; }
.syrus-menu-links { margin:4px 0 10px 9px; padding:0 0 0 8px; border-left:1px solid #815093; }
.syrus-menu-section + .syrus-menu-section { margin-top:8px; padding-top:5px; border-top:1px solid #663879; }
.syrus-menu-section p { margin:5px 9px 3px; color:#e6c9f0; font-size:.73rem; font-weight:700; }
.syrus-menu-links button { text-wrap:pretty; }
#mobileMenuToggle { display:none; }
@media(max-width:700px){
 body:has(#workspace:not([hidden])) #topbar .brand-banner { padding:8px 12px; }
 body:has(#workspace:not([hidden])) #topbar .brand-logo { width:108px; }
 body:has(#workspace:not([hidden])) #topbar header { padding:8px 12px 8px 0; }
 #topbar #account { flex-direction:column; align-items:flex-end; gap:4px; }
 #topbar #userInfo { font-size:.72rem; }
 #topbar .save { font-size:.75rem; padding:6px 9px; }
 #mobileMenuToggle {
  display:block; width:100%; background:#482052; color:white; border:0; text-align:left;
  cursor:pointer; font-weight:700; padding:12px 17px;
 }
 #navigation { display:block; width:100%; border-right:0; }
 #navigation[data-mobile-open=false] { display:none; }
}
@media print { #mobileMenuToggle { display:none!important; } }

.purchase-identity,.purchase-totals { display:flex; flex-wrap:wrap; align-items:center; gap:10px 22px; }
.purchase-identity { background:#f4eaf9; border-radius:10px; padding:12px 15px; }
.purchase-steps { display:flex; flex-wrap:wrap; gap:10px; padding:0; list-style:none; }
.purchase-steps li { border-radius:8px; padding:7px 12px; background:#f6f0f8; }
.purchase-steps [aria-current=step] { color:white; background:#652085; font-weight:700; }
.purchase-natures { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr)); gap:8px; }
.purchase-natures label { border:1px solid #d9c6e3; border-radius:9px; padding:10px; margin:0; }
.purchase-natures label:has(:checked) { border-color:#652085; background:#f4eaf9; }
.purchase-natures input,.purchase-link-dialog input[type=radio] { width:auto; display:inline; margin:0 6px 0 0; accent-color:#652085; }
.purchase-natures small,#treatPurchase [data-suggested] { display:block; margin-top:6px; }
.purchase-link-dialog { width:min(860px,95vw); max-height:90vh; }
.purchase-totals div { padding:6px 0; }
.purchase-totals dd { font-weight:700; margin:4px 0 0; }
.purchase-notes { white-space:pre-wrap; }
.purchase-edit { margin:16px 0; }
.purchase-edit summary { cursor:pointer; font-weight:700; }
#treatPurchase fieldset,#purchaseDetails fieldset { min-width:0; }

.plus-title { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; padding:0 0 14px; border-bottom:1px solid #ecdfef; }
.plus-title h2 { margin:0 0 5px; color:#370643; }
.plus-title p { margin:0; color:#6f6180; }
.plus-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:10px 0 18px; }
.plus-filters button { text-align:left; }
.plus-filters strong { display:block; font-size:1.5rem; margin-top:5px; }
.plus-filters [aria-pressed=true] { background:#f1e1f7; border-color:#8747a0; }
.plus-pagination { justify-content:flex-end; margin-top:14px; }
@media(max-width:700px){.plus-filters { grid-template-columns:minmax(0,1fr); }}

.fiscal-searchbar {
 display:flex;
 flex-wrap:wrap;
 align-items:flex-end;
 gap:12px 8px;
 margin:24px 0 16px;
}
.fiscal-searchbar-filters,.fiscal-searchbar-actions {
 display:flex;
 flex-wrap:wrap;
 align-items:flex-end;
 gap:8px;
 min-width:0;
}
.fiscal-searchbar label {
 display:grid;
 gap:6px;
 flex:1 0 176px;
 min-width:0;
 margin:0;
 font-size:.9375rem;
}
.fiscal-searchbar .fiscal-searchbar-query { flex-basis:252px; }
.fiscal-searchbar-filters { flex:0 1 436px; }
.fiscal-searchbar-filters:has(select) { flex-basis:620px; }
.fiscal-searchbar :is(input,select,button) {
 min-height:46px;
 border-radius:9px;
}
.fiscal-searchbar :is(input,select) {
 width:100%;
 min-width:0;
 margin:0;
}
.fiscal-searchbar button {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:8px;
 padding:0 14px;
}
.fiscal-searchbar .secondary { border-color:#6500ba; }
.fiscal-searchbar .secondary:hover { background:#f8f1ff; }
.fiscal-searchbar .save { min-width:116px; font-weight:700; }
.fiscal-search-progress,.expense-file-progress {
 margin:12px 0 16px;
 padding:12px 14px;
 border:1px solid #d9e8ff;
 border-radius:8px;
 background:#f5f9ff;
 color:#173d73;
}
.fiscal-search-progress p,.expense-file-progress p { margin:0; font-size:.9rem; }
.fiscal-search-progress-track,.expense-file-progress-track {
 height:8px;
 margin-top:8px;
 border-radius:999px;
 overflow:hidden;
 background:#ddeaff;
}
.fiscal-search-progress-track span,.expense-file-progress-track span {
 display:block;
 height:100%;
 width:32%;
 border-radius:inherit;
 background:#1672df;
 animation:fiscal-search-slide 1.5s ease-in-out infinite;
}
.fiscal-search-progress[data-state="done"] .fiscal-search-progress-track span { width:100%; animation:none; }
.fiscal-search-progress[data-state="failed"] { border-color:#eed1d7; background:#fff6f7; color:#812c40; }
@keyframes fiscal-search-slide {
 from { transform:translateX(-100%); }
 to { transform:translateX(313%); }
}
@media (prefers-reduced-motion:reduce) {
 .fiscal-search-progress-track span,.expense-file-progress-track span { animation:none; }
}
.portal-search img { object-fit:contain; flex-shrink:0; }
.expense-allocation-block { margin-top:12px; }
.expense-allocation-tax { display:block; font-size:.9rem; }
.formgrid.expense-allocation { align-items:end; }
#partyEditor { scroll-margin-top:12px; }
.party-address-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr)); }
.party-classifications-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr)); }
.party-classifications-grid>div>label { margin-bottom:6px; }
.party-classifications-grid select { width:100%; min-height:44px; }
.party-classifications-client { grid-template-columns:repeat(4,minmax(0,1fr)); }
.party-classifications-client .party-secondary-toggle { grid-column:2 / -1; color:#6500a6; }
.party-secondary-classifications { margin-top:12px; }
.party-secondary-classifications>div:first-child { grid-column:2; }
@media(max-width:850px) {
 .party-classifications-client { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .party-classifications-client .party-secondary-toggle { grid-column:1 / -1; }
 .party-secondary-classifications>div:first-child { grid-column:auto; }
}
@media(max-width:475px) {
 .party-classifications-client { grid-template-columns:1fr; }
}
.expense-allocation-total { display:block; margin:12px 0; text-align:right; font-weight:700; }
.expense-list th { background:#f2eafa; }
.expense-list td { vertical-align:middle; }
.expense-list th,.expense-list td { padding:9px 11px; }
.expense-list input[type=checkbox] { width:auto; margin:0; accent-color:#6500ba; }
.expense-list-filters { margin:15px 0 12px; }
.expense-filter-line { display:flex; flex-wrap:wrap; gap:10px; align-items:end; position:relative; }
.expense-filter-line>div { flex:0 1 270px; min-width:0; }
.expense-filter-line>label { flex:0 1 195px; }
.expense-filter-line label { display:block; margin:0; }
.expense-filter-line select { display:block; width:100%; margin-top:6px; }
.expense-filter-combo { display:flex; align-items:stretch; margin-top:6px; }
.expense-filter-combo input { flex:1; min-width:0; margin:0; border-radius:0; }
.expense-filter-combo input:first-child { border-radius:8px 0 0 8px; }
.expense-filter-combo button { min-width:34px; padding:8px 10px; }
.expense-filter-combo button:first-child { border-radius:8px 0 0 8px; border-right:0; }
.expense-filter-combo button:last-child { border-radius:0 8px 8px 0; border-left:0; }
.expense-period-field { flex:1; min-width:0; position:relative; }
.expense-period-field input { width:100%; border-radius:0; }
.expense-period-field input:has(+ .expense-period-placeholder):not(:focus) { color:transparent; }
.expense-period-placeholder { position:absolute; left:10px; top:50%; transform:translateY(-50%); font-weight:600; pointer-events:none; }
.expense-period-field input:focus+.expense-period-placeholder { display:none; }
.expense-filter-combo input,.expense-filter-line>label select,.expense-more-filters summary { height:44px; box-sizing:border-box; }
.expense-more-filters summary { display:inline-flex; gap:9px; align-items:center; list-style:none; }
.expense-more-filters summary::-webkit-details-marker { display:none; }
.expense-more-filters[open] summary .syrus-action-chevron { margin-top:3px; transform:rotate(225deg); }
.expense-more-filters>.formgrid { grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); position:absolute; z-index:2; left:0; width:min(100%,760px); box-sizing:border-box; align-items:end; padding:8px 12px; gap:4px 10px; border:1px solid #dfcef4; border-radius:9px; background:#fff; box-shadow:0 8px 24px #2c134a19; }
.expense-clear-filters { padding:3px 0; margin-top:7px; background:none; border:0; color:#6500ba; cursor:pointer; }
.expense-list .expense-overdue td:first-child { box-shadow:inset 3px 0 #cb2555; }
.expense-list tr:has(.expense-actions-toggle[aria-expanded="true"]) td { background:#f1e6fc; }
.grid.expense-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:0; margin:0; border:1px solid #dfcef4; border-radius:8px 8px 0 0; overflow:hidden; }
.expense-summary .kpi { text-align:center; padding:9px 7px; border-right:1px solid #eee4f7; border-bottom:1px solid #eee4f7; }
.expense-summary .kpi:is(:nth-child(1),:nth-child(2)) strong { color:#aa2142; }
.expense-summary .kpi:nth-child(3) strong { color:#164f9e; }
.expense-summary .kpi:nth-child(4) strong { color:#17613c; }
.expense-summary .kpi:last-child { background:#f1e6fc; }
.expense-list-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:7px 10px; background:#faf6ff; border-inline:1px solid #dfcef4; color:#514260; font-size:.85rem; }
.expense-list-toolbar .syrus-menu-toggle { padding:5px 8px; }
.expense-list-toolbar .syrus-menu-toggle:disabled { cursor:default; }
.expense-list .expense-date,.expense-list .expense-amount { white-space:nowrap; }
.expense-list .expense-amount { text-align:right; }
.expense-sort-heading { display:flex; gap:5px; align-items:center; justify-content:space-between; white-space:nowrap; }
.expense-row-meta { display:flex; flex-wrap:wrap; gap:4px 10px; margin-top:4px; color:#5b4b6c; font-size:.8rem; }
.expense-row-meta span:empty { display:none; }
.expense-state { display:inline-flex; box-sizing:border-box; min-width:7.5em; justify-content:center; border-radius:6px; padding:4px 10px; font-size:.82rem; font-weight:700; white-space:nowrap; }
.expense-state-paid { background:#e1f7e9; color:#185a36; }
.expense-state-open { background:#ffeb79; color:#593b00; }
.expense-state-provisioned { background:#ffc17c; color:#5a2c00; }
.expense-state-note { display:block; margin:3px 0 0 4px; }
.expense-row-actions { display:flex; gap:6px; align-items:center; justify-content:flex-end; }
.expense-list .expense-actions-column { position:sticky; right:0; z-index:1; text-align:right; }
.expense-list td.expense-actions-column { background:#fff; }
.syrus-menu-toggle { display:inline-flex; gap:9px; align-items:center; white-space:nowrap; }
.expense-actions-toggle,.expense-attachment-link { padding:6px 9px; white-space:nowrap; }
.syrus-action-chevron { width:6px; height:6px; margin-top:-3px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.syrus-menu-toggle[aria-expanded="true"] .syrus-action-chevron { margin-top:3px; transform:rotate(225deg); }
.syrus-action-menu {
 position:fixed; inset:auto; margin:0; box-sizing:border-box;
 min-width:205px; max-width:calc(100vw - 8px); max-height:calc(100dvh - 8px); overflow:auto;
 padding:5px; border:1px solid #dfcef4; border-radius:9px;
 background:white; color:#36005f; box-shadow:0 10px 26px #2c134a26;
}
.syrus-action-menu button {
 display:block; width:100%; text-align:left; padding:8px 10px; border:0;
 border-radius:5px; background:transparent; color:inherit; cursor:pointer;
}
.syrus-action-menu button:hover,.syrus-action-menu button:focus-visible { background:#f2eafa; }
.syrus-action-menu button:is([data-expense-action="delete"],[data-delete-note],[data-archive-action="delete"],[data-sale-delete]) { color:#9b2146; }
.syrus-action-menu button:has(.syrus-action-icon) { display:flex; align-items:center; gap:10px; }
.syrus-action-icon { flex:0 0 18px; text-align:center; font-size:1.1em; line-height:1; color:#6500ba; }
.syrus-action-menu button:is([data-expense-action="delete"],[data-delete-note]) .syrus-action-icon { color:inherit; }
@media(max-width:600px){
 .fiscal-searchbar-filters,.fiscal-searchbar-actions { flex:1 1 100%; }
 .fiscal-searchbar label,.fiscal-searchbar .fiscal-searchbar-query { flex-basis:100%; }
 .fiscal-searchbar-actions button { flex:1 0 auto; }
}

.purchase-sort-heading,.purchase-sort-indicator { display:inline-flex; align-items:center; }
.purchase-sort-heading { gap:5px; white-space:nowrap; }
.purchase-sort {
 display:inline-grid; place-items:center; padding:0; min-width:18px; min-height:24px; border:0;
 background:transparent; color:#756486; cursor:pointer;
}
.purchase-sort.sort-active { color:#6500ba; font-weight:900; text-decoration:underline; }
.purchase-sort:hover { text-decoration:underline; }
.purchase-sort:focus-visible { outline:2px solid #6500ba; outline-offset:1px; border-radius:3px; }

.fiscal-note-actions,.fiscal-actions-heading { text-align:right; white-space:nowrap; }
.fiscal-note-actions .syrus-menu-toggle { padding:6px 10px; }
.issued-status {display:inline-flex;justify-content:center;min-width:10rem;padding:5px 12px;border-radius:8px;font-size:.9rem;font-weight:700;white-space:nowrap;}
.issued-status--waiting {background:#fff0bd;color:#754700;}
.issued-status--issued {background:#dcf5df;color:#176031;}
.issued-status--test {background:#eee3fa;color:#562577;}
.issued-status--cancelled,.issued-status--failed {background:#fce2e5;color:#9c2037;}
.fiscal-cancelled { display:inline-block; margin-left:8px; padding:3px 8px; border-radius:999px; background:#fde7ec; color:#a41638; font-size:.85rem; font-weight:700; white-space:nowrap; }
.fiscal-xml-preview pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.service-link-dialog { width:min(860px,95vw); }
.service-note-amounts { display:flex; flex-wrap:wrap; gap:12px 24px; }
.service-note-amounts dd { margin:4px 0 0; font-weight:650; }

.service-provisions input[type=radio] { width:auto; margin:0; }
.purchase-line-options { margin-top:12px; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); }

.expense-note-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.expense-type-choice { display:grid; gap:8px; padding:12px 15px; margin:0 0 14px; border:1px solid #dfcef4; border-radius:9px; background:#faf6ff; }
#expenseForm .expense-type-choice label { display:flex; gap:7px; align-items:center; margin:0; }
#expenseForm .expense-type-choice input { margin:0; accent-color:#6500ba; }
.expense-type-dot { width:11px; height:11px; border-radius:50%; }
.expense-type-real { background:#f6cd00; }
.expense-type-provisioned { background:#f88c23; }
.expense-type-choice small:empty { display:none; }
@media(max-width:760px){.expense-note-heading{flex-wrap:wrap;}}
.darf-action { flex-shrink:0; padding:0; overflow:hidden; border:1px solid #14356c; border-radius:6px; background:#062357; cursor:pointer; }
.darf-action img { display:block; }
#draftRetentions li { margin-bottom:8px; }
#draftRetentions .secondary { margin-inline-start:8px; padding:4px 8px; }

/* Contas a Pagar */
.payables-nav-rail,.payables-wordmark { display:none; }
body:has(.payables-screen) { background:#f2f1f9; }
body:has(.payables-screen) #topbar:has(#payablesTop:not([hidden])) {
 min-height:58px; background:linear-gradient(110deg,#571064,#4b0a58 65%,#3d084d);
}
body:has(.payables-screen) #topbar:has(#payablesTop:not([hidden])) .brand-banner {
 background:transparent; width:282px; flex:none; justify-content:flex-start; padding:4px 20px 4px 65px;
}
body:has(.payables-screen) #topbar:has(#payablesTop:not([hidden])) .brand-logo { display:none; }
body:has(.payables-screen) .payables-wordmark { display:block; color:#fff; font-size:47px; line-height:1; font-weight:800; letter-spacing:-1px; }
body:has(.payables-screen) #topbar:has(#payablesTop:not([hidden])) header {
 position:relative; flex:1; min-width:0; gap:18px; justify-content:space-between; padding:8px 18px;
}
#payablesTop { flex:1; min-width:0; display:flex; justify-content:space-between; align-items:center; gap:16px; }
#payablesTop h2 { display:flex; align-items:center; gap:11px; margin:0; color:#fff; font-size:clamp(1.2rem,2vw,1.75rem); }
.payables-heading-icon { display:grid; flex:none; width:23px; gap:2px; }
.payables-heading-icon i { display:block; width:100%; height:7px; border:2px solid currentColor; border-radius:50%; }
.payables-top-actions { display:flex; gap:12px; align-items:center; }
#payablesTop button:not(.syrus-action-menu button),#payablesCompany>summary {
 border:0; border-radius:6px; min-height:38px; color:white; font-size:.875rem; font-weight:700;
}
#focusExpenseSearch {
 display:flex; align-items:center; gap:10px; width:185px; padding:8px 15px; background:#ffffff17; cursor:pointer;
}
#focusExpenseSearch:hover { background:#ffffff28; }
.payables-search-icon { display:inline-block; flex:0 0 auto; width:14px; height:14px; border:1.8px solid; border-radius:50%; position:relative; }
.payables-search-icon::after { content:""; width:7px; border-top:1.8px solid; position:absolute; top:11px; left:9px; transform:rotate(45deg); }
.client-toolbar { margin-bottom:12px; }
.client-toolbar input { width:min(240px,100%); margin:0; }
.client-toolbar .secondary { display:inline-flex; align-items:center; gap:10px; }
body:has(.payables-screen) #topbar:has(#payablesTop:not([hidden])) #newExpenseMenuButton { background:#8600a3; padding:8px 14px; }
body:has(.payables-screen) #topbar:has(#payablesTop:not([hidden])) #newExpenseMenuButton:hover { background:#9a0ab7; }
#payablesCompany>summary { display:flex; align-items:center; gap:12px; list-style:none; cursor:pointer; padding:8px 3px; }
#payablesCompany>summary::-webkit-details-marker { display:none; }
#payablesCompanyName { max-width:190px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-transform:uppercase; }
#payablesCompanyPanel {
 position:absolute; z-index:4; right:14px; top:calc(100% - 1px); width:min(430px,calc(100vw - 28px)); padding:14px;
 background:#fff; color:#3b074f; border:1px solid #e3d5ed; border-radius:8px; box-shadow:0 10px 28px #2c134a28;
}
#payablesCompanyPanel .companybar { margin:0 0 12px; gap:8px 12px; align-items:flex-start; }
#payablesCompanyPanel #account { flex-direction:column; align-items:flex-start; gap:8px; border-top:1px solid #e3d5ed; padding-top:12px; }

body:has(.payables-screen) #workspace { min-height:calc(100vh - 58px); }
body:has(.payables-screen) #workspace>main { padding:0 8px 12px; }
body:has(.payables-screen) #navigation {
 display:flex; gap:8px; align-items:stretch; width:282px; padding:0 0 0 0;
 background:linear-gradient(180deg,#370640,#35063e 68%,#4a0d52); border-right-color:#62226b;
}
body:has(.payables-screen) .payables-nav-rail {
 display:flex; width:50px; flex:none; flex-direction:column; gap:9px; padding:12px 0;
 background:linear-gradient(180deg,#591367,#43054e); border-right:1px solid #762b7a;
}
body:has(.payables-screen) #navigation .payables-nav-rail button {
 padding:7px 0; border-radius:0 8px 8px 0; text-align:center; font-size:1.35rem;
}
body:has(.payables-screen) .payables-nav-rail button[aria-pressed=true] { background:#850b99; }
body:has(.payables-screen) .syrus-menu-top { gap:3px; padding-top:9px; }
body:has(.payables-screen) .syrus-menu-top>.syrus-menu-group:has([data-menu-toggle="finance"]) { order:-1; }
body:has(.payables-screen) #navigation .syrus-menu-links { margin:4px 0 8px; padding:0; border:0; }
body:has(.payables-screen) #navigation .syrus-menu-links button { padding:8px 16px; border-radius:0; }
body:has(.payables-screen) #navigation [aria-current=page] { background:#d899e1; color:#26082f; }
body:has(.payables-screen) #navigation [data-menu-toggle=finance] { border-radius:6px 0 0 6px; }

.payables-screen { color:#18141d; font-size:14px; }
.payables-shortcuts {
 display:flex; flex-wrap:wrap; gap:8px 22px; align-items:center; min-height:48px;
 padding:6px 15px; background:#fff; border:1px solid #eeebf5; border-radius:6px;
}
.payables-shortcuts button { border:0; background:transparent; cursor:pointer; color:inherit; padding:6px; font-weight:600; }
.payables-shortcuts button:hover { background:#f4eafa; border-radius:5px; }
.payables-shortcuts span { color:#7900b0; margin-right:9px; font-size:1.2em; }
#entryEditor { scroll-margin-top:12px; }
#emptyReceiptActions p { margin:8px 12px; }
.payables-list-surface { margin-top:3px; padding:0 10px 10px; border:1px solid #efecf5; border-radius:6px; background:#fff; }
.payables-screen .expense-list-filters { margin:13px 0 10px; }
.payables-screen .expense-filter-line { gap:9px 16px; }
.payables-screen .expense-filter-line>div:first-child { flex-basis:278px; }
.payables-screen .expense-filter-line>div:nth-child(2) { flex-basis:242px; }
.payables-screen .expense-filter-line label { font-weight:600; }
.payables-screen .expense-filter-line input,.payables-screen .expense-filter-line select { color:#20182a; border-color:#cdc4dc; }
.payables-screen .expense-filter-line select { background:#fbfaff; }
.payables-screen .expense-filter-combo input,.payables-screen .expense-filter-line>label select,.payables-screen .expense-more-filters summary { height:41px; }
.payables-screen .expense-filter-combo button { min-width:39px; border-color:#cdc4dc; background:#f4eef9; }
.payables-screen .expense-filter-combo [data-expense-month] { font-size:1.65rem; line-height:1; padding:0; }
.payables-screen .expense-period-field input { background:#f7f2fc; }
.payables-screen .expense-period-field input:not(:focus) { color:transparent; }
.payables-screen .expense-period-field input:not(:focus)::-webkit-calendar-picker-indicator { opacity:0; }
.payables-screen .expense-period-placeholder {
 display:flex; gap:10px; align-items:center; justify-content:center; inset:0; transform:none; color:#6500a4;
 font-weight:700; font-size:.94rem;
}
.payables-screen .expense-period-field input:focus+.expense-period-placeholder { display:none; }
.payables-screen .expense-more-filters summary { border-color:#7900bc; color:#6500a4; background:#f8f1fc; font-weight:700; }
.payables-screen .expense-clear-filters { display:inline-flex; gap:6px; align-items:center; font-weight:600; }
.payables-screen .expense-clear-filters svg { flex:0 0 14px; width:14px; height:14px; }
.payables-screen .expense-summary { border-color:#dcd7e9; border-radius:3px 3px 0 0; }
.payables-screen .expense-summary .kpi { border-color:#ded9ea; font-weight:700; padding:10px 7px; }
.payables-screen .expense-summary .kpi strong { font-size:1.35rem; margin-top:5px; }
.payables-screen .expense-summary .kpi:is(:nth-child(1),:nth-child(2)) strong { color:#c81921; }
.payables-screen .expense-summary .kpi:nth-child(3) strong { color:#142cca; }
.payables-screen .expense-summary .kpi:nth-child(4) strong { color:#087425; }
.payables-screen .expense-summary .kpi:last-child { background:#f1e1fb; color:#340e4e; }
.payables-screen .expense-summary .kpi:last-child strong { color:#55009b; }
.payables-screen .expense-list-toolbar { background:#f6f4fb; border:1px solid #eeebf4; border-top:0; padding:8px 7px; }
.payables-screen .expense-list-toolbar output { color:#261d30; }
.payables-screen .expense-list-toolbar .save { background:#78009e; padding:7px 11px; border-radius:5px; font-weight:700; }
.payables-screen .expense-list-toolbar .secondary { background:#f7effd; color:#6500a4; border-color:#d4b1f5; font-weight:700; }
.payables-screen .expense-list th { height:52px; background:#f6f4fa; }
.payables-screen .expense-list td { height:51px; }
.payables-screen .expense-list th:first-child,.payables-screen .expense-list td:first-child { width:50px; padding-left:15px; }
.payables-screen .expense-list th:nth-child(2),.payables-screen .expense-list th:nth-child(3) { width:11.5%; }
.payables-screen .expense-list th:nth-child(5),.payables-screen .expense-list th:nth-child(6) { width:10%; }
.payables-screen .expense-list th:nth-child(7) { width:13%; }
.payables-screen .expense-list th,.payables-screen .expense-list td { border-bottom-color:#e2ddec; }
.payables-screen .expense-list td:nth-child(2),.payables-screen .expense-list td:nth-child(3),.payables-screen .expense-amount { font-weight:700; }
.payables-screen .expense-list .expense-actions-column { padding-right:18px; }
.payables-screen .expense-list input[type=checkbox] {
 appearance:none; display:inline-grid; place-items:center; width:17px; height:17px; padding:0;
 border:1.5px solid #7900bf; border-radius:4px; background:#fff; cursor:pointer;
}
.payables-screen .expense-list input[type=checkbox]:is(:checked,:indeterminate) { background:#7900bf; color:#fff; }
.payables-screen .expense-list input[type=checkbox]:checked::after { content:"✓"; line-height:1; }
.payables-screen .expense-list input[type=checkbox]:indeterminate::after { content:"–"; line-height:1; }
.payables-screen .expense-list input[type=checkbox]:disabled { opacity:.5; cursor:default; }
.payables-screen .expense-list .expense-overdue td:first-child { box-shadow:inset 4px 0 #d51936; }
.payables-screen .expense-list tr:has(.expense-actions-toggle[aria-expanded=true]) td { background:#ebdbf8; }
.payables-screen .expense-row-meta { color:#322838; font-size:12px; }
.payables-screen .expense-row-meta span+span:not(:empty) { border-left:1px solid #d5c7dd; padding-left:8px; }
.payables-screen .expense-state { min-width:108px; padding:5px 9px; color:#171020; gap:4px; align-items:center; }
.payables-screen .expense-state-open { background:#ffeb68; }
.payables-screen .expense-state-provisioned { background:#ffb965; }
.payables-screen .expense-state-paid { background:#a7f1b3; }
.expense-paid-mark {
 display:inline-grid; place-items:center; color:#fff; background:#205e32; border-radius:50%; width:12px; height:12px; font-size:9px;
}
.payables-screen .expense-actions-toggle {
 background:#faf2ff; border:1px solid #8100c6; border-radius:6px; color:#6900aa; font-weight:700; min-width:90px; justify-content:center;
}
.payables-screen .expense-attachment-link { display:grid; place-items:center; background:transparent; border:0; }
.payables-screen .syrus-action-menu { min-width:250px; padding:6px; border-radius:6px; color:#19141e; }
.payables-screen .syrus-action-menu button { font-weight:600; padding:8px 13px; }
#emptyExpenseActionMenu { text-align:left; }
#emptyExpenseActionMenu p { margin:0 0 4px; padding:8px 13px; max-width:245px; color:#514260; font-size:.85rem; font-weight:400; }
#emptyExpenseActionMenu button:disabled { background:transparent; cursor:default; }
.payables-screen .syrus-action-menu [data-expense-action=delete] { color:inherit; }
.payables-screen .syrus-action-menu [data-expense-action=delete] .syrus-action-icon { color:#cb1934; }
.payables-list-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; padding:10px 0 0; }
.payables-list-footer button { padding:5px 8px; }
@media(max-width:1050px){
 body:has(.payables-screen) #topbar:has(#payablesTop:not([hidden])) .brand-banner,body:has(.payables-screen) #navigation { width:218px; }
 body:has(.payables-screen) #topbar:has(#payablesTop:not([hidden])) .brand-banner { padding-left:48px; }
 #focusExpenseSearch { width:auto; }
}
@media(max-width:700px){
 body:has(.payables-screen) #navigation { width:100%; }
 body:has(.payables-screen) #navigation[data-mobile-open=false] { display:none; }
 body:has(.payables-screen) #topbar:has(#payablesTop:not([hidden])) { flex-wrap:wrap; }
 body:has(.payables-screen) #topbar:has(#payablesTop:not([hidden])) .brand-banner { width:auto; padding:4px 12px; }
 body:has(.payables-screen) .payables-wordmark { font-size:30px; }
 body:has(.payables-screen) #topbar:has(#payablesTop:not([hidden])) header { flex:1 0 100%; flex-wrap:nowrap; align-items:flex-start; gap:9px; padding:5px 12px 8px; }
 #payablesTop { flex-wrap:wrap; gap:6px; }
 #payablesTop h2 { font-size:1.2rem; flex:1 0 100%; }
 #payablesCompanyName { max-width:100px; }
 body:has(.payables-screen) #workspace>main { padding:0 5px 8px; }
}
@media print {
 .payables-shortcuts,.expense-list-toolbar { display:none!important; }
 .payables-list-surface { border:0; padding:0; }
}

.reconciliation-panel { background:#fff; padding:18px; border:1px solid #ebe5f3; border-radius:6px; }
.reconciliation-toolbar,.reconciliation-metrics,.reconciliation-filters,.reconciliation-balances { display:flex; align-items:end; gap:14px; flex-wrap:wrap; }
.reconciliation-toolbar select { min-width:min(280px,70vw); }
.reconciliation-month { margin-left:auto; display:flex; align-items:end; gap:4px; }
.reconciliation-month button { font-size:21px; line-height:18px; min-height:41px; }
.reconciliation-metrics { justify-content:space-between; align-items:center; margin:14px 0 18px; }
.reconciliation-metrics p { margin:3px 0; }
.reconciliation-balances { gap:0; text-align:center; }
.reconciliation-balances div { padding:3px 16px; }
.reconciliation-balances div+div { border-left:1px solid #ddd4e8; }
.reconciliation-balances strong { display:block; font-size:18px; color:#300b46; }
.reconciliation-title { font-size:18px; margin:12px 0 0; }
.reconciliation-tabs { display:flex; gap:14px; border-bottom:1px solid #ddd4e8; margin:4px 0 12px; }
.reconciliation-tabs button { border:0; border-radius:0; border-bottom:3px solid transparent; background:transparent; color:#4d4160; padding:10px 12px; font-weight:700; }
.reconciliation-tabs button[aria-pressed=true] { color:#6506a8; border-color:#7403b4; }
#pendingBadge { border-radius:20px; background:#ece1f8; padding:2px 8px; }
.reconciliation-filters { margin-bottom:14px; }
.reconciliation-filters label { flex:0 1 350px; }
.reconciliation-filters input { margin-bottom:0; }
.reconciliation-counts { display:grid; grid-template-columns:repeat(3,1fr); gap:0; }
.reconciliation-counts button { background:#fff; border:1px solid #e2d8ed; border-radius:6px; color:#1e132b; }
.reconciliation-counts button[aria-pressed=true] { border-color:#820ee0; }
.reconciliation-counts strong { display:block; color:#6409a2; font-size:21px; }
.reconciliation-counts [data-type=credit] strong,.reconciliation-credit { color:#067720; }
.reconciliation-counts [data-type=debit] strong,.reconciliation-debit { color:#b91838; }
.reconciliation-order { display:flex; justify-content:flex-end; background:#f7f3fa; padding:7px; margin:8px 0 12px; }
.reconciliation-order label { display:flex; align-items:center; gap:7px; }
.reconciliation-column-head,.reconciliation-row { display:grid; grid-template-columns:minmax(0,1fr) 112px minmax(0,1.12fr); gap:10px; }
.reconciliation-column-head h3 { margin:0 0 8px; font-size:17px; color:#3e075e; }
.reconciliation-column-head h3:last-child,.reconciliation-entry { grid-column:3; }
.reconciliation-rows { display:grid; gap:15px; }
.reconciliation-card { border:1px solid #e0d4eb; border-radius:10px; overflow:hidden; min-height:127px; }
.reconciliation-card header,.reconciliation-card footer { display:flex; justify-content:space-between; gap:8px; align-items:center; padding:10px 12px; background:#fbf8fd; }
.reconciliation-card header { border-bottom:1px solid #e7dcef; color:#251735; }
.reconciliation-entry header { justify-content:flex-start; flex-wrap:wrap; }
.reconciliation-card footer { border-top:1px solid #e7dcef; font-size:12px; color:#655475; }
.reconciliation-card footer:has([data-archive]) { align-items:flex-start; }
.reconciliation-movement-status { display:grid; justify-items:end; gap:6px; }
.reconciliation-movement-status button { padding:4px 9px; min-height:28px; }
.reconciliation-card p,.reconciliation-card [data-matches] { margin:0; padding:11px 12px; overflow-wrap:anywhere; }
.reconciliation-card [data-matches] p { padding:0; }
.reconciliation-card [data-matches] label+label { margin-top:8px; }
.reconciliation-row-action { place-self:center; }
.reconciliation-row-action button { padding-left:9px; padding-right:9px; }
.reconciliation-empty { padding:14px; text-align:center; }
@media(max-width:760px) {
 .reconciliation-panel { padding:10px; }
 .reconciliation-month { margin-left:0; }
 .reconciliation-column-head,.reconciliation-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 .reconciliation-column-head h3:last-child,.reconciliation-entry { grid-column:2; grid-row:1; }
 .reconciliation-row-action { grid-column:1 / -1; grid-row:2; }
 .reconciliation-card header { flex-wrap:wrap; }
}

.reconciliation-day-counts { margin:10px 0 14px; }
.reconciliation-day-counts button[aria-pressed=true] { background:#f0def9; }
.reconciliation-day-counts [data-day-filter=pending] strong { color:#965500; }
.reconciliation-days { display:grid; gap:10px; }
.reconciliation-day { border:1px solid #d6b3ef; border-radius:8px; overflow:hidden; }
.reconciliation-day summary {
 display:grid; grid-template-columns:1fr auto 20px; gap:16px; align-items:center;
 background:#f8f1fc; cursor:pointer; list-style:none; padding:11px 17px; color:#241032;
}
.reconciliation-day summary::-webkit-details-marker { display:none; }
.reconciliation-day summary::after {
 content:''; width:9px; height:9px; border-right:2px solid currentColor; border-bottom:2px solid currentColor;
 transform:rotate(45deg); justify-self:center; margin-bottom:4px;
}
.reconciliation-day[open] summary { background:#efdef9; border-bottom:1px solid #d6b3ef; }
.reconciliation-day[open] summary::after { transform:rotate(225deg); margin:5px 0 0; }
.reconciliation-day summary:focus-visible { outline-offset:-3px; }
.reconciliation-day summary strong { font-size:17px; }
.reconciliation-day-balance { text-align:right; }
.reconciliation-day-balance strong,.reconciliation-day-totals strong,.reconciliation-daily-table small { display:block; }
.reconciliation-day-detail { padding:14px; }
.reconciliation-daily-table { min-width:700px; }
.reconciliation-daily-table thead { background:#f2e6fc; }
.reconciliation-daily-table th,.reconciliation-daily-table td { padding:9px 10px; vertical-align:middle; }
.reconciliation-daily-table th[colspan] { text-align:center; }
.reconciliation-daily-table td:nth-child(2),.reconciliation-daily-table td:nth-child(4) { text-align:right; white-space:nowrap; font-weight:700; }
.reconciliation-day-state { display:inline-block; padding:4px 8px; border-radius:5px; background:#ead5f8; color:#560779; white-space:nowrap; }
.reconciliation-day-totals {
 display:grid; grid-template-columns:1.2fr repeat(3,1fr); gap:12px; align-items:center;
 padding:12px; margin-top:12px; border:1px solid #d6b3ef; border-radius:6px; background:#faf6fd;
}
.reconciliation-day-totals div:not(:first-child) { text-align:right; }
.reconciliation-day-totals strong { font-size:15px; }
@media(max-width:680px) {
 .reconciliation-day summary { padding:10px; gap:8px; }
 .reconciliation-day-totals { grid-template-columns:repeat(2,1fr); }
 .reconciliation-day-totals div:not(:first-child) { text-align:left; }
}

.nfse-import-review{border:1px solid #d00000}.nfse-import-review h2{display:flex;align-items:center;gap:12px}.nfse-review-icon{width:36px;height:36px;object-fit:contain;flex-shrink:0}.nfse-import-review td{vertical-align:top}.nfse-import-review .actions{flex-wrap:wrap}

.reinf-validation{display:flex;align-items:center;gap:.6rem;margin:1.2rem 0}.reinf-validation input{width:auto}.reinf-hash{overflow-wrap:anywhere;font-size:.8rem}.reinf-screen td{vertical-align:top}.reinf-screen td p{margin:.3rem 0}.reinf-screen table{min-width:850px}
@media print{body:has(#reinfDraft) #topbar,body:has(#reinfDraft) nav,body:has(#reinfDraft) .companybar,body:has(#reinfDraft) #globalStatus,body:has(#reinfDraft) footer,body:has(#reinfDraft) #mobileMenuToggle,body:has(#reinfDraft) .reinf-controls{display:none!important}body:has(#reinfDraft) .layout{display:block!important}body:has(#reinfDraft) main,body:has(#reinfDraft) .panel{margin:0;padding:0;box-shadow:none;border:0}body:has(#reinfDraft) .tablewrap{overflow:visible}body:has(#reinfDraft) table{min-width:0;font-size:9pt}body:has(#reinfDraft) tr{break-inside:avoid}body:has(#reinfDraft) th,body:has(#reinfDraft) td{white-space:normal}body:has(#reinfDraft){background:white;color:black}}
[data-reinf-group][aria-pressed="true"]{background:#6500ba;color:white;border-color:#6500ba}.reinf-controls .actions{margin-bottom:1rem}
@media print{body:has(#reinfDraft) table{table-layout:fixed;width:100%}body:has(#reinfDraft) td,body:has(#reinfDraft) th{overflow-wrap:anywhere;padding:8px}body:has(#reinfDraft) th:nth-child(1){width:29%}body:has(#reinfDraft) th:nth-child(2){width:10%}body:has(#reinfDraft) th:nth-child(3){width:12%}body:has(#reinfDraft) th:nth-child(4){width:20%}body:has(#reinfDraft) th:nth-child(5){width:29%}}
.iss-screen #issPeriodForm{display:flex;gap:1rem;align-items:end;flex-wrap:wrap;margin-bottom:1rem}.iss-screen #issPeriodForm label{min-width:220px}.iss-screen form{margin-top:1rem}#issSettings textarea{box-sizing:border-box;width:100%;font:inherit;line-height:1.5;padding:12px;border:1px solid #cbb5e5;border-radius:8px}.iss-email-preview{font-family:Calibri,Arial,sans-serif;font-size:16px;color:#17365d;line-height:1.5;border:1px solid #eadff5;padding:24px;overflow-wrap:anywhere}.iss-email-preview img,.iss-econ-logo{max-width:220px;max-height:100px;object-fit:contain}.iss-screen h3{margin-top:1.5rem}#issSmtp{margin:1rem 0}
.account-transfer-screen{max-width:900px;margin:0 auto}.account-transfer-title{display:flex;align-items:center;gap:14px;background:linear-gradient(120deg,#350443,#5d1674);color:white;margin:-24px -24px 24px;padding:22px;border-radius:16px 16px 0 0}.account-transfer-title h2{margin:0;color:white}.account-transfer-title button{background:transparent;color:white;border:0;font-size:26px}.account-transfer-summary{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #cbb5e5;margin-bottom:24px;padding-bottom:20px}.account-transfer-summary h3{margin:0}.account-transfer-summary p{font-size:.9rem}.account-transfer-summary>div:last-child{border-left:1px solid #cbb5e5;padding-left:22px}.account-transfer-summary strong{display:block;font-size:26px;margin-top:5px}.account-transfer-screen form>label{display:block;margin:20px 0;font-weight:bold}.account-transfer-screen .required{color:#bc1436}.account-transfer-amount{display:flex;border:1px solid #cbb5e5;border-radius:8px;overflow:hidden;margin-top:8px}.account-transfer-amount>span{padding:12px;background:#efe5ff}.account-transfer-amount input{margin:0;border:0;border-radius:0}.account-transfer-drop{border:2px dashed #b482d6;border-radius:10px;padding:14px;display:flex;align-items:center;gap:20px;flex-wrap:wrap}.account-transfer-drop.dragging{background:#efe5ff}.account-transfer-drop label{position:relative;overflow:hidden;border:1px solid #cbb5e5;background:#efe5ff;border-radius:9px;padding:10px;margin:0;cursor:pointer}.account-transfer-drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.account-transfer-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #cbb5e5;margin-top:28px;padding-top:18px}.account-transfer-history{margin:24px auto!important;max-width:900px}.account-transfer-history summary{font-weight:bold;cursor:pointer}.account-transfer-history table{margin:18px 0}.account-transfer-history .actions{justify-content:end}#transferFileList li{margin:8px 0;overflow-wrap:anywhere}@media(max-width:650px){.account-transfer-title{margin:-16px -16px 22px;padding:16px}.account-transfer-summary{flex-wrap:wrap}.account-transfer-summary>div:last-child{border-left:0;padding:0}.account-transfer-title h2{font-size:21px}}
#lukeWidget{position:fixed;right:20px;bottom:var(--luke-bottom,20px);z-index:30;max-width:calc(100vw - 24px)}#lukeLauncher{display:flex;flex-direction:column;align-items:center;gap:0;width:148px;padding:0;border:0;background:transparent;color:white;cursor:pointer}#lukeLauncher img{width:102px;height:97px;object-fit:contain;filter:drop-shadow(0 4px 3px #6d328b40);transition:transform .2s}#lukeLauncher:hover img{transform:translateY(-4px) rotate(-4deg)}#lukeLauncher>span{display:flex;flex-direction:column;align-items:center;width:140px;border-radius:24px;background:linear-gradient(130deg,#7e2697,#4c0d60);padding:6px 12px;box-shadow:0 3px 6px #3d13543a}#lukeLauncher strong{font-size:20px;line-height:1.1}#lukeLauncher small{color:white;font-size:11px}#lukePanel{position:absolute;right:0;bottom:calc(100% + 10px);width:370px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 180px);border:1px solid #ccb2df;border-radius:16px;box-shadow:0 8px 32px #3e0c5c36;background:white;overflow:hidden;display:flex;flex-direction:column}.luke-panel-head{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;background:#4c0d60;color:white}.luke-panel-identity{display:flex;align-items:center;gap:8px}.luke-panel-identity img{object-fit:contain;flex:none}.luke-panel-head small{display:block;color:#f2dcff;font-size:12px}.luke-panel-head button{border:0;background:transparent;color:white;font-size:28px;padding:0 6px}.luke-panel-head strong{font-size:20px}#lukeMessages{overflow:auto;min-height:90px;max-height:280px;padding:14px}.luke-message{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:12px;padding:11px;margin-bottom:10px;font-size:14px;line-height:1.45}.luke-message.assistant{background:#f3ebfb;color:#42175b}.luke-message.user{background:#6e2488;color:white;margin-left:24px}#lukeForm{padding:12px;border-top:1px solid #eadff5;margin:0}#lukeForm textarea{font:inherit;font-size:14px;padding:9px;box-sizing:border-box;width:100%;resize:vertical;max-height:110px;border:1px solid #cbb5e5;border-radius:8px}.luke-input-label{font-size:13px;margin:0 0 5px}.luke-form-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 0}.luke-form-actions button{background:#650080;color:white;border:0;border-radius:8px;padding:9px 18px}.luke-file-label{position:relative;overflow:hidden;cursor:pointer;font-size:13px;padding:8px;background:#f3ebfb;border-radius:8px;margin:0}.luke-file-label input{opacity:0;position:absolute;inset:0;width:100%;height:100%;cursor:pointer}#lukeForm>small{display:block;color:#6f6180;font-size:11px;line-height:1.4}#lukeFileName{overflow-wrap:anywhere;font-size:12px;color:#6f6180}body:has(#lukeWidget:not([hidden])) #content{padding-bottom:125px}body:has(dialog[open]) #lukeWidget{visibility:hidden}.reconciliation-search-tabs{flex-wrap:wrap}.reconciliation-search-tabs [aria-pressed=true]{background:#6500ba;color:white}@media(max-width:650px){#lukeWidget{right:12px}#lukeLauncher{width:112px}#lukeLauncher img{width:76px;height:72px}#lukeLauncher>span{width:102px}#lukeLauncher strong{font-size:17px}}@media print{#lukeWidget{display:none!important}body:has(#lukeWidget) #content{padding-bottom:0}}
.luke-panel-controls {display:flex;align-items:center;gap:6px;flex:none;}
.luke-panel-head #lukeSound {font-size:11px;white-space:nowrap;border:1px solid #9567a8;border-radius:6px;padding:6px;}
.luke-panel-identity picture {display:flex;flex:none;}
@media(prefers-reduced-motion:reduce) {
 #lukeLauncher:hover img { transform:none; }
}
#accountTransferForm label>select{display:block;width:100%;margin-top:8px}#lukeLauncher:focus-visible,.luke-panel-head button:focus-visible{outline:3px solid #bb86d6;outline-offset:3px}

.plus-users-page {max-width:1120px;margin:0 auto;}
.plus-user-invite {margin-bottom:24px;display:grid;gap:12px;}
.plus-user-invite h3,.plus-user-invite p {margin:0;}
.plus-user-invite .save {background:#500568;font-weight:700;}
.plus-user-avatar {
 position:relative;overflow:hidden;place-self:center;width:80px;height:80px;border:2px solid #e6d0f3;
 border-radius:50%;background:linear-gradient(150deg,#f9f0ff,#e6d0f3);
}
.plus-user-avatar::before,.plus-user-avatar::after {content:'';position:absolute;background:#8431a5;}
.plus-user-avatar::before {width:26px;height:26px;border-radius:50%;top:14px;left:25px;}
.plus-user-avatar::after {width:55px;height:37px;border-radius:50% 50% 0 0;bottom:-2px;left:10px;}
.plus-user-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:14px;}
.plus-user-grid .panel {margin:0;}
.plus-user-card h4 {margin:0 0 14px;font-size:1.16rem;overflow-wrap:anywhere;}
.plus-user-card dl {margin:0;}
.plus-user-card dt {font-weight:700;margin-top:8px;}
.plus-user-card dd {margin:2px 0 0;overflow-wrap:anywhere;}
.plus-user-card .actions {padding-top:12px;border-top:1px solid #e8daf2;}
.plus-user-dialog {width:min(920px,95vw);}
.plus-user-dialog .finance-dialog-head {justify-content:space-between;}
.plus-user-dialog .finance-dialog-head .secondary {padding:4px 9px;}
.plus-user-dialog select {display:block;margin-top:6px;}
.plus-company-choice {padding:14px;background:#f6effb;border:1px solid #e6d3f4;border-radius:8px;}
.plus-permissions {border:1px solid #e1cbea;border-radius:8px;margin:9px 0;overflow:hidden;}
.plus-permissions summary {cursor:pointer;padding:12px 14px;background:#f5edfa;font-weight:700;}
.plus-permissions thead {background:#fbf7fe;}
.plus-permissions td:last-child,.plus-permissions th:last-child {text-align:center;}
.plus-permissions input[type=checkbox] {width:18px;height:18px;margin:0 auto;accent-color:#6500ba;}

.plus-permissions .plus-statement-accounts {text-align:left;margin:0;}
.plus-statement-accounts label {display:flex;align-items:center;gap:8px;margin:8px 0;}
.plus-statement-accounts label input[type=checkbox] {margin:0;}
.plus-statement-accounts p {margin:8px 0 0;}

.issued-cancellation-panel {position:fixed;inset:0 0 0 auto;margin:0;width:min(580px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border-width:0 0 0 1px;}
.issued-cancellation-panel form {display:flex;flex-direction:column;height:100%;margin:0;}
.issued-cancellation-panel .finance-dialog-head {justify-content:space-between;}
.issued-cancellation-panel .finance-dialog-head small {color:#ead6f0;}
.issued-cancellation-panel .finance-dialog-head h2 {margin:4px 0 0;}
.issued-cancellation-panel .finance-dialog-content {flex:1;overflow:auto;padding:22px;}
.issued-cancellation-panel .finance-dialog-footer {justify-content:space-between;}
.sale-description textarea,.issued-cancellation-panel textarea {display:block;width:100%;padding:10px;border:1px solid #cbb5e5;border-radius:7px;resize:vertical;font:inherit;}
.sale-description textarea {margin-top:6px;}
.sale-description p {margin:6px 0 10px;}
.issued-cancellation-meta {display:flex;flex-wrap:wrap;gap:12px 24px;margin:0 0 20px;}
.issued-cancellation-meta dt {font-weight:700;}
.issued-cancellation-meta dd {margin:6px 0 0;}
