/* ==========================================================================
   CostChief – Auth/Register (FULL)
   - Telefon satırı tek satır (mobilde de)
   - Select2 ülke kutusu: içerik dengeli ortalanır, ok içte ve hizalı
   - Sağ ikonlar: beyaz zemin + CostChief laciverti
   ========================================================================== */

/* ---- Temel değişkenler ------------------------------------------------- */
:root{
  --cc-input-h: 40px;              /* tüm girişlerin yüksekliği */
  --cc-primary: #002442;           /* CostChief laciverti */
  --cc-icon-bg: #ffffff;           /* ikon kutusu zemini */
}

/* ---- Ortak giriş ve ikon kutuları ------------------------------------- */
.form-control,
.custom-select{
  height: var(--cc-input-h);
}

.input-group .input-group-text{
  height: var(--cc-input-h);
  width: 48px;                     /* tüm sağ ikon kutuları eşit */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cc-icon-bg);   /* BEYAZ */
  color: var(--cc-primary);        /* LACİVERT İKON */
  border-color: #ced4da;
}
.input-group .input-group-text .fas,
.input-group .input-group-text .far{
  font-size: 1.05rem;
  line-height: 1;
}

/* ---- Telefon satırı ---------------------------------------------------- */
.input-group.cc-phone-row{
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;                /* mobilde de kırılma olmasın */
  width: 100%;
}
.cc-phone-row > *{ min-width: 0; }  /* taşmaları önle */

/* Ülke select2: içerik kadar yer kaplasın; input’a kenetlensin */
.cc-phone-row .select2-container{
  flex: 0 0 auto;
  width: auto !important;
  min-width: 70px;
  max-width: 110px;
  align-self: stretch;
  margin-right: -1px;               /* border’ı input’la birleştir */
}

/* Telefon inputu kalan alanı tamamen alsın */
.cc-phone-row #id_number_1{
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
}

/* Sağdaki telefon ikon kutusu */
.cc-phone-row .input-group-append{
  flex: 0 0 48px;
}
.cc-phone-row .input-group-append .input-group-text{
  width: 48px;
  height: var(--cc-input-h);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Select2 (Bootstrap 4) görünümü & ORTALAMA ------------------------ */
/* Kutu yüksekliğini ve iç hizayı sabitle */
.select2-container--bootstrap4 .select2-selection--single{
  position: relative;
  height: var(--cc-input-h) !important;
  display: flex;
  align-items: center;
  justify-content: center;          /* içerik genel olarak ortalı */
  box-sizing: border-box;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  padding: 0 24px 0 10px;           /* solda 10px, sağda ok için 24px */
}

/* Render edilen içerik: flag + +90 arası boşluk, tam ortalama */
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered{
  display: flex;
  align-items: center;
  justify-content: center;          /* metin/flag görsel merkezde */
  gap: 6px;
  line-height: 1.5;
  padding: 0;                       /* soldan ek boşluk istemiyoruz */
  width: 100%;
  text-align: center;
}

/* Ok üçgeni kutu İÇİNDE ve dikeyde ortalı, sağ boşluk minimal */
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow{
  position: absolute;
  top: 0 !important;
  right: 6px;                       /* sağdan kısık boşluk (simetri) */
  width: 16px;                      /* okun kapladığı genişliği azalt */
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b{
  margin-top: 0 !important;         /* bazı temaların +margin’ini kır */
}

/* ---- Bayrak görselleri ------------------------------------------------- */
.flag-option img{
  width: 16px;
  height: 12px;
  object-fit: cover;
  vertical-align: middle;
}
.flag-option.compact img{ margin-right: 4px; }

/* ---- Toastr ufak ayar -------------------------------------------------- */
.toast{ opacity: .98; }

/* ---- intl-tel-input kullanan sayfalar için koruma (varsa) ------------- */
.input-group .iti{
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
.input-group .iti input,
.input-group .iti input.iti__tel-input{
  flex: 1 1 auto;
  min-width: 0;
  width: 100% !important;
}
.iti--separate-dial-code .iti__selected-dial-code{ margin-left: 6px; }
.iti__country-list{ z-index: 2000; }

/* ---- Şifre göster/gizle butonu ---------------------------------------- */
.password-toggle{
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 48px;                      /* sağdaki kilit ikonundan önce */
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--cc-primary);
}
.password-toggle:focus{
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(0,65,128,.25);
  border-radius: 4px;
}



/* =========================================================
   CostChief UI – Professional Commerce Text Style
   (Amazon-like neutral typography)

   Amaç:
   - Ticari ve hukuki metinlerde güven veren,
     sade ve modern bir görünüm sağlamak
   - Eğlenceli veya dekoratif fontlardan kaçınmak
   - Uzun süreli kullanımda göz yormayan,
     kurumsal bir tipografi standardı oluşturmak
========================================================= */

/* SADECE checkbox sağ yazıları + sözleşme satır başlıkları */
.cc-line-title,
.custom-control-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  letter-spacing: 0.15px;
  line-height: 1.4;
}


/* AdminLTE checkbox sağ yazıları – KESİN */
.custom-control.custom-checkbox .custom-control-label,
.custom-control.custom-checkbox .custom-control-label::before,
.custom-control.custom-checkbox .custom-control-label::after {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  letter-spacing: 0.15px;
  line-height: 1.4;
}


/* =========================================================
   CostChief AUTH – Kill AdminLTE default top border
   ========================================================= */

body.login-page .card.card-outline.card-primary,
body.register-page .card.card-outline.card-primary{
  border-top: 4px solid #0b2a4a !important; /* TEK SATIR */
}






/* AUTH: Phone country select narrower, phone input wider genişlil*/
body.register-page [data-cc-field="phone"] .select2-container,
body.login-page    [data-cc-field="phone"] .select2-container{
  width: 100px !important;   /* burada 86-110 arası istediğin gibi oynat */
  max-width: 100px !important;
  flex: 0 0 100px !important;
}

body.register-page [data-cc-field="phone"] select,
body.login-page    [data-cc-field="phone"] select{
  width: 100px !important;
}

body.register-page [data-cc-field="phone"] input,
body.login-page    [data-cc-field="phone"] input{
  flex: 1 1 auto !important;
  min-width: 0;
}



/* =========================================================
   AUTH REGISTER – Password invalid icon vs eye icon FIX
   ========================================================= */

/* Bootstrap valid/invalid arka plan ikonunu kapat */
body.register-page #id_password1.is-invalid,
body.register-page #id_password2.is-invalid,
body.register-page #id_password1.is-valid,
body.register-page #id_password2.is-valid{
  background-image: none !important;
  padding-right: 48px !important; /* eye ikonu için yer */
}

