.bg-dealer-page{max-width:1400px;margin:32px auto;padding:0 24px 40px;color:#233247;font:15px/1.6 system-ui,sans-serif}.bg-dealer-page h1{font-size:30px;font-weight:700;margin:8px 0 16px}.bg-dealer-welcome{max-width:1100px;margin:auto;padding:36px;background:#fff;border:1px solid #e0e5eb;border-radius:6px}.bg-dealer-welcome>p{max-width:800px}.bg-dealer-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:32px 0}.bg-dealer-steps article{border-top:2px solid #efb321;padding-top:20px}.bg-dealer-steps span{display:inline-flex;justify-content:center;align-items:center;width:32px;height:32px;background:#fff5d8;border-radius:50%;font-weight:700}.bg-dealer-steps h2{font-size:18px;margin:14px 0 8px}.bg-dealer-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.bg-dealer-actions a{padding:11px 18px;border:1px solid #17324d;border-radius:4px;color:#17324d;text-decoration:none}.bg-dealer-actions .bg-dealer-primary{background:#17324d;color:#fff}.bg-dealer-note{color:#677586;font-size:13px}.bg-dealer-top{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid #e0e5eb;border-radius:6px;padding:24px;margin-bottom:20px}.bg-dealer-top a{color:#17324d}.bg-dealer-shell{display:grid;grid-template-columns:225px minmax(0,1fr);gap:24px}.bg-dealer-shell>aside{background:#fff;border:1px solid #e0e5eb;border-radius:6px;padding:12px;height:fit-content}.bg-dealer-shell #tabs{display:flex;flex-direction:column;gap:4px}.bg-dealer-shell #tabs button{text-align:left;border:0;background:transparent;padding:12px;border-radius:4px;font:inherit;color:#344459;cursor:pointer}.bg-dealer-shell #tabs button.active{background:#17324d;color:#fff}.bg-dealer-shell .panel{background:#fff;border:1px solid #e0e5eb;border-radius:6px;padding:24px;margin-bottom:20px}.bg-dealer-shell h2{font-size:21px;margin:0 0 16px}.bg-dealer-shell h3{font-size:17px}.bg-dealer-shell .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.bg-dealer-shell .field{display:flex;flex-direction:column;gap:6px}.bg-dealer-shell input,.bg-dealer-shell select,.bg-dealer-shell textarea{width:100%;border:1px solid #c9d2dd;border-radius:4px;padding:10px;font:inherit;background:#fff}.bg-dealer-shell input[type=checkbox]{width:auto}.bg-dealer-shell button:not(#tabs button),.bg-dealer-shell a.button{padding:9px 14px;border:1px solid #bcc9d5;border-radius:4px;font:inherit;cursor:pointer;color:#17324d;background:#fff}.bg-dealer-shell button.primary{background:#17324d;color:#fff}.bg-dealer-shell .actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.bg-dealer-shell .table-wrap{overflow:auto}.bg-dealer-shell table{width:100%;border-collapse:collapse}.bg-dealer-shell th,.bg-dealer-shell td{padding:12px;border-bottom:1px solid #e0e5eb;text-align:left}.bg-dealer-shell th{background:#f7f9fb}.bg-dealer-shell #notice:not(:empty){padding:14px;background:#e4f2e9;margin-bottom:16px}.bg-dealer-shell #notice.error{background:#fce8e8}.bg-dealer-shell .product img{width:100%;height:160px;object-fit:contain}.bg-dealer-shell .stats{display:flex;gap:20px;flex-wrap:wrap}.bg-dealer-shell .stats strong{display:block;font-size:23px}.bg-dealer-shell .muted{color:#677586}@media(max-width:760px){.bg-dealer-page{padding:0 12px}.bg-dealer-welcome{padding:22px}.bg-dealer-steps{grid-template-columns:1fr;gap:18px}.bg-dealer-shell{grid-template-columns:1fr}.bg-dealer-shell #tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.bg-dealer-shell .panel{padding:16px}.bg-dealer-top{padding:18px}.bg-dealer-page h1{font-size:25px}}
body:has(.bg-dealer-page) dialog{border:1px solid #d6dfe8;border-radius:6px;padding:24px;width:min(760px,94vw);max-height:90vh;overflow:auto;color:#233247;font:15px/1.6 system-ui,sans-serif}body:has(.bg-dealer-page) dialog::backdrop{background:#14263888}body:has(.bg-dealer-page) dialog .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}body:has(.bg-dealer-page) dialog .field{display:flex;flex-direction:column;gap:6px}body:has(.bg-dealer-page) dialog input,body:has(.bg-dealer-page) dialog select,body:has(.bg-dealer-page) dialog textarea{width:100%;padding:10px;border:1px solid #c9d2dd;border-radius:4px;font:inherit}body:has(.bg-dealer-page) dialog button{padding:9px 14px;margin:8px 4px 8px 0;border:1px solid #bcc9d5;border-radius:4px;font:inherit;background:#fff;color:#17324d;cursor:pointer}body:has(.bg-dealer-page) dialog button.primary{background:#17324d;color:#fff}
.bg-dealer-shell.is-application{display:block;max-width:900px;margin:auto}.bg-dealer-shell.is-application>aside{display:none}.bg-dealer-shell .bg-application-panel{padding:30px;border-top:3px solid #f3b800;box-shadow:0 3px 14px #1426380a}.bg-application-panel>h2{font-size:25px;margin-bottom:10px}.bg-application-panel>.muted{line-height:1.7;margin-bottom:24px}.bg-application-form .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}.bg-application-form .field>span{font-size:14px;font-weight:600;color:#344459}.bg-application-form .field input,.bg-application-form .field textarea{border:1px solid #cbd5df;background:#fff;padding:12px;min-height:46px;border-radius:5px}.bg-application-form .field textarea{min-height:110px;resize:vertical}.bg-application-form .full-width{grid-column:1/-1}.bg-application-form .actions{justify-content:flex-end;border-top:1px solid #e7ecf1;padding-top:20px;margin-top:24px}.bg-application-form button.primary{min-height:44px;padding:11px 22px;border-radius:5px;font-weight:600}.bg-application-form :focus-visible{outline:3px solid #e7b42766;outline-offset:2px}@media(max-width:600px){.bg-dealer-shell .bg-application-panel{padding:20px}.bg-application-form .grid{grid-template-columns:1fr}.bg-application-form .actions button{width:100%}.bg-dealer-top{flex-wrap:wrap;gap:12px}.bg-application-panel>h2{font-size:22px}}
@media(max-width:600px){.bg-dealer-shell .table-wrap table{display:block;min-width:0!important;width:100%}.bg-dealer-shell .table-wrap thead{display:none}.bg-dealer-shell .table-wrap tbody{display:block}.bg-dealer-shell .table-wrap tbody tr{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid #dce3eb;border-radius:5px;margin:12px 0;padding:8px;background:#fff}.bg-dealer-shell .table-wrap td{display:block;min-width:0;max-width:none;width:100%;border:0;padding:7px;overflow-wrap:anywhere}.bg-dealer-shell td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:#66768a;font-weight:600;margin-bottom:3px}}

.bg-preview-action{margin:0 0 12px}.bg-document-preview{width:min(1100px,96vw)!important;max-width:96vw;max-height:90vh;padding:20px;background:white;color:#172b45}.bg-preview-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.bg-preview-controls p{flex-basis:100%;font-size:13px}.bg-print-page{background:#fff;color:#111;padding:16px}.bg-print-page h1{font-size:23px}.bg-print-page table{width:100%;min-width:0!important;border-collapse:collapse;table-layout:auto}.bg-print-page th,.bg-print-page td{border:1px solid #ccc;padding:7px;overflow-wrap:anywhere;min-width:0!important;white-space:normal!important}.bg-print-page .table-wrap{overflow:auto}.bg-document-preview::backdrop{background:rgba(10,25,45,.55)}
@media print{@page{size:A4 landscape;margin:12mm}body.bg-printing-document> :not(.bg-document-preview){display:none!important}body.bg-printing-document .bg-document-preview{display:block!important;position:static!important;inset:auto!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;border:0!important}body.bg-printing-document .bg-preview-controls{display:none!important}.bg-print-page{padding:0}.bg-print-page .panel{border:0;box-shadow:none;padding:0}.bg-print-page .table-wrap{overflow:visible}.bg-print-page table{display:table!important}.bg-print-page thead{display:table-header-group!important}.bg-print-page tbody{display:table-row-group!important}.bg-print-page tr{display:table-row!important;break-inside:avoid}.bg-print-page td,.bg-print-page th{display:table-cell!important;font-size:9pt}.bg-print-page td::before{display:none!important}dialog::backdrop{display:none}}

.bg-preview-controls{position:sticky;top:0;z-index:2;background:white;padding:8px 0;border-bottom:1px solid #ddd}.bg-pdf-result{padding:12px;background:#edf7f2}.bg-pdf-result a{display:inline-block;padding:9px 16px;background:#173e65;color:#fff;border-radius:4px}.bg-pdf-error{color:#a11}
@media print{.bg-pdf-result,.bg-pdf-error{display:none!important}}

@media screen{.bg-print-page table{min-width:680px!important}.bg-print-page td[data-label="Tutar"],.bg-print-page td[data-label="Limit"]{white-space:nowrap!important}.bg-print-page .table-wrap{max-width:100%;overflow-x:auto}}

/* Measured controls keep readable labels at narrow widths and browser zoom. */
.bg-dealer-shell .actions{align-items:stretch;gap:8px;min-width:0}
.bg-dealer-shell .actions>button,.bg-dealer-shell .actions>a.button{flex:0 1 auto;min-width:0;max-width:100%;min-height:42px;white-space:normal;overflow-wrap:anywhere;line-height:1.4;text-align:center;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:480px){.bg-dealer-shell .actions>button,.bg-dealer-shell .actions>a.button{flex:1 1 140px}}
@media(max-width:350px){.bg-dealer-shell .actions>button,.bg-dealer-shell .actions>a.button{flex-basis:100%}}

body:has(.bg-dealer-page) dialog .actions button{min-width:0;max-width:100%;min-height:42px;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
@media(max-width:480px){body:has(.bg-dealer-page) dialog .actions button{flex:1 1 140px}}
