/* Staging 2025-03-08 */
/* Begin Customizations */

/* Breakpoints  <575, 576-991, 992-1199.98, 1200-1249, 1250 */

/* Fix zoom issue on landscape tablet, small laptops */

@media (min-width: 1200px) and (max-width: 1250px) {
 html {
  zoom: 77% !important;
 }
}

/* Global Styles */

* {
 font-size: 20px !important;
}

.autocomplete-list {
 position: absolute;
 top: 100%; /* Adjust this value to control the vertical position */
 left: 20px;
 z-index: 10;
 background-color: white;
 border: 1px solid #ccc;
 list-style-type: none;
 padding: 0;
 margin: 0;
}

.autocomplete-list li {
 padding: 5px 10px;
 cursor: pointer;
 background-color: #ede1a1 !important;
}

html {
 font-size: 20px !important;
 max-width: 100%;
 width: 100%;
 overflow-x: hidden;
 color: #111;
}

h1,
h2 {
 font-size: 32px !important;
 text-transform: uppercase;
 margin-bottom: 0px !important;
}

h3 {
 font-size: 22px !important;
 text-transform: uppercase;
 margin-bottom: 0px !important;
}

h4 {
 font-size: 30px !important;
 text-transform: uppercase;
 margin-bottom: 0px !important;
}

h5 {
 font-size: 17px !important;
 color: #e03215 !important;
}

.nav-link {
 padding: 0.3rem 1rem;
}

.ps20 {
 font-size: 30px !important;
}

.ps20H4 {
 font-size: 20px !important;
}

.lblMarkA {
 font-size: 20px !important;
}

.greyText {
 color: grey;
}

.text-danger,
h4.text-danger {
 color: #e03215 !important;
}

h5.alert-info {
 color: #000 !important;
 font-size: 20px !important;
}

.alert-info {
 background-color: #fff;
 border-color: #fff;
}

/* Full-page loading overlay */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.75);
}

/* Rotating circle spinner (right-panel PDF overlay) */
.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bootstrap 4.2+ spinner-border polyfill (Bootstrap 4.1.1 is missing it) */
@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.spinner-border {
    display: inline-block;
    vertical-align: text-bottom;
    border: .25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

/* Accessibility Outline */
*:focus {
    outline: 2px solid #f8a130 !important;
    outline-offset: 3px !important;
}

/* Login Page */

/* Hide old menu bar */
body > div:nth-child(1) > div > ul.nav.col.top0 {
 display: none;
}

/* left align fields */
#wrap.sd-login > div.clearfix.justify-content-center > div.col-sm-6.offset-sm-1 {
    margin-left: 0px !important;
}

/* login buttons */
#loginForm.form-signin button {
	margin-left: 0px !important;
	padding: 5px 24px !important;
}

/* login button spacing */
#loginForm.form-signin div.col-sm-4 {
 flex: 0 0 47%;
 max-width: 47%;
}

/* Dropdown menu */

.dropdown-menu.show {
 left: -130px !important;
 transform: translate3d(0px, 35px, 0px) !important;
}

/* Header Styles */

ul.thsubMenu {
 padding-left: 0px !important;
 padding-right: 0px !important;
}
ul.thsubMenu li {
 min-width: 125px !important;
}

