/* FlightPricing Component Styles - High Specificity */

/* Ultra-high specificity button styles */
div.card-body .btn.btn-action-primary,
table.flight-pricing-table .btn.btn-action-primary,
.table .btn.btn-action-primary,
.card .btn.btn-action-primary,
button.btn.btn-action-primary {
    color: #1565c0 !important;
    background-color: #e3f0ff !important;
    background: #e3f0ff !important;
    border-color: #1976d2 !important;
    border: 1px solid #1976d2 !important;
    transition: all 0.2s ease !important;
    min-width: 100px !important;
    height: 40px !important;
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 0.75rem !important;
    box-shadow: none !important;
}

div.card-body .btn.btn-action-primary:hover,
div.card-body .btn.btn-action-primary:focus,
table.flight-pricing-table .btn.btn-action-primary:hover,
table.flight-pricing-table .btn.btn-action-primary:focus,
.table .btn.btn-action-primary:hover,
.table .btn.btn-action-primary:focus,
.card .btn.btn-action-primary:hover,
.card .btn.btn-action-primary:focus,
button.btn.btn-action-primary:hover,
button.btn.btn-action-primary:focus {
    color: #fff !important;
    background-color: #1976d2 !important;
    background: #1976d2 !important;
    border-color: #1565c0 !important;
    border: 1px solid #1565c0 !important;
    box-shadow: 0 2px 12px 0 rgba(21, 101, 192, 0.15) !important;
    transform: none !important;
}

div.card-body .btn.btn-action-success,
table.flight-pricing-table .btn.btn-action-success,
.table .btn.btn-action-success,
.card .btn.btn-action-success,
button.btn.btn-action-success {
    color: #1b5e20 !important;
    background-color: #e8f5e9 !important;
    background: #e8f5e9 !important;
    border-color: #43a047 !important;
    border: 1px solid #43a047 !important;
    transition: all 0.2s ease !important;
    min-width: 100px !important;
    height: 40px !important;
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 0.75rem !important;
    box-shadow: none !important;
}

div.card-body .btn.btn-action-success:hover,
div.card-body .btn.btn-action-success:focus,
table.flight-pricing-table .btn.btn-action-success:hover,
table.flight-pricing-table .btn.btn-action-success:focus,
.table .btn.btn-action-success:hover,
.table .btn.btn-action-success:focus,
.card .btn.btn-action-success:hover,
.card .btn.btn-action-success:focus,
button.btn.btn-action-success:hover,
button.btn.btn-action-success:focus {
    color: #fff !important;
    background-color: #43a047 !important;
    background: #43a047 !important;
    border-color: #1b5e20 !important;
    border: 1px solid #1b5e20 !important;
    box-shadow: 0 2px 12px 0 rgba(67, 160, 71, 0.15) !important;
    transform: none !important;
}

div.card-body .btn.btn-action-danger,
table.flight-pricing-table .btn.btn-action-danger,
.table .btn.btn-action-danger,
.card .btn.btn-action-danger,
button.btn.btn-action-danger {
    color: #b71c1c !important;
    background-color: #ffebee !important;
    background: #ffebee !important;
    border-color: #e53935 !important;
    border: 1px solid #e53935 !important;
    transition: all 0.2s ease !important;
    min-width: 100px !important;
    height: 40px !important;
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 0.75rem !important;
    box-shadow: none !important;
}

div.card-body .btn.btn-action-danger:hover,
div.card-body .btn.btn-action-danger:focus,
table.flight-pricing-table .btn.btn-action-danger:hover,
table.flight-pricing-table .btn.btn-action-danger:focus,
.table .btn.btn-action-danger:hover,
.table .btn.btn-action-danger:focus,
.card .btn.btn-action-danger:hover,
.card .btn.btn-action-danger:focus,
button.btn.btn-action-danger:hover,
button.btn.btn-action-danger:focus {
    color: #fff !important;
    background-color: #e53935 !important;
    background: #e53935 !important;
    border-color: #b71c1c !important;
    border: 1px solid #b71c1c !important;
    box-shadow: 0 2px 12px 0 rgba(229, 57, 53, 0.15) !important;
    transform: none !important;
}

/* Small button versions */
div.card-body .btn.btn-action-primary.btn-sm,
table.flight-pricing-table .btn.btn-action-primary.btn-sm,
.table .btn.btn-action-primary.btn-sm,
.card .btn.btn-action-primary.btn-sm,
button.btn.btn-action-primary.btn-sm {
    min-width: 75px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
    padding: 0.375rem 0.5rem !important;
}

div.card-body .btn.btn-action-success.btn-sm,
table.flight-pricing-table .btn.btn-action-success.btn-sm,
.table .btn.btn-action-success.btn-sm,
.card .btn.btn-action-success.btn-sm,
button.btn.btn-action-success.btn-sm {
    min-width: 75px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
    padding: 0.375rem 0.5rem !important;
}

div.card-body .btn.btn-action-danger.btn-sm,
table.flight-pricing-table .btn.btn-action-danger.btn-sm,
.table .btn.btn-action-danger.btn-sm,
.card .btn.btn-action-danger.btn-sm,
button.btn.btn-action-danger.btn-sm {
    min-width: 75px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
    padding: 0.375rem 0.5rem !important;
}

/* Header glass effect buttons */
.card-header .btn.header-button-glass,
.card .btn.header-button-glass,
button.btn.header-button-glass {
    background-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(4px) !important;
}

/* Table styles */
.table.flight-pricing-table {
    table-layout: fixed !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table.flight-pricing-table th,
.table.flight-pricing-table td {
    vertical-align: top !important;
    padding: 1rem 0.75rem !important;
    border-bottom: 2px solid #dee2e6 !important;
}

.table.flight-pricing-table th {
    background-color: #f8f9fa !important;
    border-bottom: 3px solid #dee2e6 !important;
    font-weight: 600 !important;
}

.table.flight-pricing-table tbody tr {
    border-bottom: 2px solid #e9ecef !important;
}

.table.flight-pricing-table tbody tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

.table.flight-pricing-table tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}

.table.flight-pricing-table tbody tr:hover {
    background-color: #e3f2fd !important;
}

/* Parameter and Price group styling */
.parameter-group,
.price-group {
    margin-bottom: 1rem !important;
    padding: 0.5rem !important;
    background: #f8f9fa !important;
    border-radius: 6px !important;
    border: 1px solid #dee2e6 !important;
}

.parameter-title,
.price-title {
    color: #495057 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

.parameter-values,
.price-values {
    margin-left: 1rem !important;
}

.parameter-value {
    padding: 0.25rem 0 !important;
    color: #6c757d !important;
    white-space: pre-line !important;
    word-wrap: break-word !important;
}

.price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.5rem !important;
    background: white !important;
    border-radius: 4px !important;
    margin-bottom: 0.25rem !important;
    border: 1px solid #e9ecef !important;
}

.price-value {
    font-weight: 500 !important;
    white-space: pre-line !important;
    word-wrap: break-word !important;
}

.price-amount {
    font-weight: 600 !important;
}

.pricing-row-divider {
    height: 2px !important;
    background-color: #ced4da !important;
    margin: 0.75rem 0 !important;
    width: 100% !important;
    border-radius: 1px !important;
}