/* ==========================================
   BRAND THEME — colors picked from logo_final.png / logo_new.png
   Orange rgb(244,115,33) / Green rgb(20,168,80)
   ========================================== */
:root {
  --brand-orange: #f47321;
  --brand-orange-dark: #c85a17;
  --brand-orange-light: #ff8c42;
  --brand-green: #14a850;
  --brand-green-dark: #0f8a41;
  --brand-green-light: #3fc172;
}

html,
body {
  font-family: "Poppins", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  -webkit-tap-highlight-color: transparent;
}

/* Avoid any accidental horizontal scroll on small screens */
html {
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
}

.form-control-user1 {
  /* font-size: .8rem; */
  border-radius: 10rem;
  padding: 3;
  height: 50px;
}

/*
*
* ==========================================
* CUSTOM UTIL CLASSES
* ==========================================
*
*/
.datepicker table tr td,
.datepicker table tr th {
  text-align: center;
  width: 35px;
  height: 35px;
  border-radius: 4px;
  border: none;
}

.table td {
  vertical-align: middle;
}

.round {
  border-radius: 50px;
}

.text-sm {
  font-size: 12px;
}

.img-size {
  width: 100px;
  height: auto;
}

.table thead th {
  vertical-align: middle;
}

.infocard {
  width: 100%;
  min-height: 100px;
  border-radius: 10px;
  color: #333;
  /* margin-bottom: 20px; */
  box-shadow: 0 4px 8px 0 rgba(237, 235, 240, 0.2),
    0 6px 20px 0 rgba(226, 224, 224, 0.19);
  position: relative;
  padding: 15px 20px;
  background-color: #fffefd;
  border: 1px solid var(--brand-orange);
}

.infocard h6 {
  font-size: 15px;
  font-weight: 400;
  text-transform: capitalize;
  color: #000000;
}

.infocard h4 {
  font-size: 28px;
  font-weight: 400;
}

.infocard .icon {
  /* background-color: #000; */
  font-size: 18px;
  border-radius: 50%;
  padding: 10px;
  margin-bottom: 10px;
  margin-top: 10px;
  color: #fff;
  display: inline-block;
}