.bg-secondary {
 background-image: linear-gradient(to right, #111111, #373737);
}

.navbar {
 background-image: linear-gradient(to right, #111111, #373737);
}

.navbar-brand {
 background-image: url("https://superdocs.com/cdn/shop/files/SuperDocs.png?v=1696899117&width=500");
 min-height: 50px;
 background-size: contain;
 background-repeat: no-repeat;
 margin-top: -45px;
 margin-left: 20px;
}

.navbar-brand > .img-fluid {
 display: none;
}

div.topHSD {
 background-color: #222222;
 background-image: linear-gradient(to right, #111111, #373737);
 min-height: 100px !important;
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 z-index: 1030;
 margin:0;
}

div.row.topHSD > div > a {
    background-image: url("https://superdocs.com/cdn/shop/files/SuperDocs.png?v=1696899117&width=500");
    min-height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 17px 0;
}

div.row.topHSD > div > a > div:first-of-type > img {
 display: none;
}

div.row.topHSD > div > a > div:last-of-type {
 display: none;
}

.nav-link.dropdown-toggle::after {
 display: none;
}

body > nav > div.col > form {
 font-size: 12px !important;
 color: #888 !important;
}

.adminTitle2 {
 color: #ede1a1 !important;
 font-style: italic;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 -webkit-transform-origin-x: center;
 max-width: 100%;
}

.adminTitle {
 color: #ffffff !important;
 white-space: nowrap;
}

/* Footer Styles */
body
 > footer
 > div
 > div.col-sm-2.col-2.offset-1.text-nowrap.text-muted.footbottom.ng-binding {
 margin-left: 0px !important;
}

/* Navigation Buttons */

li.nav-item > .btn-link {
 color: #fff !important;
 text-decoration: uppercase !important;
 border: 0px none #fff !important;
 margin-bottom: 10px;
}

li.nav-item > .btn-link:hover {
 text-decoration: underline !important;
}

/* Help Text */

img.mktIcon {
 height: 29px !important;
 width: 29px !important;
 filter: invert(0);
 cursor: pointer;
}

p.mt-1.text-danger {
 border: 1px solid #777;
 padding: 0px 35px;
 border-radius: 4px;
 cursor: pointer;
}

.mktTxt {
 color: #333 !important;
 font-weight: 100 !important;
 font-style: italic;
}

.mktHelp {
 color: #333 !important;
 font-weight: 100;
}

.mktHelp::before {
 white-space: pre;
}
.mktHelp::after {
 content: "\A";
 white-space: pre;
}

/* Spacing */

.top4h1 > div.container-fluid > div.row.no-gutters.mt-0 {
 margin-top: 0px !important;
}
.top4h1 > div.container-fluid > div.row.no-gutters.mt-0 > div.row.no-gutters {
 margin-top: 0px !important;
}
.top4h1 > div.container-fluid > div.row.no-gutters {
 margin-top: 8px !important;
}
.top4h1 > div > div.row > div > div:nth-child(1) {
 margin-top: 8px !important;
}
.top4h1 > div > div.row > div > div:nth-child(2) {
 margin-top: 8px !important;
}

/* UI Controls */

.form-control,
#searchJuri,
.specialSearch {
 background-color: #ede1a1 !important;
 border: 2px solid #f8a130 !important;
 border-radius: 4px !important;
 color: #111 !important;
}

.form-control:focus {
 box-shadow: 0 0 0 0.2rem rgba(240, 206, 208, 0.5) !important;
}

/* 1. Base styling (no appearance or layout changes) */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  zoom: 1 !important;
  cursor: pointer;

  /* match your other fields */
  background-color: #ede1a1 !important;
  border: 2px solid #f8a130 !important;
  border-radius: 4px !important;

  /* prep for the SVG tick */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 10px 10px;
}

/* 2. Focus state */
input[type="checkbox"]:focus {
  box-shadow: 0 0 0 0.2rem rgba(240, 206, 208, 0.5) !important;
}

/* 3. Checked state: fill + SVG tick */
input[type="checkbox"]:checked {
  background-color: rgba(10, 54, 143, 1) !important;
  border-color: rgba(10, 54, 143, 1) !important;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'>\
<path d='M1 5 L4 8 L9 1' stroke='%23fff' stroke-width='2' fill='none' \
stroke-linecap='round' stroke-linejoin='round'/>\
</svg>");
}

/* 4. (Optional) Indeterminate state: dash instead of tick */
input[type="checkbox"]:indeterminate {
  background-color: #f8a130 !important;
  border-color: #f8a130 !important;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='12' height='2'>\
<rect width='12' height='2' fill='%23fff'/>\
</svg>");
}

/* lighten everything and show “not‐allowed” cursor */
input[type="checkbox"]:disabled {
  opacity: 0.6 !important;
  cursor: default;
}

select {
 background-color: #f6f0d0 !important;
 text-transform: none;
 border: 0px solid #f8a130 !important;
 height: 45px;
 background-color: #ede1a1 !important;
 cursor: pointer;
}

select option:checked,
select option:hover,
select:focus option:checked,
.juriList:focus > option:checked,
select:not(:focus) option:checked {
 border: 0px none #ede1a1 !important;
}

select option:checked,
select option:hover,
select:focus option:checked,
.juriList:focus > option:checked,
select:not(:focus) option:checked {
 background-color: rgba(10, 54, 143, 1) !important;
 color: #ffffff !important;
 text-transform: none;
 border: 0px solid #f8a130 !important;
}

select[multiple]:focus option:checked,
select[multiple].juriList:focus option:checked {
 background-color: rgba(10, 54, 143, 1) !important;
}

button {
 border-radius: 5px;
}

.btn-primary {
 background-color: #0a368f !important;
 border-color: #0a368f !important;
 margin-bottom: 4px;
}

.btn {
 border-radius: 25px !important;
 padding: 8px 8px !important;
 font-size: 18px !important;
 min-width: 85px;
 line-height: 1em;
 z-index: 10;
 margin-bottom: 4px !important;
}

.btn-link {
 color: #0a368f !important;
 text-decoration: none !important;
 border: 2px solid #0a368f !important;
 border-radius: 25px !important;
 padding: 5px 24px !important;
}

/* Buttons in Lists */

/* Select */
.btn-success {
 background-color: #0a368f !important;
 border-color: #0a368f !important;
}

/* Delete */
.btn-danger {
 background-color: #70190b !important;
 border-color: #70190b !important;
}

/* Share */
.btn-info {
 color: #0a368f !important;
 text-decoration: none !important;
 border: 2px solid #0a368f !important;
 background-color: unset !important;
}

/* Tables */
.table-striped tbody tr {
 padding-right: 8px;
}

.table-striped tbody tr:nth-of-type(odd) {
 background-color: #f6f0d0;
}

.table-hover tbody tr:hover {
 background-color: #ede1a1;
}

/* DataTables auto-adds 'hover' + 'order-column' classes to the <table> element.
   Its CDN CSS then sets td.sorting_1 to a DARKER grey on hover (higher specificity
   than our tr-level rule above), producing a two-tone row. Override every td in
   the hovered row so the colour is uniform across the whole row. */
table.dataTable.table-hover tbody tr:hover > td {
    background-color: #ede1a1 !important;
}

/* Login, Edit(Rename) */

#userID,
#password {
 max-width: 400px !important;
}

#signin {
 padding: 5px 24px !important;
}

