
:root{--brand:#198754;--brand-soft:rgba(25,135,84,.12);--brand-dark:#146c43;--product-image-ratio:1 / 1;--app-navbar-height:64px;}
html,body{height:100%;max-width:100%;overflow-x:clip;scroll-padding-top:var(--app-navbar-height);}
body.app-body{background:#f5f7f6;color:#1f2937;font-size:14px;max-width:100%;overflow-x:clip;padding-top:var(--app-navbar-height);}
*,*::before,*::after{box-sizing:border-box;}
.app-navbar{background:#fff;border-bottom:1px solid #e5e7eb;position:fixed;top:0;left:0;right:0;z-index:1200;width:100%;box-shadow:0 2px 10px rgba(15,23,42,.04);transform:translateZ(0);backface-visibility:hidden;}
.app-navbar-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding-top:6px;padding-bottom:6px;}
.app-navbar-left,.app-navbar-right{display:flex;align-items:center;gap:12px;min-width:0;}
.app-navbar-brand{display:inline-flex;align-items:center;gap:12px;min-width:0;text-decoration:none;color:#0f172a;font-weight:700;}
.app-navbar-brand:hover{color:var(--brand-dark);}
.app-navbar-brand-badge{width:38px;height:38px;border-radius:12px;background:#f0fdf4;border:1px solid rgba(25,135,84,.16);display:inline-flex;align-items:center;justify-content:center;color:var(--brand-dark);font-weight:800;overflow:hidden;flex:0 0 38px;}
.app-navbar-brand-badge.has-logo{width:auto;min-width:46px;max-width:132px;padding:4px 8px;border-radius:14px;background:#fff;}
.app-navbar-brand-badge img{width:100%;height:100%;object-fit:contain;display:block;}
.app-navbar-brand-badge.has-logo img{width:auto;height:100%;max-height:28px;max-width:116px;object-fit:contain;}
.app-navbar-brand-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:1.02rem;}
.app-navbar-toggle,.app-navbar-user-btn{width:42px;height:42px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;flex:0 0 42px;}
.app-navbar-user-name{font-size:.92rem;font-weight:600;color:#6b7280;white-space:nowrap;}
@media (max-width:575.98px){.app-navbar-inner{min-height:60px;padding-top:4px;padding-bottom:4px;}.app-navbar-brand-name{font-size:.98rem;}.app-navbar-brand-badge{width:34px;height:34px;flex-basis:34px;}.app-navbar-brand-badge.has-logo{min-width:40px;max-width:110px;padding:3px 6px;}.app-navbar-brand-badge.has-logo img{max-height:24px;max-width:96px;}}
.sidebar-brand-wrap{display:none!important;}
.sidebar-brand-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #e5e7eb;border-radius:18px;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.05);}
.sidebar-brand-main{display:flex;align-items:center;gap:10px;min-width:0;text-decoration:none;color:#0f172a;}
.sidebar-brand-main:hover{color:var(--brand-dark);}
.sidebar-brand-badge{width:34px;height:34px;border-radius:11px;background:#f0fdf4;border:1px solid rgba(25,135,84,.16);display:inline-flex;align-items:center;justify-content:center;color:var(--brand-dark);font-weight:800;overflow:hidden;flex:0 0 34px;}
.sidebar-brand-badge img{width:100%;height:100%;object-fit:cover;display:block;}
.sidebar-brand-copy{min-width:0;display:flex;flex-direction:column;}
.sidebar-brand-name{display:block;font-size:1rem;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.desktop-sidebar-toggle{width:42px;height:42px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;flex:0 0 42px;}
.app-shell{display:flex;min-height:calc(100vh - var(--app-navbar-height));min-width:0;max-width:100%;overflow-x:clip;}
.app-sidebar-col{flex:0 0 280px;max-width:280px;transition:flex-basis .18s ease,max-width .18s ease;}
.app-main-col{flex:1 1 auto;min-width:0;max-width:100%;overflow-x:clip;}
.desktop-sidebar-toggle{width:42px;height:42px;padding:0;align-items:center;justify-content:center;}
.sidebar-toggle-label{display:inline-flex;align-items:center;gap:.55rem;}
.sidebar-footer-meta{min-width:0;}
.sidebar-footer-icon{display:none;font-size:1.1rem;color:var(--brand-dark);}
.app-content{padding:14px;min-width:0;max-width:100%;overflow-x:clip;position:relative;}
.content-loader-overlay{position:absolute;inset:0;display:none;align-items:center;justify-content:center;background:rgba(255,255,255,.72);backdrop-filter:blur(1px);z-index:40;border-radius:inherit;pointer-events:auto;}
.content-loader-overlay.show{display:flex;}
.content-loader-card{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:16px;background:#fff;border:1px solid rgba(25,135,84,.12);box-shadow:0 14px 34px rgba(15,23,42,.10);font-weight:700;color:var(--brand-dark);}

.page-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 2px 8px rgba(15,23,42,.04);max-width:100%;}
.page-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;}
.page-title{margin:0;font-size:1.05rem;font-weight:700;}
.page-subtitle{display:none;}
.sidebar-shell{background:#fff;border-right:1px solid #e5e7eb;min-height:calc(100dvh - var(--app-navbar-height));}
.sidebar-mobile-header{display:none;align-items:center;justify-content:space-between;padding:12px 14px;background:#fff;min-height:56px;}
.sidebar-mobile-title{font-size:1rem;font-weight:800;color:#0f172a;letter-spacing:.01em;}
.sidebar-body-shell{display:flex;flex-direction:column;min-height:calc(100vh - var(--app-navbar-height));height:100%;}
.sidebar-scroll{padding:10px 12px 12px;flex:1 1 auto;min-height:0;overflow:auto;}
.sidebar-scroll > .sidebar-accordion{margin-top:8px;}
.sidebar-mobile-backdrop{display:none;}

.sidebar-link{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:6px;border-radius:14px;color:#334155;text-decoration:none;font-weight:600;}
.sidebar-link i{color:var(--brand);}
.sidebar-link.active,.sidebar-link:hover{background:var(--brand-soft);color:var(--brand-dark);}
.sidebar-section-title{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:#6b7280;font-weight:700;padding:12px 14px 6px;}
.sidebar-footer{border-top:1px solid #e5e7eb;padding:14px;background:#fff;}
.global-loader{position:fixed;inset:0;background:transparent;display:flex;align-items:center;justify-content:center;z-index:2000;pointer-events:none;transition:background .16s ease,backdrop-filter .16s ease;}
.global-loader-card{pointer-events:auto;display:flex;align-items:center;gap:12px;padding:14px 18px;border-radius:18px;background:#fff;border:1px solid rgba(25,135,84,.12);box-shadow:0 14px 34px rgba(15,23,42,.10);min-width:150px;justify-content:center;}
.global-loader-spinner{width:2rem;height:2rem;border-width:.24em;}
.global-loader-text{font-weight:700;color:var(--brand-dark);letter-spacing:.01em;}
.global-loader.global-loader-dim{background:rgba(255,255,255,.50);backdrop-filter:blur(1.5px);pointer-events:auto;}
.global-loader.global-loader-over-modal{z-index:2000;}
.modal.modal-processing .modal-content{box-shadow:0 18px 40px rgba(15,23,42,.14);}
.toast-container-fixed{position:fixed;top:12px;right:12px;z-index:2100;max-width:min(92vw,420px);}
#liveToast{min-width:min(92vw,340px);}
.fab-add{position:fixed;right:16px;bottom:24px;z-index:1050;border-radius:999px;padding:12px 18px;font-weight:700;box-shadow:0 10px 24px rgba(25,135,84,.25);}

@media (min-width:992px){
  .sidebar-body-shell{overflow:hidden;}
  .sidebar-scroll{padding-bottom:16px;}
  .sidebar-footer-card-static{margin-top:12px;}
}

.table-thumb,.gallery-thumb,.image-preview-square,.master-mobile-thumb{display:block;object-fit:cover;aspect-ratio:var(--product-image-ratio,1 / 1);border:1px solid #d1d5db;background:#fff;}
.table-thumb{width:48px;height:auto;border-radius:10px;}
.gallery-thumb,.image-preview-square{width:72px;height:auto;border-radius:12px;}
.master-mobile-thumb{width:88px;height:auto;border-radius:18px;flex:0 0 88px;}
.login-wrap{min-height:100vh;min-height:100svh;min-height:100dvh;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#effaf4 0,#f7f9f8 100%);padding:18px;}
.login-card{width:100%;max-width:420px;border:0;border-radius:22px;overflow:hidden;box-shadow:0 20px 45px rgba(16,24,40,.08);}
.login-card .card-body{padding:24px;}
@media (max-width:767.98px){
  .login-wrap{align-items:flex-start;justify-content:center;padding-top:calc(env(safe-area-inset-top, 0px) + 18px);padding-bottom:calc(env(safe-area-inset-bottom, 0px) + 18px);}
  .login-card{max-width:460px;border-radius:20px;}
  .login-card .card-body{padding:20px;}
  .login-card .form-control,.login-card .form-select{font-size:16px;line-height:1.35;min-height:48px;}
}

.form-control,.form-select{min-height:44px;border-radius:12px;}
.btn{border-radius:12px;}
.dt-buttons,.dataTables_length,.dataTables_info{display:none!important;}
.dataTables_wrapper{width:100%;max-width:100%;min-width:0;}
.dataTables_wrapper .dataTables_filter{display:flex;justify-content:flex-end;max-width:100%;min-width:0;}
.dataTables_wrapper .dataTables_filter label{width:100%;max-width:100%;display:flex;justify-content:flex-end;margin:0;}
.dataTables_wrapper .dataTables_filter input{margin-left:0;border-radius:12px;border:1px solid #d1d5db;padding:.45rem .75rem;min-width:0;width:min(260px,100%);max-width:100%;}
.card-stat{background:#fff;border-radius:18px;border:1px solid #e5e7eb;padding:16px;box-shadow:0 2px 8px rgba(15,23,42,.04);}
.table-responsive{max-width:100%;overflow-x:auto;overflow-y:hidden;}
.page-header,.page-actions{max-width:100%;min-width:0;}
.page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.page-header > div:first-child{min-width:0;}

.card-stat .value{font-size:1.3rem;font-weight:800;color:var(--brand-dark);}
.form-section{background:#f8faf9;border:1px solid #e5e7eb;border-radius:14px;padding:14px;margin-bottom:12px;overflow:visible;}
.offcanvas-lg{--bs-offcanvas-width:280px;}
.modal{overflow-y:auto;}
.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);}
.modal-dialog-scrollable .modal-body{overflow-y:auto;max-height:calc(100vh - 165px);-webkit-overflow-scrolling:touch;}
.search-select{position:relative;overflow:visible;}
.search-select:focus-within{z-index:2060;}
.search-select-menu{position:fixed;left:0;top:0;z-index:4090;background:#fff;border:1px solid #d1d5db;border-radius:12px;box-shadow:0 14px 30px rgba(15,23,42,.12);max-height:220px;overflow:auto;display:none;}
.search-select-menu.drop-up{top:auto;} 
.search-select-menu.show{display:block;}
.search-select-item{width:100%;border:0;background:#fff;text-align:left;padding:10px 12px;font-size:.94rem;display:block;}
.search-select-item:hover,.search-select-item.active{background:var(--brand-soft);color:var(--brand-dark);}
.search-select-item.disabled{color:#6b7280;pointer-events:none;}
.richtext-shell{border:1px solid #d1d5db;border-radius:12px;background:#fff;overflow:hidden;}
.richtext-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:8px;border-bottom:1px solid #e5e7eb;background:#f8faf9;}
.richtext-toolbar button{border:1px solid #d1d5db;background:#fff;padding:6px 10px;border-radius:10px;font-size:.9rem;}
.richtext-editor{min-height:170px;padding:12px;outline:none;}
.master-mobile-cards{display:none;}
.master-mobile-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px;margin-bottom:12px;box-shadow:0 2px 8px rgba(15,23,42,.04);}
.master-mobile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.master-mobile-title{font-weight:700;font-size:1rem;line-height:1.35;word-break:break-word;}
.master-mobile-subtitle{font-size:.84rem;color:#6b7280;line-height:1.35;margin-top:4px;word-break:break-word;}
.mobile-action-toggle{width:36px;height:36px;padding:0;display:inline-flex;align-items:center;justify-content:center;}
.master-mobile-chips{display:grid;grid-template-columns:1fr;gap:8px;margin-top:12px;}
.master-mobile-chip{background:#f8faf9;border-radius:12px;padding:10px 12px;display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}
.master-mobile-chip span{color:#6b7280;font-size:.82rem;}
.master-mobile-chip strong{font-size:.92rem;font-weight:700;text-align:right;word-break:break-word;}
.master-mobile-empty{background:#fff;border:1px dashed #d1d5db;border-radius:18px;padding:18px;text-align:center;color:#6b7280;}
.master-mobile-search{margin-bottom:12px;}
.master-mobile-search-box{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:10px 12px;box-shadow:0 2px 8px rgba(15,23,42,.04);}
.master-mobile-search-box i{color:#6b7280;font-size:1rem;}
.master-mobile-search-box .form-control{border:0;box-shadow:none;padding:0;min-height:auto;background:transparent;}
.record-view-hero{display:flex;gap:12px;align-items:center;padding:6px 2px 16px;margin-bottom:10px;border-bottom:1px solid #eef2f7;}
.record-view-hero-icon{width:44px;height:44px;border-radius:14px;background:var(--brand-soft);color:var(--brand-dark);display:flex;align-items:center;justify-content:center;font-size:1.1rem;}
.record-view-hero-title{font-size:1.05rem;font-weight:800;line-height:1.2;}
.record-view-hero-subtitle{font-size:.85rem;color:#6b7280;margin-top:3px;}
.record-view-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.record-view-card{background:#f8faf9;border:1px solid #e5e7eb;border-radius:16px;padding:12px 14px;min-height:84px;}
.record-view-label{font-size:.75rem;color:#6b7280;margin-bottom:6px;text-transform:uppercase;letter-spacing:.05em;font-weight:700;}
.record-view-value{font-size:.95rem;word-break:break-word;line-height:1.45;font-weight:600;color:#111827;}
@media (max-width:991.98px){.offcanvas-lg{visibility:visible;}}
@media (max-width:1199.98px){
  .order-bottom-bar{left:12px;right:12px;bottom:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));}
}
@media (max-width:767.98px){
  .modal-dialog{margin:.35rem;}
  .modal-dialog-scrollable .modal-content{max-height:calc(100vh - .7rem);}
  .page-header{align-items:flex-start;}
  .toast-container-fixed{top:10px;right:10px;left:10px;max-width:none;}
  #liveToast{min-width:0;width:100%;}
  .desktop-master-table{display:none;}
  .master-mobile-cards{display:block;}
  .fab-add{padding:10px 14px;font-size:.9rem;bottom:calc(env(safe-area-inset-bottom, 0px) + 82px);}
  .dataTables_wrapper .dataTables_filter input{min-width:100%;width:100%;}
}
@media (min-width:992px){
  .sidebar-mobile-backdrop{display:none!important;}
   .sidebar-shell{position:sticky;top:0;height:calc(100dvh - var(--app-navbar-height));display:flex;flex-direction:column;}
  .sidebar-mobile-header{display:none!important;}
  body.desktop-sidebar-collapsed .app-sidebar-col{flex-basis:92px;max-width:92px;}
  body.desktop-sidebar-collapsed .sidebar-shell,
  body.desktop-sidebar-collapsed .sidebar-body-shell,
  body.desktop-sidebar-collapsed .sidebar-scroll{overflow:visible;}
  body.desktop-sidebar-collapsed .sidebar-scroll{padding:10px 8px;}
  body.desktop-sidebar-collapsed .sidebar-accordion{padding:8px 0;gap:8px;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-link{justify-content:center;padding:12px 10px;border-radius:18px;margin:0 6px;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-link span{display:none;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-link i{margin:0;font-size:1.15rem;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item{position:relative;background:transparent;border:0;border-radius:0;overflow:visible;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle{width:56px;height:56px;padding:0;margin:0 auto;border-radius:18px;justify-content:center;background:#fff;border:1px solid #e5e7eb;box-shadow:0 6px 16px rgba(15,23,42,.06);}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle .sidebar-text,
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle .bi-chevron-down{display:none;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle .sidebar-toggle-label i{margin:0!important;font-size:1.12rem;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle.active,
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle:hover{background:var(--brand-soft);border-color:rgba(25,135,84,.18);color:var(--brand-dark);}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapse,
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapsing{position:absolute;left:calc(100% + 10px);top:0;width:min(320px,calc(100vw - 130px));max-height:calc(100vh - 76px);overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 18px 36px rgba(15,23,42,.12);z-index:1055;height:auto!important;transition:none!important;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapse:not(.show),
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapsing{display:none!important;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapse .sidebar-acc-links{padding:14px 12px 12px;}
  body.desktop-sidebar-collapsed .sidebar-footer-card{padding:8px;border-top:0;box-shadow:none;background:transparent;overflow:visible;}
  body.desktop-sidebar-collapsed .sidebar-footer-toggle{width:56px;height:56px;padding:0;margin:0 auto;border-radius:18px;justify-content:center;box-shadow:0 6px 16px rgba(15,23,42,.06);}
  body.desktop-sidebar-collapsed .sidebar-footer-meta,
  body.desktop-sidebar-collapsed .sidebar-footer-toggle .bi-chevron-up{display:none;}
  body.desktop-sidebar-collapsed .sidebar-footer-icon{display:block;}
  body.desktop-sidebar-collapsed .sidebar-footer-actions,
  body.desktop-sidebar-collapsed .sidebar-footer-actions.collapsing{position:absolute;left:calc(100% + 10px);bottom:8px;width:min(260px,calc(100vw - 130px));padding:12px;background:#fff;border:1px solid #e5e7eb;border-radius:20px;box-shadow:0 18px 36px rgba(15,23,42,.12);z-index:1055;height:auto!important;transition:none!important;}
  body.desktop-sidebar-collapsed .sidebar-footer-actions:not(.show),
  body.desktop-sidebar-collapsed .sidebar-footer-actions.collapsing{display:none!important;}
  body.desktop-sidebar-collapsed .sidebar-footer-card.auto-open .sidebar-footer-toggle{pointer-events:auto;}
}

@media (max-width:1199.98px){
  .order-bottom-bar{left:12px;right:12px;bottom:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));}
}
@media (max-width:767.98px){
  .record-view-grid{grid-template-columns:1fr;}
}

@media (max-width:991.98px){
  .fab-add{bottom:calc(env(safe-area-inset-bottom, 0px) + 78px);}
  .app-shell{display:block;}
  .app-sidebar-col{max-width:none;}
}

.required-mark{color:#dc2626;font-weight:800;}
.sidebar-body-shell{min-height:calc(100vh - var(--app-navbar-height));height:100%;}
.sidebar-accordion{padding:0;display:flex;flex-direction:column;gap:10px;}
.sidebar-acc-item{background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;}
.sidebar-acc-toggle{width:100%;border:0;background:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;font-weight:700;color:#334155;}
.sidebar-acc-toggle .bi-chevron-down{transition:transform .2s ease;}
.sidebar-acc-toggle[aria-expanded="true"] .bi-chevron-down{transform:rotate(180deg);}
.sidebar-acc-links{padding:0 10px 10px;display:flex;flex-direction:column;gap:4px;}
.sidebar-acc-links .sidebar-link{margin-bottom:0;}
.sidebar-footer-card{margin-top:0;position:relative;bottom:auto;background:#fff;border-top:1px solid #e5e7eb;padding:12px;box-shadow:0 -4px 12px rgba(15,23,42,.035);z-index:2;flex:0 0 auto;flex-shrink:0;}
.sidebar-footer-toggle{width:100%;border:1px solid #e5e7eb;background:#fff;border-radius:16px;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:700;}
.sidebar-footer-toggle .bi-chevron-up{transition:transform .16s ease;}
.sidebar-footer-toggle[aria-expanded="true"] .bi-chevron-up{transform:rotate(180deg);}
.sidebar-footer-actions{padding-top:10px;}
.sidebar-footer-actions.collapsing{transition:height .16s ease;}
.sidebar-footer-actions .btn{min-height:42px;}
@media (min-height:760px) and (min-width:992px){
  .sidebar-footer-card.auto-open .sidebar-footer-toggle{pointer-events:none;}
  .sidebar-footer-card.auto-open .sidebar-footer-actions{display:block!important;}
}
@media (max-height:760px), (max-width:991.98px){
  .sidebar-footer-actions:not(.show){display:none;}
}


.sidebar-acc-title{padding:10px 14px 4px;font-size:.73rem;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;font-weight:800;}
.sidebar-acc-group{padding-top:2px;display:flex;flex-direction:column;gap:4px;}
.sidebar-footer-actions.collapsing,.collapse{will-change:height;}
.sidebar-footer-actions.collapsing{transition:height .12s ease;}
@media (max-height:760px), (max-width:991.98px){
  .sidebar-footer-card{padding:10px;}
}


.page-card.page-card-loading{position:relative;pointer-events:none;}
.page-card.page-card-loading::before{content:'';position:absolute;inset:0;background:rgba(255,255,255,.72);z-index:5;border-radius:inherit;}
.page-card.page-card-loading::after{content:'';position:absolute;top:50%;left:50%;width:34px;height:34px;margin:-17px 0 0 -17px;border:3px solid rgba(25,135,84,.18);border-top-color:var(--brand);border-radius:50%;animation:oosSpin .7s linear infinite;z-index:6;}
@keyframes oosSpin{to{transform:rotate(360deg);}}


.app-navbar .navbar-brand,
a{color:var(--brand-dark);}
a:hover{color:var(--brand);}
.btn-success{--bs-btn-bg:var(--brand);--bs-btn-border-color:var(--brand);--bs-btn-hover-bg:var(--brand-dark);--bs-btn-hover-border-color:var(--brand-dark);--bs-btn-active-bg:var(--brand-dark);--bs-btn-active-border-color:var(--brand-dark);}
.btn-outline-success{--bs-btn-color:var(--brand);--bs-btn-border-color:var(--brand);--bs-btn-hover-bg:var(--brand);--bs-btn-hover-border-color:var(--brand);--bs-btn-active-bg:var(--brand-dark);--bs-btn-active-border-color:var(--brand-dark);--bs-btn-active-color:#fff;}
.text-bg-success{background-color:var(--brand)!important;}
.form-control:focus,.form-select:focus{border-color:var(--brand);box-shadow:0 0 0 .2rem rgba(0,0,0,.03),0 0 0 .12rem var(--brand-soft);}
.form-check-input:checked{background-color:var(--brand);border-color:var(--brand);}
.form-control-color{border-color:#d1d5db;}
.fab-add{box-shadow:0 10px 24px rgba(15,23,42,.12);}
.dataTables_wrapper .dataTables_paginate .pagination{gap:.25rem;}
.dataTables_wrapper .dataTables_paginate .page-link{border-radius:10px;border-color:#d1d5db;color:var(--brand-dark);}
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.active .page-link{background-color:var(--brand);border-color:var(--brand);color:#fff;}
.dataTables_wrapper .dataTables_paginate .page-item:not(.active) .page-link:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:not(.active) .page-link:hover{background-color:var(--brand-soft);border-color:var(--brand);color:var(--brand-dark);}
.dataTables_wrapper .dataTables_paginate .page-link:focus{box-shadow:0 0 0 .15rem var(--brand-soft);}


.sidebar-footer-actions-row{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:nowrap;}
.sidebar-footer-iconbtn{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;padding:0;position:relative;}
.sidebar-footer-iconbtn i{font-size:1rem;}
.sidebar-footer-iconbtn::after{content:attr(data-label);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);background:#111827;color:#fff;padding:5px 8px;border-radius:8px;font-size:.74rem;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .14s ease,transform .14s ease;}
.sidebar-footer-iconbtn:hover::after,.sidebar-footer-iconbtn:focus-visible::after{opacity:1;transform:translateX(-50%) translateY(-2px);}
.sidebar-footer-actions .btn{min-height:42px;}

.table-thumb,
.gallery-thumb,
.master-mobile-thumb{cursor:zoom-in;}
.image-preview-modal-content{background:#0f172a;color:#fff;border-radius:24px;overflow:hidden;}
.image-preview-modal-content .btn-close{filter:invert(1) grayscale(1);}
.image-preview-modal-img{max-height:78vh;object-fit:contain;border-radius:18px;}

.bulk-import-steps{display:flex;flex-wrap:wrap;gap:8px;}
.bulk-import-steps span{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #e5e7eb;border-radius:999px;background:#f8fafc;font-size:.8rem;font-weight:600;color:#475569;}
.bulk-summary-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px 16px;height:100%;}
.bulk-summary-label{font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#64748b;}
.bulk-summary-value{font-size:1.4rem;font-weight:800;color:#0f172a;line-height:1.2;margin-top:6px;}
.bulk-preview-search{min-width:min(280px,100%);}
.bulk-preview-table thead th{white-space:nowrap;background:#f8fafc;position:sticky;top:0;z-index:1;}
.bulk-preview-table tbody td{vertical-align:middle;}
.bulk-import-modal .modal-content{border-radius:22px;overflow:hidden;}
.bulk-import-modal .modal-header{border-bottom:1px solid #e5e7eb;}
.bulk-import-modal .modal-footer{border-top:1px solid #e5e7eb;}
.bulk-import-modal .btn-group .btn.active{box-shadow:none;}

.app-sidebar-col{position:relative;z-index:1030;}
.app-main-col{position:relative;z-index:auto;}
.sidebar-shell,.sidebar-body-shell,.sidebar-scroll{position:relative;z-index:auto;}
body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapse,
body.desktop-sidebar-collapsed .sidebar-footer-actions{z-index:1040!important;}
.modal-backdrop{z-index:2050!important;}
.modal{z-index:2060!important;}
.global-loader.global-loader-over-modal{z-index:2070;}
.dataTables_scrollHead,.dataTables_scrollHeadInner,.dataTables_scrollHeadInner table,.dataTables_scrollBody{z-index:1!important;}
.page-card,.table-responsive,.dataTables_wrapper{position:relative;z-index:auto;}
.page-card.search-layer-active,.form-section.search-layer-active,.modal-content.search-layer-active,.dashboard-section-card.search-layer-active,.dash-focus-card.search-layer-active{z-index:25;}
body.modal-open .app-sidebar-col{z-index:1020!important;}
body.modal-open .sidebar-shell,
body.modal-open .sidebar-body-shell,
body.modal-open .sidebar-scroll{z-index:auto!important;pointer-events:none;}
body.modal-open.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapse.show,
body.modal-open.desktop-sidebar-collapsed .sidebar-footer-actions.show,
body.modal-open.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapsing,
body.modal-open.desktop-sidebar-collapsed .sidebar-footer-actions.collapsing{display:none!important;}
body.modal-open .fab-add{z-index:1020!important;}


@media (max-width:991.98px){
  :root{--app-navbar-height:56px;}
  .sidebar-brand-wrap{display:none!important;}
  .app-shell{min-height:calc(100dvh - var(--app-navbar-height));}
  .app-sidebar-col{position:fixed;inset:var(--app-navbar-height) 0 0 0;width:100%;max-width:none;height:calc(100dvh - var(--app-navbar-height));z-index:2040;pointer-events:none;}
  .sidebar-mobile-backdrop{display:block;position:absolute;inset:0;background:rgba(15,23,42,.52);opacity:0;visibility:hidden;transition:opacity .18s ease;pointer-events:none;}
  .sidebar-shell{position:absolute;top:0;left:0;height:100%;width:min(84vw,320px);max-width:320px;min-height:0;border-right:1px solid #e5e7eb;box-shadow:0 20px 40px rgba(15,23,42,.18);transform:translateX(-105%);transition:transform .18s ease;overflow:hidden;z-index:1;display:flex;flex-direction:column;}
  .sidebar-mobile-header{display:flex;}
  .sidebar-body-shell{min-height:0;height:calc(100% - 56px);background:#fff;overflow:hidden;}
  .sidebar-scroll{height:100%;overflow:auto;padding-bottom:20px;}
  body.mobile-sidebar-open{overflow:hidden;}
  body.mobile-sidebar-open .app-sidebar-col{pointer-events:auto;}
  body.mobile-sidebar-open .sidebar-mobile-backdrop{opacity:1;visibility:visible;pointer-events:auto;}
  body.mobile-sidebar-open .sidebar-shell{transform:translateX(0);}
  .app-main-col{min-height:calc(100dvh - var(--app-navbar-height));}
  .app-content{padding-top:14px;scroll-margin-top:70px;}
  body.order-page-active .app-sidebar-col{inset:var(--app-navbar-height) 0 0 0;height:calc(100dvh - var(--app-navbar-height));}
}


@media (max-width:991.98px){
body.order-page-active .app-navbar{position:fixed;top:0;left:0;right:0;width:100%;z-index:1115;}
}
body.order-page-active .app-shell{padding-top:0;min-height:calc(100dvh - var(--app-navbar-height));}
body.order-page-active .app-sidebar-col{min-height:calc(100dvh - var(--app-navbar-height));}
body.order-page-active .app-main-col{min-height:calc(100dvh - var(--app-navbar-height));}
body.order-page-active .app-content{padding-top:0;scroll-margin-top:calc(var(--app-navbar-height) + 12px);}

.order-shell{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding-bottom:86px;}
body.order-page-active .app-content{padding-top:0;}
body.order-page-active .order-shell{padding-top:0;}
body.order-page-active .order-sticky-stack::before{display:none;}
body.order-page-active .order-create-header{margin-top:0!important;}

.order-sticky-stack{position:sticky;top:var(--app-navbar-height);z-index:1102;background:#f5f7f6;margin:0 -14px 14px;padding:12px 14px 10px;border-bottom:1px solid #e5e7eb;box-shadow:0 8px 18px rgba(15,23,42,.05);align-self:start;}
.order-sticky-stack > *{position:relative;z-index:1;}
.order-create-header{position:static;top:auto;z-index:auto;background:transparent;padding:0;margin-bottom:8px!important;}
.order-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:0;position:static;top:auto;background:transparent;padding:0;z-index:auto;}
.order-search{flex:1 1 260px;min-width:0;}
.order-search .form-control{border-radius:999px;padding-left:40px;}
.order-search .bi-search{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#6b7280;}
.order-chip-row{display:flex;gap:8px;overflow:auto;padding-bottom:4px;margin-bottom:14px;}
.order-chip{border:1px solid #d1d5db;background:#fff;color:#334155;border-radius:999px;padding:8px 14px;font-weight:700;white-space:nowrap;}
.order-chip.active,.order-chip:hover{background:var(--brand);border-color:var(--brand);color:#fff;}
.order-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;}
.order-main-panel{min-width:0;}
.order-card{position:relative;background:#fff;border:1px solid color-mix(in srgb, var(--brand) 14%, #d9e2ec);border-radius:20px;box-shadow:0 8px 20px rgba(15,23,42,.05);padding:12px;display:flex;flex-direction:column;gap:10px;min-height:100%;} 
.order-card-stock{position:absolute;top:10px;right:10px;display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 12px;border-radius:10px;color:#fff;font-size:.74rem;font-weight:700;line-height:1.1;}
.order-card-stock.in-stock{background:#16a34a;box-shadow:0 8px 18px rgba(22,163,74,.22);}
.order-card-stock.out-of-stock{background:#dc3545;box-shadow:0 8px 18px rgba(220,53,69,.22);}
.order-card-main{display:grid;grid-template-columns:126px minmax(0,1fr);gap:14px;align-items:start;min-width:0;}
.order-card-media{padding:0;}
.order-card-media button{border:0;background:transparent;padding:0;width:100%;display:block;}
.order-card-media img{width:100%;aspect-ratio:var(--product-image-ratio);object-fit:contain;border-radius:14px;background:#fff;border:1px solid #dbe4ea;}
.order-card-body{padding:32px 0 0;display:flex;flex-direction:column;gap:0;min-width:0;}
.order-card-sku{font-size:.66rem;font-weight:400;color:#94a3b8;line-height:1.1;min-height:.82rem;letter-spacing:.01em;margin-bottom:2px;}
.order-card-title{font-size:1rem;font-weight:800;line-height:1.34;color:#b45309;margin-bottom:16px;}
.order-card-prices{display:flex;flex-direction:column;gap:3px;}
.order-card-price-label{font-size:.78rem;color:#6b7280;font-weight:700;text-transform:uppercase;letter-spacing:.04em;}
.order-card-price-value{font-size:.98rem;font-weight:900;color:#0f766e;line-height:1.16;}
.order-card-price-secondary{font-size:.8rem;font-weight:500;color:#334155;line-height:1.14;}
.order-card-scheme-badge{display:inline-flex;align-items:center;gap:6px;margin:-8px 0 10px;padding:4px 10px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.74rem;font-weight:700;border:1px solid #a7f3d0;}

.order-card-scheme-helper{font-size:.74rem;color:#8a6d00;margin-top:-.2rem;margin-bottom:.35rem;}
.order-cart-meta.text-warning-emphasis{color:#b45309 !important;font-weight:600;}
.order-card-pricing-note{font-size:.78rem;color:#475569;line-height:1.45;padding-left:0;}
.order-card-note{font-size:.76rem;color:#64748b;line-height:1.4;}
.order-card-meta{display:flex;flex-direction:column;gap:6px;font-size:.86rem;color:#475569;}
.order-card-meta strong{color:#111827;}
.order-card-footer{display:flex;align-items:stretch;justify-content:space-between;gap:10px;border:1px solid #cbd5e1;border-radius:12px;overflow:hidden;background:#fff;}
.order-card-pack{display:flex;align-items:center;flex:1 1 auto;padding:10px 12px;font-size:.95rem;color:#0f172a;background:#fff;}
.order-card-action{display:flex;align-items:center;justify-content:flex-end;padding:6px 8px;background:color-mix(in srgb, var(--brand) 7%, #fff);min-width:120px;}
.order-add-btn{border-radius:10px;padding:10px 18px;font-weight:800;min-width:84px;}
.order-qty-control{display:inline-flex;align-items:center;gap:6px;border:1px solid color-mix(in srgb, var(--brand) 20%, #cbd5e1);border-radius:10px;padding:4px 6px;background:#fff;flex-wrap:nowrap;}
.order-qty-control button,.order-cart-qty button{width:30px;height:30px;border:0;border-radius:8px;background:var(--brand-soft);color:var(--brand-dark);font-size:1rem;font-weight:800;flex:0 0 auto;}
.order-qty-control input,.order-cart-qty input{width:48px;border:0;background:transparent;text-align:center;font-weight:800;outline:none;flex:0 0 auto;}
.order-qty-control-unit{font-size:.72rem;font-weight:700;color:#64748b;white-space:nowrap;padding-right:2px;}
.order-cart-panel{background:#fff;border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 2px 8px rgba(15,23,42,.04);padding:14px;position:sticky;top:132px;}
.order-cart-line{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:12px;border:1px solid #e6edf2;border-radius:18px;background:linear-gradient(180deg,#fff 0%,#f9fcfb 100%);box-shadow:0 4px 14px rgba(15,23,42,.04);margin-bottom:12px;}
.order-cart-line:last-child{margin-bottom:0;}
.order-cart-thumb-btn{border:0;background:transparent;padding:0;display:block;flex:0 0 auto;align-self:start;}
.order-cart-thumb{width:72px;aspect-ratio:var(--product-image-ratio);border-radius:16px;object-fit:contain;background:#fff;border:1px solid #dfe9e5;box-shadow:inset 0 0 0 1px rgba(255,255,255,.6);}
.order-cart-content{display:flex;flex-direction:column;gap:10px;min-width:0;}
.order-cart-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;min-width:0;}
.order-cart-name{font-weight:800;line-height:1.3;color:#1f2937;font-size:.95rem;}
.order-cart-price-line{font-size:.94rem;font-weight:900;color:var(--brand-dark);margin-top:5px;}
.order-cart-pack-line{font-size:.76rem;font-weight:700;color:#64748b;margin-top:3px;}
.order-cart-meta{font-size:.78rem;color:#6b7280;margin-top:2px;}
.order-cart-scheme-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:4px;}
.order-cart-scheme-pill{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#ecfdf5;border:1px solid #b7ead1;color:#0f766e;font-size:.72rem;font-weight:800;line-height:1;}
.order-cart-scheme-helper{font-size:.72rem;color:#9a6700;font-weight:700;}
.order-cart-remove{width:28px;height:28px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#94a3b8;display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;box-shadow:0 1px 2px rgba(15,23,42,.04);}
.order-cart-remove:hover{border-color:#dc3545;color:#dc3545;background:#fff5f5;}
.order-cart-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;min-width:0;}
.order-cart-qty{display:inline-flex;align-items:center;gap:5px;border:1px solid color-mix(in srgb, var(--brand) 18%, #cbd5e1);border-radius:12px;padding:4px 5px;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.04);max-width:100%;}
.order-cart-total{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right;min-width:92px;}
.order-cart-line-total{font-size:.92rem;font-weight:900;color:#111827;line-height:1.1;word-break:break-word;}
.order-cart-adjustment{font-size:.72rem;font-weight:700;line-height:1.2;}
.order-cart-adjustment-coupon{color:#0ea5e9;}
.order-cart-adjustment-cd{color:#16a34a;}
.order-summary-row{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:.92rem;padding:8px 0;border-bottom:1px dashed #e8edf3;}
.order-summary-row:last-child{border-bottom:0;}
.order-summary-row > span:first-child{color:#475569;font-weight:700;}
.order-summary-row strong{color:#0f172a;font-weight:800;}
.order-summary-row.total{font-size:1.08rem;font-weight:800;border-top:1px solid #dbe5ee;border-bottom:0;margin-top:10px;padding-top:14px;background:linear-gradient(180deg,#f8fffb 0%,#ffffff 100%);border-radius:14px;}
.order-summary-row.total > span:first-child{color:#0f172a;}
.order-gallery-main{width:100%;max-height:72vh;object-fit:contain;background:#f8faf9;border-radius:18px;border:1px solid #e5e7eb;}

body.order-gallery-modal-open{overflow-anchor:none;}
body.order-gallery-modal-open .app-main-col,body.order-gallery-modal-open .app-content{overscroll-behavior:contain;}
#orderGalleryModal.order-gallery-manual-open{display:block;z-index:1055;}
#orderGalleryModal.order-gallery-manual-open .modal-dialog{pointer-events:auto;}
.order-gallery-footer{display:flex;justify-content:center;margin-top:16px;padding-top:4px;}
.order-list-table-responsive{overflow-x:auto;overflow-y:visible;}
.order-list-desktop-actions,.order-list-card-menu,.order-list-desktop-menu{position:relative;}
.order-list-desktop-menu .dropdown-menu{min-width:160px;z-index:1085;}


.order-gallery-backdrop{z-index:1050;background:rgba(15,23,42,.55);}

.order-gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:999px;border:0;background:rgba(15,23,42,.8);color:#fff;}
.order-gallery-prev{left:16px;}
.order-gallery-next{right:16px;}
.order-empty-state{background:#fff;border:1px dashed #cbd5e1;border-radius:22px;padding:36px 18px;text-align:center;color:#64748b;}
.order-customer-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px;display:flex;justify-content:space-between;gap:12px;align-items:flex-start;text-decoration:none;color:inherit;box-shadow:0 2px 8px rgba(15,23,42,.04);}
.order-customer-card:hover{border-color:var(--brand);box-shadow:0 10px 24px rgba(25,135,84,.10);}
.order-customer-name{font-size:1rem;font-weight:800;line-height:1.3;color:#111827;}
.order-customer-meta{font-size:.86rem;color:#64748b;line-height:1.45;margin-top:4px;}
.order-source-badge{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;padding:5px 9px;border-radius:999px;background:var(--brand-soft);color:var(--brand-dark);}

.order-customer-details-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.order-customer-detail-card-full{grid-column:1 / -1;}
#orderCustomerInfoModal .modal-content{border-radius:22px;}
#orderCustomerInfoModal .modal-body{padding-top:12px;}

.order-page-subtitle{display:block;font-size:.86rem;color:#64748b;line-height:1.45;margin-top:2px;}
.order-create-header .page-title{font-size:1.05rem;}
.order-customer-trigger-wrap{min-width:0;}
.order-customer-trigger{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:var(--brand-dark);font-weight:800;position:relative;z-index:1;}
.order-customer-trigger:hover{color:var(--brand);}
.order-customer-card-colorful{background:linear-gradient(180deg,#fff 0%,var(--card-bg) 100%);border-color:var(--card-border);border-left:4px solid var(--card-accent);min-height:100%;}
.order-customer-card-colorful:hover{border-color:var(--card-accent);box-shadow:0 12px 28px color-mix(in srgb, var(--card-accent) 18%, transparent);transform:translateY(-1px);}
.order-customer-main{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1 1 auto;}
.order-customer-topline{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;}
.order-customer-type-line{font-size:.88rem;font-weight:700;color:#475569;line-height:1.4;}
.order-customer-meta-line{display:flex;align-items:flex-start;gap:8px;}
.order-customer-meta-line i{color:var(--card-accent);font-size:.9rem;line-height:1.4;margin-top:1px;}
.order-customer-meta-line-address i{color:#f97316;}
.order-customer-meta-line-salesperson i{color:#0f766e;}
.order-customer-address{color:#b45309;font-weight:600;}
.order-customer-salesperson{color:#0f766e;font-weight:700;}
.order-customer-action-icons{display:flex;flex-direction:column;gap:8px;align-items:flex-end;}
.order-customer-icon-badge{width:34px;height:34px;border-radius:999px;background:#fff;border:1px solid color-mix(in srgb, var(--card-accent) 30%, #d1d5db);display:inline-flex;align-items:center;justify-content:center;color:var(--card-accent);box-shadow:0 6px 14px rgba(15,23,42,.04);}
.order-view-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;}
.order-view-action-btn{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:.62rem 1rem;font-weight:800;box-shadow:0 10px 24px rgba(15,23,42,.08);border:1px solid #dbe3ea;}
.order-view-action-form{display:inline-flex;margin:0;}
.order-view-action-form .order-view-action-btn{margin:0;}
.order-view-action-btn i{font-size:.95rem;}
.order-view-action-back{color:#0f172a;background:#fff;}
.order-view-action-back:hover{background:#f8fafc;color:#0f172a;}
.order-view-action-btn.btn-primary{border-color:color-mix(in srgb, var(--brand) 30%, #0d6efd);box-shadow:0 12px 28px rgba(25,135,84,.16);}
.order-view-page-header{position:relative;align-items:flex-start;gap:12px;}
.order-view-page-title-wrap{min-width:0;flex:1 1 auto;}
.order-view-mobile-menu{display:none;position:relative;flex:0 0 auto;}
.order-view-mobile-menu summary::-webkit-details-marker{display:none;}
.order-view-mobile-menu-toggle{list-style:none;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;border:1px solid #dbe3ea;background:#fff;color:#0f172a;box-shadow:0 10px 24px rgba(15,23,42,.08);cursor:pointer;}
.order-view-mobile-menu[open] .order-view-mobile-menu-toggle{background:#f8fafc;}
.order-view-mobile-menu-sheet{position:absolute;top:50px;right:0;width:min(270px,calc(100vw - 32px));padding:12px;border-radius:18px;background:#fff;border:1px solid #dbe3ea;box-shadow:0 18px 38px rgba(15,23,42,.16);z-index:30;}
.order-view-mobile-menu-head{padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #edf2f7;}
.order-view-mobile-menu-title{font-size:.95rem;font-weight:800;color:#0f172a;}
.order-view-mobile-menu-subtitle{font-size:.74rem;color:#64748b;line-height:1.35;}
.order-view-mobile-menu-list{display:flex;flex-direction:column;gap:8px;}
.order-view-mobile-menu-list .order-view-action-btn,.order-view-mobile-menu-list .order-view-action-form{width:100%;}
.order-view-mobile-menu-list .order-view-action-btn{justify-content:flex-start;padding:.72rem .92rem;border-radius:14px;}
.order-view-mobile-info-card{padding:14px;border-radius:20px;}
.order-view-customer-accordion{display:block;}
.order-view-customer-accordion summary::-webkit-details-marker{display:none;}
.order-view-customer-summary{list-style:none;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;cursor:pointer;}
.order-view-customer-summary-main{min-width:0;flex:1 1 auto;}
.order-view-customer-firm{font-size:1rem;font-weight:800;color:#0f172a;line-height:1.25;}
.order-view-customer-person{font-size:.84rem;font-weight:600;color:#64748b;line-height:1.35;}
.order-view-customer-location{display:flex;align-items:flex-start;gap:7px;font-size:.76rem;color:#0ea5e9;font-weight:700;line-height:1.35;margin-top:6px;}
.order-view-customer-location i{margin-top:1px;}
.order-view-customer-summary-end{display:inline-flex;align-items:center;gap:6px;color:#64748b;font-weight:700;white-space:nowrap;}
.order-view-customer-toggle-text{font-size:.74rem;}
.order-view-customer-summary-end i{transition:transform .18s ease;}
.details-open > .order-view-customer-summary .order-view-customer-summary-end i,
.order-view-customer-accordion[open] > .order-view-customer-summary .order-view-customer-summary-end i{transform:rotate(90deg);}
.order-view-customer-details{padding-top:12px;margin-top:12px;border-top:1px solid #eef2f7;}
.order-view-mobile-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.order-view-mobile-meta-item{padding:10px 11px;border-radius:14px;background:#f8fbfa;border:1px solid #e3ece7;display:flex;flex-direction:column;gap:4px;min-width:0;}
.order-view-mobile-meta-item span{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#64748b;}
.order-view-mobile-meta-item strong{font-size:.8rem;color:#0f172a;line-height:1.35;word-break:break-word;}
.order-view-mobile-meta-item-wide{grid-column:1 / -1;}
.order-view-mobile-meta-item a{text-decoration:none;color:inherit;}
.order-bottom-bar{position:fixed;left:308px;right:24px;bottom:0;z-index:1045;display:flex;gap:10px;align-items:center;justify-content:space-between;padding:8px 10px calc(8px + env(safe-area-inset-bottom));border:1px solid #e5e7eb;border-bottom:0;border-radius:18px 18px 0 0;background:rgba(255,255,255,.98);backdrop-filter:blur(8px);box-shadow:0 -8px 24px rgba(15,23,42,.10);margin-top:0;max-width:calc(100vw - 332px);}
body.desktop-sidebar-collapsed .order-bottom-bar{left:120px;}
.order-bottom-btn{min-height:46px;font-weight:700;flex:1 1 0;}
.order-bottom-bar > .order-bottom-btn{max-width:220px;}
.order-bottom-bar > #orderReviewBtn{max-width:260px;}
.order-bottom-bar > #orderBottomBackBtn{max-width:160px;}
.order-shell{padding-bottom:124px;}
.order-qty-control input,.order-cart-qty input{-moz-appearance:textfield;appearance:textfield;}
.order-qty-control input::-webkit-outer-spin-button,.order-qty-control input::-webkit-inner-spin-button,.order-cart-qty input::-webkit-outer-spin-button,.order-cart-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.order-summary-row-charge .btn{padding:.25rem .55rem;font-size:.8rem;}
.order-summary-shell{grid-template-columns:minmax(0,1fr);}
.order-summary-page{display:block;}
.order-summary-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.9fr);gap:16px;align-items:start;}
.order-summary-side{min-width:0;}
.order-summary-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 2px 8px rgba(15,23,42,.04);padding:16px;}
.order-summary-totals-card{position:sticky;top:132px;background:linear-gradient(180deg,#f8fffb 0%,#ffffff 100%);border-color:#dcebe3;box-shadow:0 14px 28px rgba(15,23,42,.06);}
.order-summary-totals-card .form-label{font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#64748b;margin-bottom:.4rem;}
.order-summary-totals-card .input-group{box-shadow:0 4px 12px rgba(15,23,42,.04);border-radius:14px;}
.order-summary-totals-card .input-group .form-control{border-top-left-radius:14px;border-bottom-left-radius:14px;border-color:#dbe5df;background:#fff;}
.order-summary-totals-card .input-group .btn{border-top-right-radius:14px;border-bottom-right-radius:14px;padding-inline:1rem;font-weight:700;}
.order-summary-totals-card #orderSummaryRows{margin-top:.75rem;padding-top:.25rem;}
.order-coupon-box{padding:10px 12px;border-radius:14px;background:#effaf4;border:1px solid #cce8d7;color:#166534;}
.order-summary-bottom{display:flex;flex-direction:column;gap:8px;justify-content:flex-start;align-items:stretch;}
.order-summary-bottom-row{display:grid;gap:8px;align-items:center;}
.order-summary-bottom-row-meta{grid-template-columns:minmax(56px,.7fr) minmax(0,1fr) minmax(0,1.2fr);}
.order-summary-bottom-row-primary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
.order-summary-bottom-row-primary-single{grid-template-columns:minmax(0,1fr);}
.order-summary-bottom .order-bottom-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;}
.order-summary-bottom .order-bottom-btn i{font-size:1rem;line-height:1;}
.order-bottom-btn-back{padding-left:.8rem;padding-right:.8rem;}
.order-bottom-btn-back .order-bottom-btn-label{display:none;}
.order-bottom-btn-clear,.order-bottom-btn-add{font-weight:700;}

.order-bottom-btn-label-short{display:none;}
.order-create-bottom .order-bottom-btn,.order-summary-bottom .order-bottom-btn{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.order-create-bottom #orderReviewBtn .badge{flex:0 0 auto;}

@media (max-width: 479.98px){
  .order-view-mobile-menu-sheet{width:min(248px,calc(100vw - 24px));top:46px;padding:10px;}
  .order-view-mobile-menu-toggle{width:40px;height:40px;border-radius:13px;}
  .order-view-mobile-meta-grid{grid-template-columns:minmax(0,1fr);}
  .order-view-customer-summary{gap:10px;}
  .order-bottom-bar{left:8px;right:8px;gap:6px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));}
  .order-summary-bottom{gap:6px;}
  .order-summary-bottom-row{gap:6px;width:100%;}
  .order-summary-bottom-row-meta{grid-template-columns:42px minmax(0,1fr) minmax(0,1fr);}
  .order-summary-bottom-row-primary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:none;}
  .order-summary-bottom-row-primary-single{grid-template-columns:minmax(0,1fr);max-width:none;}
  .order-create-bottom{justify-content:space-between;}
  .order-create-bottom .order-bottom-btn{flex:1 1 0;min-width:0;max-width:none;min-height:42px;font-size:.8rem;padding:.45rem .6rem;gap:6px;}
  .order-create-bottom #orderBottomBackBtn{flex:0 0 96px;}
  .order-create-bottom #orderReviewBtn{flex:1 1 auto;}
  .order-summary-bottom .order-bottom-btn{min-height:42px;font-size:.78rem;padding:.45rem .55rem;gap:6px;}
  .order-summary-bottom .order-bottom-btn i,.order-create-bottom .order-bottom-btn i{font-size:.92rem;line-height:1;}
  .order-bottom-btn-clear,.order-bottom-btn-add{letter-spacing:0;}
}

@media (max-width: 389.98px){
  .order-create-bottom #orderBottomBackBtn{flex:0 0 82px;}
  .order-summary-bottom-row-meta{grid-template-columns:40px minmax(0,1fr) minmax(0,1fr);}
  .order-summary-bottom .order-bottom-btn,.order-create-bottom .order-bottom-btn{font-size:.74rem;padding:.42rem .45rem;gap:5px;}
  .order-bottom-btn-label-full{display:none;}
  .order-bottom-btn-label-short{display:inline;}
  .order-bottom-btn-back .order-bottom-btn-label-short{display:none;}
  .order-summary-bottom .order-bottom-btn i,.order-create-bottom .order-bottom-btn i{font-size:.9rem;}
}

@media (max-width:991.98px){
  .order-summary-grid{grid-template-columns:minmax(0,1fr);}
  .order-summary-totals-card{position:static;}
}
@media (max-width:767.98px){
  .order-summary-card{padding:14px;}
  .order-summary-bottom-row-meta{grid-template-columns:48px minmax(0,.95fr) minmax(0,1.05fr);}
  .order-summary-bottom-row-primary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .order-summary-bottom .order-bottom-btn{flex:none;min-height:44px;padding-left:.75rem;padding-right:.75rem;}
  .order-cart-line{grid-template-columns:60px minmax(0,1fr);gap:10px;padding:10px;}
  .order-cart-thumb{width:60px;border-radius:14px;}
  .order-cart-name{font-size:.84rem;line-height:1.22;}
  .order-cart-price-line{font-size:.82rem;}
  .order-cart-pack-line{font-size:.68rem;}
  .order-cart-meta{font-size:.7rem;}
  .order-cart-scheme-pill{font-size:.66rem;padding:3px 7px;}
  .order-cart-scheme-helper{font-size:.66rem;}
  .order-cart-bottom{align-items:center;gap:8px;}
  .order-cart-qty{gap:3px;padding:3px 4px;border-radius:10px;}
  .order-cart-qty button{width:24px;height:24px;border-radius:7px;}
  .order-cart-qty input{width:22px;font-size:.82rem;}
  .order-qty-control-unit{font-size:.62rem;max-width:36px;overflow:hidden;text-overflow:ellipsis;}
  .order-cart-total{min-width:72px;max-width:84px;}
  .order-cart-line-total{font-size:.78rem;}
  .order-cart-adjustment{font-size:.62rem;}
  .order-cart-remove{width:24px;height:24px;flex-basis:24px;}
}

@media (min-width:1200px){
  .order-shell{grid-template-columns:minmax(0,1fr);}
  .order-cart-panel{display:none!important;}
  .order-bottom-bar{display:flex;padding:8px 12px 8px;justify-content:center;gap:12px;}
  .order-bottom-btn{min-height:40px;font-size:.94rem;padding:.45rem 1rem;flex:0 1 auto;}
  .order-summary-bottom-row{justify-items:center;}
  .order-summary-bottom-row-meta{grid-template-columns:56px minmax(160px,220px) minmax(180px,240px);justify-content:center;}
  .order-summary-bottom-row-primary{grid-template-columns:minmax(220px,280px) minmax(220px,280px);justify-content:center;}
  .order-summary-bottom-row-primary-single{grid-template-columns:minmax(240px,320px);}
}
@media (max-width:1199.98px){
  .order-bottom-bar{left:12px;right:12px;bottom:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));}
}
@media (max-width:767.98px){
  .order-view-page-header{align-items:center;}
  .order-view-page-header .order-view-actions{display:none!important;}
  .order-view-mobile-menu{display:block;}
  .order-view-action-btn{padding:.56rem .9rem;}
  .order-grid{grid-template-columns:1fr;}
  body.order-page-active .app-content{padding-top:0;}
  body.order-page-active .order-shell{padding-top:0;}
  body.order-page-active .order-sticky-stack::before{display:none;}
  .order-sticky-stack{margin:0 -12px 12px;padding:10px 12px 8px;top:var(--app-navbar-height);}
  .order-create-header{padding:0;margin-bottom:6px!important;}
  .order-toolbar{padding:0;}
  .order-cart-panel{position:static;}
  .order-create-header .page-title{font-size:1rem;}
  .order-customer-card{padding:12px;}
  .order-card{padding:10px;}
  .order-card-main{grid-template-columns:124px minmax(0,1fr);gap:10px;}
  .order-card-body{padding-top:26px;gap:0;}
  .order-card-stock{font-size:.66rem;font-weight:600;padding:4px 9px;min-height:24px;}
  .order-card-sku{font-size:.6rem;min-height:.74rem;margin-bottom:1px;}
  .order-card-title{font-size:.88rem;line-height:1.26;margin-bottom:13px;}
  .order-card-price-secondary{font-size:.7rem;line-height:1.1;font-weight:500;color:#334155;}
  .order-card-price-value{font-size:.86rem;line-height:1.08;}
  .order-card-pricing-note{font-size:.7rem;line-height:1.35;}
  .order-card-note{font-size:.7rem;line-height:1.3;}
  .order-card-pack{font-size:.82rem;padding:9px 10px;}
  .order-card-action{min-width:108px;padding:5px 6px;}
  .order-qty-control{gap:4px;padding:4px 5px;}
  .order-qty-control button{width:28px;height:28px;}
  .order-qty-control input{width:34px;font-size:.88rem;}
  .order-qty-control-unit{font-size:.66rem;}
  .order-add-btn{padding:9px 14px;min-width:76px;font-size:.84rem;}
  .order-bottom-bar{left:8px;right:8px;gap:8px;bottom:0;padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0;}
  .order-bottom-btn{min-height:44px;}

  .order-customer-topline{align-items:center;}
}


.sidebar-footer-card-static{margin-top:0;position:relative;bottom:auto;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:12px;box-shadow:0 8px 18px rgba(15,23,42,.05);z-index:2;flex:0 0 auto;width:auto;max-width:none;margin:0 12px 12px;}
.sidebar-footer-head{display:flex;align-items:center;justify-content:flex-start;gap:12px;}
.sidebar-footer-user{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;width:100%;text-align:left;}
.sidebar-footer-avatar{width:36px;height:36px;border-radius:12px;background:#f8fafc;border:1px solid #e5e7eb;display:inline-flex;align-items:center;justify-content:center;color:#64748b;flex:0 0 auto;}
.sidebar-footer-name{display:block;font-size:.92rem;font-weight:700;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sidebar-footer-role{display:block;font-size:.78rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sidebar-footer-actions-static{display:block!important;padding-top:10px;}
.sidebar-footer-card-static .sidebar-footer-meta{min-width:0;display:flex;flex-direction:column;}
.sidebar-footer-card-static .sidebar-footer-toggle,.sidebar-footer-card-static .sidebar-footer-icon{display:none!important;}
.sidebar-footer-card-static .sidebar-footer-actions-row{justify-content:center;}
@media (max-width:991.98px){
  .sidebar-footer-card-static{padding:10px 12px calc(10px + env(safe-area-inset-bottom));margin:0 12px calc(12px + env(safe-area-inset-bottom));}
}

/* v65 sidebar footer + top spacing cleanup */
.sidebar-shell{
  display:flex;
  flex-direction:column;
}
.sidebar-body-shell{
  min-height:calc(100dvh - var(--app-navbar-height));
  height:calc(100dvh - var(--app-navbar-height));
  overflow:hidden;
}
.sidebar-scroll{
  padding:0 12px 12px !important;
}
.sidebar-accordion{
  padding:0 !important;
  gap:10px;
}
.sidebar-footer-card-static{
  margin:0 12px 12px !important;
  padding:0 !important;
  position:sticky;
  bottom:0;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
  box-shadow:0 -8px 20px rgba(15,23,42,.06);
  overflow:hidden;
}
.sidebar-footer-head{display:none !important;}
.sidebar-footer-card-static .sidebar-footer-toggle{
  display:flex !important;
  width:100%;
  border:0;
  background:#fff;
  padding:12px 14px;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  text-align:left;
}
.sidebar-footer-card-static .sidebar-footer-icon{display:none !important;}
.sidebar-footer-card-static .sidebar-footer-meta{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.sidebar-footer-card-static .sidebar-footer-actions-static{
  display:block;
  padding:0 12px 12px;
}
.sidebar-footer-card-static .sidebar-footer-actions-static:not(.show){display:none !important;}
.sidebar-footer-card-static .sidebar-footer-actions-static.show{display:block !important;}
.sidebar-footer-card-static .sidebar-footer-actions-row{
  justify-content:center;
}
.sidebar-footer-card-static .sidebar-footer-toggle .bi-chevron-up{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#64748b;
  transition:transform .16s ease;
}
.sidebar-footer-card-static .sidebar-footer-toggle[aria-expanded="true"] .bi-chevron-up{
  transform:rotate(180deg);
}
@media (min-width:992px){
  .sidebar-shell{
    position:sticky;
    top:var(--app-navbar-height);
    height:calc(100dvh - var(--app-navbar-height));
  }
}
@media (max-width:991.98px){
  .sidebar-mobile-header{
    min-height:54px;
    padding:12px 14px;
  }
  .sidebar-scroll{
    padding:0 12px 10px !important;
  }
  .sidebar-footer-card-static{
    margin:0 12px calc(12px + env(safe-area-inset-bottom)) !important;
  }
}
.sidebar-footer-card-static .sidebar-footer-actions-static{padding:0 12px 12px;}
.sidebar-footer-card-static .sidebar-footer-actions-static:not(.show){display:none !important;}
.sidebar-footer-card.auto-open .sidebar-footer-actions-static.show{display:block !important;}

@media (max-width:575.98px){
  .order-customer-details-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .order-customer-detail-card{min-height:74px;padding:10px 12px;}
  .order-customer-detail-card-full{grid-column:1 / -1;}
}

.report-nav-card{transition:transform .14s ease,box-shadow .14s ease;}
.report-nav-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,23,42,.08);}
.report-nav-icon{width:44px;height:44px;border-radius:14px;background:var(--brand-soft);display:flex;align-items:center;justify-content:center;color:var(--brand-dark);font-size:1.15rem;flex:0 0 44px;}
.report-summary-card{min-height:102px;display:flex;flex-direction:column;justify-content:center;}
.report-summary-label{font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#64748b;}
.report-summary-value{font-size:1.25rem;font-weight:800;color:#0f172a;line-height:1.2;margin-top:6px;word-break:break-word;}
.report-filter-offcanvas{height:min(82vh,760px);border-top-left-radius:20px;border-top-right-radius:20px;}
.report-filter-offcanvas .offcanvas-body{padding-bottom:88px;}
.report-filter-footer{position:sticky;bottom:0;background:#fff;padding-top:8px;border-top:1px solid #e5e7eb;}
@media (max-width:991.98px){.report-filter-desktop{display:none!important;}}


.sidebar-count-badge{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:1.45rem;height:1.45rem;padding:0 .4rem;border-radius:999px;background:#f59e0b;color:#fff;font-size:.72rem;font-weight:700;line-height:1;box-shadow:0 2px 6px rgba(245,158,11,.25);}
.sidebar-acc-links .sidebar-link .sidebar-count-badge{margin-left:auto;flex:0 0 auto;}
body.desktop-sidebar-collapsed .sidebar-count-badge{display:none;}


@media (max-width:991.98px){
  .sidebar-scroll{padding-bottom:112px !important;}
  .sidebar-footer-card-static{position:sticky;bottom:0;z-index:6;margin:0 12px calc(8px + env(safe-area-inset-bottom)) !important;border-radius:18px 18px 0 0;box-shadow:0 -10px 24px rgba(15,23,42,.10);}
  .sidebar-footer-card-static .sidebar-footer-toggle{display:flex !important;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:#fff;}
  .sidebar-footer-card-static .sidebar-footer-actions-static{padding:0 12px calc(12px + env(safe-area-inset-bottom)) !important;background:#fff;}
  .sidebar-footer-card-static .sidebar-footer-actions-static:not(.show){display:none !important;}
  .sidebar-footer-card-static .sidebar-footer-actions-static.show{display:block !important;}
  .sidebar-footer-card-static .sidebar-footer-actions-row{display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:nowrap;}
  .sidebar-footer-card-static .sidebar-footer-iconbtn{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;}
}


.attendance-status-pill{font-size:.78rem;padding:.48rem .72rem;border-radius:999px;}
.attendance-page .page-card{border-radius:18px;}
.attendance-action-card{position:relative;overflow:hidden;}
.attendance-section-label{font-size:.76rem;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:800;}
.attendance-main-title{font-size:1.1rem;font-weight:800;color:#0f172a;}
.attendance-summary-text{font-size:.96rem;color:#334155;line-height:1.5;}
.attendance-proof-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.attendance-proof-item{border:1px solid #e5e7eb;border-radius:16px;padding:14px;background:#f8fafc;}
.attendance-proof-label{font-size:.74rem;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:800;}
.attendance-proof-value{font-size:1rem;font-weight:800;color:#111827;margin-top:4px;}
.attendance-geo-status{font-size:.88rem;border:1px dashed #cbd5e1;background:#f8fafc;border-radius:14px;padding:12px;}
.attendance-preview-image{width:100%;max-width:210px;border-radius:16px;border:1px solid #d1d5db;aspect-ratio:5/6;object-fit:cover;background:#fff;}
.attendance-history-table td,.attendance-history-table th{vertical-align:middle;}
.attendance-stat-card{height:100%;}
.attendance-stat-value{font-size:1.7rem;font-weight:800;color:#0f172a;line-height:1.15;margin-top:6px;}
@media (max-width: 767.98px){
  .attendance-proof-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .attendance-proof-value{font-size:.94rem;}
}


html.app-modal-open,body.app-modal-open{overflow:hidden;}
.app-custom-modal{display:none;position:fixed;inset:0;z-index:2060;overflow:auto;padding:.75rem;background:rgba(15,23,42,.55);-webkit-overflow-scrolling:touch;}
.app-custom-modal.show{display:block;}
.app-custom-modal .modal-dialog{margin:0 auto;min-height:calc(100vh - 1.5rem);display:flex;align-items:center;pointer-events:none;}
.app-custom-modal .modal-content{width:100%;pointer-events:auto;border:0;border-radius:24px;box-shadow:0 28px 60px rgba(15,23,42,.24);}
.app-custom-modal .modal-header,.app-custom-modal .modal-footer{background:#fff;position:relative;z-index:1;}
.app-custom-modal .modal-body{background:#fff;}
.app-custom-modal .btn-close{position:relative;z-index:2;}
.app-custom-modal .modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1.5rem);}
.app-custom-modal .modal-dialog-scrollable .modal-body{max-height:calc(100vh - 180px);overflow:auto;-webkit-overflow-scrolling:touch;}
@media (max-width: 767.98px){
  .app-custom-modal{padding:.5rem;}
  .app-custom-modal .modal-dialog{min-height:calc(100vh - 1rem);}
  .app-custom-modal .modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);}
  .app-custom-modal .modal-dialog-scrollable .modal-body{max-height:calc(100vh - 168px);}
}


@media (min-width: 992px){
  .order-bottom-bar:not(.order-summary-bottom){justify-content:flex-end;gap:12px;padding:10px 14px 10px;}
  .order-bottom-bar:not(.order-summary-bottom) .order-bottom-btn{flex:0 0 auto;min-width:108px;max-width:158px;min-height:38px;font-size:.86rem;padding:.45rem .78rem;}
  .order-bottom-bar:not(.order-summary-bottom) #orderReviewBtn{min-width:136px;}
  .order-summary-bottom{align-items:flex-end;padding:10px 14px 10px;}
  .order-summary-bottom-row{width:min(620px,100%);margin-left:auto;}
  .order-summary-bottom-row-meta{grid-template-columns:58px 138px 152px;}
  .order-summary-bottom-row-primary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:380px;}
  .order-summary-bottom-row-primary-single{grid-template-columns:minmax(0,1fr);max-width:220px;}
  .order-summary-bottom .order-bottom-btn{min-height:38px;font-size:.86rem;padding:.44rem .72rem;}
}

@media (min-width: 1200px){
  .order-summary-bottom-row{width:min(660px,100%);}
  .order-summary-bottom-row-meta{grid-template-columns:66px 156px 176px;}
  .order-summary-bottom-row-primary{max-width:440px;}
}

/* v98.13.0.54 salesperson customer activity flow */
.salesperson-customer-list-card{cursor:pointer;}
.salesperson-customer-inline-actions{display:flex;justify-content:flex-end;align-items:center;}
.salesperson-customer-call-actions{display:flex;gap:10px;align-items:center;}
.salesperson-icon-btn{width:42px;height:42px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid #dbe3ea;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.06);font-size:1.05rem;}
.salesperson-icon-btn-call{color:#5b4fcf;border-color:#cfcaf8;}
.salesperson-icon-btn-whatsapp{color:#12b76a;border-color:#b7f2d2;}
.salesperson-customer-cta-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;}
.salesperson-customer-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:14px;font-weight:800;min-height:44px;}

.salesperson-customer-cta-order{background:linear-gradient(180deg,#4f46e5 0%,#4338ca 100%);border:1px solid #4338ca;color:#fff;box-shadow:0 10px 18px rgba(79,70,229,.18);}
.salesperson-customer-cta-order:hover,.salesperson-customer-cta-order:focus{background:linear-gradient(180deg,#4338ca 0%,#3730a3 100%);border-color:#3730a3;color:#fff;box-shadow:0 14px 24px rgba(79,70,229,.24);}
.salesperson-customer-cta-order .app-inline-icon{color:currentColor;}
.salesperson-customer-detail-shell.order-customer-card-colorful{background:linear-gradient(180deg,#fff 0%,var(--card-bg) 100%);border-color:var(--card-border);border-left:4px solid var(--card-accent);box-shadow:0 12px 28px color-mix(in srgb, var(--card-accent) 10%, rgba(15,23,42,.04));}
.salesperson-customer-detail-shell.order-customer-card-colorful::after{background:radial-gradient(circle, color-mix(in srgb, var(--card-accent) 18%, white) 0%, rgba(99,102,241,0) 70%);}
.salesperson-customer-detail-shell .salesperson-customer-list-ribbon{background:color-mix(in srgb, var(--card-accent) 22%, white);}
.salesperson-customer-detail-shell .salesperson-customer-list-ribbon span{color:color-mix(in srgb, var(--card-accent) 78%, #0f172a);}

.salesperson-customer-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;overflow:hidden;}
.salesperson-customer-hero-left{display:flex;flex-direction:column;gap:6px;min-width:0;}
.salesperson-customer-tier-strip{display:inline-flex;align-items:center;gap:6px;font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;padding:5px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;align-self:flex-start;}
.salesperson-customer-hero-title{font-size:1.35rem;font-weight:900;color:#0f172a;line-height:1.2;}
.salesperson-customer-hero-subtitle{font-size:.95rem;font-weight:700;color:#475569;}
.salesperson-customer-hero-meta{display:inline-flex;align-items:center;gap:6px;font-size:.92rem;color:#0f766e;font-weight:700;}
.salesperson-customer-hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.salesperson-customer-tabs{display:flex;gap:8px;flex-wrap:wrap;}
.salesperson-customer-tab{display:inline-flex;align-items:center;gap:8px;padding:.8rem 1rem;border-radius:14px;text-decoration:none;font-weight:800;color:#475569;border:1px solid #e2e8f0;background:#fff;}
.salesperson-customer-tab.active{background:#f0fdf4;border-color:#86efac;color:#166534;box-shadow:0 8px 16px rgba(22,163,74,.08);}
.salesperson-activity-card{border-radius:18px;box-shadow:0 10px 24px rgba(15,23,42,.06);}
.salesperson-activity-note{padding:12px 14px;border-radius:14px;background:#fff7ed;color:#7c2d12;font-weight:600;line-height:1.6;}
@media (max-width: 767.98px){
  .salesperson-customer-hero{padding:14px;align-items:flex-start;flex-direction:column;}
  .salesperson-customer-hero-title{font-size:1.15rem;}
  .salesperson-customer-hero-actions{width:100%;justify-content:flex-start;}
  .salesperson-customer-cta-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .salesperson-customer-cta{min-height:42px;font-size:.88rem;padding:.65rem .7rem;}
  .salesperson-customer-tabs{overflow:auto;flex-wrap:nowrap;padding-bottom:2px;}
  .salesperson-customer-tab{white-space:nowrap;}
}


/* v98.13.0.55 salesperson customer mobile UI polish */
.salesperson-customer-list-card{position:relative;overflow:hidden;padding-left:18px;}
.salesperson-customer-list-ribbon{position:absolute;left:0;top:14px;bottom:14px;width:18px;border-radius:14px;background:color-mix(in srgb, var(--card-accent) 22%, white);display:flex;align-items:center;justify-content:center;z-index:1;}
.salesperson-customer-list-ribbon span{writing-mode:vertical-rl;transform:rotate(180deg);font-size:.7rem;font-weight:800;letter-spacing:.04em;color:color-mix(in srgb, var(--card-accent) 78%, #0f172a);text-transform:uppercase;}
.salesperson-customer-list-body{padding-left:8px;}
.salesperson-customer-list-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.salesperson-customer-list-title-wrap{min-width:0;}
.salesperson-customer-location{display:inline-flex;align-items:center;gap:6px;font-size:.88rem;font-weight:700;color:#0ea5e9;margin-top:3px;}
.salesperson-customer-profile-row{display:flex;align-items:center;gap:12px;margin-top:12px;min-width:0;}
.salesperson-customer-avatar{width:54px;height:54px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;background:#f8fafc;border:1px solid #dbe3ea;color:#94a3b8;font-size:1.3rem;flex:0 0 54px;}
.salesperson-customer-avatar-lg{width:62px;height:62px;border-radius:18px;font-size:1.5rem;}
.salesperson-customer-profile-text{min-width:0;display:flex;flex-direction:column;gap:2px;}
.salesperson-customer-owner{font-weight:800;color:#1f2937;font-size:1rem;line-height:1.2;}
.salesperson-customer-parent{font-size:.76rem;font-weight:700;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.salesperson-customer-hero-mobile{position:relative;overflow:hidden;padding-left:18px;}
.salesperson-customer-hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.salesperson-customer-list-ribbon-hero{top:16px;bottom:16px;}
.salesperson-customer-profile-row-hero{margin-top:12px;}
.salesperson-customer-cta-row-hero .salesperson-customer-cta{min-height:46px;}
.salesperson-customer-tabs-mobile{padding:6px !important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.salesperson-customer-tabs-mobile .salesperson-customer-tab{justify-content:center;padding:.78rem .55rem;border-radius:16px;}
.salesperson-customer-tabs-mobile .salesperson-customer-tab span{font-size:.86rem;}
.salesperson-customer-summary-grid .page-card{border-radius:18px;box-shadow:0 10px 24px rgba(15,23,42,.05);}
.salesperson-mini-stat{height:100%;}
@media (max-width:767.98px){
  .salesperson-customer-list-card{border-radius:22px;padding:14px 14px 14px 18px;}
  .salesperson-customer-list-ribbon{width:20px;left:0;top:12px;bottom:12px;border-radius:14px;}
  .salesperson-customer-list-body{padding-left:10px;}
  .salesperson-customer-call-actions{gap:8px;}
  .salesperson-icon-btn{width:40px;height:40px;font-size:1rem;box-shadow:0 6px 14px rgba(15,23,42,.05);}
  .salesperson-customer-cta-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;}
  .salesperson-customer-cta{border-radius:12px;min-height:44px;padding:.7rem .6rem;font-size:.9rem;}
  .salesperson-customer-hero-mobile{padding:14px 14px 14px 18px;}
  .salesperson-customer-hero-mobile .salesperson-customer-hero-top,
  .salesperson-customer-hero-mobile .salesperson-customer-profile-row-hero,
  .salesperson-customer-hero-mobile .salesperson-customer-cta-row-hero{width:100%;}
  .salesperson-customer-hero-mobile .salesperson-customer-profile-row-hero{align-items:center;}
  .salesperson-customer-hero-mobile .salesperson-customer-call-actions{margin-left:auto;justify-content:flex-end;}
  .salesperson-customer-hero-mobile .salesperson-customer-cta-row-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;}
  .salesperson-customer-hero-title{font-size:1.28rem;}
  .salesperson-customer-hero-subtitle{font-size:.9rem;}
  .salesperson-customer-tabs-mobile{position:sticky;top:10px;z-index:3;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.05);}
  .salesperson-customer-tabs-mobile .salesperson-customer-tab{flex-direction:column;gap:4px;padding:.72rem .4rem;}
  .salesperson-customer-tabs-mobile .salesperson-customer-tab i{font-size:1rem;}
  .salesperson-customer-tabs-mobile .salesperson-customer-tab span{font-size:.78rem;}
  .salesperson-customer-summary-grid .col-6{padding-top:0;}
  .salesperson-mini-stat{padding:.95rem .9rem !important;}
  .salesperson-mini-stat .h4{font-size:1.15rem;}
  .salesperson-activity-card{border-radius:20px;padding:16px !important;}
}


/* v98.13.0.56 order filter + mobile bottom bar polish */
.order-filter-sheet .modal-dialog{padding:12px;}
.order-filter-sheet .modal-content{border:1px solid #dbe5df;background:#f8fffb;box-shadow:0 22px 48px rgba(15,23,42,.16);}
.order-filter-sheet .modal-header{padding:16px 16px 12px;border-bottom:1px solid #e6efea;background:linear-gradient(180deg,#f8fffb 0%,#ffffff 100%);}
.order-filter-sheet .modal-header .modal-title{font-weight:800;color:#0f172a;}
.order-filter-sheet .modal-body{padding:14px 16px 10px;background:#f8fffb;}
.order-filter-sheet .modal-footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px));border-top:1px solid #e6efea;background:#fff;}
.order-filter-section{padding:12px 12px 10px;border:1px solid #dfeae3;border-radius:16px;background:#fff;box-shadow:0 6px 14px rgba(15,23,42,.04);}
.order-filter-section .form-label{font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#64748b;margin-bottom:.45rem;}
.order-filter-section .form-select{border-radius:12px;border-color:#dbe5df;min-height:42px;box-shadow:none;background-color:#fff;}
.order-filter-section .form-select:focus{border-color:color-mix(in srgb, var(--brand) 36%, #86b7fe);box-shadow:0 0 0 .2rem color-mix(in srgb, var(--brand) 12%, transparent);}
.order-filter-footer .btn{min-height:42px;border-radius:12px;font-weight:700;}

@media (min-width: 992px){
  .order-filter-sheet .modal-dialog{margin:14px 14px 14px auto;max-width:430px;min-height:calc(100vh - 28px);padding:0;}
  .order-filter-sheet .modal-content{height:100%;border-radius:24px;}
}

@media (max-width: 767.98px){
  .order-filter-sheet .modal-dialog{padding:10px 10px 0;}
  .order-filter-sheet .modal-content{border-radius:22px 22px 0 0;}
}

@media (max-width: 991.98px){
  .order-create-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;justify-content:stretch;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom, 0px));}
  .order-create-bottom .order-bottom-btn{width:100%;max-width:none !important;min-width:0;justify-content:center;}
  .order-create-bottom #orderBottomBackBtn,
  .order-create-bottom #orderReviewBtn{flex:1 1 auto;max-width:none !important;}
}

@media (max-width: 575.98px){
  .order-shell{padding-bottom:164px;}
  .order-summary-bottom{padding:10px 10px calc(10px + env(safe-area-inset-bottom, 0px));gap:8px;}
  .order-summary-bottom-row{width:100%;margin-left:0;}
  .order-summary-bottom-row-meta{grid-template-columns:44px minmax(0,1fr) minmax(0,1fr);}
  .order-summary-bottom-row-primary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:none;}
  .order-summary-bottom-row-primary-single{grid-template-columns:minmax(0,1fr);max-width:none;}
  .order-summary-bottom .order-bottom-btn{width:100%;min-width:0;max-width:none;min-height:42px;font-size:.78rem;padding:.48rem .5rem;gap:6px;justify-content:center;}
  .order-summary-bottom .order-bottom-btn .order-bottom-btn-label-full{display:none;}
  .order-summary-bottom .order-bottom-btn .order-bottom-btn-label-short{display:inline;}
  .order-summary-bottom .order-bottom-btn-back .order-bottom-btn-label-short{display:none;}
  .order-summary-bottom .order-bottom-btn-back{padding-left:.5rem;padding-right:.5rem;}
  .order-summary-bottom .order-bottom-btn-clear,
  .order-summary-bottom .order-bottom-btn-add{font-size:.74rem;}
  .order-summary-bottom #orderSaveDraftBtn,
  .order-summary-bottom #orderSaveConfirmBtn{font-size:.8rem;}
}

@media (max-width: 420px){
  .order-shell{padding-bottom:172px;}
  .order-summary-bottom-row-meta{grid-template-columns:40px minmax(0,1fr) minmax(0,1fr);}
  .order-summary-bottom .order-bottom-btn{min-height:40px;padding:.42rem .42rem;font-size:.74rem;}
  .order-summary-bottom #orderSaveDraftBtn,
  .order-summary-bottom #orderSaveConfirmBtn{font-size:.76rem;}
}


/* v98.13.0.57 salesperson customer icon + detail ui polish */
.app-inline-icon{display:inline-flex;align-items:center;justify-content:center;width:1.1rem;height:1.1rem;line-height:1;flex:0 0 auto;vertical-align:middle;}
.app-inline-icon svg{width:100%;height:100%;display:block;}
.app-inline-icon-sm{width:1rem;height:1rem;}
.app-inline-icon-lg{width:1.45rem;height:1.45rem;}
.salesperson-icon-btn .app-inline-icon{width:1.15rem;height:1.15rem;}
.salesperson-customer-cta .app-inline-icon{width:1rem;height:1rem;}
.salesperson-customer-tab .app-inline-icon{width:1rem;height:1rem;opacity:.9;}
.salesperson-detail-back-btn{display:inline-flex;align-items:center;gap:8px;border-radius:14px;font-weight:700;}
.salesperson-customer-detail-shell{border-radius:24px;overflow:hidden;}
.salesperson-customer-detail-shell::after{content:'';position:absolute;right:-36px;top:-36px;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,rgba(99,102,241,.14) 0%,rgba(99,102,241,0) 70%);pointer-events:none;}
.salesperson-detail-header{align-items:flex-end;}
.salesperson-detail-header .page-title{margin-bottom:2px;}
.salesperson-detail-header .page-subtitle{max-width:540px;}
.salesperson-customer-tabs-mobile .salesperson-customer-tab{background:#f8fafc;border-color:#e2e8f0;color:#475569;box-shadow:none;}
.salesperson-customer-tabs-mobile .salesperson-customer-tab.active{background:linear-gradient(180deg,#eef2ff 0%,#f5f3ff 100%);border-color:#c7d2fe;color:#4f46e5;box-shadow:0 10px 22px rgba(79,70,229,.12);}
.salesperson-customer-tabs-mobile .salesperson-customer-tab.active .app-inline-icon{color:#4f46e5;}
.salesperson-mini-stat{position:relative;overflow:hidden;}
.salesperson-mini-stat::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:4px;background:linear-gradient(180deg,#a5b4fc,#22c55e);opacity:.9;}
.salesperson-new-activity-btn{display:inline-flex;align-items:center;gap:8px;border-radius:14px;font-weight:800;padding:.72rem 1rem;}
@media (max-width:767.98px){
  .salesperson-detail-header{margin-bottom:10px;}
  .salesperson-detail-header .page-subtitle{font-size:.84rem;line-height:1.4;}
  .salesperson-detail-back-btn{min-height:40px;padding:.55rem .8rem;}
  .salesperson-customer-detail-shell{padding:16px 14px 16px 18px;}
  .salesperson-customer-detail-shell::after{right:-28px;top:-28px;width:94px;height:94px;}
  .salesperson-customer-detail-shell .salesperson-customer-hero-top{align-items:flex-start;}
  .salesperson-customer-detail-shell .salesperson-customer-hero-title{font-size:1.34rem;}
  .salesperson-customer-detail-shell .salesperson-customer-profile-row{gap:10px;align-items:center;}
  .salesperson-customer-detail-shell .salesperson-customer-profile-text{padding-right:4px;}
  .salesperson-customer-detail-shell .salesperson-customer-cta-row{margin-top:14px;}
  .salesperson-customer-detail-shell .salesperson-customer-call-actions{gap:10px;}
  .salesperson-customer-tabs-mobile{padding:8px !important;border-radius:20px;}
  .salesperson-customer-tabs-mobile .salesperson-customer-tab{min-height:62px;padding:.82rem .45rem;border-radius:15px;}
  .salesperson-customer-tabs-mobile .salesperson-customer-tab span{font-size:.8rem;font-weight:800;}
  .salesperson-customer-summary-grid{margin-top:2px;}
  .salesperson-mini-stat{min-height:92px;display:flex;flex-direction:column;justify-content:center;padding:1rem .9rem 1rem 1.05rem !important;}
  .salesperson-mini-stat .text-muted.small{font-size:.74rem !important;font-weight:700;}
  .salesperson-mini-stat .h6,.salesperson-mini-stat .h4{position:relative;z-index:1;}
}


/* v98.13.0.58 salesperson customer detail content cards */
.salesperson-content-stack{display:grid;gap:14px;}
.salesperson-detail-card{border-radius:22px;border:1px solid #e8edf5;box-shadow:0 14px 32px rgba(15,23,42,.06);background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);}
.salesperson-detail-card-top{display:flex;align-items:flex-start;gap:12px;}
.salesperson-detail-icon-chip{width:42px;height:42px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid #dbeafe;background:#eff6ff;color:#2563eb;box-shadow:inset 0 1px 0 rgba(255,255,255,.65);}
.salesperson-detail-icon-chip-indigo{background:#eef2ff;border-color:#c7d2fe;color:#4f46e5;}
.salesperson-detail-icon-chip-slate{background:#f8fafc;border-color:#d7dee8;color:#475569;}
.salesperson-detail-icon-chip-emerald{background:#ecfdf5;border-color:#bbf7d0;color:#059669;}
.salesperson-detail-title-wrap{min-width:0;flex:1 1 auto;}
.salesperson-detail-card-title{font-size:1rem;font-weight:900;color:#0f172a;line-height:1.25;}
.salesperson-detail-card-subtitle{margin-top:2px;font-size:.8rem;font-weight:700;color:#64748b;}
.salesperson-status-pill{display:inline-flex;align-items:center;justify-content:center;padding:.42rem .7rem;border-radius:999px;font-size:.72rem;font-weight:800;border:1px solid #e2e8f0;background:#fff;color:#475569;white-space:nowrap;}
.salesperson-status-pill-light{background:#f8fafc;color:#475569;border-color:#e2e8f0;}
.salesperson-status-pill-visited{background:#ecfdf5;color:#047857;border-color:#a7f3d0;}
.salesperson-status-pill-missed{background:#fff1f2;color:#be123c;border-color:#fecdd3;}
.salesperson-status-pill-rescheduled{background:#eff6ff;color:#2563eb;border-color:#bfdbfe;}
.salesperson-detail-meta-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.salesperson-detail-meta-chip{display:inline-flex;align-items:center;gap:6px;padding:.4rem .7rem;border-radius:999px;border:1px solid #e5e7eb;background:#f8fafc;color:#475569;font-size:.73rem;font-weight:800;}
.salesperson-detail-meta-chip-primary{background:#eff6ff;border-color:#bfdbfe;color:#2563eb;}
.salesperson-detail-meta-chip-warning{background:#fffbeb;border-color:#fde68a;color:#b45309;}
.salesperson-detail-meta-chip-danger{background:#fff1f2;border-color:#fecdd3;color:#be123c;}
.salesperson-detail-note-card{margin-top:14px;padding:14px 15px;border-radius:16px;background:linear-gradient(180deg,#fff7ed 0%,#fffbeb 100%);border:1px solid #fed7aa;color:#7c2d12;font-size:.9rem;line-height:1.55;}
.salesperson-detail-note-card-plain{background:#f8fafc;border-color:#e2e8f0;color:#334155;}
.salesperson-detail-footnote{margin-top:10px;font-size:.8rem;color:#64748b;}
.salesperson-detail-footer-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:14px;}
.salesperson-detail-location{display:inline-flex;align-items:flex-start;gap:7px;color:#0f766e;font-size:.8rem;font-weight:700;line-height:1.4;min-width:0;}
.salesperson-detail-location .app-inline-icon{margin-top:1px;color:#0f766e;}
.salesperson-detail-link-btn{display:inline-flex;align-items:center;justify-content:center;padding:.58rem .85rem;border-radius:12px;border:1px solid #cbd5e1;background:#fff;color:#0f172a;text-decoration:none;font-size:.8rem;font-weight:800;}
.salesperson-detail-link-btn:hover{background:#f8fafc;color:#0f172a;}
.salesperson-detail-link-btn-primary{background:#eef2ff;border-color:#c7d2fe;color:#4f46e5;}
.salesperson-finance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px;}
.salesperson-finance-box{padding:12px 12px 11px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0;}
.salesperson-finance-box-balance{background:linear-gradient(180deg,#eef2ff 0%,#f8fafc 100%);border-color:#c7d2fe;}
.salesperson-finance-label{font-size:.72rem;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.02em;}
.salesperson-finance-value{margin-top:4px;font-size:.95rem;font-weight:900;color:#0f172a;line-height:1.25;word-break:break-word;}
.salesperson-order-bottom-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px;}
.salesperson-order-total-block{display:flex;flex-direction:column;gap:4px;}
.salesperson-order-total{font-size:1.08rem;font-weight:900;color:#111827;}
.salesperson-order-status-pill{background:linear-gradient(180deg,#f5f3ff 0%,#eef2ff 100%);border-color:#c7d2fe;color:#4f46e5;}
@media (max-width:767.98px){
  .salesperson-content-stack{gap:12px;}
  .salesperson-detail-card{border-radius:20px;padding:15px !important;}
  .salesperson-detail-card-top{gap:10px;align-items:center;}
  .salesperson-detail-icon-chip{width:38px;height:38px;border-radius:13px;}
  .salesperson-detail-card-title{font-size:.95rem;}
  .salesperson-detail-card-subtitle{font-size:.76rem;}
  .salesperson-status-pill{padding:.38rem .6rem;font-size:.68rem;}
  .salesperson-detail-meta-row{gap:6px;margin-top:12px;}
  .salesperson-detail-meta-chip{padding:.36rem .6rem;font-size:.69rem;}
  .salesperson-detail-note-card{margin-top:12px;padding:12px 13px;border-radius:14px;font-size:.84rem;}
  .salesperson-detail-footer-row{margin-top:12px;align-items:stretch;}
  .salesperson-detail-link-btn{width:100%;min-height:42px;}
  .salesperson-finance-grid{grid-template-columns:1fr;gap:8px;margin-top:12px;}
  .salesperson-finance-box{padding:11px 12px;border-radius:14px;}
  .salesperson-order-bottom-row{margin-top:12px;align-items:stretch;}
  .salesperson-order-total{font-size:1rem;}
}

/* v98.13.0.60 summary + create footer refinement */
@media (min-width: 992px){
  .order-bottom-bar.order-summary-bottom{
    left:auto;
    right:28px;
    width:auto;
    max-width:none;
    border:none;
    background:transparent;
    backdrop-filter:none;
    box-shadow:none;
    padding:0 0 14px;
    align-items:flex-end;
    gap:8px;
  }
  body.desktop-sidebar-collapsed .order-bottom-bar.order-summary-bottom{left:auto;}
  .order-summary-bottom .order-summary-bottom-row{
    width:auto;
    margin-left:0;
    border:1px solid #dfe7e2;
    background:rgba(255,255,255,.98);
    box-shadow:0 12px 28px rgba(15,23,42,.08);
    border-radius:16px;
    padding:8px;
  }
  .order-summary-bottom .order-summary-bottom-row-meta{
    grid-template-columns:52px 130px 144px;
  }
  .order-summary-bottom .order-summary-bottom-row-primary{
    grid-template-columns:170px 170px;
    max-width:none;
  }
  .order-summary-bottom .order-summary-bottom-row-primary-single{
    grid-template-columns:210px;
    max-width:none;
  }
  .order-summary-bottom .order-bottom-btn{
    min-height:40px;
    font-size:.84rem;
    padding:.46rem .78rem;
    border-radius:12px;
  }
}

@media (max-width: 767.98px){
  .order-create-bottom{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:10px;
    padding:10px 10px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    align-items:stretch;
  }
  .order-create-bottom .order-bottom-btn{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:46px;
    border-radius:14px;
    justify-content:center;
    padding:.55rem .72rem;
    font-size:.88rem;
    gap:8px;
  }
  .order-create-bottom #orderBottomBackBtn,
  .order-create-bottom #orderReviewBtn{
    max-width:none !important;
    flex:none !important;
  }
  .order-create-bottom .order-bottom-btn-label-full{display:inline;}
  .order-create-bottom .order-bottom-btn-label-short{display:none;}

  .order-summary-bottom{
    padding:10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    gap:8px;
  }
  .order-summary-bottom .order-summary-bottom-row{
    width:100%;
    margin-left:0;
    background:#fff;
    border:1px solid #e5ece8;
    border-radius:15px;
    padding:8px;
    box-shadow:0 8px 18px rgba(15,23,42,.06);
  }
  .order-summary-bottom .order-summary-bottom-row-meta{
    grid-template-columns:44px minmax(0,1fr) minmax(0,1fr);
    gap:8px;
  }
  .order-summary-bottom .order-summary-bottom-row-primary{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:8px;
    max-width:none;
  }
  .order-summary-bottom .order-summary-bottom-row-primary-single{
    grid-template-columns:minmax(0,1fr);
    max-width:none;
  }
  .order-summary-bottom .order-bottom-btn{
    width:100%;
    min-width:0;
    max-width:none;
    min-height:44px;
    justify-content:center;
    border-radius:12px;
    padding:.52rem .55rem;
    gap:6px;
    font-size:.79rem;
  }
  .order-summary-bottom .order-bottom-btn .order-bottom-btn-label-full{display:none;}
  .order-summary-bottom .order-bottom-btn .order-bottom-btn-label-short{display:inline;}
  .order-summary-bottom .order-bottom-btn-back .order-bottom-btn-label-short{display:none;}
  .order-summary-bottom #orderSaveDraftBtn,
  .order-summary-bottom #orderSaveConfirmBtn{
    font-size:.82rem;
  }
}

@media (max-width: 420px){
  .order-create-bottom{
    gap:8px;
    padding:9px 8px calc(9px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .order-create-bottom .order-bottom-btn{
    min-height:44px;
    font-size:.84rem;
    padding:.5rem .58rem;
  }
  .order-create-bottom #orderReviewBtn .badge{margin-left:6px;}

  .order-summary-bottom{
    padding:9px 8px calc(9px + env(safe-area-inset-bottom, 0px));
    gap:7px;
  }
  .order-summary-bottom .order-summary-bottom-row{
    padding:7px;
    border-radius:14px;
  }
  .order-summary-bottom .order-summary-bottom-row-meta{
    grid-template-columns:42px minmax(0,.95fr) minmax(0,1.05fr);
    gap:7px;
  }
  .order-summary-bottom .order-bottom-btn{
    min-height:42px;
    font-size:.76rem;
    padding:.46rem .44rem;
  }
  .order-summary-bottom #orderSaveDraftBtn,
  .order-summary-bottom #orderSaveConfirmBtn{
    font-size:.78rem;
  }
}

/* v98.13.0.61 mobile order footer repair */
@media (max-width: 767.98px){
  .order-shell{padding-bottom:150px !important;}
  .order-summary-shell{padding-bottom:212px !important;}
  .order-bottom-bar{
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:auto !important;
    max-width:none !important;
    gap:8px !important;
    padding:10px 10px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    border:0 !important;
    border-top:1px solid #dfe7e2 !important;
    border-radius:18px 18px 0 0 !important;
    background:rgba(255,255,255,.98) !important;
    backdrop-filter:blur(10px);
    box-shadow:0 -10px 26px rgba(15,23,42,.12) !important;
    justify-content:stretch !important;
  }
  .order-create-bottom{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    align-items:stretch !important;
    gap:10px !important;
  }
  .order-create-bottom .order-bottom-btn{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:48px !important;
    border-radius:14px !important;
    padding:.62rem .8rem !important;
    font-size:.9rem !important;
    font-weight:800 !important;
    justify-content:center !important;
    gap:8px !important;
  }
  .order-create-bottom .order-bottom-btn-label-full{display:inline !important;}
  .order-create-bottom .order-bottom-btn-label-short{display:none !important;}
  .order-summary-bottom{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:8px !important;
    padding:0 !important;
  }
  .order-summary-bottom .order-summary-bottom-row{
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  .order-summary-bottom .order-summary-bottom-row-meta{
    grid-template-columns:52px minmax(0,1fr) minmax(0,1fr) !important;
    gap:8px !important;
  }
  .order-summary-bottom .order-summary-bottom-row-primary{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:8px !important;
    max-width:none !important;
  }
  .order-summary-bottom .order-summary-bottom-row-primary-single{
    grid-template-columns:minmax(0,1fr) !important;
    max-width:none !important;
  }
  .order-summary-bottom .order-bottom-btn{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:46px !important;
    border-radius:14px !important;
    padding:.56rem .6rem !important;
    font-size:.82rem !important;
    font-weight:800 !important;
    justify-content:center !important;
    gap:6px !important;
  }
  .order-summary-bottom .order-bottom-btn-back{
    padding-left:.45rem !important;
    padding-right:.45rem !important;
  }
  .order-summary-bottom .order-bottom-btn-back .order-bottom-btn-label-full,
  .order-summary-bottom .order-bottom-btn-back .order-bottom-btn-label-short{display:none !important;}
  .order-summary-bottom #orderSaveDraftBtn,
  .order-summary-bottom #orderSaveConfirmBtn{
    min-height:48px !important;
    font-size:.86rem !important;
  }
}

@media (max-width: 420px){
  .order-shell{padding-bottom:146px !important;}
  .order-summary-shell{padding-bottom:208px !important;}
  .order-bottom-bar{padding:8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important;gap:7px !important;}
  .order-create-bottom{gap:8px !important;}
  .order-create-bottom .order-bottom-btn{min-height:46px !important;font-size:.86rem !important;padding:.56rem .68rem !important;}
  .order-summary-bottom .order-summary-bottom-row-meta{grid-template-columns:48px minmax(0,1fr) minmax(0,1fr) !important;gap:7px !important;}
  .order-summary-bottom .order-bottom-btn{min-height:44px !important;font-size:.78rem !important;padding:.5rem .5rem !important;}
  .order-summary-bottom #orderSaveDraftBtn,
  .order-summary-bottom #orderSaveConfirmBtn{font-size:.82rem !important;}
}

.order-other-charge-modal .modal-dialog{max-width:520px;}
.order-other-charge-modal .modal-content{border-radius:22px;overflow:hidden;}
.order-other-charge-modal .modal-header{padding:1rem 1rem .9rem;}
.order-other-charge-modal .modal-body{padding:1rem;}
.order-other-charge-modal .modal-footer{padding:.85rem 1rem 1rem;gap:.5rem;}
@media (max-width: 767.98px){
  .order-other-charge-modal{padding:.5rem .5rem max(.75rem, env(safe-area-inset-bottom, 0px));background:rgba(15,23,42,.38);}
  .order-other-charge-modal .modal-dialog{min-height:calc(100vh - .5rem);margin:0 auto;align-items:flex-end;max-width:none;}
  .order-other-charge-modal .modal-content{border-radius:22px 22px 16px 16px;box-shadow:0 22px 44px rgba(15,23,42,.22);}
  .order-other-charge-modal .modal-header{padding:.9rem .95rem .75rem;}
  .order-other-charge-modal .modal-title{font-size:1rem;}
  .order-other-charge-modal .modal-body{padding:.85rem .95rem .9rem;}
  .order-other-charge-modal .modal-footer{padding:.75rem .95rem calc(.95rem + env(safe-area-inset-bottom, 0px));display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.55rem;}
  .order-other-charge-modal .modal-footer .btn{min-height:42px;font-weight:700;}
  .order-other-charge-modal .modal-footer #orderOtherChargeClearBtn{grid-column:1 / -1;order:3;}
  .order-other-charge-modal .form-control{min-height:46px;font-size:16px;}
}

/* v98.13.0.63 create catalog toolbar + scheme badge polish */
.order-create-header{margin-bottom:6px!important;}
.order-page-subtitle{display:none!important;}
.order-toolbar.order-toolbar-catalog{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;}
.order-toolbar.order-toolbar-catalog .order-search{flex:1 1 auto;max-width:420px;min-width:0;}
.order-toolbar.order-toolbar-catalog .order-search .form-control{min-height:40px;padding-left:38px;padding-right:14px;}
.order-catalog-filter-btn{flex:0 0 auto;min-width:112px;justify-content:center;padding:.68rem .95rem;border-radius:14px;font-weight:700;}
.order-catalog-filter-sheet .modal-dialog{max-width:420px;}
.order-catalog-filter-sheet .modal-content{background:#f8fffb;}
.order-card-scheme-badge,
.order-cart-scheme-pill{align-self:flex-start;display:inline-flex;width:max-content;max-width:100%;padding:3px 10px;border-radius:999px;background:#fff5c2;border:1px solid #f2cd4d;color:#8a5a00;font-size:.72rem;font-weight:800;line-height:1.15;box-shadow:none;}
.order-card-scheme-badge{margin:-8px 0 10px;}
.order-card-scheme-helper{display:none !important;}
.order-card-body{gap:0;}
.order-card-title{margin-bottom:10px;}
.order-card-prices{gap:2px;}
.order-card-pricing-note{margin-top:2px;}

@media (max-width: 767.98px){
  .order-create-header{margin-bottom:4px!important;}
  .order-toolbar.order-toolbar-catalog{gap:8px;}
  .order-toolbar.order-toolbar-catalog .order-search{max-width:none;}
  .order-toolbar.order-toolbar-catalog .order-search .form-control{min-height:38px;padding-left:36px;font-size:.94rem;}
  .order-catalog-filter-btn{min-width:46px;padding:.62rem .8rem;border-radius:13px;}
  .order-catalog-filter-btn span{display:none;}
  .order-card-scheme-badge{margin:-6px 0 8px;font-size:.68rem;padding:3px 9px;}
}


.attendance-primary-btn{min-width:220px;font-weight:700;}
.attendance-location-text{margin-top:6px;font-size:.95rem;color:#1f2937;line-height:1.5;}
.attendance-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.attendance-photo-card{border:1px solid #e5e7eb;border-radius:16px;padding:14px;background:#f8fafc;}
.attendance-map-frame-wrap{border:1px solid #dbe2ea;border-radius:18px;overflow:hidden;background:#f8fafc;min-height:320px;}
.attendance-map-frame{width:100%;height:360px;border:0;background:#fff;}
.attendance-location-block{min-width:240px;}
@media (max-width: 991.98px){
  .attendance-primary-btn{width:100%;min-width:0;}
}
@media (max-width: 767.98px){
  .attendance-photo-grid{grid-template-columns:1fr;}
  .attendance-map-frame{height:300px;}
}

/* v98.13.0.102 sidebar regroup + salesperson mobile nav */
.app-navbar-page-title{display:none;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;color:#0f172a;}
.salesperson-bottom-nav,
.customer-bottom-nav{display:none;}

@media (max-width: 991.98px){
  body.role-salesperson,
  body.role-customer{--app-navbar-height:52px;padding-bottom:calc(74px + env(safe-area-inset-bottom, 0px));}
  body.role-salesperson .app-navbar,
  body.role-customer .app-navbar{box-shadow:0 1px 8px rgba(15,23,42,.06);}
  body.role-salesperson .app-navbar-inner,
  body.role-customer .app-navbar-inner{min-height:52px;padding-top:4px;padding-bottom:4px;}
  body.role-salesperson .app-navbar-brand,
  body.role-salesperson .app-navbar-right,
  body.role-customer .app-navbar-brand,
  body.role-customer .app-navbar-right{display:none !important;}
  body.role-salesperson .app-navbar-left,
  body.role-customer .app-navbar-left{width:100%;gap:10px;}
  body.role-salesperson .app-navbar-page-title,
  body.role-customer .app-navbar-page-title{display:block;flex:1 1 auto;font-size:1rem;}
  body.role-salesperson .app-navbar-toggle,
  body.role-customer .app-navbar-toggle{width:38px;height:38px;flex-basis:38px;border-radius:11px;}
  body.role-salesperson .app-content,
  body.role-customer .app-content{padding-bottom:calc(96px + env(safe-area-inset-bottom, 0px));}
  body.role-salesperson .fab-add,
  body.role-customer .fab-add{bottom:calc(env(safe-area-inset-bottom, 0px) + 88px);}
  body.role-salesperson.order-page-active .fab-add{bottom:calc(env(safe-area-inset-bottom, 0px) + 16px);}

  .salesperson-bottom-nav,
  .customer-bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:2030;background:rgba(255,255,255,.99);backdrop-filter:blur(10px);border-top:1px solid rgba(15,23,42,.08);box-shadow:0 -8px 22px rgba(15,23,42,.10);padding:0 0 env(safe-area-inset-bottom, 0px);gap:0;border-radius:0;}
  .salesperson-bottom-nav__item,
  .customer-bottom-nav__item{appearance:none;border:0;background:transparent;color:#64748b;text-decoration:none;display:flex;flex:1 1 0;min-width:0;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:10px 4px 9px;border-radius:0;font-size:.7rem;font-weight:700;line-height:1.1;min-height:62px;position:relative;}
  .salesperson-bottom-nav__item + .salesperson-bottom-nav__item,
  .customer-bottom-nav__item + .customer-bottom-nav__item{border-left:1px solid rgba(15,23,42,.06);}
  .salesperson-bottom-nav__item i,
  .customer-bottom-nav__item i{font-size:1.08rem;line-height:1;}
  .salesperson-bottom-nav__item.active,
  .customer-bottom-nav__item.active{background:var(--brand-soft);color:var(--brand-dark);}
  .salesperson-bottom-nav__item:active,
  .customer-bottom-nav__item:active{transform:translateY(1px);}
  body.mobile-sidebar-open .salesperson-bottom-nav,
  body.mobile-sidebar-open .customer-bottom-nav{opacity:0;pointer-events:none;transform:translateY(100%);}
  body.order-page-active .salesperson-bottom-nav{display:none;}

  .dashboard-page.dashboard-customer-portal{padding-bottom:92px;}
  .dashboard-page.dashboard-customer-portal .dash-hero{padding:16px!important;border-radius:18px!important;}
  .dashboard-page.dashboard-customer-portal .dash-hero-title{font-size:1.35rem!important;}
  .dashboard-page.dashboard-customer-portal .dash-hero-subtitle{font-size:.9rem!important;}
  .dashboard-page.dashboard-customer-portal .dash-pill-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .dashboard-page.dashboard-customer-portal .dash-summary-grid,
  .dashboard-page.dashboard-customer-portal .dashboard-chart-grid,
  .dashboard-page.dashboard-customer-portal .dash-dual-grid{display:grid!important;grid-template-columns:1fr!important;gap:12px;}
  .dashboard-page.dashboard-customer-portal .dashboard-section-card,
  .dashboard-page.dashboard-customer-portal .dash-summary-card{border-radius:18px!important;}
}

@media (min-width: 992px){
  .salesperson-bottom-nav,
  .customer-bottom-nav,
  .app-navbar-page-title{display:none !important;}
}

/* v98.13.0.109 salesperson customer compact cards + mobile order popups */
.salesperson-customer-list-card,
.salesperson-customer-detail-shell{
  --order-btn-bg: var(--order-btn-bg, #dcfce7);
  --order-btn-bg-hover: var(--order-btn-bg-hover, #bbf7d0);
  --order-btn-border: var(--order-btn-border, #86efac);
  --order-btn-text: var(--order-btn-text, #166534);
}
.salesperson-customer-cta-order,
.beat-sticky-actions .btn-success,
.beat-plan-actions .btn-success{
  background:linear-gradient(180deg,var(--order-btn-bg) 0%, color-mix(in srgb, var(--order-btn-bg) 86%, #ffffff 14%) 100%);
  border:1px solid var(--order-btn-border);
  color:var(--order-btn-text);
  box-shadow:0 8px 18px color-mix(in srgb, var(--order-btn-border) 28%, rgba(15,23,42,.08));
}
.salesperson-customer-cta-order:hover,
.salesperson-customer-cta-order:focus,
.beat-sticky-actions .btn-success:hover,
.beat-sticky-actions .btn-success:focus,
.beat-plan-actions .btn-success:hover,
.beat-plan-actions .btn-success:focus{
  background:linear-gradient(180deg,var(--order-btn-bg-hover) 0%, var(--order-btn-bg) 100%);
  border-color:color-mix(in srgb, var(--order-btn-border) 88%, #111827 12%);
  color:var(--order-btn-text);
}
.salesperson-customer-cta-order .app-inline-icon{color:currentColor;}
.salesperson-customer-avatar,
.salesperson-customer-avatar-lg{display:none !important;}
.salesperson-customer-profile-row,
.salesperson-customer-profile-row-hero{align-items:center;gap:10px;margin-top:10px;}
.salesperson-customer-profile-text{gap:1px;}
.salesperson-customer-owner{font-size:.88rem;font-weight:700;color:#334155;}
.order-customer-type-line{font-size:.75rem;font-weight:700;color:#64748b;line-height:1.2;}
.salesperson-customer-parent{font-size:.72rem;}
.salesperson-customer-location{font-size:.8rem;margin-top:2px;}
.salesperson-customer-list-card .order-customer-name{font-size:1.05rem;font-weight:900;line-height:1.2;}
.salesperson-customer-detail-shell .salesperson-customer-hero-title{font-size:1.08rem;font-weight:900;line-height:1.2;}
.salesperson-customer-detail-shell .salesperson-customer-hero-subtitle{font-size:.8rem;font-weight:700;}
.salesperson-customer-list-card{padding-top:12px;padding-bottom:12px;}
.salesperson-customer-cta-row{gap:8px;}
.salesperson-customer-cta{min-height:40px;padding:.58rem .65rem;font-size:.84rem;border-radius:12px;}
.salesperson-customer-tabs-mobile{padding:6px !important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;border-radius:18px;}
.salesperson-customer-tabs-mobile .salesperson-customer-tab{min-height:46px;padding:.58rem .5rem;border-radius:12px;justify-content:center;gap:6px;flex-direction:row;white-space:nowrap;}
.salesperson-customer-tabs-mobile .salesperson-customer-tab span{font-size:.74rem;font-weight:800;}
.salesperson-customer-tabs-mobile .salesperson-customer-tab .app-inline-icon{width:.95rem;height:.95rem;}
.salesperson-order-card{cursor:pointer;transition:transform .16s ease, box-shadow .16s ease;}
.salesperson-order-card:hover,.salesperson-order-card:focus{transform:translateY(-1px);box-shadow:0 14px 24px rgba(15,23,42,.08);}
.salesperson-order-card .salesperson-detail-link-btn-primary{display:none !important;}
.salesperson-order-card .salesperson-order-bottom-row{align-items:center;}
.salesperson-activity-card{cursor:pointer;transition:transform .16s ease, box-shadow .16s ease;}
.salesperson-activity-card:hover,.salesperson-activity-card:focus{transform:translateY(-1px);box-shadow:0 14px 24px rgba(15,23,42,.08);}
.salesperson-popup-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.salesperson-popup-summary-box{padding:11px 12px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0;}
.salesperson-popup-summary-box .label{display:block;font-size:.72rem;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.02em;}
.salesperson-popup-summary-box .value{display:block;margin-top:4px;font-size:.94rem;font-weight:800;color:#0f172a;line-height:1.28;word-break:break-word;}
.salesperson-popup-stack{display:grid;gap:12px;}
.salesperson-popup-items{display:grid;gap:10px;}
.salesperson-popup-line{display:flex;gap:10px;padding:11px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0;}
.salesperson-popup-thumb{width:48px;height:48px;flex:0 0 48px;border-radius:14px;background:#ecfdf3;border:1px solid #ccead7;color:#16a34a;display:flex;align-items:center;justify-content:center;}
.salesperson-popup-line-title{font-size:.92rem;font-weight:800;color:#0f172a;line-height:1.25;}
.salesperson-popup-line-sub{font-size:.75rem;color:#64748b;font-weight:700;line-height:1.3;}
.salesperson-popup-line-value{font-size:.88rem;font-weight:900;color:#0f172a;white-space:nowrap;}
@media (max-width:767.98px){
  .salesperson-customer-list-card{border-radius:20px;padding:12px 12px 12px 18px;}
  .salesperson-customer-list-ribbon{top:10px;bottom:10px;}
  .salesperson-customer-list-body{padding-left:8px;}
  .salesperson-customer-list-header{gap:8px;}
  .salesperson-customer-list-card .order-customer-name{font-size:.98rem;}
  .salesperson-customer-owner{font-size:.82rem;}
  .order-customer-type-line{font-size:.71rem;}
  .salesperson-customer-call-actions{gap:6px;}
  .salesperson-icon-btn{width:36px;height:36px;border-radius:12px;font-size:.92rem;}
  .salesperson-customer-cta{min-height:38px;font-size:.8rem;padding:.52rem .5rem;}
  .salesperson-customer-hero-mobile{padding:12px 12px 12px 18px;}
  .salesperson-customer-detail-shell .salesperson-customer-hero-title{font-size:1rem;}
  .salesperson-customer-detail-shell .salesperson-customer-hero-subtitle{font-size:.76rem;}
  .salesperson-customer-tabs-mobile .salesperson-customer-tab{min-height:42px;padding:.52rem .38rem;}
  .salesperson-popup-summary-grid{grid-template-columns:1fr 1fr;gap:8px;}
}

/* v98.13.0.109 salesperson order view mobile-first */
@media (max-width: 767.98px){
  .order-view-mobile-page-card{border-radius:18px;border:1px solid #e5ece8;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.05);padding:14px;}
  .order-view-mobile-order-card{display:flex;gap:12px;padding:12px;border-radius:18px;background:#fff;border:1px solid #e5ece8;box-shadow:0 8px 18px rgba(15,23,42,.04);}
  .order-view-mobile-order-thumb{width:54px;height:54px;flex:0 0 54px;border-radius:16px;background:#ecfdf3;border:1px solid #ccead7;color:#16a34a;display:flex;align-items:center;justify-content:center;}
  .order-view-mobile-order-title{font-size:.95rem;font-weight:800;color:#0f172a;line-height:1.25;}
  .order-view-mobile-order-meta{font-size:.74rem;color:#64748b;font-weight:700;line-height:1.35;}
  .order-view-mobile-order-price{font-size:.92rem;font-weight:900;color:#0f172a;line-height:1.2;}
  .order-view-mobile-order-subprice{font-size:.74rem;color:#64748b;font-weight:700;line-height:1.3;}
  .order-view-mobile-order-row{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;}
  .order-view-mobile-order-stack{display:grid;gap:12px;}
  .order-view-mobile-totals .order-summary-row{padding:.18rem 0;}
  .order-view-item-table-wrap{display:none !important;}
  .order-view-mobile-stack{display:grid !important;gap:14px;}
}
@media (min-width: 768px){
  .order-view-mobile-stack{display:none !important;}
  .order-view-item-table-wrap{display:block !important;}
}


/* v98.13.0.110 customer portal mobile nav + order view polish */
.dashboard-customer-portal .dash-hero{background:linear-gradient(135deg,#f1fdf4 0%,#ffffff 100%);border:1px solid #d9f2df;}
.dashboard-customer-portal .dash-pill{background:#fff;border:1px solid #dfe9e4;color:#0f172a;}
.dashboard-customer-portal .dash-summary-card{min-height:unset;}
.portal-order-view-shell{display:grid;gap:12px;}
.portal-order-view-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.portal-order-view-title{font-size:1.4rem;font-weight:800;color:#0f172a;line-height:1.2;}
.portal-order-view-actions{display:flex;gap:8px;flex-wrap:wrap;}
.portal-order-view-actions .btn,.portal-order-view-actions a,.portal-order-view-actions button{border-radius:999px;font-weight:700;}
.portal-order-overview-card{border-radius:22px;border:1px solid #dfe9e4;box-shadow:0 12px 26px rgba(15,23,42,.05);}
.portal-overview-top{align-items:flex-start;}
.portal-overview-customer{font-size:1.02rem;font-weight:800;}
.portal-overview-summary{font-size:.88rem;max-width:40rem;}
.portal-metric-chip{background:#fff;border:1px solid #e6efe9;border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:4px;min-height:88px;justify-content:center;}
.portal-metric-chip span{font-size:.74rem;color:#64748b;text-transform:uppercase;letter-spacing:.04em;font-weight:700;}
.portal-metric-chip strong{font-size:1.05rem;color:#0f172a;line-height:1.25;}
.portal-order-item-card{border:1px solid #e5ece8;box-shadow:0 10px 24px rgba(15,23,42,.05);}
.portal-item-head{align-items:flex-start;}
.portal-item-title{font-size:1.02rem;font-weight:800;}
.portal-item-toggle{font-weight:700;}
.portal-item-detail{border-radius:14px;}
.portal-order-summary-card{border-radius:20px;border:1px solid #e5ece8;box-shadow:0 10px 24px rgba(15,23,42,.05);}
@media (max-width: 767.98px){
  .portal-order-view-title{font-size:1.15rem;}
  .portal-order-view-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .portal-order-view-actions .btn,.portal-order-view-actions a,.portal-order-view-actions button{justify-content:center;padding:.68rem .85rem;font-size:.9rem;}
  .portal-order-overview-card,.portal-order-item-card,.portal-order-summary-card{padding:14px!important;border-radius:18px;}
  .portal-overview-top{flex-direction:column;gap:10px;}
  .portal-overview-metrics{grid-template-columns:1fr;gap:10px;}
  .portal-item-quick-row{grid-template-columns:repeat(2,minmax(0,1fr));}
}


.wa-popup-card{border:1px solid rgba(15,35,59,.1);border-radius:1rem;padding:1rem;background:#fff;box-shadow:0 10px 24px rgba(15,35,59,.06);}
.wa-popup-head{display:flex;justify-content:space-between;gap:.75rem;align-items:flex-start;flex-wrap:wrap;margin-bottom:.75rem;}
.wa-popup-meta{display:flex;flex-direction:column;gap:.2rem;}
.wa-popup-recipient{font-weight:700;color:#0f233b;}
.wa-popup-phone{font-size:.85rem;color:#6c757d;}
.wa-popup-badge{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;padding:.3rem .7rem;font-size:.78rem;font-weight:600;background:#fff3cd;color:#7a5d00;border:1px solid rgba(122,93,0,.15);}
.wa-popup-badge.is-sent{background:#d1e7dd;color:#0f5132;border-color:rgba(15,81,50,.16);}
.wa-popup-text{min-height:118px;resize:vertical;}
.wa-popup-actions{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap;margin-top:.75rem;}
.wa-popup-send-btn.is-sent{pointer-events:none;opacity:1;}
.wa-popup-send-btn.is-sent .wa-popup-send-label{display:none;}
.wa-popup-send-btn .wa-popup-sent-label{display:none;}
.wa-popup-send-btn.is-sent .wa-popup-sent-label{display:inline;}
.wa-popup-role-pill{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;padding:.22rem .65rem;font-size:.76rem;font-weight:600;background:#eef4ff;color:#17396a;border:1px solid rgba(23,57,106,.08);}

@media (max-width:991.98px){
  body.app-body{padding-top:var(--app-navbar-height)!important;}
  .app-shell,.app-main-col,.app-content{min-height:auto!important;height:auto!important;}
  .app-content{padding-top:10px!important;margin-top:0!important;align-content:flex-start;}
  .page-card{margin-top:0!important;}
}

.bulk-summary-card.is-ready{background:#f0fdf4;}
.bulk-summary-card.is-insert{background:#f0fdf4;}
.bulk-summary-card.is-update{background:#eff6ff;}
.bulk-summary-card.is-skip{background:#fffbeb;}
.bulk-summary-card.is-error{background:#fef2f2;}
.bulk-preview-table tbody tr.bulk-row-ready{background:#f8fffb;}
.bulk-preview-table tbody tr.bulk-row-skip{background:#fffdf5;}
.bulk-preview-table tbody tr.bulk-row-error{background:#fff7f7;}
.bulk-status-badge,.bulk-action-badge{display:inline-flex;align-items:center;justify-content:center;padding:.25rem .55rem;border-radius:999px;font-size:.75rem;font-weight:700;text-transform:capitalize;}
.bulk-status-ready,.bulk-action-insert{background:#dcfce7;color:#166534;}
.bulk-action-update{background:#dbeafe;color:#1d4ed8;}
.bulk-status-skip,.bulk-action-skip{background:#fef3c7;color:#92400e;}
.bulk-status-error,.bulk-action-error{background:#fee2e2;color:#b91c1c;}
.field-required .form-control,.field-required .form-select,.field-required textarea{background:linear-gradient(180deg,#fffdfa 0%,#ffffff 100%);border-color:#f1d9a8;}
.field-required .form-label{font-weight:700;}


/* Batch 1 UI fixes */
.sidebar-acc-toggle,
.sidebar-toggle-label,
.sidebar-acc-links,
.sidebar-acc-links .sidebar-link{
  justify-content:flex-start;
  text-align:left;
  align-items:center;
}
.sidebar-acc-links .sidebar-link{
  width:100%;
  padding-left:14px;
}
.sidebar-acc-links{
  align-items:stretch;
}
@media (max-width:991.98px){
  body.app-body{padding-top:var(--app-navbar-height)!important;}
  .app-shell{display:flex!important;min-height:calc(100dvh - var(--app-navbar-height))!important;}
  .app-sidebar-col{position:fixed!important;inset:var(--app-navbar-height) 0 0 0!important;width:100%!important;max-width:none!important;height:calc(100dvh - var(--app-navbar-height))!important;flex:none!important;}
  .app-main-col{flex:1 1 100%!important;max-width:100%!important;width:100%!important;min-height:calc(100dvh - var(--app-navbar-height))!important;margin-left:0!important;}
  .app-content{padding-top:12px!important;margin-top:0!important;}
  .page-card{margin-top:0!important;}
}

/* Batch 3A ordering */
.order-shell-card{margin-bottom:88px;}
.order-top-search,.order-top-actions{max-width:520px;}
.order-customer-grid,.order-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.order-customer-card{display:flex;flex-direction:column;gap:10px;border:1px solid rgba(25,135,84,.26);background:#f7fcf8;border-radius:18px;padding:14px;text-decoration:none;color:#0f172a;box-shadow:0 4px 10px rgba(15,23,42,.03);}
.order-customer-card:hover{border-color:var(--brand);box-shadow:0 8px 18px rgba(25,135,84,.08);color:#0f172a;}
.order-customer-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.order-customer-business{font-weight:800;font-size:1rem;line-height:1.25;}
.order-customer-person{font-size:.86rem;color:#64748b;line-height:1.35;}
.order-customer-arrow{color:var(--brand);font-size:1.15rem;}
.order-customer-meta-row{display:flex;align-items:flex-start;gap:8px;font-size:.9rem;color:#1f2937;}
.order-customer-meta-row i{color:var(--brand);margin-top:2px;}
.order-customer-chip-row{display:flex;gap:8px;flex-wrap:wrap;}
.order-soft-chip{display:inline-flex;align-items:center;gap:6px;background:var(--brand-soft);color:var(--brand-dark);border-radius:999px;padding:5px 10px;font-size:.78rem;font-weight:700;}
.order-customer-inline{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.order-customer-inline-title{font-size:1.08rem;font-weight:800;color:#0f172a;}
.order-customer-inline-sub{font-size:.9rem;color:#6b7280;}
.order-product-card{display:flex;flex-direction:column;gap:10px;border:1px solid #e2e8f0;background:#fff;border-radius:20px;padding:12px;box-shadow:0 2px 10px rgba(15,23,42,.04);min-width:0;}
.order-product-top{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:start;min-width:0;}
.order-product-image-wrap{width:96px;aspect-ratio:4 / 5;border:1px solid #dbe4de;border-radius:18px;overflow:hidden;background:#f8faf8;display:flex;align-items:center;justify-content:center;}
.order-product-image-wrap img{width:100%;height:100%;object-fit:cover;display:block;}
.order-image-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#86a593;background:#f4fbf5;font-size:.72rem;font-weight:700;}
.order-image-placeholder i{font-size:1.5rem;color:var(--brand);}
.order-product-copy{min-width:0;display:flex;flex-direction:column;gap:0;}
.order-product-headline{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.order-product-title-stack{min-width:0;display:flex;flex-direction:column;gap:2px;}
.order-availability-badge{align-self:flex-start;border-radius:999px;padding:4px 10px;font-size:.72rem;font-weight:800;line-height:1.2;max-width:46%;word-break:break-word;white-space:normal;text-align:center;flex:0 0 auto;}
.order-availability-badge.in_stock{background:#e8f7ef;color:#0f7a3e;}
.order-availability-badge.lead_time{background:#fff6df;color:#9a6700;}
.order-availability-badge.out_of_stock{background:#fee2e2;color:#b42318;}
.order-product-title{font-size:1rem;font-weight:800;line-height:1.18;color:#111827;}
.order-product-variant{font-size:.9rem;color:#b45309;font-weight:700;line-height:1.15;}
.order-pricing-stack{display:flex;flex-direction:column;gap:3px;margin-top:10px;}
.order-price-line{font-size:.76rem;font-weight:500;color:#111827;line-height:1.25;}
.order-rate-line{font-size:1.06rem;font-weight:800;color:#0f7a3e;line-height:1.18;}
.order-rate-line-summary{margin-top:4px;}
.order-unit-relation{font-size:.8rem;color:#475569;background:#f8fafc;border-radius:999px;padding:3px 10px;display:inline-flex;align-self:flex-start;margin-top:8px;}
.order-product-meta-row{font-size:.81rem;color:#64748b;line-height:1.35;padding-left:0;}
.order-product-action-row{display:flex;flex-direction:column;gap:8px;}
.order-add-btn{width:100%;min-height:42px;padding-inline:16px;font-weight:800;justify-self:start;}
.order-qty-editor{width:100%;}
.order-qty-halves{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:stretch;width:100%;}
.order-qty-halves-single{grid-template-columns:1fr;}
.order-qty-half{min-width:0;}
.order-qty-shell{display:grid;align-items:center;width:100%;min-height:42px;border:1px solid #d1d5db;border-radius:14px;background:#fff;overflow:hidden;}
.order-qty-shell-stepper{grid-template-columns:auto 38px minmax(42px,1fr) 38px;}
.order-qty-shell-input{grid-template-columns:auto minmax(0,1fr);}
.order-qty-unit-inline{display:flex;align-items:center;justify-content:center;align-self:stretch;padding:0 12px;background:#f8fafc;border-right:1px solid #e2e8f0;font-size:.74rem;font-weight:800;color:#475569;white-space:nowrap;}
.order-stepper-btn{border:0;background:#f8fafc;height:100%;display:flex;align-items:center;justify-content:center;color:#334155;}
.order-stepper-input{border:0;text-align:center;font-weight:700;height:100%;min-width:0;padding:0 6px;}
.order-stepper-input:focus,.order-display-input:focus{outline:none;box-shadow:none;}
.order-display-input{border:0;min-width:0;height:100%;font-weight:700;text-align:center;padding:0 10px;background:#fff;}
.order-price-sub{font-size:.82rem;color:#64748b;}
.order-bottom-bar{left:12px;right:12px;bottom:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));}
}
@media (max-width:767.98px){
  .modal-dialog{margin:.35rem;}
  .modal-dialog-scrollable .modal-content{max-height:calc(100vh - .7rem);}
  .page-header{align-items:flex-start;}
  .toast-container-fixed{top:10px;right:10px;left:10px;max-width:none;}
  #liveToast{min-width:0;width:100%;}
  .desktop-master-table{display:none;}
  .master-mobile-cards{display:block;}
  .fab-add{padding:10px 14px;font-size:.9rem;bottom:calc(env(safe-area-inset-bottom, 0px) + 82px);}
  .dataTables_wrapper .dataTables_filter input{min-width:100%;width:100%;}
}
@media (min-width:992px){
  .sidebar-mobile-backdrop{display:none!important;}
   .sidebar-shell{position:sticky;top:0;height:calc(100dvh - var(--app-navbar-height));display:flex;flex-direction:column;}
  .sidebar-mobile-header{display:none!important;}
  body.desktop-sidebar-collapsed .app-sidebar-col{flex-basis:92px;max-width:92px;}
  body.desktop-sidebar-collapsed .sidebar-shell,
  body.desktop-sidebar-collapsed .sidebar-body-shell,
  body.desktop-sidebar-collapsed .sidebar-scroll{overflow:visible;}
  body.desktop-sidebar-collapsed .sidebar-scroll{padding:10px 8px;}
  body.desktop-sidebar-collapsed .sidebar-accordion{padding:8px 0;gap:8px;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-link{justify-content:center;padding:12px 10px;border-radius:18px;margin:0 6px;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-link span{display:none;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-link i{margin:0;font-size:1.15rem;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item{position:relative;background:transparent;border:0;border-radius:0;overflow:visible;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle{width:56px;height:56px;padding:0;margin:0 auto;border-radius:18px;justify-content:center;background:#fff;border:1px solid #e5e7eb;box-shadow:0 6px 16px rgba(15,23,42,.06);}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle .sidebar-text,
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle .bi-chevron-down{display:none;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle .sidebar-toggle-label i{margin:0!important;font-size:1.12rem;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle.active,
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle:hover{background:var(--brand-soft);border-color:rgba(25,135,84,.18);color:var(--brand-dark);}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapse,
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapsing{position:absolute;left:calc(100% + 10px);top:0;width:min(320px,calc(100vw - 130px));max-height:calc(100vh - 76px);overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 18px 36px rgba(15,23,42,.12);z-index:1055;height:auto!important;transition:none!important;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapse:not(.show),
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapsing{display:none!important;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapse .sidebar-acc-links{padding:14px 12px 12px;}
  body.desktop-sidebar-collapsed .sidebar-footer-card{padding:8px;border-top:0;box-shadow:none;background:transparent;overflow:visible;}
  body.desktop-sidebar-collapsed .sidebar-footer-toggle{width:56px;height:56px;padding:0;margin:0 auto;border-radius:18px;justify-content:center;box-shadow:0 6px 16px rgba(15,23,42,.06);}
  body.desktop-sidebar-collapsed .sidebar-footer-meta,
  body.desktop-sidebar-collapsed .sidebar-footer-toggle .bi-chevron-up{display:none;}
  body.desktop-sidebar-collapsed .sidebar-footer-icon{display:block;}
  body.desktop-sidebar-collapsed .sidebar-footer-actions,
  body.desktop-sidebar-collapsed .sidebar-footer-actions.collapsing{position:absolute;left:calc(100% + 10px);bottom:8px;width:min(260px,calc(100vw - 130px));padding:12px;background:#fff;border:1px solid #e5e7eb;border-radius:20px;box-shadow:0 18px 36px rgba(15,23,42,.12);z-index:1055;height:auto!important;transition:none!important;}
  body.desktop-sidebar-collapsed .sidebar-footer-actions:not(.show),
  body.desktop-sidebar-collapsed .sidebar-footer-actions.collapsing{display:none!important;}
  body.desktop-sidebar-collapsed .sidebar-footer-card.auto-open .sidebar-footer-toggle{pointer-events:auto;}
}

@media (max-width:1199.98px){
  .order-bottom-bar{left:12px;right:12px;bottom:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));}
}
@media (max-width:767.98px){
  .record-view-grid{grid-template-columns:1fr;}
}

@media (max-width:991.98px){
  .fab-add{bottom:calc(env(safe-area-inset-bottom, 0px) + 78px);}
  .app-shell{display:block;}
  .app-sidebar-col{max-width:none;}
}

.required-mark{color:#dc2626;font-weight:800;}
.sidebar-body-shell{min-height:calc(100vh - var(--app-navbar-height));height:100%;}
.sidebar-accordion{padding:0;display:flex;flex-direction:column;gap:10px;}
.sidebar-acc-item{background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;}
.sidebar-acc-toggle{width:100%;border:0;background:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;font-weight:700;color:#334155;}
.sidebar-acc-toggle .bi-chevron-down{transition:transform .2s ease;}
.sidebar-acc-toggle[aria-expanded="true"] .bi-chevron-down{transform:rotate(180deg);}
.sidebar-acc-links{padding:0 10px 10px;display:flex;flex-direction:column;gap:4px;}
.sidebar-acc-links .sidebar-link{margin-bottom:0;}
.sidebar-footer-card{margin-top:0;position:relative;bottom:auto;background:#fff;border-top:1px solid #e5e7eb;padding:12px;box-shadow:0 -4px 12px rgba(15,23,42,.035);z-index:2;flex:0 0 auto;flex-shrink:0;}
.sidebar-footer-toggle{width:100%;border:1px solid #e5e7eb;background:#fff;border-radius:16px;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:700;}
.sidebar-footer-toggle .bi-chevron-up{transition:transform .16s ease;}
.sidebar-footer-toggle[aria-expanded="true"] .bi-chevron-up{transform:rotate(180deg);}
.sidebar-footer-actions{padding-top:10px;}
.sidebar-footer-actions.collapsing{transition:height .16s ease;}
.sidebar-footer-actions .btn{min-height:42px;}
@media (min-height:760px) and (min-width:992px){
  .sidebar-footer-card.auto-open .sidebar-footer-toggle{pointer-events:none;}
  .sidebar-footer-card.auto-open .sidebar-footer-actions{display:block!important;}
}
@media (max-height:760px), (max-width:991.98px){
  .sidebar-footer-actions:not(.show){display:none;}
}


.sidebar-acc-title{padding:10px 14px 4px;font-size:.73rem;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;font-weight:800;}
.sidebar-acc-group{padding-top:2px;display:flex;flex-direction:column;gap:4px;}
.sidebar-footer-actions.collapsing,.collapse{will-change:height;}
.sidebar-footer-actions.collapsing{transition:height .12s ease;}
@media (max-height:760px), (max-width:991.98px){
  .sidebar-footer-card{padding:10px;}
}


.page-card.page-card-loading{position:relative;pointer-events:none;}
.page-card.page-card-loading::before{content:'';position:absolute;inset:0;background:rgba(255,255,255,.72);z-index:5;border-radius:inherit;}
.page-card.page-card-loading::after{content:'';position:absolute;top:50%;left:50%;width:34px;height:34px;margin:-17px 0 0 -17px;border:3px solid rgba(25,135,84,.18);border-top-color:var(--brand);border-radius:50%;animation:oosSpin .7s linear infinite;z-index:6;}
@keyframes oosSpin{to{transform:rotate(360deg);}}


.app-navbar .navbar-brand,
a{color:var(--brand-dark);}
a:hover{color:var(--brand);}
.btn-success{--bs-btn-bg:var(--brand);--bs-btn-border-color:var(--brand);--bs-btn-hover-bg:var(--brand-dark);--bs-btn-hover-border-color:var(--brand-dark);--bs-btn-active-bg:var(--brand-dark);--bs-btn-active-border-color:var(--brand-dark);}
.btn-outline-success{--bs-btn-color:var(--brand);--bs-btn-border-color:var(--brand);--bs-btn-hover-bg:var(--brand);--bs-btn-hover-border-color:var(--brand);--bs-btn-active-bg:var(--brand-dark);--bs-btn-active-border-color:var(--brand-dark);--bs-btn-active-color:#fff;}
.text-bg-success{background-color:var(--brand)!important;}
.form-control:focus,.form-select:focus{border-color:var(--brand);box-shadow:0 0 0 .2rem rgba(0,0,0,.03),0 0 0 .12rem var(--brand-soft);}
.form-check-input:checked{background-color:var(--brand);border-color:var(--brand);}
.form-control-color{border-color:#d1d5db;}
.fab-add{box-shadow:0 10px 24px rgba(15,23,42,.12);}
.dataTables_wrapper .dataTables_paginate .pagination{gap:.25rem;}
.dataTables_wrapper .dataTables_paginate .page-link{border-radius:10px;border-color:#d1d5db;color:var(--brand-dark);}
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.active .page-link{background-color:var(--brand);border-color:var(--brand);color:#fff;}
.dataTables_wrapper .dataTables_paginate .page-item:not(.active) .page-link:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:not(.active) .page-link:hover{background-color:var(--brand-soft);border-color:var(--brand);color:var(--brand-dark);}
.dataTables_wrapper .dataTables_paginate .page-link:focus{box-shadow:0 0 0 .15rem var(--brand-soft);}


.sidebar-footer-actions-row{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:nowrap;}
.sidebar-footer-iconbtn{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;padding:0;position:relative;}
.sidebar-footer-iconbtn i{font-size:1rem;}
.sidebar-footer-iconbtn::after{content:attr(data-label);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);background:#111827;color:#fff;padding:5px 8px;border-radius:8px;font-size:.74rem;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .14s ease,transform .14s ease;}
.sidebar-footer-iconbtn:hover::after,.sidebar-footer-iconbtn:focus-visible::after{opacity:1;transform:translateX(-50%) translateY(-2px);}
.sidebar-footer-actions .btn{min-height:42px;}

.table-thumb,
.gallery-thumb,
.master-mobile-thumb{cursor:zoom-in;}
.image-preview-modal-content{background:#0f172a;color:#fff;border-radius:24px;overflow:hidden;}
.image-preview-modal-content .btn-close{filter:invert(1) grayscale(1);}
.image-preview-modal-img{max-height:78vh;object-fit:contain;border-radius:18px;}

.bulk-import-steps{display:flex;flex-wrap:wrap;gap:8px;}
.bulk-import-steps span{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #e5e7eb;border-radius:999px;background:#f8fafc;font-size:.8rem;font-weight:600;color:#475569;}
.bulk-summary-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px 16px;height:100%;}
.bulk-summary-label{font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#64748b;}
.bulk-summary-value{font-size:1.4rem;font-weight:800;color:#0f172a;line-height:1.2;margin-top:6px;}
.bulk-preview-search{min-width:min(280px,100%);}
.bulk-preview-table thead th{white-space:nowrap;background:#f8fafc;position:sticky;top:0;z-index:1;}
.bulk-preview-table tbody td{vertical-align:middle;}
.bulk-import-modal .modal-content{border-radius:22px;overflow:hidden;}
.bulk-import-modal .modal-header{border-bottom:1px solid #e5e7eb;}
.bulk-import-modal .modal-footer{border-top:1px solid #e5e7eb;}
.bulk-import-modal .btn-group .btn.active{box-shadow:none;}

.app-sidebar-col{position:relative;z-index:1030;}
.app-main-col{position:relative;z-index:auto;}
.sidebar-shell,.sidebar-body-shell,.sidebar-scroll{position:relative;z-index:auto;}
body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapse,
body.desktop-sidebar-collapsed .sidebar-footer-actions{z-index:1040!important;}
.modal-backdrop{z-index:2050!important;}
.modal{z-index:2060!important;}
.global-loader.global-loader-over-modal{z-index:2070;}
.dataTables_scrollHead,.dataTables_scrollHeadInner,.dataTables_scrollHeadInner table,.dataTables_scrollBody{z-index:1!important;}
.page-card,.table-responsive,.dataTables_wrapper{position:relative;z-index:auto;}
.page-card.search-layer-active,.form-section.search-layer-active,.modal-content.search-layer-active,.dashboard-section-card.search-layer-active,.dash-focus-card.search-layer-active{z-index:25;}
body.modal-open .app-sidebar-col{z-index:1020!important;}
body.modal-open .sidebar-shell,
body.modal-open .sidebar-body-shell,
body.modal-open .sidebar-scroll{z-index:auto!important;pointer-events:none;}
body.modal-open.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapse.show,
body.modal-open.desktop-sidebar-collapsed .sidebar-footer-actions.show,
body.modal-open.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapsing,
body.modal-open.desktop-sidebar-collapsed .sidebar-footer-actions.collapsing{display:none!important;}
body.modal-open .fab-add{z-index:1020!important;}


@media (max-width:991.98px){
  :root{--app-navbar-height:56px;}
  .sidebar-brand-wrap{display:none!important;}
  .app-shell{min-height:calc(100dvh - var(--app-navbar-height));}
  .app-sidebar-col{position:fixed;inset:var(--app-navbar-height) 0 0 0;width:100%;max-width:none;height:calc(100dvh - var(--app-navbar-height));z-index:2040;pointer-events:none;}
  .sidebar-mobile-backdrop{display:block;position:absolute;inset:0;background:rgba(15,23,42,.52);opacity:0;visibility:hidden;transition:opacity .18s ease;pointer-events:none;}
  .sidebar-shell{position:absolute;top:0;left:0;height:100%;width:min(84vw,320px);max-width:320px;min-height:0;border-right:1px solid #e5e7eb;box-shadow:0 20px 40px rgba(15,23,42,.18);transform:translateX(-105%);transition:transform .18s ease;overflow:hidden;z-index:1;display:flex;flex-direction:column;}
  .sidebar-mobile-header{display:flex;}
  .sidebar-body-shell{min-height:0;height:calc(100% - 56px);background:#fff;overflow:hidden;}
  .sidebar-scroll{height:100%;overflow:auto;padding-bottom:20px;}
  body.mobile-sidebar-open{overflow:hidden;}
  body.mobile-sidebar-open .app-sidebar-col{pointer-events:auto;}
  body.mobile-sidebar-open .sidebar-mobile-backdrop{opacity:1;visibility:visible;pointer-events:auto;}
  body.mobile-sidebar-open .sidebar-shell{transform:translateX(0);}
  .app-main-col{min-height:calc(100dvh - var(--app-navbar-height));}
  .app-content{padding-top:14px;scroll-margin-top:70px;}
  body.order-page-active .app-sidebar-col{inset:var(--app-navbar-height) 0 0 0;height:calc(100dvh - var(--app-navbar-height));}
}


@media (max-width:991.98px){
body.order-page-active .app-navbar{position:fixed;top:0;left:0;right:0;width:100%;z-index:1115;}
}
body.order-page-active .app-shell{padding-top:0;min-height:calc(100dvh - var(--app-navbar-height));}
body.order-page-active .app-sidebar-col{min-height:calc(100dvh - var(--app-navbar-height));}
body.order-page-active .app-main-col{min-height:calc(100dvh - var(--app-navbar-height));}
body.order-page-active .app-content{padding-top:0;scroll-margin-top:calc(var(--app-navbar-height) + 12px);}

.order-shell{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding-bottom:86px;}
body.order-page-active .app-content{padding-top:0;}
body.order-page-active .order-shell{padding-top:0;}
body.order-page-active .order-sticky-stack::before{display:none;}
body.order-page-active .order-create-header{margin-top:0!important;}

.order-sticky-stack{position:sticky;top:var(--app-navbar-height);z-index:1102;background:#f5f7f6;margin:0 -14px 14px;padding:12px 14px 10px;border-bottom:1px solid #e5e7eb;box-shadow:0 8px 18px rgba(15,23,42,.05);align-self:start;}
.order-sticky-stack > *{position:relative;z-index:1;}
.order-create-header{position:static;top:auto;z-index:auto;background:transparent;padding:0;margin-bottom:8px!important;}
.order-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:0;position:static;top:auto;background:transparent;padding:0;z-index:auto;}
.order-search{flex:1 1 260px;min-width:0;}
.order-search .form-control{border-radius:999px;padding-left:40px;}
.order-search .bi-search{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#6b7280;}
.order-chip-row{display:flex;gap:8px;overflow:auto;padding-bottom:4px;margin-bottom:14px;}
.order-chip{border:1px solid #d1d5db;background:#fff;color:#334155;border-radius:999px;padding:8px 14px;font-weight:700;white-space:nowrap;}
.order-chip.active,.order-chip:hover{background:var(--brand);border-color:var(--brand);color:#fff;}
.order-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;}
.order-main-panel{min-width:0;}
.order-card{position:relative;background:#fff;border:1px solid color-mix(in srgb, var(--brand) 14%, #d9e2ec);border-radius:20px;box-shadow:0 8px 20px rgba(15,23,42,.05);padding:12px;display:flex;flex-direction:column;gap:10px;min-height:100%;} 
.order-card-stock{position:absolute;top:10px;right:10px;display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 12px;border-radius:10px;color:#fff;font-size:.74rem;font-weight:700;line-height:1.1;}
.order-card-stock.in-stock{background:#16a34a;box-shadow:0 8px 18px rgba(22,163,74,.22);}
.order-card-stock.out-of-stock{background:#dc3545;box-shadow:0 8px 18px rgba(220,53,69,.22);}
.order-card-main{display:grid;grid-template-columns:126px minmax(0,1fr);gap:14px;align-items:start;min-width:0;}
.order-card-media{padding:0;}
.order-card-media button{border:0;background:transparent;padding:0;width:100%;display:block;}
.order-card-media img{width:100%;aspect-ratio:var(--product-image-ratio);object-fit:contain;border-radius:14px;background:#fff;border:1px solid #dbe4ea;}
.order-card-body{padding:32px 0 0;display:flex;flex-direction:column;gap:0;min-width:0;}
.order-card-sku{font-size:.66rem;font-weight:400;color:#94a3b8;line-height:1.1;min-height:.82rem;letter-spacing:.01em;margin-bottom:2px;}
.order-card-title{font-size:1rem;font-weight:800;line-height:1.34;color:#b45309;margin-bottom:16px;}
.order-card-prices{display:flex;flex-direction:column;gap:3px;}
.order-card-price-label{font-size:.78rem;color:#6b7280;font-weight:700;text-transform:uppercase;letter-spacing:.04em;}
.order-card-price-value{font-size:.98rem;font-weight:900;color:#0f766e;line-height:1.16;}
.order-card-price-secondary{font-size:.8rem;font-weight:500;color:#334155;line-height:1.14;}
.order-card-scheme-badge{display:inline-flex;align-items:center;gap:6px;margin:-8px 0 10px;padding:4px 10px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.74rem;font-weight:700;border:1px solid #a7f3d0;}

.order-card-scheme-helper{font-size:.74rem;color:#8a6d00;margin-top:-.2rem;margin-bottom:.35rem;}
.order-cart-meta.text-warning-emphasis{color:#b45309 !important;font-weight:600;}
.order-card-pricing-note{font-size:.78rem;color:#475569;line-height:1.45;padding-left:0;}
.order-card-note{font-size:.76rem;color:#64748b;line-height:1.4;}
.order-card-meta{display:flex;flex-direction:column;gap:6px;font-size:.86rem;color:#475569;}
.order-card-meta strong{color:#111827;}
.order-card-footer{display:flex;align-items:stretch;justify-content:space-between;gap:10px;border:1px solid #cbd5e1;border-radius:12px;overflow:hidden;background:#fff;}
.order-card-pack{display:flex;align-items:center;flex:1 1 auto;padding:10px 12px;font-size:.95rem;color:#0f172a;background:#fff;}
.order-card-action{display:flex;align-items:center;justify-content:flex-end;padding:6px 8px;background:color-mix(in srgb, var(--brand) 7%, #fff);min-width:120px;}
.order-add-btn{border-radius:10px;padding:10px 18px;font-weight:800;min-width:84px;}
.order-qty-control{display:inline-flex;align-items:center;gap:6px;border:1px solid color-mix(in srgb, var(--brand) 20%, #cbd5e1);border-radius:10px;padding:4px 6px;background:#fff;flex-wrap:nowrap;}
.order-qty-control button,.order-cart-qty button{width:30px;height:30px;border:0;border-radius:8px;background:var(--brand-soft);color:var(--brand-dark);font-size:1rem;font-weight:800;flex:0 0 auto;}
.order-qty-control input,.order-cart-qty input{width:48px;border:0;background:transparent;text-align:center;font-weight:800;outline:none;flex:0 0 auto;}
.order-qty-control-unit{font-size:.72rem;font-weight:700;color:#64748b;white-space:nowrap;padding-right:2px;}
.order-cart-panel{background:#fff;border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 2px 8px rgba(15,23,42,.04);padding:14px;position:sticky;top:132px;}
.order-cart-line{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:12px;border:1px solid #e6edf2;border-radius:18px;background:linear-gradient(180deg,#fff 0%,#f9fcfb 100%);box-shadow:0 4px 14px rgba(15,23,42,.04);margin-bottom:12px;}
.order-cart-line:last-child{margin-bottom:0;}
.order-cart-thumb-btn{border:0;background:transparent;padding:0;display:block;flex:0 0 auto;align-self:start;}
.order-cart-thumb{width:72px;aspect-ratio:var(--product-image-ratio);border-radius:16px;object-fit:contain;background:#fff;border:1px solid #dfe9e5;box-shadow:inset 0 0 0 1px rgba(255,255,255,.6);}
.order-cart-content{display:flex;flex-direction:column;gap:10px;min-width:0;}
.order-cart-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;min-width:0;}
.order-cart-name{font-weight:800;line-height:1.3;color:#1f2937;font-size:.95rem;}
.order-cart-price-line{font-size:.94rem;font-weight:900;color:var(--brand-dark);margin-top:5px;}
.order-cart-pack-line{font-size:.76rem;font-weight:700;color:#64748b;margin-top:3px;}
.order-cart-meta{font-size:.78rem;color:#6b7280;margin-top:2px;}
.order-cart-scheme-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:4px;}
.order-cart-scheme-pill{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#ecfdf5;border:1px solid #b7ead1;color:#0f766e;font-size:.72rem;font-weight:800;line-height:1;}
.order-cart-scheme-helper{font-size:.72rem;color:#9a6700;font-weight:700;}
.order-cart-remove{width:28px;height:28px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#94a3b8;display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;box-shadow:0 1px 2px rgba(15,23,42,.04);}
.order-cart-remove:hover{border-color:#dc3545;color:#dc3545;background:#fff5f5;}
.order-cart-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;min-width:0;}
.order-cart-qty{display:inline-flex;align-items:center;gap:5px;border:1px solid color-mix(in srgb, var(--brand) 18%, #cbd5e1);border-radius:12px;padding:4px 5px;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.04);max-width:100%;}
.order-cart-total{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right;min-width:92px;}
.order-cart-line-total{font-size:.92rem;font-weight:900;color:#111827;line-height:1.1;word-break:break-word;}
.order-cart-adjustment{font-size:.72rem;font-weight:700;line-height:1.2;}
.order-cart-adjustment-coupon{color:#0ea5e9;}
.order-cart-adjustment-cd{color:#16a34a;}
.order-summary-row{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:.92rem;padding:8px 0;border-bottom:1px dashed #e8edf3;}
.order-summary-row:last-child{border-bottom:0;}
.order-summary-row > span:first-child{color:#475569;font-weight:700;}
.order-summary-row strong{color:#0f172a;font-weight:800;}
.order-summary-row.total{font-size:1.08rem;font-weight:800;border-top:1px solid #dbe5ee;border-bottom:0;margin-top:10px;padding-top:14px;background:linear-gradient(180deg,#f8fffb 0%,#ffffff 100%);border-radius:14px;}
.order-summary-row.total > span:first-child{color:#0f172a;}
.order-gallery-main{width:100%;max-height:72vh;object-fit:contain;background:#f8faf9;border-radius:18px;border:1px solid #e5e7eb;}

body.order-gallery-modal-open{overflow-anchor:none;}
body.order-gallery-modal-open .app-main-col,body.order-gallery-modal-open .app-content{overscroll-behavior:contain;}
#orderGalleryModal.order-gallery-manual-open{display:block;z-index:1055;}
#orderGalleryModal.order-gallery-manual-open .modal-dialog{pointer-events:auto;}
.order-gallery-footer{display:flex;justify-content:center;margin-top:16px;padding-top:4px;}
.order-list-table-responsive{overflow-x:auto;overflow-y:visible;}
.order-list-desktop-actions,.order-list-card-menu,.order-list-desktop-menu{position:relative;}
.order-list-desktop-menu .dropdown-menu{min-width:160px;z-index:1085;}


.order-gallery-backdrop{z-index:1050;background:rgba(15,23,42,.55);}

.order-gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:999px;border:0;background:rgba(15,23,42,.8);color:#fff;}
.order-gallery-prev{left:16px;}
.order-gallery-next{right:16px;}
.order-empty-state{background:#fff;border:1px dashed #cbd5e1;border-radius:22px;padding:36px 18px;text-align:center;color:#64748b;}
.order-customer-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px;display:flex;justify-content:space-between;gap:12px;align-items:flex-start;text-decoration:none;color:inherit;box-shadow:0 2px 8px rgba(15,23,42,.04);}
.order-customer-card:hover{border-color:var(--brand);box-shadow:0 10px 24px rgba(25,135,84,.10);}
.order-customer-name{font-size:1rem;font-weight:800;line-height:1.3;color:#111827;}
.order-customer-meta{font-size:.86rem;color:#64748b;line-height:1.45;margin-top:4px;}
.order-source-badge{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;padding:5px 9px;border-radius:999px;background:var(--brand-soft);color:var(--brand-dark);}

.order-customer-details-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.order-customer-detail-card-full{grid-column:1 / -1;}
#orderCustomerInfoModal .modal-content{border-radius:22px;}
#orderCustomerInfoModal .modal-body{padding-top:12px;}

.order-page-subtitle{display:block;font-size:.86rem;color:#64748b;line-height:1.45;margin-top:2px;}
.order-create-header .page-title{font-size:1.05rem;}
.order-customer-trigger-wrap{min-width:0;}
.order-customer-trigger{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:var(--brand-dark);font-weight:800;position:relative;z-index:1;}
.order-customer-trigger:hover{color:var(--brand);}
.order-customer-card-colorful{background:linear-gradient(180deg,#fff 0%,var(--card-bg) 100%);border-color:var(--card-border);border-left:4px solid var(--card-accent);min-height:100%;}
.order-customer-card-colorful:hover{border-color:var(--card-accent);box-shadow:0 12px 28px color-mix(in srgb, var(--card-accent) 18%, transparent);transform:translateY(-1px);}
.order-customer-main{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1 1 auto;}
.order-customer-topline{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;}
.order-customer-type-line{font-size:.88rem;font-weight:700;color:#475569;line-height:1.4;}
.order-customer-meta-line{display:flex;align-items:flex-start;gap:8px;}
.order-customer-meta-line i{color:var(--card-accent);font-size:.9rem;line-height:1.4;margin-top:1px;}
.order-customer-meta-line-address i{color:#f97316;}
.order-customer-meta-line-salesperson i{color:#0f766e;}
.order-customer-address{color:#b45309;font-weight:600;}
.order-customer-salesperson{color:#0f766e;font-weight:700;}
.order-customer-action-icons{display:flex;flex-direction:column;gap:8px;align-items:flex-end;}
.order-customer-icon-badge{width:34px;height:34px;border-radius:999px;background:#fff;border:1px solid color-mix(in srgb, var(--card-accent) 30%, #d1d5db);display:inline-flex;align-items:center;justify-content:center;color:var(--card-accent);box-shadow:0 6px 14px rgba(15,23,42,.04);}
.order-view-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;}
.order-view-action-btn{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:.62rem 1rem;font-weight:800;box-shadow:0 10px 24px rgba(15,23,42,.08);border:1px solid #dbe3ea;}
.order-view-action-form{display:inline-flex;margin:0;}
.order-view-action-form .order-view-action-btn{margin:0;}
.order-view-action-btn i{font-size:.95rem;}
.order-view-action-back{color:#0f172a;background:#fff;}
.order-view-action-back:hover{background:#f8fafc;color:#0f172a;}
.order-view-action-btn.btn-primary{border-color:color-mix(in srgb, var(--brand) 30%, #0d6efd);box-shadow:0 12px 28px rgba(25,135,84,.16);}
.order-view-page-header{position:relative;align-items:flex-start;gap:12px;}
.order-view-page-title-wrap{min-width:0;flex:1 1 auto;}
.order-view-mobile-menu{display:none;position:relative;flex:0 0 auto;}
.order-view-mobile-menu summary::-webkit-details-marker{display:none;}
.order-view-mobile-menu-toggle{list-style:none;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;border:1px solid #dbe3ea;background:#fff;color:#0f172a;box-shadow:0 10px 24px rgba(15,23,42,.08);cursor:pointer;}
.order-view-mobile-menu[open] .order-view-mobile-menu-toggle{background:#f8fafc;}
.order-view-mobile-menu-sheet{position:absolute;top:50px;right:0;width:min(270px,calc(100vw - 32px));padding:12px;border-radius:18px;background:#fff;border:1px solid #dbe3ea;box-shadow:0 18px 38px rgba(15,23,42,.16);z-index:30;}
.order-view-mobile-menu-head{padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #edf2f7;}
.order-view-mobile-menu-title{font-size:.95rem;font-weight:800;color:#0f172a;}
.order-view-mobile-menu-subtitle{font-size:.74rem;color:#64748b;line-height:1.35;}
.order-view-mobile-menu-list{display:flex;flex-direction:column;gap:8px;}
.order-view-mobile-menu-list .order-view-action-btn,.order-view-mobile-menu-list .order-view-action-form{width:100%;}
.order-view-mobile-menu-list .order-view-action-btn{justify-content:flex-start;padding:.72rem .92rem;border-radius:14px;}
.order-view-mobile-info-card{padding:14px;border-radius:20px;}
.order-view-customer-accordion{display:block;}
.order-view-customer-accordion summary::-webkit-details-marker{display:none;}
.order-view-customer-summary{list-style:none;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;cursor:pointer;}
.order-view-customer-summary-main{min-width:0;flex:1 1 auto;}
.order-view-customer-firm{font-size:1rem;font-weight:800;color:#0f172a;line-height:1.25;}
.order-view-customer-person{font-size:.84rem;font-weight:600;color:#64748b;line-height:1.35;}
.order-view-customer-location{display:flex;align-items:flex-start;gap:7px;font-size:.76rem;color:#0ea5e9;font-weight:700;line-height:1.35;margin-top:6px;}
.order-view-customer-location i{margin-top:1px;}
.order-view-customer-summary-end{display:inline-flex;align-items:center;gap:6px;color:#64748b;font-weight:700;white-space:nowrap;}
.order-view-customer-toggle-text{font-size:.74rem;}
.order-view-customer-summary-end i{transition:transform .18s ease;}
.details-open > .order-view-customer-summary .order-view-customer-summary-end i,
.order-view-customer-accordion[open] > .order-view-customer-summary .order-view-customer-summary-end i{transform:rotate(90deg);}
.order-view-customer-details{padding-top:12px;margin-top:12px;border-top:1px solid #eef2f7;}
.order-view-mobile-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.order-view-mobile-meta-item{padding:10px 11px;border-radius:14px;background:#f8fbfa;border:1px solid #e3ece7;display:flex;flex-direction:column;gap:4px;min-width:0;}
.order-view-mobile-meta-item span{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#64748b;}
.order-view-mobile-meta-item strong{font-size:.8rem;color:#0f172a;line-height:1.35;word-break:break-word;}
.order-view-mobile-meta-item-wide{grid-column:1 / -1;}
.order-view-mobile-meta-item a{text-decoration:none;color:inherit;}
.order-bottom-bar{position:fixed;left:308px;right:24px;bottom:0;z-index:1045;display:flex;gap:10px;align-items:center;justify-content:space-between;padding:8px 10px calc(8px + env(safe-area-inset-bottom));border:1px solid #e5e7eb;border-bottom:0;border-radius:18px 18px 0 0;background:rgba(255,255,255,.98);backdrop-filter:blur(8px);box-shadow:0 -8px 24px rgba(15,23,42,.10);margin-top:0;max-width:calc(100vw - 332px);}
body.desktop-sidebar-collapsed .order-bottom-bar{left:120px;}
.order-bottom-btn{min-height:46px;font-weight:700;flex:1 1 0;}
.order-bottom-bar > .order-bottom-btn{max-width:220px;}
.order-bottom-bar > #orderReviewBtn{max-width:260px;}
.order-bottom-bar > #orderBottomBackBtn{max-width:160px;}
.order-shell{padding-bottom:124px;}
.order-qty-control input,.order-cart-qty input{-moz-appearance:textfield;appearance:textfield;}
.order-qty-control input::-webkit-outer-spin-button,.order-qty-control input::-webkit-inner-spin-button,.order-cart-qty input::-webkit-outer-spin-button,.order-cart-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.order-summary-row-charge .btn{padding:.25rem .55rem;font-size:.8rem;}
.order-summary-shell{grid-template-columns:minmax(0,1fr);}
.order-summary-page{display:block;}
.order-summary-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.9fr);gap:16px;align-items:start;}
.order-summary-side{min-width:0;}
.order-summary-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 2px 8px rgba(15,23,42,.04);padding:16px;}
.order-summary-totals-card{position:sticky;top:132px;background:linear-gradient(180deg,#f8fffb 0%,#ffffff 100%);border-color:#dcebe3;box-shadow:0 14px 28px rgba(15,23,42,.06);}
.order-summary-totals-card .form-label{font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#64748b;margin-bottom:.4rem;}
.order-summary-totals-card .input-group{box-shadow:0 4px 12px rgba(15,23,42,.04);border-radius:14px;}
.order-summary-totals-card .input-group .form-control{border-top-left-radius:14px;border-bottom-left-radius:14px;border-color:#dbe5df;background:#fff;}
.order-summary-totals-card .input-group .btn{border-top-right-radius:14px;border-bottom-right-radius:14px;padding-inline:1rem;font-weight:700;}
.order-summary-totals-card #orderSummaryRows{margin-top:.75rem;padding-top:.25rem;}
.order-coupon-box{padding:10px 12px;border-radius:14px;background:#effaf4;border:1px solid #cce8d7;color:#166534;}
.order-summary-bottom{display:flex;flex-direction:column;gap:8px;justify-content:flex-start;align-items:stretch;}
.order-summary-bottom-row{display:grid;gap:8px;align-items:center;}
.order-summary-bottom-row-meta{grid-template-columns:minmax(56px,.7fr) minmax(0,1fr) minmax(0,1.2fr);}
.order-summary-bottom-row-primary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
.order-summary-bottom-row-primary-single{grid-template-columns:minmax(0,1fr);}
.order-summary-bottom .order-bottom-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;}
.order-summary-bottom .order-bottom-btn i{font-size:1rem;line-height:1;}
.order-bottom-btn-back{padding-left:.8rem;padding-right:.8rem;}
.order-bottom-btn-back .order-bottom-btn-label{display:none;}
.order-bottom-btn-clear,.order-bottom-btn-add{font-weight:700;}

.order-bottom-btn-label-short{display:none;}
.order-create-bottom .order-bottom-btn,.order-summary-bottom .order-bottom-btn{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.order-create-bottom #orderReviewBtn .badge{flex:0 0 auto;}

@media (max-width: 479.98px){
  .order-view-mobile-menu-sheet{width:min(248px,calc(100vw - 24px));top:46px;padding:10px;}
  .order-view-mobile-menu-toggle{width:40px;height:40px;border-radius:13px;}
  .order-view-mobile-meta-grid{grid-template-columns:minmax(0,1fr);}
  .order-view-customer-summary{gap:10px;}
  .order-bottom-bar{left:8px;right:8px;gap:6px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));}
  .order-summary-bottom{gap:6px;}
  .order-summary-bottom-row{gap:6px;width:100%;}
  .order-summary-bottom-row-meta{grid-template-columns:42px minmax(0,1fr) minmax(0,1fr);}
  .order-summary-bottom-row-primary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:none;}
  .order-summary-bottom-row-primary-single{grid-template-columns:minmax(0,1fr);max-width:none;}
  .order-create-bottom{justify-content:space-between;}
  .order-create-bottom .order-bottom-btn{flex:1 1 0;min-width:0;max-width:none;min-height:42px;font-size:.8rem;padding:.45rem .6rem;gap:6px;}
  .order-create-bottom #orderBottomBackBtn{flex:0 0 96px;}
  .order-create-bottom #orderReviewBtn{flex:1 1 auto;}
  .order-summary-bottom .order-bottom-btn{min-height:42px;font-size:.78rem;padding:.45rem .55rem;gap:6px;}
  .order-summary-bottom .order-bottom-btn i,.order-create-bottom .order-bottom-btn i{font-size:.92rem;line-height:1;}
  .order-bottom-btn-clear,.order-bottom-btn-add{letter-spacing:0;}
}

@media (max-width: 389.98px){
  .order-create-bottom #orderBottomBackBtn{flex:0 0 82px;}
  .order-summary-bottom-row-meta{grid-template-columns:40px minmax(0,1fr) minmax(0,1fr);}
  .order-summary-bottom .order-bottom-btn,.order-create-bottom .order-bottom-btn{font-size:.74rem;padding:.42rem .45rem;gap:5px;}
  .order-bottom-btn-label-full{display:none;}
  .order-bottom-btn-label-short{display:inline;}
  .order-bottom-btn-back .order-bottom-btn-label-short{display:none;}
  .order-summary-bottom .order-bottom-btn i,.order-create-bottom .order-bottom-btn i{font-size:.9rem;}
}

@media (max-width:991.98px){
  .order-summary-grid{grid-template-columns:minmax(0,1fr);}
  .order-summary-totals-card{position:static;}
}
@media (max-width:767.98px){
  .order-summary-card{padding:14px;}
  .order-summary-bottom-row-meta{grid-template-columns:48px minmax(0,.95fr) minmax(0,1.05fr);}
  .order-summary-bottom-row-primary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .order-summary-bottom .order-bottom-btn{flex:none;min-height:44px;padding-left:.75rem;padding-right:.75rem;}
  .order-cart-line{grid-template-columns:60px minmax(0,1fr);gap:10px;padding:10px;}
  .order-cart-thumb{width:60px;border-radius:14px;}
  .order-cart-name{font-size:.84rem;line-height:1.22;}
  .order-cart-price-line{font-size:.82rem;}
  .order-cart-pack-line{font-size:.68rem;}
  .order-cart-meta{font-size:.7rem;}
  .order-cart-scheme-pill{font-size:.66rem;padding:3px 7px;}
  .order-cart-scheme-helper{font-size:.66rem;}
  .order-cart-bottom{align-items:center;gap:8px;}
  .order-cart-qty{gap:3px;padding:3px 4px;border-radius:10px;}
  .order-cart-qty button{width:24px;height:24px;border-radius:7px;}
  .order-cart-qty input{width:22px;font-size:.82rem;}
  .order-qty-control-unit{font-size:.62rem;max-width:36px;overflow:hidden;text-overflow:ellipsis;}
  .order-cart-total{min-width:72px;max-width:84px;}
  .order-cart-line-total{font-size:.78rem;}
  .order-cart-adjustment{font-size:.62rem;}
  .order-cart-remove{width:24px;height:24px;flex-basis:24px;}
}

@media (min-width:1200px){
  .order-shell{grid-template-columns:minmax(0,1fr);}
  .order-cart-panel{display:none!important;}
  .order-bottom-bar{display:flex;padding:8px 12px 8px;justify-content:center;gap:12px;}
  .order-bottom-btn{min-height:40px;font-size:.94rem;padding:.45rem 1rem;flex:0 1 auto;}
  .order-summary-bottom-row{justify-items:center;}
  .order-summary-bottom-row-meta{grid-template-columns:56px minmax(160px,220px) minmax(180px,240px);justify-content:center;}
  .order-summary-bottom-row-primary{grid-template-columns:minmax(220px,280px) minmax(220px,280px);justify-content:center;}
  .order-summary-bottom-row-primary-single{grid-template-columns:minmax(240px,320px);}
}
@media (max-width:1199.98px){
  .order-bottom-bar{left:12px;right:12px;bottom:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));}
}
@media (max-width:767.98px){
  .order-view-page-header{align-items:center;}
  .order-view-page-header .order-view-actions{display:none!important;}
  .order-view-mobile-menu{display:block;}
  .order-view-action-btn{padding:.56rem .9rem;}
  .order-grid{grid-template-columns:1fr;}
  body.order-page-active .app-content{padding-top:0;}
  body.order-page-active .order-shell{padding-top:0;}
  body.order-page-active .order-sticky-stack::before{display:none;}
  .order-sticky-stack{margin:0 -12px 12px;padding:10px 12px 8px;top:var(--app-navbar-height);}
  .order-create-header{padding:0;margin-bottom:6px!important;}
  .order-toolbar{padding:0;}
  .order-cart-panel{position:static;}
  .order-create-header .page-title{font-size:1rem;}
  .order-customer-card{padding:12px;}
  .order-card{padding:10px;}
  .order-card-main{grid-template-columns:124px minmax(0,1fr);gap:10px;}
  .order-card-body{padding-top:26px;gap:0;}
  .order-card-stock{font-size:.66rem;font-weight:600;padding:4px 9px;min-height:24px;}
  .order-card-sku{font-size:.6rem;min-height:.74rem;margin-bottom:1px;}
  .order-card-title{font-size:.88rem;line-height:1.26;margin-bottom:13px;}
  .order-card-price-secondary{font-size:.7rem;line-height:1.1;font-weight:500;color:#334155;}
  .order-card-price-value{font-size:.86rem;line-height:1.08;}
  .order-card-pricing-note{font-size:.7rem;line-height:1.35;}
  .order-card-note{font-size:.7rem;line-height:1.3;}
  .order-card-pack{font-size:.82rem;padding:9px 10px;}
  .order-card-action{min-width:108px;padding:5px 6px;}
  .order-qty-control{gap:4px;padding:4px 5px;}
  .order-qty-control button{width:28px;height:28px;}
  .order-qty-control input{width:34px;font-size:.88rem;}
  .order-qty-control-unit{font-size:.66rem;}
  .order-add-btn{padding:9px 14px;min-width:76px;font-size:.84rem;}
  .order-bottom-bar{left:8px;right:8px;gap:8px;bottom:0;padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0;}
  .order-bottom-btn{min-height:44px;}

  .order-customer-topline{align-items:center;}
}


.sidebar-footer-card-static{margin-top:0;position:relative;bottom:auto;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:12px;box-shadow:0 8px 18px rgba(15,23,42,.05);z-index:2;flex:0 0 auto;width:auto;max-width:none;margin:0 12px 12px;}
.sidebar-footer-head{display:flex;align-items:center;justify-content:flex-start;gap:12px;}
.sidebar-footer-user{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;width:100%;text-align:left;}
.sidebar-footer-avatar{width:36px;height:36px;border-radius:12px;background:#f8fafc;border:1px solid #e5e7eb;display:inline-flex;align-items:center;justify-content:center;color:#64748b;flex:0 0 auto;}
.sidebar-footer-name{display:block;font-size:.92rem;font-weight:700;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sidebar-footer-role{display:block;font-size:.78rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sidebar-footer-actions-static{display:block!important;padding-top:10px;}
.sidebar-footer-card-static .sidebar-footer-meta{min-width:0;display:flex;flex-direction:column;}
.sidebar-footer-card-static .sidebar-footer-toggle,.sidebar-footer-card-static .sidebar-footer-icon{display:none!important;}
.sidebar-footer-card-static .sidebar-footer-actions-row{justify-content:center;}
@media (max-width:991.98px){
  .sidebar-footer-card-static{padding:10px 12px calc(10px + env(safe-area-inset-bottom));margin:0 12px calc(12px + env(safe-area-inset-bottom));}
}

/* v65 sidebar footer + top spacing cleanup */
.sidebar-shell{
  display:flex;
  flex-direction:column;
}
.sidebar-body-shell{
  min-height:calc(100dvh - var(--app-navbar-height));
  height:calc(100dvh - var(--app-navbar-height));
  overflow:hidden;
}
.sidebar-scroll{
  padding:0 12px 12px !important;
}
.sidebar-accordion{
  padding:0 !important;
  gap:10px;
}
.sidebar-footer-card-static{
  margin:0 12px 12px !important;
  padding:0 !important;
  position:sticky;
  bottom:0;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
  box-shadow:0 -8px 20px rgba(15,23,42,.06);
  overflow:hidden;
}
.sidebar-footer-head{display:none !important;}
.sidebar-footer-card-static .sidebar-footer-toggle{
  display:flex !important;
  width:100%;
  border:0;
  background:#fff;
  padding:12px 14px;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  text-align:left;
}
.sidebar-footer-card-static .sidebar-footer-icon{display:none !important;}
.sidebar-footer-card-static .sidebar-footer-meta{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.sidebar-footer-card-static .sidebar-footer-actions-static{
  display:block;
  padding:0 12px 12px;
}
.sidebar-footer-card-static .sidebar-footer-actions-static:not(.show){display:none !important;}
.sidebar-footer-card-static .sidebar-footer-actions-static.show{display:block !important;}
.sidebar-footer-card-static .sidebar-footer-actions-row{
  justify-content:center;
}
.sidebar-footer-card-static .sidebar-footer-toggle .bi-chevron-up{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#64748b;
  transition:transform .16s ease;
}
.sidebar-footer-card-static .sidebar-footer-toggle[aria-expanded="true"] .bi-chevron-up{
  transform:rotate(180deg);
}
@media (min-width:992px){
  .sidebar-shell{
    position:sticky;
    top:var(--app-navbar-height);
    height:calc(100dvh - var(--app-navbar-height));
  }
}
@media (max-width:991.98px){
  .sidebar-mobile-header{
    min-height:54px;
    padding:12px 14px;
  }
  .sidebar-scroll{
    padding:0 12px 10px !important;
  }
  .sidebar-footer-card-static{
    margin:0 12px calc(12px + env(safe-area-inset-bottom)) !important;
  }
}
.sidebar-footer-card-static .sidebar-footer-actions-static{padding:0 12px 12px;}
.sidebar-footer-card-static .sidebar-footer-actions-static:not(.show){display:none !important;}
.sidebar-footer-card.auto-open .sidebar-footer-actions-static.show{display:block !important;}

@media (max-width:575.98px){
  .order-customer-details-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .order-customer-detail-card{min-height:74px;padding:10px 12px;}
  .order-customer-detail-card-full{grid-column:1 / -1;}
}

.report-nav-card{transition:transform .14s ease,box-shadow .14s ease;}
.report-nav-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,23,42,.08);}
.report-nav-icon{width:44px;height:44px;border-radius:14px;background:var(--brand-soft);display:flex;align-items:center;justify-content:center;color:var(--brand-dark);font-size:1.15rem;flex:0 0 44px;}
.report-summary-card{min-height:102px;display:flex;flex-direction:column;justify-content:center;}
.report-summary-label{font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#64748b;}
.report-summary-value{font-size:1.25rem;font-weight:800;color:#0f172a;line-height:1.2;margin-top:6px;word-break:break-word;}
.report-filter-offcanvas{height:min(82vh,760px);border-top-left-radius:20px;border-top-right-radius:20px;}
.report-filter-offcanvas .offcanvas-body{padding-bottom:88px;}
.report-filter-footer{position:sticky;bottom:0;background:#fff;padding-top:8px;border-top:1px solid #e5e7eb;}
@media (max-width:991.98px){.report-filter-desktop{display:none!important;}}


.sidebar-count-badge{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:1.45rem;height:1.45rem;padding:0 .4rem;border-radius:999px;background:#f59e0b;color:#fff;font-size:.72rem;font-weight:700;line-height:1;box-shadow:0 2px 6px rgba(245,158,11,.25);}
.sidebar-acc-links .sidebar-link .sidebar-count-badge{margin-left:auto;flex:0 0 auto;}
body.desktop-sidebar-collapsed .sidebar-count-badge{display:none;}


@media (max-width:991.98px){
  .sidebar-scroll{padding-bottom:112px !important;}
  .sidebar-footer-card-static{position:sticky;bottom:0;z-index:6;margin:0 12px calc(8px + env(safe-area-inset-bottom)) !important;border-radius:18px 18px 0 0;box-shadow:0 -10px 24px rgba(15,23,42,.10);}
  .sidebar-footer-card-static .sidebar-footer-toggle{display:flex !important;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:#fff;}
  .sidebar-footer-card-static .sidebar-footer-actions-static{padding:0 12px calc(12px + env(safe-area-inset-bottom)) !important;background:#fff;}
  .sidebar-footer-card-static .sidebar-footer-actions-static:not(.show){display:none !important;}
  .sidebar-footer-card-static .sidebar-footer-actions-static.show{display:block !important;}
  .sidebar-footer-card-static .sidebar-footer-actions-row{display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:nowrap;}
  .sidebar-footer-card-static .sidebar-footer-iconbtn{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;}
}


.attendance-status-pill{font-size:.78rem;padding:.48rem .72rem;border-radius:999px;}
.attendance-page .page-card{border-radius:18px;}
.attendance-action-card{position:relative;overflow:hidden;}
.attendance-section-label{font-size:.76rem;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:800;}
.attendance-main-title{font-size:1.1rem;font-weight:800;color:#0f172a;}
.attendance-summary-text{font-size:.96rem;color:#334155;line-height:1.5;}
.attendance-proof-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.attendance-proof-item{border:1px solid #e5e7eb;border-radius:16px;padding:14px;background:#f8fafc;}
.attendance-proof-label{font-size:.74rem;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:800;}
.attendance-proof-value{font-size:1rem;font-weight:800;color:#111827;margin-top:4px;}
.attendance-geo-status{font-size:.88rem;border:1px dashed #cbd5e1;background:#f8fafc;border-radius:14px;padding:12px;}
.attendance-preview-image{width:100%;max-width:210px;border-radius:16px;border:1px solid #d1d5db;aspect-ratio:5/6;object-fit:cover;background:#fff;}
.attendance-history-table td,.attendance-history-table th{vertical-align:middle;}
.attendance-stat-card{height:100%;}
.attendance-stat-value{font-size:1.7rem;font-weight:800;color:#0f172a;line-height:1.15;margin-top:6px;}
@media (max-width: 767.98px){
  .attendance-proof-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .attendance-proof-value{font-size:.94rem;}
}


html.app-modal-open,body.app-modal-open{overflow:hidden;}
.app-custom-modal{display:none;position:fixed;inset:0;z-index:2060;overflow:auto;padding:.75rem;background:rgba(15,23,42,.55);-webkit-overflow-scrolling:touch;}
.app-custom-modal.show{display:block;}
.app-custom-modal .modal-dialog{margin:0 auto;min-height:calc(100vh - 1.5rem);display:flex;align-items:center;pointer-events:none;}
.app-custom-modal .modal-content{width:100%;pointer-events:auto;border:0;border-radius:24px;box-shadow:0 28px 60px rgba(15,23,42,.24);}
.app-custom-modal .modal-header,.app-custom-modal .modal-footer{background:#fff;position:relative;z-index:1;}
.app-custom-modal .modal-body{background:#fff;}
.app-custom-modal .btn-close{position:relative;z-index:2;}
.app-custom-modal .modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1.5rem);}
.app-custom-modal .modal-dialog-scrollable .modal-body{max-height:calc(100vh - 180px);overflow:auto;-webkit-overflow-scrolling:touch;}
@media (max-width: 767.98px){
  .app-custom-modal{padding:.5rem;}
  .app-custom-modal .modal-dialog{min-height:calc(100vh - 1rem);}
  .app-custom-modal .modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);}
  .app-custom-modal .modal-dialog-scrollable .modal-body{max-height:calc(100vh - 168px);}
}


@media (min-width: 992px){
  .order-bottom-bar:not(.order-summary-bottom){justify-content:flex-end;gap:12px;padding:10px 14px 10px;}
  .order-bottom-bar:not(.order-summary-bottom) .order-bottom-btn{flex:0 0 auto;min-width:108px;max-width:158px;min-height:38px;font-size:.86rem;padding:.45rem .78rem;}
  .order-bottom-bar:not(.order-summary-bottom) #orderReviewBtn{min-width:136px;}
  .order-summary-bottom{align-items:flex-end;padding:10px 14px 10px;}
  .order-summary-bottom-row{width:min(620px,100%);margin-left:auto;}
  .order-summary-bottom-row-meta{grid-template-columns:58px 138px 152px;}
  .order-summary-bottom-row-primary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:380px;}
  .order-summary-bottom-row-primary-single{grid-template-columns:minmax(0,1fr);max-width:220px;}
  .order-summary-bottom .order-bottom-btn{min-height:38px;font-size:.86rem;padding:.44rem .72rem;}
}

@media (min-width: 1200px){
  .order-summary-bottom-row{width:min(660px,100%);}
  .order-summary-bottom-row-meta{grid-template-columns:66px 156px 176px;}
  .order-summary-bottom-row-primary{max-width:440px;}
}

/* v98.13.0.54 salesperson customer activity flow */
.salesperson-customer-list-card{cursor:pointer;}
.salesperson-customer-inline-actions{display:flex;justify-content:flex-end;align-items:center;}
.salesperson-customer-call-actions{display:flex;gap:10px;align-items:center;}
.salesperson-icon-btn{width:42px;height:42px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid #dbe3ea;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.06);font-size:1.05rem;}
.salesperson-icon-btn-call{color:#5b4fcf;border-color:#cfcaf8;}
.salesperson-icon-btn-whatsapp{color:#12b76a;border-color:#b7f2d2;}
.salesperson-customer-cta-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;}
.salesperson-customer-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:14px;font-weight:800;min-height:44px;}

.salesperson-customer-cta-order{background:linear-gradient(180deg,#4f46e5 0%,#4338ca 100%);border:1px solid #4338ca;color:#fff;box-shadow:0 10px 18px rgba(79,70,229,.18);}
.salesperson-customer-cta-order:hover,.salesperson-customer-cta-order:focus{background:linear-gradient(180deg,#4338ca 0%,#3730a3 100%);border-color:#3730a3;color:#fff;box-shadow:0 14px 24px rgba(79,70,229,.24);}
.salesperson-customer-cta-order .app-inline-icon{color:currentColor;}
.salesperson-customer-detail-shell.order-customer-card-colorful{background:linear-gradient(180deg,#fff 0%,var(--card-bg) 100%);border-color:var(--card-border);border-left:4px solid var(--card-accent);box-shadow:0 12px 28px color-mix(in srgb, var(--card-accent) 10%, rgba(15,23,42,.04));}
.salesperson-customer-detail-shell.order-customer-card-colorful::after{background:radial-gradient(circle, color-mix(in srgb, var(--card-accent) 18%, white) 0%, rgba(99,102,241,0) 70%);}
.salesperson-customer-detail-shell .salesperson-customer-list-ribbon{background:color-mix(in srgb, var(--card-accent) 22%, white);}
.salesperson-customer-detail-shell .salesperson-customer-list-ribbon span{color:color-mix(in srgb, var(--card-accent) 78%, #0f172a);}

.salesperson-customer-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;overflow:hidden;}
.salesperson-customer-hero-left{display:flex;flex-direction:column;gap:6px;min-width:0;}
.salesperson-customer-tier-strip{display:inline-flex;align-items:center;gap:6px;font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;padding:5px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;align-self:flex-start;}
.salesperson-customer-hero-title{font-size:1.35rem;font-weight:900;color:#0f172a;line-height:1.2;}
.salesperson-customer-hero-subtitle{font-size:.95rem;font-weight:700;color:#475569;}
.salesperson-customer-hero-meta{display:inline-flex;align-items:center;gap:6px;font-size:.92rem;color:#0f766e;font-weight:700;}
.salesperson-customer-hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.salesperson-customer-tabs{display:flex;gap:8px;flex-wrap:wrap;}
.salesperson-customer-tab{display:inline-flex;align-items:center;gap:8px;padding:.8rem 1rem;border-radius:14px;text-decoration:none;font-weight:800;color:#475569;border:1px solid #e2e8f0;background:#fff;}
.salesperson-customer-tab.active{background:#f0fdf4;border-color:#86efac;color:#166534;box-shadow:0 8px 16px rgba(22,163,74,.08);}
.salesperson-activity-card{border-radius:18px;box-shadow:0 10px 24px rgba(15,23,42,.06);}
.salesperson-activity-note{padding:12px 14px;border-radius:14px;background:#fff7ed;color:#7c2d12;font-weight:600;line-height:1.6;}
@media (max-width: 767.98px){
  .salesperson-customer-hero{padding:14px;align-items:flex-start;flex-direction:column;}
  .salesperson-customer-hero-title{font-size:1.15rem;}
  .salesperson-customer-hero-actions{width:100%;justify-content:flex-start;}
  .salesperson-customer-cta-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .salesperson-customer-cta{min-height:42px;font-size:.88rem;padding:.65rem .7rem;}
  .salesperson-customer-tabs{overflow:auto;flex-wrap:nowrap;padding-bottom:2px;}
  .salesperson-customer-tab{white-space:nowrap;}
}


/* v98.13.0.55 salesperson customer mobile UI polish */
.salesperson-customer-list-card{position:relative;overflow:hidden;padding-left:18px;}
.salesperson-customer-list-ribbon{position:absolute;left:0;top:14px;bottom:14px;width:18px;border-radius:14px;background:color-mix(in srgb, var(--card-accent) 22%, white);display:flex;align-items:center;justify-content:center;z-index:1;}
.salesperson-customer-list-ribbon span{writing-mode:vertical-rl;transform:rotate(180deg);font-size:.7rem;font-weight:800;letter-spacing:.04em;color:color-mix(in srgb, var(--card-accent) 78%, #0f172a);text-transform:uppercase;}
.salesperson-customer-list-body{padding-left:8px;}
.salesperson-customer-list-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.salesperson-customer-list-title-wrap{min-width:0;}
.salesperson-customer-location{display:inline-flex;align-items:center;gap:6px;font-size:.88rem;font-weight:700;color:#0ea5e9;margin-top:3px;}
.salesperson-customer-profile-row{display:flex;align-items:center;gap:12px;margin-top:12px;min-width:0;}
.salesperson-customer-avatar{width:54px;height:54px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;background:#f8fafc;border:1px solid #dbe3ea;color:#94a3b8;font-size:1.3rem;flex:0 0 54px;}
.salesperson-customer-avatar-lg{width:62px;height:62px;border-radius:18px;font-size:1.5rem;}
.salesperson-customer-profile-text{min-width:0;display:flex;flex-direction:column;gap:2px;}
.salesperson-customer-owner{font-weight:800;color:#1f2937;font-size:1rem;line-height:1.2;}
.salesperson-customer-parent{font-size:.76rem;font-weight:700;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.salesperson-customer-hero-mobile{position:relative;overflow:hidden;padding-left:18px;}
.salesperson-customer-hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.salesperson-customer-list-ribbon-hero{top:16px;bottom:16px;}
.salesperson-customer-profile-row-hero{margin-top:12px;}
.salesperson-customer-cta-row-hero .salesperson-customer-cta{min-height:46px;}
.salesperson-customer-tabs-mobile{padding:6px !important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.salesperson-customer-tabs-mobile .salesperson-customer-tab{justify-content:center;padding:.78rem .55rem;border-radius:16px;}
.salesperson-customer-tabs-mobile .salesperson-customer-tab span{font-size:.86rem;}
.salesperson-customer-summary-grid .page-card{border-radius:18px;box-shadow:0 10px 24px rgba(15,23,42,.05);}
.salesperson-mini-stat{height:100%;}
@media (max-width:767.98px){
  .salesperson-customer-list-card{border-radius:22px;padding:14px 14px 14px 18px;}
  .salesperson-customer-list-ribbon{width:20px;left:0;top:12px;bottom:12px;border-radius:14px;}
  .salesperson-customer-list-body{padding-left:10px;}
  .salesperson-customer-call-actions{gap:8px;}
  .salesperson-icon-btn{width:40px;height:40px;font-size:1rem;box-shadow:0 6px 14px rgba(15,23,42,.05);}
  .salesperson-customer-cta-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;}
  .salesperson-customer-cta{border-radius:12px;min-height:44px;padding:.7rem .6rem;font-size:.9rem;}
  .salesperson-customer-hero-mobile{padding:14px 14px 14px 18px;}
  .salesperson-customer-hero-mobile .salesperson-customer-hero-top,
  .salesperson-customer-hero-mobile .salesperson-customer-profile-row-hero,
  .salesperson-customer-hero-mobile .salesperson-customer-cta-row-hero{width:100%;}
  .salesperson-customer-hero-mobile .salesperson-customer-profile-row-hero{align-items:center;}
  .salesperson-customer-hero-mobile .salesperson-customer-call-actions{margin-left:auto;justify-content:flex-end;}
  .salesperson-customer-hero-mobile .salesperson-customer-cta-row-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;}
  .salesperson-customer-hero-title{font-size:1.28rem;}
  .salesperson-customer-hero-subtitle{font-size:.9rem;}
  .salesperson-customer-tabs-mobile{position:sticky;top:10px;z-index:3;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.05);}
  .salesperson-customer-tabs-mobile .salesperson-customer-tab{flex-direction:column;gap:4px;padding:.72rem .4rem;}
  .salesperson-customer-tabs-mobile .salesperson-customer-tab i{font-size:1rem;}
  .salesperson-customer-tabs-mobile .salesperson-customer-tab span{font-size:.78rem;}
  .salesperson-customer-summary-grid .col-6{padding-top:0;}
  .salesperson-mini-stat{padding:.95rem .9rem !important;}
  .salesperson-mini-stat .h4{font-size:1.15rem;}
  .salesperson-activity-card{border-radius:20px;padding:16px !important;}
}


/* v98.13.0.56 order filter + mobile bottom bar polish */
.order-filter-sheet .modal-dialog{padding:12px;}
.order-filter-sheet .modal-content{border:1px solid #dbe5df;background:#f8fffb;box-shadow:0 22px 48px rgba(15,23,42,.16);}
.order-filter-sheet .modal-header{padding:16px 16px 12px;border-bottom:1px solid #e6efea;background:linear-gradient(180deg,#f8fffb 0%,#ffffff 100%);}
.order-filter-sheet .modal-header .modal-title{font-weight:800;color:#0f172a;}
.order-filter-sheet .modal-body{padding:14px 16px 10px;background:#f8fffb;}
.order-filter-sheet .modal-footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px));border-top:1px solid #e6efea;background:#fff;}
.order-filter-section{padding:12px 12px 10px;border:1px solid #dfeae3;border-radius:16px;background:#fff;box-shadow:0 6px 14px rgba(15,23,42,.04);}
.order-filter-section .form-label{font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#64748b;margin-bottom:.45rem;}
.order-filter-section .form-select{border-radius:12px;border-color:#dbe5df;min-height:42px;box-shadow:none;background-color:#fff;}
.order-filter-section .form-select:focus{border-color:color-mix(in srgb, var(--brand) 36%, #86b7fe);box-shadow:0 0 0 .2rem color-mix(in srgb, var(--brand) 12%, transparent);}
.order-filter-footer .btn{min-height:42px;border-radius:12px;font-weight:700;}

@media (min-width: 992px){
  .order-filter-sheet .modal-dialog{margin:14px 14px 14px auto;max-width:430px;min-height:calc(100vh - 28px);padding:0;}
  .order-filter-sheet .modal-content{height:100%;border-radius:24px;}
}

@media (max-width: 767.98px){
  .order-filter-sheet .modal-dialog{padding:10px 10px 0;}
  .order-filter-sheet .modal-content{border-radius:22px 22px 0 0;}
}

@media (max-width: 991.98px){
  .order-create-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;justify-content:stretch;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom, 0px));}
  .order-create-bottom .order-bottom-btn{width:100%;max-width:none !important;min-width:0;justify-content:center;}
  .order-create-bottom #orderBottomBackBtn,
  .order-create-bottom #orderReviewBtn{flex:1 1 auto;max-width:none !important;}
}

@media (max-width: 575.98px){
  .order-shell{padding-bottom:164px;}
  .order-summary-bottom{padding:10px 10px calc(10px + env(safe-area-inset-bottom, 0px));gap:8px;}
  .order-summary-bottom-row{width:100%;margin-left:0;}
  .order-summary-bottom-row-meta{grid-template-columns:44px minmax(0,1fr) minmax(0,1fr);}
  .order-summary-bottom-row-primary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:none;}
  .order-summary-bottom-row-primary-single{grid-template-columns:minmax(0,1fr);max-width:none;}
  .order-summary-bottom .order-bottom-btn{width:100%;min-width:0;max-width:none;min-height:42px;font-size:.78rem;padding:.48rem .5rem;gap:6px;justify-content:center;}
  .order-summary-bottom .order-bottom-btn .order-bottom-btn-label-full{display:none;}
  .order-summary-bottom .order-bottom-btn .order-bottom-btn-label-short{display:inline;}
  .order-summary-bottom .order-bottom-btn-back .order-bottom-btn-label-short{display:none;}
  .order-summary-bottom .order-bottom-btn-back{padding-left:.5rem;padding-right:.5rem;}
  .order-summary-bottom .order-bottom-btn-clear,
  .order-summary-bottom .order-bottom-btn-add{font-size:.74rem;}
  .order-summary-bottom #orderSaveDraftBtn,
  .order-summary-bottom #orderSaveConfirmBtn{font-size:.8rem;}
}

@media (max-width: 420px){
  .order-shell{padding-bottom:172px;}
  .order-summary-bottom-row-meta{grid-template-columns:40px minmax(0,1fr) minmax(0,1fr);}
  .order-summary-bottom .order-bottom-btn{min-height:40px;padding:.42rem .42rem;font-size:.74rem;}
  .order-summary-bottom #orderSaveDraftBtn,
  .order-summary-bottom #orderSaveConfirmBtn{font-size:.76rem;}
}


/* v98.13.0.57 salesperson customer icon + detail ui polish */
.app-inline-icon{display:inline-flex;align-items:center;justify-content:center;width:1.1rem;height:1.1rem;line-height:1;flex:0 0 auto;vertical-align:middle;}
.app-inline-icon svg{width:100%;height:100%;display:block;}
.app-inline-icon-sm{width:1rem;height:1rem;}
.app-inline-icon-lg{width:1.45rem;height:1.45rem;}
.salesperson-icon-btn .app-inline-icon{width:1.15rem;height:1.15rem;}
.salesperson-customer-cta .app-inline-icon{width:1rem;height:1rem;}
.salesperson-customer-tab .app-inline-icon{width:1rem;height:1rem;opacity:.9;}
.salesperson-detail-back-btn{display:inline-flex;align-items:center;gap:8px;border-radius:14px;font-weight:700;}
.salesperson-customer-detail-shell{border-radius:24px;overflow:hidden;}
.salesperson-customer-detail-shell::after{content:'';position:absolute;right:-36px;top:-36px;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,rgba(99,102,241,.14) 0%,rgba(99,102,241,0) 70%);pointer-events:none;}
.salesperson-detail-header{align-items:flex-end;}
.salesperson-detail-header .page-title{margin-bottom:2px;}
.salesperson-detail-header .page-subtitle{max-width:540px;}
.salesperson-customer-tabs-mobile .salesperson-customer-tab{background:#f8fafc;border-color:#e2e8f0;color:#475569;box-shadow:none;}
.salesperson-customer-tabs-mobile .salesperson-customer-tab.active{background:linear-gradient(180deg,#eef2ff 0%,#f5f3ff 100%);border-color:#c7d2fe;color:#4f46e5;box-shadow:0 10px 22px rgba(79,70,229,.12);}
.salesperson-customer-tabs-mobile .salesperson-customer-tab.active .app-inline-icon{color:#4f46e5;}
.salesperson-mini-stat{position:relative;overflow:hidden;}
.salesperson-mini-stat::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:4px;background:linear-gradient(180deg,#a5b4fc,#22c55e);opacity:.9;}
.salesperson-new-activity-btn{display:inline-flex;align-items:center;gap:8px;border-radius:14px;font-weight:800;padding:.72rem 1rem;}
@media (max-width:767.98px){
  .salesperson-detail-header{margin-bottom:10px;}
  .salesperson-detail-header .page-subtitle{font-size:.84rem;line-height:1.4;}
  .salesperson-detail-back-btn{min-height:40px;padding:.55rem .8rem;}
  .salesperson-customer-detail-shell{padding:16px 14px 16px 18px;}
  .salesperson-customer-detail-shell::after{right:-28px;top:-28px;width:94px;height:94px;}
  .salesperson-customer-detail-shell .salesperson-customer-hero-top{align-items:flex-start;}
  .salesperson-customer-detail-shell .salesperson-customer-hero-title{font-size:1.34rem;}
  .salesperson-customer-detail-shell .salesperson-customer-profile-row{gap:10px;align-items:center;}
  .salesperson-customer-detail-shell .salesperson-customer-profile-text{padding-right:4px;}
  .salesperson-customer-detail-shell .salesperson-customer-cta-row{margin-top:14px;}
  .salesperson-customer-detail-shell .salesperson-customer-call-actions{gap:10px;}
  .salesperson-customer-tabs-mobile{padding:8px !important;border-radius:20px;}
  .salesperson-customer-tabs-mobile .salesperson-customer-tab{min-height:62px;padding:.82rem .45rem;border-radius:15px;}
  .salesperson-customer-tabs-mobile .salesperson-customer-tab span{font-size:.8rem;font-weight:800;}
  .salesperson-customer-summary-grid{margin-top:2px;}
  .salesperson-mini-stat{min-height:92px;display:flex;flex-direction:column;justify-content:center;padding:1rem .9rem 1rem 1.05rem !important;}
  .salesperson-mini-stat .text-muted.small{font-size:.74rem !important;font-weight:700;}
  .salesperson-mini-stat .h6,.salesperson-mini-stat .h4{position:relative;z-index:1;}
}


/* v98.13.0.58 salesperson customer detail content cards */
.salesperson-content-stack{display:grid;gap:14px;}
.salesperson-detail-card{border-radius:22px;border:1px solid #e8edf5;box-shadow:0 14px 32px rgba(15,23,42,.06);background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);}
.salesperson-detail-card-top{display:flex;align-items:flex-start;gap:12px;}
.salesperson-detail-icon-chip{width:42px;height:42px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid #dbeafe;background:#eff6ff;color:#2563eb;box-shadow:inset 0 1px 0 rgba(255,255,255,.65);}
.salesperson-detail-icon-chip-indigo{background:#eef2ff;border-color:#c7d2fe;color:#4f46e5;}
.salesperson-detail-icon-chip-slate{background:#f8fafc;border-color:#d7dee8;color:#475569;}
.salesperson-detail-icon-chip-emerald{background:#ecfdf5;border-color:#bbf7d0;color:#059669;}
.salesperson-detail-title-wrap{min-width:0;flex:1 1 auto;}
.salesperson-detail-card-title{font-size:1rem;font-weight:900;color:#0f172a;line-height:1.25;}
.salesperson-detail-card-subtitle{margin-top:2px;font-size:.8rem;font-weight:700;color:#64748b;}
.salesperson-status-pill{display:inline-flex;align-items:center;justify-content:center;padding:.42rem .7rem;border-radius:999px;font-size:.72rem;font-weight:800;border:1px solid #e2e8f0;background:#fff;color:#475569;white-space:nowrap;}
.salesperson-status-pill-light{background:#f8fafc;color:#475569;border-color:#e2e8f0;}
.salesperson-status-pill-visited{background:#ecfdf5;color:#047857;border-color:#a7f3d0;}
.salesperson-status-pill-missed{background:#fff1f2;color:#be123c;border-color:#fecdd3;}
.salesperson-status-pill-rescheduled{background:#eff6ff;color:#2563eb;border-color:#bfdbfe;}
.salesperson-detail-meta-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.salesperson-detail-meta-chip{display:inline-flex;align-items:center;gap:6px;padding:.4rem .7rem;border-radius:999px;border:1px solid #e5e7eb;background:#f8fafc;color:#475569;font-size:.73rem;font-weight:800;}
.salesperson-detail-meta-chip-primary{background:#eff6ff;border-color:#bfdbfe;color:#2563eb;}
.salesperson-detail-meta-chip-warning{background:#fffbeb;border-color:#fde68a;color:#b45309;}
.salesperson-detail-meta-chip-danger{background:#fff1f2;border-color:#fecdd3;color:#be123c;}
.salesperson-detail-note-card{margin-top:14px;padding:14px 15px;border-radius:16px;background:linear-gradient(180deg,#fff7ed 0%,#fffbeb 100%);border:1px solid #fed7aa;color:#7c2d12;font-size:.9rem;line-height:1.55;}
.salesperson-detail-note-card-plain{background:#f8fafc;border-color:#e2e8f0;color:#334155;}
.salesperson-detail-footnote{margin-top:10px;font-size:.8rem;color:#64748b;}
.salesperson-detail-footer-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:14px;}
.salesperson-detail-location{display:inline-flex;align-items:flex-start;gap:7px;color:#0f766e;font-size:.8rem;font-weight:700;line-height:1.4;min-width:0;}
.salesperson-detail-location .app-inline-icon{margin-top:1px;color:#0f766e;}
.salesperson-detail-link-btn{display:inline-flex;align-items:center;justify-content:center;padding:.58rem .85rem;border-radius:12px;border:1px solid #cbd5e1;background:#fff;color:#0f172a;text-decoration:none;font-size:.8rem;font-weight:800;}
.salesperson-detail-link-btn:hover{background:#f8fafc;color:#0f172a;}
.salesperson-detail-link-btn-primary{background:#eef2ff;border-color:#c7d2fe;color:#4f46e5;}
.salesperson-finance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px;}
.salesperson-finance-box{padding:12px 12px 11px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0;}
.salesperson-finance-box-balance{background:linear-gradient(180deg,#eef2ff 0%,#f8fafc 100%);border-color:#c7d2fe;}
.salesperson-finance-label{font-size:.72rem;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.02em;}
.salesperson-finance-value{margin-top:4px;font-size:.95rem;font-weight:900;color:#0f172a;line-height:1.25;word-break:break-word;}
.salesperson-order-bottom-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px;}
.salesperson-order-total-block{display:flex;flex-direction:column;gap:4px;}
.salesperson-order-total{font-size:1.08rem;font-weight:900;color:#111827;}
.salesperson-order-status-pill{background:linear-gradient(180deg,#f5f3ff 0%,#eef2ff 100%);border-color:#c7d2fe;color:#4f46e5;}
@media (max-width:767.98px){
  .salesperson-content-stack{gap:12px;}
  .salesperson-detail-card{border-radius:20px;padding:15px !important;}
  .salesperson-detail-card-top{gap:10px;align-items:center;}
  .salesperson-detail-icon-chip{width:38px;height:38px;border-radius:13px;}
  .salesperson-detail-card-title{font-size:.95rem;}
  .salesperson-detail-card-subtitle{font-size:.76rem;}
  .salesperson-status-pill{padding:.38rem .6rem;font-size:.68rem;}
  .salesperson-detail-meta-row{gap:6px;margin-top:12px;}
  .salesperson-detail-meta-chip{padding:.36rem .6rem;font-size:.69rem;}
  .salesperson-detail-note-card{margin-top:12px;padding:12px 13px;border-radius:14px;font-size:.84rem;}
  .salesperson-detail-footer-row{margin-top:12px;align-items:stretch;}
  .salesperson-detail-link-btn{width:100%;min-height:42px;}
  .salesperson-finance-grid{grid-template-columns:1fr;gap:8px;margin-top:12px;}
  .salesperson-finance-box{padding:11px 12px;border-radius:14px;}
  .salesperson-order-bottom-row{margin-top:12px;align-items:stretch;}
  .salesperson-order-total{font-size:1rem;}
}

/* v98.13.0.60 summary + create footer refinement */
@media (min-width: 992px){
  .order-bottom-bar.order-summary-bottom{
    left:auto;
    right:28px;
    width:auto;
    max-width:none;
    border:none;
    background:transparent;
    backdrop-filter:none;
    box-shadow:none;
    padding:0 0 14px;
    align-items:flex-end;
    gap:8px;
  }
  body.desktop-sidebar-collapsed .order-bottom-bar.order-summary-bottom{left:auto;}
  .order-summary-bottom .order-summary-bottom-row{
    width:auto;
    margin-left:0;
    border:1px solid #dfe7e2;
    background:rgba(255,255,255,.98);
    box-shadow:0 12px 28px rgba(15,23,42,.08);
    border-radius:16px;
    padding:8px;
  }
  .order-summary-bottom .order-summary-bottom-row-meta{
    grid-template-columns:52px 130px 144px;
  }
  .order-summary-bottom .order-summary-bottom-row-primary{
    grid-template-columns:170px 170px;
    max-width:none;
  }
  .order-summary-bottom .order-summary-bottom-row-primary-single{
    grid-template-columns:210px;
    max-width:none;
  }
  .order-summary-bottom .order-bottom-btn{
    min-height:40px;
    font-size:.84rem;
    padding:.46rem .78rem;
    border-radius:12px;
  }
}

@media (max-width: 767.98px){
  .order-create-bottom{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:10px;
    padding:10px 10px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    align-items:stretch;
  }
  .order-create-bottom .order-bottom-btn{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:46px;
    border-radius:14px;
    justify-content:center;
    padding:.55rem .72rem;
    font-size:.88rem;
    gap:8px;
  }
  .order-create-bottom #orderBottomBackBtn,
  .order-create-bottom #orderReviewBtn{
    max-width:none !important;
    flex:none !important;
  }
  .order-create-bottom .order-bottom-btn-label-full{display:inline;}
  .order-create-bottom .order-bottom-btn-label-short{display:none;}

  .order-summary-bottom{
    padding:10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    gap:8px;
  }
  .order-summary-bottom .order-summary-bottom-row{
    width:100%;
    margin-left:0;
    background:#fff;
    border:1px solid #e5ece8;
    border-radius:15px;
    padding:8px;
    box-shadow:0 8px 18px rgba(15,23,42,.06);
  }
  .order-summary-bottom .order-summary-bottom-row-meta{
    grid-template-columns:44px minmax(0,1fr) minmax(0,1fr);
    gap:8px;
  }
  .order-summary-bottom .order-summary-bottom-row-primary{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:8px;
    max-width:none;
  }
  .order-summary-bottom .order-summary-bottom-row-primary-single{
    grid-template-columns:minmax(0,1fr);
    max-width:none;
  }
  .order-summary-bottom .order-bottom-btn{
    width:100%;
    min-width:0;
    max-width:none;
    min-height:44px;
    justify-content:center;
    border-radius:12px;
    padding:.52rem .55rem;
    gap:6px;
    font-size:.79rem;
  }
  .order-summary-bottom .order-bottom-btn .order-bottom-btn-label-full{display:none;}
  .order-summary-bottom .order-bottom-btn .order-bottom-btn-label-short{display:inline;}
  .order-summary-bottom .order-bottom-btn-back .order-bottom-btn-label-short{display:none;}
  .order-summary-bottom #orderSaveDraftBtn,
  .order-summary-bottom #orderSaveConfirmBtn{
    font-size:.82rem;
  }
}

@media (max-width: 420px){
  .order-create-bottom{
    gap:8px;
    padding:9px 8px calc(9px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .order-create-bottom .order-bottom-btn{
    min-height:44px;
    font-size:.84rem;
    padding:.5rem .58rem;
  }
  .order-create-bottom #orderReviewBtn .badge{margin-left:6px;}

  .order-summary-bottom{
    padding:9px 8px calc(9px + env(safe-area-inset-bottom, 0px));
    gap:7px;
  }
  .order-summary-bottom .order-summary-bottom-row{
    padding:7px;
    border-radius:14px;
  }
  .order-summary-bottom .order-summary-bottom-row-meta{
    grid-template-columns:42px minmax(0,.95fr) minmax(0,1.05fr);
    gap:7px;
  }
  .order-summary-bottom .order-bottom-btn{
    min-height:42px;
    font-size:.76rem;
    padding:.46rem .44rem;
  }
  .order-summary-bottom #orderSaveDraftBtn,
  .order-summary-bottom #orderSaveConfirmBtn{
    font-size:.78rem;
  }
}

/* v98.13.0.61 mobile order footer repair */
@media (max-width: 767.98px){
  .order-shell{padding-bottom:150px !important;}
  .order-summary-shell{padding-bottom:212px !important;}
  .order-bottom-bar{
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:auto !important;
    max-width:none !important;
    gap:8px !important;
    padding:10px 10px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    border:0 !important;
    border-top:1px solid #dfe7e2 !important;
    border-radius:18px 18px 0 0 !important;
    background:rgba(255,255,255,.98) !important;
    backdrop-filter:blur(10px);
    box-shadow:0 -10px 26px rgba(15,23,42,.12) !important;
    justify-content:stretch !important;
  }
  .order-create-bottom{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    align-items:stretch !important;
    gap:10px !important;
  }
  .order-create-bottom .order-bottom-btn{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:48px !important;
    border-radius:14px !important;
    padding:.62rem .8rem !important;
    font-size:.9rem !important;
    font-weight:800 !important;
    justify-content:center !important;
    gap:8px !important;
  }
  .order-create-bottom .order-bottom-btn-label-full{display:inline !important;}
  .order-create-bottom .order-bottom-btn-label-short{display:none !important;}
  .order-summary-bottom{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:8px !important;
    padding:0 !important;
  }
  .order-summary-bottom .order-summary-bottom-row{
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  .order-summary-bottom .order-summary-bottom-row-meta{
    grid-template-columns:52px minmax(0,1fr) minmax(0,1fr) !important;
    gap:8px !important;
  }
  .order-summary-bottom .order-summary-bottom-row-primary{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:8px !important;
    max-width:none !important;
  }
  .order-summary-bottom .order-summary-bottom-row-primary-single{
    grid-template-columns:minmax(0,1fr) !important;
    max-width:none !important;
  }
  .order-summary-bottom .order-bottom-btn{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:46px !important;
    border-radius:14px !important;
    padding:.56rem .6rem !important;
    font-size:.82rem !important;
    font-weight:800 !important;
    justify-content:center !important;
    gap:6px !important;
  }
  .order-summary-bottom .order-bottom-btn-back{
    padding-left:.45rem !important;
    padding-right:.45rem !important;
  }
  .order-summary-bottom .order-bottom-btn-back .order-bottom-btn-label-full,
  .order-summary-bottom .order-bottom-btn-back .order-bottom-btn-label-short{display:none !important;}
  .order-summary-bottom #orderSaveDraftBtn,
  .order-summary-bottom #orderSaveConfirmBtn{
    min-height:48px !important;
    font-size:.86rem !important;
  }
}

@media (max-width: 420px){
  .order-shell{padding-bottom:146px !important;}
  .order-summary-shell{padding-bottom:208px !important;}
  .order-bottom-bar{padding:8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important;gap:7px !important;}
  .order-create-bottom{gap:8px !important;}
  .order-create-bottom .order-bottom-btn{min-height:46px !important;font-size:.86rem !important;padding:.56rem .68rem !important;}
  .order-summary-bottom .order-summary-bottom-row-meta{grid-template-columns:48px minmax(0,1fr) minmax(0,1fr) !important;gap:7px !important;}
  .order-summary-bottom .order-bottom-btn{min-height:44px !important;font-size:.78rem !important;padding:.5rem .5rem !important;}
  .order-summary-bottom #orderSaveDraftBtn,
  .order-summary-bottom #orderSaveConfirmBtn{font-size:.82rem !important;}
}

.order-other-charge-modal .modal-dialog{max-width:520px;}
.order-other-charge-modal .modal-content{border-radius:22px;overflow:hidden;}
.order-other-charge-modal .modal-header{padding:1rem 1rem .9rem;}
.order-other-charge-modal .modal-body{padding:1rem;}
.order-other-charge-modal .modal-footer{padding:.85rem 1rem 1rem;gap:.5rem;}
@media (max-width: 767.98px){
  .order-other-charge-modal{padding:.5rem .5rem max(.75rem, env(safe-area-inset-bottom, 0px));background:rgba(15,23,42,.38);}
  .order-other-charge-modal .modal-dialog{min-height:calc(100vh - .5rem);margin:0 auto;align-items:flex-end;max-width:none;}
  .order-other-charge-modal .modal-content{border-radius:22px 22px 16px 16px;box-shadow:0 22px 44px rgba(15,23,42,.22);}
  .order-other-charge-modal .modal-header{padding:.9rem .95rem .75rem;}
  .order-other-charge-modal .modal-title{font-size:1rem;}
  .order-other-charge-modal .modal-body{padding:.85rem .95rem .9rem;}
  .order-other-charge-modal .modal-footer{padding:.75rem .95rem calc(.95rem + env(safe-area-inset-bottom, 0px));display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.55rem;}
  .order-other-charge-modal .modal-footer .btn{min-height:42px;font-weight:700;}
  .order-other-charge-modal .modal-footer #orderOtherChargeClearBtn{grid-column:1 / -1;order:3;}
  .order-other-charge-modal .form-control{min-height:46px;font-size:16px;}
}

/* v98.13.0.63 create catalog toolbar + scheme badge polish */
.order-create-header{margin-bottom:6px!important;}
.order-page-subtitle{display:none!important;}
.order-toolbar.order-toolbar-catalog{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;}
.order-toolbar.order-toolbar-catalog .order-search{flex:1 1 auto;max-width:420px;min-width:0;}
.order-toolbar.order-toolbar-catalog .order-search .form-control{min-height:40px;padding-left:38px;padding-right:14px;}
.order-catalog-filter-btn{flex:0 0 auto;min-width:112px;justify-content:center;padding:.68rem .95rem;border-radius:14px;font-weight:700;}
.order-catalog-filter-sheet .modal-dialog{max-width:420px;}
.order-catalog-filter-sheet .modal-content{background:#f8fffb;}
.order-card-scheme-badge,
.order-cart-scheme-pill{align-self:flex-start;display:inline-flex;width:max-content;max-width:100%;padding:3px 10px;border-radius:999px;background:#fff5c2;border:1px solid #f2cd4d;color:#8a5a00;font-size:.72rem;font-weight:800;line-height:1.15;box-shadow:none;}
.order-card-scheme-badge{margin:-8px 0 10px;}
.order-card-scheme-helper{display:none !important;}
.order-card-body{gap:0;}
.order-card-title{margin-bottom:10px;}
.order-card-prices{gap:2px;}
.order-card-pricing-note{margin-top:2px;}

@media (max-width: 767.98px){
  .order-create-header{margin-bottom:4px!important;}
  .order-toolbar.order-toolbar-catalog{gap:8px;}
  .order-toolbar.order-toolbar-catalog .order-search{max-width:none;}
  .order-toolbar.order-toolbar-catalog .order-search .form-control{min-height:38px;padding-left:36px;font-size:.94rem;}
  .order-catalog-filter-btn{min-width:46px;padding:.62rem .8rem;border-radius:13px;}
  .order-catalog-filter-btn span{display:none;}
  .order-card-scheme-badge{margin:-6px 0 8px;font-size:.68rem;padding:3px 9px;}
}


.attendance-primary-btn{min-width:220px;font-weight:700;}
.attendance-location-text{margin-top:6px;font-size:.95rem;color:#1f2937;line-height:1.5;}
.attendance-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.attendance-photo-card{border:1px solid #e5e7eb;border-radius:16px;padding:14px;background:#f8fafc;}
.attendance-map-frame-wrap{border:1px solid #dbe2ea;border-radius:18px;overflow:hidden;background:#f8fafc;min-height:320px;}
.attendance-map-frame{width:100%;height:360px;border:0;background:#fff;}
.attendance-location-block{min-width:240px;}
@media (max-width: 991.98px){
  .attendance-primary-btn{width:100%;min-width:0;}
}
@media (max-width: 767.98px){
  .attendance-photo-grid{grid-template-columns:1fr;}
  .attendance-map-frame{height:300px;}
}

/* v98.13.0.102 sidebar regroup + salesperson mobile nav */
.app-navbar-page-title{display:none;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;color:#0f172a;}
.salesperson-bottom-nav,
.customer-bottom-nav{display:none;}

@media (max-width: 991.98px){
  body.role-salesperson,
  body.role-customer{--app-navbar-height:52px;padding-bottom:calc(74px + env(safe-area-inset-bottom, 0px));}
  body.role-salesperson .app-navbar,
  body.role-customer .app-navbar{box-shadow:0 1px 8px rgba(15,23,42,.06);}
  body.role-salesperson .app-navbar-inner,
  body.role-customer .app-navbar-inner{min-height:52px;padding-top:4px;padding-bottom:4px;}
  body.role-salesperson .app-navbar-brand,
  body.role-salesperson .app-navbar-right,
  body.role-customer .app-navbar-brand,
  body.role-customer .app-navbar-right{display:none !important;}
  body.role-salesperson .app-navbar-left,
  body.role-customer .app-navbar-left{width:100%;gap:10px;}
  body.role-salesperson .app-navbar-page-title,
  body.role-customer .app-navbar-page-title{display:block;flex:1 1 auto;font-size:1rem;}
  body.role-salesperson .app-navbar-toggle,
  body.role-customer .app-navbar-toggle{width:38px;height:38px;flex-basis:38px;border-radius:11px;}
  body.role-salesperson .app-content,
  body.role-customer .app-content{padding-bottom:calc(96px + env(safe-area-inset-bottom, 0px));}
  body.role-salesperson .fab-add,
  body.role-customer .fab-add{bottom:calc(env(safe-area-inset-bottom, 0px) + 88px);}
  body.role-salesperson.order-page-active .fab-add{bottom:calc(env(safe-area-inset-bottom, 0px) + 16px);}

  .salesperson-bottom-nav,
  .customer-bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:2030;background:rgba(255,255,255,.99);backdrop-filter:blur(10px);border-top:1px solid rgba(15,23,42,.08);box-shadow:0 -8px 22px rgba(15,23,42,.10);padding:0 0 env(safe-area-inset-bottom, 0px);gap:0;border-radius:0;}
  .salesperson-bottom-nav__item,
  .customer-bottom-nav__item{appearance:none;border:0;background:transparent;color:#64748b;text-decoration:none;display:flex;flex:1 1 0;min-width:0;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:10px 4px 9px;border-radius:0;font-size:.7rem;font-weight:700;line-height:1.1;min-height:62px;position:relative;}
  .salesperson-bottom-nav__item + .salesperson-bottom-nav__item,
  .customer-bottom-nav__item + .customer-bottom-nav__item{border-left:1px solid rgba(15,23,42,.06);}
  .salesperson-bottom-nav__item i,
  .customer-bottom-nav__item i{font-size:1.08rem;line-height:1;}
  .salesperson-bottom-nav__item.active,
  .customer-bottom-nav__item.active{background:var(--brand-soft);color:var(--brand-dark);}
  .salesperson-bottom-nav__item:active,
  .customer-bottom-nav__item:active{transform:translateY(1px);}
  body.mobile-sidebar-open .salesperson-bottom-nav,
  body.mobile-sidebar-open .customer-bottom-nav{opacity:0;pointer-events:none;transform:translateY(100%);}
  body.order-page-active .salesperson-bottom-nav{display:none;}

  .dashboard-page.dashboard-customer-portal{padding-bottom:92px;}
  .dashboard-page.dashboard-customer-portal .dash-hero{padding:16px!important;border-radius:18px!important;}
  .dashboard-page.dashboard-customer-portal .dash-hero-title{font-size:1.35rem!important;}
  .dashboard-page.dashboard-customer-portal .dash-hero-subtitle{font-size:.9rem!important;}
  .dashboard-page.dashboard-customer-portal .dash-pill-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .dashboard-page.dashboard-customer-portal .dash-summary-grid,
  .dashboard-page.dashboard-customer-portal .dashboard-chart-grid,
  .dashboard-page.dashboard-customer-portal .dash-dual-grid{display:grid!important;grid-template-columns:1fr!important;gap:12px;}
  .dashboard-page.dashboard-customer-portal .dashboard-section-card,
  .dashboard-page.dashboard-customer-portal .dash-summary-card{border-radius:18px!important;}
}

@media (min-width: 992px){
  .salesperson-bottom-nav,
  .customer-bottom-nav,
  .app-navbar-page-title{display:none !important;}
}

/* v98.13.0.109 salesperson customer compact cards + mobile order popups */
.salesperson-customer-list-card,
.salesperson-customer-detail-shell{
  --order-btn-bg: var(--order-btn-bg, #dcfce7);
  --order-btn-bg-hover: var(--order-btn-bg-hover, #bbf7d0);
  --order-btn-border: var(--order-btn-border, #86efac);
  --order-btn-text: var(--order-btn-text, #166534);
}
.salesperson-customer-cta-order,
.beat-sticky-actions .btn-success,
.beat-plan-actions .btn-success{
  background:linear-gradient(180deg,var(--order-btn-bg) 0%, color-mix(in srgb, var(--order-btn-bg) 86%, #ffffff 14%) 100%);
  border:1px solid var(--order-btn-border);
  color:var(--order-btn-text);
  box-shadow:0 8px 18px color-mix(in srgb, var(--order-btn-border) 28%, rgba(15,23,42,.08));
}
.salesperson-customer-cta-order:hover,
.salesperson-customer-cta-order:focus,
.beat-sticky-actions .btn-success:hover,
.beat-sticky-actions .btn-success:focus,
.beat-plan-actions .btn-success:hover,
.beat-plan-actions .btn-success:focus{
  background:linear-gradient(180deg,var(--order-btn-bg-hover) 0%, var(--order-btn-bg) 100%);
  border-color:color-mix(in srgb, var(--order-btn-border) 88%, #111827 12%);
  color:var(--order-btn-text);
}
.salesperson-customer-cta-order .app-inline-icon{color:currentColor;}
.salesperson-customer-avatar,
.salesperson-customer-avatar-lg{display:none !important;}
.salesperson-customer-profile-row,
.salesperson-customer-profile-row-hero{align-items:center;gap:10px;margin-top:10px;}
.salesperson-customer-profile-text{gap:1px;}
.salesperson-customer-owner{font-size:.88rem;font-weight:700;color:#334155;}
.order-customer-type-line{font-size:.75rem;font-weight:700;color:#64748b;line-height:1.2;}
.salesperson-customer-parent{font-size:.72rem;}
.salesperson-customer-location{font-size:.8rem;margin-top:2px;}
.salesperson-customer-list-card .order-customer-name{font-size:1.05rem;font-weight:900;line-height:1.2;}
.salesperson-customer-detail-shell .salesperson-customer-hero-title{font-size:1.08rem;font-weight:900;line-height:1.2;}
.salesperson-customer-detail-shell .salesperson-customer-hero-subtitle{font-size:.8rem;font-weight:700;}
.salesperson-customer-list-card{padding-top:12px;padding-bottom:12px;}
.salesperson-customer-cta-row{gap:8px;}
.salesperson-customer-cta{min-height:40px;padding:.58rem .65rem;font-size:.84rem;border-radius:12px;}
.salesperson-customer-tabs-mobile{padding:6px !important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;border-radius:18px;}
.salesperson-customer-tabs-mobile .salesperson-customer-tab{min-height:46px;padding:.58rem .5rem;border-radius:12px;justify-content:center;gap:6px;flex-direction:row;white-space:nowrap;}
.salesperson-customer-tabs-mobile .salesperson-customer-tab span{font-size:.74rem;font-weight:800;}
.salesperson-customer-tabs-mobile .salesperson-customer-tab .app-inline-icon{width:.95rem;height:.95rem;}
.salesperson-order-card{cursor:pointer;transition:transform .16s ease, box-shadow .16s ease;}
.salesperson-order-card:hover,.salesperson-order-card:focus{transform:translateY(-1px);box-shadow:0 14px 24px rgba(15,23,42,.08);}
.salesperson-order-card .salesperson-detail-link-btn-primary{display:none !important;}
.salesperson-order-card .salesperson-order-bottom-row{align-items:center;}
.salesperson-activity-card{cursor:pointer;transition:transform .16s ease, box-shadow .16s ease;}
.salesperson-activity-card:hover,.salesperson-activity-card:focus{transform:translateY(-1px);box-shadow:0 14px 24px rgba(15,23,42,.08);}
.salesperson-popup-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.salesperson-popup-summary-box{padding:11px 12px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0;}
.salesperson-popup-summary-box .label{display:block;font-size:.72rem;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.02em;}
.salesperson-popup-summary-box .value{display:block;margin-top:4px;font-size:.94rem;font-weight:800;color:#0f172a;line-height:1.28;word-break:break-word;}
.salesperson-popup-stack{display:grid;gap:12px;}
.salesperson-popup-items{display:grid;gap:10px;}
.salesperson-popup-line{display:flex;gap:10px;padding:11px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0;}
.salesperson-popup-thumb{width:48px;height:48px;flex:0 0 48px;border-radius:14px;background:#ecfdf3;border:1px solid #ccead7;color:#16a34a;display:flex;align-items:center;justify-content:center;}
.salesperson-popup-line-title{font-size:.92rem;font-weight:800;color:#0f172a;line-height:1.25;}
.salesperson-popup-line-sub{font-size:.75rem;color:#64748b;font-weight:700;line-height:1.3;}
.salesperson-popup-line-value{font-size:.88rem;font-weight:900;color:#0f172a;white-space:nowrap;}
@media (max-width:767.98px){
  .salesperson-customer-list-card{border-radius:20px;padding:12px 12px 12px 18px;}
  .salesperson-customer-list-ribbon{top:10px;bottom:10px;}
  .salesperson-customer-list-body{padding-left:8px;}
  .salesperson-customer-list-header{gap:8px;}
  .salesperson-customer-list-card .order-customer-name{font-size:.98rem;}
  .salesperson-customer-owner{font-size:.82rem;}
  .order-customer-type-line{font-size:.71rem;}
  .salesperson-customer-call-actions{gap:6px;}
  .salesperson-icon-btn{width:36px;height:36px;border-radius:12px;font-size:.92rem;}
  .salesperson-customer-cta{min-height:38px;font-size:.8rem;padding:.52rem .5rem;}
  .salesperson-customer-hero-mobile{padding:12px 12px 12px 18px;}
  .salesperson-customer-detail-shell .salesperson-customer-hero-title{font-size:1rem;}
  .salesperson-customer-detail-shell .salesperson-customer-hero-subtitle{font-size:.76rem;}
  .salesperson-customer-tabs-mobile .salesperson-customer-tab{min-height:42px;padding:.52rem .38rem;}
  .salesperson-popup-summary-grid{grid-template-columns:1fr 1fr;gap:8px;}
}

/* v98.13.0.109 salesperson order view mobile-first */
@media (max-width: 767.98px){
  .order-view-mobile-page-card{border-radius:18px;border:1px solid #e5ece8;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.05);padding:14px;}
  .order-view-mobile-order-card{display:flex;gap:12px;padding:12px;border-radius:18px;background:#fff;border:1px solid #e5ece8;box-shadow:0 8px 18px rgba(15,23,42,.04);}
  .order-view-mobile-order-thumb{width:54px;height:54px;flex:0 0 54px;border-radius:16px;background:#ecfdf3;border:1px solid #ccead7;color:#16a34a;display:flex;align-items:center;justify-content:center;}
  .order-view-mobile-order-title{font-size:.95rem;font-weight:800;color:#0f172a;line-height:1.25;}
  .order-view-mobile-order-meta{font-size:.74rem;color:#64748b;font-weight:700;line-height:1.35;}
  .order-view-mobile-order-price{font-size:.92rem;font-weight:900;color:#0f172a;line-height:1.2;}
  .order-view-mobile-order-subprice{font-size:.74rem;color:#64748b;font-weight:700;line-height:1.3;}
  .order-view-mobile-order-row{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;}
  .order-view-mobile-order-stack{display:grid;gap:12px;}
  .order-view-mobile-totals .order-summary-row{padding:.18rem 0;}
  .order-view-item-table-wrap{display:none !important;}
  .order-view-mobile-stack{display:grid !important;gap:14px;}
}
@media (min-width: 768px){
  .order-view-mobile-stack{display:none !important;}
  .order-view-item-table-wrap{display:block !important;}
}


/* v98.13.0.110 customer portal mobile nav + order view polish */
.dashboard-customer-portal .dash-hero{background:linear-gradient(135deg,#f1fdf4 0%,#ffffff 100%);border:1px solid #d9f2df;}
.dashboard-customer-portal .dash-pill{background:#fff;border:1px solid #dfe9e4;color:#0f172a;}
.dashboard-customer-portal .dash-summary-card{min-height:unset;}
.portal-order-view-shell{display:grid;gap:12px;}
.portal-order-view-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.portal-order-view-title{font-size:1.4rem;font-weight:800;color:#0f172a;line-height:1.2;}
.portal-order-view-actions{display:flex;gap:8px;flex-wrap:wrap;}
.portal-order-view-actions .btn,.portal-order-view-actions a,.portal-order-view-actions button{border-radius:999px;font-weight:700;}
.portal-order-overview-card{border-radius:22px;border:1px solid #dfe9e4;box-shadow:0 12px 26px rgba(15,23,42,.05);}
.portal-overview-top{align-items:flex-start;}
.portal-overview-customer{font-size:1.02rem;font-weight:800;}
.portal-overview-summary{font-size:.88rem;max-width:40rem;}
.portal-metric-chip{background:#fff;border:1px solid #e6efe9;border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:4px;min-height:88px;justify-content:center;}
.portal-metric-chip span{font-size:.74rem;color:#64748b;text-transform:uppercase;letter-spacing:.04em;font-weight:700;}
.portal-metric-chip strong{font-size:1.05rem;color:#0f172a;line-height:1.25;}
.portal-order-item-card{border:1px solid #e5ece8;box-shadow:0 10px 24px rgba(15,23,42,.05);}
.portal-item-head{align-items:flex-start;}
.portal-item-title{font-size:1.02rem;font-weight:800;}
.portal-item-toggle{font-weight:700;}
.portal-item-detail{border-radius:14px;}
.portal-order-summary-card{border-radius:20px;border:1px solid #e5ece8;box-shadow:0 10px 24px rgba(15,23,42,.05);}
@media (max-width: 767.98px){
  .portal-order-view-title{font-size:1.15rem;}
  .portal-order-view-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .portal-order-view-actions .btn,.portal-order-view-actions a,.portal-order-view-actions button{justify-content:center;padding:.68rem .85rem;font-size:.9rem;}
  .portal-order-overview-card,.portal-order-item-card,.portal-order-summary-card{padding:14px!important;border-radius:18px;}
  .portal-overview-top{flex-direction:column;gap:10px;}
  .portal-overview-metrics{grid-template-columns:1fr;gap:10px;}
  .portal-item-quick-row{grid-template-columns:repeat(2,minmax(0,1fr));}
}


.wa-popup-card{border:1px solid rgba(15,35,59,.1);border-radius:1rem;padding:1rem;background:#fff;box-shadow:0 10px 24px rgba(15,35,59,.06);}
.wa-popup-head{display:flex;justify-content:space-between;gap:.75rem;align-items:flex-start;flex-wrap:wrap;margin-bottom:.75rem;}
.wa-popup-meta{display:flex;flex-direction:column;gap:.2rem;}
.wa-popup-recipient{font-weight:700;color:#0f233b;}
.wa-popup-phone{font-size:.85rem;color:#6c757d;}
.wa-popup-badge{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;padding:.3rem .7rem;font-size:.78rem;font-weight:600;background:#fff3cd;color:#7a5d00;border:1px solid rgba(122,93,0,.15);}
.wa-popup-badge.is-sent{background:#d1e7dd;color:#0f5132;border-color:rgba(15,81,50,.16);}
.wa-popup-text{min-height:118px;resize:vertical;}
.wa-popup-actions{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap;margin-top:.75rem;}
.wa-popup-send-btn.is-sent{pointer-events:none;opacity:1;}
.wa-popup-send-btn.is-sent .wa-popup-send-label{display:none;}
.wa-popup-send-btn .wa-popup-sent-label{display:none;}
.wa-popup-send-btn.is-sent .wa-popup-sent-label{display:inline;}
.wa-popup-role-pill{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;padding:.22rem .65rem;font-size:.76rem;font-weight:600;background:#eef4ff;color:#17396a;border:1px solid rgba(23,57,106,.08);}

@media (max-width:991.98px){
  body.app-body{padding-top:var(--app-navbar-height)!important;}
  .app-shell,.app-main-col,.app-content{min-height:auto!important;height:auto!important;}
  .app-content{padding-top:10px!important;margin-top:0!important;align-content:flex-start;}
  .page-card{margin-top:0!important;}
}

.bulk-summary-card.is-ready{background:#f0fdf4;}
.bulk-summary-card.is-insert{background:#f0fdf4;}
.bulk-summary-card.is-update{background:#eff6ff;}
.bulk-summary-card.is-skip{background:#fffbeb;}
.bulk-summary-card.is-error{background:#fef2f2;}
.bulk-preview-table tbody tr.bulk-row-ready{background:#f8fffb;}
.bulk-preview-table tbody tr.bulk-row-skip{background:#fffdf5;}
.bulk-preview-table tbody tr.bulk-row-error{background:#fff7f7;}
.bulk-status-badge,.bulk-action-badge{display:inline-flex;align-items:center;justify-content:center;padding:.25rem .55rem;border-radius:999px;font-size:.75rem;font-weight:700;text-transform:capitalize;}
.bulk-status-ready,.bulk-action-insert{background:#dcfce7;color:#166534;}
.bulk-action-update{background:#dbeafe;color:#1d4ed8;}
.bulk-status-skip,.bulk-action-skip{background:#fef3c7;color:#92400e;}
.bulk-status-error,.bulk-action-error{background:#fee2e2;color:#b91c1c;}
.field-required .form-control,.field-required .form-select,.field-required textarea{background:linear-gradient(180deg,#fffdfa 0%,#ffffff 100%);border-color:#f1d9a8;}
.field-required .form-label{font-weight:700;}


/* Batch 1 UI fixes */
.sidebar-acc-toggle,
.sidebar-toggle-label,
.sidebar-acc-links,
.sidebar-acc-links .sidebar-link{
  justify-content:flex-start;
  text-align:left;
  align-items:center;
}
.sidebar-acc-links .sidebar-link{
  width:100%;
  padding-left:14px;
}
.sidebar-acc-links{
  align-items:stretch;
}
@media (max-width:991.98px){
  body.app-body{padding-top:var(--app-navbar-height)!important;}
  .app-shell{display:flex!important;min-height:calc(100dvh - var(--app-navbar-height))!important;}
  .app-sidebar-col{position:fixed!important;inset:var(--app-navbar-height) 0 0 0!important;width:100%!important;max-width:none!important;height:calc(100dvh - var(--app-navbar-height))!important;flex:none!important;}
  .app-main-col{flex:1 1 100%!important;max-width:100%!important;width:100%!important;min-height:calc(100dvh - var(--app-navbar-height))!important;margin-left:0!important;}
  .app-content{padding-top:12px!important;margin-top:0!important;}
  .page-card{margin-top:0!important;}
}

/* Batch 3A ordering */
.order-shell-card{margin-bottom:88px;}
.order-top-search,.order-top-actions{max-width:520px;}
.order-customer-grid,.order-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.order-customer-card{display:flex;flex-direction:column;gap:10px;border:1px solid rgba(25,135,84,.26);background:#f7fcf8;border-radius:18px;padding:14px;text-decoration:none;color:#0f172a;box-shadow:0 4px 10px rgba(15,23,42,.03);}
.order-customer-card:hover{border-color:var(--brand);box-shadow:0 8px 18px rgba(25,135,84,.08);color:#0f172a;}
.order-customer-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.order-customer-business{font-weight:800;font-size:1rem;line-height:1.25;}
.order-customer-person{font-size:.86rem;color:#64748b;line-height:1.35;}
.order-customer-arrow{color:var(--brand);font-size:1.15rem;}
.order-customer-meta-row{display:flex;align-items:flex-start;gap:8px;font-size:.9rem;color:#1f2937;}
.order-customer-meta-row i{color:var(--brand);margin-top:2px;}
.order-customer-chip-row{display:flex;gap:8px;flex-wrap:wrap;}
.order-soft-chip{display:inline-flex;align-items:center;gap:6px;background:var(--brand-soft);color:var(--brand-dark);border-radius:999px;padding:5px 10px;font-size:.78rem;font-weight:700;}
.order-customer-inline{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.order-customer-inline-title{font-size:1.08rem;font-weight:800;color:#0f172a;}
.order-customer-inline-sub{font-size:.9rem;color:#6b7280;}
.order-product-card{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;border:1px solid #e2e8f0;background:#fff;border-radius:20px;padding:12px;box-shadow:0 2px 10px rgba(15,23,42,.04);min-width:0;}
.order-product-image-wrap{width:92px;height:92px;border:1px solid #dbe4de;border-radius:18px;overflow:hidden;background:#f8faf8;display:flex;align-items:center;justify-content:center;}
.order-product-image-wrap img{width:100%;height:100%;object-fit:cover;display:block;}
.order-image-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#86a593;background:#f4fbf5;font-size:.72rem;font-weight:700;}
.order-image-placeholder i{font-size:1.5rem;color:var(--brand);}
.order-product-info{min-width:0;display:flex;flex-direction:column;gap:6px;position:relative;}
.order-availability-badge{align-self:flex-start;border-radius:999px;padding:4px 10px;font-size:.75rem;font-weight:800;line-height:1.2;max-width:100%;word-break:break-word;}
.order-availability-badge.in_stock{background:#e8f7ef;color:#0f7a3e;}
.order-availability-badge.lead_time{background:#fff6df;color:#9a6700;}
.order-availability-badge.out_of_stock{background:#fee2e2;color:#b42318;}
.order-product-title{font-size:1rem;font-weight:800;line-height:1.3;color:#111827;}
.order-product-variant{font-size:.9rem;color:#b45309;font-weight:700;line-height:1.25;}
.order-price-line{font-size:.78rem;font-weight:500;color:#111827;line-height:1.3;}
.order-rate-line{font-size:1.02rem;font-weight:800;color:#0f7a3e;line-height:1.3;}
.order-rate-line-summary{margin-top:4px;}
.order-price-sub{font-size:.82rem;color:#64748b;}
.order-unit-relation{font-size:.82rem;color:#475569;background:#f8fafc;border-radius:999px;padding:4px 10px;display:inline-flex;align-self:flex-start;}
.order-qty-row{display:grid;grid-template-columns:minmax(88px,104px) minmax(110px,1fr) auto;gap:8px;align-items:center;margin-top:4px;}
.order-qty-row-single{grid-template-columns:1fr;}
.order-unit-select{min-height:40px;border-radius:12px;font-weight:700;}
.order-stepper{display:grid;grid-template-columns:36px minmax(44px,1fr) 36px;align-items:center;border:1px solid #d1d5db;border-radius:12px;overflow:hidden;background:#fff;}
.order-stepper-wrap{display:flex;align-items:center;gap:10px;}
.order-stepper-btn{border:0;background:#f8fafc;height:40px;display:flex;align-items:center;justify-content:center;color:#334155;}
.order-stepper-input{border:0;text-align:center;font-weight:700;height:40px;min-width:0;}
.order-stepper-input:focus{outline:none;}
.order-stepper-unit{font-size:.78rem;font-weight:800;color:#475569;white-space:nowrap;}
.order-add-btn{min-height:42px;padding-inline:16px;font-weight:800;justify-self:start;}
.order-bottom-bar{position:fixed;left:14px;right:14px;bottom:14px;z-index:1080;display:flex;align-items:center;gap:10px;justify-content:flex-end;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));box-shadow:0 16px 30px rgba(15,23,42,.12);}
.order-bottom-btn{min-height:44px;border-radius:14px;font-weight:800;padding-inline:18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;}
.order-bottom-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.2);font-size:.78rem;font-weight:800;}
.order-summary-list{display:flex;flex-direction:column;gap:12px;}
.order-summary-card{display:grid;grid-template-columns:80px minmax(0,1fr) auto;gap:12px;align-items:flex-start;border:1px solid #e5e7eb;border-radius:18px;background:#fff;padding:12px;}
.order-summary-image{width:80px;height:80px;border-radius:16px;overflow:hidden;border:1px solid #dbe4de;background:#f8faf8;display:flex;align-items:center;justify-content:center;}
.order-summary-image img{width:100%;height:100%;object-fit:cover;display:block;}
.order-summary-main{min-width:0;}
.order-summary-title{font-weight:800;font-size:.98rem;color:#111827;line-height:1.3;}
.order-summary-variant{font-weight:700;color:#b45309;font-size:.88rem;margin-top:2px;}
.order-summary-meta{font-size:.84rem;color:#475569;line-height:1.45;margin-top:2px;}
.order-summary-amount{font-size:1rem;font-weight:900;color:var(--brand-dark);white-space:nowrap;}
.order-totals-card{border:1px solid #e5e7eb;background:#f8faf9;border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:10px;}
.order-total-row{display:flex;justify-content:space-between;gap:10px;font-size:.95rem;}
.order-total-row-net{padding-top:10px;border-top:1px dashed #d1d5db;font-size:1rem;}
.order-view-head-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.order-view-head-card{border:1px solid #e5e7eb;background:#f8faf9;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:6px;}
.order-view-head-card span{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:#6b7280;font-weight:700;}
.order-view-head-card strong{font-size:1rem;color:#111827;}
@media (max-width:991.98px){
  .order-customer-grid,.order-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .order-view-head-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:767.98px){
  .order-shell-card{margin-bottom:96px;padding:12px!important;}
  .order-customer-grid,.order-catalog-grid{grid-template-columns:1fr;gap:12px;}
  .order-product-card{gap:9px;padding:10px;}
  .order-product-top{grid-template-columns:82px minmax(0,1fr);gap:10px;}
  .order-product-image-wrap{width:82px;border-radius:16px;}
  .order-product-title{font-size:.95rem;}
  .order-product-variant{font-size:.84rem;}
  .order-pricing-stack{margin-top:8px;}
  .order-rate-line{font-size:.98rem;}
  .order-unit-relation{font-size:.76rem;padding:3px 9px;}
  .order-qty-halves{gap:8px;}
  .order-qty-shell-stepper{grid-template-columns:auto 34px minmax(40px,1fr) 34px;}
  .order-qty-unit-inline{padding:0 10px;font-size:.7rem;}
  .order-add-btn{padding-inline:12px;justify-self:stretch;}
  .order-bottom-bar{left:10px;right:10px;bottom:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));}
  .order-bottom-btn{flex:1 1 0;min-height:42px;padding-inline:12px;}
  .order-summary-card{grid-template-columns:64px minmax(0,1fr);}
  .order-summary-image{width:64px;height:64px;border-radius:14px;}
  .order-summary-amount{grid-column:2;justify-self:end;}
  .order-view-head-grid{grid-template-columns:1fr 1fr;}
}

.dispatch-qty-box{min-width:140px;max-width:160px}.dispatch-qty-box .form-control{min-height:42px;font-weight:700;}

.order-stepper-wrap{width:100%;}
.order-qty-row-single .order-add-btn{min-width:104px;}
@media (max-width: 767.98px){
  .order-qty-halves{grid-template-columns:1fr 1fr;gap:8px;}
}


/* v2026.04.12.03 inventory batch A */
.inventory-inward-item-list{display:grid;gap:14px;}
.inventory-inward-item-row{padding:14px;border:1px solid #e5e7eb;border-radius:18px;background:#fff;box-shadow:0 2px 10px rgba(15,23,42,.04);}
.inventory-inward-page .crud-table td,.inventory-inward-page .crud-table th{vertical-align:middle;}
@media (max-width: 991.98px){
  .inventory-inward-item-row{padding:12px;border-radius:16px;}
}


/* Sidebar submenu left align fix */

.sidebar-acc-links,
.sidebar-acc-links .sidebar-link,
.sidebar-acc-links .sidebar-link span,
.sidebar-acc-toggle,
.sidebar-toggle-label,
.sidebar-toggle-label .sidebar-text{
  text-align:left !important;
}
.sidebar-acc-links{
  align-items:stretch !important;
}
.sidebar-acc-links .sidebar-link{
  width:100% !important;
  justify-content:flex-start !important;
  align-items:center !important;
  padding-left:18px !important;
  padding-right:14px !important;
}


.order-customer-person-trigger{appearance:none;background:none;border:0;padding:0;margin:0;text-align:left;cursor:pointer;display:block;color:#475569;font-size:.86rem;line-height:1.35;}
.order-customer-person-trigger:hover{color:var(--brand);text-decoration:underline;}
.order-customer-meta-row-address i{color:#f97316;}
.order-customer-address-line{color:#c2410c;font-weight:700;}
.order-customer-detail-top{display:flex;flex-direction:column;gap:4px;}
.order-customer-detail-business{font-size:1.15rem;font-weight:800;color:#111827;}
.order-customer-detail-person{font-size:1rem;font-weight:700;color:#475569;}
.order-customer-detail-location{display:flex;align-items:flex-start;gap:8px;color:#c2410c;font-weight:700;}
.order-customer-detail-location i{margin-top:2px;}
.order-customer-detail-tile{height:100%;padding:12px 14px;border:1px solid #e5e7eb;border-radius:16px;background:#f8fafc;}
.order-customer-detail-label{font-size:.78rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.03em;margin-bottom:4px;}
.order-customer-detail-value{font-size:.95rem;font-weight:700;color:#111827;line-height:1.4;word-break:break-word;}
.order-customer-detail-loading{padding:18px 6px;font-weight:600;color:#64748b;}

.order-customer-meta-row-phone{color:#0f766e;font-weight:700;}
.order-customer-meta-row-phone i{color:#14b8a6;}
.order-customer-inline-sub-trigger{border:0;background:transparent;padding:0;font-size:.9rem;color:#475569;font-weight:700;text-align:left;cursor:pointer;text-decoration:none;}
.order-customer-inline-sub-trigger:hover{color:var(--brand);text-decoration:underline;}


.order-customer-meta-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:999px;flex:0 0 20px;margin-top:1px;}
.order-customer-meta-icon-phone{background:rgba(20,184,166,.12);color:#0f766e;}
.order-customer-meta-row-phone{color:#0f766e;font-weight:700;}
.order-customer-meta-row-phone i{color:inherit;margin-top:0;}
.order-customer-inline-title-trigger{border:0;background:transparent;padding:0;font-size:1.08rem;font-weight:800;color:#0f172a;text-align:left;cursor:pointer;line-height:1.2;}
.order-customer-inline-title-trigger:hover{color:var(--brand);text-decoration:underline;}
.order-top-actions-wide{max-width:none;flex:1 1 320px;}
.order-catalog-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.order-top-filters{display:flex;align-items:center;gap:10px;flex:0 1 auto;min-width:0;}
.order-top-filters .form-select{min-width:190px;}
@media (max-width: 767.98px){
  .order-catalog-toolbar{align-items:stretch;gap:10px;}
  .order-top-actions-wide{flex:1 1 100%;}
  .order-top-filters{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px;}
  .order-top-filters .form-select{min-width:0;width:100%;}
}

/* v2026.04.16 order mobile/layout polish */
.order-top-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;width:100%;}
.order-top-actions .form-control{flex:1 1 auto;min-width:0;}
.order-catalog-filter-btn{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;}
.order-catalog-filter-sheet .modal-body{display:grid;gap:12px;}
@media (max-width:991.98px){
  body.mobile-sidebar-open .order-bottom-bar{
    left:min(86vw, 320px) !important;
    right:8px !important;
    max-width:calc(100vw - min(86vw, 320px) - 16px) !important;
  }
}
@media (max-width:767.98px){
  .order-top-actions{gap:8px;}
  .order-catalog-filter-btn{min-width:46px;padding:.62rem .8rem;border-radius:13px;}
  .order-catalog-filter-btn span{display:none;}
}


/* PWA sidebar footer tools */
.app-sidebar-user-tools{padding:12px;background:#fff;border-top:1px solid #e5e7eb;box-shadow:0 -6px 18px rgba(15,23,42,.04);position:sticky;bottom:0;z-index:6;}
.app-sidebar-user-tools .sidebar-footer-toggle{width:100%;border:1px solid #e5e7eb;background:#fff;border-radius:18px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.app-sidebar-user-tools .sidebar-footer-userline{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto;}
.app-sidebar-user-tools .sidebar-footer-avatar{width:40px;height:40px;border-radius:14px;border:1px solid #dbe3ee;background:#f8fafc;display:inline-flex;align-items:center;justify-content:center;color:var(--brand-dark);flex:0 0 auto;}
.app-sidebar-user-tools .sidebar-footer-avatar i{font-size:1.05rem;}
.app-sidebar-user-tools .sidebar-footer-meta{display:flex;flex-direction:column;min-width:0;text-align:left;}
.app-sidebar-user-tools .sidebar-footer-meta strong,.app-sidebar-user-tools .sidebar-footer-meta small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.app-sidebar-user-tools .sidebar-footer-actions{padding-top:10px;}
.app-sidebar-user-tools .sidebar-footer-actions-row{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:nowrap;}
.app-sidebar-user-tools .sidebar-footer-iconbtn{width:44px;height:44px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;padding:0;position:relative;}
.app-sidebar-user-tools .sidebar-footer-toggle .bi-chevron-up{transition:transform .16s ease;}
.app-sidebar-user-tools .sidebar-footer-toggle[aria-expanded="true"] .bi-chevron-up{transform:rotate(180deg);}
body.desktop-sidebar-collapsed .app-sidebar-user-tools{padding:8px;background:transparent;border-top:0;box-shadow:none;overflow:visible;}
body.desktop-sidebar-collapsed .app-sidebar-user-tools .sidebar-footer-toggle{width:56px;height:56px;padding:0;justify-content:center;border-radius:18px;margin:0 auto;}
body.desktop-sidebar-collapsed .app-sidebar-user-tools .sidebar-footer-meta,
body.desktop-sidebar-collapsed .app-sidebar-user-tools .sidebar-footer-toggle .bi-chevron-up{display:none;}
body.desktop-sidebar-collapsed .app-sidebar-user-tools .sidebar-footer-avatar{width:42px;height:42px;border-radius:14px;}
body.desktop-sidebar-collapsed .app-sidebar-user-tools .sidebar-footer-actions{position:absolute;left:calc(100% + 10px);bottom:8px;width:min(220px,calc(100vw - 130px));padding:12px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 18px 36px rgba(15,23,42,.12);z-index:1060;}
body.desktop-sidebar-collapsed .app-sidebar-user-tools .sidebar-footer-actions:not(.show){display:none !important;}
@media (max-width:991.98px){
  .app-sidebar-user-tools{margin:0 12px calc(12px + env(safe-area-inset-bottom));border:1px solid #e5e7eb;border-radius:20px;}
}


/* Sidebar refresh batch */
.sidebar-shell{display:flex;flex-direction:column;height:calc(100dvh - var(--app-navbar-height));background:#fff;border-right:1px solid #e5e7eb;}
.sidebar-body-shell{display:flex;flex-direction:column;min-height:0;height:100%;}
.sidebar-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:10px 10px 12px;}
.sidebar-accordion{display:flex;flex-direction:column;gap:10px;}
.sidebar-scroll > .sidebar-accordion{margin-top:0;}
.sidebar-acc-item{background:#fff;border:1px solid #e5e7eb;border-radius:18px;overflow:hidden;box-shadow:none;}
.sidebar-acc-toggle{width:100%;border:0;background:#fff;padding:13px 16px;min-height:52px;display:flex;align-items:center;justify-content:space-between;font-weight:700;color:#334155;}
.sidebar-acc-toggle .sidebar-toggle-label{gap:10px;}
.sidebar-acc-toggle .sidebar-toggle-label i{color:#64748b;}
.sidebar-acc-toggle .bi-chevron-down{font-size:.82rem;color:#64748b;transition:none !important;}
.sidebar-acc-toggle[aria-expanded="true"]{border-bottom:1px solid #eef2f7;}
.sidebar-acc-toggle[aria-expanded="true"] .bi-chevron-down{transform:rotate(180deg);}
.sidebar-accordion > .sidebar-acc-item > .collapse{display:none;transition:none !important;}
.sidebar-accordion > .sidebar-acc-item > .collapse.show{display:block;}
.sidebar-accordion > .sidebar-acc-item > .collapsing{display:none !important;transition:none !important;}
.sidebar-acc-links{padding:8px 10px 10px;display:flex;flex-direction:column;gap:6px;}
.sidebar-link{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:0;border-radius:14px;color:#334155;text-decoration:none;font-weight:700;}
.sidebar-link i{color:#64748b;}
.sidebar-link.active,.sidebar-link:hover{background:var(--brand-soft);color:var(--brand-dark);}
.sidebar-link.active i,.sidebar-link:hover i{color:var(--brand-dark);}
.sidebar-acc-links .sidebar-link{padding:11px 14px;font-weight:600;}
.app-sidebar-user-tools{position:sticky;bottom:0;flex:0 0 auto;margin:8px 10px calc(10px + env(safe-area-inset-bottom));padding:10px 12px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 -6px 18px rgba(15,23,42,.05);}
.app-sidebar-user-tools .sidebar-footer-toggle{width:100%;border:0;background:#fff;padding:0;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.app-sidebar-user-tools .sidebar-footer-userline{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto;}
.app-sidebar-user-tools .sidebar-footer-avatar{width:36px;height:36px;border-radius:12px;border:1px solid #dbe3ee;background:#f8fafc;display:inline-flex;align-items:center;justify-content:center;color:var(--brand-dark);flex:0 0 auto;}
.app-sidebar-user-tools .sidebar-footer-meta{display:flex;flex-direction:column;min-width:0;text-align:left;}
.app-sidebar-user-tools .sidebar-footer-meta strong,.app-sidebar-user-tools .sidebar-footer-meta small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.app-sidebar-user-tools .sidebar-footer-toggle .bi-chevron-up{color:#64748b;transition:none !important;}
.app-sidebar-user-tools .sidebar-footer-toggle[aria-expanded="true"] .bi-chevron-up{transform:rotate(180deg);}
.app-sidebar-user-tools .sidebar-footer-actions{display:none;padding-top:10px;}
.app-sidebar-user-tools .sidebar-footer-actions.show{display:block;}
.app-sidebar-user-tools .sidebar-footer-actions-row{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:nowrap;}
.app-sidebar-user-tools .sidebar-footer-iconbtn{width:42px;height:42px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;padding:0;}
@media (min-width:992px){
  body.desktop-sidebar-collapsed .sidebar-shell{overflow:visible;}
  body.desktop-sidebar-collapsed .sidebar-scroll{overflow:visible;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item{position:relative;background:transparent;border:0;overflow:visible;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle{width:56px;height:56px;padding:0;justify-content:center;border:1px solid #e5e7eb;border-radius:18px;background:#fff;box-shadow:0 6px 16px rgba(15,23,42,.06);}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle .sidebar-text,
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle .bi-chevron-down{display:none;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .sidebar-acc-toggle .sidebar-toggle-label i{margin:0 !important;font-size:1.05rem;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapse,
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapse.show{position:absolute;left:calc(100% + 10px);top:0;width:min(320px,calc(100vw - 130px));max-height:calc(100vh - 84px);overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 18px 36px rgba(15,23,42,.12);padding:8px 0;z-index:1060;}
  body.desktop-sidebar-collapsed .sidebar-accordion > .sidebar-acc-item > .collapse:not(.show){display:none !important;}
  body.desktop-sidebar-collapsed .app-sidebar-user-tools{padding:8px;margin:8px 0 0;background:transparent;border:0;box-shadow:none;overflow:visible;}
  body.desktop-sidebar-collapsed .app-sidebar-user-tools .sidebar-footer-toggle{width:56px;height:56px;padding:0;justify-content:center;margin:0 auto;border:1px solid #e5e7eb;border-radius:18px;background:#fff;box-shadow:0 6px 16px rgba(15,23,42,.06);}
  body.desktop-sidebar-collapsed .app-sidebar-user-tools .sidebar-footer-meta,
  body.desktop-sidebar-collapsed .app-sidebar-user-tools .sidebar-footer-toggle .bi-chevron-up{display:none;}
  body.desktop-sidebar-collapsed .app-sidebar-user-tools .sidebar-footer-actions.show{position:absolute;left:calc(100% + 10px);bottom:0;width:min(220px,calc(100vw - 130px));padding:12px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 18px 36px rgba(15,23,42,.12);z-index:1060;}
}
@media (max-width:991.98px){
  .sidebar-shell{height:calc(100dvh - var(--app-navbar-height));}
  .sidebar-body-shell{height:calc(100dvh - var(--app-navbar-height) - 56px);min-height:0;}
  .sidebar-scroll{padding:10px 10px 12px;}
  .app-sidebar-user-tools{margin:8px 10px calc(12px + env(safe-area-inset-bottom));position:sticky;bottom:0;}
}


/* Production planning */
.production-page-card .page-subtitle,.production-page-card .text-muted{max-width:100%;}
.production-picker{position:relative;}
.production-picker-list{position:absolute;left:0;right:0;top:100%;margin-top:8px;background:#fff;border:1px solid #d1d5db;border-radius:16px;box-shadow:0 16px 32px rgba(15,23,42,.10);max-height:320px;overflow:auto;z-index:40;}
.production-picker-item{display:block;width:100%;border:0;background:#fff;text-align:left;padding:12px 14px;}
.production-picker-item:hover,.production-picker-item:focus,.production-picker-item.is-active{background:var(--brand-soft);outline:none;}
.production-picker-empty{padding:14px;color:#6b7280;}
.production-line-card,.production-plan-mini-card,.production-carry-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 8px 22px rgba(15,23,42,.05);padding:14px;}
.production-line-card.capacity-overflow{border-color:rgba(220,53,69,.35);box-shadow:0 10px 26px rgba(220,53,69,.08);}
.production-line-main{display:flex;gap:14px;align-items:flex-start;}
.production-card-thumb-wrap{flex:0 0 92px;}
.production-card-thumb{display:block;width:92px;height:auto;aspect-ratio:1 / 1;object-fit:cover;border-radius:16px;border:1px solid #d1d5db;background:#fff;}
.production-card-thumb-placeholder{display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:1.2rem;}
.production-line-content{flex:1 1 auto;min-width:0;}
.production-line-title{font-weight:700;line-height:1.35;word-break:break-word;}
.production-empty-state{border:1px dashed #cbd5e1;border-radius:18px;background:#fff;}
.production-carry-card .production-card-thumb{width:74px;}
@media (max-width:767.98px){
  .production-line-main{flex-direction:column;}
  .production-card-thumb-wrap{flex-basis:auto;}
  .production-card-thumb{width:100%;max-width:112px;}
}


.login-body{padding-top:0!important;}


.app-image-popup{position:fixed;inset:0;display:none;z-index:2500;}
.app-image-popup.show{display:block;}
.app-image-popup__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.72);backdrop-filter:blur(2px);}
.app-image-popup__dialog{position:relative;max-width:min(92vw,980px);max-height:90vh;margin:4vh auto;background:#fff;border-radius:20px;box-shadow:0 24px 60px rgba(15,23,42,.3);padding:18px;display:flex;flex-direction:column;gap:12px;}
.app-image-popup__title{font-weight:700;color:#0f172a;padding-right:42px;}
.app-image-popup__body{display:flex;align-items:center;justify-content:center;min-height:240px;overflow:auto;background:#f8fafc;border-radius:16px;}
.app-image-popup__body img{max-width:100%;max-height:72vh;object-fit:contain;border-radius:14px;}
.app-image-popup__close{position:absolute;right:14px;top:10px;border:none;background:#eef2f7;color:#0f172a;width:34px;height:34px;border-radius:999px;font-size:24px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;}
body.image-popup-open{overflow:hidden;}


.production-priority-popup{position:fixed;inset:0;z-index:2400;}
.production-priority-popup__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.5);backdrop-filter:blur(2px);}
.production-priority-popup__dialog{position:relative;max-width:min(96vw,980px);max-height:88vh;overflow:auto;margin:4vh auto;background:#fff;border:1px solid #e5e7eb;border-radius:24px;box-shadow:0 24px 60px rgba(15,23,42,.18);padding:1rem;}
.production-priority-list{display:grid;gap:12px;}
.production-priority-item{border:1px solid #e5e7eb;border-radius:18px;padding:12px;cursor:pointer;background:#fff;transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;}
.production-priority-item:hover{border-color:#f1b84b;box-shadow:0 12px 28px rgba(15,23,42,.08);transform:translateY(-1px);}
.production-priority-customers{border-top:1px dashed #dbe2ea;padding-top:10px;}
.production-priority-customer-row + .production-priority-customer-row{margin-top:6px;}
.production-line-added{border-color:#198754!important;box-shadow:0 0 0 3px rgba(25,135,84,.12)!important;}

.production-carry-card{position:relative;}
.production-carry-dismiss{position:absolute;top:0;right:0;border-radius:999px;line-height:1;padding:.2rem .55rem;}

/* Stability hardening: admin shell + CRUD tables */
html,body,body.app-body,.app-shell,.app-main-col,.app-content,.sidebar-scroll{scrollbar-gutter:stable both-edges;}
.app-content{overflow-y:auto;overscroll-behavior:contain;}
[data-entity-list-pager]{min-height:52px;}
.crud-table-shell{position:relative;min-height:220px;}
.crud-table-shell.is-loading{overflow-anchor:none;}
.crud-table-shell.is-loading .crud-table tbody{pointer-events:none;}
.crud-table-inline-loader{position:absolute;top:12px;right:12px;z-index:2;display:none;align-items:center;gap:8px;padding:7px 10px;border:1px solid rgba(25,135,84,.16);border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 8px 18px rgba(15,23,42,.08);font-size:.82rem;font-weight:700;color:var(--brand-dark);}
.crud-table-shell.is-loading .crud-table-inline-loader{display:inline-flex;}
.crud-table.crud-table-stable{width:100%;table-layout:fixed;}
.crud-table.crud-table-stable th,.crud-table.crud-table-stable td{word-break:break-word;overflow-wrap:anywhere;}
.crud-table.crud-table-stable .table-actions{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;}
@media (max-width:991.98px){
  .app-content{overflow-y:visible;}
  .crud-table-inline-loader{top:10px;right:10px;}
}


/* Root scroll ownership fix: use normal page/body vertical scrolling */
html,body,body.app-body{height:auto!important;min-height:100%;}
body.app-body{overflow-y:auto;overflow-x:hidden;}
.app-shell{min-height:calc(100dvh - var(--app-navbar-height));height:auto!important;overflow:visible!important;align-items:flex-start;}
.app-main-col{min-height:calc(100dvh - var(--app-navbar-height));height:auto!important;overflow:visible!important;}
.app-content{height:auto!important;max-height:none!important;min-height:calc(100dvh - var(--app-navbar-height));overflow:visible!important;overscroll-behavior:auto!important;}
@media (max-width:991.98px){
  .app-shell{display:block!important;min-height:auto!important;height:auto!important;}
  .app-main-col{min-height:auto!important;height:auto!important;overflow:visible!important;}
  .app-content{min-height:auto!important;height:auto!important;overflow:visible!important;padding-bottom:18px!important;}
}

/* Desktop sticky sidebar with body-owned page scroll */

@media (min-width:992px){
  .app-shell{align-items:flex-start!important;}
  .app-sidebar-col{position:sticky!important;top:0!important;align-self:flex-start!important;height:calc(100dvh - var(--app-navbar-height))!important;}
  .sidebar-shell{position:sticky!important;top:0!important;height:calc(100dvh - var(--app-navbar-height))!important;display:flex!important;flex-direction:column!important;}
  .sidebar-body-shell{min-height:0!important;height:100%!important;overflow:hidden!important;}
  .sidebar-scroll{flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;}
}

/* Desktop fixed sidebar + independent page scroll */

@media (min-width:992px){
  .app-shell{display:block!important;min-height:auto!important;height:auto!important;}
  .app-sidebar-col{position:fixed!important;top:var(--app-navbar-height)!important;left:0!important;bottom:0!important;width:280px!important;max-width:280px!important;height:calc(100dvh - var(--app-navbar-height))!important;z-index:1100!important;}
  .app-main-col{margin-left:280px!important;min-height:calc(100dvh - var(--app-navbar-height))!important;width:auto!important;max-width:none!important;overflow:visible!important;}
  body.desktop-sidebar-collapsed .app-sidebar-col{width:92px!important;max-width:92px!important;}
  body.desktop-sidebar-collapsed .app-main-col{margin-left:92px!important;}
  .sidebar-shell{position:relative!important;top:auto!important;height:100%!important;display:flex!important;flex-direction:column!important;}
  .sidebar-body-shell{min-height:0!important;height:100%!important;overflow:hidden!important;}
  .sidebar-scroll{flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;}
}

.wa-popup-shell{position:fixed;inset:0;z-index:2600;display:none;}
.wa-popup-shell.show{display:block;}
.wa-popup-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(2px);}
.wa-popup-dialog{position:relative;width:min(96vw,860px);max-height:88vh;overflow:auto;margin:4vh auto;background:#fff;border-radius:24px;border:1px solid rgba(15,35,59,.1);box-shadow:0 30px 60px rgba(15,23,42,.18);padding:1rem;}
.wa-popup-list{display:grid;gap:12px;}
.wa-popup-topbar{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;flex-wrap:wrap;margin-bottom:1rem;}
.wa-popup-topbar .btn{border-radius:999px;}
@media (max-width:575.98px){
  .wa-popup-dialog{margin:2vh auto;border-radius:18px;padding:.85rem;}
}


/* Batch 8 UI standardization */
.ui-page-shell{border-radius:20px!important;box-shadow:0 12px 28px rgba(15,23,42,.05)!important;}
.ui-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px;}
.ui-chip-bar{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 16px;}
.ui-chip-bar .btn{border-radius:999px;font-weight:700;min-height:36px;padding:.42rem .9rem;}
.ui-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 18px;}
.ui-stat-card{border:1px solid #e2e8f0!important;border-radius:18px!important;background:#fff!important;padding:14px 16px!important;box-shadow:0 6px 16px rgba(15,23,42,.04);}
.ui-stat-card small{display:block;color:#64748b;margin-bottom:6px;}
.ui-stat-card strong{font-size:1.4rem;line-height:1;color:#0f172a;}
[data-order-create-page],[data-order-summary-page]{padding-bottom:104px;}
.ui-bottom-bar.order-bottom-bar{position:fixed;left:280px;right:18px;bottom:12px;z-index:1048;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.98);border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 12px 30px rgba(15,23,42,.12);backdrop-filter:blur(8px);max-width:none;min-height:auto;}
body.desktop-sidebar-collapsed .ui-bottom-bar.order-bottom-bar{left:92px;}
.ui-bottom-bar .ui-bottom-bar-btn,.ui-bottom-bar .order-bottom-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:14px;font-weight:800;padding:.56rem 1rem;min-width:132px;max-width:none!important;white-space:nowrap;}
.ui-bottom-bar .order-bottom-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.18);color:inherit;font-size:.75rem;font-weight:800;}
.ui-bottom-bar.order-create-bottom{justify-content:flex-end;}
.ui-bottom-bar.order-summary-bottom{justify-content:flex-end;}
.ui-bottom-bar.order-summary-bottom .order-bottom-btn-secondary{min-width:120px;}
.ui-bottom-bar.order-summary-bottom .order-bottom-btn-primary{min-width:154px;}
.ui-bottom-bar.order-create-bottom .order-bottom-btn-secondary{min-width:112px;}
.ui-bottom-bar.order-create-bottom .order-bottom-btn-primary{min-width:150px;}
.ui-bottom-bar.order-summary-bottom .order-bottom-btn,.ui-bottom-bar.order-create-bottom .order-bottom-btn{flex:0 0 auto;}
@media (max-width: 1199.98px){
  .ui-bottom-bar.order-bottom-bar{left:18px;right:18px;}
}
@media (max-width: 991.98px){
  .ui-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  [data-order-create-page],[data-order-summary-page]{padding-bottom:98px;}
  .ui-bottom-bar.order-bottom-bar{left:10px;right:10px;bottom:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));gap:8px;}
}
@media (max-width: 767.98px){
  .ui-page-shell{border-radius:18px!important;}
  .ui-page-header{margin-bottom:14px;}
  .ui-stat-grid{grid-template-columns:1fr 1fr;gap:10px;}
  [data-order-create-page],[data-order-summary-page]{padding-bottom:92px;}
  .ui-bottom-bar.order-bottom-bar{left:8px;right:8px;bottom:8px;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));gap:8px;border-radius:16px;}
  .ui-bottom-bar .ui-bottom-bar-btn,.ui-bottom-bar .order-bottom-btn{min-width:0;width:100%;flex:1 1 0;min-height:42px;font-size:.84rem;padding:.5rem .65rem;}
  .ui-bottom-bar.order-bottom-bar{justify-content:stretch;}
}

/* Batch 8 bottom bar alignment hotfix */
@media (min-width: 992px){
  .ui-bottom-bar.order-bottom-bar,
  .ui-bottom-bar.order-bottom-bar.order-summary-bottom,
  .ui-bottom-bar.order-bottom-bar.order-create-bottom{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:12px !important;
    min-height:72px !important;
  }
  .ui-bottom-bar.order-bottom-bar .order-bottom-btn,
  .ui-bottom-bar.order-bottom-bar.order-summary-bottom .order-bottom-btn,
  .ui-bottom-bar.order-bottom-bar.order-create-bottom .order-bottom-btn{
    width:auto !important;
    flex:0 0 auto !important;
    min-width:132px !important;
    max-width:none !important;
    min-height:42px !important;
  }
  .ui-bottom-bar.order-bottom-bar.order-summary-bottom .order-bottom-btn-primary,
  .ui-bottom-bar.order-bottom-bar.order-create-bottom .order-bottom-btn-primary{
    min-width:156px !important;
  }
  .ui-bottom-bar.order-bottom-bar.order-summary-bottom .order-bottom-btn-secondary,
  .ui-bottom-bar.order-bottom-bar.order-create-bottom .order-bottom-btn-secondary{
    min-width:116px !important;
  }
}
@media (max-width: 991.98px){
  .ui-bottom-bar.order-bottom-bar .order-bottom-btn,
  .ui-bottom-bar.order-bottom-bar.order-summary-bottom .order-bottom-btn,
  .ui-bottom-bar.order-bottom-bar.order-create-bottom .order-bottom-btn{
    width:100% !important;
    flex:1 1 0 !important;
  }
}

/* Popup stabilization batch */
html{scrollbar-gutter:stable both-edges;}
body.app-modal-opening,
body.modal-open{
  padding-right:var(--app-scrollbar-width, 0px)!important;
}
body.app-modal-opening{
  overflow:hidden;
}
.modal{
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  will-change:opacity;
}
.modal.fade{
  transition:opacity .12s linear!important;
}
.modal.fade .modal-dialog{
  transition:transform .14s ease-out, opacity .14s ease-out!important;
  transform:translateY(8px) scale(.995);
  opacity:1;
}
.modal.show .modal-dialog{
  transform:translateY(0) scale(1)!important;
}
.modal.modal-preparing{
  display:block!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
.modal.modal-preparing .modal-dialog{
  transform:translateY(8px) scale(.995)!important;
}
.modal-backdrop{
  will-change:opacity;
}
.modal-backdrop.fade{
  transition:opacity .12s linear!important;
}
.modal-content{
  contain:layout paint;
}
.loader-overlay{
  z-index:2080;
}
.modal-backdrop{z-index:2050!important;}
.modal{z-index:2055;}
.app-custom-modal{z-index:2060;}
