/* CR_SINGLE_SHARED_THEME_V5 — one consolidated theme */
:root{--cr-maroon:#681c2b;--cr-gold:#f7dfaa;--cr-line:#d5bd8b;--cr-base:#f7ecdf;--cr-paper:#fff4e3;--cr-alt:#f1e2c9}
html body{--bs-primary:#681c2b;--bs-primary-rgb:104,28,43;--bs-body-bg:#f7ecdf;--bs-link-color:#681c2b;background-color:var(--cr-base)!important}
html body :is(.main-content,.content-wrapper){background-color:var(--cr-base)!important}
html body :is(.card,.card-body,.modal-content,.modal-body,.rz-tools-drawer,.rz-tools-content){background-color:var(--cr-paper)!important}
html body :is(.form-control,.form-select,.choices__inner){background-color:#fff9ef!important;border-color:var(--cr-line)!important}
html body :is(.form-control,.form-select):focus{border-color:#a77e30!important;box-shadow:0 0 0 3px #c7a45b22}
html body :is(.btn-primary,.bg-primary){background:#681c2b!important;color:#f7dfaa!important;border-color:#681c2b!important}
html body .btn-outline-primary{background:#fff1db!important;color:#681c2b!important;border-color:#b28c44!important}
html body .card-header{background:#681c2b!important;color:#f7dfaa!important;border-color:var(--cr-line)!important}
html body .card-header :is(h2,h3,h4,h5,h6){color:#f7dfaa!important}
html body .card{border-color:var(--cr-line)!important}
html body .page-title{color:#681c2b}
html body .page-link{background:#fff4e3;color:#681c2b}
html body .pagination .active>.page-link{background:#681c2b!important;color:#f7dfaa!important;border-color:#681c2b!important}
html body .sidebar-wrapper{background:#681c2b!important;color:#f7dfaa!important;border-right:1px solid #c7a45b!important}
html body .sidebar-wrapper :is(.sidebar-header,.sidebar-footer){background:#581725!important;border-color:#a9823f!important}
html body .sidebar-wrapper :is(.sidebar-logo,.sidebar-logo-text,.nav-link,.nav-link i){color:#f7dfaa!important}
html body .sidebar-wrapper .nav-link:is(:hover,.active){background:#8a3043!important;border-radius:7px}
html body .top-navbar{background:#fff1dd!important;border-bottom:1px solid var(--cr-line)!important}
html body .top-navbar #mobileToggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 40px!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;background:#681c2b!important;color:#f7dfaa!important;border:1px solid #c7a45b!important;border-radius:9px!important;box-shadow:none!important}
html body .top-navbar #mobileToggle>i{display:none!important}
html body .top-navbar #mobileToggle::before{content:""!important;display:block!important;position:static!important;flex:0 0 22px!important;width:22px!important;min-width:22px!important;height:3px!important;border-radius:3px;background:#f7d889!important;box-shadow:0 -7px 0 #f7d889,0 7px 0 #f7d889!important;transform:none!important;visibility:visible!important;opacity:1!important}
html body #crRealChatNav{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 38px!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;margin:0!important;background:#fff0d8!important;color:#681c2b!important;border:1px solid #c7a45b!important;border-radius:9px!important;box-sizing:border-box!important;text-decoration:none!important}
html body #crRealChatNav .cr-chat-bell{display:block!important;position:static!important;width:19px!important;height:19px!important;min-width:19px!important;flex:0 0 19px!important;color:#681c2b!important;opacity:1!important;visibility:visible!important}
html body #crRealChatNav [data-mw-unread]:not(:empty){position:absolute!important;top:-5px!important;right:-5px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:18px!important;height:18px!important;padding:0 4px!important;font:700 10px/1 system-ui!important;background:#681c2b!important;color:#fff0cf!important;border:1px solid #e1c483!important;border-radius:20px!important}
html body #crRealChatNav [data-mw-unread]:empty{display:none!important}
#rzMwIncoming{background:#681c2b!important;color:#f7dfaa!important;border:1px solid #c7a45b}
html body .rz-tools-drawer section{background:#fff4e3!important;border-color:var(--cr-line)!important}
html body .rz-tools-drawer :is(input,select,textarea){background:#fff9ef!important;border-color:var(--cr-line)!important;color:#513b32!important}
html body .rz-tools-drawer :is(h3,.rz-selected-label){color:#776044!important}
html body .table{--bs-table-bg:#fff4e3;--bs-table-striped-bg:#f1e2c9}
html body .table>tbody>tr:nth-child(odd)>td:not(.cr-source-cell):not([data-cr-manual="1"]){background-color:#fff4e3!important;--bs-table-accent-bg:transparent;--bs-table-bg-type:transparent}
html body .table>tbody>tr:nth-child(even)>td:not(.cr-source-cell):not([data-cr-manual="1"]){background-color:#f1e2c9!important;--bs-table-accent-bg:transparent;--bs-table-bg-type:transparent}
html body .table>thead>tr>th{background:#681c2b!important;color:#f7dfaa!important;border-color:var(--cr-line)!important}
/* Match the actual Studio selector; retain its scroll and editing mechanics. */
html body.rz-cloth-studio:has(#cr-cloth-ui) .top-navbar{display:flex!important;align-items:center!important;justify-content:space-between!important;flex:0 0 auto!important;min-height:66px!important;height:auto!important;padding:9px 10px!important;gap:8px!important;background:#681c2b!important;border-bottom:2px solid #c7a45b!important}
html body.rz-cloth-studio:has(#cr-cloth-ui) .top-navbar .navbar-left{display:flex!important;align-items:center!important;flex:1 1 auto!important;min-width:0!important;gap:9px!important}
html body.rz-cloth-studio:has(#cr-cloth-ui) .top-navbar .navbar-right{position:static!important;inset:auto!important;transform:none!important;display:flex!important;align-items:center!important;flex:0 0 auto!important;width:auto!important;gap:6px!important;margin:0!important}
html body.rz-cloth-studio:has(#cr-cloth-ui) .top-navbar .rz-cloth-brand{flex:1 1 auto!important;min-width:0!important;font:700 16px/1.25 system-ui!important;color:#fff0cf!important;white-space:normal!important;overflow:visible!important;word-break:normal!important;padding:2px 0!important;margin:0!important}
html body.rz-cloth-studio:has(#cr-cloth-ui) .top-navbar .rz-cloth-brand small{display:block!important;font:500 10px/1.2 system-ui!important;letter-spacing:1.5px!important;color:#dfbf79!important;margin-bottom:3px!important}
html body.rz-cloth-studio:has(#cr-cloth-ui) #cr-cloth-ui,
html body.rz-cloth-studio:has(#cr-cloth-ui) #cr-cloth-ui>.card-body,
html body.rz-cloth-studio:has(#cr-cloth-ui) #crClothTableWrap{background-color:#fff4e3!important}
html body.rz-cloth-studio:has(#cr-cloth-ui) #clothMasterTable>thead>tr>th{background:#681c2b!important;color:#f7dfaa!important;border-color:#c7a45b!important}
html body.rz-cloth-studio:has(#cr-cloth-ui) #clothMasterTable th :is(.filter-icon,.sort-icon){background:#fff0d8!important;color:#681c2b!important;border-color:#c7a45b!important}
html body.rz-cloth-studio:has(#cr-cloth-ui) #clothMasterTable th :is(.filter-icon,.sort-icon) i{color:#681c2b!important}
html body.rz-cloth-studio:has(#cr-cloth-ui) #clothMasterTable tbody tr:nth-child(odd)>td:not(.cr-source-cell):not([data-cr-manual="1"]){background:#fff4e3!important;--bs-table-bg:#fff4e3!important;--bs-table-accent-bg:transparent!important;--bs-table-bg-type:transparent!important;--bs-table-bg-state:transparent!important}
html body.rz-cloth-studio:has(#cr-cloth-ui) #clothMasterTable tbody tr:nth-child(even)>td:not(.cr-source-cell):not([data-cr-manual="1"]){background:#f1e2c9!important;--bs-table-bg:#f1e2c9!important;--bs-table-accent-bg:transparent!important;--bs-table-bg-type:transparent!important;--bs-table-bg-state:transparent!important}
html body.rz-cloth-studio:has(#cr-cloth-ui) #clothMasterTable tbody tr:is(.selected,.table-active)>td{background:#e8d0a5!important}
@media(max-width:768px){
html.cr-gold-pages body:not(.rz-cloth-studio) :is(.main-content,.content-wrapper,.container-fluid){min-width:0;max-width:100%;box-sizing:border-box;padding-left:6px!important;padding-right:6px!important}
html body .top-navbar .navbar-right{gap:6px!important}
}

/* CR_MEDIUM_TABLE_BORDERS_V1 */
html body .table{
 --bs-table-border-color:#bda574;
}
html body .table>thead>tr>th,
html body .table>tbody>tr>td,
html body .table>tfoot>tr>td{
 border-color:#bda574!important;
}
html body.rz-cloth-studio:has(#cr-cloth-ui) #clothMasterTable th,
html body.rz-cloth-studio:has(#cr-cloth-ui) #clothMasterTable td{
 border-right:1.5px solid #bda574!important;
 border-bottom:1.5px solid #bda574!important;
}
html body.rz-cloth-studio:has(#cr-cloth-ui) #clothMasterTable th{
 border-bottom:2px solid #c7a45b!important;
}
/* END CR_MEDIUM_TABLE_BORDERS_V1 */

/* CR_BODY_GRID_BOLD_V2 */
html body.rz-cloth-studio:has(#cr-cloth-ui) #clothMasterTable>tbody>tr>td{
 border-right:2px solid #b29965!important;
 border-bottom:2px solid #b29965!important;
}
html body.rz-cloth-studio:has(#cr-cloth-ui) #clothMasterTable>tbody>tr>td:first-child{
 border-left:2px solid #b29965!important;
}
/* END CR_BODY_GRID_BOLD_V2 */

/* CR_SIDEBAR_GOLD_CELLS_V1 */
html body #sidebar .sidebar-nav{
 padding:12px 10px!important;
}
html body #sidebar .sidebar-nav .nav-link{
 display:flex;align-items:center;
 gap:12px!important;
 margin:0 0 10px!important;
 padding:13px 14px!important;
 border:1px solid #b99651!important;
 border-radius:10px!important;
 background:#681c2b!important;
 color:#f7dfaa!important;
 font-weight:600!important;
 line-height:1.35!important;
 box-sizing:border-box!important;
 transition:background-color .15s,border-color .15s;
}
html body #sidebar .sidebar-nav .nav-link i{
 color:#f7dfaa!important;
}
html body #sidebar .sidebar-nav .nav-link:hover,
html body #sidebar .sidebar-nav .nav-link:focus-visible{
 background:#7b293b!important;
 border-color:#f1d18a!important;
}
html body #sidebar .sidebar-nav .nav-link:focus-visible{
 outline:2px solid #f1d18a!important;
 outline-offset:2px!important;
}
html body #sidebar .sidebar-nav .nav-link.active,
html body #sidebar .sidebar-nav .nav-link[aria-expanded="true"]{
 background:#843044!important;
 border-color:#e5c477!important;
 box-shadow:inset 3px 0 0 #e5c477!important;
}
html body #sidebar .sidebar-header{
 border-bottom:1px solid #c7a45b!important;
}
html body #sidebar .sidebar-header .sidebar-logo i{
 color:#f7dfaa!important;
}
html body #sidebar .sidebar-footer .nav-link{
 border:1px solid #b99651!important;
 border-radius:10px!important;
 margin:8px 10px!important;
}
/* END CR_SIDEBAR_GOLD_CELLS_V1 */

/* CR_SIDEBAR_FIT_CENTER_V2 */
html body #sidebar.sidebar-wrapper{
 display:flex!important;
 flex-direction:column!important;
 top:0!important;bottom:auto!important;
 height:100vh!important;height:100dvh!important;
 max-height:100dvh!important;
 min-height:0!important;
 overflow:hidden!important;
 box-sizing:border-box!important;
}
html body #sidebar .sidebar-header{
 position:relative!important;
 top:auto!important;
 flex:0 0 auto!important;
 margin:0!important;
}
html body #sidebar .sidebar-nav{
 flex:1 1 auto!important;
 min-height:0!important;
 height:auto!important;
 max-height:none!important;
 overflow-y:auto!important;
 overflow-x:hidden!important;
 padding:10px!important;
 box-sizing:border-box!important;
 -webkit-overflow-scrolling:touch;
}
html body #sidebar .sidebar-nav .nav-link,
html body #sidebar .sidebar-footer .nav-link{
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 text-align:center!important;
 gap:10px!important;
 width:100%!important;
 box-sizing:border-box!important;
}
html body #sidebar .sidebar-nav .nav-link>i{
 flex:0 0 auto!important;
 margin:0!important;
}
html body #sidebar .sidebar-nav .nav-link>span{
 flex:0 1 auto!important;
 text-align:center!important;
 margin-left:0!important;
 margin-right:0!important;
 white-space:normal!important;
}
html body #sidebar .sidebar-footer{
 position:relative!important;
 inset:auto!important;
 flex:0 0 auto!important;
 width:100%!important;
 height:auto!important;
 min-height:0!important;
 margin:0!important;
 padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;
 border-top:1px solid #c7a45b!important;
 box-sizing:border-box!important;
}
html body #sidebar .sidebar-footer .nav-link{
 min-height:44px!important;
 margin:0!important;
 padding:11px 12px!important;
 visibility:visible!important;
 opacity:1!important;
}
/* END CR_SIDEBAR_FIT_CENTER_V2 */

/* CR_TOOLS_PRO_V2 */
html body dialog.rz-tools-drawer{
 background:#eee2cf!important;
 border:1.5px solid #af925d!important;
 box-shadow:-8px 0 28px #25151b38!important;
}
html body dialog.rz-tools-drawer::backdrop{
 background:rgba(35,22,27,.42)!important;
}
html body dialog.rz-tools-drawer>header{
 background:#602332!important;color:#ead5a6!important;
 border-bottom:1.5px solid #af925d!important;
 padding:16px 18px!important;
}
html body dialog.rz-tools-drawer>header h2{
 color:#ead5a6!important;font-size:21px!important;
 font-weight:750!important;margin:0!important;
}
html body dialog.rz-tools-drawer .rz-tools-content,
html body dialog.rz-tools-drawer .rz-tools-content section{
 background:#eee2cf!important;
}
html body dialog.rz-tools-drawer .rz-tools-content{
 padding:16px!important;
}
html body dialog.rz-tools-drawer .rz-tools-content section{
 border-color:#baa47c!important;
}
html body dialog.rz-tools-drawer h3{
 color:#69533e!important;font-size:12px!important;
 font-weight:800!important;letter-spacing:.06em!important;
}
html body dialog.rz-tools-drawer :is(button,a.btn){
 display:inline-flex!important;align-items:center!important;
 justify-content:center!important;gap:7px!important;
 min-height:44px!important;padding:11px 14px!important;
 background:#e7d6b9!important;color:#602332!important;
 border:1.5px solid #aa8a53!important;
 border-radius:9px!important;
 font-size:14px!important;font-weight:750!important;
 line-height:1.3!important;text-align:center!important;
 text-decoration:none!important;
 box-shadow:0 1px 2px #49302012!important;
 box-sizing:border-box!important;
}
html body dialog.rz-tools-drawer :is(button,a.btn) :is(span,strong){
 font-weight:inherit!important;
}
html body dialog.rz-tools-drawer :is(button,a.btn):hover{
 background:#ddc7a3!important;border-color:#876734!important;
}
html body dialog.rz-tools-drawer :is(button,a.btn):focus-visible{
 outline:2px solid #987c4c!important;outline-offset:3px!important;
}
html body dialog.rz-tools-drawer :is(input,select,textarea){
 background:#f3eada!important;color:#493c32!important;
 border:1.5px solid #b49a70!important;
 border-radius:9px!important;box-shadow:none!important;
 min-height:44px!important;font-size:14px!important;
}
html body dialog.rz-tools-drawer input::placeholder{
 color:#827361!important;opacity:1!important;
}
html body dialog.rz-tools-drawer :is(
 .btn-primary,.btn-success,#searchLotBtn,#addNewBtn,
 a[href*="/create"],a[href*="/add"],
 a[href*="export"],button[id*="export" i]
){
 background:#602332!important;color:#f2dca8!important;
 border-color:#a88a57!important;font-weight:800!important;
}
html body dialog.rz-tools-drawer :is(
 .btn-primary,.btn-success,#searchLotBtn,#addNewBtn,
 a[href*="/create"],a[href*="/add"],
 a[href*="export"],button[id*="export" i]
) i{
 color:#f2dca8!important;
}
html body dialog.rz-tools-drawer :is(button,a.btn):disabled,
html body dialog.rz-tools-drawer a.btn.disabled{
 background:#e4dac9!important;color:#8c8070!important;
 border-color:#c4b395!important;box-shadow:none!important;
 opacity:1!important;
}
html body dialog.rz-tools-drawer .rz-selected-label{
 color:#796b59!important;font-size:13px!important;
}
/* END CR_TOOLS_PRO_V2 */



/* CR_RP_HEADER_VIEWPORT_V1 */
html.cr-gold-pages:has(body.rz-cloth-studio){
 height:100%!important;
 overflow:hidden!important;
}
html.cr-gold-pages body.rz-cloth-studio:has(#cr-cloth-ui){
 margin:0!important;
 height:100dvh!important;
 min-height:0!important;
 overflow:hidden!important;
}
html.cr-gold-pages body.rz-cloth-studio:has(#cr-cloth-ui) .main-content{
 height:100dvh!important;
 min-height:0!important;
 max-height:100dvh!important;
 margin-top:0!important;
 padding-top:0!important;
 overflow:hidden!important;
 display:flex!important;
 flex-direction:column!important;
}
html.cr-gold-pages body.rz-cloth-studio:has(#cr-cloth-ui) .top-navbar{
 position:sticky!important;
 top:0!important;
 flex:0 0 auto!important;
 min-height:66px!important;
 height:auto!important;
 margin-top:0!important;
 transform:none!important;
 translate:none!important;
 z-index:45!important;
}
html.cr-gold-pages body.rz-cloth-studio:has(#cr-cloth-ui) .content-wrapper{
 flex:1 1 0!important;
 min-height:0!important;
 overflow:hidden!important;
}
html.cr-gold-pages body.rz-cloth-studio:has(#cr-cloth-ui) #crClothTableWrap{
 min-height:0!important;
 overflow:auto!important;
 overscroll-behavior-y:contain!important;
}
/* END CR_RP_HEADER_VIEWPORT_V1 */

/* CR_TOOLS_HANDLE_FLUSH_V4 */
html body.rz-cloth-studio:has(#cr-cloth-ui) button.rz-tools-handle{
 display:block!important;
 position:fixed!important;
 top:50%!important;right:0!important;left:auto!important;
 width:18px!important;min-width:18px!important;max-width:18px!important;
 height:84px!important;min-height:84px!important;
 margin:0!important;padding:0!important;
 transform:translateY(-50%)!important;translate:none!important;
 background:transparent!important;background-image:none!important;
 border:0!important;outline:0!important;
 border-radius:0!important;box-shadow:none!important;
 pointer-events:auto!important;touch-action:pan-y!important;
 z-index:100!important;
}
html body.rz-cloth-studio:has(#cr-cloth-ui) button.rz-tools-handle::before{
 content:""!important;display:block!important;
 position:absolute!important;
 top:6px!important;bottom:6px!important;
 right:0!important;left:auto!important;
 width:7px!important;min-width:7px!important;height:auto!important;
 margin:0!important;padding:0!important;
 transform:none!important;
 background:#b18b43!important;
 border:0!important;
 border-radius:5px 0 0 5px!important;
 box-shadow:inset 1px 0 0 #dec38a!important;
}
html body.rz-cloth-studio:has(#cr-cloth-ui) button.rz-tools-handle::after{
 content:none!important;display:none!important;
}
html body.rz-cloth-studio:has(#cr-cloth-ui) button.rz-tools-handle:focus-visible::before{
 background:#815d23!important;
}
/* END CR_TOOLS_HANDLE_FLUSH_V4 */

/* CR_CLOTH_PEACH_ROWS_V1 */
html.cr-cloth-preserved body.rz-cloth-studio:has(#cr-cloth-ui) #crClothTableWrap #clothMasterTable>tbody>tr:nth-child(odd)>td{
 background-color:#fff4e3!important;
 --bs-table-bg:#fff4e3!important;
 --bs-table-accent-bg:transparent!important;
 --bs-table-bg-type:transparent!important;
 --bs-table-bg-state:transparent!important;
}
html.cr-cloth-preserved body.rz-cloth-studio:has(#cr-cloth-ui) #crClothTableWrap #clothMasterTable>tbody>tr:nth-child(even)>td{
 background-color:#f1e2c9!important;
 --bs-table-bg:#f1e2c9!important;
 --bs-table-accent-bg:transparent!important;
 --bs-table-bg-type:transparent!important;
 --bs-table-bg-state:transparent!important;
}
html.cr-cloth-preserved body.rz-cloth-studio:has(#cr-cloth-ui) #crClothTableWrap #clothMasterTable>tbody>tr:is(.selected,.table-active)>td{
 background-color:#e8d0a5!important;
}
/* END CR_CLOTH_PEACH_ROWS_V1 */

/* CR_CLOTH_TOUCH_FIX_V3 */
html.cr-cloth-preserved body.rz-cloth-studio:has(#cr-cloth-ui) #crClothTableWrap{
 overflow:auto!important;
 scroll-behavior:auto!important;
 touch-action:pan-x pan-y pinch-zoom!important;
 -webkit-overflow-scrolling:touch;
 scroll-snap-type:none!important;
}
html.cr-cloth-preserved body.rz-cloth-studio:has(#cr-cloth-ui) #crClothTableWrap #clothMasterTable,
html.cr-cloth-preserved body.rz-cloth-studio:has(#cr-cloth-ui) #crClothTableWrap #clothMasterTable :is(thead,tbody,tr,th,td,img,span,small,strong){
 touch-action:pan-x pan-y pinch-zoom!important;
}
html.cr-cloth-preserved body.rz-cloth-studio:has(#cr-cloth-ui) #crClothTableWrap #clothMasterTable img{
 -webkit-user-drag:none;
}
html.cr-cloth-preserved body.rz-cloth-studio:has(#cr-cloth-ui) #crClothTableWrap #clothMasterTable>thead,
html.cr-cloth-preserved body.rz-cloth-studio:has(#cr-cloth-ui) #crClothTableWrap #clothMasterTable>thead>tr{
 height:auto!important;min-height:0!important;max-height:none!important;
}
html.cr-cloth-preserved body.rz-cloth-studio:has(#cr-cloth-ui) #crClothTableWrap #clothMasterTable>thead>tr>th{
 height:auto!important;min-height:0!important;max-height:none!important;
 padding:7px 6px!important;line-height:1.25!important;
 vertical-align:middle!important;
}
html.cr-cloth-preserved body.rz-cloth-studio:has(#cr-cloth-ui) #crClothTableWrap #clothMasterTable th>span:first-child{
 margin-bottom:4px!important;
}
html.cr-cloth-preserved body.rz-cloth-studio:has(#cr-cloth-ui) #crClothTableWrap #clothMasterTable th :is(.filter-icon,.sort-icon){
 width:26px!important;height:26px!important;
 min-width:26px!important;min-height:26px!important;
 padding:0!important;margin:2px!important;
}
/* END CR_CLOTH_TOUCH_FIX_V3 */