/* Modals */

#myCustomPackmodal input { max-width: 90% !important; }

#myCustomPackmodal > div > div > div.modal-body > div.row > div > div > label { padding-left: 35px; font-weight: 600; }

#myCustomPackmodal > div.modal-lg { max-width: 800px !important; }

#mymodalMsgYesNo > div.modal-lg { max-width: 700px !important; margin-top: 20px; box-shadow: 0 0px 100px rgba(0, 0, 0, 0.7); }

.modal .modal-header {
 background-color: #02adff !important;
}

.modal .modal-header > h5 {
 font-size: 26px !important;
 color: #111111 !important;
 text-transform: uppercase;
 font-weight: 700;
}

.modal .modal-header > button > span {
 font-size: 30px !important;
}

.radpdfFrame1 {
 height: 70vh !important;
}

/* Preview Modal */

#PdfWebControl1 {
 border-radius: 5px !important;
 height: 70vh !important;
}

/*

#previewModal > div > div > div.modal-header > h5 { font-size: 20px !important; color: #111111 !important; }
#previewModal > div > div > div.modal-header { background-color: #02ADFF !important; }
#previewModal > div > div > div.modal-header > button > span { font-size: 30px !important; }
*/

#PdfWebControl1 {
 border-radius: 5px !important;
}