/* Eye (şifre göster/gizle) ikonunu sola çek */
body.register-page .password-toggle{
  right: 48px !important;
}







/* Select2 country compact view: show +90, disable ellipsis */
.flag-option.compact{
  white-space: nowrap !important;
}

.select2-container--bootstrap4
.select2-selection--single
.select2-selection__rendered{
  overflow: visible !important;
  text-overflow: clip !important;
}










/* ============================================================
   CostChief AUTH HEADER – Logo size FIX
   Prevent AdminLTE card-header img override
   ============================================================ */
.cc-auth-logo{
  height: 120px;
  width: auto;
  max-width: none;
}

/* ============================================================
   CostChief AUTH HEADER – Brand text (Montserrat)
   ============================================================ */
.cc-auth-brand{
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .3px;
  color: #0b2a4a;
  text-decoration: none;
  display: inline-block;
}




/* AUTH buttons - single source of truth login button */
.cc-auth-btn{
  background-color: var(--cc-primary-400) !important;
  border-color: var(--cc-primary-400) !important;
  color:#fff !important;
}
.cc-auth-btn:hover{
  filter: brightness(0.95);
}




/* =========================
   CC COMPONENTS: Badge Pills
   ========================= */
.cc-badge-pill {
  font-weight: 900 !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
}

/* small pill (for tiny badges like "Varsayılan") */
.cc-badge-pill-sm {
  font-weight: 900 !important;
  padding: .25rem .5rem !important;
  border-radius: 999px !important;
}


/* =========================
   CC COMPONENTS: Card Header
   ========================= */
.cc-card-header-primary {
  background: var(--primary) !important;
  color: #fff !important;
}

.cc-card-header-primary .card-title {
  margin-bottom: 0 !important;
}

.cc-card-header-row {
  display: flex;
  align-items: center;
}

.cc-card-header-actions {
  margin-left: auto;
}


/* =========================
   CC BRAND COLORS
   ========================= */
.cc-bg-brand {
  background-color: #002242 !important;
  color: #ffffff !important;
}


/* =========================
   CC COMPONENTS: Collapse Card
   ========================= */

/* Header: link tüm satırı bozmasın, underline olmasın */
.cc-collapse-title {
  color: inherit !important;
  text-decoration: none !important;
}

/* Header içindeki plus/minus ikon butonu */
.cc-collapse-btn {
  line-height: 1;
}

/* Collapse açıkken ikon eksi olsun gibi bir davranış için JS ile class ekleyeceğiz */
.cc-collapse-open .cc-collapse-btn i.fas {
  transform: rotate(180deg);
}



/* Contact modal: phone country select2 same height as input */
.cc-modal-contact-form .select2-container--bootstrap4 .select2-selection--single{
  height: calc(2.25rem + 2px) !important;
  display: flex !important;
  align-items: center !important;
  padding: .375rem .75rem !important;
}
.cc-modal-contact-form .select2-container--bootstrap4 .select2-selection__rendered{
  line-height: normal !important;
  padding-left: 0 !important;
}
.cc-modal-contact-form .select2-container--bootstrap4 .select2-selection__arrow{
  height: calc(2.25rem + 2px) !important;
}


/* ============================================================
   CostChief PUBLIC HEADER - Landing logo/brand tuning
   Only affects public landing header
   ============================================================ */

.cc-header .cc-brand-logo{
  height: 64px;
  width: auto;
  max-width: none;
}

.cc-header .cc-public-brand-text{
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: .4px;
}