/* ============================================================
   order-feed-table.css  —  Лента заказов: таблица
   ============================================================ */

/* ── Тулбар (фильтры + поиск) ────────────────────────────── */
.oft-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    padding: 14px 18px;
    background: var(--card, #fff);
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 12px;
}

.oft-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.oft-toolbar-row + .oft-toolbar-row {
    padding-top: 8px;
    border-top: 1px solid var(--border, #e5e7eb);
}

/* Чипы техники */
.oft-tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.oft-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .15s;
    background: var(--bg, #f8fafc);
    color: var(--muted, #64748b);
    white-space: nowrap;
    user-select: none;
}

.oft-chip:hover {
    border-color: var(--primary, #3b82f6);
    color: var(--primary, #3b82f6);
}

.oft-chip.active {
    border-color: currentColor;
    font-weight: 700;
}

.oft-chip[data-tech="all"].active    { background: #f1f5f9; color: #475569; border-color: #94a3b8; }
.oft-chip[data-tech="сма"].active    { background: #dbeafe; color: #2563eb; border-color: #2563eb; }
.oft-chip[data-tech="пмм"].active    { background: #d1fae5; color: #059669; border-color: #059669; }
.oft-chip[data-tech="холод"].active  { background: #e0f2fe; color: #0284c7; border-color: #0284c7; }
.oft-chip[data-tech="суш"].active    { background: #ede9fe; color: #7c3aed; border-color: #7c3aed; }
.oft-chip[data-tech="конд"].active   { background: #cffafe; color: #0891b2; border-color: #0891b2; }
.oft-chip[data-tech="мкв"].active    { background: #fef3c7; color: #d97706; border-color: #d97706; }
.oft-chip[data-tech="дух"].active    { background: #fee2e2; color: #dc2626; border-color: #dc2626; }

/* Поиск */
.oft-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.oft-search-wrap i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted, #94a3b8);
    font-size: 13px;
    pointer-events: none;
}

.oft-search {
    width: 100%;
    padding: 7px 10px 7px 32px;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 8px;
    font-size: 13px;
    background: var(--bg, #f8fafc);
    color: var(--text, #1e293b);
    outline: none;
    transition: border-color .15s;
}

.oft-search:focus { border-color: var(--primary, #3b82f6); }

/* Селекты */
.oft-select {
    padding: 7px 10px;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 8px;
    font-size: 13px;
    background: var(--bg, #f8fafc);
    color: var(--text, #1e293b);
    cursor: pointer;
    outline: none;
    transition: border-color .15s;
}

.oft-select:focus { border-color: var(--primary, #3b82f6); }

/* Счётчик + per-page */
.oft-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.oft-count {
    font-size: 12px;
    color: var(--muted, #94a3b8);
    white-space: nowrap;
}

/* ── Таблица ────────────────────────────────────────────── */
.oft-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1.5px solid var(--border, #e5e7eb);
    background: var(--card, #fff);
}

.oft-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 780px;
}

/* Шапка */
.oft-table thead th {
    padding: 11px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted, #64748b);
    background: var(--bg, #f8fafc);
    border-bottom: 1.5px solid var(--border, #e5e7eb);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

.oft-table thead th:first-child { border-radius: 10px 0 0 0; }
.oft-table thead th:last-child  { border-radius: 0 10px 0 0; }

/* Строки */
.oft-row {
    border-bottom: 1px solid var(--border, #f1f5f9);
    cursor: pointer;
    transition: background .1s;
}

.oft-row:last-child { border-bottom: none; }

.oft-row:hover { background: var(--bg, #f8fafc); }

.oft-row td {
    padding: 11px 12px;
    vertical-align: middle;
    color: var(--text, #1e293b);
}

/* Цветные метки техники */
.oft-tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.oft-brand {
    font-size: 11px;
    color: var(--muted, #94a3b8);
    display: block;
    margin-top: 2px;
}

/* Неисправность */
.oft-problem {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text, #1e293b);
}

/* Адрес */
.oft-addr {
    max-width: 130px;
    font-size: 12px;
    color: var(--muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Стоимость */
.oft-cost {
    font-weight: 600;
    white-space: nowrap;
    color: var(--primary, #3b82f6);
}

/* Процент */
.oft-pct { white-space: nowrap; font-size: 12px; }

/* Дата */
.oft-date { white-space: nowrap; font-size: 12px; line-height: 1.4; }

/* Создатель */
.oft-creator { font-size: 12px; max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Отклики */
.oft-resp-cell { white-space: nowrap; }

.oft-resp {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(99,102,241,.1);
    color: #6366f1;
}

.oft-resp-mine {
    background: #d1fae5;
    color: #059669;
}

.oft-resp-full {
    background: #fee2e2;
    color: #dc2626;
}

/* Статус */
.oft-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.oft-s-blue   { background: #dbeafe; color: #1d4ed8; }
.oft-s-orange { background: #ffedd5; color: #c2410c; }
.oft-s-purple { background: #ede9fe; color: #6d28d9; }
.oft-s-green  { background: #d1fae5; color: #065f46; }
.oft-s-gray   { background: #f1f5f9; color: #475569; }
.oft-s-red    { background: #fee2e2; color: #991b1b; }
.oft-s-teal   { background: #ccfbf1; color: #0f766e; }
.oft-s-yellow { background: #fef3c7; color: #92400e; }

/* Действие */
.oft-action-cell { white-space: nowrap; }

.oft-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
    white-space: nowrap;
}

.oft-btn:active { transform: scale(.97); }

.oft-btn-primary { background: var(--primary, #3b82f6); color: #fff; }
.oft-btn-primary:hover { opacity: .9; }

.oft-btn-accent  { background: var(--accent, #14b8a6); color: #fff; }
.oft-btn-accent:hover { opacity: .9; }

.oft-btn-green   { background: #10b981; color: #fff; }
.oft-btn-green:hover { opacity: .9; }

.oft-btn-yellow  { background: #f59e0b; color: #fff; }
.oft-btn-yellow:hover { opacity: .9; }

.oft-btn-red     { background: #ef4444; color: #fff; }

.oft-btn-ghost {
    background: rgba(99,102,241,.07);
    color: #6366f1;
    border: 1.5px solid rgba(99,102,241,.2);
}
.oft-btn-ghost:hover { border-color: var(--primary, #6366f1); background: rgba(99,102,241,.14); color: #4f46e5; }
.oft-btn-edit {
    background: #fffbeb;
    color: #d97706;
    border: 1.5px solid #fde68a;
}
.oft-btn-edit:hover { background: #fef3c7; border-color: #f59e0b; color: #b45309; }


/* ── Пагинация ──────────────────────────────────────────── */
.oft-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    padding: 16px 0 4px;
    flex-wrap: wrap;
}

.oft-page-info {
    font-size: 12px;
    color: var(--muted, #94a3b8);
    margin-right: 6px;
}

.oft-page-btn {
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg, #f1f5f9);
    color: var(--text, #475569);
    border: 1.5px solid var(--border, #e2e8f0);
    transition: all .15s;
}

.oft-page-btn:hover,
.oft-page-btn.active {
    background: var(--primary, #3b82f6);
    color: #fff;
    border-color: var(--primary, #3b82f6);
}

/* ── OLC Модальное окно (если не задано в теме) ─────────── */
#olcModal {
    display: none;
    position: fixed; inset: 0; z-index: 9999;
    align-items: center; justify-content: center;
}
#olcModal.active { display: flex; }

.olc-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(3px);
}

.olc-modal-box {
    position: relative; z-index: 1;
    background: var(--card, #fff);
    border-radius: 14px;
    width: 95%;
    max-width: 580px;
    max-height: 88vh;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    overflow: hidden;
}

.olc-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1.5px solid var(--border, #e5e7eb);
    flex-shrink: 0;
}

.olc-modal-title {
    font-size: 15px; font-weight: 700;
    color: var(--text, #1e293b);
}

.olc-modal-close {
    background: none; border: none; cursor: pointer;
    font-size: 18px; color: var(--muted, #94a3b8);
    padding: 4px 8px; border-radius: 6px; line-height: 1;
    transition: background .15s;
}
.olc-modal-close:hover { background: var(--bg, #f1f5f9); color: var(--text, #1e293b); }

.olc-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.olc-modal-foot {
    padding: 14px 20px;
    border-top: 1.5px solid var(--border, #e5e7eb);
    display: flex; gap: 10px; flex-wrap: wrap;
    flex-shrink: 0;
}

/* ── Тост уведомления ────────────────────────────────────── */
.olc-toast-container {
    position: fixed; bottom: 24px; right: 24px;
    display: flex; flex-direction: column; gap: 8px;
    z-index: 10000;
}

.olc-toast {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px; font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    animation: oft-toast-in .2s ease;
    min-width: 180px;
}

.olc-toast.success { background: #10b981; }
.olc-toast.error   { background: #ef4444; }
.olc-toast.info    { background: #3b82f6; }

@keyframes oft-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .oft-toolbar { padding: 10px 12px; }
    .oft-table-wrap { border-radius: 8px; }
    .oft-table { min-width: 680px; font-size: 12px; }
    .oft-table thead th { padding: 9px 8px; }
    .oft-row td { padding: 9px 8px; }
    .oft-btn { padding: 4px 9px; font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════
   ЛЕНТА ЗАКАЗОВ — Карточки (redesign 2025)
   ═══════════════════════════════════════════════════════════ */

/* ── Сетка ──────────────────────────────────────────────── */
.oft-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    align-items: start;
}

/* ── Карточка ───────────────────────────────────────────── */
.oft-card {
    background: var(--card, #fff);
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.15s ease;
}

.oft-card:hover {
    box-shadow: 0 10px 30px rgba(99,102,241,.13), 0 2px 8px rgba(0,0,0,.06);
    border-color: var(--primary, #6366f1);
    transform: translateY(-2px);
}
@media (hover: none) { .oft-card:hover { transform: none; } }

/* Цветная полоса слева (по цвету техники) */
.oft-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--tc, var(--primary, #6366f1));
    border-radius: 16px 0 0 16px;
    opacity: 0;
    transition: opacity 0.22s ease;
}
.oft-card:hover::before { opacity: 1; }

/* ── Шапка карточки ─────────────────────────────────────── */
.oft-card-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 11px 16px;
    background: var(--tbg, #f8fafc);
    border-bottom: 1px solid var(--border, #f1f5f9);
}

.oft-card-hd-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.11);
    padding: 8px;
}
.oft-card-hd-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.oft-card-hd-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.oft-card-hd-tech {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .025em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.3;
}

.oft-card-hd-brand {
    font-weight: 500;
    font-size: 12px;
    color: var(--muted, #64748b);
    font-style: normal;
}

.oft-card-hd-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.oft-card-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted, #94a3b8);
    letter-spacing: .05em;
    opacity: .65;
}

/* ── Тело карточки ──────────────────────────────────────── */
.oft-card-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

/* ── Проблема ────────────────────────────────────────────── */
.oft-card-problem {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #1e293b);
    margin: 0;
    line-height: 1.52;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Строка мета (адрес + дата) ──────────────────────────── */
.oft-card-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* Чип-таблетка для адреса и даты */
.oft-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--muted, #64748b);
    background: var(--bg, #f8fafc);
    border: 1px solid var(--border, #e8ecf0);
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oft-info-chip i {
    color: var(--primary, #6366f1);
    font-size: 10px;
    flex-shrink: 0;
}

/* Обратная совместимость */
.oft-card-meta-item { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted, #64748b); white-space: nowrap; }
.oft-card-meta-item i { color: var(--primary, #6366f1); font-size: 10px; }

/* Таймер обратного отсчёта */
.oft-info-countdown,
.oft-card-countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #d97706;
    background: #fef9ec;
    border: 1px solid #fde68a;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}
.oft-info-countdown i, .oft-card-countdown i { font-size: 10px; }

/* ── Футер карточки ─────────────────────────────────────── */
.oft-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 16px 14px;
    border-top: 1px solid var(--border, #ede9fe);
    background: linear-gradient(180deg,#fafbff 0%,#f5f3ff 100%);
    flex-wrap: wrap;
}

/* ── Блок стоимости ─────────────────────────────────────── */
.oft-card-cost-block {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.oft-cost-sum {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary, #6366f1);
    letter-spacing: -.02em;
    white-space: nowrap;
}

.oft-cost-tag {
    font-size: 10px;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: rgba(99,102,241,.1);
    padding: 3px 7px;
    border-radius: 20px;
}

.oft-pct-chip,
.oft-card-pct-badge {
    font-size: 11px;
    font-weight: 800;
    background: linear-gradient(135deg,#7c3aed,#6366f1);
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: .02em;
}

/* ── Действия в футере ──────────────────────────────────── */
.oft-card-acts {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.oft-card-action { flex-shrink: 0; }

/* ── Время публикации ───────────────────────────────────── */
.oft-card-timeago,
.oft-card-pub-time {
    font-size: 10px;
    color: var(--muted, #94a3b8);
    text-align: right;
    padding: 0 16px 9px;
    opacity: .6;
    display: block;
}
.oft-card-timeago i,
.oft-card-pub-time i { font-size: 9px; margin-right: 2px; }

/* ── Срочность ──────────────────────────────────────────── */
.oft-urgency-badge,
.oft-urgency {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.4;
}

.oft-urgency-hot,
.oft-urgency-hot   { background: #fee2e2; color: #b91c1c; }
.oft-urgency-pre,
.oft-urgency-today { background: #fef3c7; color: #b45309; }

/* ── Кнопка скрыть / показать ───────────────────────────── */
.oft-btn-hide {
    background: none;
    border: 1.5px solid rgba(99,102,241,.2);
    border-radius: 20px;
    color: #a5b4fc;
    font-size: 12px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    flex-shrink: 0;
    font-family: inherit;
}
.oft-btn-hide:hover { color: #ef4444; border-color: #fca5a5; background: #fef2f2; }
.oft-btn-hide[style*="10b981"],
.oft-btn-unhide { color: #10b981 !important; border-color: #a7f3d0 !important; }
.oft-btn-unhide:hover { color: #059669 !important; border-color: #6ee7b7 !important; background: #f0fdf4 !important; }

/* Дополнительные варианты кнопок */
.oft-btn-chat {
    background: #f0f9ff;
    color: #0284c7;
    border: 1.5px solid #bae6fd;
}
.oft-btn-chat:hover { background: #e0f2fe; border-color: #7dd3fc; }

/* ── Пустое / загрузка ──────────────────────────────────── */
.oft-empty,
.oft-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 20px;
    color: var(--muted, #94a3b8);
}
.oft-empty i, .oft-loading i {
    font-size: 40px;
    display: block;
    margin-bottom: 14px;
    opacity: .3;
}
.oft-loading i { opacity: .5; }
.oft-empty p, .oft-loading p { font-size: 14px; margin: 0; }
.oft-empty.oft-error, .oft-empty.oft-error p { color: var(--danger, #ef4444); }
.oft-empty.oft-error i { opacity: .6; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .oft-cards-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
}
@media (max-width: 600px) {
    .oft-cards-grid { grid-template-columns: 1fr; gap: 10px; }
    .oft-card-hd { padding: 12px 14px 10px; }
    .oft-card-body { padding: 10px 14px; }
    .oft-card-foot { padding: 9px 14px 12px; }
    .oft-card-hd-icon { width: 46px; height: 46px; font-size: 20px; border-radius: 12px; padding: 7px; }
    .oft-card-problem { font-size: 13px; }
    .oft-cost-sum { font-size: 15px; }
    .oft-card-timeago, .oft-card-pub-time { padding: 0 14px 8px; }
}

/* ── Карточка "Мои заказы" (мастер) ─────────────────────── */
.myorder-card {
    background: var(--card, #fff);
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: box-shadow .18s, border-color .18s, transform .15s;
    overflow: hidden;
}

/* Цветная полоска слева через псевдоэлемент + top accent bar */
.myorder-card[data-status="Откликнулся"]    { border-left: 4px solid #3b82f6; }
.myorder-card[data-status="Назначен другой"]{ border-left: 4px solid #94a3b8; opacity:.75; }
.myorder-card[data-status="Назначен"]       { border-left: 4px solid #6d28d9; }
.myorder-card[data-status="Подтверждён"]    { border-left: 4px solid #0f766e; }
.myorder-card[data-status="Договорился"]    { border-left: 4px solid #0f766e; }
.myorder-card[data-status="Заказ в работе"] { border-left: 4px solid #f59e0b; }
.myorder-card[data-status="В работе"]       { border-left: 4px solid #f59e0b; }
.myorder-card[data-status="Перенос"]        { border-left: 4px solid #ea580c; }
.myorder-card[data-status="Выполнен"]       { border-left: 4px solid #10b981; }
.myorder-card[data-status="Закрыт"]         { border-left: 4px solid #94a3b8; }
.myorder-card[data-status="Архив"]          { border-left: 4px solid #cbd5e1; opacity:.7; }
.myorder-card[data-status="Отменён"]        { border-left: 4px solid #ef4444; opacity:.75; }

.myorder-card:hover {
    box-shadow: 0 6px 22px rgba(0,0,0,.1);
    border-color: #a5b4fc;
    transform: translateY(-1px);
}

.myorder-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.myorder-tech-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.myorder-emoji {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 7px;
    box-shadow: 0 2px 6px rgba(0,0,0,.07);
}
.myorder-emoji svg {
    width: 100%;
    height: 100%;
    display: block;
}

.myorder-tech {
    font-size: 14px;
    font-weight: 700;
    color: var(--text, #1e293b);
    line-height: 1.3;
}

.myorder-tech em {
    font-style: normal;
    font-weight: 400;
    color: var(--muted, #94a3b8);
    font-size: 12px;
}

.myorder-problem {
    font-size: 12.5px;
    color: var(--muted, #64748b);
    margin-top: 3px;
    line-height: 1.4;
}

/* Статусы для myorder */
.myorder-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.myorder-s-blue   { background: #dbeafe; color: #1d4ed8; }
.myorder-s-purple { background: #ede9fe; color: #6d28d9; }
.myorder-s-orange { background: #ffedd5; color: #c2410c; }
.myorder-s-green  { background: #d1fae5; color: #065f46; }
.myorder-s-gray   { background: #f1f5f9; color: #475569; }
.myorder-s-red    { background: #fee2e2; color: #991b1b; }
.myorder-s-teal   { background: #ccfbf1; color: #0f766e; }

.myorder-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.myorder-info {
    font-size: 12.5px;
    color: var(--text, #374151);
    display: flex;
    align-items: center;
    gap: 7px;
}

.myorder-info i {
    width: 14px;
    text-align: center;
    color: #6366f1;
    flex-shrink: 0;
    opacity: .7;
}

.myorder-info a { color: var(--primary, #3b82f6); text-decoration: none; font-weight: 600; }
.myorder-info a:hover { text-decoration: underline; }

.myorder-cost { font-size: 14px; }
.myorder-cost strong { color: var(--primary, #3b82f6); }

.myorder-earn {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    margin-left: 4px;
}

.myorder-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--border-light, #f1f5f9);
}

.myorder-waiting {
    font-size: 12px;
    color: var(--muted, #94a3b8);
    display: flex;
    align-items: center;
    gap: 5px;
}
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.myorder-info {
    font-size: 13px;
    color: var(--text, #374151);
    display: flex;
    align-items: center;
    gap: 7px;
}

.myorder-info i {
    width: 14px;
    text-align: center;
    color: var(--primary, #3b82f6);
    flex-shrink: 0;
}

.myorder-info a { color: var(--primary, #3b82f6); text-decoration: none; font-weight: 600; }
.myorder-info a:hover { text-decoration: underline; }

.myorder-cost { font-size: 14px; }
.myorder-cost strong { color: var(--primary, #3b82f6); }

.myorder-earn {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

.myorder-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border, #f1f5f9);
}

.myorder-waiting {
    font-size: 12px;
    color: var(--muted, #94a3b8);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Полная карточка заказа (модал) ──────────────────────── */
.olc-detail { display: flex; flex-direction: column; gap: 0; }

.olc-dhero {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.olc-dstatus {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.olc-durgency {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: #fee2e2;
    color: #b91c1c;
}

.olc-did {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted, #94a3b8);
}

.olc-dsection {
    padding: 14px 0;
    border-top: 1px solid var(--border, #f1f5f9);
}

.olc-dsection:first-of-type { border-top: none; padding-top: 0; }

.olc-dsection-done {
    background: #f0fdf4;
    margin: 0 -20px;
    padding: 14px 20px;
    border-top: 1.5px solid #bbf7d0;
}

.olc-dshead {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted, #94a3b8);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.olc-dshead i { color: var(--primary, #3b82f6); }

.olc-drow {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border, #f8fafc);
}

.olc-drow:last-child { border-bottom: none; }

.olc-dlabel {
    font-size: 12px;
    color: var(--muted, #94a3b8);
    min-width: 130px;
    flex-shrink: 0;
}

.olc-dval {
    font-size: 14px;
    color: var(--text, #1e293b);
    word-break: break-word;
}

.olc-dval a { color: var(--primary, #3b82f6); font-weight: 600; }

.olc-drow-em .olc-dval { font-weight: 600; font-size: 15px; }

.olc-dphone {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary, #3b82f6) !important;
    text-decoration: none;
}
.olc-dphone:hover { text-decoration: underline; }

.olc-dlocked {
    font-size: 13px;
    color: var(--muted, #94a3b8);
    background: #fef9c3;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.olc-err-msg {
    text-align: center;
    padding: 32px;
    color: var(--danger, #ef4444);
    font-size: 14px;
}

@media (max-width: 480px) {
    .olc-dlabel { min-width: 100px; font-size: 11px; }
    .olc-dval { font-size: 13px; }
    .myorder-actions { gap: 6px; }
    .myorder-actions .oft-btn { font-size: 11px; padding: 5px 10px; }
}

/* ── Фильтры заказов агрегатора ──────────────────────────── */
.agg-order-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 0;
}

.agg-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 10px;
    background: var(--card, #fff);
    color: var(--muted, #6b7280);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    font-family: inherit;
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,.04));
}

.agg-filter-btn:hover {
    border-color: var(--primary, #6366f1);
    color: var(--primary, #6366f1);
    background: rgba(99,102,241,.05);
}

.agg-filter-btn.active {
    border-color: var(--primary, #6366f1);
    color: #fff;
    background: var(--primary, #6366f1);
    box-shadow: 0 2px 8px rgba(99,102,241,.25);
}

.agg-filter-btn.active:hover {
    background: var(--primary-hover, #4f46e5);
}

.agg-filter-count,
.mo-seg-cnt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(0,0,0,.1);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.agg-filter-btn.active .agg-filter-count,
.agg-filter-btn.active .mo-seg-cnt {
    background: rgba(255,255,255,.28);
}

.agg-filter-count:empty,
.mo-seg-cnt:empty {
    display: none;
}

@media (max-width: 480px) {
    .agg-order-filters { gap: 6px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
    .agg-filter-btn { padding: 7px 12px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
}

/* ── Метка метро ──────────────────────────────────────────── */
.oft-metro {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #dc2626;
    font-size: 11px;
    font-weight: 600;
    background: #fef2f2;
    padding: 1px 7px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    white-space: nowrap;
}
.oft-metro i { font-size: 10px; }

/* ── Замок скрытых данных ─────────────────────────────────── */
.oft-locked-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted, #94a3b8);
    font-size: 11px;
    font-style: italic;
    background: #f8fafc;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px dashed var(--border, #e5e7eb);
}

/* ═══════════════════════════════════════════════════════════
   НОВАЯ КРАСИВАЯ КАРТОЧКА ДЕТАЛЕЙ ЗАКАЗА  (.olcd-v2)
   ═══════════════════════════════════════════════════════════ */

.olcd-v2 { display: flex; flex-direction: column; gap: 10px; }

/* ── Герой (шапка карточки) ──────────────────────────────── */
.olcd-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #f8faff 0%, #f3f0ff 100%);
    border: 1.5px solid #e8e4ff;
    border-radius: 14px;
}

.olcd-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
    padding: 10px;
}
.olcd-hero-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.olcd-hero-info { min-width: 0; flex: 1; }

.olcd-hero-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #1e293b);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.olcd-hero-brand {
    font-weight: 400;
    font-size: 14px;
    color: var(--muted, #64748b);
}

.olcd-hero-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
    align-items: center;
}

.olcd-status-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.olcd-urgency-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: #fee2e2;
    color: #b91c1c;
    white-space: nowrap;
}

.olcd-urgency-today {
    background: #fef3c7;
    color: #92400e;
}

.olcd-id-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted, #94a3b8);
    background: rgba(0,0,0,.05);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

/* ── Быстрые чипы (город, дата, цена) ───────────────────── */
.olcd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.olcd-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg, #f8fafc);
    color: var(--text-secondary, #475569);
    border: 1px solid var(--border, #e2e8f0);
    white-space: nowrap;
}

.olcd-chip i { color: var(--primary, #6366f1); font-size: 11px; }

.olcd-chip-money {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
    font-weight: 700;
    font-size: 13px;
}

.olcd-chip-money i { color: #16a34a; }

.olcd-chip-time {
    background: #fefce8;
    color: #ca8a04;
    border-color: #fde68a;
}

.olcd-chip-time i { color: #ca8a04; }

/* ── Информационные блоки ────────────────────────────────── */
.olcd-block {
    background: var(--bg, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 12px 14px;
}

.olcd-block-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted, #94a3b8);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.olcd-block-title i { color: var(--primary, #6366f1); }

/* ── Текст проблемы/описания ─────────────────────────────── */
.olcd-problem-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text, #1e293b);
    margin-bottom: 4px;
    line-height: 1.4;
}

.olcd-desc-text {
    font-size: 13px;
    color: var(--text-secondary, #475569);
    line-height: 1.55;
}

/* ── Адрес и контакты ────────────────────────────────────── */
.olcd-address-main {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #1e293b);
    margin-bottom: 8px;
    line-height: 1.4;
}

.olcd-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary, #475569);
}

.olcd-contact-row i { color: var(--primary, #6366f1); margin-right: 3px; }

.olcd-contact-row a {
    color: var(--primary, #6366f1);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

.olcd-contact-row a:hover { text-decoration: underline; }

/* ── Замок ───────────────────────────────────────────────── */
.olcd-locked-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    font-size: 13px;
    color: #92400e;
}

.olcd-locked-box i { font-size: 16px; color: #f59e0b; flex-shrink: 0; }

.olcd-privacy-note{
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--muted, #94a3b8);
}
.olcd-privacy-note i{
    margin-top: 1px;
    color: #f59e0b;
    flex-shrink: 0;
}

.olcd-async-skel{
    font-size: 13px;
    color: var(--muted, #64748b);
    padding: 8px 0 2px;
}

/* ── Premium footer actions (UI-only) ─────────────────────── */
.olcd-footer-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.olcd-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid transparent;
    box-shadow: 0 10px 22px rgba(15,23,42,.06);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
    user-select: none;
}
.olcd-btn:hover{ transform: translateY(-1px); box-shadow: 0 14px 30px rgba(15,23,42,.10); }
.olcd-btn:active{ transform: translateY(0); box-shadow: 0 10px 22px rgba(15,23,42,.08); }
.olcd-btn:disabled{ opacity: .6; cursor: not-allowed; transform:none; box-shadow:none; }

.olcd-btn--primary{
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: rgba(99,102,241,.35);
}
.olcd-btn--primary:hover{ background: linear-gradient(135deg, #5558f0, #7c4ef5); }

.olcd-btn--accent{
    background: linear-gradient(135deg, #10b981, #22c55e);
    color: #fff;
    border-color: rgba(16,185,129,.35);
}
.olcd-btn--accent:hover{ background: linear-gradient(135deg, #0ea371, #1fb152); }

.olcd-btn--ghost{
    background: rgba(99,102,241,.08);
    color: #4f46e5;
    border-color: rgba(99,102,241,.20);
    box-shadow: none;
}
.olcd-btn--ghost:hover{
    background: rgba(99,102,241,.12);
    box-shadow: none;
}

.olcd-btn--danger{
    background: rgba(239,68,68,.10);
    color: #ef4444;
    border-color: rgba(239,68,68,.25);
    box-shadow: none;
}
.olcd-btn--danger:hover{ background: rgba(239,68,68,.14); }

/* ── Участники (мастер / агрегатор) ──────────────────────── */
.olcd-person-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.olcd-person-row + .olcd-person-row {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border, #e2e8f0);
}

.olcd-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

.olcd-avatar-green { background: linear-gradient(135deg, #10b981, #34d399); }

.olcd-person-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #1e293b);
    line-height: 1.3;
}

.olcd-person-label {
    font-size: 11px;
    color: var(--muted, #94a3b8);
}

/* ── Результат работы ────────────────────────────────────── */
.olcd-block-done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.olcd-block-done .olcd-block-title i { color: #16a34a; }

.olcd-done-amount {
    font-size: 20px;
    font-weight: 700;
    color: #16a34a;
    margin: 4px 0 6px;
}

.olcd-done-services {
    font-size: 13px;
    color: #166534;
    margin-bottom: 4px;
    font-weight: 500;
}

/* ── Модалка для карточки: шире ──────────────────────────── */
#olcModal .olc-modal-box { max-width: 640px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .olcd-hero { padding: 12px; gap: 10px; }
    .olcd-hero-icon { width: 44px; height: 44px; font-size: 22px; border-radius: 11px; }
    .olcd-hero-title { font-size: 14px; }
    .olcd-contact-row a { font-size: 14px; }
    .olcd-done-amount { font-size: 16px; }
    #olcModal .olc-modal-box { max-width: 100%; width: calc(100% - 18px); }
    .olc-modal-body { padding: 14px; }
    .olc-modal-foot { padding: 12px 14px; }
    .olcd-footer-actions{ justify-content: stretch; }
    .olcd-footer-actions .olcd-btn{ width: 100%; }
}

/* ── Фото в карточке ────────────────────────────────────── */
/* ── Карусель фото ──────────────────────────────────────── */
.oft-card-photo {
    position: relative;
    margin: 0 16px 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f1f5f9;
    touch-action: pan-y;
    user-select: none;
}
/* Slider track */
.oft-photo-slider {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.oft-photo-slide {
    flex: 0 0 100%;
    min-width: 100%;
    overflow: hidden;
}
.oft-photo-slide img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
/* Dot indicators */
.oft-photo-dots {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    align-items: center;
}
.oft-photo-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    transition: all .25s;
    flex-shrink: 0;
}
.oft-photo-dot.active {
    background: #fff;
    width: 14px;
    border-radius: 3px;
}
/* Photo count badge (single photo) */
.oft-photo-count {
    position: absolute;
    bottom: 7px;
    right: 9px;
    background: rgba(0,0,0,.52);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}
/* Nav arrows on hover (desktop) */
.oft-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    border: none;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
    backdrop-filter: blur(4px);
    z-index: 2;
}
.oft-card-photo:hover .oft-photo-nav { opacity: 1; }
.oft-photo-nav-prev { left: 7px; }
.oft-photo-nav-next { right: 7px; }
.oft-photo-nav:active { transform: translateY(-50%) scale(.93); }
/* Legacy — убираем старые strip стили */
.oft-photo-strip,
.oft-photo-thumb,
.oft-photo-more { display: none !important; }
.oft-card-photo-multi { max-height: none; }

/* ── Индикатор застрявшего заказа ───────────────────────── */
.oft-stale-banner {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 0;
    border-bottom: 1px solid transparent;
}
.oft-stale-warn {
    background: rgba(245,158,11,.1);
    color: #b45309;
    border-color: rgba(245,158,11,.2);
}
.oft-stale-hot {
    background: rgba(239,68,68,.1);
    color: #b91c1c;
    border-color: rgba(239,68,68,.2);
}
.oft-stale-age30 {
    background: rgba(251,146,60,.08);
    color: #c2410c;
    border-color: rgba(251,146,60,.2);
}
/* Карточки по возрасту */
.oft-card-stale-warn { border-left: 4px solid #f59e0b !important; }
.oft-card-stale-hot  { border-left: 4px solid #ef4444 !important; }
.oft-card-age30 { border-left: 4px solid #f97316 !important; background: rgba(251,146,60,.04) !important; }
.oft-card-age20 { border-left: 3px solid #fbbf24 !important; background: rgba(251,191,36,.04) !important; }
.oft-card-age10 { border-left: 3px solid #fde68a !important; }

/* Новый заказ < 10 мин — glow пока не увиден */
@keyframes oft-new-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,.0), var(--shadow-sm); }
    50%       { box-shadow: 0 0 0 6px rgba(99,102,241,.18), var(--shadow-md); }
}
.oft-card-new { border-color: rgba(99,102,241,.4) !important; }
.oft-card-unseen { animation: oft-new-pulse 1.8s ease-in-out infinite; }
.oft-card-seen   { animation: none; transition: box-shadow .5s ease; }

/* Мастер: быстрый workflow под карточкой ленты */
.oft-card-workflow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px 14px 12px;
    border-top: 1px solid var(--border, #e5e7eb);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), #fff);
}
.oft-wf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border, #e2e8f0);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    color: var(--text, #1e293b);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.oft-wf-btn i { font-size: 13px; opacity: 0.9; }
.oft-wf-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.oft-wf-btn:active { transform: scale(0.98); }
.oft-wf-btn--accent {
    border-color: rgba(99, 102, 241, 0.35);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), #fff);
    color: #4338ca;
}
@media (max-width: 480px) {
    .oft-wf-btn span { display: none; }
    .oft-wf-btn { padding: 10px 12px; }
    .oft-wf-btn i { font-size: 15px; }
}

.myorder-card .oft-card-workflow--myorders {
    margin-top: 10px;
    border-radius: 0 0 14px 14px;
}

/* Мастер «Мои заказы»: состояние «отклик отправлен», ожидание выбора агрегатора */
.olc-order-state-card {
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: linear-gradient(180deg, rgba(238, 242, 255, 0.88), rgba(255, 255, 255, 0.96));
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.olc-order-state-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #3730a3;
    margin: 0 0 8px;
    line-height: 1.3;
}
.olc-order-state-card__text {
    font-size: 13px;
    color: #4338ca;
    margin: 0;
    line-height: 1.45;
}
.olc-order-next-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.92);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.olc-order-next-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin: 0 0 6px;
}
.olc-order-next-text {
    font-size: 12px;
    color: #475569;
    margin: 0;
    line-height: 1.45;
}
.olc-responded-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.olc-responded-actions .olc-btn-revoke {
    font-size: 12px;
    padding: 6px 12px;
}
@media (max-width: 480px) {
    .olc-responded-actions .olc-btn-revoke {
        flex: 1 1 100%;
        justify-content: center;
    }
}
