/* FX Rates Plugin Styles - Banking Professional Format */
.fx-rates-container {
    max-width: 100%;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.fx-rates-title {
    background: #1e3a8a;
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    border-bottom: 3px solid #1d4ed8;
}

.fx-rates-table-wrapper {
    overflow-x: auto;
    background: white;
}

.fx-rates-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
    font-size: 14px;
}

.fx-rates-table thead {
    background: #1e3a8a;
    color: white;
}

.fx-rates-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid #3b82f6;
}

.fx-rates-table th:last-child {
    border-right: none;
}

.fx-rates-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.fx-rates-table tbody tr:hover {
    background-color: #f8fafc;
}

.fx-rates-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.fx-rates-table tbody tr:nth-child(even):hover {
    background-color: #f1f5f9;
}

.fx-rates-table tbody tr:last-child {
    border-bottom: none;
}

.fx-rates-table td {
    padding: 12px 15px;
    border-right: 1px solid #e5e7eb;
    vertical-align: middle;
}

.fx-rates-table td:last-child {
    border-right: none;
}

.fx-rates-table .rate-code {
    font-weight: 600;
    color: #374151;
    text-align: center;
}

.fx-rates-table .product {
    font-weight: 500;
    color: #1f2937;
}

.fx-rates-table .currency {
    font-weight: 600;
    color: #059669;
    font-family: 'Courier New', monospace;
}

.fx-rates-table .rate {
    font-weight: 600;
    color: #1f2937;
    text-align: right;
    font-family: 'Courier New', monospace;
}

.fx-rates-table .nil-rate {
    color: #dc2626;
    font-weight: bold;
    text-align: center;
}

.fx-rates-table .commission-note {
    background-color: #fef3c7 !important;
    font-style: italic;
    color: #92400e;
    font-weight: 500;
}

.fx-rates-table .commission-note:hover {
    background-color: #fde68a !important;
}

.fx-rates-table .commission-note td {
    text-align: center;
    padding: 10px 15px;
}

.additional-rates-info {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.additional-rates-info p {
    margin: 0 0 15px 0;
    color: #374151;
    font-weight: 500;
}

.rates-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.rate-info-item {
    background: white;
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 4px solid #1e3a8a;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.disclaimer {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin-top: 15px !important;
    padding: 15px;
    background: #fef9e7;
    border-radius: 4px;
    border-left: 4px solid #f59e0b;
}

/* Column width optimization */
.rate-code-col {
    width: 15%;
}

.product-col {
    width: 35%;
}

.currency-col {
    width: 20%;
}

.rate-col {
    width: 30%;
}

.fx-currency {
    font-weight: 600;
    color: #0073aa;
    font-size: 16px;
}

.fx-rate {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #2c3e50;
}

.fx-conversion {
    color: #27ae60;
    font-weight: 500;
}

.fx-rates-updated {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin: 10px 0 0 0;
    font-style: italic;
}

.fx-rates-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 15px 20px;
    border-radius: 4px;
    border-left: 4px solid #dc2626;
    margin: 20px 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fx-rates-container {
        margin: 10px 0;
        padding: 15px;
    }
    
    .fx-rates-title {
        font-size: 20px;
    }
    
    .fx-rates-table {
        font-size: 12px;
    }
    
    .fx-rates-table th,
    .fx-rates-table td {
        padding: 8px 6px;
    }
    
    .fx-currency {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .fx-rates-table th:nth-child(2),
    .fx-rates-table td:nth-child(2) {
        display: none;
    }
    
    .fx-rates-table th:nth-child(3):before {
        content: "Exchange Rate";
    }
    
    .fx-rates-table th:nth-child(3) {
        text-align: center;
    }
    
    .fx-rates-table td:nth-child(3) {
        text-align: center;
        font-weight: 600;
    }
}

/* Admin Styles */
.fx-rates-usage {
    margin-top: 30px;
    padding: 20px;
    background: #f1f1f1;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.fx-rates-usage h2 {
    margin-top: 0;
    color: #333;
}

.fx-rates-usage code {
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    margin: 5px 0;
    font-family: 'Courier New', monospace;
}