/* Farmer collection screens (collect.js). Loaded after kisan.css; tokens from its :root only. */

.kc-title { margin-top: 4px; }
.kc-ico { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; background: var(--wash); color: var(--ink); }
.kc-ico svg { width: 28px; height: 28px; }

/* ---------- the big "when does the vehicle come" card (a .kf-next) ---------- */
.kc-eta .kc-big { font-size: 28px; line-height: 1.15; margin: 6px 0 4px; }
.kc-eta .kc-n { font-size: 40px; font-weight: 800; }
.kc-eta .kc-sub { font-size: 19px !important; font-weight: 700; margin: 2px 0 4px !important; }

/* 🚚 ─ ● ─ ● ─ 📍 : stops still ahead of my point */
.kc-strip { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 4px; list-style: none; margin: 14px 0 4px; padding: 0; }
.kc-strip::before { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: currentColor; opacity: .35; }
.kc-strip li { position: relative; display: grid; place-items: center; }
.kc-strip .veh, .kc-strip .mine { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.kc-strip .mine { background: var(--ink); color: var(--paper); }
.kc-strip svg { width: 26px; height: 26px; }
.kc-strip .stop { width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid currentColor; }
.kc-strip .more { min-width: 32px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 800; }

/* ---------- map ---------- */
.kc-map-box { margin: 0 0 16px; }
.kc-map {
	position: relative; z-index: 0; isolation: isolate;  /* Leaflet panes stay under the app bar and sheets */
	height: 260px; border-radius: var(--radius); overflow: hidden; background: var(--wash); box-shadow: var(--shadow);
}
.kc-map.is-text { height: auto; padding: 14px 16px; background: var(--paper); }
/* leaflet.css loads later (on first map), so these need one more class to win */
.kc-map.leaflet-container .leaflet-bar { border: 0; box-shadow: var(--shadow-sm); }
.kc-map.leaflet-container .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 24px; background: var(--paper); color: var(--ink); border-color: var(--line); }
.kc-map.leaflet-container .leaflet-control-attribution { font-size: 11px; background: color-mix(in srgb, var(--paper) 85%, transparent); color: var(--ink-2); }
.kc-map .leaflet-control-attribution a { color: var(--sky); }
.kc-map.leaflet-container .leaflet-tooltip { font: 700 14px/1.3 var(--display); background: var(--paper); color: var(--ink); border-color: var(--line); }
.kc-route { stroke: var(--sky); stroke-width: 5px; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 10; fill: none; }
.kc-stop { stroke: var(--sky); stroke-width: 3px; fill: var(--paper); fill-opacity: 1; }
.kc-pin span, .kc-truck span { position: relative; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.kc-pin span { width: 44px; height: 44px; background: var(--mustard); color: var(--on-accent); border: 3px solid var(--ink); }
.kc-pin span::after { content: ""; position: absolute; left: 50%; bottom: -12px; margin-left: -7px; border: 7px solid transparent; border-top: 9px solid var(--ink); border-bottom: 0; }
.kc-truck span { width: 48px; height: 48px; background: var(--leaf); color: #fff; border: 3px solid #fff; }
.kc-truck.stale span { background: var(--ink-2); opacity: .85; }
.kc-pin svg, .kc-truck svg { width: 26px; height: 26px; }
.kc-truck:not(.stale) span::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid var(--leaf); animation: kc-ping 1.8s ease-out infinite; }
@keyframes kc-ping { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .kc-truck span::before { animation: none; opacity: .5; } }

.kc-seen { display: flex; align-items: center; gap: 8px; margin: 8px 2px 0; font-weight: 700; color: var(--ink-2); }
.kc-seen svg { width: 20px; height: 20px; flex: 0 0 auto; }
.kc-live-dot { width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-wash); }

/* offline: the road ahead as a list */
.kc-stops { list-style: none; margin: 0; padding: 0; }
.kc-stops li { display: flex; align-items: center; gap: 10px; min-height: 40px; border-left: 3px dotted var(--sky); margin-left: 12px; padding-left: 14px; }
.kc-stops li i { width: 12px; height: 12px; margin-left: -22px; border-radius: 50%; border: 3px solid var(--sky); background: var(--paper); }
.kc-stops li svg { width: 24px; height: 24px; margin-left: -28px; background: var(--paper); }
.kc-stops li span { flex: 1; font-weight: 700; }
.kc-stops li small { color: var(--ink-2); font-weight: 700; }
.kc-stops .mine { color: var(--ink); }

