/* R5 OPS000-2 shared UI, loaded last by the console and every program page. The prototype sheets carry
   html[data-vp08-role] body :is(input:not()…) rules with !important (specificity 0,6,2); each rule here is scoped under
   body:not(#_):not(#_) (2,1,2 plus its own part), so it outranks them without touching their other properties. */

/* OPS000-2-1103-001-Kelly: one focus border for every field, 1px #6742d6 by day and 1px #f2a73b at night, no extra ring.
   A field marked invalid shows its error border again once it loses focus. */
html[data-vp08-role] body:not(#_):not(#_) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea):not([aria-invalid="true"]):not(.is-error):focus{border:1px solid #6742d6!important;box-shadow:none!important;outline:none!important}
html[data-vp08-role][theme="dark"] body:not(#_):not(#_) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea):not([aria-invalid="true"]):not(.is-error):focus{border-color:#f2a73b!important}
/* R27: a focused invalid field takes the same 1px focus border (C37/C38 kept the red error border while focused), no extra
   ring (C36 drew the prototype's 2px outline 2px outside a focused invalid date, e.g. UC002 注册时间止 after a reverse range).
   Its specificity is above the trailing .ops-date > .ops-date-text[aria-invalid] error rule, so that rule applies only unfocused. */
html[data-vp08-role] body:not(#_):not(#_) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea):is([aria-invalid="true"], .is-error):focus{border:1px solid #6742d6!important;box-shadow:none!important;outline:none!important}
html[data-vp08-role][theme="dark"] body:not(#_):not(#_) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea):is([aria-invalid="true"], .is-error):focus{border-color:#f2a73b!important}
/* The same 1px line for the other focusable controls (查询, 更多筛选, page buttons, icon and link buttons) when reached by
   keyboard: drawn on the control's own edge (outline-offset -1px), so a bordered button shows a 1px focus border and nothing
   grows; the earlier 2px outline/ring is gone. This includes the login page's 显示密码 eye and 登录 button (their 2px gold
   ring in shell.css is replaced); their size, layout and colours stay as the closed login design. */
html[data-vp08-role] body:not(#_):not(#_) :is(button, a[href], summary, [tabindex]:not([tabindex="-1"]):not(input):not(select):not(textarea)):focus-visible{border-color:#6742d6!important;outline:1px solid #6742d6!important;outline-offset:-1px!important;box-shadow:none!important}
html[data-vp08-role][theme="dark"] body:not(#_):not(#_) :is(button, a[href], summary, [tabindex]:not([tabindex="-1"]):not(input):not(select):not(textarea)):focus-visible{border-color:#f2a73b!important;outline-color:#f2a73b!important}
/* R27 native controls left out above (C38 kept the prototype's 2px outline): a bordered file field (SD009 选择CSV文件) takes the
   field's 1px focus border; a visually hidden file input (TC004 导入, .tc-file inside the .tc-drop box) shows the 1px line on
   the box it belongs to; a range (TC002 回放进度) gets a 1px outline. */
html[data-vp08-role] body:not(#_):not(#_) input[type="file"]:focus{border:1px solid #6742d6!important;outline:none!important;box-shadow:none!important}
html[data-vp08-role][theme="dark"] body:not(#_):not(#_) input[type="file"]:focus{border-color:#f2a73b!important}
html[data-vp08-role] body:not(#_):not(#_) .tc-drop:has(> .tc-file:focus-visible){border:1px solid #6742d6!important;outline:none!important;box-shadow:none!important}
html[data-vp08-role][theme="dark"] body:not(#_):not(#_) .tc-drop:has(> .tc-file:focus-visible){border-color:#f2a73b!important}
html[data-vp08-role] body:not(#_):not(#_) input[type="range"]:focus-visible{outline:1px solid #6742d6!important;box-shadow:none!important}
html[data-vp08-role][theme="dark"] body:not(#_):not(#_) input[type="range"]:focus-visible{outline-color:#f2a73b!important}

/* SD009-1103-001-Kian: a radio or check box shows no extra ring (the prototype's 2px focus outline drew an ellipse around a
   picked radio); its own checked mark in the theme colour stays. */
html[data-vp08-role] body:not(#_):not(#_) input:is([type="radio"], [type="checkbox"]):is(:focus, :focus-visible){outline:none!important;box-shadow:none!important}
html[data-vp08-role] body:not(#_):not(#_) input:is([type="radio"], [type="checkbox"]){accent-color:var(--mf-color-primary)}

/* OPS000-2-1103-001-Ding: one thin drop-down chevron (12px, 1.5 stroke, muted colour, 8px from the right, centred). */
html[data-vp08-role] body:not(#_):not(#_) select:not([multiple]):not([size]){appearance:none!important;-webkit-appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%238F87AB' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 8px center!important;background-size:12px 12px!important;padding-right:26px!important}
html[data-vp08-role] body:not(#_):not(#_) .uc-chevron{width:12px!important;height:12px!important;stroke:#8F87AB!important;stroke-width:1.5!important}
/* UC002 更多筛选's own chevron sits where a select's does: 8px inside the 1px border, 9px from the outer edge (C37 had the
   button's 10px padding, 11px). */
html[data-vp08-role] body:not(#_):not(#_) #ucMore{padding-right:8px!important}

/* OPS000-2-1103-002-Ding: list headers in the standard light weight, 11px, muted colour. */
html[data-vp08-role] body:not(#_):not(#_) table > thead > tr > th,
html[data-vp08-role] body:not(#_):not(#_) table > thead > tr > th :is(button, span, a){font-weight:400!important;color:var(--mf-color-text-3)!important;font-size:11px!important}

/* SD003-1103-001-DT (and every list at night): the header row uses the theme's section colour, cell lines the theme's border,
   so no light header or light row lines remain in the dark theme. */
html[data-vp08-role][theme="dark"] body:not(#_):not(#_) table > thead > tr > th{background-color:var(--mf-color-bg-section-1)!important;border-color:var(--mf-color-border)!important}
html[data-vp08-role][theme="dark"] body:not(#_):not(#_) table > tbody > tr > td{border-color:var(--mf-color-border)!important}

/* OPS000-2-1103-001-DT: every list highlights the hovered data row in both themes with the theme's hover colour
   (night #202637 on the #171B25 page). A single message row (empty, loading, failure) is no data row. */
html[data-vp08-role] body:not(#_):not(#_) table > tbody > tr:not(:has(> td[colspan])):hover > td{background-color:var(--mf-color-bg-hover)!important}

/* OPS000-2-1103-002-Wendy: one clear button for search fields, a thin muted ×, vertically centred. */
html[data-vp08-role] body:not(#_):not(#_) input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none!important;appearance:none!important;width:16px;height:16px;margin:0 0 0 4px;cursor:pointer;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 4.5 7 7m0-7-7 7' fill='none' stroke='%238F87AB' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/12px 12px no-repeat}
html[data-vp08-role] body:not(#_):not(#_) .uc-clear{top:50%!important;transform:translateY(-50%)!important;width:16px!important;height:16px!important;font-size:0!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 4.5 7 7m0-7-7 7' fill='none' stroke='%238F87AB' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/12px 12px no-repeat!important}

/* OPS000-2-1103-005-Wendy: one thin purple scrollbar everywhere. */
html[data-vp08-role], html[data-vp08-role] *{scrollbar-width:thin!important;scrollbar-color:rgba(103,66,214,.5) transparent!important}
html[data-vp08-role][theme="dark"], html[data-vp08-role][theme="dark"] *{scrollbar-color:rgba(140,115,230,.6) transparent!important}
/* The stock pages' narrow-width rule (sd003.css, ≤1100px) asked for the default scrollbar; it stays thin and purple there too. */
html[data-vp08-role] body:not(#_):not(#_), html[data-vp08-role] body:not(#_):not(#_) *{scrollbar-width:thin!important;scrollbar-color:rgba(103,66,214,.5) transparent!important}
html[data-vp08-role][theme="dark"] body:not(#_):not(#_), html[data-vp08-role][theme="dark"] body:not(#_):not(#_) *{scrollbar-color:rgba(140,115,230,.6) transparent!important}

/* OPS000-2-1103-003-Ding: every pager laid out as 系统用户: right-aligned in one row, 43px high, top line, 12px muted text,
   26px controls with 6px corners and 6px gaps; 共 N 条 stays in the row. */
html[data-vp08-role] body:not(#_):not(#_) :is(.gft14-pager, .uc-pager, .syu-pager)[hidden]{display:none!important}
html[data-vp08-role] body:not(#_):not(#_) :is(.gft14-pager, .uc-pager, .syu-pager):not([hidden]){display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:6px!important;min-height:43px!important;padding:0 12px!important;border-top:1px solid var(--mf-color-border)!important;font-size:12px!important;color:var(--mf-color-text-2)!important;white-space:nowrap}
/* Texts (共 N 条, 每页, 条, page, 跳至, 页) as 系统用户's .syu-caption: 11px, muted, regular, 6px from the controls beside them
   (C36 had 12px, a darker total and an accent-coloured page). */
html[data-vp08-role] body:not(#_):not(#_) :is(.gft14-pager, .uc-pager-controls) > :is(.gft14-total, .gft14-page-info, .uc-pager-current, label, span){margin:0!important;font-size:11px!important;color:var(--mf-color-text-3)!important;font-weight:400!important}
html[data-vp08-role] body:not(#_):not(#_) :is(.gft14-pager, .uc-pager-controls) > label{display:inline-flex!important;align-items:center!important;gap:6px!important}
/* The page text is only as wide as its text, so it sits 6px from 上一页/下一页 as 系统用户's (C37 kept sd003.css's 42px
   centred minimum: about 9px each side for "1 / 3 页"). */
html[data-vp08-role] body:not(#_):not(#_) .gft14-pager > .gft14-page-info{min-width:0!important}
html[data-vp08-role] body:not(#_):not(#_) .uc-pager{background:var(--mf-color-bg-container)!important}
/* 每页 select 57px and 跳至 field 46px with 4px inner padding, as 系统用户 (the select keeps the shared chevron's right padding). */
html[data-vp08-role] body:not(#_):not(#_) :is(.gft14-pager, .uc-pager-controls) select{width:57px!important;min-width:57px!important;max-width:57px!important;padding-left:4px!important}
html[data-vp08-role] body:not(#_):not(#_) :is(.gft14-pager, .uc-pager-controls) input{width:46px!important;min-width:46px!important;max-width:46px!important;padding:0 4px!important}
html[data-vp08-role] body:not(#_):not(#_) :is(.gft14-pager, .uc-pager-controls, .syu-pager) :is(button, select, input){height:26px!important;min-height:26px!important;font-size:12px!important;border-radius:6px!important}
html[data-vp08-role] body:not(#_):not(#_) :is(.gft14-pager, .uc-pager-controls, .syu-pager) button{padding:0 10px!important}
html[data-vp08-role] body:not(#_):not(#_) .uc-pager-controls{gap:6px!important;font-size:12px!important}
/* Page buttons look as 系统用户's (shell.css .syu-btn): theme line, container background, main text, 500 weight; a disabled
   one is the same button at .42 opacity (C36 had purple 确定 text, other text/line colours and a grey disabled fill). */
html[data-vp08-role] body:not(#_):not(#_) :is(.gft14-pager, .uc-pager-controls) button{border:1px solid var(--mf-color-border-2)!important;background:var(--mf-color-bg-container)!important;color:var(--mf-color-text-1)!important;font-weight:500!important;opacity:1}
html[data-vp08-role] body:not(#_):not(#_) :is(.gft14-pager, .uc-pager-controls) button:disabled{opacity:.42!important}
html[data-vp08-role] body:not(#_):not(#_) :is(.gft14-pager, .uc-pager-controls) button:not(:disabled):hover{border-color:var(--mf-color-primary)!important;color:var(--mf-color-primary)!important}

/* OPS000-2-1103-004-Ding: one date control (date-field.js): yyyy/mm/dd text with the calendar icon on the right; the original
   date input stays hidden under the icon and only opens the browser's picker. UC002's 注册时间 uses the same icon. */
html[data-vp08-role] body:not(#_):not(#_) .ops-date{position:relative;display:inline-flex;align-items:center;min-width:0;max-width:100%}
html[data-vp08-role] body:not(#_):not(#_) .ops-date > .ops-date-text{flex:1 1 auto;padding-right:30px!important;min-width:0}
/* Every date field is 34px, the verified filter height (SM004/SM006/TC002 toolbars); UC002's dates follow in uc002.css. */
html[data-vp08-role] body:not(#_):not(#_) .ops-date > .ops-date-text{height:34px!important;min-height:34px!important;max-height:34px!important;box-sizing:border-box!important}
/* SD009-1103-001-Kelly: 单日修改's 查询 sits 10px right of the date at the same 34px height (C16 measured 30px beside 34px). */
html[data-vp08-role] body:not(#_):not(#_) .day-edit-query > button{height:34px!important;min-height:34px!important;box-sizing:border-box!important}
html[data-vp08-role] body:not(#_):not(#_) :is(.sb-field, .sd009-field, form) > .ops-date{display:flex;width:100%}
html[data-vp08-role] body:not(#_):not(#_) .ops-date > .ops-date-native{position:absolute!important;right:6px!important;bottom:0!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important}
html[data-vp08-role] body:not(#_):not(#_) :is(.ops-date-icon, .uc-date-icon){position:absolute;right:8px;top:50%;transform:translateY(-50%);width:16px;height:16px;padding:0;border:0;cursor:pointer;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2.5' y='3.5' width='11' height='10' rx='1.5' fill='none' stroke='%238F87AB' stroke-width='1.2'/%3E%3Cpath d='M2.5 6.5h11M5.5 2v3M10.5 2v3' fill='none' stroke='%238F87AB' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px 14px no-repeat!important}
html[data-vp08-role] body:not(#_):not(#_) .uc-date::after{content:""!important;top:50%!important;right:8px!important;width:16px;height:16px;transform:translateY(-50%);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2.5' y='3.5' width='11' height='10' rx='1.5' fill='none' stroke='%238F87AB' stroke-width='1.2'/%3E%3Cpath d='M2.5 6.5h11M5.5 2v3M10.5 2v3' fill='none' stroke='%238F87AB' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px 14px no-repeat}
html[data-vp08-role] body:not(#_):not(#_) .uc-date > .uc-date-native{top:50%!important;transform:translateY(-50%)}
html[data-vp08-role] body:not(#_):not(#_) .ops-date > .ops-date-text:disabled + .ops-date-icon{cursor:default;opacity:.5}
html[data-vp08-role] body:not(#_):not(#_) .ops-date > .ops-date-text[aria-invalid="true"]{border-color:var(--mf-color-error)!important}

/* OPS000-2-1104-005-DT: every dialog mask as 优惠券「新增优惠券」 (both themes). */
html[data-vp08-role] body:not(#_):not(#_) dialog::backdrop{background:color-mix(in srgb, var(--mf-color-text-1) 32%, transparent)!important;backdrop-filter:blur(2px)!important}
html[data-vp08-role] body:not(#_):not(#_) :is(.c1-mask, .syu-confirm-overlay){background:color-mix(in srgb, var(--mf-color-text-1) 32%, transparent)!important;backdrop-filter:blur(2px)!important}

/* OPS000-2-1103-006-Wendy: a page shown without the console (the TC002 复盘 window) keeps its own message box; it looks and
   sits as the console's (app.css .syu-toast): top centre of the page, white with black text, 1px line, rounded. Inside the
   console every program's message already goes to the console's box (frame.js pageToast). */
html[data-vp08-role] body:not(#_):not(#_) :is(.c1-toast, .toast, .sd003-toast){top:20px!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;background:#fff!important;color:#000!important;border:1px solid #e5e6eb!important;border-radius:8px!important;max-width:min(560px, calc(100vw - 40px))!important;text-align:center!important;z-index:2147483000!important}

/* UC002-1103-001-Tong: the business user ID is shown in full (never cut) with a bare copy icon (user-id.js). */
html[data-vp08-role] body:not(#_):not(#_) .user-id-copy{border:0!important;background:transparent!important;box-shadow:none!important;min-width:0!important;height:auto!important;padding:0 2px!important;margin-left:4px!important;color:var(--mf-color-text-3)!important;cursor:pointer;font-size:12px!important;line-height:1!important;vertical-align:baseline}
html[data-vp08-role] body:not(#_):not(#_) .user-id-copy:hover{color:var(--mf-color-primary)!important}
html[data-vp08-role] body:not(#_):not(#_) .user-id-full{white-space:nowrap;overflow:visible!important;text-overflow:clip!important}
