/* B2B application shell follows POSGO Operations: dark sidebar, white cards, cyan actions. */
.b2b-body{margin:0;background:#f6f8fc;color:#222333;font-family:Inter,"Segoe UI",Arial,sans-serif}
#b2b-root{--ink:#222333;--muted:#7a8194;--line:#e6edf5;--brand:#00a0b8;--sidebar:#1f1e2d;box-sizing:border-box;min-height:100vh;color:var(--ink);font-size:14px}
#b2b-root *{box-sizing:border-box}
#b2b-root button,#b2b-root input,#b2b-root select,#b2b-root textarea{font:inherit}
#b2b-root button{cursor:pointer;border:1px solid var(--line);border-radius:5px;padding:10px 16px;background:#fff;color:var(--ink);font-size:13px;font-weight:500}
#b2b-root button:hover{border-color:var(--brand);color:var(--brand)}
#b2b-root button:disabled{opacity:.55;cursor:not-allowed}
#b2b-root .b2b-primary{background:var(--brand);border-color:var(--brand);color:#fff}
#b2b-root .b2b-primary:hover{background:#008da3;color:#fff}
#b2b-root button:focus-visible,#b2b-root summary:focus-visible,#b2b-root a:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
#b2b-root h1,#b2b-root h2,#b2b-root h3{color:inherit;font-weight:600}
#b2b-root h1{font-size:21px;margin:0}
#b2b-root h2{font-size:20px;margin:0 0 18px}
#b2b-root h3{font-size:17px;margin:22px 0 14px}
#b2b-root p{color:var(--muted);font-size:14px;line-height:1.65}
#b2b-root .b2b-icon{width:21px;height:21px;flex-shrink:0}
#b2b-root .b2b-icon-button{padding:6px;border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center}
#b2b-root summary{list-style:none;cursor:pointer}
#b2b-root summary::-webkit-details-marker{display:none}
#b2b-root .b2b-app{min-height:100vh}
#b2b-root.b2b-app{display:grid;grid-template-columns:260px minmax(0,1fr)}
#b2b-root .b2b-sidebar{background:var(--sidebar);color:#9ba2b9;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;z-index:40;border-right:1px solid #313040;min-width:0}
#b2b-root .b2b-sidebar-logo{height:92px;min-height:92px;padding:10px 16px;display:flex;gap:12px;align-items:center;border-bottom:1px solid #313040}
#b2b-root .b2b-sidebar-logo>a{display:block;min-width:0;flex:1}
#b2b-root .b2b-brand-image{width:100%;max-width:194px;height:70px;object-fit:contain;display:block}
#b2b-root .b2b-sidebar-logo .b2b-icon-button{color:#85899c;padding:0}
#b2b-root .b2b-avatar{width:42px;height:42px;position:relative;display:inline-flex;flex-shrink:0}
#b2b-root .b2b-avatar img{width:100%;height:100%;object-fit:cover;border-radius:7px}
#b2b-root .b2b-avatar>span{width:9px;height:9px;border-radius:50%;background:#80be66;border:2px solid #fff;position:absolute;right:-1px;bottom:0}
#b2b-root .b2b-profile-text{min-width:0;display:grid;gap:3px}
#b2b-root .b2b-profile-text strong{font-size:14px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#b2b-root .b2b-profile-text small{font-size:12px;color:#858da5;font-weight:500}
#b2b-root .b2b-sidebar-profile{display:flex;align-items:center;gap:12px;padding:20px 16px;border-bottom:1px solid #313040;color:#e6e5ee}
#b2b-root .b2b-sidebar-branch{padding:16px;border-bottom:1px solid #313040}
#b2b-root .b2b-sidebar-branch>small{display:block;font-size:9px;letter-spacing:.6px;color:#82899f;margin-bottom:9px}
#b2b-root .b2b-branch-switch{position:relative}
#b2b-root .b2b-branch-switch>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#2d2c3e;border:1px solid #3b3a4b;border-radius:5px;padding:11px 10px;color:#dadce6;font-size:12px}
#b2b-root .b2b-branch-switch>summary>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#b2b-root .b2b-branch-switch>summary>.b2b-icon{width:14px;height:14px;transform:rotate(90deg)}
#b2b-root .b2b-branch-switch[open]>summary>.b2b-icon{transform:rotate(-90deg)}
#b2b-root .b2b-branch-switch>div{position:absolute;top:calc(100% + 4px);left:0;right:0;border:1px solid #464557;border-radius:5px;padding:5px;background:#292838;max-height:320px;overflow:auto;z-index:60;box-shadow:0 12px 24px #0004}
#b2b-root .b2b-branch-switch button{display:block;width:100%;text-align:left;white-space:normal;border:0;padding:11px 9px;background:transparent;color:#c6c9d6;border-radius:3px;font-size:12px}
#b2b-root .b2b-branch-switch button:hover,#b2b-root .b2b-branch-switch button.selected{background:#3a394a;color:#2ac3d5}
#b2b-root .b2b-menu-search{margin:20px 16px;display:flex;align-items:center;gap:10px;padding:11px;background:#2c2b3b;border-radius:5px}
#b2b-root .b2b-menu-search>.b2b-icon{width:17px;height:17px;color:#c1c2ce}
#b2b-root .b2b-menu-search input{background:transparent;border:0;padding:0;outline:0;width:100%;min-width:0;color:#d4d5df;font-size:12px}
#b2b-root .b2b-menu-search input::placeholder{color:#9b9db0}
#b2b-root .b2b-sidebar-nav{overflow:auto;flex:1;border-top:1px solid #313040;padding:13px 9px 20px;scrollbar-width:thin}
#b2b-root .b2b-nav-home,#b2b-root .b2b-nav-group>summary{display:flex;align-items:center;gap:13px;width:100%;padding:14px 10px;border:0;border-radius:5px;background:transparent;color:#9ca3bc;text-align:left;font-size:13px;font-weight:600;letter-spacing:.2px}
#b2b-root .b2b-nav-home>.b2b-icon,#b2b-root .b2b-nav-group>summary>.b2b-icon:first-child{color:#eeedf6}
#b2b-root .b2b-nav-group>summary>span{flex:1}
#b2b-root .b2b-nav-group>summary>.b2b-icon:last-child{width:16px;height:16px;padding:1px;border:1px solid #00a0b848;border-radius:3px;color:var(--brand)}
#b2b-root .b2b-nav-group[open]>summary>.b2b-icon:last-child{transform:rotate(90deg)}
#b2b-root .b2b-nav-home.selected,#b2b-root .b2b-nav-home.selected>.b2b-icon,#b2b-root .b2b-nav-group.active>summary,#b2b-root .b2b-nav-home:hover,#b2b-root .b2b-nav-group>summary:hover{color:var(--brand)}
#b2b-root .b2b-submenu{margin:0 12px 5px 33px;border-left:1px solid #3d3b4f;padding-left:11px;display:grid;gap:3px}
#b2b-root .b2b-nav-item{width:100%;border:0;background:transparent;text-align:left;color:#9ba2b9;font-size:12px;padding:10px 8px;border-radius:4px}
#b2b-root .b2b-nav-item.selected,#b2b-root .b2b-nav-item:hover{color:#00b1c8;background:#292838}
#b2b-root .b2b-sidebar-footer{padding:14px 20px;border-top:1px solid #313040;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
#b2b-root .b2b-sidebar-footer small{display:block;font-size:10px;color:#6e738b;margin-top:3px}
#b2b-root .b2b-main{min-width:0}
#b2b-root .b2b-topbar{height:92px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 30px;background:linear-gradient(165deg,#fff 15%,#faf2ff 50%,#fff 70%,#e9f5ff);position:sticky;top:0;z-index:30;border-bottom:1px solid #f0f3f8}
#b2b-root .b2b-page-title{min-width:0}
#b2b-root .b2b-page-title>div{display:flex;align-items:center;gap:7px;margin-top:5px;color:#8b91a3;font-size:12px}
#b2b-root .b2b-page-title>div>.b2b-icon{width:14px;height:14px;color:#0f9b78}
#b2b-root .b2b-topbar-right{display:flex;align-items:center;gap:22px}
#b2b-root .b2b-refresh{padding:7px 12px;background:#fff8;border:1px solid #e5eaf1;color:#737c92}
#b2b-root .b2b-profile-menu{position:relative}
#b2b-root .b2b-profile-menu>summary{display:flex;align-items:center;gap:10px}
#b2b-root .b2b-profile-menu>summary>.b2b-icon{width:13px;height:13px;transform:rotate(90deg);color:#8690a3}
#b2b-root .b2b-profile-dropdown{position:absolute;right:0;top:calc(100% + 14px);padding:8px;width:214px;border:1px solid #edf0f7;border-radius:6px;background:#fff;box-shadow:0 10px 30px #27314514;z-index:60}
#b2b-root .b2b-profile-dropdown button{display:flex;align-items:center;gap:12px;width:100%;padding:12px 10px;border:0;text-align:left}
#b2b-root .b2b-profile-dropdown .b2b-icon{padding:4px;background:#f4f6fb;width:30px;height:30px;border-radius:5px}
#b2b-root .b2b-mobile-toggle{display:none}
#b2b-root .b2b-workspace{padding:26px 30px;max-width:1800px;margin:auto}
#b2b-root .b2b-card{border:1px solid var(--line);border-radius:8px;background:#fff;padding:24px;margin-bottom:24px;box-shadow:0 3px 8px #1e294704}
#b2b-root .b2b-card>h2:first-child{margin:-24px -24px 22px;padding:22px 24px;border-bottom:1px solid var(--line)}
#b2b-root .b2b-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
#b2b-root label{display:block;font-size:13px;font-weight:500;letter-spacing:.2px;margin-bottom:7px}
#b2b-root input,#b2b-root select,#b2b-root textarea{width:100%;min-width:0;border:1px solid #d1d2d6;background:#f8f8f8;border-radius:5px;padding:12px;color:#34383d}
#b2b-root input:focus,#b2b-root select:focus,#b2b-root textarea:focus{outline:2px solid #00a0b820;border-color:var(--brand)}
#b2b-root input[type=checkbox],#b2b-root input[type=radio]{width:auto;accent-color:var(--brand);flex-shrink:0}
#b2b-root .b2b-check{display:flex;align-items:flex-start;gap:9px;font-weight:400;margin:0}
#b2b-root .b2b-branch-assignments{grid-column:1/-1;padding:18px;border:1px solid var(--line);border-radius:5px;margin:0;min-width:0}
#b2b-root .b2b-branch-assignments legend{font-size:13px;font-weight:600;padding:0 7px}
#b2b-root .b2b-branch-assignments p{margin:0 0 14px;font-size:12px}
#b2b-root .b2b-assignment-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#b2b-root .b2b-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:20px}
#b2b-root form>.b2b-actions{justify-content:flex-end}
#b2b-root .b2b-link{border:0;padding:0;background:transparent;color:var(--brand);text-align:left}
#b2b-root .b2b-table-wrap{overflow:auto}
#b2b-root table{width:100%;border-collapse:collapse;font-size:13px;border:1px solid var(--line)}
#b2b-root th,#b2b-root td{padding:14px 12px;border-bottom:1px solid var(--line);white-space:nowrap;text-align:left}
#b2b-root th{font-size:12px;font-weight:600;background:#fff;color:#444757;border-bottom:2px solid var(--line)}
#b2b-root tbody tr:hover{background:#f9fbff}
#b2b-root td button{padding:7px 11px;font-size:12px;background:#eef8fb;border-color:#d8edf3;color:#008ba1;margin:2px}
#b2b-root .b2b-badge{display:inline-block;border-radius:4px;padding:4px 8px;background:#80bd69;color:#fff;font-size:11px;font-weight:600}
#b2b-root .b2b-empty{padding:30px 16px;text-align:center;color:var(--muted);font-size:13px}
#b2b-root .b2b-notice{padding:13px 16px;border-radius:5px;background:#fff8e2;color:#91661e;margin-bottom:20px;font-size:13px}
#b2b-root .b2b-notice.error{background:#fff0ee;color:#b03e3d}
#b2b-root .b2b-notice.success{background:#e9f6e4;color:#4b793c}
#b2b-root .b2b-loading{padding:70px 20px;text-align:center;color:var(--muted)}
#b2b-root .b2b-stats{display:flex;gap:20px;margin-bottom:24px;flex-wrap:wrap}
#b2b-root .b2b-stats>div{background:#fff;border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:5px;padding:18px 25px;min-width:190px}
#b2b-root .b2b-stats strong{display:block;font-size:24px;color:var(--ink);margin-bottom:4px}
#b2b-root .b2b-stats span{font-size:12px;color:var(--muted)}
#b2b-root .b2b-overview-heading h2{font-size:25px;margin:0}
#b2b-root .b2b-overview-heading p{margin:7px 0 24px}
#b2b-root .b2b-overview-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:22px;margin-bottom:26px}
#b2b-root .b2b-overview-card{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e3e6eb;border-left:4px solid #24c79c;padding:22px;text-align:left;background:#fff;border-radius:5px;box-shadow:0 7px 13px #27314510}
#b2b-root .b2b-overview-card:nth-child(2){border-left-color:#427cfa}
#b2b-root .b2b-overview-card:nth-child(3){border-left-color:#e78126}
#b2b-root .b2b-overview-card:nth-child(4){border-left-color:#354b5c}
#b2b-root .b2b-overview-card small{display:block;font-size:13px;color:#7b8297;margin-bottom:12px}
#b2b-root .b2b-overview-card strong{font-size:23px;color:#25283a}
#b2b-root .b2b-overview-icon{width:48px;height:48px;border-radius:50%;background:#24c79c;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
#b2b-root .b2b-overview-card:nth-child(2) .b2b-overview-icon{background:#427cfa}
#b2b-root .b2b-overview-card:nth-child(3) .b2b-overview-icon{background:#e78126}
#b2b-root .b2b-overview-card:nth-child(4) .b2b-overview-icon{background:#354b5c}
#b2b-root .b2b-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-bottom:24px}
#b2b-root .b2b-kpi{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:106px;border:0;border-radius:7px;padding:20px 22px;color:#fff;text-align:left;box-shadow:0 7px 14px #27314520;transition:transform .15s,box-shadow .15s}
#b2b-root .b2b-kpi:hover,#b2b-root .b2b-kpi:focus-visible{color:#fff;border:0;transform:translateY(-2px);box-shadow:0 11px 22px #2731452e}
#b2b-root .b2b-kpi-text{min-width:0}
#b2b-root .b2b-kpi strong{display:block;font-size:26px;font-weight:700;line-height:1.1}
#b2b-root .b2b-kpi .b2b-kpi-label{display:block;font-size:13px;margin-top:7px;opacity:.96}
#b2b-root .b2b-kpi small{display:block;font-size:11px;margin-top:5px;opacity:.78}
#b2b-root .b2b-kpi .b2b-icon{width:46px;height:46px;opacity:.3;color:#fff}
#b2b-root .b2b-kpi.is-orders{background:linear-gradient(135deg,#ee3d6d 0%,#cf1f55 100%)}
#b2b-root .b2b-kpi.is-collected{background:linear-gradient(135deg,#a273e8 0%,#7d4bd6 100%)}
#b2b-root .b2b-kpi.is-balance{background:linear-gradient(135deg,#4cae6c 0%,#2f9150 100%)}
#b2b-root .b2b-kpi.is-open{background:linear-gradient(135deg,#f0a13c 0%,#d97f14 100%)}
#b2b-root .b2b-kpi.is-balance.is-negative{background:linear-gradient(135deg,#5aa3dc 0%,#3079b8 100%)}
#b2b-root dialog{width:min(960px,95vw);max-width:min(960px,95vw);max-height:90vh;margin:auto;padding:0;border:0;border-radius:14px;background:transparent;color:var(--ink);overflow:visible;box-shadow:0 25px 60px -15px rgba(15,23,42,0.35)}
#b2b-root dialog.b2b-wide-dialog{width:min(1200px,96vw)!important;max-width:min(1200px,96vw)!important}
#b2b-root dialog:not(:has(.b2b-modal-card)){background:#fff;padding:24px;overflow:auto;border:1px solid #e2e8f0}
#b2b-root dialog::backdrop{background:rgba(15,23,42,0.6);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);animation:b2bBackdropFadeIn 0.2s ease-out}
@keyframes b2bBackdropFadeIn{from{opacity:0}to{opacity:1}}
#b2b-root dialog[open]{animation:b2bModalScaleIn 0.22s cubic-bezier(0.16,1,0.3,1)}
@keyframes b2bModalScaleIn{from{opacity:0;transform:scale(0.96) translateY(-8px)}to{opacity:1;transform:scale(1) translateY(0)}}
#b2b-root .b2b-modal-card{display:flex;flex-direction:column;background:#fff;border-radius:14px;border:1px solid rgba(226,232,240,0.9);max-height:90vh;overflow:hidden;box-shadow:0 20px 45px rgba(15,23,42,0.18)}
#b2b-root .b2b-modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;background:#fff;border-bottom:1px solid #edf2f7;flex-shrink:0}
#b2b-root .b2b-modal-title{margin:0;font-size:1.15rem;font-weight:700;color:#1e293b;line-height:1.35;letter-spacing:-0.01em;display:flex;align-items:center;gap:8px}
#b2b-root .b2b-modal-close{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border-radius:8px;background:#f1f5f9;border:1px solid #e2e8f0;color:#64748b;font-size:16px;cursor:pointer;transition:all 0.15s ease-in-out;flex-shrink:0;margin:0}
#b2b-root .b2b-modal-close:hover{background:#fee2e2;border-color:#fca5a5;color:#ef4444;transform:scale(1.05)}
#b2b-root .b2b-modal-close:active{transform:scale(0.95)}
#b2b-root .b2b-modal-close:focus{outline:0;box-shadow:0 0 0 3px rgba(239,68,68,0.2)}
#b2b-root .b2b-modal-close i{pointer-events:none;font-size:16px;line-height:1}
#b2b-root .b2b-modal-body{padding:24px;overflow-y:auto;overflow-x:hidden;flex:1 1 auto;max-height:calc(90vh - 75px);color:var(--ink);background:#fff}
#b2b-root .b2b-modal-body::-webkit-scrollbar{width:6px;height:6px}
#b2b-root .b2b-modal-body::-webkit-scrollbar-track{background:transparent}
#b2b-root .b2b-modal-body::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}
#b2b-root .b2b-modal-body::-webkit-scrollbar-thumb:hover{background:#94a3b8}
#b2b-root .b2b-modal-desc{margin:0 0 18px 0;font-size:0.875rem;color:#64748b;line-height:1.6}
#b2b-root .b2b-modal-body .dataTables_wrapper{margin-top:4px;position:relative;width:100%}
#b2b-root .b2b-modal-body .dataTables_wrapper:after{content:'';display:block;clear:both}
#b2b-root .b2b-modal-body .dataTables_length{float:left;margin-bottom:16px}
#b2b-root .b2b-modal-body .dataTables_filter{float:right;margin-bottom:16px}
#b2b-root .b2b-modal-body .dataTables_length label,#b2b-root .b2b-modal-body .dataTables_filter label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:#475569;margin:0}
#b2b-root .b2b-modal-body .dataTables_length select{width:auto;min-width:75px;padding:6px 12px;border-radius:6px;border:1px solid #cbd5e1;background-color:#fff;font-size:13px;color:#1e293b;transition:border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out}
#b2b-root .b2b-modal-body .dataTables_filter input{width:220px;padding:6px 12px;border-radius:6px;border:1px solid #cbd5e1;background-color:#fff;font-size:13px;color:#1e293b;transition:border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out}
#b2b-root .b2b-modal-body .dataTables_length select:focus,#b2b-root .b2b-modal-body .dataTables_filter input:focus{outline:none;border-color:#00a0b7;box-shadow:0 0 0 3px rgba(0,160,183,0.15)}
#b2b-root .b2b-modal-body .b2b-table-wrap{border:1px solid #e2e8f0;border-radius:8px;overflow-x:auto;background:#fff}
#b2b-root .b2b-modal-body table{border:none;margin:0;width:100%}
#b2b-root .b2b-modal-body th{background:#f8fafc;color:#475569;font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:0.3px;border-bottom:2px solid #e2e8f0;padding:12px 14px}
#b2b-root .b2b-modal-body td{padding:12px 14px;border-bottom:1px solid #f1f5f9;font-size:13px;color:#334155}
#b2b-root .b2b-modal-body tbody tr:hover{background-color:#f8fafc}
#b2b-root .b2b-modal-body .dataTables_info{float:left;font-size:13px;color:#64748b;margin-top:14px}
#b2b-root .b2b-modal-body .dataTables_paginate{float:right;margin-top:14px;display:flex;gap:4px;align-items:center}
#b2b-root .b2b-modal-body .paginate_button{padding:6px 12px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#475569;font-size:13px;font-weight:500;cursor:pointer;transition:all 0.15s ease-in-out}
#b2b-root .b2b-modal-body .paginate_button:hover:not(.disabled):not(.current){background:#f1f5f9;border-color:#cbd5e1;color:#1e293b}
#b2b-root .b2b-modal-body .paginate_button.current{background:#00a0b7;border-color:#00a0b7;color:#fff}
#b2b-root .b2b-modal-body .b2b-detail-grid{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:16px 20px;gap:14px 20px;margin-bottom:20px}
#b2b-root .b2b-modal-body .b2b-detail-grid small{font-size:11px;font-weight:600;text-transform:uppercase;color:#64748b;margin-bottom:3px;letter-spacing:0.3px}
#b2b-root .b2b-modal-body h3{font-size:1rem;font-weight:600;color:#1e293b;margin:18px 0 12px}
#b2b-root .b2b-modal-body > form > .b2b-actions:last-child,#b2b-root .b2b-modal-body > .b2b-actions:last-child{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:20px;padding-top:16px;border-top:1px solid #edf2f7}
#b2b-root .b2b-modal-body .b2b-grid > div:only-child{grid-column:1/-1}
#b2b-root .b2b-modal-body .b2b-grid > div:has(textarea){grid-column:1/-1}
#b2b-root .b2b-modal-body .b2b-grid > .b2b-check{grid-column:1/-1}
#b2b-root .b2b-modal-body input:not([type=checkbox]):not([type=radio]),#b2b-root .b2b-modal-body select,#b2b-root .b2b-modal-body textarea{border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:9px 12px;font-size:13px;color:#1e293b;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}
#b2b-root .b2b-modal-body input:focus,#b2b-root .b2b-modal-body select:focus,#b2b-root .b2b-modal-body textarea:focus{outline:none;border-color:#00a0b7;box-shadow:0 0 0 3px rgba(0,160,183,0.15)}
#b2b-root .b2b-modal-form-grid{display:grid;grid-template-columns:1fr 1.35fr;gap:20px;align-items:stretch;margin-top:4px}
#b2b-root .b2b-modal-form-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px;display:flex;flex-direction:column;box-shadow:0 1px 4px rgba(15,23,42,0.05);transition:all .15s ease-in-out}
#b2b-root .b2b-modal-form-card:hover{border-color:#cbd5e1;box-shadow:0 4px 12px rgba(15,23,42,0.08)}
#b2b-root .b2b-modal-form-card-header{display:flex;align-items:center;gap:12px;padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid #f1f5f9}
#b2b-root .b2b-form-card-icon{width:38px;height:38px;border-radius:10px;background:#e6f6f8;color:#00a0b7;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}
#b2b-root .b2b-modal-form-card-header h4{margin:0;font-size:15px;font-weight:700;color:#1e293b;line-height:1.25}
#b2b-root .b2b-modal-form-card-header small{display:block;font-size:11.5px;color:#64748b;margin-top:2px}
#b2b-root .b2b-subcard-form{display:flex;flex-direction:column;flex:1}
#b2b-root .b2b-subcard-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#b2b-root .b2b-form-field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
#b2b-root .b2b-form-field label{font-size:12.5px;font-weight:600;color:#334155;margin:0}
#b2b-root .b2b-modal-form-card-footer{margin-top:auto;padding-top:16px;border-top:1px solid #f1f5f9;display:flex;align-items:center;justify-content:flex-end}
#b2b-root .b2b-modal-form-card-footer button{min-width:140px}
@media(max-width:768px){#b2b-root .b2b-modal-form-grid{grid-template-columns:1fr}}
@media(max-width:680px){#b2b-root dialog{width:96vw;max-width:96vw;max-height:94vh}#b2b-root .b2b-modal-header{padding:14px 18px}#b2b-root .b2b-modal-title{font-size:1.05rem}#b2b-root .b2b-modal-body{padding:18px;max-height:calc(94vh - 65px)}#b2b-root .b2b-modal-body .dataTables_length,#b2b-root .b2b-modal-body .dataTables_filter{float:none;width:100%;margin-bottom:12px}#b2b-root .b2b-modal-body .dataTables_filter input{width:100%}#b2b-root .b2b-modal-body .dataTables_info,#b2b-root .b2b-modal-body .dataTables_paginate{float:none;text-align:left;margin:10px 0}}
#b2b-root .b2b-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:22px}
#b2b-root .b2b-detail-grid small{display:block;color:var(--muted);margin-bottom:5px}
#b2b-root [hidden]{display:none!important}
#b2b-root .b2b-print{display:none}
#b2b-root .b2b-import-consent{margin-top:18px;padding:15px;background:#fff8e2;border:1px solid #ead9b9;border-radius:5px;line-height:1.6}
#b2b-root input[readonly]{background:#eef0f5;color:#798196}
#b2b-root.is-collapsed{grid-template-columns:82px minmax(0,1fr)}
#b2b-root.is-collapsed .b2b-sidebar-logo{height:92px;justify-content:center;padding:16px}
#b2b-root.is-collapsed .b2b-sidebar-logo>a,#b2b-root.is-collapsed .b2b-sidebar-profile .b2b-profile-text,#b2b-root.is-collapsed .b2b-sidebar-branch,#b2b-root.is-collapsed .b2b-menu-search,#b2b-root.is-collapsed .b2b-sidebar-footer,#b2b-root.is-collapsed .b2b-nav-group>summary>span,#b2b-root.is-collapsed .b2b-nav-group>summary>.b2b-icon:last-child,#b2b-root.is-collapsed .b2b-submenu,#b2b-root.is-collapsed .b2b-nav-home>span{display:none}
#b2b-root.is-collapsed .b2b-sidebar-profile{justify-content:center;padding:20px 10px}
#b2b-root.is-collapsed .b2b-nav-group>summary,#b2b-root.is-collapsed .b2b-nav-home{justify-content:center}
#b2b-root.b2b-auth{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(430px,1fr);min-height:100vh;background:#111318;color:#edeef1}
#b2b-root .b2b-auth-visual{min-height:100vh;background:linear-gradient(180deg,#11131818 0%,#11131850 45%,#111318e8 100%),url('/assets/images/login.webp') center/cover;display:flex;align-items:flex-end;padding:60px}
#b2b-root .b2b-auth-caption{max-width:540px}
#b2b-root .b2b-auth-caption>span{font-size:10px;letter-spacing:2px;color:#22b09c;border:1px solid #22b09c50;padding:7px 12px;border-radius:20px}
#b2b-root .b2b-auth-caption h1{font-family:Georgia,serif;font-size:44px;line-height:1.2;margin:25px 0}
#b2b-root .b2b-auth-caption p{color:#a6a8b4;max-width:360px}
#b2b-root .b2b-auth-panel{padding:60px 45px;display:flex;justify-content:center;align-items:center;border-left:1px solid #292c35}
#b2b-root .b2b-auth-inner{width:100%;max-width:370px}
#b2b-root .b2b-auth-brand{margin-bottom:44px}
#b2b-root .b2b-auth-brand .b2b-brand-image{max-width:155px;height:64px}
#b2b-root .b2b-auth-brand>span{font-size:9px;letter-spacing:1.6px;color:#6f7280;display:block;margin-top:6px}
#b2b-root .b2b-auth-inner h2{font-size:22px;font-weight:700;letter-spacing:-.5px;margin:0 0 10px}
#b2b-root .b2b-auth-inner>p{font-size:13px;color:#999da9;margin-bottom:28px}
#b2b-root .b2b-auth-inner label{color:#d0d2d9;font-size:12px}
#b2b-root .b2b-auth-inner input{background:#1c1f25;border:1px solid #343840;color:#edeef1;padding:14px}
#b2b-root .b2b-login-form{display:grid;gap:22px}
#b2b-root .b2b-auth-inner .b2b-primary{background:#087765;border-color:#087765;padding:15px;font-weight:600}
#b2b-root .b2b-auth-inner .b2b-primary:hover{background:#099681;color:#fff}
#b2b-root .b2b-branch-choices{display:grid;gap:9px;max-height:300px;overflow:auto;padding-right:4px;margin-top:30px;scrollbar-width:thin}
#b2b-root .b2b-branch-choice{display:flex;align-items:center;gap:13px;margin:0;padding:14px;border:1px solid #353941;border-radius:8px;background:#1a1d23;cursor:pointer;position:relative}
#b2b-root .b2b-branch-choice>input{position:absolute;opacity:0;width:1px;height:1px;padding:0}
#b2b-root .b2b-branch-choice:has(input:checked){border-color:#079783;background:#17332e}
#b2b-root .b2b-branch-choice:has(input:focus-visible){outline:2px solid #079783;outline-offset:1px}
#b2b-root .b2b-choice-icon{width:42px;height:42px;background:#262a31;border:1px solid #363a42;border-radius:7px;display:flex;align-items:center;justify-content:center;color:#0ca58e;flex-shrink:0}
#b2b-root .b2b-choice-title{display:grid;gap:4px;min-width:0;flex:1}
#b2b-root .b2b-choice-title strong{font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#b2b-root .b2b-choice-title small{font-size:10px;color:#8c909d}
#b2b-root .b2b-choice-radio{width:17px;height:17px;border:1px solid #424751;border-radius:50%;flex-shrink:0}
#b2b-root .b2b-branch-choice:has(input:checked) .b2b-choice-radio{border:5px solid #14a68c}
#b2b-root .b2b-auth-actions{display:flex;gap:10px;margin-top:20px}
#b2b-root .b2b-auth-actions>button:first-child{width:35%;background:transparent;color:#9b9eaa;border:1px solid #343840;padding:14px}
#b2b-root .b2b-auth-actions>.b2b-primary{flex:1}
#b2b-root .b2b-auth-footnote{border-top:1px solid #292c35;margin-top:26px;padding-top:20px;font-size:10px;color:#676b79;text-align:center}
@media(max-width:1150px){#b2b-root.b2b-app{grid-template-columns:230px minmax(0,1fr)}#b2b-root .b2b-workspace{padding:24px 20px}#b2b-root .b2b-topbar{padding:14px 20px}#b2b-root.is-collapsed{grid-template-columns:82px minmax(0,1fr)}}
@media(max-width:850px){#b2b-root .b2b-grid,#b2b-root .b2b-assignment-options{grid-template-columns:1fr}#b2b-root .b2b-overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}#b2b-root.b2b-auth{grid-template-columns:minmax(0,1fr)}#b2b-root .b2b-auth-visual{display:none}#b2b-root .b2b-auth-panel{min-height:100vh;border:0;padding:40px 25px}}
@media(max-width:680px){#b2b-root.b2b-app,#b2b-root.is-collapsed{display:block}#b2b-root .b2b-sidebar{position:fixed;left:-270px;width:260px;transition:left .2s}#b2b-root.mobile-open .b2b-sidebar{left:0}#b2b-root .b2b-mobile-toggle{display:inline-flex;margin-left:auto}#b2b-root .b2b-topbar{height:76px;gap:10px;padding:10px 14px}#b2b-root .b2b-topbar-right{gap:8px}#b2b-root .b2b-topbar-right .b2b-profile-text,#b2b-root .b2b-topbar-right .b2b-refresh{display:none}#b2b-root .b2b-page-title{flex:1}#b2b-root .b2b-page-title h1{font-size:16px}#b2b-root .b2b-page-title>div{font-size:10px;max-width:175px;overflow:hidden;white-space:nowrap}#b2b-root .b2b-workspace{padding:18px 12px}#b2b-root .b2b-card{padding:18px}#b2b-root .b2b-card>h2:first-child{margin:-18px -18px 18px;padding:18px;font-size:17px}#b2b-root .b2b-overview-cards{gap:12px}#b2b-root .b2b-overview-card{padding:16px 12px;gap:8px}#b2b-root .b2b-overview-icon{width:34px;height:34px}#b2b-root .b2b-overview-card small{font-size:11px}#b2b-root .b2b-detail-grid{grid-template-columns:1fr}}
#b2b-root .dataTables_wrapper{position:relative;width:100%;min-width:0}
#b2b-root .dataTables_length{float:left;margin-bottom:18px}
#b2b-root .dataTables_filter{float:right;margin-bottom:18px}
#b2b-root .dataTables_length label,#b2b-root .dataTables_filter label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:400;margin:0}
#b2b-root .dataTables_length select{width:80px;margin:0;padding:8px}
#b2b-root .dataTables_filter input{width:190px;margin:0;padding:8px}
#b2b-root .dataTables_info{float:left;font-size:13px;margin-top:12px}
#b2b-root .dataTables_paginate{float:right;margin-top:12px;display:flex;gap:4px;align-items:center}
#b2b-root .dataTables_paginate span{display:flex;gap:4px}
#b2b-root .paginate_button{display:inline-block;padding:7px 10px;border:1px solid #e7ebf2;border-radius:4px;cursor:pointer;color:#536078}
#b2b-root .paginate_button.current{background:#00a0b7;border-color:#00a0b7;color:#fff}
#b2b-root .paginate_button.disabled{opacity:.5;cursor:default}
#b2b-root table.dataTable th.sorting{cursor:pointer}
#b2b-root table.dataTable th.sorting:after{content:' ↕';color:#b3bac7;font-size:11px}
#b2b-root table.dataTable th.sorting_asc:after{content:' ↑';color:#00a0b7}
#b2b-root table.dataTable th.sorting_desc:after{content:' ↓';color:#00a0b7}
#b2b-root table.dataTable thead th.sorting,
#b2b-root table.dataTable thead th.sorting_asc,
#b2b-root table.dataTable thead th.sorting_desc,
#b2b-root table.dataTable thead th.sorting_asc_disabled,
#b2b-root table.dataTable thead th.sorting_desc_disabled{background-image:none}
#b2b-root .dataTables_processing{position:absolute;top:65px;left:50%;transform:translateX(-50%);background:#fff;border:1px solid #e7ebf2;padding:12px;z-index:2}
#b2b-root .dataTables_wrapper:after{content:'';display:block;clear:both}
#b2b-root .b2b-export-format{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}
#b2b-root .b2b-export-format select{width:155px;margin:0;padding:9px}
@media(max-width:680px){#b2b-root .dataTables_filter,#b2b-root .dataTables_length,#b2b-root .dataTables_info,#b2b-root .dataTables_paginate{float:none;text-align:left;margin:10px 0}#b2b-root .dataTables_paginate{flex-wrap:wrap}}
@media print{.b2b-body{background:#fff}#b2b-root:has(.b2b-print){display:block;min-height:0}#b2b-root:has(.b2b-print)>.b2b-main,#b2b-root:has(.b2b-print)>.b2b-sidebar{display:none}#b2b-root .b2b-print{display:block;color:#000}#b2b-root .b2b-print th,#b2b-root .b2b-print td{white-space:normal;padding:6px;font-size:10px}#b2b-root .b2b-print .b2b-table-wrap{overflow:visible}#b2b-root .b2b-print thead{display:table-header-group}#b2b-root .b2b-print tr{break-inside:avoid}}

/* Sipariş kararı ve alıcı stok görünürlüğü */
#b2b-root .b2b-qty-input{width:120px;padding:7px 9px;border:1px solid #d1d5db;border-radius:6px;background:#fff}
#b2b-root .b2b-visibility{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:18px;margin-top:6px}
#b2b-root .b2b-visibility h3{margin:0 0 8px;font-size:14px}
#b2b-root .b2b-check-list{max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:10px;display:flex;flex-direction:column;gap:7px;background:#fff}
#b2b-root .b2b-check-list label.b2b-check{display:flex;gap:9px;align-items:flex-start;font-size:13px;line-height:1.4;margin:0;cursor:pointer}
#b2b-root .b2b-check-list label.b2b-check input{margin-top:2px}
#b2b-root .b2b-check-list small{color:var(--muted)}
#b2b-root #b2b-visibility-search{width:100%;margin-bottom:8px;padding:8px 10px;border:1px solid #d1d5db;border-radius:8px}
@media(max-width:900px){#b2b-root .b2b-visibility{grid-template-columns:1fr}}
/* Tasarim: modal ve bolum butonlari */
#b2b-root .b2b-dialog-x{display:none!important}
#b2b-root .b2b-section-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin-bottom:24px}
#b2b-root .b2b-section-btn{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e3e6eb;border-left:4px solid #427cfa;background:#fff;border-radius:5px;padding:16px 18px;text-align:left;box-shadow:0 5px 11px #27314510;cursor:pointer}
#b2b-root .b2b-section-btn:hover{transform:translateY(-1px);box-shadow:0 9px 16px #27314520}
#b2b-root .b2b-section-btn small{display:block;font-size:14px;font-weight:700;color:#25283a;margin-bottom:4px}
#b2b-root .b2b-section-btn em{display:block;font-style:normal;font-size:12px;color:#7b8297;line-height:1.45}
#b2b-root .b2b-section-btn .b2b-overview-icon{width:38px;height:38px;background:#427cfa}
#b2b-root .b2b-section-btn:nth-child(2) .b2b-overview-icon{background:#e78126}
#b2b-root .b2b-section-btn:nth-child(3) .b2b-overview-icon{background:#354b5c}
#b2b-root .b2b-section-btn:nth-child(4) .b2b-overview-icon{background:#24c79c}
#b2b-root .b2b-section-btn:nth-child(5) .b2b-overview-icon{background:#00a0b7}
#b2b-root .b2b-section-btn.is-active{border-color:#00a0b7;border-left-color:#00a0b7;background:#f2fbfd;box-shadow:0 8px 16px #00a0b71f}
#b2b-root .b2b-wh-head{padding:0}
#b2b-root .b2b-wh-tabs{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 24px;border-bottom:1px solid var(--line);background:#009db514}
#b2b-root .b2b-wh-tab{display:inline-flex;align-items:center;gap:9px;font-weight:600;color:#0d67bf;font-size:14px}
#b2b-root .b2b-wh-tab .b2b-icon{width:17px;height:17px;color:#0d67bf}
#b2b-root .b2b-card-head{margin:-24px -24px 22px;padding:20px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
#b2b-root .b2b-card-head h2{margin:0;font-size:17px;display:inline-flex;align-items:center;gap:10px}
#b2b-root .b2b-card-head .b2b-actions{margin-top:0}
#b2b-root .b2b-chip{font-size:11px;font-weight:600;padding:4px 10px;border-radius:20px;background:#eef1f6;border:1px solid var(--line);color:var(--muted)}
#b2b-root .b2b-filter-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;align-items:end;padding:16px 0 20px;margin-bottom:6px;border-bottom:1px dashed var(--line)}
#b2b-root .b2b-filter-item{display:grid;gap:6px;margin:0}
#b2b-root .b2b-filter-item>span{font-size:11px;font-weight:600;letter-spacing:.3px;color:var(--muted);text-transform:uppercase}
#b2b-root .b2b-filter-item input,#b2b-root .b2b-filter-item select{width:100%;margin:0}
#b2b-root .b2b-filter-actions{display:flex;gap:8px;align-items:center}
#b2b-root .b2b-filter-actions>button{white-space:nowrap}
#b2b-root .b2b-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
#b2b-root .b2b-grid-2>.b2b-card{margin-bottom:0}
#b2b-root .b2b-span-2{grid-column:1/-1}
#b2b-root .b2b-detail-grid.b2b-detail-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:850px){#b2b-root .b2b-grid-2{grid-template-columns:1fr}#b2b-root .b2b-span-2{grid-column:auto}#b2b-root .b2b-detail-grid.b2b-detail-3{grid-template-columns:1fr 1fr}}
@media(max-width:680px){#b2b-root .b2b-card-head{margin:-18px -18px 18px;padding:16px 18px}#b2b-root .b2b-wh-tabs{padding:14px 18px}#b2b-root .b2b-detail-grid.b2b-detail-3{grid-template-columns:1fr}#b2b-root .b2b-filter-row{grid-template-columns:1fr}}
#b2b-root .b2b-mtabs{display:flex;align-items:flex-end;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin:0 0 22px;background:#f6f8fb;border-radius:7px 7px 0 0;padding:8px 10px 0}
#b2b-root .b2b-mtab{appearance:none;border:1px solid transparent;border-bottom:0;background:transparent;border-radius:6px 6px 0 0;padding:11px 20px;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer;margin-bottom:-1px;line-height:1.2}
#b2b-root .b2b-mtab:hover{color:var(--ink)}
#b2b-root .b2b-mtab.is-active{background:#fff;border-color:var(--line);color:var(--ink);box-shadow:0 -2px 0 #0d67bf inset}
#b2b-root .b2b-mtab-pane{grid-column:1/-1}
@media(max-width:680px){#b2b-root .b2b-mtab{padding:9px 13px;font-size:12px}}
#b2b-root .b2b-hint{font-size:13px;color:var(--muted);margin:-4px 0 18px;line-height:1.55}
#b2b-root .b2b-count-wrap{max-height:520px;overflow:auto;border:1px solid var(--line);border-radius:6px}
#b2b-root .b2b-count-wrap table{margin:0}
#b2b-root .b2b-count-wrap thead th{position:sticky;top:0;z-index:1;background:#f7f9fc}
#b2b-root .b2b-count-wrap input[type=number]{width:130px;text-align:center;margin:0}

/* Select2 entegrasyonu (arama destekli acilir secim kutulari) */
.select2-container{width:100%!important;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:13px;box-sizing:border-box}
.select2-container *{box-sizing:border-box}
.select2-container--default .select2-selection--single{height:42px;border:1px solid #d1d2d6;background-color:#f8f8f8;border-radius:5px;display:flex;align-items:center;padding:0 32px 0 12px;position:relative;transition:border-color .15s,box-shadow .15s}
.select2-container--default .select2-selection--single .select2-selection__rendered{color:#34383d;line-height:40px;padding-left:0;padding-right:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#7a8194}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:40px;width:28px;right:4px;top:1px}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single{border-color:#00a0b8;outline:2px solid #00a0b820;background-color:#fff}
.select2-container.is-invalid .select2-selection--single{border-color:#dc2626!important;background-color:#fff5f5!important}
.select2-dropdown{border:1px solid #cbd5e1;border-radius:6px;box-shadow:0 12px 28px rgba(15,23,42,.15);background:#fff;z-index:20080;overflow:hidden}
.select2-search--dropdown{padding:7px}
.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #cbd5e1!important;border-radius:5px!important;padding:7px 10px!important;font-size:13px!important;background:#fff!important;color:#222333!important;outline:none!important;width:100%!important;margin:0!important}
.select2-container--default .select2-search--dropdown .select2-search__field:focus{border-color:#00a0b8!important;box-shadow:0 0 0 2px rgba(0,160,184,.15)!important}
.select2-results__options{max-height:260px!important;overflow-y:auto!important;font-size:13px}
.select2-results__option{padding:8px 12px;line-height:1.35}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{background-color:#00a0b8;color:#fff}
.select2-container--default .select2-results__option[aria-selected=true]{background-color:#e6f6f9;color:#007385;font-weight:600}
.select2-container--default .select2-results__group{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;color:#64748b;background:#f8fafc;padding:7px 10px}
/* Stok Hareketi Modali (#b2b-mv-modal) icindeki kompakt select2 gorunumu */
#b2b-mv-modal .select2-container--default .select2-selection--single{height:32px;min-height:32px;background-color:#fff;border-color:#cbd5e1;border-radius:6px;padding:0 28px 0 10px;font-size:13px}
#b2b-mv-modal .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:30px}
#b2b-mv-modal .select2-container--default .select2-selection--single .select2-selection__arrow{height:30px;width:24px}
#b2b-mv-modal .input-group{flex-wrap:nowrap}
#b2b-mv-modal .input-group>.select2-container{flex:1 1 auto;width:1%!important;min-width:0}
#b2b-mv-modal .input-group>.select2-container .select2-selection--single{border-top-left-radius:0;border-bottom-left-radius:0}
#b2b-root .b2b-export-format .select2-container{width:170px!important}
#b2b-root .b2b-export-format .select2-selection--single{height:36px}
#b2b-root .b2b-export-format .select2-selection__rendered{line-height:34px}
#b2b-root .b2b-export-format .select2-selection__arrow{height:34px}

/* ===== Stok görseli ve barkod (2026-10-28) ===== */
.b2b-stock-thumb{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:8px;overflow:hidden;border:1px solid #e2e8f0;background:#f8fafc;text-decoration:none}
.b2b-stock-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.b2b-stock-thumb.is-empty{color:#94a3b8;font-size:16px}
.b2b-bc-cell{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:96px}
.b2b-bc-svg{width:96px;height:32px}
.b2b-bc-cell code{font-size:10.5px;color:#475569}
.b2b-stock-image-field{margin:14px 0 4px;display:flex;flex-direction:column;gap:6px}
.b2b-stock-image-field>label{font-weight:600;font-size:13px;color:#334155}
.b2b-stock-image-row{display:flex;gap:12px;align-items:center}
.b2b-stock-image-preview{width:74px;height:74px;border-radius:10px;border:1px dashed #cbd5e1;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#94a3b8}
.b2b-stock-image-preview img{width:100%;height:100%;object-fit:cover}
.b2b-stock-image-actions{display:flex;flex-direction:column;gap:4px}
.b2b-stock-image-actions small{color:#64748b;font-size:11px}
.b2b-stock-image-actions button{align-self:flex-start}
.b2b-company-card-head{display:flex;align-items:center;gap:14px;margin-bottom:8px}
.b2b-company-card-head h2{margin:0}
.b2b-company-card-head p{margin:4px 0 0}
.b2b-company-logo-thumb{width:64px;height:64px;min-width:64px;border-radius:12px;border:1px solid #e2e8f0;background:#f8fafc;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px;overflow:hidden;cursor:pointer;color:#64748b}
.b2b-company-logo-thumb.is-empty{border-style:dashed;font-size:10px}
.b2b-company-logo-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.b2b-company-logo-mini{width:22px;height:22px;border-radius:5px;object-fit:contain;background:#fff;border:1px solid #e2e8f0;vertical-align:middle;margin-right:6px}
.b2b-company-logo-preview{width:96px;height:96px;padding:6px}
.b2b-company-logo-preview img{object-fit:contain}

/* ===== 035: Şube Kabul/Red İade Kararları ve Zayi Stoklar ===== */
#b2b-root .b2b-badge.warn{background:#f59e0b;color:#fff}
#b2b-root .b2b-badge.danger{background:#ef4444;color:#fff}
#b2b-root .b2b-badge.info{background:#0284c7;color:#fff}
#b2b-root .b2b-badge.muted{background:#94a3b8;color:#fff}
#b2b-root .b2b-nav-badge{margin-left:auto;background:#ef4444;color:#fff;font-size:10px;font-weight:700;padding:2px 7px;border-radius:999px;line-height:1.4}
#b2b-root .b2b-btn-restock{background:#059669!important;border-color:#059669!important;color:#fff!important;font-weight:600}
#b2b-root .b2b-btn-restock:hover{background:#047857!important;border-color:#047857!important;color:#fff!important}
#b2b-root .b2b-btn-wastage{background:#e11d48!important;border-color:#e11d48!important;color:#fff!important;font-weight:600}
#b2b-root .b2b-btn-wastage:hover{background:#be123c!important;border-color:#be123c!important;color:#fff!important}
#b2b-root .b2b-return-alert{border:1px solid #fecdd3;border-left:5px solid #e11d48;background:linear-gradient(135deg,#fff1f2 0%,#fff 100%);border-radius:8px;padding:18px 22px;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
#b2b-root .b2b-return-alert h3,#b2b-root .b2b-return-alert h4{margin:0 0 6px;font-size:15px;font-weight:700;color:#9f1239;display:flex;align-items:center;gap:8px}
#b2b-root .b2b-return-alert p{margin:0;font-size:13px;color:#881337;line-height:1.5}
#b2b-root .b2b-return-alert-icon{flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:#ffe4e6;color:#e11d48;display:grid;place-items:center;font-size:20px}
#b2b-root .b2b-return-alert-body{flex:1 1 360px;min-width:0}
#b2b-root .b2b-return-alert .b2b-actions{margin:0;flex-wrap:wrap}
#b2b-root .b2b-filter-actions{flex-wrap:wrap}
#b2b-root .b2b-cell-wrap{white-space:normal;min-width:180px;max-width:360px;line-height:1.45;word-break:break-word}
#b2b-root .b2b-cell-wrap>div+div{margin-top:4px}
#b2b-root button.b2b-kpi{cursor:pointer}
#b2b-root .b2b-return-choice-card p{margin:0;font-size:12px;color:#64748b;line-height:1.45}
#b2b-root .b2b-return-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}
#b2b-root .b2b-return-choice-card{border:2px solid #e2e8f0;border-radius:10px;padding:16px;cursor:pointer;display:flex;align-items:flex-start;gap:12px;background:#fff;transition:all .15s ease}
#b2b-root .b2b-return-choice-card:hover{border-color:#cbd5e1;background:#f8fafc}
#b2b-root .b2b-return-choice-card:has(input:checked).is-restock{border-color:#059669;background:#ecfdf5;box-shadow:0 4px 12px rgba(5,150,105,.12)}
#b2b-root .b2b-return-choice-card:has(input:checked).is-wastage{border-color:#e11d48;background:#fff1f2;box-shadow:0 4px 12px rgba(225,29,72,.12)}
#b2b-root .b2b-return-choice-card input[type=radio]{margin-top:3px;width:18px;height:18px}
#b2b-root .b2b-return-choice-card strong{display:block;font-size:14px;color:#1e293b;margin-bottom:4px}
#b2b-root .b2b-return-choice-card small{display:block;font-size:12px;color:#64748b;line-height:1.45;font-weight:400}
@media(max-width:720px){#b2b-root .b2b-return-choice-grid{grid-template-columns:1fr}}
