/* By date compact bar */
body.datemode #v-search>.notice{display:none!important}
.datebar{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px 10px;position:sticky;top:0;z-index:5}
.datebar.hidden{display:none!important}
.db-chips{display:flex;gap:6px;flex:none}
.datecustom{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.datecustom.hidden{display:none!important}
.datefld{display:flex;align-items:center;gap:4px;font-size:13px;color:#0d1b2a;font-weight:600}
.datefld input{width:auto!important;padding:6px 8px!important;border:1px solid #cfd6de;border-radius:8px;font-size:14px;margin:0!important}
.db-co,.coqwrap{position:relative;flex:1 1 220px;min-width:0;display:flex}
#dateCoQ,.coqwrap #coQ{width:100%!important;flex:1;min-width:0!important;box-sizing:border-box;margin:0!important;padding:9px 34px 9px 12px!important;font-size:16px!important;border:1px solid #cfd6de!important;border-radius:10px!important;background:#fff!important;color:#0d1b2a!important;height:auto!important;opacity:1!important;visibility:visible!important}
.db-x{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:26px!important;height:26px;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;background:#e3e8ef!important;color:#0d1b2a!important;font-size:17px;line-height:26px;cursor:pointer}
.db-x.hidden{display:none!important}
.db-act{display:flex;gap:6px;flex:none}
.db-go,.db-reset{width:auto!important;margin:0!important;min-height:38px;padding:0 16px!important;border-radius:10px!important;font-weight:700;font-size:14px;cursor:pointer}
.db-go{background:#1E3A5F!important;color:#fff!important;border:0!important}
.db-reset{background:#fff!important;color:#1E3A5F!important;border:1px solid #1E3A5F!important}
body.datemode #count{background:rgba(13,27,42,.75);color:#fff;padding:8px 12px;border-radius:10px;font-size:14px}
.dt-day{margin:0 0 18px}
.dt-dayh{margin:4px 0 10px;padding:6px 12px;background:rgba(232,238,245,.95);color:#0d1b2a;border-radius:10px;font-size:15px;display:flex;justify-content:space-between}
.dt-dayh span{background:#1E3A5F;color:#fff;border-radius:999px;padding:0 9px;font-size:12px;line-height:20px}
#cards.dt-cards{display:block!important}
.dt-empty{background:rgba(232,238,245,.95);color:#0d1b2a;padding:16px;border-radius:12px;font-size:15px}
.dt-link{width:auto!important;margin:0 0 0 8px!important;background:none!important;border:0!important;color:#1E3A5F!important;text-decoration:underline;font-weight:700;cursor:pointer;padding:0!important}
#freset{color:#1E3A5F!important;background:#fff!important;border:1px solid #1E3A5F!important;min-width:70px}
@media(max-width:600px){.db-chips{width:100%}.db-chips .datepill{flex:1}.db-co{flex:1 1 100%}.db-act{width:100%}.db-act button{flex:1}.datecustom{width:100%}.datefld{flex:1}.datefld input{flex:1;min-width:0}}
/* Management */
#cos .coqrow{display:flex!important;gap:8px;width:100%}
#cos .coqrow .cogo{flex:none!important;width:auto!important}
#coAZ{display:flex;flex-wrap:wrap;gap:3px;margin:6px 0}
#coAZ button{min-width:26px!important;width:auto!important;padding:3px 5px!important;font-size:12px!important;margin:0!important}
#coCount{margin:4px 0 10px;font-weight:600}
.mcgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.mc{background:#fff;border:1px solid rgba(30,58,95,.15);border-radius:12px;padding:12px 14px;cursor:pointer;display:flex;flex-direction:column;gap:6px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.mc:hover{border-color:#1E3A5F;box-shadow:0 3px 10px rgba(0,0,0,.12)}
.mc-n{font-weight:800;color:#0d1b2a;font-size:16px}
.mc-b{display:flex;flex-wrap:wrap;gap:5px}
.bd{font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;background:#e8eef5;color:#1E3A5F}
.bd.op{background:#e6f4ea;color:#1b5e20}.bd.inc{background:#fff4e0;color:#8a5a00}
.mc-m{font-size:13px;color:#4a5868}
.mc-match{display:flex;flex-wrap:wrap;gap:4px}.mc-match a{font-size:12px;background:#e8eef5;color:#0d1b2a;padding:2px 8px;border-radius:10px;cursor:pointer}
.mc-go{margin-top:auto;font-size:13px;font-weight:700;color:#1E3A5F}
@media(max-width:600px){.mcgrid{grid-template-columns:1fr;gap:8px}.mc{padding:10px 12px}}
body.datemode #mqf{display:none!important}
#dateCoQ::-webkit-search-cancel-button,#coQ::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
#dateUpds details>summary{cursor:pointer;list-style:none}
#dateUpds details>summary::-webkit-details-marker{display:none}
#dateUpds details:not([open]){padding-bottom:0}
#dateUpds .du-tog{font-size:12px;font-weight:700;color:#1E3A5F;margin-left:8px;text-decoration:underline}
/* 10/30b: no column fragmentation, cards grow to content */
#coIdx{columns:auto!important;column-width:auto!important;column-count:auto!important;height:auto!important;max-height:none!important;overflow:visible!important}
#cos,#v-companies{height:auto!important;max-height:none!important;overflow:visible!important}
.mcgrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch}
.mc{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;break-inside:avoid}
.mc-n,.mc-m{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere}
@media(max-width:900px){.mcgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.mcgrid{grid-template-columns:1fr!important}}
/* 10/30c phone polish (not Markets) */
@media(max-width:600px){
 html,body{overflow-x:hidden}
 #logout{min-height:40px;display:inline-flex;align-items:center;padding:0 12px}
 #mpgBack{min-height:40px;padding:0 14px}
 #fclose{min-height:44px}
 #filters summary,.fhood-btn{min-height:44px;display:flex;align-items:center}
 #freset,.s2cq,.cact,a.vl,.crmfilt,.dateupd-co,.flyerlink,.datepill,#dateGo,#dateReset{min-height:40px!important;display:inline-flex!important;align-items:center;justify-content:center}
 .datepill{min-height:40px!important}
 .dateupd-co{justify-content:flex-start!important}
 input.pickcb{width:26px!important;height:26px!important}
 #coAZ{flex-wrap:nowrap!important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}
 #coAZ::-webkit-scrollbar{display:none}
 #coAZ button{flex:none;min-width:40px!important;min-height:40px!important;font-size:14px!important}
 .card,.mc,.pk-card,.fcard{max-width:100%;overflow-wrap:anywhere}
 /* tables → stacked cards */
 #app table.uist,#app table.uist tbody,#app table.uist tr,#app table.uist td{display:block;width:100%!important;box-sizing:border-box}
 #app table.uist thead,#app table.uist tr.uih{display:none}
 #app table.uist tr{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);border-radius:10px;margin:0 0 8px;padding:6px 10px}
 #app table.uist td{border:0!important;padding:3px 0!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere}
 #app table.uist td[data-l]:before{content:attr(data-l) ": ";font-weight:700;opacity:.75}
}
@media(max-width:600px){
 #app .card a[href^="http"]:not(.s2cq):not(.vl),footer a[href^="tel"],a[href^="tel"]{display:inline-block;padding:12px 0;margin:-12px 0}
 #app summary{min-height:40px;display:flex;align-items:center}
 #homeLogo{min-height:40px}
}