/* New Cases List */

#casesListTbl thead th {
 white-space: nowrap;
}

/* Clickable name columns */
#casesListTbl tbody td[class*="csdesc-"],
#caseDocsTbl tbody td[class*="dcdesc-"],
#caseDocsTbl_IN tbody td[class*="dcdesc-"] {
    cursor: pointer;
}
#casesListTbl tbody td[class*="csdesc-"]:hover,
#caseDocsTbl tbody td[class*="dcdesc-"]:hover,
#caseDocsTbl_IN tbody td[class*="dcdesc-"]:hover {
    text-decoration: underline;
}

#casesListTbl > #ontable > tr > td {
 padding: 0.4rem !important;
}

#casesListTbl > #ontable > tr > td:last-of-type {
 padding: 0.4rem 0rem !important;
}

#casesListTbl > #ontable > h4.text-danger {
 color: black !important;
 margin-top: 120px !important;
}

/* Share Case */
/* Hide sharing for non-users
.cb_isClient {
 display: none;
} */
 
#casesListTbl.caseDocTable1 tbody tr:nth-of-type(odd) {
    background-color: unset !important;
}
.caseDocTable1 tbody tr {
 border-bottom: 2px solid #f6f0d0 !important;
}

/* Open Document */

#instancesListDB {
 min-width: 160px;
}

#caseDocInstancesPanel {
 height: 82vh !important;
}

#caseDocInstancesPanel
 > div
 > div
 > div
 > div
 > div.col-sm-1.col-md-1.col-lg-1 {
 white-space: nowrap !important;
}

.radpdfFrame {
 margin-bottom: 50px;
 height: 82vh !important;
}

#PdfWebControl1 {
 height: 100% !important;
 zoom: 100%;
 margin-bottom: 30px;
}

.contextmenu button {
 cursor: pointer;
}

.infobtnG,
.delbtnG {
 cursor: pointer;
}

#myshowcontact input {
 background-color: unset !important;
 border-left-color: #fff !important;
 border-right-color: #fff !important;
 border-top-color: #fff !important;
 border-bottom-color: #fff !important;
}

#myshowcontact input:focus {
 box-shadow: unset !important;
}

/* Documents List */

#tabs > li > a {
 color: #000 !important;
 cursor: pointer !important;
}

.nav-tabs {
 border-bottom: 2px solid #777;
}

.nav-tabs .nav-item {
 color: #000;
 margin-bottom: -3px;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
 color: #000;
 background-color: #fff;
 border-color: #777 #777 #fff;
 border-width: 2px;
}

div.top4h1
 > div.container-fluid.ng-scope
 > div:nth-child(4)
 > div.col-12.col-sm-12.mt-1
 > button {
 margin-top: 2px;
}

/* Actions column — let DataTables size it; just prevent icon-row wrapping */
/*#caseDocsTbl > thead > tr > th:last-of-type,
#caseDocsTbl tbody tr > td:last-of-type {
    white-space: nowrap;
}*/

.tableCustomPacket {
  /* ensure the table respects your widths */
  table-layout: auto; /* or fixed, depending on your overall layout needs */
  width: 100%;
}

.tableCustomPacket td:first-child {
  /* make the very first column take up half the table */
  width: 63%;
  max-width: 63%;
}

.tableCustomPacket td:not(:first-child) {
  /* remove any max-width constraint on the other columns */
  max-width: none;
  width: 88px;
  min-width: 88px;
}

/* Sign Request - Hide Feature 
#caseDocsTbl > #ontable > tr > td:last-of-type > div {
 display: none;
 text-align: left !important;
} */

/* Signature Status - Hide Column 
#caseDocsTbl > thead > tr > th:nth-child(7) {
 display: none;
}

#caseDocsTbl > #ontable > tr > td:nth-child(7) {
 display: none;
} */

body
 > div.container-fluid1.body-content
 > div.top4h1
 > div.container-fluid.ng-scope {
 margin-top: 0px !important;
}

