/* Finanzguro V177: Abschluss Privatkostenerstattung */
.v177-private-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-left:auto}.v177-inline-check,.v177-check{display:flex;align-items:center;gap:7px;margin:0;font-size:11px;font-weight:700;color:#475467}.v177-inline-check input,.v177-check input{width:16px;height:16px;margin:0}.v177-private-tools button{white-space:nowrap}
.v177-closing-history{margin-top:14px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fbfcfe}.v177-closing-history>summary{cursor:pointer;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;gap:12px;list-style:none}.v177-closing-history>summary::-webkit-details-marker{display:none}.v177-closing-history>summary span:first-child{display:grid;gap:2px}.v177-closing-history>summary small{color:var(--muted);font-weight:500}.v177-closing-history>summary>span:last-child{min-width:26px;height:26px;border-radius:999px;background:#e7f2fc;color:#064f86;display:grid;place-items:center;font-weight:800}.v177-closing-history[open]>summary{border-bottom:1px solid var(--line)}
.v177-closing-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:11px 14px;border-bottom:1px solid #edf1f6}.v177-closing-row:last-child{border-bottom:0}.v177-closing-row>div:first-child{display:grid;gap:3px}.v177-closing-row small{color:var(--muted)}.v177-closing-row>div:last-child{display:flex;align-items:center;gap:7px}
.v177-modal{position:fixed;inset:0;z-index:100120;background:rgba(15,23,42,.58);display:grid;place-items:center;padding:18px}.v177-modal[hidden]{display:none!important}.v177-closing-dialog,.v177-excel-dialog{width:min(1380px,calc(100vw - 30px));max-height:calc(100vh - 30px);overflow:auto;background:#fff;border-radius:14px;border:1px solid #d8dee8;box-shadow:0 28px 90px rgba(15,23,42,.3)}.v177-closing-dialog>header,.v177-excel-dialog>header,.v177-closing-dialog>footer,.v177-excel-dialog>footer{position:sticky;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;background:#fff}.v177-closing-dialog>header,.v177-excel-dialog>header{top:0;border-bottom:1px solid var(--line)}.v177-closing-dialog>footer,.v177-excel-dialog>footer{bottom:0;border-top:1px solid var(--line);justify-content:flex-end;flex-wrap:wrap}.v177-closing-dialog>header p,.v177-excel-dialog>header p{margin:3px 0 0;color:var(--muted);font-size:12px}.v177-closing-body,.v177-excel-body{padding:18px}.v177-closing-controls{display:grid;grid-template-columns:180px minmax(280px,1fr) auto auto;gap:12px;align-items:end;margin-bottom:14px;padding:13px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.v177-closing-controls .v177-check{height:38px;padding:0 10px;border:1px solid #d8dee8;border-radius:8px;background:#fff}
.v177-closing-kpis{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:10px;margin:12px 0}.v177-closing-kpis>div{border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:9px;padding:11px;background:#fff}.v177-closing-kpis span,.v177-closing-kpis small{display:block;color:var(--muted)}.v177-closing-kpis span{font-size:10px;text-transform:uppercase;font-weight:800}.v177-closing-kpis strong{display:block;font-size:20px;margin:4px 0}.v177-closing-kpis small{font-size:10px}.v177-closing-preview{max-height:50vh}.v177-excel-dialog{width:min(1100px,calc(100vw - 30px))}.v177-excel-body .table-wrap{max-height:60vh}.v177-duplicate td{background:#fff8e8!important}
@media(max-width:1000px){.v177-private-tools{width:100%;justify-content:flex-start}.v177-closing-controls{grid-template-columns:1fr 1fr}.v177-closing-kpis{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.v177-modal{padding:5px}.v177-closing-dialog,.v177-excel-dialog{width:100%;max-height:calc(100vh - 10px);border-radius:9px}.v177-closing-controls,.v177-closing-kpis{grid-template-columns:1fr}.v177-private-tools button{flex:1 1 160px}.v177-closing-row{align-items:flex-start;flex-direction:column}.v177-closing-row>div:last-child{width:100%;flex-wrap:wrap}}
.v178-excel-ai-status{margin:4px 0 0;color:#087443;font-size:11px;font-weight:700;line-height:1.35}.v178-excel-ai-status:empty{display:none}

/* V261: explicit refund dialog contrast in all themes */
.v260-refund-backdrop section{background:#fff!important;color:#172033!important}
.v260-refund-backdrop section header{background:#f0f5fb!important;color:#172033!important}
.v260-refund-backdrop section header strong,.v260-refund-backdrop section header button{color:#172033!important}
.v260-refund-backdrop section p{color:#475467!important}
.v260-refund-backdrop .v260-refund-list button{color:#172033!important;background:#f8fafc!important;border-color:#d9e2ec!important}
.v260-refund-backdrop .v260-refund-list button span{color:#344054!important;opacity:1!important}
.v260-refund-backdrop .v260-refund-list button strong{color:#064f86!important}
.v260-refund-backdrop .v260-refund-list button:hover{background:#e8f2fc!important}
.v260-refund-backdrop input[type=search]{background:#fff!important;color:#172033!important}
.v260-refund-backdrop input[type=search]::placeholder{color:#667085!important;opacity:1!important}