/* ---------- cards ---------- */
.kc-card { background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); padding: 16px; margin: 0 0 16px; }
.kc-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; font-weight: 800; font-size: 15px; color: var(--ink-2); }
.kc-kicker svg { width: 20px; height: 20px; }
.kc-meta { margin: 2px 0 0; font-size: 17px; color: var(--ink-2); }
.kc-meta b { color: var(--ink); }
.kc-badge { display: inline-block; padding: 2px 10px 0; border-radius: 999px; font-style: normal; font-size: 13px; font-weight: 800; line-height: 1.6; }
.kc-badge.near { background: var(--leaf-wash); color: var(--leaf-ink); }
.kc-badge.picked { background: var(--wash); color: var(--ink); border: 1px solid var(--mustard-deep); }
.kc-badge.mine { background: var(--ink); color: var(--paper); }

.kc-veh-head { display: flex; align-items: center; gap: 12px; }
.kc-veh-head span { display: flex; flex-direction: column; min-width: 0; }
.kc-veh-head b { font-size: 21px; font-weight: 800; line-height: 1.2; }
.kc-veh-head small { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.kc-veh .kc-meta { margin-top: 8px; }

/* call / directions buttons: icon + label + the number itself */
.kc-act {
	display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px; margin-top: 12px;
	border-radius: 14px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); text-decoration: none;
}
.kc-act svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--leaf-ink); }
.kc-act span { display: flex; flex-direction: column; min-width: 0; }
.kc-act b { font-size: 17px; font-weight: 800; line-height: 1.2; }
.kc-act small { font-size: 15px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.kc-act-main { background: var(--leaf); border-color: var(--leaf); color: #fff; min-height: 64px; }
.kc-act-main svg, .kc-act-main small { color: #fff; }
.kc-act-main b { font-size: 20px; }
.kc-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 10px; }  /* side by side on wide screens only */

.kc-point-name { font-size: 26px; margin: 4px 0 0; }
.kc-change { margin-top: 12px; }

/* ---------- reminder ---------- */
.kc-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.kc-chips button {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 64px; padding: 6px 2px;
	border-radius: 14px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer;
}
.kc-chips b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.kc-chips small { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.kc-chips svg { width: 24px; height: 24px; margin-bottom: 2px; }
.kc-chips .off { grid-column: span 2; }
.kc-chips .on { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.kc-chips .on small { color: #fff; }
.kc-chips .off.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.kc-chips .off.on small { color: var(--paper); }
.kc-remind-line { margin: 12px 0 0; font-size: 17px; font-weight: 700; }
.kc-hint { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }

/* ---------- pick a point ---------- */
.kc-lead { margin: 0 0 12px; font-size: 17px; color: var(--ink-2); }
.kc-auto { margin: 0 0 14px; }
.kc-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kc-prow {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 76px; padding: 12px 14px; text-align: left; cursor: pointer;
	border-radius: 16px; border: 2px solid transparent; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm);
}
.kc-prow.on { border-color: var(--leaf); background: var(--leaf-wash); }
.kc-prow.on .kc-ico { background: var(--leaf); color: #fff; }
.kc-prow.busy { opacity: .6; }
.kc-prow-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.kc-prow-main b { font-size: 19px; font-weight: 800; line-height: 1.2; }
.kc-prow-main small { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.kc-prow-next { display: flex; align-items: center; gap: 4px; }
.kc-prow-next svg { width: 16px; height: 16px; flex: 0 0 auto; }
.kc-km { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; min-width: 48px; }
.kc-km b { font-size: 24px; font-weight: 800; line-height: 1; }
.kc-km small { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.kc-note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--wash); font-weight: 700; }
.kc-note svg { width: 22px; height: 22px; flex: 0 0 auto; }

/* ---------- farmer home: "गाडी कहाँ छ?" + the vehicle time on drop-off boxes ---------- */
.kc-home {
	display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px; min-height: 80px;
	border-radius: 20px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
}
.kc-home.tone-action { box-shadow: 0 0 0 3px var(--leaf), var(--shadow); }
.kc-home.tone-action .kc-ico { background: var(--leaf); color: #fff; }
.kc-home > span:not(.kc-go) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.kc-home b { font-size: 19px; font-weight: 800; line-height: 1.25; }
.kc-home small { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.kc-go { font-size: 34px; font-weight: 800; line-height: 1; color: var(--ink-2); }
.kf-drop-veh { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 2px 0 4px; font-size: 17px; font-weight: 800; color: inherit; text-decoration: none; }
.kf-drop-veh[hidden] { display: none; }
.kf-drop-veh svg { width: 22px; height: 22px; flex: 0 0 auto; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .kc-map .leaflet-tile-pane { filter: brightness(.82) contrast(1.05); }
	:root:not([data-theme="light"]) .kc-truck span { border-color: var(--paper); }
}