/*#caseDocsTbl > thead > tr > th:nth-child(6) {
 max-width: 110px !important;
}

#caseDocsTbl > #ontable > tr > td:nth-child(6) {
 max-width: 110px !important;
}*/

/*#caseDocsTbl .form-check-input {
 left: 35px;
 top: -2px;
}

caseDocsTbl_IN .form-check-input {
 left: 35px;
 top: 0px;
}*/

#caseDocsTbl .mr-5 { max-width: 100px !important; }

/*@media (min-width: 1440px) {
 #caseDocsTbl > thead > tr > th:nth-child(6) {
  max-width: 270px;
 }

 #caseDocsTbl > #ontable > tr > td:nth-child(6) {
  max-width: 270px;
 }
}*/

/* Forms Library (Add Documents) */

div.sd-add-document input[type="checkbox"] { position: relative; top: 5px; }

body
 > div.container-fluid1.body-content
 > div.top4h1
 > div.container-fluid.ng-scope
 > div.row.no-gutters1
 > div.col-4.col-sm-4.mt-1 {
 font-weight: 700;
}

body
 > div.container-fluid1.body-content
 > div.top4h1
 > div.container-fluid.ng-scope
 > div.row.no-gutters1
 > div.col-6.col-sm-6.text-left.mt-1 {
 font-weight: 700;
}

.juriList > option {
 overflow-x: hidden;
}

#logoffBtn {
 margin-left: 0px !important;
 min-width: 0px !important;
 padding: 0px 0px !important;
 height: 25px;
 max-width: 25px;
 margin-right: 16px;
 border: white !important;
 background: white;
 filter: invert(1);
}

/* Scrollbars */

::-webkit-scrollbar {
 width: 16px;
 box-shadow: inset 0 0 2px white;
}

::-webkit-scrollbar-track {
 background: #f8f8ff;
 box-shadow: inset 0 0 2px #808088;
 border-radius: 4px;
}

::-webkit-scrollbar-thumb {
 background: #cbcbd4;
 box-shadow: inset 0 0 1px #808088;
 border-radius: 4px;
}

/* Reserve space so fixed footer does not overlap page content.
   margin-top offsets the fixed page header (div.topHSD) at each breakpoint. */
.top4h1 {
 margin-top: 110px;
 margin-bottom: 60px;
}

/* Fixed Bottom / Footer */

.fixed-bottom {
 min-height: 28px !important;
}

.fixed-bottom .alert {
    margin-bottom: 0px;
    padding: 9px;
}

.alert-secondary {
 color: #111;
 background-color: #ede1a1;
 border-color: #ede1a1;
}

.alert-secondary_f {
 color: #111;
 background-color: ghostwhite;
 border-color: #ede1a1;
 font-size: 8px;
}

.text-muted {
 color: #111 !important;
}

/* Screen Size Specific Styles */

