body {
  font-family: "Open Sans", sans-serif;
  color: #272829;
}

a {
  color: #149ddd;
  text-decoration: none;
}


a:hover {
  color: #37b3ed;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

/*----Scroll top button----*/

#btn-back-to-top {
  position: fixed;
  bottom: 47px;
  right: 10px;
  display: none;
  z-index: 9999;
  border-radius: 50%;
  box-shadow: 20px 5px 10px rgba(0,0,0,0.2);
}


/* Style for the label */
#scroll-label {
  position: fixed;
  bottom: 17px;
  right: 10px;
  z-index: 9999;
  font-size: 10px;
  font-weight: bold;
  color: #333;
  background-color: #f8d7da;
  padding: 5px 10px;
  border-radius: 5px;
  display: none;
  box-shadow: 20px 5px 10px rgba(0,0,0,0.2);
}
/* ------ --- - - - -- - - - - -- - - - -  - - - - --  - - */

label.required::after {
        content: " *";
        color: red;
        font-weight: bold;
}


.table-row-hover:hover {
    background-color: #f8f9fa;
    transition: 0.2s ease;
}

.table thead th {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.table td {
    padding-top: 12px;
    padding-bottom: 12px;
}


/* Charts  */

.card {
    transition: 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}


input[type="date"] {
    min-width: 140px;
}

/* --------- NAVBAR ----- */


.navbar .nav-link {
  transition: 0.2s;
}

.navbar .nav-link:hover {
  color: #ffc107 !important;
}

.navbar .nav-link.active {
  font-weight: 600;
  border-bottom: 2px solid #ffc107;
}


/* ------------ */

.dashboard-card {
    border-radius: 16px;
    transition: all 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.table thead th {
    font-size: 14px;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: rgba(0,0,0,0.03);
}

:root {
  scroll-behavior: auto !important;
}

form input,
form select,
form textarea {
    scroll-margin-top: 160px;
}

/* =========================================================
   LOGIN PAGE — Transport Sürücülər Hesabat
   ========================================================= */
.login-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 20px;
  background:
    radial-gradient(circle at 12% 18%, rgba(50, 119, 255, 0.24), transparent 32%),
    radial-gradient(circle at 86% 78%, rgba(0, 214, 170, 0.17), transparent 32%),
    linear-gradient(135deg, #07111f 0%, #0d1b2d 45%, #101c2c 100%);
  color: #fff;
  isolation: isolate;
}

.login-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .13;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 92%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 92%);
}

.login-bg-orb {
  position: absolute;
  z-index: -2;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(75px);
  opacity: .23;
  pointer-events: none;
  animation: loginOrbFloat 8s ease-in-out infinite alternate;
}

.login-bg-orb-one {
  top: -150px;
  left: -100px;
  background: #3f82ff;
}

.login-bg-orb-two {
  right: -120px;
  bottom: -180px;
  background: #00d7aa;
  animation-delay: -3s;
}

.login-wrap {
  width: min(100%, 980px);
  margin: auto;
}

.login-hero {
  max-width: 900px;
  margin: 0 auto 28px;
  animation: loginHeroIn .8s ease both;
}

.login-brand-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 27px;
  color: #06121f;
  background: linear-gradient(135deg, #ffffff, #91f5df);
  box-shadow: 0 13px 35px rgba(0, 214, 170, .22);
  transform: rotate(-4deg);
}

.login-title-frame {
  position: relative;
  display: inline-block;
  padding: 0 4px 10px;
}

.login-main-title {
  margin: 0;
  font-family: "Poppins", "Open Sans", sans-serif;
  font-size: clamp(31px, 5.2vw, 58px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.035em;
  background: linear-gradient(100deg, #ffffff 8%, #8cebd9 34%, #8fb8ff 55%, #ffffff 80%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: loginTitleShine 4.8s linear infinite, loginTitleFloat 3.2s ease-in-out infinite;
  text-shadow: 0 0 42px rgba(112, 189, 255, .08);
}

.login-title-line {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 86%;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #62e6cb, #75a7ff, transparent);
  background-size: 180% 100%;
  animation: loginLineMove 2.2s linear infinite;
  box-shadow: 0 0 18px rgba(98,230,203,.42);
}

.login-subtitle {
  margin: 14px auto 0;
  max-width: 640px;
  color: rgba(231, 240, 250, .7);
  font-size: clamp(14px, 2vw, 17px);
  letter-spacing: .01em;
}

.login-road {
  position: relative;
  width: min(360px, 78vw);
  height: 25px;
  margin: 16px auto 0;
  overflow: hidden;
}

.login-road-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.36), transparent);
}

.login-moving-truck {
  position: absolute;
  left: -34px;
  bottom: 3px;
  font-size: 19px;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.35));
  animation: loginTruckDrive 6.5s linear infinite;
}

.login-card-wrap {
  display: flex;
  justify-content: center;
  animation: loginCardIn .78s .08s ease both;
}

.login-card {
  width: min(100%, 470px);
  padding: 30px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.105), rgba(255,255,255,.055));
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 28px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}

.login-card:hover {
  transform: none;
}

.login-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.login-lock-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-size: 21px;
  color: #8ff1dd;
  background: rgba(92, 227, 199, .09);
  border: 1px solid rgba(143, 241, 221, .18);
}

.login-card-top h2 {
  margin: 0 0 3px;
  color: #fff;
  font-size: 23px;
  font-weight: 750;
}

.login-card-top p {
  margin: 0;
  color: rgba(231,240,250,.58);
  font-size: 13px;
}

.login-flash-wrap {
  margin-bottom: 18px;
}

