/* =========================================================
   PAN CRM Theme Refine v301 - 2026-09-22
   v300 yerleşimini korur. Ana amaç:
   1) Ana menüyü tekrar turuncu yapmak
   2) Font ağırlıklarını dengeli hale getirmek
   ========================================================= */

:root {
    --pan301-orange: #f47b20;
    --pan301-orange-dark: #dd650f;
    --pan301-orange-hover: #e56b12;
    --pan301-text: #1d3444;
    --pan301-muted: #6c7d89;
}

/* ---------- TYPOGRAPHY RESET ---------- */
html,
body,
.fi-body,
.fi-layout,
.fi-main,
.fi-page,
.fi-page-content,
button,
input,
select,
textarea {
    font-family: "Segoe UI", Inter, Arial, sans-serif !important;
    font-weight: 400 !important;
    font-synthesis: none !important;
    letter-spacing: 0 !important;
}

/* Genel gövde metni */
.fi-page,
.fi-page-content,
.fi-section-content,
.fi-ta,
.fi-fo-component-ctn,
.fi-in {
    font-size: 12px !important;
    color: var(--pan301-text) !important;
}

/* Etiketler: ne ince ne kalın */
.fi-fo-field-wrp-label,
.fi-fo-field-wrp-label span,
label,
.fi-section-description,
.fi-breadcrumbs,
.fi-ta-text,
.fi-ta-cell,
.fi-input,
.fi-input-wrp input,
.fi-input-wrp textarea,
.fi-select-input-btn {
    font-weight: 400 !important;
}

/* Form label'ları biraz belirgin */
.fi-fo-field-wrp-label,
.fi-fo-field-wrp-label span,
label {
    font-weight: 500 !important;
    color: #3c5363 !important;
}

/* Başlıklar orta kalınlıkta */
.fi-header-heading,
.fi-page-header h1,
.fi-section-header-heading,
.fi-fo-section-header-heading,
.fi-in-section-header-heading,
.pancrm-v153-row-title span,
.pancrm-v153-eyebrow,
.pancrm-v153-title {
    font-weight: 600 !important;
}

/* Çok kalın görünen alanları 600'e çek */
strong,
b,
.fi-ta-header-cell,
.fi-ta-header-cell-label,
.fi-btn,
.fi-ac-btn-action,
.pancrm-main-menu a,
.pancrm-system-buttons a,
.pancrm-task-top-link,
.pancrm-update-top-link,
.pancrm-v153-hero-grid b,
.pancrm-v153-contact-box b {
    font-weight: 600 !important;
}

/* Tabloda ürün / firma / teklif linkleri */
.fi-ta a,
.fi-ta-text a,
.fi-ta-cell a {
    font-weight: 600 !important;
}

/* Teklif kalemlerindeki ürün isimleri ve toplamlar:
   700/800 yerine tek tip 600 */
.fi-ta-cell strong,
.fi-ta-cell b,
.fi-ta-text strong,
.fi-ta-text b {
    font-weight: 600 !important;
}

/* Input içerikleri 400; seçili değerler 400 */
.fi-input,
.fi-input-wrp input,
.fi-input-wrp textarea,
.fi-select-input-btn,
.fi-select-input-value-label {
    font-weight: 400 !important;
}

/* ---------- ORANGE MAIN MENU ---------- */
.pancrm-main-menu {
    background: linear-gradient(180deg, #ff8b24 0%, var(--pan301-orange) 55%, #ed700f 100%) !important;
    border-top: 1px solid #ff9b3f !important;
    border-bottom: 1px solid #d85e08 !important;
    box-shadow: 0 2px 5px rgba(115, 58, 10, .18) !important;
}

.pancrm-menu-item > a {
    background: transparent !important;
    color: #fff !important;
    border-right: 1px solid rgba(255,255,255,.24) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 0 rgba(125, 58, 4, .12) !important;
}

.pancrm-menu-item:hover > a,
.pancrm-menu-item:focus-within > a {
    background: var(--pan301-orange-dark) !important;
    box-shadow: inset 0 -3px 0 rgba(255,255,255,.72) !important;
}

.pancrm-menu-item.is-active > a,
.pancrm-menu-item.active > a,
.pancrm-main-menu a[aria-current="page"] {
    background: var(--pan301-orange-dark) !important;
    box-shadow: inset 0 -3px 0 #fff !important;
}

/* Alt menüler beyaz kalır */
.pancrm-submenu {
    background: #fff !important;
    border: 1px solid #d7dee4 !important;
    box-shadow: 0 10px 24px rgba(30, 45, 55, .13) !important;
}
.pancrm-submenu a,
.pancrm-submenu-title {
    color: #2d4555 !important;
    background: #fff !important;
    font-weight: 500 !important;
    text-shadow: none !important;
}
.pancrm-submenu a:hover {
    background: #fff3e9 !important;
    color: #b74f07 !important;
}

/* ---------- PAGE HEADER / CARDS ---------- */
.fi-header-heading,
.fi-page-header h1 {
    font-size: 16px !important;
    line-height: 1.18 !important;
}

.fi-section-header-heading,
.fi-fo-section-header-heading,
.fi-in-section-header-heading {
    font-size: 12px !important;
    line-height: 1.2 !important;
}

/* Tablo başlıkları: fazla kalınlığı kaldır */
.fi-ta-header-cell,
.fi-ta-header-cell-label {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: #2d4454 !important;
}

/* Satır içi metin biraz daha dengeli */
.fi-ta-table tbody td,
.fi-ta-cell,
.fi-ta-text {
    font-size: 11.5px !important;
    line-height: 1.28 !important;
}

/* Butonlarda ağır bold yok */
.fi-btn,
.fi-ac-btn-action,
button {
    font-weight: 600 !important;
}

/* Küçük badge'ler */
.fi-badge,
.fi-ta .fi-badge {
    font-weight: 500 !important;
}

/* Hero / özel müşteri kartı başlıkları da dengeli */
.pancrm-v153-title {
    font-weight: 600 !important;
}
.pancrm-v153-eyebrow,
.pancrm-v153-subtitle,
.pancrm-v153-hero-grid span,
.pancrm-v153-contact-box span {
    font-weight: 400 !important;
}

/* Toplam fiyat gibi kritik rakamlar belirgin ama aşırı bold değil */
.pancrm-offer-total,
.pancrm-total,
.fi-ta-summary,
.fi-ta-summary-row {
    font-weight: 600 !important;
}

/* 14" ekran için çok hafif sıkılaştırma */
@media (min-width: 1100px) and (max-width: 1600px) {
    .fi-page,
    .fi-page-content {
        font-size: 11.5px !important;
    }

    .fi-fo-field-wrp-label,
    .fi-fo-field-wrp-label span,
    label {
        font-size: 10.5px !important;
    }

    .fi-input,
    .fi-input-wrp input,
    .fi-input-wrp textarea,
    .fi-select-input-btn {
        font-size: 11.5px !important;
    }
}
