/* 批 V17 U3-b：订单管理新版 + 订单摘要抽屉（public/js/orders-u3.js）。只管 .ou3 下面的东西；颜色、字号用 core-v17-ui.css 的变量（--u-）。
 * 这个文件排在公共零件样式（core-v17-ui.css）前面（index.html 里「零件 → 外壳」两份挨着放在最后）：要盖过零件的地方多写一层类名。
 * 老订单管理页（开关关着）的样式一行不动；这里借老零件画的勾选条（Core.batchBar 的 .bt-bar / .bt-ck）只在 .ou3 里换样子。 */
.u-page.ou3 { gap: 16px; }
.ou3-card { min-width: 0; }
.ou3-bar { border-bottom: 1px solid var(--u-line); }
.ou3-bar .u-search { width: 240px; }
.ou3-bar .u-toolbar-r { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.ou3-bar #ou3-exp:empty { display: none; }

/* 更多筛选：老筛选条上其余那几项 */
.ou3-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; border-bottom: 1px solid var(--u-line); background: var(--u-surface-head); }
.ou3-more[hidden] { display: none; }
.ou3-date { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--u-control); border-radius: 8px; background: var(--u-surface); font-size: 13px; color: var(--u-ink-2); box-sizing: border-box; }
.ou3-date input[type=date] { border: 0; outline: 0; height: 28px; padding: 0; font-size: 13px; font-family: inherit; background: none; color: var(--u-ink); width: 124px; box-shadow: none; }
/* 批 V19 V19-16（#468）：日期组件 datepicker.js 把这两格换成 type=text class=dp-input（自带边框、最小宽 150、右边留 32 放日历图标），上面那条对不上 → 两格各带框、整组撑宽、右边那格出外框。
 *   照上一条去边框、定宽 124、最小宽 0；日历小图标留着，挪到格子最右、缩到 14。app.css 全站输入框那条（input:not(…)×7）比这里重，边框 / 高 / 底色 / 阴影带 !important。
 *   选择器前面多带一级 .ou3-more（这一组只在「更多筛选」那块里）：比全站换皮那份样式的 input.dp-input:hover / .dp-open、.field input:focus 高一级，不用进它的「让给页面」名单（用例 6454） */
.ou3-more .ou3-date input.dp-input { border: 0 !important; outline: 0; height: 28px !important; padding: 0 20px 0 0 !important; font-size: 13px; font-family: inherit; background-color: transparent !important; color: var(--u-ink); width: 124px; min-width: 0; box-shadow: none !important; background-position: right 2px center; background-size: 14px 14px; }
/* 批 V19 V19-16（#468，审核方 10:1x 要看手机 390）：手机上俄文「Дата договора」+ 两格放不进一行（会挤出右边留白）→ 标签自占一行、两格在下面一行（各 124 照旧） */
@media (max-width: 767px) { .ou3-date { flex-wrap: wrap; height: auto; min-height: 32px; padding: 4px 10px; max-width: 100%; } .ou3-date > span:first-child { flex-basis: 100%; white-space: nowrap; } }
.ou3-more .u-link { font-size: 13px; font-weight: 500; }

/* 从别处带进来的筛选说明 */
.ou3-note { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--u-brand-soft); border-bottom: 1px solid var(--u-line); font-size: 13px; line-height: 20px; color: var(--u-ink); }
.ou3-note[hidden] { display: none; }
.ou3-note > .u-ic { color: var(--u-brand); flex: none; }
.ou3-note .u-link { font-weight: 500; margin-left: 4px; }

/* 勾了几张：筛选条收起，露出批量那一条（Core.batchBar 画的） */
.ou3-batch { display: none; }
.ou3-card.sel .ou3-bar, .ou3-card.sel .ou3-more { display: none; }
.ou3-card.sel .ou3-batch { display: block; padding: 10px 16px; background: var(--u-brand-soft); border-bottom: 1px solid var(--u-line); }
.ou3-batch .bt-bar { margin: 0 !important; gap: 12px !important; font-size: 14px; line-height: 22px; color: var(--u-ink); }
.ou3-batch .bt-bar > .small:first-child { font-size: 14px; font-weight: 600; }
.ou3-batch .bt-bar a.small { font-size: 13px; color: var(--u-brand); font-weight: 500; cursor: pointer; }
.ou3-batch .bt-bar .btn { min-height: 32px; padding: 4px 12px; }   /* 批 V18 V18-33 B（审核方 #365，Mike 19:08）：批量条用小号 32，样子照通用别名（原来自己写高、字、颜色） */

