.mobile-select-all-container {
  display: none;
}


.grip {
  width: 20px;
  height: 15px;
  margin-top: -3px;
  margin-left: -5px;
  position: relative;
  z-index: 88;
  cursor: e-resize;
}


.grip:hover {
  background-position-x: -20px;
}


.JCLRLastGrip .grip {
  background-position-y: -18px;
  left: -2px;
}


.dragging .grip {
  background-position-x: -40px;
}


.sampleText {
  position: relative;
  width: 100%;
}


.dotted {
  background-image: url("../img/dotted.png");


  background-repeat: repeat-y;
}


input.check {}


#sample2Txt {
  float: right;
}


#casetable .table_head th,
.stickycasestable .tbale_head th {
  /* border-right: 1px solid #cccccc; */
  border-left: 1px solid #ccc;
  border-top: 1px solid #cccccc;
}


#casetable.fullscreen th {
  min-width: auto !important;
}


#casetable td,
.stickycasestable td {
  border-right: 1px solid #cccccc;
  border-left: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  /* padding-left: 3px !important;
  padding-right: 3px !important; */
  text-align: center;
}


.tableFixHead {
  border: 1px solid #ddd;
  overflow: auto;
  height: 1000px;
}


.tableFixHead thead tr th {
  position: sticky;
  top: 0;
  z-index: 1;
}


/* Just common table stuff. Really. */
#casetable {
  border-collapse: collapse;
}


th {
  background: #fcfdfd;
}


#fieldtable .table_head th {
  border-right: 1px solid #cccccc;
  border-left: 1px solid #ccc;
  border-top: 1px solid #cccccc;
}


#fieldtable td {
  border-right: 1px solid #cccccc;
  border-left: 1px solid #ccc;
  text-align: center;
}


#sc_table .table_head th {
  text-align: center;
  border-right: 1px solid #cccccc;
  border-left: 1px solid #ccc;
  border-top: 1px solid #cccccc;
}


#sc_table td {
  border-right: 1px solid #cccccc;
  border-left: 1px solid #ccc;
  text-align: center;
}


.showtodays {
  left: 80%;
}


.tablesearch_input {
  position: relative;
  top: 1px;
  height: 32px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
}


.newcaseform {
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;


  &:focus {
    border: none;
    outline: 1px solid #3a1c71 !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
      0 0 8px rgba(102, 175, 233, 0.6);
  }
}


.new-case-input {
  width: 100%;


}


.casedetailsform {
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}


.fileuploadform {
  width: 50%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}


.reportform {
  width: 19.5%;
  margin-right: 5px;
  padding: 6px 16px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}


.reportformonsearchpage {
  /* width: 12.5%; */
  /* margin-right: 5px; */
  padding: 6px 16px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  /* margin-bottom: 10px; */
}


.search_date_tf {
  width: 99%;
  height: 32px;
  padding: 6px 12px;
  margin-left: 4px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
  margin-top: 10px;
}


.bgimage {
  background: url(../img/partners.jpg) no-repeat;
  background-size: 100% 308px;
}


.formwidth {
  width: 25.333333%;
}


@media (min-width: 768px) {
  .formwidth {
    width: 25.33333333%;
  }
}


input[type="file"] {
  display: inline;
  width: 40%;
}


.uploadstatus {
  display: inline;
}


.dasboardlink {
  color: darkorange;
}


.clienttable,
.opcounciltable,
.feestable,
.casehistorydates,
.uploadtable,
#fees_section,
.advocates_table {
  width: 80%;
  margin-left: 8%;
}

m .uploadtable {
  margin-top: 2%;
}


.ui-datepicker {
  z-index: 99999 !important;
}


.ui-front {
  z-index: 99999 !important;
}


#indexlist {
  overflow: hidden;
  margin-bottom: 20px;
  border-bottom: 5px #333333 solid;
  padding-bottom: 20px;
}


#indexlist a {
  border-bottom: 1px #cccccc solid;
  padding: 5px 0px;
  text-decoration: none;
  display: block;
  color: #333333;
}


.sectionview {
  color: black;
}


#actcategory {
  width: 100%;
  overflow: hidden;
  margin: 2px auto;
  padding: 10px;
}


#actcategory a {
  padding: 11px 10px;
  color: #ffffff;
  text-decoration: none;
  background-color: #3e88b5;
  font-size: 13px;
  text-align: center;
  margin-bottom: 8px;
  border-radius: 5px;
  margin-right: 12px;
  width: 46%;
  display: inline-block;
}


#actcategory a:hover {
  background-color: #333333;
  text-decoration: none;
  color: #ffffff;
}


.law_category {
  text-transform: uppercase;
}


