.order-detail {
    margin-top: 28px;
    padding: 22px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e1e1e1;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.detail-header h3 {
    margin: 0 0 6px;
    font-size: 24px;
}

.detail-header span {
    color: #666;
}

.badge {
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.badge.draft {background: #e7f8ee;color: #6c757d;}
.badge.issued {background: #e7f8ee;color: #0d6efd;}
.badge.paid {background: #e7f8ee;color: #1f9d55;}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 22px;
}

.detail-grid div {
    padding: 14px;
    background: #f7f9fc;
    border-radius: 6px;
}

.detail-grid small {
    display: block;
    color: #777;
    margin-bottom: 6px;
}

.detail-grid strong {
    color: #222;
}

.table-wrapper {
    overflow-x: auto;
}

.order-detail table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.order-detail th,
.order-detail td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.order-detail th {
    background: #f3f6fb;
    color: #333;
}

.summary {
    max-width: 320px;
    margin-left: auto;
}

.summary div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.summary .total {
    border-top: 1px solid #ddd;
    margin-top: 8px;
    padding-top: 14px;
    font-size: 18px;
}

.action-area {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.btn-secondary {
    background: #e1e4e7;
    color: #333;
    padding: 12px 18px;
    border: none;
    font-family: var(--btn-font-family);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    border-radius: var(--btn-rounded);
    -moz-border-radius: var(--btn-rounded);
    -webkit-border-radius: var(--btn-rounded);
}

.btn-primary {
    background: #4e83db;
    color: #fff;
    padding: 12px 18px;
}

@media (max-width: 600px) {
    .detail-header,
    .action-area {
        flex-direction: column;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .summary {
        max-width: 100%;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}