@media (max-width: 575.98px) {
 html {
  zoom: 100% !important;
 }

 body {
  width: 100vw !important;
  overflow-x: hidden;
 }

 .topHSD {
  zoom: 100% !important;
  min-height: 120px;
 }

 .top4h1 { margin-top: 120px; }

 * {
  font-size: 14px !important;
 }

 .adminTitle {
  margin-left: 0px !important;
 }

 .adminTitle2 {
  margin-top: 15px;
  margin-bottom: 8px !important;
 }

 .whatevermenu {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
 }

 h1,
 h2,
 h3,
 h4 {
  font-size: 22px !important;
 }

 h3 {
  font-size: 16px !important;
 }

 h4 {
  font-size: 18px !important;
 }

 .btn {
  font-size: 14px !important;
 }

 .dropdown-menu.show {
  left: -118px !important;
 }

 .btn {
  border-radius: 25px !important;
  padding: 4px 4px !important;
  font-size: 14px !important;
  min-width: 65px;
  line-height: 1em;
 }

 /* New Cases List */

 #casesListTbl > #ontable > tr > td {
  padding: 4px !important;
 }

 #casesListTbl > #ontable > tr > td:last-of-type {
  padding: 0.4rem 0rem !important;
 }


 .juriList {
  max-height: 65vh;
 }

 #addTemplToDoc {
  margin-left: -80px;
 }

 .fixed-bottom {
  display: none;
 }

 /* Forms Library */

 div .mt-1 {
  min-width: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
 }

 .specialSearchJury {
  max-width: 80%;
 }

 .specialSearch {
  min-width: 90%;
 }

 #ontable > tr > td.col-sm-1 {
  max-width: 45% !important;
 }

 .col-sm-12 {
  padding: 0px !important;
 }

 /* Documents */

 body
  > div.container-fluid1.body-content
  > div.top4h1
  > div.container-fluid.ng-scope
  > div:nth-child(4)
  > div.col-12.col-sm-12.mt-1
  > button {
  right: 0px !important;
  margin-bottom: 0px !important;
  position: relative !important;
  margin-top: -30px;
 }

 #caseDocsTbl > thead > tr > th {
  height: unset !important;
  border: 0px;
 }

 #caseDocsTbl .col-md-1 {
  max-width: 45% !important;
  min-width: 45% !important;
  text-align: left !important;
 }

 #caseDocsTbl .col-md-2 {
  float: left !important;
 }

 #caseDocsTbl .form-check-input {
  left: 25px;
  top: -5px;
 }
 
 .tableCustomPacket td:first-child {
  /* make the very first column take up half the table */
  width: 95%;
  max-width: 100%;
 }

 .tableCustomPacket td:not(:first-child) {
  /* remove any max-width constraint on the other columns */
  max-width: none;
  width: 88px;
  min-width: 88px;
 }

 .tableCustomPacket th:not(:first-child) { display: none; }

 /* Document */
 div.row.clearfix {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
 }

 .col-4 {
  max-width: 100%;
 }

 div.col-md-4.col-lg-4.main {
  flex: unset !important;
  padding: 0px;
 }

 div.main .row {
  margin: 0px !important;
 }

 div.col-sm-12.col1-12.col-md-12 {
  margin-top: 20px;
  padding: 15px !important;
 }

 div.col-sm-12.col1-12.col-md-12 button {
  margin-bottom: 4px !important;
 }

 .radpdfFrame {
  margin-bottom: 50px;
  height: 80vh !important;
 }

 #PdfWebControl1 {
  height: 120% !important;
  zoom: 250%;
  margin-bottom: 30px;
 }
}

@media (max-width: 575.98px) {
 #loginForm > div:nth-child(3){
  margin-left: 0px !important;
  left: 0 !important;
  right: 0 !important;
 }
/* login button spacing */
#loginForm.form-signin div.col-sm-4 {
 flex: 0 0 37% !important;
 max-width: 37% !important;
}
 #wrap > div:nth-child(1) > div.signINCss1 {
  flex: 0 0 90% !important;
  max-width: 90% !important;
 }
 #wrap > div.row.clearfix.justify-content-center > div.col-sm-6.col-6.offset-sm-1.column{
  flex: 0 0 82% !important;
  max-width: 82% !important;  
 }
 ul.thsubMenu li {
  min-width: 10px !important;
  margin-left: 10px;
  margin-right: 10px;
 }
 
 #ontable > tr > td.col-sm-1 {
  max-width: 33.3% !important;
 }
}

@media (min-width: 576px) and (max-width: 767.98px) {
 html {
  zoom: 100% !important;
 }

 body {
  width: 100vw !important;
  overflow-x: hidden;
 }

 .topHSD {
  zoom: 100% !important;
  min-height: 120px;
 }

 .top4h1 { margin-top: 120px; }

 * {
  font-size: 14px !important;
 }

 h1,
 h2,
 h3,
 h4 {
  font-size: 22px !important;
 }

 .btn {
  font-size: 14px !important;
 }

 /*login form*/
 #loginForm.form-signin div.col-sm-4 {
  flex: 0 0 50% !important;
  max-width: 50% !important;
 }

 #ontable > tr > td:last-of-type {
  min-width: 100px;
  float: right;
  margin-right: 10px;
 }

 .juriList {
  max-height: 65vh;
 }

 #addTemplToDoc {
  margin-left: -80px;
 }
}

