/* 手机端 — 无顶栏 / 白底搜索区 / 6 列订单卡片 */
.app-header {
    display: none;
}

.app-main {
    padding-top: 10px;
    padding-left: 12px;
    padding-right: 12px;
}

.desktop-only {
    display: none !important;
}

/* 与 mobile-orders.css 同步（media 768 内且未走 PHP 手机类时兜底） */
.search-panel {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(15, 35, 75, 0.08);
}

.search-panel__form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-panel__input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 19px;
    background: #f2f4f7;
    font-size: 14px;
}

.search-panel__btn {
    flex-shrink: 0;
    height: 38px;
    min-width: 52px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.search-panel__btn--primary {
    background: #1e3a6e;
    color: #fff;
}

.search-panel__btn--ghost {
    background: #fff;
    color: #1e3a6e;
    border: 1px solid #1e3a6e;
}

.search-panel__btn--icon {
    min-width: 38px;
    width: 38px;
    padding: 0;
    font-size: 22px;
}

.filter-panel {
    display: none;
    background: var(--card);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.filter-panel.is-open {
    display: block;
}

.filter-grid {
    display: grid;
    gap: 12px;
}

.filter-grid label {
    font-size: 13px;
    color: var(--muted);
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    margin-top: 4px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.list-desktop {
    display: none;
}

/* 订单卡片 */
.order-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.order-card-link {
    display: block;
    padding: 14px 12px 12px;
    color: inherit;
}

.order-card-link:active {
    background: #f8fafc;
}

/* 第一行：日期 | 标签 */
.order-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.order-card-date {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

/* 分隔线 */
.order-card-divider {
    height: 0;
    border: none;
    border-top: 1px solid var(--border);
    margin: 10px 0 10px;
}

/* 第二、三行：6 列网格 */
.order-grid-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 12px auto minmax(0, 1fr) 12px;
    column-gap: 4px;
    row-gap: 8px;
    align-items: center;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.order-grid-row:last-of-type {
    margin-bottom: 0;
}

.og-label {
    color: var(--text);
    white-space: nowrap;
}

.og-amount {
    color: var(--text);
    font-weight: 500;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.og-signal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
}

/* 第四行：备注 */
.order-card-remark {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px dashed var(--border-strong);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
    word-break: break-word;
}

.order-remark-label {
    color: var(--muted);
}

/* 红绿灯圆点 */
.signal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.status-green {
    background: #22c55e;
}

.status-red {
    background: #ef4444;
}

.status-yellow {
    background: #eab308;
}

.status-gray {
    background: #cbd5e1;
}

.anchor-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 10px;
    margin-bottom: 10px;
    background: rgba(238, 242, 246, 0.95);
    backdrop-filter: blur(8px);
    -webkit-overflow-scrolling: touch;
}

.anchor-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: var(--card);
    border-radius: 999px;
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border);
}

.section-card {
    scroll-margin-top: 56px;
}

.users-mobile {
    display: block;
}

.users-desktop {
    display: none;
}

.users-mobile .inline-delete {
    margin-top: 8px;
}

.deleted-orders-mobile {
    display: block;
}

.deleted-orders-desktop {
    display: none;
}

.deleted-order-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.deleted-order-card__no {
    font-weight: 600;
}

.deleted-order-card__remark {
    font-size: 13px;
    color: var(--muted);
    margin: 8px 0 12px;
    line-height: 1.45;
}

.deleted-order-card .btn-block {
    width: 100%;
}

.kv-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin: 4px 0;
}

.kv-line span {
    color: var(--muted);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    padding: 8px 12px;
    background: var(--card);
    border-radius: 8px;
    font-size: 13px;
    box-shadow: var(--shadow);
}

.pagination a.current {
    background: var(--primary);
    color: #fff;
}

.page-info {
    font-size: 12px;
    color: var(--muted);
    width: 100%;
    text-align: center;
    margin-top: 6px;
}