.login-alert {
  margin: 0;
  border: 0;
  border-radius: 13px;
  font-size: 13px;
  padding: 10px 13px;
}

.login-field {
  margin-bottom: 18px;
}

.login-field .form-label {
  margin: 0 0 8px;
  color: rgba(244, 249, 255, .88);
  font-size: 13px;
  font-weight: 650;
}

.login-input-group {
  position: relative;
}

.login-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #82dcca;
  font-size: 17px;
  pointer-events: none;
}

.login-input.form-control {
  min-height: 54px;
  padding: 13px 48px 13px 45px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  color: #fff;
  background: rgba(3, 12, 23, .36);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.login-input.form-control::placeholder {
  color: rgba(224, 234, 244, .38);
}

.login-input.form-control:focus {
  color: #fff;
  background: rgba(3, 12, 23, .55);
  border-color: rgba(100, 231, 205, .62);
  box-shadow: 0 0 0 4px rgba(67, 216, 188, .09), 0 12px 28px rgba(0,0,0,.14);
  outline: none;
  transform: translateY(-1px);
}

.login-password-toggle {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: rgba(235, 243, 250, .64);
  background: transparent;
  transition: .2s ease;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.08);
  outline: none;
}

.login-caps-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #ffd27c;
  font-size: 12px;
}

.login-submit-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  padding: 12px 18px;
  border: 0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #06131c;
  font-weight: 800;
  letter-spacing: .01em;
  background: linear-gradient(100deg, #8af0dd 0%, #72b3ff 100%);
  box-shadow: 0 16px 34px rgba(66, 183, 219, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.login-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(66, 183, 219, .3);
  filter: brightness(1.04);
}

.login-submit-btn:active {
  transform: translateY(0);
}

.login-card-footer {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(230,239,248,.43);
  font-size: 11px;
  letter-spacing: .02em;
}

.login-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55e0b8;
  box-shadow: 0 0 0 5px rgba(85,224,184,.09), 0 0 12px rgba(85,224,184,.55);
  animation: loginStatusPulse 1.9s ease-in-out infinite;
}

@keyframes loginTitleShine {
  to { background-position: 220% center; }
}

@keyframes loginTitleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes loginLineMove {
  0% { background-position: 180% 0; }
  100% { background-position: -180% 0; }
}

@keyframes loginTruckDrive {
  0% { left: -34px; transform: translateY(0); }
  42% { transform: translateY(-1px); }
  100% { left: calc(100% + 8px); transform: translateY(0); }
}

@keyframes loginOrbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, 24px, 0) scale(1.08); }
}

