/* =========================================================
   CostChief ERP
   AdminLTE Overrides – FINAL
   ========================================================= */

/* =========================================================
   ROOT VARIABLES (LOGO RENKLERİ)
   ========================================================= */
:root{
  --cc-navy: #001f3f;
  --cc-navy-soft: #0b2c4a;
  --cc-orange: #f57c00;
  --cc-text: rgba(255,255,255,.88);
  --cc-text-soft: rgba(255,255,255,.65);
}

/* =========================================================
   NAVBAR – USER AREA
   ========================================================= */

/* Avatar container (SABİT) */
.cc-nav-avatar{
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,.08);
}


/* Django ClearableFileInput: Şu anki / Değiştir / link / checkbox / text HER ŞEYİ sustur */
.cc-avatar-upload *:not(input[type="file"]) {
  display: none !important;
}



/* Avatar image (ASLA TAŞMAZ) */
.cc-nav-avatar-img{
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Avatar fallback (harf) */
.cc-nav-avatar-fallback{
  font-weight: 700;
  color: #fff;
  font-size: .9rem;
}

/* Kullanıcı adı */
.cc-nav-name{
  font-weight: 800;
  font-size: .90rem;
  line-height: 1.10;
  margin-bottom: 3px;
  white-space: nowrap;
}

/* Firma adı */
.cc-nav-company{
  font-size: .72rem;
  line-height: 1.15;
  opacity: .78;
  white-space: nowrap;
}

/* Navbar caret */
.navbar .fa-caret-down{
  font-size: .85rem;
  opacity: .65;
}

/* =========================================================
   USER DROPDOWN
   ========================================================= */

.cc-user-dd{
  min-width: 240px;
  padding: 0;
}

/* Üst bilgi – müşteri no */
.cc-dd-muted{
  padding: .75rem 1rem;
  font-size: .78rem;
  color: #666;
  background: #f8f9fa;
}

/* Marka stripe */
.cc-dd-stripe{
  height: 4px;
  background: linear-gradient(
    to right,
    var(--cc-orange),
    #ffb347
  );
}

/* Dropdown body */
.cc-dd-body{
  padding: .4rem 0;
}

/* Dropdown item */
.cc-dd-item{
  font-size: .85rem;
  padding: .55rem 1rem;
}

.cc-dd-item:hover{
  background: #f1f1f1;
}

/* =========================================================
   SIDEBAR – ELIT KURUMSAL
   ========================================================= */

.main-sidebar{
  background-color: var(--cc-navy) !important;
}

/* Logo alanı */
.main-sidebar .brand-link{
  background: var(--cc-navy) !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Menü linkleri */
.nav-sidebar .nav-link{
  color: var(--cc-text) !important;
  position: relative;
}

.nav-sidebar .nav-link p{
  color: var(--cc-text) !important;
  font-weight: 500;
}

/* İkonlar */
.nav-sidebar .nav-icon{
  color: var(--cc-text-soft) !important;
}

/* Hover */
.nav-sidebar .nav-link:hover{
  background-color: rgba(255,255,255,.04) !important;
}

/* Aktif menü */
.nav-sidebar .nav-link.active{
  background-color: var(--cc-navy-soft) !important;
  color: #fff !important;
}

/* Sol turuncu vurgu */
.nav-sidebar .nav-link.active::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--cc-orange);
}

/* Aktif ikon */
.nav-sidebar .nav-link.active .nav-icon{
  color: #fff !important;
}

/* Alt menüler */
.nav-treeview .nav-link{
  padding-left: 2.6rem;
}

.nav-treeview .nav-link:hover{
  background-color: rgba(255,255,255,.03) !important;
}

/* =========================================================
   GLOBAL IMG RESET FIX (AdminLTE çakışma önlemi)
   ========================================================= */
.navbar img{
  max-width: none;
}


/* CostChief - Dashboard içindeki tüm custom checkbox label standardı */
.content-wrapper .custom-control-label {
  font-weight: 400 !important;
  font-size: 16px !important;
  color: #343a40 !important;
  line-height: 1.35 !important;
}

/* Kart başlık linkleri (collapse başlıkları) */
.content-wrapper .card-header .card-title,
.content-wrapper .card-header .card-title a {
  font-weight: 600 !important;
  font-size: 16px !important;
}