.infocard .primary {
  background-image: linear-gradient(-20deg, #6e45e2 0%, #88d3ce 100%);
}

.infocard .secondary {
  background-image: linear-gradient(135deg, #e2b0ff 10%, #9f44d3 100%);
}

.infocard .danger {
  background-image: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);
}

.infocard .success {
  /*background-image: linear-gradient(-20deg, #00cdac 0%, #8ddad5 100%);*/
  background-image: linear-gradient(to top, #0ba360 0%, #3cba92 100%);
}

.infocard .info {
  background-image: linear-gradient(to top, #48c6ef 0%, #6f86d6 100%);
}

.infocard .warning {
  /*background-image: linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%);*/
  background-image: linear-gradient(109.1deg,
      rgba(181, 73, 91, 1) 7.1%,
      rgba(225, 107, 140, 1) 86.4%);
}

.infocard .light {
  background-image: linear-gradient(-20deg, #00cdac 0%, #8ddad5 100%);
}

#statuswise h6 {
  font-size: 13px;
  font-weight: 400;
  text-transform: capitalize;
  color: #000000;

}

#statuswise a:hover {
  text-decoration: none !important;
}

.smallcard {
  width: 100%;
  min-height: 70px;
  /* border-radius: 10px; */
  margin: 10px 5px;
  /* box-shadow: 0 4px 8px 0 rgba(212, 209, 209, 0.2), 0 6px 20px 0 rgba(219, 211, 211, 0.19); */
  position: relative;
  background: #f5f0fc;
  text-overflow: hidden;
  border: 1px solid #d2b1f5;
}

.smallcard .text {
  /* position: absolute; */
  font-size: 14px;
  color: #000;
  font-weight: 500;
  /* text-transform: uppercase; */
  color: #333;
  text-align: center;
  margin-bottom: 5px;
  padding: 10px 5px;
  background-color: #e5d9f2;
  border-bottom: 1px solid #d2b1f5;
}

.smallcard .count {
  /* position: absolute; */
  font-size: 22px;
  color: #000000;
  font-weight: 400;
  text-align: center;
  padding: 10px;
}

#complainttype a:hover {
  text-decoration: none !important;
}

@media (min-width: 768px) {
  .sidebar.toggled .nav-item .nav-link span {
    font-size: 0.7rem;
    display: block;
    text-transform: uppercase;
    font-weight: 400;
    color: chocolate;
  }

  /* .sidebar.toggled {
    overflow: visible;
    width: 4rem !important;
  } *

   .sidebar.toggled .nav-item .nav-link {
    text-align: center;
    padding: 15px 10px;
    width: 4rem;
  } */
  .sidebar.toggled .nav-item .nav-link:hover {
    background-color: var(--brand-orange-dark);
  }

  .sidebar-dark .nav-item .nav-link {
    color: #ffffff;
    font-size: 1.1rem;
  }

  .sidebar-dark .nav-item.active .nav-link {
    color: #fff;
    background-color: var(--brand-orange-dark);
  }

  .sidebar-dark .nav-item .nav-link:active,
  .sidebar-dark .nav-item .nav-link:focus,
  .sidebar-dark .nav-item .nav-link:hover {
    color: #fff;
    background-color: var(--brand-orange-dark);
  }

}



.font-bold {
  font-weight: 500;
}

.text-head {
  color: #000;
}

.text-gen {
  color: var(--brand-green);
}

.bg-gen {
  background-color: #f8f9fc;
}

.text-gen-size {
  font-size: 15px;
}

.text-black {
  color: #000;
}

.completed {
  color: #059212;
}

.recommended {
  color: var(--brand-orange);
}

.work_in_progress {
  color: #845ec2;
}

.hold {
  color: #018383;
}

.btn-bg {
  background-color: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}

/* .btn-bg:hover,
.btn-bg:focus,
.btn-bg:active {
  background-color: var(--brand-green-dark) !important;
  border-color: var(--brand-green-dark) !important;
  color: #fff;
} */

.page-item.active .page-link {
  background-color: #3c0753;
  border-color: #3c0753;
}

.page-link {
  color: #3c0753;
  padding: 5px 10px;
  font-size: 12px;
}

div.dataTables_wrapper div.dataTables_info {
  font-size: 12px;
  color: #000;
}

.display {
  height: 100vh;
  display: flex;
  align-items: center;
}

.bg-login {
  /* background-image: linear-gradient(to top, #a7a6cb 0%, #8989ba 52%, #8989ba 100%); */
  /* background-image: linear-gradient(to top, #505285 0%, #585e92 12%, #65689f 25%, #7474b0 37%, #7e7ebb 50%, #8389c7 62%, #9795d4 75%, #a2a1dc 87%, #b5aee4 100%); */
  background-image: linear-gradient(180deg, var(--brand-orange) 70%, var(--brand-green) 30%);
}

.login-btn {
  background-color: #494770;
}

.icons {
  position: relative;
}

.icons input {
  padding-left: 35px;
  padding-right: 35px;
  position: relative;
  /* text-indent: 20px; */
  width: 100%;
  display: inline-block;
  margin-bottom: 10px;
}

.icons .fa-user,
.icons .fa-lock {
  position: absolute;
  padding: 10px;
  /* min-width: 40px; */
  left: 0;
  top: 0;
  color: var(--brand-green);
}

.icons .fa-eye {
  position: absolute;
  padding: 10px;
  /* min-width: 40px; */
  right: 0;
  top: 0;
  color: #3c0753;
}

.form-control {
  color: #333 !important;
  ;
  font-weight: 400;
  font-size: 0.8rem;
}

label {
  color: #111;
  font-weight: 400;
  font-size: 10pt;
}

.required:after {
  content: " *";
  color: red;
}

.text-orange {
  color: var(--brand-orange);
}

.header {
  width: 100%;
  padding: 10px;
  background-color: var(--brand-orange);
  color: white;
  min-height: 30px;
  font-size: 16px;
  font-weight: 600;
  text-align-last: left;
}

.bg-orange {
  background-color: var(--brand-orange);
}

.form-control-file {
  font-size: 0.8rem;
  padding: 2px;
}

/* ==========================================================
   MOBILE RESPONSIVE LAYER (added for mobile-view UI update)
   Scope: layout/spacing/sizing only — no PHP/business logic
   touched anywhere. Brand colors sourced from logo_final.png
   (orange #F47321 / green #14A850).
   ========================================================== */

/* ---------- General / safe-area (PWA standalone) ---------- */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

* {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {

  #wrapper {
    overflow-x: hidden;
  }

  /* ---------- Topbar ---------- */
  .topbar {
    height: auto;
    min-height: 3.75rem;
    padding: 0.35rem 0.5rem;
    flex-wrap: nowrap;
  }

  .topbar img.img-fluid.w-75 {
    width: 55% !important;
    max-width: 160px;
  }

  .topbar #sidebarToggleTop {
    height: 2.25rem;
    width: 2.25rem;
    margin-right: 0.5rem !important;
    flex-shrink: 0;
  }

  .topbar .nav-item .nav-link {
    height: 3.75rem;
    padding: 0 0.5rem;
  }

  .topbar .topbar-divider {
    height: calc(3.75rem - 1.5rem);
    margin: auto 0.5rem;
  }

  .topbar .dropdown-list {
    position: fixed !important;
    top: 3.75rem !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    width: auto !important;
    max-width: none !important;
    max-height: 70vh;
    overflow-y: auto;
  }

  .topbar .dropdown-list .dropdown-item .text-truncate {
    max-width: 60vw;
  }

  /* Sidebar brand logo a bit tighter */
  .sidebar .sidebar-brand {
    height: 3.75rem;
    padding: 0.75rem 0.5rem;
  }

  .sidebar .sidebar-brand-icon img {
    width: 2rem !important;
    height: 2rem !important;
  }
}

