/**
 * Admin Settings Styles for Cart PDF & Quote
 */

/* 1. Status Overview Card */
.cart-pdf-status-card {
    background: #ffffff;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #2271b1;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 15px 0 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cart-pdf-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 782px) {
    .cart-pdf-status-grid {
        grid-template-columns: 1fr;
    }
}

.status-col {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 14px 16px;
}

.status-col-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.status-col-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    flex-grow: 1;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.badge-success {
    background: #e7f7ed;
    color: #00703c;
    border: 1px solid #a3e0b8;
}

.status-badge.badge-info {
    background: #e5f5fa;
    color: #0073aa;
    border: 1px solid #bfe3f2;
}

.status-badge.badge-warning {
    background: #fcf9e8;
    color: #8c5b00;
    border: 1px solid #fae69e;
}

.status-badge.badge-secondary {
    background: #f0f0f1;
    color: #50575e;
    border: 1px solid #dcdcde;
}

.status-desc {
    margin: 0 0 12px;
    font-size: 13px;
    color: #50575e;
    line-height: 1.5;
}

.status-desc .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    vertical-align: text-bottom;
}

.status-desc .text-success {
    color: #00703c;
}

.status-desc .text-warning {
    color: #d63638;
}

.status-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 2. Conditional Logic Builder */
.cart-pdf-cl-wrapper {
    background: #f8f9fa;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 18px 20px;
    max-width: 860px;
}

.cart-pdf-cl-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-pdf-cl-header .cart-pdf-switch-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
    user-select: none;
}

.cart-pdf-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cart-pdf-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cart-pdf-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .25s;
    border-radius: 24px;
}

.cart-pdf-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .25s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.cart-pdf-switch input:checked + .cart-pdf-slider {
    background-color: #0073aa;
}

.cart-pdf-switch input:checked + .cart-pdf-slider:before {
    transform: translateX(20px);
}

.cart-pdf-cl-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #1d2327;
    flex-wrap: wrap;
}

.cart-pdf-rule-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.cart-pdf-btn-and {
    background: #0073aa !important;
    border-color: #0073aa !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    height: 36px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    cursor: pointer;
}

.cart-pdf-btn-and:hover {
    background: #005177 !important;
    border-color: #005177 !important;
    color: #fff !important;
}

.cart-pdf-btn-remove {
    background: none;
    border: none;
    color: #d63638;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 18px;
    line-height: 1;
}

.cart-pdf-btn-remove:hover {
    color: #a00;
}

.cart-pdf-value-wrap .select2-container {
    vertical-align: middle;
}

.cart-pdf-value-wrap .select2-selection--multiple {
    min-height: 36px !important;
    border-color: #8c8f94 !important;
    border-radius: 4px !important;
}
