.formipay-order-detail {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f6f7f7;
}

.formipay-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    gap: 16px;
}

.formipay-detail-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    flex: 1;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.formipay-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
}

.formipay-detail-main,
.formipay-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.formipay-detail-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
}

.formipay-detail-card h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1e;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-list > div {
    display: flex;
    flex-direction: column;
}

.detail-list dt {
    font-size: 12px;
    font-weight: 600;
    color: #646970;
    margin-bottom: 4px;
}

.detail-list dd {
    font-size: 14px;
    color: #1e1e1e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-list dd .components-select-control {
    flex: 1;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
}

.items-table th,
.items-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
}

.items-table th {
    font-size: 12px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
}

.items-table td {
    font-size: 13px;
}

.items-table small {
    display: block;
    color: #646970;
    font-size: 11px;
}

.items-table tfoot td {
    border-top: 2px solid #1e1e1e;
    border-bottom: none;
    padding-top: 16px;
}

.customer-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.customer-info > div {
    display: flex;
    flex-direction: column;
}

.customer-info dt {
    font-size: 11px;
    font-weight: 600;
    color: #646970;
    margin-bottom: 2px;
}

.customer-info dd {
    font-size: 13px;
    color: #1e1e1e;
}

.no-data {
    color: #646970;
    font-size: 13px;
}

.formipay-error,
.formipay-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.formipay-error p {
    color: #646970;
    margin: 0;
}