.back-to-top {
  background: none;
  margin: 0;
  position: fixed;
  bottom: 0;
  right: 0;
  width: 70px;
  height: 70px;
  z-index: 100;
  display: none;
  text-decoration: none;
}


.back-to-top i {
  font-size: 60px;
}


#category_actspage {
  width: 100%;
  overflow: hidden;
  margin: 2px auto;
  padding: 10px;
}


#category_actspage a {
  padding: 11px 10px;
  color: #ffffff;
  text-decoration: none;
  background-color: #3e88b5;
  font-size: 13px;
  text-align: center;
  margin-bottom: 8px;
  border-radius: 5px;
  margin-right: 12px;
  width: 46%;
  display: inline-block;
}


#category_actspage a:hover {
  background-color: #333333;
  text-decoration: none;
  color: #ffffff;
}


#printTable {
  margin-left: 1%;
}


.casefilterform {
  width: 200%;
  height: 30px;
  font-size: 12px;
  line-height: 0.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
}


.associate_client_modal_body {
  height: 80vh;
  overflow-y: auto;
}


.sms-modal-body,
.whatsapp-modal-body {
  margin-left: 4%;
}


.search_date_tf_in_client_association,
.search_client_tf,
.search_user_tf {
  height: 32px;
  padding: 6px 12px;
  margin-left: 4px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}


#barcodetable {
  /* display: block; */
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 1100px;
  border: none;
}


#barcodetable thead th,
#barcodetable tbody tr td {
  border: 1px solid #d3d3d3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  vertical-align: middle;
  padding: 10px 8px;
}

#barcodetable thead th:nth-child(1)  { width: 9%; }  /* Court */
#barcodetable thead th:nth-child(2)  { width: 7%; }  /* State */
#barcodetable thead th:nth-child(3)  { width: 8%; }  /* District */
#barcodetable thead th:nth-child(4)  { width: 10%; } /* Court Complex */
#barcodetable thead th:nth-child(5)  { width: 9%; }  /* Establishment */
#barcodetable thead th:nth-child(6)  { width: 10%; } /* Advocate Name */
#barcodetable thead th:nth-child(7)  { width: 6%; }  /* State Code */
#barcodetable thead th:nth-child(8)  { width: 6%; }  /* Bar Code */
#barcodetable thead th:nth-child(9)  { width: 5%; }  /* Year */
#barcodetable thead th:nth-child(10) { width: 10%; } /* Last Sync */
#barcodetable thead th:nth-child(11) { width: 8%; }  /* Status */
#barcodetable thead th:nth-child(12) { width: 12%; } /* Action */


@media screen and (max-width: 1200px) {
  #barcodetable {
    min-width: unset;
    margin-top: 0px;
    table-layout: unset;
  }

  #barcodetable thead th {
    width: auto !important;
  }
}


#clients_list,
#users_list {
  height: 21px;
}


/* new cases table styles */


.stickycasestable {
  border-collapse: separate !important;
  border-spacing: 0;
  width: max-content;
  max-width: max-content;
}


.stickycasestable th,
.stickycasestable td {
  white-space: nowrap;
  padding: 0px 12px;
  /* border: 1px solid #ddd; */
  background: #fff;
  border-color: #e9e9e9;
  align-content: center;
}


.stickycasestable th {
  padding: 8px 12px;
}


.stickycasestable thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff !important;
  font-weight: 500;
  font-size: 13px;
}


.tableFixHead .JCLRgrips {
  display: none;
}


.stickycasestable th#checkbox_th,
.stickycasestable td:first-child {
  position: sticky;
  left: 0;
  z-index: 9;
  background: #fff;
}


.stickycasestable th#checkbox_th {
  /* max-width: 50px !important; */
  min-width: unset !important;
  border-right: none !important;
  padding: 5px 8px;
  padding-left: 20px !important;
  text-align: end;
}


.stickycasestable th#caseno_th,
.stickycasestable td:nth-child(14) {
  position: sticky;
  left: 80px;
  z-index: 9;
  background: #fff;
  box-shadow: 4px 0 6px -4px rgba(0, 0, 0, 0.15);
  border-left: none;
  padding-left: 0 !important;
  white-space: nowrap;
}


.stickycasestable .anchor {
  /*color: #6c22ff !important;*/
  font-weight: 600;


  &:hover {
    text-decoration: underline;
  }
}


.stickycasestable td:nth-child(14) {
  border-left: none !important;
  text-align: start;
  padding-left: 0 !important;
  /* overflow: visible !important; */
  border-right: 1px solid #ddd;
  background-color: #ffffff !important;
}


