/* Internal pages and document details */
.ux-ready.v2-ready .ux-page-heading{padding-bottom:18px;border-bottom:1px solid #e2e8f0}
.ux-ready.v2-ready .v2-stat{border-color:#e2e8f0;border-radius:14px;background:#ffffff}
.ux-ready.v2-ready .v2-stat:nth-child(1){border-top-color:#1a73e8}.ux-ready.v2-ready .v2-stat:nth-child(2){border-top-color:#3b82f6}.ux-ready.v2-ready .v2-stat:nth-child(3){border-top-color:#cbd5e1}
.ux-ready.v2-ready .v2-stat strong{color:#1e293b}.ux-ready.v2-ready .v2-stat small,.ux-ready.v2-ready .v2-stat span,.v2-caption{color:#64748b}
.ux-ready.v2-ready .v2-primary-cell{color:#1e293b!important}
.v2-table-toolbar{border-bottom-color:#e2e8f0}.v2-table-toolbar>span,.v2-date-control label{color:#64748b}
.v2-table-toolbar button,.v2-actions summary{background:#ffffff;border-color:#cbd5e1;color:#1a73e8}
.v2-table-toolbar button[aria-pressed=true],.v2-actions[open] summary{background:#e8f0fe;border-color:#3b82f6;color:#1a73e8}
.ux-ready.v2-ready .v2-view{background:#e8f0fe!important;border:1px solid #cbd5e1!important;color:#1a73e8!important}
.v2-record-header{background:#f5f7fa;border-color:#cbd5e1;border-inline-start:4px solid #1a73e8}
.v2-record-header h2{color:#1e293b}.v2-record-header small{color:#64748b}
.v2-live-summary,.ux-ready .ux-sale-review{background:#f5f7fa!important;border-color:#cbd5e1!important;color:#334155}
.ux-ready .ux-detail-grid>div{background:#f5f7fa;border-color:#e2e8f0}
.ux-ready .ux-settings-tablist button{color:#334155;border-color:#e2e8f0}.ux-ready .ux-settings-tablist button[aria-selected=true]{border-color:#3b82f6;background:#e8f0fe;color:#334155}
.ux-ready .modal-backdrop{background:rgba(15, 23, 42, .62)!important}
.ux-ready .modal-backdrop>div{border:1px solid #e2e8f0;color:#1e293b!important}
.ux-ready .ux-dialog-head{background:#f5f7fa!important;border-bottom:1px solid #e2e8f0}
.ux-ready .ux-dialog-body{background:#ffffff!important}
/* Consistent secondary and destructive controls */
.ux-ready .v2-action-list button:not([class*="red"]):not([class*="rose"]){border-color:#cbd5e1}
.ux-ready button[class*="bg-sky-"],.ux-ready button[class*="bg-blue-"],.ux-ready button[class*="bg-teal-"]{background:#1a73e8!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:#334155;background:#f5f7fa;border-radius:12px;line-height:2}
.ops-empty:before{content:'◇';display:block;font-size:28px;color:#1a73e8;margin-bottom:8px}
.ux-ready #toastBanner{background:#1e293b!important;color:#ffffff!important;border:1px solid #3b82f6!important;box-shadow:0 8px 24px #0f172a24!important;max-width:calc(100vw - 32px);line-height:1.9}
.ux-ready #erpConfirm>div{background:#ffffff!important;border:1px solid #cbd5e1;border-top:4px solid #1a73e8}
.ux-ready #erpConfirm h2{color:#1e293b}.ux-ready #erpConfirm p{color:#334155;line-height:1.9}
.ux-ready #erpConfirm button[data-yes]{background:#1a73e8!important;color:#fff!important;border:1px solid #1a73e8}
.ux-ready #erpConfirm button[data-no]{background:#fff!important;color:#1a73e8!important;border:1px solid #cbd5e1}
#extStatus[aria-busy=true],#opsStatus[aria-busy=true]{color:#1a73e8;background:#f5f7fa;border:1px solid #cbd5e1;border-radius:10px}
[data-brand-loading=true]:before{content:'';display:inline-block;width:16px;height:16px;margin-inline-end:10px;border:2px solid #cbd5e1;border-top-color:#1a73e8;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 #cbd5e1;padding-top:10px;margin-top:24px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:10px;color:#334155;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:#cbd5e1!important}#printableArea table{font-size:11px!important}}
