/* v1.8 · WORKSPACE-01 – khung chung "Xử lý & Công việc". Dùng lại màu / nút của màn Xử lý Ticket (kb18, tq18). */
.modal.ws18-host{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:0;background:#f4f6fa}
.modal.ws18-host>.modal-card{flex:1 1 auto;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;min-height:0;border-radius:0!important;box-shadow:none!important;margin:0!important}
.ws18-shell{flex:0 0 auto;background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 1px 3px rgba(15,23,42,.06);z-index:2}
.ws18-top{display:flex;align-items:center;gap:14px;padding:10px 16px 8px}
.ws18-title{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.ws18-title h3{margin:0;font-size:18px;font-weight:800;color:#0f172a;white-space:nowrap}
.ws18-ico{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#eef2ff;font-size:18px}
.ws18-kpis{display:flex;gap:14px;flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:thin;padding:2px 0}
.ws18-group{display:flex;align-items:stretch;gap:6px;flex:0 0 auto;padding-left:10px;border-left:3px solid #c7d2fe}
.ws18-group[data-group="tasks"]{border-left-color:#a7f3d0}
.ws18-group>i{align-self:center;font-style:normal;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#64748b;margin-right:2px}
.ws18-kpi{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:74px;padding:5px 10px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;cursor:pointer;text-align:left}
.ws18-kpi:hover{background:#eef2ff;border-color:#c7d2fe}
.ws18-kpi b{font-size:17px;line-height:1.15;color:#0f172a;font-variant-numeric:tabular-nums}
.ws18-kpi span{font-size:11px;color:#64748b;white-space:nowrap}
.ws18-kpi.hot{background:#fef2f2;border-color:#fecaca}.ws18-kpi.hot b{color:#b91c1c}
.ws18-x{flex:0 0 auto;width:36px;height:36px;border:0;border-radius:10px;background:#f1f5f9;font-size:20px;line-height:1;cursor:pointer;color:#334155}
.ws18-x:hover{background:#e2e8f0}
.ws18-tabs{display:flex;gap:4px;padding:0 16px;overflow-x:auto;scrollbar-width:none}
.ws18-tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border:0;border-bottom:3px solid transparent;background:none;font-size:14px;font-weight:700;color:#64748b;cursor:pointer;white-space:nowrap}
.ws18-tab:hover{color:#0f172a}
.ws18-tab.on{color:#1d4ed8;border-bottom-color:#1d4ed8}
.ws18-tab em{font-style:normal;font-size:11px;font-weight:800;min-width:18px;padding:1px 6px;border-radius:999px;background:#e2e8f0;color:#334155;text-align:center}
.ws18-tab.on em{background:#dbeafe;color:#1d4ed8}
.ws18-tab:focus-visible,.ws18-kpi:focus-visible,.ws18-x:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}
/* bên trong khung: bỏ tiêu đề, nút đóng và dãy thẻ riêng của từng màn (khung đã có) */
.ws18-host .kb18-top>.kb18-ico,.ws18-host .kb18-top>.kb18-ttl,.ws18-host .kb18-top [data-tq="close"],.ws18-host .kb18-top [data-kb="close"]{display:none!important}
.ws18-host .kb18-top{justify-content:flex-end}
.ws18-host#workCenterModal .work-heading,.ws18-host#workCenterModal [data-v080-close="workCenterModal"],.ws18-host#workCenterModal .work-tabs{display:none!important}
.ws18-host#workCenterModal .work-head{justify-content:flex-end;padding-top:8px;padding-bottom:8px}
/* thanh điều hướng: một mục, tên dài nên cho xuống dòng */
#v150NavRail .v150-nav-btn.ws18-nav small{white-space:normal;line-height:1.15;text-align:center}
@media (max-width:900px){
  .ws18-top{flex-wrap:wrap;gap:8px;padding:8px 10px 6px}
  .ws18-title h3{font-size:16px}.ws18-ico{width:30px;height:30px;font-size:15px}
  .ws18-kpis{order:3;flex:1 0 100%}
  .ws18-x{margin-left:auto}
  .ws18-tabs{padding:0 8px}.ws18-tab{padding:9px 11px;font-size:13px}
}
/* màn được ghim cạnh thanh điều hướng (dock180): khung chung nằm trên, màn nằm dưới */
.modal.dk18-docked.ws18-host{display:flex!important;flex-direction:column!important;background:#f4f6fa!important}
.modal.dk18-docked.ws18-host.hidden{display:none!important}
.modal.dk18-docked.ws18-host>.modal-card{position:relative!important;inset:auto!important;flex:1 1 auto;height:auto!important;min-height:0}
/* WORKSPACE-03 · các thẻ Công việc: nút đổi cách xem và danh sách công việc dùng chung */
.ws18-row{display:flex;align-items:center;gap:12px;padding-right:16px}
.ws18-row>.ws18-tabs{flex:1 1 auto;min-width:0}
.ws18-views{flex:0 0 auto;display:inline-flex;gap:2px;padding:3px;border-radius:10px;background:#eef1f5}
.ws18-views:empty{display:none}
.ws18-views button{border:0;background:none;padding:5px 10px;border-radius:8px;font-size:12.5px;font-weight:700;color:#64748b;cursor:pointer;white-space:nowrap}
.ws18-views button.on{background:#fff;color:#1d4ed8;box-shadow:0 1px 2px rgba(15,23,42,.12)}
.ws18-tab em.hot{background:#fee2e2;color:#b91c1c}
.ws18-host#workCenterModal #workTasksPage .work-board-intro label.check{display:none}
.wt18-page{display:none;flex-direction:column;min-height:0;flex:1 1 auto;background:#f4f6fa}
.wt18-page.active{display:flex}
.wt18-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:14px 18px 6px}
.wt18-head h4{margin:0;font-size:16px;color:#0f172a}.wt18-head p{margin:2px 0 0;font-size:12.5px;color:#64748b}
.wt18-count{font-size:12.5px;color:#475569;font-weight:700;white-space:nowrap}
.wt18-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 18px}
.wt18-bar input[type=search]{flex:1 1 260px;max-width:360px}
.wt18-bar input,.wt18-bar select{height:36px;border:1px solid #d8dee8;border-radius:9px;padding:0 10px;background:#fff;font:inherit;font-size:13px;min-width:0}
.wt18-date{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:#64748b}
.wt18-list{flex:1 1 auto;min-height:0;overflow:auto;padding:6px 18px 18px}
.wt18-table{display:grid;gap:6px;min-width:980px}
.wt18-row{display:grid;grid-template-columns:112px minmax(220px,2.4fr) minmax(90px,1fr) minmax(100px,1fr) 92px 150px 104px minmax(100px,1fr);gap:10px;align-items:center;border:1px solid #eef1f5;border-left:4px solid transparent;border-radius:10px;background:#fff;padding:9px 12px;font-size:13px;cursor:pointer}
.wt18-table.review .wt18-row{grid-template-columns:112px minmax(220px,2.2fr) minmax(90px,1fr) minmax(100px,1fr) 92px 130px 104px 84px 200px}
.wt18-row:hover{border-color:#c7d2fe}.wt18-row:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px}
.wt18-row.overdue{border-left-color:#dc2626}
.wt18-row.head{background:none;border-color:transparent;cursor:default;font-size:11.5px;font-weight:600;color:#64748b;padding-top:2px;padding-bottom:2px}
.wt18-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wt18-row .title b{display:block;overflow:hidden;text-overflow:ellipsis}
.wt18-row .title small{display:block;color:#64748b;font-size:11.5px;overflow:hidden;text-overflow:ellipsis}.wt18-row .title small.none{color:#94a3b8;font-style:italic}
.wt18-row .acts{display:flex;gap:6px;justify-content:flex-end;overflow:visible}
.wt18-row .tt18-chip,.wt18-row .tq18-pri,.wt18-row .tq18-st{font-style:normal}
@media (max-width:900px){
  .ws18-row{flex-wrap:wrap;padding-right:8px}.ws18-views{margin:0 8px 6px}
  .wt18-head{padding:10px 10px 4px}.wt18-bar{padding:6px 10px}.wt18-bar input,.wt18-bar select{height:42px;font-size:16px;flex:1 1 44%;max-width:none}.wt18-bar input[type=search]{flex:1 1 100%}
  .wt18-list{padding:6px 10px 14px}.wt18-table,.wt18-table.review{min-width:0}
  .wt18-row.head{display:none}
  .wt18-row,.wt18-table.review .wt18-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:10px}
  .wt18-row>span{white-space:normal}.wt18-row .title{grid-column:1/-1;order:-1}
  .wt18-row>span[data-l="Đơn vị"]{display:none}
  .wt18-row>span[data-l="Người làm"]::before,.wt18-row>span[data-l="Hạn"]::before,.wt18-row>span[data-l="Người duyệt"]::before,.wt18-row>span[data-l="Chờ duyệt"]::before{content:attr(data-l) ": ";color:#94a3b8;font-size:11.5px}
  .wt18-row .acts{grid-column:1/-1;justify-content:stretch}.wt18-row .acts button{flex:1;height:42px}
}
#workCenterModal .wt18-page{padding:0;overflow:hidden}
#workCenterModal .wt18-page.active{display:flex}
.wt18-bar select{width:auto;flex:0 1 190px}.wt18-bar input[type=search]{width:auto}.wt18-bar input[type=date]{width:auto}
@media (max-width:900px){.wt18-bar select{flex:1 1 44%}}

/* WORKSPACE-04 · đi lại giữa Ticket, Công việc, Hội thoại */
.ws18-back{flex:0 0 auto;padding-left:16px}.ws18-back:empty{display:none}
.ws18-back button{border:1px solid #c7d2fe;background:#eef2ff;color:#1d4ed8;border-radius:999px;padding:5px 12px;font-size:12.5px;font-weight:700;cursor:pointer;white-space:nowrap}
.ws18-back button:hover{background:#e0e7ff}
.ws18-return{position:fixed;left:calc(var(--dk18-left,66px) + 14px);bottom:16px;z-index:60;display:inline-flex;align-items:center;gap:2px;padding:4px;border-radius:999px;background:#1d4ed8;box-shadow:0 8px 24px rgba(29,78,216,.35)}
.ws18-return button{border:0;background:none;color:#fff;font-size:13px;font-weight:700;padding:7px 12px;border-radius:999px;cursor:pointer;white-space:nowrap}
.ws18-return button:hover{background:rgba(255,255,255,.16)}
.ws18-return [data-ws-return="x"]{padding:7px 10px;font-size:15px;line-height:1}
html.m18 .ws18-return{left:12px;bottom:calc(env(safe-area-inset-bottom,0px) + 132px)}
.wt18-row .title small .tq18-link{font-size:inherit}
@media (max-width:900px){.ws18-back{padding:0 8px 6px;flex:1 0 100%}}

/* WORKSPACE-05 */
.ws18-kpi.on{border-color:#1d4ed8;background:#eff6ff;box-shadow:inset 0 0 0 1px #1d4ed8}

/* WORKSPACE-07 · điện thoại */
.wt18-filterbtn{display:none}
@media (max-width:900px){
  .ws18-top{padding:6px 10px 4px}.ws18-kpi{min-width:66px;padding:4px 8px}.ws18-kpi b{font-size:15px}
  .wt18-filterbtn{display:inline-flex;align-items:center;justify-content:center;height:42px;flex:0 0 auto}
  .wt18-bar input[type=search]{flex:1 1 0;min-width:0}
  .wt18-bar:not(.open)>select,.wt18-bar:not(.open)>.wt18-date,.wt18-bar:not(.open)>[data-wt="reset"]{display:none}
  .wt18-head p{display:none}
}
/* khung đang mở trên điện thoại: thanh nhắc điểm danh và linh vật không che danh sách, nút bấm */
html.m18 body.ws18-open #att18Bar,html.m18 body.ws18-open #workPet{display:none!important}
@media (max-width:900px){.wt18-bar input[type=search]{flex:1 1 55%}}