.stickycasestable .checkcase {
  position: sticky;
  left: 0px;
  z-index: 9;
  background: #fff;
  box-shadow: 4px 0 6px -4px rgba(0, 0, 0, 0.15);
  border-right: none !important;
  text-align: end;
  padding-right: 8px !important;
  padding-left: 20px !important;
  padding-top: 0px;
  padding-bottom: 0px;
}


.stickycasestable .checkcase input {
  /* margin: 2px auto; */
  margin-top: 12px;
}


.stickycasestable td.editing,
.stickycasestable td:has(.editable-input) {
  z-index: 9999 !important;
  /* overflow: visible !important; */
}


.stickycasestable {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.stickycasestable thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}


.tableFixHead {
  /* overflow: auto; */
  /* height: 600px; */
}


/* Resizable column styles */
.resizable-column {
  position: relative;
}


.column-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  z-index: 10;
  background: transparent;
  border-right: 2px solid transparent;
  transition: border-color 0.2s ease;
}


.column-resizer:hover {
  border-right-color: #007bff;
  background: rgba(0, 123, 255, 0.1);
}


.column-resizer.resizing {
  border-right-color: #007bff;
  background: rgba(0, 123, 255, 0.2);
}


.checkcase {
  text-align: center;
}


/* Table container */
.table-container {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


/* Control buttons */
.stickycasestable {
  table-layout: fixed !important;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}


.stickycasestable .table_head th {
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-right: 1px solid #ddd;
}


.stickycasestable td {
  border-bottom: none !important;
}


.stickycasestable thead th,
.stickycasestable td a {
  position: relative;
  overflow: hidden;
  /*white-space: nowrap;*/
  text-overflow: ellipsis;
  box-sizing: border-box;
  min-width: 50px;
}


.stickycasestable tbody td {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-sizing: border-box;
  /*background-color: #fbf9ff !important;*/
  border-left: 0px !important;
  text-align: start !important;
}


/* Column resizer styling */
.column-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  cursor: col-resize;
  background: transparent;
  z-index: 10;
  user-select: none;
}


.column-resizer:hover {
  background-color: rgba(0, 123, 255, 0.3);
}


.column-resizer.resizing {
  background-color: rgba(0, 123, 255, 0.5);
}


/* Prevent text selection during resize */
.resizing-mode {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}


/* Status indicator for resize feedback */
#resizeStatus {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 1000;
  display: none;
}


#casetable.stickycasestable td:nth-child(14) {
  padding-left: 0 !important;
  text-align: start;
  background: #fff !important;
}


#casetable.stickycasestable tbody td,
.stickycasestable tbody td {
  padding-left: 12px !important;
}


#casetable.stickycasestable .checkcase,
.stickycasestable .checkcase {
  text-align: end !important;
  background: #fff !important;
}


#casetable.stickycasestable tbody>tr>td,
.stickycasestable tbody>tr>td {
  line-height: 1 !important;
}


/* end of styles cases table */


.report-input-fields-container {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(auto, 1fr));
  align-items: center;
}


#casecreatebtn {
  max-width: 130px;
  width: 100%;
  font-size: 12px;
}


.ratio-section {
  margin-bottom: 20px;
  background: #f0eef2;
}


input[type='radio'] {
  accent-color: var(--primary-btn);
}


.ratio-section .col-sm-10 {
  float: none;
}

.client-table-action-buttons-wrapper {
  display: flex;
  padding: 0 8px;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

#myModal_fetch_case_from_case_no input,
#myModal_fetch_case_from_case_no select {
  margin-bottom: 20px !important;
}


@media screen and (max-width: 1500px) {
  .report-input-fields-container {
    grid-template-columns: repeat(5, minmax(auto, 1fr));
  }
}


@media screen and (max-width: 1300px) {
  .report-input-fields-container {
    grid-template-columns: repeat(4, minmax(auto, 1fr));
  }
}


@media screen and (max-width: 991px) {
  .report-input-fields-container {
    grid-template-columns: repeat(3, minmax(auto, 1fr));
  }
}


@media screen and (max-width: 767px) {
  .report-input-fields-container {
    grid-template-columns: repeat(2, minmax(auto, 1fr));
  }
}


@media screen and (max-width: 390px) {
  .report-input-fields-container {
    grid-template-columns: repeat(1, minmax(auto, 1fr));
  }
}


@media screen and (max-width:991px) {
  .formwidth {
    width: 100%;
  }


  #casecreatebtn {
    margin: 0 auto;
    display: flex;
  }


  .fetch-cases-wpr {
    margin-bottom: 20px;
  }


}


@media screen and (max-width:768px) {


  #myModal_fetch_case_from_case_no input,
  #myModal_fetch_case_from_case_no select {
    margin-bottom: 0px !important;
  }
}


