/* Basic css reset */
   * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
   }

   :root {
      --orange:   #ff8f3f;
   }

   ::-webkit-scrollbar {
      width: 10px;
      height: 10px;
      background-color: #ffffff;
   }

   ::-webkit-scrollbar-track {
      border-radius: 3px;
      background-color: #f3f4f5;
   }

   ::-webkit-scrollbar-thumb {
      border-radius: 6px;
      background: var(--orange);
      background-clip: padding-box;
      border: 2.5px solid rgba(0, 0, 0, 0);
   }

   html, body {
      height: 100%;
      font-family: 'Mulish', sans-serif;
   }

   body {
      line-height: 1.5;
      font-optical-sizing: auto;
      -webkit-font-smoothing: antialiased;
   }

   img,svg {
      max-width: 100%;
      display: inline-block;
      vertical-align: bottom;
   }

   a {
      color: inherit;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
   }

   ul, ol {
      list-style: none;
   }

   button, input, textarea, select {
      border: none;
      outline: none;
      font-family: inherit;
   }

/* Alertbox */
   .alert-box {
      width: 100%;
      height: 60px;
      position: fixed;
      top: -60px; left: 0;
      z-index: 350;
      display: flex;
      align-items: center;
      justify-content: center;
   }
   .alert-box.success {
      background: #29bf12;
   }
   .alert-box.error {
      background: #f21b3f;
   }
   .alert-text {
      color: #ffffff;
   }

/* Forms */
   .form-field {
      position: relative;
      margin-bottom: 25px;
   }
   .form-field .input-label {
      top: 12px;
      left: 15px;
      color: #888;
      cursor: text;
      padding: 0 5px;
      font-size: 16px;
      background: white;
      position: absolute;
      border-radius: 5px;
   }
   .dropdown .input-label {
      top: -9px;
      font-size: 13px;
   }
   .form-field input,
   .form-field select {
      width: 100%;
      height: 50px;
      padding: 0 20px;
      font-size: 16px;
      font-weight: 500;
      border-radius: 10px;
      border: 1px solid #cbcbcb;
   }
   .file-input {
      opacity: 0;
      display: none;
      visibility: hidden;
   }
   .flatpickr-input[readonly] {
      background: white;
   }
   .file-field {
      height: 50px;
      display: flex;
      cursor: pointer;
      font-size: 15px;
      font-weight: 500;
      padding-left: 15px;
      border-radius: 10px;
      border: 1px solid #cbcbcb;
   }
   .file-field .file-name {
      font-weight: 400;
      overflow: hidden;
      line-height: 50px;
      white-space: nowrap;
      display: inline-block;
      text-overflow: ellipsis;
      width: calc(100% - 135px);
   }
   .file-field .file-button {
      width: 135px;
      height: 48px;
      padding: 15px;
      line-height: 18px;
      background: #efefef;
      border-radius: 0 9px 9px 0;
   }
   .file-field .file-button svg {
      margin-right: 10px;
      vertical-align: bottom;
   }
   .input-error {
      display: block;
      color: #ff6347;
      font-size: 12px;
      padding: 2px 8px;
   }
   .form-submit {
      width: 100%;
      height: 50px;
      color: white;
      cursor: pointer;
      font-size: 16px;
      font-weight: 500;
      border-radius: 10px;
      background: var(--orange);
   }
   .form-submit[disabled] {
      color: #666;
      cursor: not-allowed;
      background: #cecece;
   }

/* Tables */
   .data-result-count {
      color: #757575;
      font-size: 15px;
      font-weight: 600;
      padding-bottom: 10px;
   }
   .table-wrap {
      display: grid;
      overflow: hidden;
      background: white;
      border-radius: 4px;
      border: 1px solid #ffffff;
   }
   .table {
      width: 100%;
      overflow: auto;
      display: inline-grid;
   }
   .table-row {
      display: grid;
      border-bottom: 1px solid #eee;
   }
   .table-row:last-of-type {
      border-bottom: 0;
   }
   .table-row.unread {
      background: #e0fbe0;
   }
   .table-row.table-header {
      background: var(--orange);
   }
   .table-data {
      color: #1a181e;
      font-size: 15px;
      line-height: 20px;
      padding: 10px 20px;
      overflow-wrap: break-word;
   }
   .table-heading {
      color: white;
      font-size: 15px;
      font-weight: 600;
      line-height: 20px;
      padding: 12px 20px;
   }
   .table-action-wrap {
      display: flex;
      gap: 7px;
      flex-wrap: wrap;
   }
   .table-action-btn {
      color: #000000;
      padding: 4px 12px;
      border-radius: 5px;
      background: #ffffff;
      display: inline-block;
      box-shadow: inset 0 0 5px #808080;
   }
   .no-data-table {
      padding: 30px 0;
      font-weight: 600;
      text-align: center;
      border-radius: 15px;
      background: #ffffff;
   }
   .pagination-wrapper {
      padding: 15px 0;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
   }
   .pagination-wrapper .page {
      padding: 4px 10px;
      border-radius: 4px;
      display: inline-block;
      border: 1px solid transparent;
   }
   .pagination-wrapper .page:hover {
      border-color: #cbcbcb;
   }
   .pagination-wrapper .page.active {
      color: #ffffff;
      background: var(--orange);
      border-color: var(--orange);
   }

