/* =====================================================================
   A&C International Road Cargo — identitate vizuală (Brand Book)

   Culori:  albastru #0076C0 (Pantone 2935 C) · galben #FFC222 (7408 C)
            roșu #E31B23 (1797 C) · gri #414042 (447 C)
   Font:    Montserrat (fontul oficial, inclusiv pe web)
   Se încarcă DUPĂ ac-theme.css și are prioritate față de el.
   ===================================================================== */

@font-face {
  font-family: 'Montserrat';
  /* subset latin + română (60 KB în loc de 672 KB); fișierul complet rămâne pentru PDF-uri */
  src: url('../fonts/montserrat/Montserrat-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-blue: #0076C0;
  --brand-blue-dark: #005F9A;
  --brand-blue-soft: #E6F2FA;
  --brand-yellow: #FFC222;
  --brand-red: #E31B23;
  --brand-gray: #414042;
  --brand-gray-soft: #F4F4F5;

  /* alimentează variabilele din ac-theme.css */
  --ac-primary: var(--brand-blue);
  --ac-primary-soft: var(--brand-blue-soft);
  --ac-accent: var(--brand-gray);
  --ac-text: var(--brand-gray);
  --ac-text-muted: #6E6E71;
}

body, input, select, textarea, button, .btn, .form-control, .table, .card,
.pcoded-navbar, .pcoded-header, .dropdown-menu, .modal-content {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .page-header-title h5 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
  color: var(--brand-gray);
}
.feather, [class^="icon-"], [class*=" icon-"], .fa, .fas, .far, .fab { font-family: revert; }

/* ---------- Butoane și accente ---------- */
.btn-primary:hover, .btn-primary:focus { background: var(--brand-blue-dark) !important; border-color: var(--brand-blue-dark) !important; }
.btn-primary:focus { box-shadow: 0 0 0 .2rem rgba(0, 118, 192, .25) !important; }
.btn-danger, .badge.bg-danger, .bg-danger { background-color: var(--brand-red) !important; border-color: var(--brand-red) !important; }
.text-danger { color: var(--brand-red) !important; }
.btn-outline-danger { color: var(--brand-red); border-color: var(--brand-red); }
.btn-outline-danger:hover { background: var(--brand-red); color: #fff; }
.badge.bg-warning, .bg-warning { background-color: var(--brand-yellow) !important; color: var(--brand-gray) !important; }
.alert-warning { background: #FFF6DC; border-color: var(--brand-yellow); color: var(--brand-gray); }
.form-control:focus { border-color: var(--brand-blue) !important; box-shadow: 0 0 0 .2rem rgba(0, 118, 192, .18) !important; }
.page-link { color: var(--brand-blue); }
.page-item.active .page-link { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.table thead th { color: var(--brand-gray); }
.nav-pills .nav-link.active, .nav-tabs .nav-link.active { color: var(--brand-blue) !important; border-color: var(--brand-blue) !important; }

/* ---------- Logo ---------- */
.ac-logo-img { width: auto !important; height: 38px !important; max-width: 180px; }
.ac-form-side .ac-form-logo { width: 220px !important; max-width: 80%; height: auto !important; margin: 0 auto 22px !important; }
.pcoded-navbar .header-logo { padding-left: 14px; }
.pcoded-navbar.navbar-collapsed .ac-logo-img { height: 30px !important; }

/* ---------- Subsol: Powered by innovITech ---------- */
.ac-footer {
  margin: 28px 0 0;
  padding: 14px 16px 18px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ac-text-muted);
  border-top: 1px solid var(--ac-border, #eef0f4);
  background: transparent;
}
.ac-footer strong { color: var(--brand-gray); font-weight: 700; }
.ac-footer .ac-footer-ver { opacity: .8; margin-left: 6px; }
@media (min-width: 992px) {
  body:not(.ac-footer-full) .ac-footer { margin-left: 264px; }
}
.ac-footer-full > .ac-footer { margin-left: 0; border-top: 0; position: fixed; bottom: 0; left: 0; right: 0; background: transparent; }

/* ---------- Sidebar: elementul activ rămâne evidențiat și devine bold ---------- */
.pcoded-navbar .pcoded-inner-navbar > li.active > a .pcoded-mtext,
.pcoded-navbar .pcoded-inner-navbar > li.pcoded-trigger > a .pcoded-mtext,
.pcoded-navbar .pcoded-submenu > li.active > a {
  font-weight: 700 !important;
}
.pcoded-navbar .pcoded-inner-navbar > li > a .pcoded-mtext { transition: color .12s ease; }

/* ---------- Insigne tip vehicul: CT = cap tractor, SR = semiremorcă ---------- */
.badge.tip-vehicul {
  font-size: 0.68rem; font-weight: 700; letter-spacing: .4px;
  padding: 3px 7px; border-radius: 6px; margin-left: 4px; vertical-align: middle;
}
.badge.tip-ct { background: var(--brand-blue-soft); color: var(--brand-blue-dark); border: 1px solid #b9dcf1; }
.badge.tip-sr { background: #FFF6DC; color: #7a5a00; border: 1px solid #f3d98a; }

/* ---------- Meniul utilizatorului (colțul din dreapta sus) ---------- */
.pcoded-header .dropdown.drp-user > a.dropdown-toggle { border-radius: 50%; transition: background .15s ease; }
.pcoded-header .dropdown.drp-user > a.dropdown-toggle:hover,
.pcoded-header .dropdown.drp-user.show > a.dropdown-toggle { background: var(--brand-blue-soft); }

.pcoded-header .dropdown-menu.profile-notification {
  width: 290px; padding: 0; margin-top: 12px !important;
  border: 1px solid #e6e6e8; border-radius: 14px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(65, 64, 66, .18), 0 2px 6px rgba(65, 64, 66, .08);
  background: #fff;
}
.pcoded-header .profile-notification .pro-head {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 18px 16px 20px !important;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%) !important;
  color: #fff !important;
  border-radius: 0 !important;
}
/* firul tricolor din brand book, la baza antetului */
.pcoded-header .profile-notification .pro-head::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(to right,
    var(--brand-blue) 0 33.33%, var(--brand-yellow) 33.33% 66.66%, var(--brand-red) 66.66% 100%);
}
.pcoded-header .profile-notification .pro-head img {
  width: 48px; height: 48px; object-fit: cover; flex: 0 0 48px;
  border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.pcoded-header .profile-notification .pro-head .pro-name {
  display: flex; flex-direction: column; min-width: 0; line-height: 1.25; flex: 1 1 auto;
}
.pcoded-header .profile-notification .pro-head .pro-name strong {
  font-size: .95rem; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pcoded-header .profile-notification .pro-head .pro-name small {
  font-size: .72rem; color: rgba(255, 255, 255, .82); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pcoded-header .profile-notification .pro-head .dud-logout {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff !important; background: rgba(255, 255, 255, .14);
  transition: background .15s ease;
}
.pcoded-header .profile-notification .pro-head .dud-logout:hover { background: rgba(255, 255, 255, .28); }
.pcoded-header .profile-notification .pro-head .dud-logout i { font-size: 16px; margin: 0; }

.pcoded-header .profile-notification .pro-body {
  list-style: none; margin: 0; padding: 8px !important; background: #fff;
}
.pcoded-header .profile-notification .pro-body li { list-style: none; }
.pcoded-header .profile-notification .pro-body .dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px !important; border-radius: 10px;
  font-size: .86rem; font-weight: 500; color: var(--brand-gray) !important;
  transition: background .12s ease, color .12s ease;
}
.pcoded-header .profile-notification .pro-body .dropdown-item i {
  width: 20px; margin: 0 !important; text-align: center; font-size: 16px; color: var(--brand-blue);
}
.pcoded-header .profile-notification .pro-body .dropdown-item:hover,
.pcoded-header .profile-notification .pro-body .dropdown-item:focus {
  background: var(--brand-blue-soft) !important; color: var(--brand-blue-dark) !important;
}
.pcoded-header .profile-notification .pro-body .pro-sep { height: 1px; margin: 6px 8px; background: #ececee; }
.pcoded-header .profile-notification .pro-body .pro-logout i { color: var(--brand-red); }
.pcoded-header .profile-notification .pro-body .pro-logout:hover,
.pcoded-header .profile-notification .pro-body .pro-logout:focus {
  background: #FCE4E5 !important; color: var(--brand-red) !important;
}

/* butonul „Deconectare” din antet: stilul vendor îl făcea absolut și cât toată înălțimea antetului */
.pcoded-header .dropdown .profile-notification .pro-head .dud-logout {
  position: static !important; width: 34px !important; height: 34px !important;
  padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, .14);
}
.pcoded-header .dropdown .profile-notification .pro-head .dud-logout:hover { background: rgba(255, 255, 255, .28); }

/* ---------- Butoanele rotunde din antet (notificări, utilizator): cerc perfect ---------- */
.pcoded-header .navbar-nav > li > .dropdown > a.dropdown-toggle {
  position: relative;
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0 !important; margin: 0 2px;
  border-radius: 50% !important; line-height: 1; transition: background .15s ease;
}
.pcoded-header .navbar-nav > li > .dropdown > a.dropdown-toggle::after { display: none !important; }
.pcoded-header .navbar-nav > li > .dropdown > a.dropdown-toggle > i.icon { margin: 0 !important; font-size: 18px; }
.pcoded-header .navbar-nav > li > .dropdown > a.dropdown-toggle:hover,
.pcoded-header .navbar-nav > li > .dropdown.show > a.dropdown-toggle {
  background: var(--brand-blue-soft) !important; color: var(--brand-blue) !important;
}
