/* Restrained full-width bands distinguish order groups. */
#catalog-table .order-group-heading { --group-accent:#8e9ba2; --group-tint:#edf1f3; }
#catalog-table .order-group-heading.running { --group-accent:#839b53; --group-tint:#edf3e7; }
#catalog-table .order-group-heading.scheduled { --group-accent:#9b9da4; --group-tint:#eff0f2; }
#catalog-table .order-group-heading.unscheduled { --group-accent:#9b9da4; --group-tint:#eff0f2; }
#catalog-table .order-group-heading.completed { --group-accent:#849c8e; --group-tint:#edf3ef; }
#catalog-table .order-group-heading.deleted { --group-accent:#9b9da4; --group-tint:#eff0f2; }
#catalog-table .order-group-heading:is(.running,.scheduled,.unscheduled,.completed,.deleted) td { background:#eef4f6!important; padding:0 9px 6px!important; border:0!important; box-shadow:none!important; }
#catalog-table .order-group-heading .order-group-toggle { display:flex; align-items:center; gap:9px; width:100%; min-width:0; height:36px; min-height:36px; box-sizing:border-box; padding:0 16px 0 11px; border:0; border-left:3px solid var(--group-accent); border-radius:0; background:var(--group-tint); box-shadow:none; text-align:left; }
#catalog-table .order-group-heading .order-group-toggle::after { content:none; }
#catalog-table .order-group-heading .order-group-toggle strong { background:transparent; color:#294c5b; font-size:14px; font-weight:650; padding:0; border-radius:0; white-space:nowrap; }
#catalog-table .order-group-heading .order-group-toggle i { color:#7f939d; font-size:10px; font-style:normal; }
#catalog-table .order-group-heading .group-dot { display:none; }
#catalog-table .order-group-heading .group-count { margin-left:auto; min-width:0; height:auto; padding:0; border-radius:0; background:transparent; color:#607c88; font-size:12px; font-weight:500; white-space:nowrap; }
#catalog-table .order-group-gap td { height:20px; padding:0!important; border:0!important; box-shadow:none!important; background:#eef4f6!important; cursor:default!important; }
.order-inline .inline-meta { flex:0 0 auto; }
#catalog-table .order-inline { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) 110px; gap:15px; }
.order-inline-summary { grid-column:1; display:flex; align-items:center; flex-wrap:wrap; gap:9px; min-width:0; }
.shared-order-note { grid-column:2 / 4; display:flex; align-items:center; gap:5px; min-width:100px; margin-left:0; font-size:13px; color:#718d99; }
#catalog-table .order-inline .catalog-actions { grid-column:4; }
.shared-order-note>span:first-child { white-space:nowrap; }
.shared-order-note input { width:100%; min-width:60px; flex:1; border:0; border-radius:0; background:transparent; padding:6px 2px; font:inherit; color:#345766; outline:none; box-shadow:none; }
.shared-order-note input { color:#c83f49; font-weight:700; }
.shared-order-note input:focus { box-shadow:inset 0 -1px #94acb6; }
.shared-order-note input[readonly] { cursor:text; }
.shared-note-status { font-size:11px; white-space:nowrap; color:#7a929a; }
.shared-order-note button { border:0; border-radius:4px; background:#e0ebef; color:#416877; padding:5px 7px; font:inherit; font-size:11px; white-space:nowrap; cursor:pointer; }
.shared-order-note .note-task-assign { flex:0 0 auto; border:1px solid #a7cf32; background:#c7ed4f; color:#123f36; font-weight:700; max-width:180px; overflow:hidden; text-overflow:ellipsis; }
.shared-order-note .note-task-assign.assigned { background:#edf7d2; }
.shared-order-note .note-task-assign.assigned{display:inline-flex;align-items:center;justify-content:center;min-width:42px;padding:3px 8px;overflow:visible}
.shared-order-note .note-task-assign.completed{display:inline-flex;align-items:center;justify-content:center;min-width:68px;padding:5px 10px;border-color:#9eb5bd;background:#eef4f5;color:#44636e}
.note-task-completed{font-size:13px;font-weight:800;white-space:nowrap}
.note-task-avatars{display:flex;align-items:center;padding-left:7px}.note-task-avatars img,.note-task-avatars i{width:27px;height:27px;margin-left:-7px;border:2px solid #fff;border-radius:50%;object-fit:cover;background:#dce9e4;box-sizing:border-box}.note-task-avatars i{display:grid;place-items:center;background:#183f49;color:#fff;font-size:9px;font-style:normal;font-weight:800}
.note-task-dialog { position:fixed; inset:0; z-index:3000; display:grid; place-items:center; padding:20px; background:rgba(4,40,51,.45); }
.note-task-card { width:min(620px,100%); max-height:min(760px,90vh); overflow:auto; border-radius:14px; background:#fff; box-shadow:0 24px 70px rgba(4,40,51,.28); padding:22px; }
.note-task-card header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.note-task-card header small { color:#77909a; }
.note-task-card h3 { margin:3px 0 0; color:#0c3442; }
.note-task-card header>button { border:0; background:#eaf1f3; color:#244c5a; border-radius:8px; width:36px; height:36px; font-size:22px; cursor:pointer; }
.note-task-card>p { margin:12px 0; color:#5f7d89; }
.note-task-people { display:block; max-height:420px; overflow:auto; }
.note-task-group{padding:9px 0;border-top:3px solid #b9d95d}.note-task-group:first-child{border-top:0}.note-task-group h4{margin:0 0 7px;color:#365b40;font-size:13px}.note-task-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.note-task-people label { display:flex; align-items:center; gap:9px; padding:9px 10px; border:1px solid #d8e4e8; border-radius:9px; cursor:pointer; }
.note-task-people label:has(input:checked) { border-color:#9fca2f; background:#f1f9d9; }
.note-task-people img { width:30px; height:30px; border-radius:50%; object-fit:cover; }
.note-task-card footer { display:flex; justify-content:flex-end; gap:9px; margin-top:18px; }
.note-task-card footer button { border:1px solid #cbdde3; border-radius:8px; background:#fff; color:#224b59; padding:9px 16px; font-weight:700; cursor:pointer; }
.note-task-card footer button.primary { border-color:#a7cf32; background:#c7ed4f; color:#123f36; }
@media(max-width:850px){.order-inline-summary{grid-column:1 / 4;grid-row:1}.shared-order-note{grid-column:2 / 4;grid-row:2}}
@media(max-width:600px){.note-task-group>div{grid-template-columns:1fr}.shared-order-note .note-task-assign{max-width:115px}}

/* Keep the existing label and order-row widths. */
#catalog-table { --catalog-label-width:180px; }
#catalog-table .order-layout { grid-template-columns:var(--catalog-label-width) minmax(0,1fr); }
#catalog-table .order-large-label { width:var(--catalog-label-width); }
@media(max-width:1100px){#catalog-table{--catalog-label-width:135px}}

/* A narrow or zoomed desktop browser still uses the same single-row order
   layout as a full-width desktop. Phone layouts are selected by device class. */
html:not(.mobile-device) #catalog-table { --catalog-label-width:180px; }
html:not(.mobile-device) #catalog-table .order-inline-summary { grid-row:auto; flex-wrap:nowrap; white-space:nowrap; }
html:not(.mobile-device):not([lang=en]) #catalog-table .order-inline-summary { grid-column:1; }
html[lang=en]:not(.mobile-device) #catalog-table .order-inline-summary { grid-column:1 / 3; }
html:not(.mobile-device) #catalog-table .shared-order-note { grid-row:auto; }
html:not(.mobile-device):not([lang=en]) #catalog-table .shared-order-note { grid-column:2 / 4; }
html[lang=en]:not(.mobile-device) #catalog-table .shared-order-note { grid-column:3; }
