/* «Замовлення» (web/orders.js): one day's orders as cards. Card colour = the order's group colour from
   the Продажі today card (--c, inline), tinted like the GA live card (vivid at ~9 % → 2 %). */
#orders-root { padding: 0 12px 24px; }

.od-days {
    display: flex; align-items: center; gap: 6px;
    padding: 6px; margin: 4px 0 10px;
    border-radius: 14px; background: rgba(255, 255, 255, 0.05);
}
.od-days__nav {
    width: 36px; height: 36px; flex-shrink: 0;
    display: grid; place-items: center;
    border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: #E5E7EB;
}
.od-days__nav:disabled { opacity: 0.25; }
.od-days__ttl { flex: 1; text-align: center; font-size: 15px; font-weight: 800; color: #fff; }
.od-days__ttl small { margin-left: 6px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.45); }
.od-days__today {
    border: 0; background: none; padding: 0 6px;
    font-size: 13px; font-weight: 700; color: #22D3EE;
}

.od-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.od-chip {
    font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
    background: none; color: color-mix(in srgb, var(--c) 85%, #fff);
    border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.od-chip b { font-weight: 800; }
.od-chip.is-on { background: color-mix(in srgb, var(--c) 22%, transparent); border-color: var(--c); color: #fff; }
.od-sort { flex-basis: 100%; font-size: 12px; color: rgba(255, 255, 255, 0.4); margin: 2px 2px 0; }
.od-sort button { border: 0; background: none; padding: 0; font: inherit; color: rgba(255, 255, 255, 0.5); }
.od-sort button.is-on { color: #E5E7EB; text-decoration: underline; text-underline-offset: 3px; }

.od-note {
    font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.7);
    padding: 8px 12px; margin-bottom: 10px; border-radius: 12px;
    background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.22);
}
.od-note b { color: #fff; }

.od-head {
    display: flex; justify-content: space-between;
    margin: 14px 4px 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--c);
}
.od-head span { color: rgba(255, 255, 255, 0.45); }

.od-card {
    border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer;
    background: linear-gradient(color-mix(in srgb, var(--c) 9%, transparent), color-mix(in srgb, var(--c) 2%, transparent));
    border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
    -webkit-tap-highlight-color: transparent;
}
.od-card:active { transform: scale(0.99); }
.od-l1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.od-tm { font-size: 13px; color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }
.od-id { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.8); }
.od-st {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
    color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
}
.od-sum { margin-left: auto; flex-shrink: 0; font-size: 15px; font-weight: 800; color: #fff; white-space: nowrap; }
.od-l2 {
    margin-top: 6px; font-size: 13.5px; font-weight: 600; color: #F3F4F6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.od-l2 span { color: rgba(255, 255, 255, 0.5); font-weight: 700; }
.od-l3 { margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, 0.5); }

.od-link {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    margin-top: 7px; padding: 4px 8px; border: 0; border-radius: 7px;
    font-size: 12px; font-weight: 700; color: #22D3EE; background: rgba(34, 211, 238, 0.1);
}
.od-link i {
    font-style: normal; font-weight: 700; font-size: 11px; padding: 1px 6px; border-radius: 5px;
    color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent);
}

.od-body { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.08); cursor: default; }
.od-sec { margin: 6px 0; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); }
.od-it { display: flex; gap: 8px; margin-bottom: 5px; font-size: 12.5px; line-height: 1.35; }
.od-it__q { color: rgba(255, 255, 255, 0.5); font-weight: 700; }
.od-it__n { flex: 1; min-width: 0; color: #E5E7EB; overflow-wrap: anywhere; }
.od-it__p { flex-shrink: 0; font-weight: 700; color: #fff; white-space: nowrap; }
.od-tl { margin-left: 4px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.od-ev { position: relative; display: flex; gap: 8px; margin-bottom: 6px; font-size: 12.5px; color: #E5E7EB; }
.od-ev::before {
    content: ''; position: absolute; left: -16.5px; top: 5px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--c);
}
.od-ev__t { flex-shrink: 0; min-width: 38px; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }
.od-raw { margin-top: 8px; font-size: 11px; line-height: 1.4; color: rgba(255, 255, 255, 0.35); }

.od-empty { padding: 40px 0; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.45); }
