/* APIM CRM V10.8.6 FIX2 */
.v1086-overdue-open{display:none!important}
.v1086fix2-global-overdue{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #f59e0b;border-radius:10px;background:#fff7ed;color:#9a3412;font-weight:900;cursor:pointer;margin-top:6px}
.v1086fix2-global-overdue strong{font-size:14px}
.v1086fix2-overdue-hero{display:grid;grid-template-columns:1.4fr .7fr .7fr auto;gap:14px;align-items:center;border:1px solid #f59e0b;border-left:5px solid #f59e0b;border-radius:14px;background:#fffaf0;padding:14px 16px;margin:14px 0}
.v1086fix2-overdue-hero .big{font-size:23px;font-weight:950}.v1086fix2-overdue-hero span{display:block;font-size:11px;color:#7c2d12}
.v1086fix2-contact-native{margin-left:auto}
.v1086fix2-loading{padding:18px;text-align:center;font-weight:800;color:#475569;background:#f8fafc;border-radius:12px;margin:10px}
.v1086fix2-own-task{border-left:6px solid #f59e0b!important;background:#fff8e7!important}
.v1086fix2-own-task.v1086fix2-overdue{border-left-color:#dc2626!important;background:#fff1f2!important}
.v1086fix2-own-badge{display:inline-flex;padding:4px 9px;border-radius:999px;background:#f59e0b;color:#fff;font-size:11px;font-weight:950;margin:0 8px 6px 0}
.v1086fix2-customer{display:inline-flex!important;align-items:center;padding:4px 10px!important;border-radius:9px!important;background:#dcfce7!important;color:#166534!important;font-size:14px!important;font-weight:950!important;cursor:pointer}
.v1086fix2-type-finance{background:#dcfce7!important;color:#166534!important}.v1086fix2-type-technical{background:#dbeafe!important;color:#1d4ed8!important}.v1086fix2-type-offer{background:#f3e8ff!important;color:#7e22ce!important}.v1086fix2-type-customer_return{background:#ffedd5!important;color:#c2410c!important}.v1086fix2-type-document{background:#e5e7eb!important;color:#374151!important}.v1086fix2-type-control{background:#dbeafe!important;color:#1e3a8a!important}.v1086fix2-type-other{background:#f1f5f9!important;color:#475569!important}
.v1086fix2-priority-normal{background:#f1f5f9!important;color:#475569!important}.v1086fix2-priority-high{background:#ffedd5!important;color:#c2410c!important}.v1086fix2-priority-urgent{background:#fee2e2!important;color:#b91c1c!important}
.v1086fix2-billing-panel .v1086fix2-billing-row{display:grid;grid-template-columns:minmax(250px,1.4fr) 140px 130px 130px auto;gap:10px;align-items:center;padding:10px;border-bottom:1px solid #e5e7eb}
.v1086fix2-billing-row small{display:block;color:#64748b}.v1086fix2-badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:900;background:#e2e8f0;color:#334155}
.v1086fix2-badge.invoiced{background:#dcfce7;color:#166534}.v1086fix2-badge.to_invoice{background:#fef3c7;color:#92400e}.v1086fix2-badge.no_invoice{background:#e0e7ff;color:#3730a3}
.v1086fix2-renew-row{display:grid;grid-template-columns:minmax(320px,1.2fr) minmax(240px,1fr);gap:16px;padding:13px 14px;border:1px solid #e2e8f0;border-radius:12px;margin:8px 0;background:#fff}.v1086fix2-renew-row.cancelled{background:#f8fafc;color:#64748b}.v1086fix2-renew-title{font-weight:950;font-size:14px}.v1086fix2-renew-meta{font-size:12px;color:#64748b;margin-top:4px}.v1086fix2-renew-note{font-size:12px;line-height:1.45}.v1086fix2-renew-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.v1086fix2-cancel-badge{display:inline-block;padding:3px 7px;border-radius:999px;background:#e2e8f0;color:#475569;font-size:10px;font-weight:900;margin-left:7px}
#v1086-overdue-dialog{width:96vw!important;max-width:none!important;max-height:94vh!important;padding:0!important}
#v1086-overdue-dialog .modal-card{width:100%!important;max-width:none!important;box-sizing:border-box;max-height:92vh!important}
#v1086-overdue-dialog .v1086-report-table{table-layout:fixed;width:100%!important}
#v1086-overdue-dialog .v1086-report-table th:nth-child(1),#v1086-overdue-dialog .v1086-report-table td:nth-child(1){width:20%}
#v1086-overdue-dialog .v1086-report-table th:nth-child(2),#v1086-overdue-dialog .v1086-report-table td:nth-child(2){width:27%;white-space:normal;word-break:break-word}
#v1086-overdue-dialog .v1086-report-table th:nth-child(3),#v1086-overdue-dialog .v1086-report-table td:nth-child(3){width:10%}
#v1086-overdue-dialog .v1086-report-table th:nth-child(4),#v1086-overdue-dialog .v1086-report-table td:nth-child(4){width:10%}
#v1086-overdue-dialog .v1086-report-table th:nth-child(5),#v1086-overdue-dialog .v1086-report-table td:nth-child(5),#v1086-overdue-dialog .v1086-report-table th:nth-child(6),#v1086-overdue-dialog .v1086-report-table td:nth-child(6),#v1086-overdue-dialog .v1086-report-table th:nth-child(7),#v1086-overdue-dialog .v1086-report-table td:nth-child(7){width:11%}
.v1086fix2-payment-list{margin:12px 0;border-top:1px solid #dbe4ee;padding-top:12px}.v1086fix2-payment-row{display:grid;grid-template-columns:120px 1fr 150px 150px auto;gap:10px;align-items:center;padding:9px;border-bottom:1px solid #e5e7eb}
.v1086fix2-main-nav{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.v1086fix2-main-nav button{padding:9px 13px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font-weight:850;cursor:pointer}
.v1086fix2-contract-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0 12px}.v1086fix2-contract-toolbar input{min-width:250px}.v1086fix2-hidden{display:none!important}
#v1086fix2-billing-dialog .modal-card,#v1086fix2-contact-dialog .modal-card,#v1086fix2-task-dialog .modal-card,#v1086fix2-sync-dialog .modal-card,#v1086fix2-payment-dialog .modal-card{width:min(650px,94vw);max-height:92vh;overflow:auto}
.v1086fix2-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.v1086fix2-error{color:#b91c1c;font-weight:700;margin:8px 0}
@media(max-width:800px){.v1086fix2-overdue-hero{grid-template-columns:1fr 1fr}.v1086fix2-billing-panel .v1086fix2-billing-row,.v1086fix2-payment-row,.v1086fix2-renew-row{grid-template-columns:1fr}#v1086-overdue-dialog{width:98vw!important}.v1086fix2-form-grid{grid-template-columns:1fr}}

/* FIX2A: legacy aylık fatura paneli artık kullanıcıya gösterilmez. */
#subscriber-detail-dialog .v1086-invoice-panel{display:none!important}
#renewal-finalize-form [data-v1086-invoice],#subscription-quick-renew-v83-form [data-v1086-invoice]{display:none!important}

/* FIX2A: Cari + Fatura Senkronu penceresi yatay taşmaz. */
#v1086fix2-sync-dialog{width:min(760px,94vw)!important;max-width:94vw!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important}
#v1086fix2-sync-dialog .modal-card{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow-x:hidden!important;overflow-y:auto!important;margin:0!important}
#v1086fix2-sync-dialog label,#v1086fix2-sync-dialog input,#v1086fix2-sync-dialog select,#v1086fix2-sync-dialog textarea,#v1086fix2-sync-dialog .hint,#v1086fix2-sync-dialog button{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
#v1086fix2-sync-dialog .v1086fix2-form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;width:100%!important}
@media(max-width:680px){#v1086fix2-sync-dialog{width:96vw!important;max-width:96vw!important}#v1086fix2-sync-dialog .v1086fix2-form-grid{grid-template-columns:1fr!important}}

/* A3: Cari & Alacaklar tek, anlaşılır muhasebe görünümü */
.v1086a3-ledger-panel{overflow:hidden}
.v1086a3-ledger-head,.v1086a3-ledger-row{display:grid;grid-template-columns:minmax(250px,1.7fr) 110px 115px 115px 115px 145px 125px;gap:10px;align-items:center}
.v1086a3-ledger-head{padding:8px 12px;background:#eef3f7;border-radius:9px;font-size:11px;font-weight:900;color:#475569}
.v1086a3-ledger-row{padding:12px;border-bottom:1px solid #e5e7eb}
.v1086a3-ledger-row>div>span:not(.v1086a3-kind){display:block;font-size:10px;color:#64748b}
.v1086a3-ledger-row small{display:block;color:#64748b;margin-top:3px}
.v1086a3-ledger-row .num{text-align:right}
.v1086a3-kind{display:inline-block!important;padding:3px 7px;border-radius:999px;background:#e2e8f0;color:#334155!important;font-size:10px!important;font-weight:900;margin-bottom:4px}
.v1086a3-ledger-row.historical_subscription .v1086a3-kind{background:#fef3c7;color:#92400e!important}
.v1086a3-ledger-row.current_subscription .v1086a3-kind{background:#dcfce7;color:#166534!important}
.v1086a3-ledger-row.extra_receivable .v1086a3-kind{background:#dbeafe;color:#1d4ed8!important}
.v1086a3-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px 12px;background:#f8fafc;border-top:2px solid #cbd5e1}
.v1086a3-totals div{padding:9px;border:1px solid #e2e8f0;border-radius:9px;background:#fff}.v1086a3-totals span{display:block;font-size:10px;color:#64748b}.v1086a3-totals b{font-size:15px}.v1086a3-totals .grand{border-color:#0f766e;background:#f0fdfa}
.v1086-finance-tabs button.v1086a3-active{background:#0f8b83!important;color:#fff!important;border-color:#0f8b83!important}
#v1086a3-invoice-dialog .modal-card{width:min(620px,94vw);max-height:92vh;overflow:auto}
.statement-sheet .v1086a3-st-head,.statement-sheet .v1086a3-st-row{grid-template-columns:1.35fr 1fr 100px 100px 100px 100px 80px!important}
.statement-sheet .v1086a3-prev-head,.statement-sheet .v1086a3-prev-row,
.statement-sheet .v1086a3-extra-head,.statement-sheet .v1086a3-extra-row{grid-template-columns:100px 1.6fr 110px 110px 110px 110px!important}
.statement-sheet .v1086a3-prev-row small{display:block;color:#64748b}
@media(max-width:1050px){
 .v1086a3-ledger-head{display:none}
 .v1086a3-ledger-row{grid-template-columns:1fr 1fr 1fr}
 .v1086a3-ledger-row>div:first-child{grid-column:1/-1}
 .v1086a3-totals{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
 .v1086a3-ledger-row{grid-template-columns:1fr}
 .v1086a3-ledger-row>div:first-child{grid-column:auto}
 .v1086a3-totals{grid-template-columns:1fr}
}

/* A4 renewal billing block */
.v1086a4-renewal-billing{margin-top:12px;padding:12px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc}
.v1086a4-renewal-billing h4{margin:0 0 8px;font-size:13px}
.v1086a4-renewal-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.v1086a4-renewal-billing small{display:block;margin-top:6px;color:#64748b}
@media(max-width:680px){.v1086a4-renewal-grid{grid-template-columns:1fr}}