/* Data filter */
   .data-filter {
      padding: 15px 20px;
      max-width: 1200px;
      display: flex;
      gap: 15px;
      background: #f1f6fa;
      align-items: center;
      position: sticky; top: 60px;
      justify-content: space-between;
   }
   .filter-wrap {
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
   }
   .data-filter .filter-dropdown,
   .data-filter .add-new-btn {
      font-size: 15px;
      line-height: 20px;
      padding: 6px 10px;
      border-radius: 4px;
      background: #ffffff;
      display: inline-block;
      border: 1px solid #cbcbcb;
   }
   .data-filter .add-new-btn {
      border: 0;
      color: #ffffff;
      padding: 8px 10px;
      background: var(--orange);
   }
   #resetFilter {
      padding: 7px 0;
      font-size: 15px;
      font-weight: 500;
      color: var(--orange);
      text-decoration: underline;
   }
   .search-wrap {
      width: 250px;
   }
   .search-wrap .search-input {
      width: 100%;
      height: 38px;
      padding: 0 15px;
      font-size: 15px;
      border-radius: 4px;
      background: #ffffff;
      border: 1px solid #cbcbcb;
   }

/* Sidenav */
   .sidenav-container {
      top: 0;
      float: left;
      width: 270px;
      z-index: 10;
      position: sticky;
      display: inline-block;
   }

   .sidenav {
      width: 100%;
      background: white;
      box-shadow: 0 0 3px #cbcbcb;
      height: calc(var(--vh, 1vh) * 100);
   }

   .logo-container {
      padding: 20px;
   }

   .navlink-container {
      display: flex;
      gap: 10px;
      padding: 0 10px 20px;
      flex-direction: column;
   }

   .navlink {
      display: flex;
      color: #404040;
      padding: 8px 10px;
      border-radius: 5px;
      align-items: center;
      justify-content: space-between;
   }

   .navlink:hover {
      background: #f1f6fa;
   }

   .navlink.active {
      color: var(--orange);
   }

   .navlink-wrap {
      display: flex;
      gap: 10px;
      align-items: center;
   }

   .navlink-text {
      font-size: 16px;
      font-weight: 500;
   }

   .navlink-data-counter {
      height: 18px;
      padding: 0 4px;
      color: #ffffff;
      font-size: 13px;
      line-height: 18px;
      border-radius: 4px;
      background: var(--orange);
   }

/* Page body */
   .page-body {
      display: inline-block;
      width: calc(100% - 270px);
      max-width: 1200px;
   }
   .page-header {
      top: 0;
      height: 60px;
      display: flex;
      padding: 0 20px;
      position: sticky;
      align-items: center;
      background: #ffffff;
      box-shadow: 0 0 3px #cbcbcb;
      justify-content: space-between;
   }
   .page-title {
      font-size: 22px;
   }
   #menuToggle {
      display: none;
   }
   .page-content {
      padding: 20px;
      margin: 0 auto;
   }
   .overlay-container {
      width: 100%;
      display: flex;
      position: fixed;
      align-items: center;
      justify-content: center;
      background: rgb(0 0 0 / 40%);
      top: 0; left: 0; z-index: 300;
      height: calc(var(--vh, 1vh) * 100);
   }
   .overlay-modal {
      width: 94%;
      max-width: 520px;
      overflow-y: auto;
      background: white;
      border-radius: 12px;
      box-shadow: 0 0 8px #555;
      max-height: calc(var(--vh, 1vh) * 90);
   }
   .overlay-modal.file-viewer {
      max-width: 800px;
      overflow-y: hidden;
      height: calc(var(--vh, 1vh) * 80);
   }
   .file-viewer-close {
      left: 50%;
      bottom: 2.7%;
      color: #ffffff;
      cursor: pointer;
      padding: 3px 20px;
      position: absolute;
      border-radius: 15px;
      background: #353535;
      transform: translateX(-50%);
   }
   .overlay-modal-title {
      font-size: 18px;
      font-weight: 700;
      padding: 10px 5px;
      text-align: center;
      background: rgb(0 0 0 / 8%);
      border-radius: 10px 10px 0 0;
   }
   .overlay-modal-btn-wrap {
      display: flex;
      gap: 15px;
      padding: 15px;
   }
   .overlay-modal-btn {
      flex: 1;
      padding: 13px 8px;
      cursor: pointer;
      font-size: 15px;
      font-weight: 600;
      border-radius: 8px;
   }
   .overlay-modal-btn.cancel {
      color: #252525;
      background: #f3f4f5;
   }
   .overlay-modal-btn.submit {
      color: #ffffff;
      background: var(--orange);
   }
   .overlay-modal-btn[disabled] {
      color: #666;
      cursor: not-allowed;
      background: #cecece;
   }

