/* 站内反馈：清晰对比、窄屏适配；危险操作保留独立确认。 */
.field-error{margin:6px 0 12px!important;color:#a23b30!important;font-size:13px!important;line-height:1.6!important;overflow-wrap:anywhere}
[aria-invalid="true"]{border-color:#b65046!important;outline-color:#b65046!important}
.admin-action-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:460px;max-height:85dvh;margin:auto;padding:0;border:1px solid #dbe5e8;border-radius:18px;background:#fff;color:#173747;overflow:auto;box-shadow:0 20px 80px #102f4533}
.admin-action-dialog::backdrop{background:#102f4566;backdrop-filter:blur(3px)}
.admin-action-dialog .admin-action-sheet{padding:24px}
.admin-action-dialog h2{margin:0 0 14px;font-size:19px}
.admin-action-dialog p{line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.admin-action-dialog textarea{box-sizing:border-box;width:100%;margin-top:8px;padding:12px;border:1px solid #cbd9df;border-radius:10px;resize:vertical;font:inherit;color:#173747;background:#fff}
.admin-action-dialog .admin-action-buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.admin-action-dialog button{min-height:42px;min-width:88px;padding:10px 18px;border:1px solid #d2dfe4;border-radius:10px;background:#f5f8fa;color:#173747;font:inherit;cursor:pointer}
.admin-action-dialog button.primary{background:#173e4b;color:white;border-color:#173e4b}
.admin-action-dialog button.danger{background:#a33c34;color:white;border-color:#a33c34}
#adminToast.admin-toast{position:fixed!important;inset:24px 20px auto auto!important;box-sizing:border-box;max-width:min(440px,calc(100vw - 40px));width:max-content;margin:0;padding:15px 20px;border:1px solid #cbdedc;border-left:4px solid #24836f;border-radius:12px;background:#fff;color:#173747;font-size:14px;line-height:1.65;box-shadow:0 10px 38px #102e4026;z-index:2147483647;pointer-events:none;white-space:pre-wrap;overflow-wrap:anywhere}
#adminToast[data-type="error"]{border-left-color:#b65046;background:#fff8f6;color:#8d3029}
#adminToast:not(.show){visibility:hidden}

/* Delivery tables have no selection column: do not inherit the 44px checkbox width. */
[data-panel="orders"] .table-wrap:has(>table.delivery-order-table){overflow-x:auto;max-width:100%}
[data-panel="orders"] table.delivery-order-table{table-layout:fixed;width:100%;min-width:1160px}
[data-panel="orders"] table.delivery-order-table th{white-space:nowrap;width:auto}
[data-panel="orders"] table.delivery-order-table th:first-child{width:240px}
[data-panel="orders"] table.delivery-order-table th:nth-child(2){width:280px}
[data-panel="orders"] table.delivery-order-table th:nth-child(3){width:130px}
[data-panel="orders"] table.delivery-order-table th:nth-child(4){width:180px}
[data-panel="orders"] table.delivery-order-table th:last-child{width:140px}
[data-panel="orders"] table.delivery-order-table td{overflow-wrap:anywhere;word-break:normal;line-height:1.65}
[data-panel="orders"] table.delivery-order-table td code{display:block;white-space:normal;overflow-wrap:anywhere}
