.historical-actions,.origin-tabs{flex-wrap:wrap;gap:.65rem;display:flex}.origin-tabs{margin:0 0 1rem}.origin-tabs a{border-radius:.55rem;padding:.55rem .8rem}.origin-tabs .selected{background:var(--panel);border:1px solid var(--border);font-weight:700}.historical-page .historical-check{align-items:center;gap:.4rem;display:flex}.historical-page .historical-form{gap:1rem;display:grid}.historical-page .form-grid,.historical-page .historical-item{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.8rem;display:grid}.historical-page .historical-item{border:1px solid var(--border);border-radius:.7rem;margin:.7rem 0;padding:1rem}.historical-page .form-actions{flex-wrap:wrap;justify-content:flex-end;gap:.7rem;margin-top:1rem;display:flex}.historical-page .historical-summary{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;display:grid}.historical-page .detail-row{border-bottom:1px solid var(--border);justify-content:space-between;gap:1rem;padding:.45rem 0;display:flex}.historical-page .debt-row{grid-template-columns:1fr 1fr auto;align-items:end;gap:.7rem;display:grid}.historical-page .historical-steps{flex-wrap:wrap;gap:.7rem;padding:0;list-style:none;display:flex}.historical-page .historical-steps li{padding:.5rem}.historical-page [aria-current=step]{border-bottom:2px solid;font-weight:700}.historical-page fieldset{border:0;min-width:0;margin:0;padding:0}.historical-page input,.historical-page textarea,.historical-page select{max-width:100%}.historical-page .historical-data div{grid-template-columns:minmax(120px,1fr) 2fr;gap:1rem;margin:.4rem 0;display:grid}.historical-page .historical-data dd{overflow-wrap:anywhere;margin:0}.historical-page summary{cursor:pointer;overflow-wrap:anywhere}@media (max-width:650px){.historical-page .historical-actions>*{flex:1}.historical-page .debt-row,.historical-page .historical-item,.historical-page .form-grid{grid-template-columns:1fr}.historical-page .form-actions>*{white-space:normal;flex:1}.historical-page .historical-data div{grid-template-columns:1fr;gap:.2rem}.historical-page .detail-row{flex-wrap:wrap}}
.fiscal-standalone-form{border:0;gap:1.25rem;min-width:0;margin:0;padding:0;display:grid}.fiscal-form-section{background:var(--surface);border:1px solid var(--border);border-radius:.7rem;min-width:0;padding:1.2rem}.fiscal-form-section h2{margin:0 0 1rem;font-size:1.15rem}.fiscal-form-section>.field{margin-bottom:1rem}.fiscal-form-section input,.fiscal-form-section select,.fiscal-form-section textarea{width:100%;min-width:0;min-height:44px;font-size:1rem}.fiscal-form-section button{min-height:44px}.fiscal-form-section .customer-picker{margin:1rem 0}.fiscal-product-results{border:1px solid var(--border);border-radius:.5rem;max-height:20rem;margin:0 0 1rem;overflow:auto}.fiscal-product-results>button{background:var(--surface);border:0;border-bottom:1px solid var(--border);text-align:left;white-space:normal;justify-content:space-between;align-items:center;gap:.7rem;width:100%;padding:.8rem;display:flex}.fiscal-product-results small{color:var(--muted);margin-top:.25rem;display:block}.fiscal-product-results>p{padding:.75rem}.fiscal-entry-item{border:1px solid var(--border);border-radius:.55rem;min-width:0;margin-top:1rem;padding:1rem}.fiscal-entry-item>header{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.5rem;display:flex}.fiscal-entry-item h3{margin:0;font-size:1rem}.fiscal-entry-item>.field{margin-bottom:1rem}.fiscal-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.fiscal-entry-grid .field{min-width:0;margin:0}.fiscal-entry-item details{margin-top:1rem}.fiscal-entry-item summary{cursor:pointer;padding:.5rem 0}.fiscal-entry-item details[open] summary{margin-bottom:.5rem}.fiscal-entry-subtotal{flex-direction:column;justify-content:center;gap:.4rem;display:flex}.fiscal-entry-subtotal small{color:var(--muted)}.fiscal-standalone-total{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:1rem;margin:1rem 0;padding-top:1rem;font-size:1.1rem;display:flex}.fiscal-standalone .fiscal-prepared{margin-top:1.25rem}.fiscal-standalone .fiscal-recovery{border:1px solid var(--border);padding:1rem}.fiscal-standalone [aria-invalid=true]{border-color:var(--danger,#b42318);outline-color:var(--danger,#b42318)}@media (max-width:600px){.fiscal-form-section{padding:.85rem}.fiscal-entry-item{padding:.75rem}.fiscal-entry-grid{gap:.85rem .65rem}.fiscal-standalone .fiscal-actions{grid-template-columns:1fr;display:grid}.fiscal-form-section>.primary{width:100%}.fiscal-page .page-title .fiscal-actions{flex-wrap:wrap}.fiscal-entry-grid select{max-width:100%}}
