:root {
    --lm-bg: #eef2f4;
    --lm-card-bg: #ffffff;
    --lm-border: #e6e9ec;
    --lm-border-light: #f0f2f5;
    --lm-text: #333333;
    --lm-text-muted: #8c98a4;
    --lm-accent: #2fc6f6;
}

body {
    background: var(--lm-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--lm-text);
    margin: 0;
}

.lm-main {
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
}

.lm-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px;
}

.b24-app-container {
    padding: 10px;
}

.lm-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 16px;
}

.lm-muted {
    color: var(--lm-text-muted);
    margin: 0;
}

.lm-muted-inline {
    color: var(--lm-text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.lm-order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 0;
}

.lm-order-meta dt {
    font-size: 13px;
    color: var(--lm-text-muted);
    margin-bottom: 4px;
}

.lm-order-meta dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

code {
    background: #f0f2f4;
    border-radius: 4px;
    padding: 2px 6px;
}

.b24-card {
    background: var(--lm-card-bg);
    border: 1px solid var(--lm-border);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: visible;
}

.b24-card-head {
    border-bottom: 1px solid var(--lm-border);
    padding: 16px 20px;
}

.lm-filter-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.b24-card-title {
    font-size: 14px;
    font-weight: 600;
}

.b24-card-body {
    padding: 20px;
}

.lm-filter {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lm-filter-select-group {
    align-items: center;
    display: flex;
    gap: 8px;
}

.lm-filter-date {
    min-width: 150px;
}

.b24-btn {
    align-items: center;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    height: 36px;
    padding: 0 18px;
    transition: all .15s ease;
}

.b24-btn-primary {
    background: var(--lm-accent);
    color: #fff;
}

.b24-btn-primary:hover {
    background: #1fb6e5;
}

.b24-btn-light-success {
    background: #fff;
    border-color: var(--lm-border);
    color: var(--lm-text);
}

.b24-btn-light-success:hover {
    border-color: var(--lm-accent);
    color: var(--lm-accent);
}

.b24-btn-link {
    background: transparent;
    border: none;
    color: var(--lm-accent);
    height: 32px;
    padding: 0 8px;
    white-space: nowrap;
}

.lm-btn-spinner {
    animation: lm-spin 0.7s linear infinite;
    border: 2px solid rgba(51, 51, 51, 0.2);
    border-radius: 50%;
    border-top-color: var(--lm-text);
    display: none;
    flex-shrink: 0;
    height: 14px;
    width: 14px;
}

.b24-btn-primary .lm-btn-spinner {
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
}

.b24-btn.is-loading {
    cursor: wait;
    pointer-events: none;
}

.b24-btn.is-loading .lm-btn-spinner {
    display: inline-block;
}

.b24-input {
    background: #fff;
    border: 1px solid var(--lm-border);
    border-radius: 6px;
    box-sizing: border-box;
    color: var(--lm-text);
    font-size: 14px;
    height: 36px;
    padding: 0 10px;
}

.b24-input:focus {
    border-color: var(--lm-accent);
    box-shadow: 0 0 0 2px rgba(47, 198, 246, 0.15);
    outline: none;
}

.multi-filter-panel {
    position: relative;
}

.multi-filter-panel .js-multi-filter-toggle {
    justify-content: space-between;
    min-width: 180px;
}

.lm-filter-chevron {
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    display: inline-block;
    height: 6px;
    margin-left: 4px;
    margin-top: -2px;
    transform: rotate(45deg);
    width: 6px;
}

.multi-filter-dropdown {
    background: #fff;
    border: 1px solid var(--lm-border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    left: 0;
    overflow: hidden;
    position: absolute;
    top: calc(100% + 6px);
    width: min(320px, 80vw);
    z-index: 120;
}

.multi-filter-dropdown.hidden {
    display: none;
}

.multi-filter-dropdown-head {
    align-items: center;
    border-bottom: 1px solid var(--lm-border-light);
    display: flex;
    gap: 8px;
    padding: 10px;
}

.multi-filter-dropdown-head .b24-input {
    flex: 1;
    width: 100%;
}

.multi-filter-list {
    max-height: 240px;
    overflow-y: auto;
}

.multi-filter-item {
    align-items: center;
    border-bottom: 1px solid var(--lm-border-light);
    cursor: pointer;
    display: flex;
    font-size: 13px;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
}

.multi-filter-item:last-child {
    border-bottom: none;
}

.multi-filter-item:hover {
    background: #f4faff;
}

.multi-filter-item.is-hidden {
    display: none;
}

.multi-filter-item input {
    margin: 0;
}

.b24-table-wrapper {
    overflow-x: auto;
}

.b24-table {
    border-collapse: collapse;
    width: 100%;
}

.b24-table th {
    background: #fafbfc;
    border-bottom: 1px solid var(--lm-border);
    color: var(--lm-text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 12px 20px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.b24-table td {
    border-bottom: 1px solid var(--lm-border-light);
    font-size: 14px;
    padding: 12px 20px;
    vertical-align: top;
}

.b24-empty-state {
    color: var(--lm-text-muted);
    font-size: 13px;
    padding: 32px;
    text-align: center;
}

.lm-deal-link {
    color: var(--lm-accent);
    text-decoration: none;
}

.lm-deal-link:hover {
    text-decoration: underline;
}

.lm-pagination {
    display: flex;
    justify-content: center;
    padding: 8px 12px 16px;
}

.lm-pagination .pagination {
    justify-content: center;
    margin: 0;
}

@keyframes lm-spin {
    to {
        transform: rotate(360deg);
    }
}
