.order-details {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.details-column {
    flex: 1;
    margin-right: 15px;
}

.panelOrder {
    padding: 15px;
    border: 1px solid #ddd;
}

.details-column:last-child {
    margin-right: 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}

.detail-label {
    font-weight: bold;
    flex: 0 0 40%;
}

.detail-value {
    flex: 1;
    text-align: right;
}

.edit-btn {
    padding: 2px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
    float: right;
    margin-left: 10px;
}

.card-header {
    /*display: flex;
    justify-content: space-between;*/
    align-items: center;
    background-color: #f8f9fa;
    padding: 10px 15px;
}
.space-between {
    display: flex;
    justify-content: space-between;
}

.order-items {
    margin-top: 20px;
}

.order-items-header,
.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.order-items-header {
    font-weight: bold;
    background-color: #f8f9fa;
}

.order-item>div,
.order-items-header>div {
    flex: 1;
    padding: 0 5px;
}

.order-item>div:first-child,
.order-items-header>div:first-child {
    flex: 0 0 30px;
}

.order-item>div:nth-child(2),
.order-items-header>div:nth-child(2) {
    flex: 0 0 60px;
}

.order-totals {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.totals-column {
    width: 300px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.notes {
    width: 100%;
    padding: 10px 10px 10px 0px;
}

.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.btn-group .btn {
    flex: 1;
    margin-right: 5px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

.sponsor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sponsor-title {
    margin: 0;
}

.sponsor-buttons {
    display: flex;
    gap: 10px;
}

.constituentModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.constituentInner {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
}

.constituentInnerCompare {
    background-color: #fefefe;
    margin: 8% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 980px;
}

.constituentInner ul li,
.constituentInnerCompare ul li {
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

@media (min-width: 786px) {
    .constituentInner {
        margin-left: 35%;
    }
    .constituentInnerCompare {
        margin-left: 25%;
    }
}

.constituent-gift {
    display: flex;
    flex-direction: column;
}

.constituent-match,
.gift-creation {
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.gift-creation .detail-row input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
}

.pad-5 {
    padding: 5px;
    margin-left: 10px;
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.badge-primary {
    background-color: #007bff;
    color: white;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

@media (max-width: 768px) {
    .order-details {
        flex-direction: column;
    }
    .details-column {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

.constituent-gift-column .tab-content {
    border: none;
}

.nav-tabs {
    cursor: pointer;
}