/* Admin auth */
   .signin-container {
      display: flex;
      padding: 20px;
      overflow: auto;
      background: #ffffff;
      align-items: center;
      justify-content: center;
      height: calc(var(--vh, 1vh) * 100);
   }
   .signin-modal {
      width: 720px;
      display: flex;
      border-radius: 15px;
   }
   .logo-wrapper {
      display: flex;
      flex: 0 0 280px;
      align-items: center;
      border-right: 1px solid #cbcbcb;
   }
   .signin-wrapper {
      flex: 0 0 440px;
      padding-left: 80px;
   }
   .signin-title {
      font-weight: 700;
      text-align: center;
   }
   .signin-text {
      color: #959595;
      font-size: 15px;
      padding: 10px 0;
      text-align: center;
   }
   .signin-form .other-link-wrapper {
      font-size: 13px;
      text-align: center;
      margin-top: 20px;
   }
   .signin-form .other-link-wrapper a,
   .signin-form #otpCountdown {
      color: #999;
      line-height: 1.5;
   }
   .signin-form .other-link-wrapper a:hover {
      color: var(--theme);
   }

/* Overview page */
   .overview-card-wrap {
      display: grid;
      grid-gap: 20px;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   }

   .overview-card {
      padding: 40px 10px;
      background: white;
      border-radius: 10px;
   }

   .overview-card.card-1 {
      background: #00695c;
   }

   .overview-card.card-2 {
      background: #795548;
   }

   .overview-card.card-3 {
      background: #37474f;
   }

   .overview-card.card-4 {
      background: #00afc7;
   }

   .overview-card.card-5 {
      background: #3f51b5;
   }

   .overview-card.card-6 {
      background: #9e9d24;
   }

   .overview-card.card-7 {
      
      background: #d32f2f;
   }

   .overview-card__value {
      display: block;
      color: #ffffff;
      font-size: 32px;
      font-weight: 700;
      text-align: center;
   }

   .overview-card__heading {
      color: #ffffff;
      display: block;
      font-size: 17px;
      text-align: center;
   }

/* Requests page */
   .request-table .table-row {
      grid-template-columns: 160px 160px 240px 220px 220px 150px 180px 170px;
   }

/* Clients page */
   .client-name {
      text-transform: capitalize;
   }

   .client-table .table-row {
      grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1fr) minmax(160px, 1fr);
   }

/* Policy page */
   .policy-table .table-row {
      grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(160px, 1fr) minmax(160px, 1fr);
   }
   .policy-form-wrap {
      padding: 20px 15px;
      background: white;
      border-radius: 15px;
   }

/* Withdrawl page */
   .withdrawl-table .table-row {
      grid-template-columns: minmax(140px, 1fr) minmax(120px, 1fr) minmax(220px, 1fr) minmax(160px, 1fr) minmax(200px, 1fr) minmax(190px, 1fr);
   }

@media (max-width: 1020px) {
   #menuToggle {
      display: block;
   }
   .sidenav-container {
      width: 100%;
      display: none;
      position: fixed;
      background: rgb(0 0 0 / 50%);
   }
   .sidenav-container.active {
      display: block;
   }
   .sidenav {
      width: 80%;
      left: -300px;
      max-width: 290px;
      position: relative;
      transition: left 300ms ease;
   }
   .sidenav.open {
      left: 0;
   }
   .page-body {
      width: 100%;
   }
}

@media (max-width: 840px) {

/*Page body*/
   .page-content {
      padding: 15px 20px;
   }

/* Admin auth */
   .signin-modal {
      width: 100%;
      gap: 60px;
      max-width: 500px;
      flex-direction: column;
   }
   .logo-wrapper {
      border: 0;
      flex: initial;
      justify-content: center;
   }
   .signin-wrapper {
      padding: 0;
      flex: initial;
   }
}

@media (max-width: 600px) {
/* Data filter */
   .data-filter {
      flex-wrap: wrap;
      padding: 15px 15px;
   }
   .search-wrap {
      width: 100%;
   }

/* Page body */
   .page-header {
      padding: 0 15px;
   }
   .page-title {
      font-size: 20px;
   }
}