@media (min-width: 768px) and (max-width: 991.98px) {
 body {
  width: 100vw !important;
  overflow-x: hidden;
 }

 .topHSD {
  zoom: 70% !important;
  min-height: 85px !important;
 }

 /* Fixed header renders at ~60px (85px × 0.70 zoom) at this breakpoint */
 .top4h1 { margin-top: 62px; }

 * {
  font-size: 14px !important;
 }

 h1,
 h2,
 h3,
 h4 {
  font-size: 22px !important;
 }

 .btn {
  font-size: 14px !important;
 }

 /*login form*/
 #loginForm.form-signin div.col-sm-4 {
  flex: 0 0 50% !important;
  max-width: 50% !important;
 }

/* #ontable > tr > td:last-of-type {
  min-width: 100px;
  float: right;
  margin-right: 10px;
 }*/

 .juriList {
  max-height: 65vh;
 }

 #addTemplToDoc {
  margin-left: -80px;
 }
}

@media (min-width: 992px) and (max-width: 1280px) {

 * {
  font-size: 17px !important;
 }

 h1,
 h2,
 h3,
 h4 {
  font-size: 26px !important;
 }

 .btn {
  font-size: 17px !important;
 }

/* #ontable > tr > td:last-of-type {
  min-width: 100px;
  float: right;
  margin-right: 10px;
 }*/

 .juriList {
  max-height: 65vh;
 }

 #addTemplToDoc {
  margin-left: -80px;
 }
 

}

@media (max-width: 1080px) {
 .tableCustomPacket td:first-child {
  /* make the very first column take up half the table */
  width: 95%;
  max-width: 100%;
 }

 .tableCustomPacket td:not(:first-child) {
  /* remove any max-width constraint on the other columns */
  max-width: none;
  width: 88px;
  min-width: 88px;
 }
}

@media (min-width: 1280px) {
 #myModalManager #ontable > tr > td:nth-child(6) { white-space: nowrap; }

 #myModalManager > div.modal-lg { max-width: 1500px !important; }
 
 div.mycontactList div.col-5 { max-width: 220px !important; }
 div.mycontactList div.col-3 { max-width: 80px !important; }
 button.btn.btn-link.btn-block.text-left.col-4 { min-width: 350px !important; }
 
 #userInfo {
  background-color: #f8a130 !important;
  border: 6px solid #f8a130 !important;
  border-radius: 4px;
 }
}

/* Action icon style used in server-generated table rows */
.sd-icon {
 color: #0a368f;
 cursor: pointer;
}

/* DataTables sort arrows: the global * { font-size:20px } rule causes
   the pseudo-elements to inherit 20px, making .8em = 16px — far larger than
   DataTables' line-height:9px was designed for. The oversized characters
   overflow their line-height box and drift below the 50% anchor, so the
   arrows appear below the header text instead of beside it.
   Fix: pin both pseudo-elements to a small, self-consistent size. */
table.dataTable thead th::before,
table.dataTable thead th::after {
    font-size: 11px !important;
    line-height: 1 !important;
}
/* Keep a small gap between the ↑ and ↓ arrows */
table.dataTable thead th::after {
    margin-top: 2px;
}
.dataTables_wrapper{
    padding-top:10px;
}
/* DataTables pagination — grey theme, spacing, reduced font size */
.dataTables_wrapper .dataTables_paginate .pagination {
    gap: 4px;
}

.dataTables_wrapper .dataTables_paginate .page-item .page-link {
 color: #6c757d;
 background-color: #f8f9fa;
 border-color: #dee2e6;
 font-size: 0.8rem;
 padding: 0.3rem 0.6rem;
 border-radius: 4px;
}

.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
 color: #fff;
 background-color: #6c757d;
 border-color: #6c757d;
}