@keyframes loginHeroIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loginStatusPulse {
  0%, 100% { opacity: .65; transform: scale(.88); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 576px) {
  .login-screen {
    padding: 26px 14px;
    align-items: flex-start;
  }

  .login-hero {
    margin-bottom: 20px;
  }

  .login-brand-badge {
    width: 50px;
    height: 50px;
    font-size: 23px;
    border-radius: 15px;
  }

  .login-main-title {
    font-size: clamp(28px, 9.4vw, 38px);
  }

  .login-subtitle {
    font-size: 13px;
  }

  .login-road {
    margin-top: 10px;
  }

  .login-card {
    padding: 23px 18px;
    border-radius: 22px;
  }

  .login-card-top {
    margin-bottom: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-main-title,
  .login-title-line,
  .login-moving-truck,
  .login-bg-orb,
  .login-status-dot,
  .login-hero,
  .login-card-wrap {
    animation: none !important;
  }
}

/* =========================================================
   DASHBOARD V4 — old drivers_report analytics
   ========================================================= */
.dashboard-page {
  max-width: 1500px;
  margin: 0 auto;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, #111827 0%, #172554 55%, #0f766e 140%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
}

.dashboard-eyebrow {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dashboard-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.035em;
}

.dashboard-subtitle { color: rgba(255,255,255,.74); }

.dashboard-period-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  border-radius: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-filter-card,
.dashboard-chart-card,
.dashboard-table-card,
.dashboard-metric-card {
  border-radius: 18px;
}

.dashboard-filter-card:hover,
.dashboard-chart-card:hover,
.dashboard-table-card:hover,
.dashboard-metric-card:hover {
  transform: none;
}

.dashboard-quick-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-metric-card {
  min-height: 138px;
  height: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid #edf0f4;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.dashboard-metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 21px;
  flex: 0 0 auto;
}
.dashboard-metric-icon.icon-blue { background: #eaf2ff; color: #2563eb; }
.dashboard-metric-icon.icon-green { background: #e9fbf4; color: #059669; }
.dashboard-metric-icon.icon-orange { background: #fff3e7; color: #ea580c; }
.dashboard-metric-icon.icon-red { background: #fff0f1; color: #dc2626; }

.dashboard-metric-label { color: #64748b; font-size: 13px; font-weight: 700; }
.dashboard-metric-value { color: #0f172a; font-size: clamp(24px, 2.2vw, 33px); line-height: 1.15; font-weight: 800; margin: 4px 0 6px; }
.dashboard-metric-note { color: #94a3b8; font-size: 12px; }

.dashboard-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.dashboard-card-heading h5 { font-weight: 800; color: #172033; }
.dashboard-card-heading small { color: #7b8798; }
.dashboard-card-heading > i { font-size: 25px; color: #5b6f91; }
.dashboard-chart-wrap { height: 330px; }

.dashboard-product-list { display: grid; gap: 8px; max-height: 330px; overflow: auto; padding-right: 4px; }
.dashboard-product-row {
  display: grid;
  grid-template-columns: minmax(125px, .8fr) minmax(160px, 1.4fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  background: #fbfcfe;
}
.dashboard-product-truck { font-weight: 800; color: #1e293b; }
.dashboard-product-name { color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-table-card thead th { background: #f8fafc; color: #64748b; border-bottom: 1px solid #e9eef5; }

/* Old report create/edit form: kartlar hover zamanı artıq tərpənmir. */
.old-report-form .card,
.old-report-form .card:hover {
  transform: none !important;
}

@media (max-width: 767.98px) {
  .dashboard-hero { align-items: flex-start; flex-direction: column; padding: 20px; }
  .dashboard-period-pill { white-space: normal; }
  .dashboard-quick-filters { justify-content: flex-start; }
  .dashboard-metric-card { min-height: 124px; padding: 16px; gap: 10px; }
  .dashboard-metric-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
  .dashboard-chart-wrap { height: 285px; }
  .dashboard-product-row { grid-template-columns: 1fr auto; }
  .dashboard-product-name { grid-column: 1 / -1; white-space: normal; }
}

/* =========================================================
   DASHBOARD V5 — exact old-report totals and drill-down
   ========================================================= */
.dashboard-rank-table thead th,
.dashboard-cargo-table thead th,
.dashboard-trip-table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .035em;
  border-bottom: 1px solid #e9eef5;
  white-space: nowrap;
}

.dashboard-rank-table tbody tr,
.dashboard-cargo-table tbody tr,
.dashboard-trip-table tbody tr {
  transition: background-color .16s ease;
}

.dashboard-rank-table tbody tr:hover,
.dashboard-cargo-table tbody tr:hover,
.dashboard-trip-table tbody tr:hover {
  background: #fbfdff;
}

.dashboard-trip-link {
  padding: 6px 10px;
  border: 1px solid #dbe7ff;
  background: #f3f7ff;
  color: #225fc7;
  font-weight: 800;
  border-radius: 10px;
  white-space: nowrap;
}
.dashboard-trip-link:hover,
.dashboard-trip-link:focus {
  background: #eaf2ff;
  color: #164da8;
  border-color: #c8dafb;
}

.dashboard-cell-note {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.25;
}

.dashboard-cargo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 2px;
}
.dashboard-cargo-heading h4 {
  font-weight: 850;
  color: #172033;
}
.dashboard-cargo-heading > i {
  font-size: 30px;
  color: #64748b;
}

.dashboard-cargo-card {
  overflow: hidden;
}

.dashboard-cargo-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
}
.dashboard-cargo-type-ref { background: #e8f5ff; color: #0369a1; }
.dashboard-cargo-type-tent { background: #fff6df; color: #b45309; }
.dashboard-cargo-type-sexsi { background: #f3e8ff; color: #7e22ce; }

.dashboard-cargo-name {
  color: #334155;
  font-weight: 700;
}

.dashboard-trip-modal {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}
.dashboard-trip-modal .modal-header {
  background: #f8fafc;
  border-bottom: 1px solid #e9eef5;
  padding: 18px 20px;
}

@media (max-width: 767.98px) {
  .dashboard-rank-table,
  .dashboard-cargo-table,
  .dashboard-trip-table { min-width: 720px; }
  .dashboard-cargo-heading { align-items: flex-start; }
}

/* =========================================================
   REPORTS V9 — dashboard-style old reports listing
   ========================================================= */
.reports-page {
    max-width: 100%;
}

.reports-hero {
    background: linear-gradient(135deg, #101827 0%, #18324f 58%, #214f73 100%);
    border-radius: 22px;
    padding: 25px 28px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .16);
    overflow: hidden;
    position: relative;
}

.reports-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    right: -70px;
    top: -100px;
    background: rgba(255, 255, 255, .055);
}

.reports-eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    font-size: 11px;
    color: rgba(255,255,255,.62);
    margin-bottom: 6px;
}

.reports-title {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 850;
    letter-spacing: -.03em;
}

.reports-subtitle {
    color: rgba(255,255,255,.72);
    font-size: 14px;
}

.reports-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.reports-add-btn {
    border-radius: 12px;
    padding: 10px 15px;
    font-weight: 800;
    color: #18324f;
    position: relative;
    z-index: 1;
}

.reports-filter-card,
.reports-table-card {
    border-radius: 18px;
    overflow: hidden;
}

.reports-filter-card:hover,
.reports-table-card:hover {
    transform: none !important;
}

.reports-input-wrap {
    position: relative;
}

.reports-input-wrap > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.reports-input-wrap .form-control {
    padding-left: 38px;
}

.reports-filter-card .form-control {
    min-height: 44px;
    border-radius: 11px;
    border-color: #e2e8f0;
    box-shadow: none;
}

.reports-filter-card .form-control:focus {
    border-color: #94b7dd;
    box-shadow: 0 0 0 .2rem rgba(37,99,235,.08);
}

.reports-table-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
}

.reports-table-heading h5 {
    font-weight: 850;
    color: #172033;
}

.reports-table-heading small {
    color: #7b8798;
}

.reports-table-heading > i {
    color: #5b6f91;
    font-size: 26px;
}

.reports-modern-table {
    min-width: 1450px;
    font-size: 13px;
}

.reports-modern-table thead th {
    padding: 13px 12px;
    background: #f8fafc;
    color: #64748b;
    border-bottom: 1px solid #e8edf4;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 850;
    white-space: nowrap;
}

.reports-modern-table tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.reports-modern-table tbody tr {
    transition: background-color .15s ease;
}

.reports-modern-table tbody tr:hover {
    background: #fbfdff;
    transform: none !important;
}

.reports-action-col { width: 72px; }

.reports-view-btn {
    border: 0;
    border-radius: 9px;
    background: #eaf2ff;
    color: #2563eb;
    font-weight: 850;
    padding: 7px 10px;
}

.reports-view-btn:hover,
.reports-view-btn:focus {
    background: #2563eb;
    color: #fff;
}

.reports-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

.reports-type-ref { background: #e8f5ff; color: #0369a1; }
.reports-type-tent { background: #fff6df; color: #b45309; }
.reports-type-personal { background: #f3e8ff; color: #7e22ce; }

.reports-driver-name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 155px;
    font-weight: 700;
    color: #334155;
}

.reports-driver-name i { color: #94a3b8; }

.reports-truck-number {
    display: inline-flex;
    padding: 7px 9px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 850;
    white-space: nowrap;
}

.reports-muted-value { color: #64748b; font-weight: 650; white-space: nowrap; }
.reports-km-value { color: #172033; font-weight: 850; white-space: nowrap; }

.reports-routes-cell {
    min-width: 170px;
}

.reports-route-line {
    display: flex;
    align-items: center;
    gap: 9px;
}

.reports-route-line + .reports-route-line {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.reports-route-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
}

.reports-route-going .reports-route-icon { background: #eaf2ff; color: #2563eb; }
.reports-route-return .reports-route-icon { background: #e9fbf4; color: #059669; }

.reports-route-line small {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.1;
    margin-bottom: 2px;
}

.reports-route-line strong {
    display: block;
    max-width: 150px;
    white-space: normal;
    color: #334155;
    font-size: 12px;
}

.reports-date-cell { min-width: 128px; }

.reports-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.reports-date-start { background: #edf4ff; color: #1d4ed8; }
.reports-date-rus { background: #f4f5f7; color: #475569; }
.reports-date-baku { background: #ecfdf5; color: #047857; }

.reports-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.reports-row-actions .btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
}

@media (max-width: 767.98px) {
    .reports-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
        border-radius: 18px;
    }
    .reports-title { font-size: 27px; }
    .reports-modern-table { min-width: 1380px; }
    .reports-table-heading { align-items: flex-start; }
}

/* =========================================================
   REPORTS V10 — cleaner, stronger contrast palette
   ========================================================= */
.reports-page {
    background: #f5f7fa;
    border-radius: 22px;
    padding-left: 14px;
    padding-right: 14px;
}

.reports-hero {
    background: linear-gradient(135deg, #10243e 0%, #153a5b 62%, #17496d 100%);
    box-shadow: 0 12px 30px rgba(15, 35, 58, .16);
}

.reports-hero::after {
    background: rgba(255, 255, 255, .035);
}

.reports-eyebrow {
    color: #c8d7e6;
}

.reports-subtitle {
    color: #dce7f1;
}

.reports-count-pill {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.24);
    color: #fff;
    backdrop-filter: none;
}

.reports-add-btn {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #173a59;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.reports-add-btn:hover,
.reports-add-btn:focus {
    background: #eef4f8;
    color: #102f4a;
}

.reports-filter-card,
.reports-table-card {
    background: #ffffff;
    border: 1px solid #dfe5ec !important;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .055) !important;
}

.reports-filter-card .form-label {
    color: #25364a;
}

.reports-filter-card .form-control {
    background: #ffffff;
    color: #172033;
    border-color: #cfd8e3;
}

.reports-filter-card .form-control::placeholder {
    color: #7d8998;
}

.reports-filter-card .form-control:focus {
    border-color: #3d6f9f;
    box-shadow: 0 0 0 .18rem rgba(37, 91, 143, .11);
}

.reports-input-wrap > i {
    color: #617386;
}

.reports-table-heading {
    background: #ffffff;
}

.reports-table-heading h5 {
    color: #14253a;
}

.reports-table-heading small {
    color: #59697b;
}

.reports-table-heading > i {
    color: #294f73;
}

.reports-modern-table {
    background: #fff;
}

.reports-modern-table thead th {
    background: #e8edf3;
    color: #25364a;
    border-bottom: 1px solid #cfd8e3;
    letter-spacing: .025em;
}

.reports-modern-table tbody td {
    color: #263649;
    border-bottom: 1px solid #e2e7ed;
    background: #ffffff;
}

.reports-modern-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.reports-modern-table tbody tr:hover td {
    background: #eef4f8;
}

.reports-view-btn {
    background: #214f79;
    color: #ffffff;
    box-shadow: none;
}

.reports-view-btn:hover,
.reports-view-btn:focus {
    background: #173d60;
    color: #ffffff;
}

.reports-type-badge {
    border: 1px solid transparent;
}

.reports-type-ref {
    background: #dcecf8;
    color: #0b4f79;
    border-color: #bed9eb;
}

.reports-type-tent {
    background: #f4ead5;
    color: #704d0e;
    border-color: #e5d2aa;
}

.reports-type-personal {
    background: #e9e1f2;
    color: #5e3d7a;
    border-color: #d8c7e8;
}

.reports-driver-name,
.reports-route-line strong {
    color: #25364a;
}

.reports-driver-name i,
.reports-route-line small {
    color: #68798c;
}

.reports-truck-number {
    background: #e9eef4;
    color: #14253a;
    border: 1px solid #d5dde6;
}

.reports-muted-value {
    color: #526274;
}

.reports-km-value {
    color: #14253a;
}

.reports-route-line + .reports-route-line {
    border-top-color: #d3dbe4;
}

.reports-route-going .reports-route-icon {
    background: #dce9f5;
    color: #1e5b90;
}

.reports-route-return .reports-route-icon {
    background: #dfeee9;
    color: #22684f;
}

.reports-date-badge {
    background: #f2f4f7;
    border: 1px solid #d9e0e7;
    color: #33465a;
}

.reports-date-start {
    background: #e6eef7;
    border-color: #ccdbea;
    color: #244f79;
}

.reports-date-rus {
    background: #f1f3f5;
    border-color: #dadee3;
    color: #48596a;
}

.reports-date-baku {
    background: #e7f0ec;
    border-color: #cedfd7;
    color: #2e634f;
}

@media (max-width: 767.98px) {
    .reports-page {
        padding-left: 8px;
        padding-right: 8px;
        border-radius: 16px;
    }
}


/* =========================================================
   RESPONSIVE V11 — no page-level horizontal drift
   ========================================================= */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
canvas,
video {
    max-width: 100%;
}

.app-page-shell,
.app-page-shell > *,
.row > *,
.card,
.card-body {
    min-width: 0;
}

.navbar .container-fluid {
    padding-left: clamp(12px, 2.5vw, 24px) !important;
    padding-right: clamp(12px, 2.5vw, 24px) !important;
}

.reports-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.reports-filter-card,
.reports-table-card,
.reports-table-card .card-body,
.reports-table-card .table-responsive {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.reports-table-card .table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

/* Desktop: use the available width instead of forcing a 1450px canvas. */
.reports-modern-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
    font-size: 12.5px;
}

.reports-modern-table thead th,
.reports-modern-table tbody td {
    padding-left: 9px;
    padding-right: 9px;
}

.reports-driver-name {
    min-width: 0;
    max-width: 170px;
    line-height: 1.25;
}

.reports-routes-cell {
    min-width: 140px;
}

.reports-route-line strong {
    max-width: 135px;
}

.reports-date-cell {
    min-width: 110px;
}

.reports-date-badge {
    padding: 6px 7px;
    gap: 5px;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .reports-modern-table {
        font-size: 11.5px;
    }
    .reports-modern-table thead th,
    .reports-modern-table tbody td {
        padding: 10px 6px;
    }
    .reports-modern-table thead th {
        font-size: 10px;
        letter-spacing: .02em;
    }
    .reports-view-btn {
        padding: 6px 7px;
    }
    .reports-driver-name {
        max-width: 135px;
    }
    .reports-routes-cell {
        min-width: 125px;
    }
    .reports-route-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: 11px;
    }
    .reports-route-line {
        gap: 6px;
    }
    .reports-route-line strong {
        max-width: 112px;
        font-size: 11px;
    }
    .reports-date-cell {
        min-width: 96px;
    }
    .reports-date-badge {
        font-size: 10px;
        padding: 5px 6px;
    }
}

/* Tablet and phone: each report becomes a self-contained card. */
@media (max-width: 991.98px) {
    .app-page-shell {
        overflow: hidden;
    }

    .reports-page {
        padding: 0 !important;
        background: transparent;
        border-radius: 0;
    }

    .reports-hero {
        border-radius: 16px;
        padding: 18px;
        gap: 14px;
    }

    .reports-hero > div:first-child {
        min-width: 0;
    }

    .reports-title {
        font-size: clamp(24px, 6vw, 31px);
    }

    .reports-subtitle {
        font-size: 13px;
    }

    .reports-filter-card,
    .reports-table-card {
        border-radius: 14px;
    }

    .reports-table-heading {
        padding: 16px !important;
    }

    .reports-table-card .table-responsive {
        overflow: visible;
    }

    .reports-modern-table,
    .reports-modern-table tbody {
        display: block;
        width: 100%;
        min-width: 0 !important;
    }

    .reports-modern-table thead {
        display: none;
    }

    .reports-modern-table tbody {
        padding: 12px;
        background: #f3f6f9;
    }

    .reports-modern-table tbody tr {
        display: block;
        width: 100%;
        margin: 0 0 12px;
        padding: 8px 14px 12px;
        border: 1px solid #dfe5ec;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 3px 12px rgba(15, 23, 42, .045);
        overflow: hidden;
    }

    .reports-modern-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .reports-modern-table tbody tr:hover {
        background: #fff;
    }

    .reports-modern-table tbody td {
        display: grid;
        grid-template-columns: minmax(108px, 34%) minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        width: 100%;
        min-width: 0 !important;
        max-width: none !important;
        padding: 9px 0;
        border: 0;
        border-bottom: 1px solid #edf1f5;
        background: transparent !important;
        text-align: left !important;
        white-space: normal;
    }

    .reports-modern-table tbody td::before {
        content: attr(data-label);
        min-width: 0;
        color: #627286;
        font-size: 10px;
        line-height: 1.2;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: .035em;
    }

    .reports-modern-table tbody td:last-child {
        border-bottom: 0;
    }

    .reports-modern-table tbody td[colspan] {
        display: block;
        text-align: center !important;
        padding: 26px 10px;
    }

    .reports-modern-table tbody td[colspan]::before {
        display: none;
    }

    .reports-mobile-primary {
        padding-top: 6px !important;
    }

    .reports-view-btn {
        justify-self: start;
        min-width: 84px;
    }

    .reports-driver-name,
    .reports-muted-value,
    .reports-km-value,
    .reports-routes-cell,
    .reports-date-cell {
        min-width: 0 !important;
        max-width: 100%;
        width: 100%;
    }

    .reports-driver-name {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .reports-route-line {
        min-width: 0;
    }

    .reports-route-line strong {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .reports-date-badge {
        max-width: 100%;
        white-space: normal;
        justify-content: flex-start;
    }

    .reports-row-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .app-page-shell {
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-top: 10px !important;
    }

    .reports-hero {
        padding: 16px 14px;
        margin-bottom: 12px !important;
    }

    .reports-hero > .d-flex {
        width: 100%;
    }

    .reports-count-pill,
    .reports-add-btn {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
    }

    .reports-filter-card {
        margin-bottom: 12px !important;
    }

    .reports-filter-card .card-body {
        padding: 14px !important;
    }

    .reports-table-heading {
        align-items: flex-start;
        padding: 14px !important;
    }

    .reports-table-heading > i {
        display: none;
    }

    .reports-modern-table tbody {
        padding: 8px;
    }

    .reports-modern-table tbody tr {
        padding: 6px 11px 10px;
        border-radius: 12px;
    }

    .reports-modern-table tbody td {
        grid-template-columns: minmax(92px, 36%) minmax(0, 1fr);
        gap: 8px;
        padding: 8px 0;
    }

    .reports-route-icon {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }

    .reports-route-line + .reports-route-line {
        margin-top: 6px;
        padding-top: 6px;
    }

    .navbar-brand {
        font-size: 1rem;
    }
}

/* =========================================================
   OLD REPORT FORM V12 — compact, calm and responsive
   ========================================================= */
.old-report-form-v12 {
  max-width: 1120px;
}
.old-report-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
}
.old-report-form-header h1 {
  color: #172033;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 850;
}
.old-report-form-header p { color: #6b7789; font-size: 13px; }
.old-report-form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: #365f91;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .045em;
}
.old-report-back-btn { white-space: nowrap; }
.old-report-section-card {
  border: 1px solid #e5eaf0 !important;
  border-radius: 15px !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, .035) !important;
}
.old-report-section-card .card-body { padding: 20px; }
.old-report-section-card .card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #26384f !important;
  font-weight: 800;
}
.old-report-section-card .card-title i { color: #4775a9; }
.old-report-form-v12 .form-group label,
.old-report-form-v12 .expense-entry-row label {
  display: block;
  margin-bottom: 6px;
  color: #4d5c70;
  font-size: 12px;
  font-weight: 750;
}
.old-report-form-v12 .form-control,
.old-report-form-v12 .form-select,
.old-report-form-v12 .input-group-text {
  min-height: 43px;
  border-color: #dbe2ea;
}
.old-report-form-v12 .form-control:focus,
.old-report-form-v12 .form-select:focus {
  border-color: #8baacb;
  box-shadow: 0 0 0 .2rem rgba(71, 117, 169, .10);
}
.old-report-auto-date { background: #f7f9fb !important; color: #4c596b; }
.expense-builder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.expense-builder-heading small { color: #7a8797; }
.expense-builder-list { display: grid; gap: 10px; }
.expense-entry-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(180px, .38fr) 38px;
  gap: 10px;
  align-items: end;
  padding: 11px;
  border: 1px solid #e7ebf0;
  border-radius: 12px;
  background: #fafbfd;
}
.expense-entry-index {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #edf3f9;
  color: #45698f;
  font-size: 12px;
  font-weight: 850;
}
.expense-entry-reason,
.expense-entry-amount { min-width: 0; }
.expense-entry-row .input-group-text {
  background: #f1f4f7;
  color: #677487;
  font-size: 11px;
  font-weight: 750;
}
.expense-remove-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #9b5960;
  background: #f8ecee;
}
.expense-remove-btn:hover { color: #7e343d; background: #f2dde0; }
.expense-add-btn { font-weight: 750; white-space: nowrap; }
.old-report-submit-btn {
  min-height: 50px;
  border-radius: 13px;
  font-weight: 800;
}

@media (max-width: 767.98px) {
  .old-report-form-v12 { margin-top: 14px !important; padding-left: 10px; padding-right: 10px; }
  .old-report-form-header { align-items: flex-start; flex-direction: column; padding: 17px; }
  .old-report-back-btn { width: 100%; }
  .old-report-section-card .card-body { padding: 16px; }
  .expense-builder-heading { align-items: flex-start; flex-direction: column; }
  .expense-add-btn { width: 100%; }
  .expense-entry-row {
    grid-template-columns: 30px minmax(0, 1fr) 36px;
    align-items: start;
  }
  .expense-entry-index { grid-row: 1 / 3; align-self: center; }
  .expense-entry-reason { grid-column: 2; }
  .expense-entry-amount { grid-column: 2; }
  .expense-remove-btn { grid-column: 3; grid-row: 1 / 3; align-self: center; }
}

/* =========================================================
   OLD REPORT DETAILS V14 — aligned with add/edit form
   ========================================================= */
.old-report-details-v14{max-width:1120px}
.old-report-details-header{margin-top:0}
.old-report-summary-card{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;
  padding:20px 22px;background:#fff;border:1px solid #e5eaf0;border-radius:16px;
  box-shadow:0 5px 18px rgba(15,23,42,.045)
}
.old-report-summary-main{min-width:0}
.old-report-summary-date{display:flex;align-items:center;gap:7px;color:#758296;font-size:12px;font-weight:700;margin-bottom:10px}
.old-report-summary-title-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.old-report-summary-truck{min-width:0}.old-report-summary-label{display:block;color:#748195;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.old-report-summary-truck strong{display:block;color:#172033;font-size:clamp(24px,3vw,34px);line-height:1.05;font-weight:900}.old-report-summary-truck strong span{color:#9aa5b3;font-weight:500}
.old-report-top-result{display:flex;align-items:baseline;gap:9px;padding:9px 13px;border:1px solid #cfe0d1;border-radius:12px;background:#f3f8f3}
.old-report-top-result span{color:#5e7161;font-size:11px;font-weight:800;text-transform:uppercase}.old-report-top-result strong{color:#275c32;font-size:24px;font-weight:900}
.old-report-summary-subline{display:flex;flex-wrap:wrap;gap:14px;margin-top:11px;color:#667488;font-size:13px}.old-report-summary-subline span{display:inline-flex;align-items:center;gap:6px}
.old-report-summary-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:310px}.old-report-summary-actions .btn{font-weight:750;white-space:nowrap}
.old-report-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.old-report-info-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.old-report-info-item{padding:13px 14px;background:#fafbfd;border:1px solid #e7ebf0;border-radius:12px;min-width:0}.old-report-info-item span{display:block;margin-bottom:5px;color:#778497;font-size:11px;font-weight:750}.old-report-info-item strong{display:block;color:#26384f;font-size:15px;font-weight:800;overflow-wrap:anywhere}
.old-report-info-highlight{background:#f3f7fb;border-color:#d7e3ef}.old-report-info-highlight strong{color:#2f5f92;font-size:18px}
.old-report-route-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.old-report-route-box{position:relative;padding:15px;background:#fafbfd;border:1px solid #e7ebf0;border-radius:13px}.old-report-route-direction{display:inline-block;margin-bottom:11px;padding:4px 8px;border-radius:8px;background:#edf3f9;color:#45698f;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.old-report-route-box>div+div{margin-top:10px;padding-top:10px;border-top:1px dashed #dce2e9}.old-report-route-box small{display:block;color:#8390a1;font-size:10px;font-weight:750}.old-report-route-box strong{display:block;margin-top:2px;color:#28394f;font-size:15px}
.old-report-expense-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.old-report-expense-box{overflow:hidden;border:1px solid #e4e9ef;border-radius:13px;background:#fff}.old-report-expense-title{display:flex;justify-content:space-between;gap:10px;padding:11px 13px;background:#f2f5f8;color:#31445d;font-weight:850}.old-report-expense-title strong{color:#8a424b}.old-report-expense-line{display:flex;justify-content:space-between;gap:12px;padding:9px 13px;border-top:1px solid #edf0f3;color:#4c596b}.old-report-expense-line span{min-width:0;overflow-wrap:anywhere}.old-report-expense-line strong{color:#9a4750;white-space:nowrap}.old-report-empty{padding:13px;color:#8a95a3;font-size:12px}
.old-report-result-card{overflow:hidden;border:1px solid #dfe6ee!important;border-radius:16px!important;box-shadow:0 5px 18px rgba(15,23,42,.045)!important}.old-report-result-card .card-body{padding:0}.old-report-result-heading{padding:14px 18px;background:#2d435d;color:#fff;font-weight:850;font-size:17px}.old-report-result-heading i{margin-right:7px}.old-report-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.old-report-result-grid>div{display:flex;justify-content:space-between;gap:16px;padding:13px 18px;border-bottom:1px solid #edf0f3}.old-report-result-grid>div:nth-child(odd){border-right:1px solid #edf0f3}.old-report-result-grid span{color:#667386;font-size:12px;font-weight:700}.old-report-result-grid strong{color:#26384f;white-space:nowrap}.old-report-result-total{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px 18px;background:#f1f7f1}.old-report-result-total span{color:#4d6652;font-weight:850}.old-report-result-total strong{color:#245d31;font-size:26px;font-weight:950}
@media(max-width:991.98px){.old-report-summary-card{grid-template-columns:1fr}.old-report-summary-actions{max-width:none;justify-content:flex-start}.old-report-info-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767.98px){.old-report-details-v14{padding-left:10px;padding-right:10px}.old-report-info-grid,.old-report-info-grid-4,.old-report-route-grid,.old-report-expense-columns,.old-report-result-grid{grid-template-columns:1fr}.old-report-result-grid>div:nth-child(odd){border-right:0}.old-report-summary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.old-report-summary-actions .btn,.old-report-summary-actions form,.old-report-summary-actions form .btn{width:100%}.old-report-result-total{align-items:flex-start;flex-direction:column;gap:5px}.old-report-top-result{width:100%;justify-content:space-between}}

/* =========================================================
   BASE / NAVBAR V15 — M-TRANSPORT
   Clean, calm and responsive shell
   ========================================================= */
.app-navbar {
  --nav-bg: #101827;
  --nav-bg-2: #172235;
  --nav-text: #d8e0eb;
  --nav-muted: #8f9bad;
  --nav-accent: #4f8fca;
  --nav-accent-soft: rgba(79, 143, 202, .16);
  --nav-border: rgba(255, 255, 255, .075);
  min-height: 72px;
  padding: 0;
  background: linear-gradient(115deg, var(--nav-bg) 0%, var(--nav-bg-2) 100%);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  z-index: 1035;
}

.app-navbar-inner {
  min-height: 72px;
  gap: 16px;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-right: clamp(14px, 2.5vw, 34px);
  padding: 8px 0 !important;
  color: #fff !important;
  text-decoration: none;
}

.app-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: linear-gradient(145deg, #2f6fa9 0%, #21486e 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .20), inset 0 1px 0 rgba(255, 255, 255, .11);
}

.app-brand-letter {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: "Poppins", "Open Sans", sans-serif;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.06em;
  transform: translateY(-1px);
}

.app-brand-road {
  position: absolute;
  left: -5px;
  right: -5px;
  bottom: 8px;
  height: 3px;
  transform: rotate(-11deg);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 -5px 0 rgba(255, 255, 255, .11);
}

.app-brand-road::after {
  content: "";
  position: absolute;
  inset: 1px 3px auto;
  height: 1px;
  background: repeating-linear-gradient(90deg, transparent 0 5px, #21486e 5px 8px);
}

.app-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.app-brand-name {
  color: #fff;
  font-family: "Poppins", "Open Sans", sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .055em;
  white-space: nowrap;
}

.app-brand-subtitle {
  margin-top: 4px;
  color: #91a0b5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .035em;
  white-space: nowrap;
}

.app-nav-menu {
  gap: 3px;
  align-items: center;
}

.app-navbar .app-nav-menu .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--nav-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.app-navbar .app-nav-menu .nav-link i {
  color: #8ca3bb;
  font-size: 14px;
  transition: color .18s ease;
}

.app-navbar .app-nav-menu .nav-link:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,.07);
  background: rgba(255,255,255,.06);
}

.app-navbar .app-nav-menu .nav-link:hover i {
  color: #c9d7e6;
}

.app-navbar .app-nav-menu .nav-link.active {
  color: #fff !important;
  border-bottom: 1px solid rgba(91, 151, 207, .35);
  border-color: rgba(91, 151, 207, .24);
  background: var(--nav-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.app-navbar .app-nav-menu .nav-link.active i {
  color: #75aee2;
}

.app-navbar .app-nav-admin {
  color: #e6d69e !important;
}

.app-navbar .app-nav-admin i {
  color: #c9b467 !important;
}

.app-navbar .app-nav-admin.active,
.app-navbar .app-nav-admin:hover {
  color: #fff4c5 !important;
  border-color: rgba(205, 179, 92, .22) !important;
  background: rgba(205, 179, 92, .10) !important;
}

.app-nav-account {
  gap: 9px;
  margin-left: 14px !important;
}

.app-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-width: 180px;
  padding: 6px 10px 6px 7px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  color: #cfd8e5;
}

.app-user-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px;
  color: #a8bed5;
  background: rgba(255,255,255,.07);
}

.app-user-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.app-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: #e5ebf3;
  background: rgba(255,255,255,.035);
  font-size: 12px;
  font-weight: 750;
  transition: all .18s ease;
}

.app-logout-btn:hover,
.app-logout-btn:focus {
  color: #fff;
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.09);
}

.app-navbar-toggler {
  width: 42px;
  height: 40px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 10px;
  box-shadow: none !important;
}

.app-navbar-toggler:focus {
  box-shadow: 0 0 0 .18rem rgba(79,143,202,.18) !important;
}

.app-back-top {
  position: fixed;
  right: 14px !important;
  bottom: 18px !important;
  z-index: 9999;
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #dce3eb;
  border-radius: 12px !important;
  color: #41556f;
  background: rgba(255,255,255,.96);
  box-shadow: 0 7px 20px rgba(15,23,42,.12) !important;
}

.app-back-top:hover {
  color: #214d78;
  background: #fff;
  border-color: #c9d5e2;
}

.app-scroll-label {
  right: 13px !important;
  bottom: 63px !important;
  padding: 5px 8px !important;
  border: 1px solid #e1e6ec;
  border-radius: 8px !important;
  color: #657386 !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 5px 14px rgba(15,23,42,.08) !important;
  font-size: 9px !important;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .app-brand {
    margin-right: 12px;
  }
  .app-brand-subtitle {
    display: none;
  }
  .app-navbar .app-nav-menu .nav-link {
    gap: 5px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 12px;
  }
  .app-nav-account {
    margin-left: 8px !important;
  }
}

@media (max-width: 991.98px) {
  .app-navbar,
  .app-navbar-inner {
    min-height: 66px;
  }

  .app-brand {
    margin-right: 0;
    padding: 7px 0 !important;
  }

  .app-brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 11px;
  }

  .app-brand-letter {
    font-size: 20px;
  }

  .app-brand-name {
    font-size: 15px;
  }

  .app-brand-subtitle {
    font-size: 8px;
  }

  .app-navbar .navbar-collapse {
    margin: 0 -12px;
    padding: 10px 12px 14px;
    border-top: 1px solid rgba(255,255,255,.07);
    background: #111a29;
  }

  .app-nav-menu {
    align-items: stretch;
    gap: 4px;
  }

  .app-navbar .app-nav-menu .nav-link {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
  }

  .app-nav-account {
    gap: 8px;
    margin: 10px 0 0 !important;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.07);
  }

  .app-user-chip,
  .app-logout-btn {
    width: 100%;
    max-width: none;
  }

  .app-logout-btn {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .app-brand-subtitle {
    display: none;
  }

  .app-brand-name {
    font-size: 14px;
    letter-spacing: .035em;
  }
}


/* =========================================================
   REPORTS V16 — günlük / aylıq / cəmi hesabat göstəriciləri
   ========================================================= */
.reports-stats-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.reports-stat-pill {
    min-width: 122px;
    border-radius: 14px;
    padding: 9px 12px;
    background: rgba(255,255,255,.085);
}

.reports-stat-pill > i {
    font-size: 17px;
    color: #d8e8f7;
}

.reports-stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.reports-stat-text small {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.68);
    white-space: nowrap;
}

.reports-stat-text strong {
    margin-top: 2px;
    font-size: 18px;
    color: #fff;
    font-weight: 850;
}

@media (max-width: 767.98px) {
    .reports-stats-group {
        width: 100%;
        justify-content: flex-start;
    }
    .reports-stat-pill {
        flex: 1 1 118px;
        min-width: 0;
    }
    .reports-add-btn {
        width: 100%;
        justify-content: center;
    }
}