/*
 * Copyright (c) 2026 TNSystem. Alle Rechte vorbehalten.
 * Datei: public/assets/historical-revenue.css
 * Zweck: Gestaltet die Erfassung früherer Umsätze und die zwölfmonatige Jahresstatistik.
 */
.historical-revenue-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:1040px;margin:0 auto 14px}.historical-form-section{min-width:0;margin:0;padding:14px 15px}.historical-section-assignment,.historical-section-upload,.historical-confirmation{grid-column:1/-1}.historical-section-heading{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #dfe7ef}.historical-section-heading>span{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#174f7f;color:#fff;font-size:12px;font-weight:900}.historical-section-heading h3{margin:0;color:#173f67;font-size:15px}.historical-section-heading p{margin:3px 0 0;color:#65768a;font-size:11px;line-height:1.35}.historical-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 11px}.historical-section-assignment .historical-form-grid{grid-template-columns:minmax(250px,1.6fr) minmax(180px,.9fr) repeat(3,150px)}.historical-field-customer{grid-column:auto}.historical-field-invoice-number{min-width:180px;max-width:240px}.historical-field-date{width:150px;max-width:100%}.historical-form-grid label,.historical-upload{display:grid;gap:5px;min-width:0;color:#2c4057;font-size:11px;font-weight:800}.historical-revenue-form label.has-field-help{padding-right:0!important}.historical-form-grid .field-wide{grid-column:1/-1}.historical-field-caption{display:flex;align-items:center;justify-content:flex-start;gap:6px;min-height:20px}.historical-field-caption>span{display:flex;align-items:baseline;gap:5px;min-width:0}.historical-field-caption small{color:#75869a;font-size:9px;font-weight:650}.historical-field-caption .field-help{position:static!important;display:inline-grid!important;flex:0 0 18px;width:18px!important;min-width:18px!important;height:18px!important;min-height:18px!important;margin:0!important}.historical-field-caption .field-help::after{right:auto;left:0;top:24px}.historical-form-grid input,.historical-form-grid select,.historical-form-grid textarea,.historical-upload input{width:100%;margin:0;padding:7px 9px;border:1px solid #cbd7e3;border-radius:7px;background:#fff;color:#172d45;font:inherit;font-weight:500}.historical-form-grid input,.historical-form-grid select{min-height:36px}.historical-form-grid textarea{min-height:54px;resize:vertical}.historical-section-amounts .amount-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.historical-section-payment .historical-form-grid{grid-template-columns:minmax(190px,1fr) 150px}.historical-section-payment .field-wide{grid-column:1/-1}.historical-gross-preview{display:grid;gap:2px;min-height:58px;padding:8px 10px;border:1px solid #a8c4dd;border-radius:8px;background:#eff7fd}.historical-gross-preview span,.historical-gross-preview small{color:#60758a;font-size:9px;font-weight:750}.historical-gross-preview strong{color:#144d7e;font-size:18px;font-variant-numeric:tabular-nums}.historical-upload{grid-template-columns:minmax(210px,.45fr) minmax(300px,1fr);align-items:center;padding:9px 11px;border:1px dashed #9cb7d0;border-radius:8px;background:#f7fbfe}.historical-confirmation{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 14px;border:1px solid #b9d4c6;border-radius:9px;background:#f3fbf7}.historical-confirmation strong{color:#175d40}.historical-confirmation p{max-width:600px;margin:3px 0 0;color:#526b60;font-size:11px;line-height:1.4}.historical-empty-state{max-width:720px;margin:0 auto 14px}.historical-list{margin-top:14px}.historical-list td small{display:block;margin-top:4px;color:#6f8092}.historical-pill{background:#e9f2fb;color:#1c5e91}.dashboard-year-controls{display:flex;align-items:flex-end;justify-content:flex-end;gap:16px}.dashboard-year-controls form{margin:0}.dashboard-year-controls label{display:grid;gap:5px;color:#5f7184;font-size:10px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.dashboard-year-controls select{min-width:105px;height:36px;margin:0;padding:0 30px 0 10px;border:1px solid var(--portal-line);border-radius:6px;background:#fff;color:#203a55;font:inherit}.revenue-chart-scroll{overflow-x:auto;padding-bottom:3px}.revenue-chart.year-view{grid-template-columns:repeat(12,minmax(62px,1fr));min-width:860px;gap:11px}.revenue-chart.year-view .revenue-value-pair{font-size:9px}
@media(max-width:1050px){.historical-revenue-form{grid-template-columns:1fr}.historical-form-section,.historical-section-assignment,.historical-section-upload,.historical-confirmation{grid-column:1}.historical-section-assignment .historical-form-grid{grid-template-columns:minmax(240px,1fr) minmax(180px,220px) repeat(3,150px)}.historical-section-amounts .amount-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:880px){.historical-section-assignment .historical-form-grid{grid-template-columns:minmax(220px,1fr) minmax(180px,1fr) 150px}.historical-field-date{width:100%}}
@media(max-width:900px){.historical-section-amounts .amount-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.historical-confirmation{align-items:stretch;flex-direction:column}.historical-confirmation .form-actions{width:100%}}
@media(max-width:760px){.dashboard-year-controls{align-items:flex-start;flex-direction:column}.revenue-chart.year-view{height:190px}.revenue-chart-scroll{margin-inline:-5px;padding-inline:5px}}
@media(max-width:620px){.historical-form-section{padding:13px}.historical-form-grid,.historical-section-amounts .amount-grid,.historical-section-payment .historical-form-grid{grid-template-columns:1fr}.historical-form-grid .field-wide{grid-column:auto}.historical-upload{grid-template-columns:1fr}.historical-confirmation .form-actions{display:grid}.historical-confirmation .form-actions>*{width:100%}.historical-field-caption .field-help::after{left:auto;right:-6px}}
