/* Webie Collect v0.3 app-specific field recovery styles. Shared WebieApps/DBPOS visual language lives in webieapps-ui.css. */
.collect-two-col{grid-template-columns:1fr 1fr}.collect-aging-grid{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:16px}.collect-danger-card{border-left:4px solid var(--danger)!important}.collect-command-card{border-top:3px solid var(--tenant-brand,var(--primary))}.collect-attention-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.collect-attention-item{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:12px;background:#fff;color:var(--text)}.collect-attention-item:hover{background:#f8fafc}.collect-attention-item i{width:34px;height:34px;border-radius:8px;background:#f1f4f7;display:grid;place-items:center;color:var(--primary)}.collect-attention-item strong,.collect-attention-item span{display:block}.collect-attention-item span{font-size:.78rem;color:var(--muted);margin-top:2px}
.collect-score{width:42px;height:42px;border-radius:50%;display:inline-grid;place-items:center;font-weight:800;font-variant-numeric:tabular-nums}.collect-score-high,.collect-risk-high{background:#f8d7da;color:#842029}.collect-score-medium,.collect-risk-medium{background:#fff3cd;color:#856404}.collect-score-normal,.collect-risk-normal{background:#d1ecf1;color:#0c5460}.collect-score-legend{white-space:nowrap}.collect-reason{font-size:.82rem;color:#495057;margin:2px 0}.collect-attention-row{background:#fff8f7!important}.collect-soft-panel{background:#f8fafc;border:1px solid var(--line);border-radius:8px;padding:12px;margin-top:12px}
.collect-priority-item{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #eef1f4}.collect-priority-item:last-child{border-bottom:0}.collect-priority-main strong,.collect-priority-main span,.collect-priority-main small{display:block}.collect-priority-main small{color:var(--muted);margin-top:3px}.collect-recent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.collect-recent-item{border:1px solid var(--line);border-radius:8px;padding:12px;display:flex;justify-content:space-between;gap:12px;color:var(--text)}.collect-recent-item span{display:block;color:var(--muted);font-size:.78rem;margin-top:3px}
.collect-task{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #eef1f4}.collect-task:last-child{border-bottom:0}.collect-task strong,.collect-task small{display:block}.collect-timeline{position:relative;margin-left:7px}.collect-timeline-item{position:relative;padding:0 0 18px 24px;border-left:2px solid #e6e9ec}.collect-timeline-item:last-child{padding-bottom:0}.collect-timeline-dot{position:absolute;left:-7px;top:2px;width:12px;height:12px;border-radius:50%;background:var(--tenant-brand,var(--primary));border:2px solid #fff;box-shadow:0 0 0 1px #d8dde2}.collect-timeline-item small{display:block;margin-top:4px}
.collect-route-card{padding:0;overflow:hidden}.collect-route-card>div:first-child{padding:16px 18px;background:#f8fafc;border-bottom:1px solid var(--line)}.collect-route-card h3{margin:0}.collect-route-list{padding:0 18px}.collect-route-item{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #eef1f4}.collect-route-item:last-child{border-bottom:0}.collect-route-number{width:32px;height:32px;border-radius:50%;background:#eef2f5;display:grid;place-items:center;font-weight:700;color:var(--dark)}.collect-route-main strong,.collect-route-main span,.collect-route-main small{display:block}.collect-route-main span,.collect-route-main small{color:var(--muted);font-size:.8rem}.collect-route-main>div{margin-top:4px}
@media(max-width:1100px){.collect-attention-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.collect-aging-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.collect-recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.collect-two-col,.collect-attention-grid,.collect-aging-grid,.collect-recent-grid{grid-template-columns:1fr}.collect-priority-item{grid-template-columns:42px minmax(0,1fr)}.collect-priority-item>.actions{grid-column:1/-1;padding-left:54px}.collect-route-item{grid-template-columns:34px minmax(0,1fr)}.collect-route-item>.actions{grid-column:1/-1;padding-left:46px}.collect-route-item>.actions .btn{flex:1}.collect-task{align-items:flex-start;flex-direction:column}.collect-task .actions{width:100%}.collect-task .actions .btn,.collect-task .actions form{flex:1}.collect-task .actions form .btn{width:100%}}

/* ============================================================
   Phase 4B UI hotfix — Collect spacing, icon alignment and dashboard density
   ============================================================ */
.sidebar .brand{padding:16px 14px}
.sidebar .nav-link{min-height:44px;padding:10px 14px;gap:10px}
.sidebar .nav-link i{width:20px;min-width:20px;text-align:center;font-size:15px;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.nav-section-title{margin:14px 14px 8px;padding-top:10px;font-size:11px;letter-spacing:.07em}
.page{padding:18px 20px 24px}
.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:18px}
.page-heading h1{margin:0 0 6px;line-height:1.18}
.page-heading .actions{display:flex;gap:10px;flex-wrap:wrap}
.page-heading .btn{min-height:40px}
.grid.cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.stat-card{min-height:88px;padding:14px 16px;border-radius:14px;display:flex;flex-direction:column;justify-content:center}
.stat-card span{display:block;margin-bottom:6px;color:var(--muted);font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
.stat-card strong{line-height:1.1;overflow-wrap:anywhere}
.collect-command-card{padding:16px 18px;border-radius:14px;margin-bottom:18px}
.collect-attention-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.collect-attention-item{display:flex;align-items:flex-start;gap:10px;min-height:78px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;text-decoration:none;color:inherit}
.collect-attention-item i{width:36px;height:36px;min-width:36px;display:grid;place-items:center;border-radius:10px;background:#f2f5f9;color:var(--primary)}
.collect-attention-item strong{display:block;margin-bottom:4px;line-height:1.25}
.collect-attention-item span{display:block;line-height:1.35;color:var(--muted);text-transform:none;font-size:12px;letter-spacing:0}
.collect-aging-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:0 0 18px}
.collect-two-col{grid-template-columns:minmax(0,1.35fr) minmax(300px,.9fr);gap:18px;margin-bottom:18px}
.collect-two-col>.card,.collect-command-card,.card{border-radius:14px}
.collect-two-col>.card,.collect-recent-grid{min-width:0}
.collect-priority-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.collect-priority-item:first-of-type{margin-top:14px}
.collect-priority-item .actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.collect-score{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;font-weight:800}
.collect-priority-main strong{display:block;margin-bottom:4px;line-height:1.25}
.collect-priority-main .muted, .collect-priority-main small{display:block;line-height:1.35}
.summary-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0}
.collect-recent-grid{display:grid;gap:0}
.collect-recent-item{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 0;border-top:1px solid var(--line);text-decoration:none;color:inherit}
.collect-recent-item:first-child{border-top:0;margin-top:10px}
.collect-recent-item span{display:block;margin-top:3px;color:var(--muted);font-size:12px}
@media(max-width:1200px){.collect-attention-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.collect-aging-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.collect-two-col{grid-template-columns:1fr}.collect-priority-item{grid-template-columns:auto minmax(0,1fr)}.collect-priority-item .actions{grid-column:2/-1;justify-content:flex-start}}
@media(max-width:991.98px){.page{padding:16px 18px 22px}.page-heading{flex-direction:column}.grid.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.collect-command-card{padding:15px 16px}}
@media(max-width:650px){.page{padding:14px 14px 20px}.grid.cards,.collect-attention-grid,.collect-aging-grid{grid-template-columns:1fr}.page-heading .actions{width:100%}.page-heading .actions .btn{flex:1 1 100%}.stat-card{min-height:0;padding:14px}.collect-attention-item{min-height:0;padding:12px}.collect-priority-item{grid-template-columns:1fr}.collect-priority-item .actions{grid-column:auto}.collect-recent-item{flex-direction:column}}