.dataTables_wrapper .dataTables_paginate .page-item .page-link:hover {
 color: #fff;
 background-color: #868e96;
 border-color: #868e96;
}

.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
 color: #adb5bd;
 background-color: #f8f9fa;
 border-color: #dee2e6;
}

/* DataTables page-length select */
.dataTables_wrapper .dataTables_length select {
 line-height: 20px;
}

/* DataTables search input width */
.dataTables_wrapper .dataTables_filter input {
    width: 400px !important;
    margin-right: 5px !important;
}

div.dataTables_wrapper div.dataTables_info {
    padding-top: .25em !important;
}

/* DataTables table light border */
.dataTables_wrapper table.dataTable {
 border: 1px solid #dee2e6 !important;
}

.dataTables_wrapper table.dataTable thead th,
.dataTables_wrapper table.dataTable tbody td {
 border-color: #dee2e6 !important;
}

/* Active case selection — icon colour + row highlight */
.sd-case-active {
 color: #28a745 !important;
}

/* DataTables stripe — clear the box-shadow overlay DataTables 1.13.x places on
   td cells (box-shadow: inset 0 0 0 9999px rgba(0,0,0,.05)) so transparent td
   cells let the tr background show through. All tables consolidated here. */
#caseDocsTbl td,
#caseDocsTbl_IN td,
#caseDocsTbl-P td,
#casesListTbl td,
#contactListTbl td {
    box-shadow: none !important;
}

/* Odd/even stripe at tr level — td is transparent, so tr color shows through. */
#caseDocsTbl tbody tr.odd,
#caseDocsTbl_IN tbody tr.odd,
#caseDocsTbl-P tbody tr.odd,
#casesListTbl tbody tr.odd,
#contactListTbl tbody tr.odd,
#templateListTable tbody tr.odd {
    background-color: #f6f0d0 !important;
}

#caseDocsTbl tbody tr.even,
#caseDocsTbl_IN tbody tr.even,
#caseDocsTbl-P tbody tr.even,
#casesListTbl tbody tr.even,
#contactListTbl tbody tr.even,
#templateListTable tbody tr.even {
    background-color: #ffffff !important;
}

/* Edit active — icon turns orange; row gets amber highlight.
   sd-row-active is on tr, same specificity as the stripe rules above but
   defined LAST so it always wins the cascade when a row is highlighted. */
.sd-doc-edit-active {
    color: #f8a130 !important;
}

#caseDocsTbl tbody tr.sd-row-active,
#caseDocsTbl_IN tbody tr.sd-row-active {
    background-color: #eaf6ec !important;
}

#casesListTbl tbody tr.sd-row-active {
    background-color: #eaf6ec !important;
}

#contactListTbl tbody tr.sd-row-active {
    background-color: #eaf6ec !important;
}

#contactListTbl {
    width: 100% !important;
}

/* Select2 — match Bootstrap 4 form-control height, colour, and border style */
.sd-contacts .select2-container .select2-selection--single {
    height: 38px;
    background-color: #ede1a1 !important;
    border: 2px solid #f8a130 !important;
    border-radius: 4px !important;
}
.sd-contacts .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 34px;
    color: #111 !important;
    padding-left: 10px;
}
.sd-contacts .select2-container .select2-selection--single .select2-selection__arrow {
    height: 34px;
}
.sd-contacts .select2-container--focus .select2-selection--single {
    box-shadow: 0 0 0 0.2rem rgba(240, 206, 208, 0.5) !important;
    border-color: #f8a130 !important;
}

/* Pill toggle — used on contactMerge filter */
.sd-pill-toggle {
    display: inline-flex;
    border: 2px solid #007bff;
    border-radius: 50px;
    overflow: hidden;
}
.sd-pill-toggle input[type="radio"] {
    display: none;
}
.sd-pill-toggle label {
    margin: 0;
    padding: 4px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    color: #007bff;
    background: #fff;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}
.sd-pill-toggle input[type="radio"]:checked + label {
    background: #007bff;
    color: #fff;
}