@media (max-width: 767.98px) {

  /* ---------- Base spacing ---------- */
  .container-fluid,
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  h5.mb-3 {
    font-size: 1.05rem;
  }

  /* ---------- Sidebar (icon strip on mobile) ---------- */
  .sidebar .nav-item .nav-link {
    padding: 0.6rem 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar .nav-item .nav-link i {
    font-size: 1rem;
  }

  /* Settings collapse menu shouldn't overflow off-screen on small phones */
  .sidebar .nav-item .collapse {
    left: calc(4rem + 0.25rem);
    max-width: calc(100vw - 4.5rem);
  }

  .sidebar .nav-item .collapse .collapse-inner {
    min-width: 9rem;
    max-width: calc(100vw - 4.5rem);
  }

  .sidebar .nav-item .collapse .collapse-inner .collapse-item {
    white-space: normal;
    font-size: 0.85rem;
  }

  /* ---------- Cards / Stat cards ---------- */
  .card-body {
    padding: 1rem;
  }

  .infocard {
    padding: 12px 14px;
    min-height: 85px;
  }

  .infocard h4 {
    font-size: 22px;
  }

  .infocard h6 {
    font-size: 13px;
  }

  .infocard .icon {
    font-size: 15px;
    padding: 8px;
  }

  /* Dashboard stat cards: keep numbers/icons compact on 2-up mobile grid */
  .card.border-left-primary .h5,
  .card.border-left-success .h5,
  .card.border-left-warning .h5,
  .card.border-left-info .h5,
  .card.border-left-secondary .h5 {
    font-size: 1.05rem;
  }

  .card .text-xs {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .card-body .fa-2x {
    font-size: 1.4em;
  }

  .smallcard {
    min-height: 55px;
    margin: 6px 3px;
  }

  .smallcard .text {
    font-size: 12px;
    padding: 8px 4px;
  }

  .smallcard .count {
    font-size: 18px;
    padding: 6px;
  }

  /* ---------- Buttons: touch-friendly ---------- */
  .btn {
    min-height: 38px;
  }

  .btn-sm {
    min-height: 32px;
  }

  .btn-icon-split .icon,
  .btn-icon-split .text {
    padding: 0.3rem 0.55rem;
  }

  /* Button toolbars wrap nicely instead of overflowing */
  .btn-toolbar,
  .d-flex.justify-content-between.align-items-center {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  /* ---------- Forms ---------- */
  .form-control,
  .custom-select,
  select.form-control {
    font-size: 16px;
    /* prevents iOS auto-zoom on focus */
  }

  .form-control-user1 {
    height: 46px;
  }

  label {
    font-size: 9.5pt;
  }

  .icons input {
    padding-left: 32px;
    padding-right: 32px;
  }

  /* ---------- Tables ---------- */
  .table {
    font-size: 0.78rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
  }

  .table-sm th,
  .table-sm td {
    padding: 0.35rem;
  }

  /* DataTables controls: stack + full width on mobile */
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    text-align: left !important;
    float: none !important;
    width: 100%;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
  }

  .dataTables_wrapper .dataTables_filter input {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 0.25rem;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.25rem 0.5rem;
  }

  /* Bootstrap multiselect / select dropdowns: never overflow the viewport */
  .multiselect-container.dropdown-menu,
  .btn-group.bootstrap-select,
  .dropdown-menu {
    max-width: calc(100vw - 2rem);
  }

  .btn-group>.btn.dropdown-toggle,
  .multiselect.dropdown-toggle {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }

  /* ---------- Modals ---------- */
  .modal-dialog {
    margin: 0.5rem;
  }

  .modal-body {
    padding: 0.85rem;
  }

  /* ---------- Login page ---------- */
  body.bg-login {
    height: auto;
    min-height: 100vh;
  }

  .display {
    height: auto;
    min-height: 100vh;
    padding: 1.25rem 0;
  }

  .card.o-hidden .p-5 {
    padding: 1.75rem 1.25rem !important;
  }

  .card.o-hidden img.img-fluid {
    max-width: 200px;
    margin: 0 auto;
  }

  form.user .form-control-user,
  .form-control-user1 {
    padding: 1rem 0.9rem;
  }

  /* ---------- Footer ---------- */
  footer.sticky-footer {
    padding: 1rem 0;
  }

  footer.sticky-footer .copyright span {
    font-size: 0.7rem;
    display: block;
    text-align: center;
    line-height: 1.4;
  }

  /* ---------- Misc ---------- */
  .scroll-to-top {
    right: 0.65rem;
    bottom: 0.65rem;
    width: 2.35rem;
    height: 2.35rem;
    line-height: 38px;
  }

  .required:after {
    content: " *";
  }
}

@media (max-width: 575.98px) {

  .container-fluid,
  .container {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  /* Stat cards: keep icon + number readable in a 2-column grid */
  .card-body {
    padding: 0.85rem;
  }

  .card-body .col-auto .fa-2x,
  .card-body .fa-2x {
    font-size: 1.2em;
  }

  .infocard {
    min-height: 75px;
    padding: 10px 12px;
  }

  .infocard h4 {
    font-size: 19px;
  }

  .topbar img.img-fluid.w-75 {
    width: 100% !important;
    max-width: 130px;
  }

  .topbar .nav-item.dropdown .dropdown-toggle i.fa-lg {
    font-size: 1.05em;
  }

  h5.mb-3 {
    font-size: 0.95rem;
  }

  .badge-counter {
    font-size: 0.55rem;
  }

  /* Buttons stack full-width in tight groups on very small screens */
  .card-header.d-flex.justify-content-between {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .card-header h6 {
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  .topbar img.img-fluid.w-75 {
    width: 100% !important;
    max-width: 110px;
  }

  .infocard h4 {
    font-size: 17px;
  }

  .text-xs {
    font-size: 0.58rem !important;
  }
}

.border-left-warning,
.border-left-danger,
.border-left-primary,
.border-left-success,
.border-left-info,
.border-left-secondary {
  /* background: #fff8f4 !important; */
}
.table-bordered{
  border: 0 !important;
}