/* Shared master UI, profile and modal transitions. */
.sa-master-header .global-search{display:none!important}
.shared-layout .sa-master-header,#app .shell .sa-master-header{display:flex!important;align-items:center;justify-content:space-between;gap:14px}
html.sa-embedded .shared-tools .sa-master-header:not(:has(.sa-module-controls:not(:empty))),html.sa-embedded .shared-password .sa-master-header{display:none!important}
.sa-master-header .sa-master-left{flex:1;min-width:0}.sa-master-header .sa-master-right{margin-left:auto;flex:none}
.shared-layout .profile-drop{min-width:236px;padding:10px!important;background:linear-gradient(145deg,#302335,#21192b)!important;border:1px solid #815263!important;border-radius:14px!important;box-shadow:0 15px 38px #0009,0 0 16px #b33d5220!important;z-index:120!important}
.shared-layout .profile-drop>a,.shared-layout .profile-drop>button{display:flex!important;align-items:center;justify-content:flex-start!important;gap:10px;width:100%;min-height:43px;text-decoration:none!important;border-radius:9px!important;padding:10px 12px!important;margin:0!important;font-weight:600;text-align:left;background:#342738;color:#f4d398;border:1px solid #62465d}
.shared-layout .profile-drop>:not(:first-child){margin-top:8px!important}.shared-layout .profile-drop>button[data-act=logout],.shared-layout .profile-drop>button.sa-profile-exit,.shared-layout .profile-drop>#logout{background:linear-gradient(110deg,#9d2c44,#662036);border-color:#ac5268;color:#fff}.shared-layout .profile-drop .sa-menu-icon{width:19px;height:19px;flex:none;color:#f5cc85}.shared-layout .profile-drop>a:hover,.shared-layout .profile-drop>button:hover{box-shadow:0 0 14px #b43b553c;border-color:#d2917e}
.sa-master-page{width:100%;max-width:none!important;min-width:0}.sa-master-page .master-list{padding:18px!important;margin:0 0 14px!important;min-width:0;background:linear-gradient(125deg,#292234,#201a2b);border:1px solid #49384e;border-radius:14px;box-shadow:none}.sa-master-page .master-list .master-toolbar,.sa-master-page .master-list>.row.between{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;flex-wrap:wrap}.sa-master-page .master-toolbar>h2{display:none}.sa-master-page .master-toolbar>button.primary{order:-1}.sa-master-page .master-list input[type=search],.sa-master-page .master-list #filter{width:min(100%,280px)!important;flex:0 1 280px;max-width:280px;margin-left:auto;min-height:42px}.sa-master-page .master-list table{width:100%;border-collapse:collapse}.sa-master-page .master-list th{background:#332638!important;color:#f5cb82!important;text-align:left;font-weight:600}.sa-master-page .master-list th,.sa-master-page .master-list td{padding:13px 10px!important;vertical-align:middle;border-bottom:1px solid #44374b}.sa-master-page .master-list td button,.sa-master-page .master-list td a{background:#30283b!important;border:1px solid #514259!important;color:#efe5f2!important;border-radius:9px!important;min-height:38px;padding:8px 12px!important;text-decoration:none!important;box-shadow:none!important}.sa-master-page .master-list td button:hover,.sa-master-page .master-list td a:hover{border-color:#ba7483!important;background:#493044!important}.sa-master-status{display:inline-block;padding:6px 12px;border-radius:7px;background:#433246;color:#d1b9d6}.sa-master-status.active{background:#263b39;color:#8cddb9}.sa-master-page [hidden]{display:none!important}.sa-cash-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.sa-cash-tabs button{padding:10px 18px;background:#2e2638;border:1px solid #594157;color:#f5ce87}.sa-cash-tabs button[aria-selected=true]{background:linear-gradient(110deg,#a13751,#71243a);color:#fff;border-color:#bc6075}.sa-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:14px;color:#c5b5ce;font-size:13px}.sa-pagination>span:first-child{margin-right:auto}.sa-pagination label{display:flex!important;flex-direction:row!important;align-items:center;gap:6px}.sa-pagination select{width:auto!important;padding:8px}.sa-pagination button{min-width:36px;min-height:36px;padding:5px 9px}.sa-pagination button:disabled{opacity:.4;cursor:default}.sa-master-page .master-toolbar label{flex:0 1 240px}.sa-master-page #cash-kpi{margin-bottom:12px}
/* One header style for existing master editor, product editor and legacy forms. */
.sa-modal-head,.product-head.sa-modal-head,.modal:not(.product-modal)>.panel>.sa-modal-head{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;padding:16px 22px!important;background:linear-gradient(105deg,#51263a,#2b2030)!important;border-bottom:1px solid #784353!important;margin:0!important;flex:none;position:sticky;top:0;z-index:3;border-radius:0}.sa-modal-head .sa-modal-heading{display:block!important;flex:1;min-width:0}.sa-modal-head h2{font-size:22px!important;line-height:1.25;margin:0!important;color:#ffe0a3!important;overflow-wrap:anywhere}.sa-modal-head p{font-size:13px!important;margin:4px 0 0!important;color:#c9b4cb!important}.sa-modal-head .sa-modal-symbol{display:grid;place-items:center;flex:none;width:44px;height:44px;background:#703044;border:1px solid #a65c70;border-radius:12px;color:#ffd184}.sa-modal-symbol svg{width:24px;height:24px}.sa-modal-head .sa-modal-close{margin-left:auto!important;flex:none;width:38px;height:38px;padding:0!important;font-size:23px;line-height:1;display:grid;place-items:center;color:#f4dce8;background:#3d2c40;border:1px solid #725064;border-radius:9px}.product-editor .product-head{position:relative}.sa-translate-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 9px;color:#d4bfd4;font-size:12px}.sa-translate-controls label{display:flex;align-items:center;gap:6px}.sa-translate-controls button{font-size:12px;padding:6px 10px}.sa-translate-status{min-height:18px;color:#c9b5ce;font-size:12px;margin-top:6px}
@keyframes sa-popup-enter{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes sa-popup-fade{from{opacity:0}to{opacity:1}}@keyframes sa-popup-exit{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(5px) scale(.985)}}
dialog[open]{animation:sa-popup-enter .22s cubic-bezier(.2,.8,.2,1) both}dialog[open]::backdrop{animation:sa-popup-fade .18s ease both}.modal:not(.print-modal)>.panel{animation:sa-popup-enter .22s cubic-bezier(.2,.8,.2,1) both}.modal.sa-closing>.panel,dialog.sa-closing{animation:sa-popup-exit .15s ease both;pointer-events:none}.modal.sa-closing{pointer-events:none}.profile[open] .profile-drop{animation:sa-popup-enter .18s ease-out both}
@media(max-width:767px){.sa-master-page .master-list{padding:12px!important}.sa-master-page .master-list input[type=search],.sa-master-page .master-list #filter{flex:1 1 100%;max-width:none;width:100%!important;margin:0}.sa-master-page .master-list table.sa-responsive-master,.sa-master-page .master-list table.sa-responsive-master tbody{display:block}.sa-responsive-master thead{display:none}.sa-responsive-master tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;background:#2d2537;border:1px solid #514053;border-radius:10px;padding:10px;margin-bottom:8px}.sa-master-page .master-list .sa-responsive-master td{display:block;border:0;padding:4px!important;white-space:normal!important;overflow-wrap:anywhere}.sa-responsive-master td::before{content:attr(data-label);display:block;font-size:11px;color:#c1adca;margin-bottom:3px}.sa-responsive-master td:last-child{grid-column:1/-1}.sa-modal-head,.product-head.sa-modal-head,.modal:not(.product-modal)>.panel>.sa-modal-head{padding:12px 14px!important}.sa-modal-head h2{font-size:18px!important}.sa-modal-head .sa-modal-symbol{width:36px;height:36px}.sa-modal-head p{font-size:11px!important}.sa-pagination{justify-content:flex-start}.sa-pagination>span:first-child{flex:1 1 100%}}
@media(prefers-reduced-motion:reduce){dialog[open],dialog[open]::backdrop,.modal>.panel,.profile[open] .profile-drop{animation:none!important}}body.sa-no-motion dialog,body.sa-no-motion .modal,body.sa-no-motion .modal>.panel,body.sa-no-motion .profile-drop{animation:none!important}
@media print{dialog[open],.modal>.panel{animation:none!important;transform:none!important}}