@media screen and (max-width: 768px) {
  .mobile-responsive-cases {
    padding: 8px !important;
    margin-bottom: 0;
  }

  .court-details-home-table {
    padding: 10px;
  }

  .mobile-responsive-cases thead {
    display: none;
  }


  .client-table-action-buttons-wrapper {
    justify-content: flex-end;
  }

  .mobile-responsive-cases tbody tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    /* border-radius: 8px; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #fff;
    /* padding: 10px; */
  }


  .mobile-responsive-cases tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    /* padding: 8px 10px !important; */
    text-align: right !important;
    font-size: 14px;
    min-height: 40px;
  }


  .mobile-responsive-cases tbody td:last-child {
    border-bottom: none;
  }


  .mobile-responsive-cases tbody td::before {
    content: attr(data-label);
    font-weight: bold;
    /* text-transform: uppercase; */
    font-size: 12px;
    color: #555;
    text-align: left;
    margin-right: 15px;
    flex: 1;
    max-width: 40%;
  }


  .mobile-responsive-cases td.checkcase {
    align-items: start;
    display: flex;
    flex-direction: column;
    border-top: 0;
  }


  .mobile-responsive-cases td.checkcase::before {
    display: none;
  }


  .mobile-responsive-cases tbody td input,
  .mobile-responsive-cases tbody td select {
    width: auto;
    max-width: 100%;
  }


  .datepicker-wrapper {
    display: flex;
    justify-content: flex-end;
  }

  /* .stickycasestable,
  .stickycasestable th,
  .stickycasestable td {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  } */


  .tableFixHead {
    height: auto !important;
    overflow: visible !important;
  }


  .mobile-responsive-cases.JColResizer>tbody>tr>td {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .mobile-select-all-container {
    display: block !important;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-bottom: -1px;
    margin-top: 10px;
  }

  .mobile-select-all-container.reassign-hidden {
    display: none !important;
  }



  .mobile-select-all-container label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: bold;
    color: #333;
  }


  #casetable.mobile-stickycasestable tbody td,
  .mobile-stickycasestable tbody td,
  .mobile-responsive-cases tbody td {
    padding-right: 12px !important;
    padding-left: 12px !important;
    border-right: none !important;
    background-color: #fff !important;
    box-shadow: none;
  }

  #casetable.mobile-stickycasestable td:nth-child(14),
  #casetable.mobile-stickycasestable .checkcase,
  .mobile-responsive-cases td:nth-child(14),
  .mobile-responsive-cases .checkcase {
    padding-left: 12px !important;
    box-shadow: none;
  }


  /* .mobile-stickycasestable .checkcase input {
    margin: 0;
  } */
}

/* Brief Facts / Relevant Case Laws character counter (casemeta.js) */
.facts-laws-char-counter {
  margin: -6px 0 8px;
  text-align: right;
  font-size: 12px;
  color: #888;
}

.facts-laws-char-counter.over-limit {
  color: #c0392b;
  font-weight: 600;
}

textarea.facts-laws-over-limit {
  border-color: #c0392b;
}

.facts-laws-limit-error {
  display: inline-block;
  margin-left: 12px;
  color: #c0392b;
  font-weight: 600;
  vertical-align: middle;
}


/* Add Case form (templates/newcase.html): counters under the labels, links + status row */
.facts-laws-char-counter.nc-label-counter {
  display: block;
  margin: 2px 0 0;
  text-align: left;
  font-size: 11px;
  font-weight: 400;
}

#new_case_form .newcase-actions-row {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 8px;
  padding-top: 4px;
  padding-bottom: 4px;
}

#new_case_form .newcase-links {
  /* at least as wide as the left input column + the right label column (25.33% + 16.67%
     of the 83.33% row), so Decided/Abandoned line up with the right input column;
     grows instead of wrapping when the "selected"/"added" counts show */
  flex: 0 1 auto;
  min-width: 50.4%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  white-space: nowrap;
}

#new_case_form .newcase-links-sep {
  color: #bbb;
}

#new_case_form .client_selected_number,
#new_case_form .user_selected_number,
#new_case_form .opposite_council_added_number {
  color: #888;
  font-size: 12px;
}

#new_case_form .newcase-status {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 15px;
}

#new_case_form .newcase-status label {
  margin: 0;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

@media screen and (max-width: 991px) {
  #new_case_form .newcase-actions-row {
    margin-left: 0;
  }

  #new_case_form .newcase-links {
    flex-basis: 100%;
  }
}

/* Add Case > Fetch District & Taluka Court Case: case number suggestions over the modal */
.newcase-caseno-suggest {
  z-index: 100000 !important; /* above .modal (99999 in bootstrap.css) */
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
}
