/* Internal pages and document details */
.ux-ready.v2-ready .ux-page-heading{padding-bottom:18px;border-bottom:1px solid #e5d8c3}
.ux-ready.v2-ready .v2-stat{border-color:#e4d7c3;border-radius:14px;background:#fffdfa}
.ux-ready.v2-ready .v2-stat:nth-child(1){border-top-color:#67421e}.ux-ready.v2-ready .v2-stat:nth-child(2){border-top-color:#b88c50}.ux-ready.v2-ready .v2-stat:nth-child(3){border-top-color:#d7c1a0}
.ux-ready.v2-ready .v2-stat strong{color:#402b14}.ux-ready.v2-ready .v2-stat small,.ux-ready.v2-ready .v2-stat span,.v2-caption{color:#78634b}
.ux-ready.v2-ready .v2-primary-cell{color:#493017!important}
.v2-table-toolbar{border-bottom-color:#e7dac6}.v2-table-toolbar>span,.v2-date-control label{color:#78634b}
.v2-table-toolbar button,.v2-actions summary{background:#fffcf7;border-color:#dcc9ac;color:#73522e}
.v2-table-toolbar button[aria-pressed=true],.v2-actions[open] summary{background:#f2e5d0;border-color:#c3a06d;color:#60401e}
.ux-ready.v2-ready .v2-view{background:#f6ecd9!important;border:1px solid #dac09a!important;color:#67421e!important}
.v2-record-header{background:#f7efdf;border-color:#e0c9a6;border-inline-start:4px solid #ac7e42}
.v2-record-header h2{color:#442d15}.v2-record-header small{color:#78634b}
.v2-live-summary,.ux-ready .ux-sale-review{background:#fbf6ec!important;border-color:#d9c5a5!important;color:#513718}
.ux-ready .ux-detail-grid>div{background:#faf6ee;border-color:#e7dac7}
.ux-ready .ux-settings-tablist button{color:#705637;border-color:#ded0bc}.ux-ready .ux-settings-tablist button[aria-selected=true]{border-color:#ab824a;background:#f3e7d3;color:#543716}
.ux-ready .modal-backdrop{background:rgba(45,30,13,.62)!important}
.ux-ready .modal-backdrop>div{border:1px solid #dfd0b9;color:#3e2c17!important}
.ux-ready .ux-dialog-head{background:#fcf7ed!important;border-bottom:1px solid #e4d3b9}
.ux-ready .ux-dialog-body{background:#fffdf9!important}
/* Consistent secondary and destructive controls */
.ux-ready .v2-action-list button:not([class*="red"]):not([class*="rose"]){border-color:#dfcbaa}
.ux-ready button[class*="bg-sky-"],.ux-ready button[class*="bg-blue-"],.ux-ready button[class*="bg-teal-"]{background:#67421e!important;color:white!important}
.ux-ready button[class*="bg-red-"],.ux-ready button[class*="bg-rose-"]{background:#a7363f!important;color:#fff!important}
/* Empty data, feedback, loading and confirmation */
.ux-ready .ux-empty,.ux-ready .ux-table-empty td,.ops-empty{padding:30px 20px!important;text-align:center;color:#776146;background:#fcf8f0;border-radius:12px;line-height:2}
.ops-empty:before{content:'◇';display:block;font-size:28px;color:#a17b43;margin-bottom:8px}
.ux-ready #toastBanner{background:#3f2a12!important;color:#fff8eb!important;border:1px solid #c9a56d!important;box-shadow:0 8px 24px #38200624!important;max-width:calc(100vw - 32px);line-height:1.9}
.ux-ready #erpConfirm>div{background:#fffdf8!important;border:1px solid #d7bf9c;border-top:4px solid #aa7d40}
.ux-ready #erpConfirm h2{color:#493014}.ux-ready #erpConfirm p{color:#6e573c;line-height:1.9}
.ux-ready #erpConfirm button[data-yes]{background:#67421e!important;color:#fff!important;border:1px solid #67421e}
.ux-ready #erpConfirm button[data-no]{background:#fff!important;color:#67421e!important;border:1px solid #d9c3a0}
#extStatus[aria-busy=true],#opsStatus[aria-busy=true]{color:#67421e;background:#faf0df;border:1px solid #e0cba8;border-radius:10px}
[data-brand-loading=true]:before{content:'';display:inline-block;width:16px;height:16px;margin-inline-end:10px;border:2px solid #ddc9a8;border-top-color:#79522a;border-radius:50%;vertical-align:middle;animation:brand-spin .8s linear infinite}
@keyframes brand-spin{to{transform:rotate(360deg)}}
.brand-document-footer{border-top:1px solid #d9c8ac;padding-top:10px;margin-top:24px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:10px;color:#796244;break-inside:avoid}
#printableArea .brand-document-footer{background:white}
@media(max-width:599px){.ux-ready.v2-ready .ux-page-heading{padding-bottom:12px;margin-bottom:16px}.ux-ready.v2-ready .v2-stat{padding:14px}.ux-ready #erpConfirm>div{padding:22px!important}.ux-ready #erpConfirm button{min-height:44px}.v2-record-header{padding:16px;gap:10px;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){[data-brand-loading=true]:before{animation:none}}
@media print{#printableArea .brand-document-footer{color:#555;border-color:#aaa}#printableArea .rounded-xl{border-color:#d9c8ac!important}#printableArea table{font-size:11px!important}}