/* 表 */
.u-tbl.ou3-tbl > tbody > tr > td.bt-ck, .u-tbl.ou3-tbl > thead > tr > th.bt-ck { width: 44px !important; padding: 0 0 0 16px; }
.ou3-tbl .bt-ck input { width: 16px; height: 16px; margin: 0; accent-color: var(--u-brand); cursor: pointer; }
.u-tbl.ou3-tbl > tbody > tr.row-focus > td { background: var(--u-brand-soft); }
.u-tbl.ou3-tbl > tbody > tr:has(.bt-one:checked) > td:first-child { box-shadow: inset 3px 0 0 var(--u-brand); }   /* 勾了的行左边一道主色（照稿） */
.ou3-tbl .u-cell .m.cut, .ou3-tbl .u-cell .s.cut { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ou3-tbl .u-cell { min-width: 0; }
.ou3-late { color: var(--u-danger); font-weight: 600; }
.ou3-soon { color: var(--u-warning); font-weight: 600; }
.ou3-tbl .u-bar { display: block; margin-top: 4px; }
.ou3-tbl .ou3-pw { white-space: nowrap; }   /* 收款格的状态词（«К оплате»「未收」）不断开；俄文金额另起一行（ou3-pa，页面只在俄文时给），审核方 #273 11-16 02:12 必改 2 */
.ou3-tbl .u-cell .m:has(> .ou3-pa) { flex-wrap: wrap; }   /* 格子第一行是横排的 flex：俄文金额整行另起 */
.ou3-tbl .ou3-pa { display: block; flex: 1 0 100%; }
.ou3-total { padding: 10px 16px; border-top: 1px solid var(--u-line); font-size: 13px; line-height: 20px; color: var(--u-ink-2); }
.ou3 .u-pager { border-top: 1px solid var(--u-line); }

/* 订单摘要抽屉 */
.ou3-h2, .ou3-h3, .ou3-svcs { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; }
.ou3-h2 { gap: 6px 10px; font-size: 13px; line-height: 20px; color: var(--u-ink-2); }
.ou3-h3 { gap: 4px 24px; font-size: 13px; line-height: 20px; color: var(--u-ink-3); }
.ou3-h3 b { font-weight: 500; color: var(--u-ink); }
.ou3-svcs { gap: 6px; margin-top: 2px; }
.ou3-foot { display: inline-flex; align-items: center; gap: 8px; }
.ou3-svc { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; background: var(--u-neutral-soft); color: var(--u-neutral-ink); font-size: 12px; font-weight: 500; }
.ou3-brief { display: flex; flex-direction: column; gap: 20px; padding: 0 0 8px; }
.ou3-urgent { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--u-warning-soft); font-size: 13px; line-height: 20px; color: var(--u-ink); }
.ou3-urgent > .u-ic { color: var(--u-warning); flex: none; margin-top: 2px; }
.ou3-next { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--u-brand-line); border-radius: 12px; }
.ou3-next .k { font-size: 12px; line-height: 18px; font-weight: 600; color: var(--u-brand); }
.ou3-next .t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; }
.ou3-next .t b { font-weight: 600; color: var(--u-ink); }
.ou3-next .s { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; line-height: 20px; color: var(--u-ink-3); }
.ou3-brief .u-sec { padding: 0; margin: 0; border: 0; }
.ou3-sum { font-size: 13px; line-height: 20px; color: var(--u-ink-3); margin-left: auto; }
/* 进度：三列对齐的网格，阶段名那一列按最长的名字给宽（俄文 «Приглашение и виза» 整个放得下；最多 220，再长才省略、悬停看全文）——审核方 #273 11-16 02:12 建议 */
.ou3-prog { display: grid; grid-template-columns: minmax(72px, max-content) minmax(80px, 1fr) 52px; align-items: center; gap: 8px 12px; font-size: 13px; line-height: 20px; }
.ou3-prog .r { display: contents; }
.ou3-prog .k { max-width: 220px; color: var(--u-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ou3-prog .u-bar { min-width: 0; }
.ou3-prog .v { text-align: right; color: var(--u-ink-3); }
.ou3-pay { display: flex; flex-direction: column; }
.ou3-pay .r { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--u-line); font-size: 14px; line-height: 22px; }
.ou3-pay .r:last-child { border-bottom: 0; }
.ou3-pay .dot { flex: none; width: 14px; height: 14px; border-radius: 999px; border: 1.5px solid var(--u-line-dot); box-sizing: border-box; }
.ou3-pay .r.done .dot { border-color: var(--u-success); background: var(--u-success-soft); }
.ou3-pay .r.due .dot { border-color: var(--u-warning); }
.ou3-pay .k { color: var(--u-ink); }
.ou3-pay .r > span:nth-of-type(2) { font-size: 13px; }
.ou3-pay .v { margin-left: auto; color: var(--u-ink); }
.ou3-who { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.ou3-who .p { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.ou3-who .n { font-size: 14px; line-height: 22px; color: var(--u-ink); }
.ou3-who .s { font-size: 12px; line-height: 18px; color: var(--u-ink-3); }

@media (max-width: 900px) {
  .ou3-tbl colgroup { display: none; }
  #ou3-list { overflow-x: auto; }
  .ou3-tbl { min-width: 860px; }
}
