.tm-orders-trademark-column {
    width: 250px;
}

.tm-orders-thumb-box {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-orders-thumb-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tm-orders-action-btn {
    padding: 2px 6px;
    font-size: 12px;
}

.tm-orders-confirm-image {
    max-width: 120px;
    max-height: 120px;
    border: 1px solid #ddd;
    padding: 2px;
}

.tm-orders-class-detail {
    max-height: 250px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.tm-orders-wechat-layer {
    padding: 0;
}

.tm-orders-wechat-title {
    text-align: center;
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.tm-orders-wechat-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.tm-orders-wechat-qrcode {
    display: flex;
    justify-content: center;
}

.tm-orders-wechat-tip {
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.tm-orders-mobile-meta,
.tm-orders-mobile-applicant,
.tm-orders-mobile-remark,
.tm-orders-mobile-status-prefix,
.tm-orders-mobile-status-text,
.tm-orders-mobile-status-suffix {
    display: none;
}

.tm-orders-table tbody tr.tm-orders-row:nth-child(odd) {
    --bs-table-bg: #fff;
    background-color: #fff;
}

.tm-orders-table tbody tr.tm-orders-row:nth-child(odd) > td {
    background-color: #fff;
}

.tm-orders-table tbody tr.tm-orders-row:nth-child(even) {
    --bs-table-bg: #f7f9fc;
    background-color: #f7f9fc;
}

.tm-orders-table tbody tr.tm-orders-row:nth-child(even) > td {
    background-color: #f7f9fc;
}

@media (max-width: 767.98px) {
    .tm-orders-page .dashboard-sidebar {
        position: static;
        overflow: hidden;
        border: 1px solid #dbeafe;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    }

    .tm-orders-page .user-profile-card {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px 12px;
        align-items: center;
        padding: 14px;
        border-bottom: 1px solid #e6eef8;
        background:
            linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(18, 167, 157, 0.08)),
            #fff;
        text-align: left;
    }

    .tm-orders-page .user-avatar {
        grid-row: 1 / 3;
        width: 48px;
        height: 48px;
        margin: 0;
        border-radius: 14px;
        color: #0d6efd;
        font-size: 24px;
        box-shadow: 0 8px 18px rgba(13, 110, 253, 0.16);
    }

    .tm-orders-page #sidebarUsername {
        min-width: 0;
        margin: 0 !important;
        overflow: hidden;
        color: #0f172a;
        font-size: 17px;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tm-orders-page #sidebarMobile {
        min-width: 0;
        margin: 0 !important;
        color: #64748b !important;
        font-size: 12px;
        line-height: 1.35;
    }

    .tm-orders-page .sidebar-menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 12px;
        background: #fff;
    }

    .tm-orders-page .sidebar-link,
    .tm-orders-page .sidebar-group-toggle {
        justify-content: center;
        min-height: 68px;
        padding: 9px 6px;
        border: 1px solid #edf2f7;
        border-radius: 12px;
        background: #f8fbff;
        color: #334155;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
    }

    .tm-orders-page .sidebar-link {
        flex-direction: column;
        gap: 5px;
        border-left: 1px solid #edf2f7;
    }

    .tm-orders-page .sidebar-link i {
        width: auto;
        flex: 0 0 auto;
        color: #0d6efd;
        font-size: 20px;
        line-height: 1;
    }

    .tm-orders-page .sidebar-link.active {
        border-color: #bfdbfe;
        background: #eaf3ff;
        color: #0d6efd;
        box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.08);
    }

    .tm-orders-page .sidebar-group {
        min-width: 0;
        padding: 0;
    }

    .tm-orders-page .sidebar-group.expanded {
        grid-column: 1 / -1;
    }

    .tm-orders-page .sidebar-group-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }

    .tm-orders-page .sidebar-group.expanded .sidebar-group-toggle {
        min-height: 44px;
        flex-direction: row;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .tm-orders-page .sidebar-group-toggle > span {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
    }

    .tm-orders-page .sidebar-group.expanded .sidebar-group-toggle > span {
        flex-direction: row;
        align-items: center;
    }

    .tm-orders-page .sidebar-group-label {
        display: block;
        white-space: normal;
    }

    .tm-orders-page .sidebar-group-arrow {
        display: none;
    }

    .tm-orders-page .sidebar-group.expanded .sidebar-group-arrow {
        display: inline-flex;
    }

    .tm-orders-page .sidebar-group.active .sidebar-group-toggle,
    .tm-orders-page .sidebar-group.expanded .sidebar-group-toggle {
        border-color: #bfdbfe;
        background: #eaf3ff;
    }

    .tm-orders-page .sidebar-submenu {
        display: flex;
        grid-column: 1 / -1;
        gap: 6px;
        margin: 8px 0 0;
        padding: 8px;
        max-width: 100%;
        border: 1px solid #edf2f7;
        border-radius: 12px;
        background: #f8fafc;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tm-orders-page .sidebar-submenu::-webkit-scrollbar {
        display: none;
    }

    .tm-orders-page .sidebar-submenu::before {
        display: none;
    }

    .tm-orders-page .sidebar-group.expanded .sidebar-submenu {
        max-height: 58px;
    }

    .tm-orders-page .sidebar-sublink {
        flex: 0 0 auto;
        justify-content: center;
        min-height: 38px;
        min-width: 104px;
        margin-bottom: 0;
        padding: 8px 10px;
        border-radius: 10px;
        background: #fff;
        font-size: 12px;
        white-space: nowrap;
    }

    .tm-orders-page .sidebar-sublink:last-child {
        margin-bottom: 0;
    }

    .tm-orders-card {
        margin-top: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid #edf2f7;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    }

    .tm-orders-card .table-header {
        gap: 10px;
        margin-bottom: 0;
        padding: 14px;
        border-bottom: 1px solid #edf2f7;
        background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    }

    .tm-orders-card .table-header h5 {
        display: flex;
        min-width: 0;
        align-items: center;
        color: #0f172a;
        font-size: 16px;
        line-height: 1.35;
    }

    .tm-orders-card .table-header h5 .bi {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        margin-right: 7px !important;
        border-radius: 10px;
        background: #eaf3ff;
        color: #0d6efd;
        font-size: 15px;
    }

    .tm-orders-card .table-header .btn {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        max-width: 142px;
        padding: 6px 11px !important;
        border-radius: 999px !important;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
        white-space: nowrap;
    }

    .tm-orders-card .table-header .btn .bi {
        margin-right: 4px !important;
    }

    .tm-orders-filter {
        padding: 12px !important;
        border-bottom: 1px solid #edf2f7;
        background: #f8fbff;
    }

    .tm-orders-filter .row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin: 0;
    }

    .tm-orders-filter .col-md-2,
    .tm-orders-filter .col-md-3 {
        width: auto;
        padding: 0;
    }

    .tm-orders-filter .col-md-3:first-child,
    .tm-orders-filter .col-md-2:nth-child(2),
    .tm-orders-filter .col-md-3:last-child {
        grid-column: 1 / -1;
    }

    .tm-orders-filter .form-label {
        margin-bottom: 5px !important;
        color: #64748b !important;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.25;
    }

    .tm-orders-filter .form-control,
    .tm-orders-filter .form-select {
        min-height: 38px;
        border-color: #dbe3ee;
        border-radius: 10px;
        background-color: #fff;
        font-size: 13px;
    }

    .tm-orders-filter .col-md-3:last-child {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 9px;
        align-items: end !important;
    }

    .tm-orders-filter .col-md-3:last-child .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        width: 100%;
        margin-left: 0 !important;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.2;
    }

    .tm-orders-table-wrap {
        overflow: visible;
        padding: 12px;
        background: #fff;
    }

    .tm-orders-table,
    .tm-orders-table tbody,
    .tm-orders-table tr,
    .tm-orders-table td {
        display: block;
        width: 100%;
    }

    .tm-orders-table {
        margin-bottom: 0;
    }

    .tm-orders-table thead {
        display: none;
    }

    .tm-orders-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .tm-orders-table tr {
        padding: 12px;
        border: 1px solid #edf2f7;
        border-radius: 14px;
        background: #f8fbff;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    }

    .tm-orders-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 30px;
        padding: 6px 0;
        border-bottom: 0;
        color: #0f172a;
        font-size: 13px;
        line-height: 1.35;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .tm-orders-table td::before {
        flex: 0 0 auto;
        color: #64748b;
        font-size: 12px;
        font-weight: 800;
        text-align: left;
        white-space: nowrap;
    }

    .tm-orders-table td:nth-child(1) {
        display: block;
        padding: 0 0 10px;
        border-bottom: 1px solid #e6eef8;
        text-align: left;
    }

    .tm-orders-table td:nth-child(1)::before {
        content: none;
    }

    .tm-orders-table td:nth-child(2)::before {
        content: "申请号";
    }

    .tm-orders-table td:nth-child(3)::before {
        content: "申请人";
    }

    .tm-orders-table td:nth-child(4)::before {
        content: "订单状态";
    }

    .tm-orders-table td:nth-child(5)::before {
        content: "支付状态";
    }

    .tm-orders-table td:nth-child(6)::before {
        content: "时间";
    }

    .tm-orders-table td:nth-child(7)::before {
        content: "备注";
    }

    .tm-orders-table td:nth-child(8)::before {
        content: "操作";
    }

    .tm-orders-table td[colspan] {
        display: block;
        min-height: 148px;
        padding: 28px 12px !important;
        color: #64748b;
        text-align: center;
    }

    .tm-orders-table td[colspan]::before {
        content: none;
    }

    .tm-orders-table td:nth-child(1) > .d-flex {
        align-items: center !important;
        gap: 10px;
        min-width: 0;
    }

    .tm-orders-table td:nth-child(1) .ms-3 {
        min-width: 0;
        margin-left: 0 !important;
    }

    .tm-orders-table td:nth-child(1) .fw-bold {
        color: #0f172a !important;
        font-size: 15px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .tm-orders-table td:nth-child(1) .text-muted {
        margin-top: 3px;
        color: #64748b !important;
        font-size: 12px;
        font-weight: 700;
    }

    .tm-orders-thumb-box {
        width: 48px;
        height: 48px;
        border-color: #dbe3ee;
        border-radius: 12px;
        background: #fff;
    }

    .tm-orders-thumb-box .small {
        font-size: 11px;
    }

    .tm-orders-table .badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 24px;
        padding: 4px 9px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
        white-space: nowrap;
    }

    .tm-orders-table .remark-input {
        max-width: 190px;
        min-height: 34px;
        border-color: #dbe3ee;
        border-radius: 9px;
        background: #fff;
        font-size: 12px;
        text-align: right;
    }

    .tm-orders-table td:last-child {
        display: block;
        padding-top: 10px;
        text-align: left;
    }

    .tm-orders-table td:last-child::before {
        content: none;
    }

    .tm-orders-table td:last-child .d-flex {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px !important;
        width: 100%;
    }

    .tm-orders-action-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 32px;
        width: 100%;
        padding: 5px 7px;
        border-radius: 9px;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
        white-space: nowrap;
    }

    .tm-img-wrapper .tm-img-preview {
        display: none !important;
    }

    .tm-orders-pagination-bar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
        padding: 0 12px 12px !important;
    }

    .tm-orders-pagination-bar #pageInfo {
        text-align: center;
        font-size: 12px;
    }

    .tm-orders-pagination-bar nav {
        display: flex;
        justify-content: center;
        min-width: 0;
    }

    .tm-orders-pagination-bar .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .tm-orders-pagination-bar .page-link {
        min-width: 32px;
        border-radius: 9px !important;
        text-align: center;
    }

    .layui-layer.tm-orders-payment-layer-shell,
    .layui-layer.tm-orders-wechat-layer-shell {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-width: none !important;
        margin: 0 !important;
        overflow: hidden;
        border-radius: 0 !important;
        background: #f6f8fb;
        box-shadow: none !important;
    }

    .tm-orders-payment-layer-shell .layui-layer-title {
        height: 49px;
        padding: 0 48px 0 16px;
        border-bottom: 1px solid #e2e8f0;
        background: #fff;
        color: #0f172a;
        font-size: 16px;
        font-weight: 800;
        line-height: 49px;
    }

    .tm-orders-payment-layer-shell .layui-layer-title .bi {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        margin-right: 7px !important;
        border-radius: 9px;
        background: #eaf3ff;
        color: #0d6efd;
        font-size: 15px;
        vertical-align: -7px;
    }

    .tm-orders-payment-layer-shell .layui-layer-setwin,
    .tm-orders-wechat-layer-shell .layui-layer-setwin {
        top: 15px;
        right: 14px;
    }

    .tm-orders-payment-layer-shell .layui-layer-content {
        height: calc(100vh - 49px - 68px) !important;
        height: calc(100dvh - 49px - 68px - env(safe-area-inset-bottom)) !important;
        overflow-y: auto !important;
        background: #f6f8fb;
        -webkit-overflow-scrolling: touch;
    }

    .tm-orders-payment-layer-shell .layui-layer-btn,
    .tm-orders-wechat-layer-shell .layui-layer-btn {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid #e2e8f0;
        background: #fff;
        box-sizing: border-box;
    }

    .tm-orders-payment-layer-shell .layui-layer-btn {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .tm-orders-wechat-layer-shell .layui-layer-btn {
        grid-template-columns: 1fr;
    }

    .tm-orders-payment-layer-shell .layui-layer-btn a,
    .tm-orders-wechat-layer-shell .layui-layer-btn a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        height: 44px;
        margin: 0 !important;
        padding: 0 12px !important;
        border-radius: 12px !important;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
    }

    .tm-orders-payment-layer-shell .layui-layer-btn0,
    .tm-orders-wechat-layer-shell .layui-layer-btn0 {
        border-color: #0d6efd !important;
        background: #0d6efd !important;
        color: #fff !important;
    }

    .tm-orders-payment-layer-shell .layui-layer-btn0 {
        grid-column: 2;
        grid-row: 1;
    }

    .tm-orders-payment-layer-shell .layui-layer-btn1 {
        grid-column: 1;
        grid-row: 1;
        border-color: #dbe3ee !important;
        background: #f8fafc !important;
        color: #475569 !important;
    }

    .tm-orders-payment-layer {
        min-height: 100%;
        padding: 12px !important;
        background: #f6f8fb;
        box-sizing: border-box;
    }

    .tm-orders-payment-info-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
        margin: 0 0 10px !important;
    }

    .tm-orders-payment-info-card,
    .tm-orders-payment-section,
    .tm-orders-payment-methods {
        margin: 0 0 10px !important;
        padding: 12px !important;
        border: 1px solid #edf2f7;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    }

    .tm-orders-payment-label {
        display: flex;
        align-items: center;
        min-height: 18px;
        margin-bottom: 6px;
        color: #64748b !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1.3;
    }

    .tm-orders-payment-info-value {
        min-width: 0;
        color: #0f172a !important;
        font-size: 15px !important;
        font-weight: 800;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .tm-orders-payment-image-preview {
        display: flex;
        align-items: center;
        min-height: 76px;
        color: #94a3b8;
        font-size: 13px;
    }

    .tm-orders-payment-layer-shell .tm-orders-confirm-image {
        width: 84px;
        height: 84px;
        max-width: 84px;
        max-height: 84px;
        padding: 4px;
        border: 1px solid #dbe3ee;
        border-radius: 12px;
        background: #fff;
        object-fit: contain;
    }

    .tm-orders-payment-class-card .tm-orders-payment-label {
        gap: 8px;
        margin-bottom: 8px;
    }

    .tm-orders-payment-class-card .tm-orders-payment-label .badge {
        flex: 0 0 auto;
        border-radius: 999px;
        background: #eaf3ff !important;
        color: #0d6efd;
        font-size: 11px;
        font-weight: 800;
    }

    .tm-orders-payment-layer-shell .tm-orders-class-detail {
        max-height: 168px;
        padding: 8px;
        border: 1px solid #edf2f7;
        border-radius: 10px;
        background: #f8fafc;
        font-size: 12px;
    }

    .tm-orders-payment-divider {
        display: none;
    }

    .tm-orders-payment-total {
        margin: 0 0 10px !important;
        padding: 12px !important;
        border: 1px solid #fee2e2;
        border-radius: 14px !important;
        background: #fff7ed !important;
    }

    .tm-orders-payment-total label {
        color: #7c2d12;
        font-size: 14px !important;
        font-weight: 800;
    }

    .tm-orders-payment-total-value {
        color: #dc2626 !important;
        font-size: 24px !important;
        line-height: 1;
        white-space: nowrap;
    }

    .tm-orders-payment-method-title {
        margin-bottom: 10px !important;
        color: #0f172a;
        font-size: 14px !important;
        font-weight: 800;
    }

    .tm-orders-payment-method {
        padding: 0 !important;
        overflow: hidden;
        border-color: #e2e8f0 !important;
        border-radius: 12px !important;
        background: #fbfdff !important;
    }

    .tm-orders-payment-method .form-check {
        min-height: 0;
        margin: 0;
        padding: 0;
    }

    .tm-orders-payment-method .form-check-input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .tm-orders-payment-method .form-check-label {
        display: block;
        padding: 12px;
    }

    .tm-orders-payment-method .d-flex {
        gap: 8px;
        min-height: 26px;
    }

    .tm-orders-payment-method span:first-child {
        display: inline-flex;
        min-width: 0;
        align-items: center;
        color: #0f172a;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.3;
    }

    .tm-orders-payment-method span:first-child .bi {
        flex: 0 0 auto;
        margin-right: 6px !important;
        font-size: 17px;
    }

    .tm-orders-payment-method .text-success,
    .tm-orders-payment-method .text-danger {
        flex: 0 0 auto;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.3;
        white-space: nowrap;
    }

    .tm-orders-payment-method.is-selected {
        border-color: #0d6efd !important;
        background: #eef6ff !important;
        box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.16);
    }

    .tm-orders-wechat-layer-shell .layui-layer-content {
        height: calc(100vh - 64px) !important;
        height: calc(100dvh - 64px - env(safe-area-inset-bottom)) !important;
        overflow-y: auto !important;
        background: #f6f8fb;
    }

    .tm-orders-wechat-layer {
        min-height: 100%;
        background: #f6f8fb;
    }

    .tm-orders-wechat-title {
        padding: 15px 44px 14px;
        border-bottom: 1px solid #e2e8f0;
        background: #fff;
        color: #0f172a;
        font-size: 16px;
        font-weight: 800;
    }

    .tm-orders-wechat-body {
        margin: 12px;
        padding: 28px 16px;
        border: 1px solid #dbeafe;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    }

    .tm-orders-wechat-qrcode {
        display: inline-flex;
        padding: 10px;
        border: 1px solid #edf2f7;
        border-radius: 14px;
        background: #fff;
    }

    .tm-orders-wechat-qrcode img,
    .tm-orders-wechat-qrcode canvas {
        width: 180px !important;
        height: 180px !important;
    }

    .tm-orders-wechat-tip {
        margin-top: 14px;
        color: #64748b;
        font-size: 13px;
    }

    .tm-orders-filter {
        padding: 10px 12px !important;
    }

    .tm-orders-filter .row {
        gap: 8px;
    }

    .tm-orders-filter .col-md-2,
    .tm-orders-filter .col-md-3:not(:last-child) {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 8px;
        align-items: center !important;
    }

    .tm-orders-filter .form-label {
        margin: 0 !important;
        color: #475569 !important;
        font-size: 13px;
        text-align: right;
    }

    .tm-orders-filter .form-control,
    .tm-orders-filter .form-select {
        min-height: 36px;
        padding-top: 6px;
        padding-bottom: 6px;
        border-radius: 9px;
    }

    .tm-orders-table-wrap {
        padding: 8px 10px 10px;
        background: #f5f8fc;
    }

    .tm-orders-table tbody {
        gap: 8px;
    }

    .tm-orders-table tr.tm-orders-row {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        min-height: 156px;
        padding: 36px 10px 42px;
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
    }

    .tm-orders-table tr.tm-orders-row:nth-child(odd) {
        background: #fff;
    }

    .tm-orders-table tr.tm-orders-row:nth-child(even) {
        background: #f7f9fc;
    }

    .tm-orders-table tr.tm-orders-row::before {
        content: attr(data-tm-name);
        position: absolute;
        top: 12px;
        left: 10px;
        right: 142px;
        color: #0f172a;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tm-orders-table tr.tm-orders-row::after {
        content: none;
        display: none;
    }

    .tm-orders-table td {
        min-height: 0;
        padding: 0;
    }

    .tm-orders-table td.tm-orders-trademark-cell {
        display: block;
        padding: 0 !important;
        border-bottom: 0 !important;
    }

    .tm-orders-table .tm-orders-trademark-main {
        display: grid !important;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        align-items: center !important;
    }

    .tm-orders-table .tm-orders-info {
        min-width: 0;
        margin-left: 0 !important;
    }

    .tm-orders-table .tm-orders-name {
        display: block;
        margin-bottom: 5px;
        color: #0f172a !important;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.35;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tm-orders-table .tm-orders-class-line {
        display: none;
    }

    .tm-orders-mobile-meta {
        display: block;
        margin-bottom: 6px;
        color: #0f172a;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tm-orders-mobile-apply-no {
        color: #0d6efd;
        font-weight: 800;
    }

    .tm-orders-mobile-applicant {
        display: block;
        margin-bottom: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tm-orders-mobile-remark {
        display: block;
        color: #94a3b8;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tm-orders-thumb-box {
        width: 72px;
        height: 72px;
        border-color: #edf2f7;
        border-radius: 0;
        background: #fff;
    }

    .tm-orders-thumb-box .small {
        color: #475569 !important;
        font-size: 14px;
        font-weight: 700;
    }

    .tm-orders-table .tm-orders-reg-cell,
    .tm-orders-table .tm-orders-applicant-cell,
    .tm-orders-table .tm-orders-time-cell,
    .tm-orders-table .tm-orders-remark-cell {
        display: none;
    }

    .tm-orders-table .tm-orders-status-cell {
        position: absolute;
        top: 10px;
        right: 10px;
        display: block;
        width: auto;
        padding: 0;
        text-align: right;
    }

    .tm-orders-table td.tm-orders-status-cell::before,
    .tm-orders-table td.tm-orders-pay-cell::before,
    .tm-orders-table td.tm-orders-action-cell::before {
        content: none !important;
        display: none !important;
    }

    .tm-orders-table .tm-orders-status-cell .badge {
        display: inline !important;
        min-height: 20px;
        padding: 0;
        border: 0 !important;
        background: transparent !important;
        color: #ff5d2e !important;
        font-size: 12px;
        font-weight: 800;
    }

    .tm-orders-mobile-status-prefix,
    .tm-orders-mobile-status-text,
    .tm-orders-mobile-status-suffix {
        display: inline;
    }

    .tm-orders-desktop-status-text {
        display: none;
    }

    .tm-orders-table .tm-orders-status-cell .tm-orders-mobile-status-prefix {
        color: #334155;
        font-size: 12px;
        font-weight: 800;
    }

    .tm-orders-table .tm-orders-status-cell .tm-orders-mobile-status-suffix {
        display: none;
        color: #ff5d2e;
        font-size: 12px;
        font-weight: 800;
    }

    .tm-orders-table .tm-orders-pay-cell {
        position: absolute;
        bottom: 12px;
        left: 10px;
        display: none !important;
        width: auto;
        padding: 0;
        text-align: left;
    }

    .tm-orders-table .tm-orders-pay-cell .badge {
        display: inline !important;
        min-height: 22px;
        padding: 0;
        border-radius: 0;
        background: transparent !important;
        color: #10b981;
        font-size: 13px;
        font-weight: 800;
    }

    .tm-orders-table .tm-orders-pay-cell .tm-orders-mobile-status-prefix,
    .tm-orders-table .tm-orders-pay-cell .tm-orders-mobile-status-suffix {
        color: #10b981;
        font-size: 13px;
        font-weight: 800;
    }

    .tm-orders-table .tm-orders-pay-cell .bg-warning {
        color: #f59e0b !important;
    }

    .tm-orders-table .tm-orders-pay-cell .bg-secondary,
    .tm-orders-table .tm-orders-pay-cell .bg-info,
    .tm-orders-table .tm-orders-pay-cell .bg-primary {
        color: #64748b !important;
    }

    .tm-orders-table .tm-orders-action-cell {
        position: absolute;
        right: 10px;
        bottom: 8px;
        display: block;
        width: calc(100% - 84px);
        max-width: calc(100% - 84px);
        padding: 0;
        text-align: right;
    }

    .tm-orders-table td.tm-orders-action-cell:last-child .d-flex {
        display: flex !important;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 4px !important;
    }

    .tm-orders-action-btn {
        width: auto;
        min-width: 44px;
        min-height: 28px;
        padding: 4px 8px;
        border-radius: 999px;
        background: #fff;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
    }

    .tm-orders-table .tm-orders-action-cell .btn-primary {
        background: #0d6efd;
    }

    .tm-orders-table .tm-orders-action-cell .btn-danger {
        background: #dc3545;
    }

    .tm-orders-table .tm-orders-action-cell .btn-outline-secondary {
        border-color: #dbe3ee;
        color: #64748b;
    }
}

@media (max-width: 374.98px) {
    .tm-orders-page .sidebar-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-orders-filter .row {
        grid-template-columns: 1fr;
    }

    .tm-orders-table td {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        text-align: left;
    }

    .tm-orders-table td:nth-child(1),
    .tm-orders-table td:last-child,
    .tm-orders-table td[colspan] {
        align-items: initial;
    }

    .tm-orders-table .remark-input {
        max-width: none;
        width: 100%;
        text-align: left;
    }

    .tm-orders-table td:last-child .d-flex {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-orders-table td.tm-orders-action-cell:last-child .d-flex {
        display: flex !important;
        grid-template-columns: none;
        flex-wrap: nowrap;
        gap: 4px !important;
    }

    .tm-orders-action-btn {
        width: auto;
        min-width: 42px;
        padding-right: 7px;
        padding-left: 7px;
    }
}
