/* CRM pages: only what look.css does not already give. Nothing here redefines a look.css class. */

/* filter blocks above the lists */
.crm-filters{display:flex;flex-direction:column;gap:10px}
.crm-filters .filters>.field{flex:1 1 260px;max-width:380px}
.crm-filters .row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
.crm-filters .lbl{font:700 13px/1 var(--f-label);text-transform:uppercase;letter-spacing:.03em;color:var(--ink-3)}
.crm-filters .date .btn{min-width:150px;justify-content:flex-start}
.crm-filters .date .btn .dt{flex:1;text-align:left}
.crm-note{font:400 14px/1.3 var(--f-ui);color:var(--ink-2)}

/* two-line cells */
.c-two{display:flex;flex-direction:column;gap:2px;min-width:0}
.c-two .c-main a,.c-two .c-main{overflow-wrap:anywhere}
.c-glyph{display:inline-flex;align-items:center;gap:8px}
.c-glyph .g{width:20px;height:20px;flex:none}
.mg{color:var(--ink-2)}

/* section blocks inside side columns: a heading row then rows of key and value */
.blk{display:flex;flex-direction:column;gap:12px}
.blk+.blk{margin-top:0}
.blk .row-actions{display:flex;flex-wrap:wrap;gap:8px}
.plain-list{display:flex;flex-direction:column}
.plain-list li{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 0}
.plain-list li+li{border-top:1px solid var(--line)}
.plain-list .grow{flex:1;min-width:0}
.plain-list .end{margin-left:auto;text-align:right;white-space:nowrap}
.sp-between{display:flex;align-items:center;justify-content:space-between;gap:10px}
.link-quiet{font-weight:600}
.kv.kv--tight{gap:6px 14px}
.stk-two{display:flex;flex-direction:column;gap:2px}

/* the two-column pages: the side column stays beside the main one only when there is room */
.page-split{display:grid;gap:20px;grid-template-columns:minmax(0,1fr) 360px;align-items:start}
.page-split>*{min-width:0}
.page-side{display:flex;flex-direction:column;gap:20px}
@media (max-width:1279px){.page-split{grid-template-columns:minmax(0,1fr)}}

.crm-filters .filters>div{min-width:0;max-width:100%}
.os-body>div:empty{display:none}
.btn[hidden],.fld[hidden]{display:none!important}
.g{width:20px;height:20px;flex:none;vertical-align:-5px}
.msgrow .g{width:30px;height:30px}

.crm-filters .seg button,.cd-tabs .seg button{min-height:44px}

/* the header search keeps a usable width beside a long title; the tools row wraps rather than squeezing it flat */
.os-search{min-width:200px}
.os-tools{flex-wrap:wrap}
