:root { --brand-primary:#2563eb; --brand-primary-hover:#1d4ed8; --brand-primary-light:#60a5fa; --brand-accent:#2563eb; --brand-accent-hover:#1d4ed8; --brand-sidebar:#0f172a; --brand-sidebar-hover:#1e293b; --brand-primary-rgb:37,99,235; --brand-primary-soft:rgba(37,99,235,.10); }
.b2b-toast-stack { position:fixed; top:18px; right:18px; z-index:100000; display:flex; flex-direction:column; align-items:flex-end; gap:10px; width:min(390px,calc(100vw - 28px)); pointer-events:none; }
.b2b-toast { --toast:#60a5fa; position:relative; display:grid; grid-template-columns:34px 1fr 24px; align-items:center; gap:10px; width:100%; min-height:64px; padding:13px 12px 14px; overflow:hidden; border:1px solid rgba(255,255,255,.28); border-radius:16px; background:rgba(15,23,42,.95); color:#fff; box-shadow:0 18px 50px rgba(15,23,42,.28); backdrop-filter:blur(16px); font:600 13px/1.45 system-ui,sans-serif; opacity:0; transform:translateX(32px) scale(.97); transition:opacity .22s ease,transform .22s ease; pointer-events:auto; }
.b2b-toast.is-visible { opacity:1; transform:translateX(0) scale(1); }.b2b-toast.is-leaving { opacity:0; transform:translateX(32px) scale(.97); }
.b2b-toast, .b2b-toast * { color:#fff !important; text-shadow:none !important; }.b2b-toast-message { opacity:1 !important; font-weight:650 !important; letter-spacing:.01em; }.b2b-toast-close { color:rgba(255,255,255,.76) !important; }
.b2b-toast[data-type="success"] { --toast:#22c55e; background:rgba(20,83,45,.96); }.b2b-toast[data-type="danger"] { --toast:#fb7185; background:rgba(127,29,29,.96); }.b2b-toast[data-type="warning"] { --toast:#fbbf24; background:rgba(120,53,15,.96); }.b2b-toast[data-type="info"] { --toast:var(--brand-primary-light); }
.b2b-toast-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:11px; background:var(--toast); color:#fff; font-weight:900; box-shadow:0 6px 16px color-mix(in srgb,var(--toast) 45%,transparent); }.b2b-toast-message { min-width:0; overflow-wrap:anywhere; }.b2b-toast-close { align-self:start; border:0; background:transparent; color:rgba(255,255,255,.72); font:22px/1 sans-serif; cursor:pointer; padding:0; }.b2b-toast-close:hover { color:#fff; }
.b2b-toast-progress { position:absolute; left:0; bottom:0; width:100%; height:3px; background:var(--toast); transform-origin:left; animation:b2b-toast-progress 6.5s linear forwards; }.b2b-toast[data-type="warning"] .b2b-toast-progress { animation-duration:9s; }.b2b-toast[data-type="danger"] .b2b-toast-progress { animation-duration:12s; }
@keyframes b2b-toast-progress { to { transform:scaleX(0); } } @media (max-width:575px) { .b2b-toast-stack { top:10px; right:10px; width:calc(100vw - 20px); } }
.b2b-install-button { position: fixed; bottom: 16px; left: 16px; z-index: 1040; border: 1px solid #334155; border-radius: 999px; padding: 10px 16px; background: #0f172a; color: white; box-shadow: 0 4px 16px #0f172a22; font: 600 13px system-ui, sans-serif; cursor: pointer; }
.b2b-install-button[hidden] { display: none; }
.is-hidden { display: none !important; }
.is-visible { display: block !important; }
.b2b-notification-wrap { position: relative; display: inline-flex; align-items: center; }
.b2b-notification-button { position: relative; border: 0; background: transparent; color: inherit; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 17px; }
.b2b-notification-button:hover, .b2b-notification-button[aria-expanded="true"] { background: rgba(var(--brand-primary-rgb), .1); }
.b2b-notification-badge { position: absolute; top: 1px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 10px; background: #dc2626; color: white; font: 700 10px/17px system-ui, sans-serif; text-align: center; }
.b2b-notification-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 10020; width: min(330px, calc(100vw - 24px)); padding: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.18); color: #0f172a; }
.b2b-notification-menu[hidden] { display: none; }
.b2b-notification-heading { padding: 8px 10px; font-weight: 800; font-size: 13px; border-bottom: 1px solid #e2e8f0; }
.b2b-notification-item { display: flex; align-items: center; gap: 9px; padding: 11px 10px; color: #334155; text-decoration: none; border-radius: 8px; font-size: 12px; }
.b2b-notification-item:hover { background: #f1f5f9; color: var(--brand-primary-hover); }
.b2b-notification-item i { width: 20px; color: var(--brand-primary); text-align: center; }
.b2b-notification-item span { flex: 1; }
.b2b-notification-item strong { color: #dc2626; }
.b2b-notification-empty { padding: 16px 10px; color: #64748b; font-size: 12px; text-align: center; }
@media (max-width: 575px) { .b2b-notification-menu { position: fixed; top: 58px; right: 10px; } }
form[aria-busy="true"] button[type="submit"] { cursor: wait; opacity: .65; }
.b2b-offline-page { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #f8fafc; color: #0f172a; font-family: system-ui, sans-serif; }
.b2b-offline-card { max-width: 480px; padding: 36px 24px; margin: 24px; background: white; border: 1px solid #e2e8f0; border-radius: 20px; text-align: center; }
.b2b-offline-card h1 { font-size: 24px; }
.b2b-offline-card p { line-height: 1.6; color: #475569; }
.b2b-offline-card button { border: 0; border-radius: 10px; padding: 12px 24px; background: #0f172a; color: white; font: inherit; cursor: pointer; }

/* Keep operation columns visible while tables scroll horizontally. */
.table-responsive { position: relative; }
.table-responsive > table > thead > tr > th:last-child,
.table-responsive > table > tbody > tr > td:last-child,
.table-responsive-desktop > table > thead > tr > th:last-child,
.table-responsive-desktop > table > tbody > tr > td:last-child {
    position: sticky;
    right: 0;
    z-index: 3;
    background: #fff;
    box-shadow: -5px 0 10px rgba(15, 23, 42, .08);
    white-space: nowrap;
}
.table-responsive > table > thead > tr > th,
.table-responsive-desktop > table > thead > tr > th { position: sticky; top: 0; z-index: 4; }
.table-responsive > table > thead > tr > th:last-child,
.table-responsive-desktop > table > thead > tr > th:last-child { z-index: 4; }
.table-responsive td:last-child button,
.table-responsive td:last-child a,
.table-responsive-desktop td:last-child button,
.table-responsive-desktop td:last-child a { font-size: 0 !important; width: 34px; min-width: 34px; padding: 7px 0 !important; text-align: center; }
.table-responsive td:last-child button i,
.table-responsive td:last-child a i,
.table-responsive-desktop td:last-child button i,
.table-responsive-desktop td:last-child a i { font-size: 14px !important; margin: 0 !important; }
.table-responsive td:last-child button,
.table-responsive td:last-child a,
.table-responsive-desktop td:last-child button,
.table-responsive-desktop td:last-child a { width: 28px !important; min-width: 28px !important; height: 28px; padding: 4px 0 !important; margin: 1px !important; }
.table-responsive td:last-child button i,
.table-responsive td:last-child a i,
.table-responsive-desktop td:last-child button i,
.table-responsive-desktop td:last-child a i { font-size: 12px !important; }
.table-responsive td:last-child button,
.table-responsive td:last-child a,
.table-responsive-desktop td:last-child button,
.table-responsive-desktop td:last-child a { display: inline-flex !important; align-items: center; justify-content: center; vertical-align: middle; line-height: 1; }
