/* HRPSAC Fiyat Tabloları */

.hrpsac-table-wrapper {
    margin: 1.5em 0;
    overflow-x: auto;
}

.hrpsac-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hrpsac-price-table th,
.hrpsac-price-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.hrpsac-price-table th {
    background: #2c3e50;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.hrpsac-price-table tbody tr:hover {
    background: #f8f9fa;
}

.hrpsac-price-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.hrpsac-price-table tbody tr:nth-child(even):hover {
    background: #f0f0f0;
}

/* Fiyat hücresi */
.hrpsac-price {
    font-weight: 600;
    white-space: nowrap;
}

.hrpsac-price-value {
    color: #27ae60;
    font-size: 15px;
}

.hrpsac-price-currency {
    color: #7f8c8d;
    font-size: 12px;
    margin-left: 3px;
}

.hrpsac-price-na {
    color: #bdc3c7;
}

/* Footer */
.hrpsac-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f5f5f5;
    font-size: 12px;
    color: #7f8c8d;
    border-top: 1px solid #e5e5e5;
    flex-wrap: wrap;
    gap: 10px;
}

.hrpsac-exchange-rate {
    font-weight: 500;
}

.hrpsac-exchange-rate small {
    font-weight: normal;
    margin-left: 5px;
}

/* Hata ve bilgi mesajları */
.hrpsac-error {
    padding: 15px;
    background: #fee;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
    margin: 1em 0;
}

.hrpsac-no-products {
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #f39c12;
    color: #856404;
    margin: 1em 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .hrpsac-price-table {
        font-size: 13px;
    }

    .hrpsac-price-table th,
    .hrpsac-price-table td {
        padding: 10px 12px;
    }

    .hrpsac-table-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 600px) {
    .hrpsac-price-table,
    .hrpsac-price-table thead,
    .hrpsac-price-table tbody,
    .hrpsac-price-table th,
    .hrpsac-price-table td,
    .hrpsac-price-table tr {
        display: block;
    }

    .hrpsac-price-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .hrpsac-price-table tr {
        margin-bottom: 10px;
        border: 1px solid #e5e5e5;
    }

    .hrpsac-price-table td {
        position: relative;
        padding-left: 50%;
        border-bottom: 1px solid #eee;
    }

    .hrpsac-price-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        width: 45%;
        padding-right: 10px;
        font-weight: 600;
        color: #7f8c8d;
        font-size: 11px;
        text-transform: uppercase;
    }

    .hrpsac-price-table td:last-child {
        border-bottom: none;
    }
}

/* Şablon varyasyonları */
.hrpsac-sac-table .hrpsac-price-value {
    color: #2980b9;
}

.hrpsac-trapez-table .hrpsac-price-value {
    color: #8e44ad;
}

.hrpsac-profil-table .hrpsac-price-value {
    color: #d35400;
}

/* ===========================
   SAC HESAPLAMA CALCULATOR
   =========================== */

.hrpsac-sac-calculator {
    margin: 1.5em 0;
}

.hrpsac-calc-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #3498db;
}

.hrpsac-calc-form {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 1.5em;
}

.hrpsac-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.hrpsac-form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
}

.hrpsac-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.hrpsac-form-group select,
.hrpsac-form-group input[type="text"],
.hrpsac-form-group input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s;
    color: #333;
}

.hrpsac-form-group select:focus,
.hrpsac-form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.hrpsac-btn-hesapla {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.hrpsac-btn-hesapla:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.35);
}

.hrpsac-btn-hesapla:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hrpsac-loading {
    padding: 12px;
    color: #7f8c8d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hrpsac-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #d0d0d0;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: hrpsac-spin 0.8s linear infinite;
}

@keyframes hrpsac-spin {
    to { transform: rotate(360deg); }
}

/* Genel tablo stili (paylaşılan) */
.hrpsac-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hrpsac-table th {
    background: #2c3e50;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
}

.hrpsac-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
}

.hrpsac-table tbody tr:hover {
    background: #f8f9fa;
}

.hrpsac-num, .hrpsac-th-num, .hrpsac-td-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hrpsac-bold {
    font-weight: 700;
}

.hrpsac-price {
    font-weight: 700;
    color: #27ae60;
}

/* Sonuç tablosu */
.hrpsac-sonuc-table {
    margin-top: 0.5em;
    overflow-x: auto;
}

#hrpsac-sonuc-wrapper {
    overflow-x: auto;
}

/* Form actions */
.hrpsac-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hrpsac-btn-temizle {
    background: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.hrpsac-btn-temizle:hover {
    background: #e74c3c;
    color: #fff;
}

/* Satır sil butonu */
.hrpsac-btn-sil {
    background: transparent;
    color: #bdc3c7;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
    line-height: 1;
}

.hrpsac-btn-sil:hover {
    background: #fee;
    color: #e74c3c;
}

/* Plaka fiyatı sütunu vurgu */
.hrpsac-th-fiyat {
    background: #1e6a3a !important;
}

/* ===========================
   PROFİL LİSTESİ
   =========================== */

.hrpsac-profil-wrapper {
    margin: 1.5em 0;
}

.hrpsac-profil-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e67e22;
}

.hrpsac-iskonto-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eafaf1;
    border: 1px solid #27ae60;
    color: #1e8449;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 1em;
}

.hrpsac-table-scroll {
    overflow-x: auto;
}

.hrpsac-profil-table .hrpsac-ebat {
    font-family: monospace;
    font-size: 13px;
}

.hrpsac-th-iskonto {
    background: #1e8449 !important;
}

.hrpsac-td-iskonto {
    color: #1e8449;
}

.hrpsac-not {
    font-size: 12px;
    color: #999;
    margin-top: 0.75em;
    font-style: italic;
}

@media screen and (max-width: 768px) {
    .hrpsac-form-row {
        flex-direction: column;
    }

    .hrpsac-form-group {
        min-width: 100%;
    }

    .hrpsac-table {
        font-size: 13px;
    }

    .hrpsac-table th,
    .hrpsac-table td {
        padding: 8px 10px;
    }
}
