.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.spinner-border {
    width: 4rem; 
    height: 4rem;
    border-width: 0.3rem;
}

.custom-select2 +.select2.select2-container {
  width: 100% !important;
}

.custom-select2 +.select2.select2-container .select2-selection {
  border: 1px solid #ccc;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  height: 34px;
  outline: none !important;
  transition: all .15s ease-in-out;
}

.custom-select2 +.select2.select2-container .select2-selection .select2-selection__rendered {
  color: #333;
  line-height: 32px;
  padding-right: 33px;
}

.custom-select2 +.select2.select2-container .select2-selection .select2-selection__arrow {
  background: #f8f8f8;
  border-left: 1px solid #ccc;
  -webkit-border-radius: 0 3px 3px 0;
  -moz-border-radius: 0 3px 3px 0;
  border-radius: 0 3px 3px 0;
  height: 32px;
  width: 33px;
}

.custom-select2 +.select2.select2-container.select2-container--open .select2-selection.select2-selection--single {
  background: #f8f8f8;
}

.custom-select2 +.select2.select2-container.select2-container--open .select2-selection.select2-selection--single .select2-selection__arrow {
  -webkit-border-radius: 0 3px 0 0;
  -moz-border-radius: 0 3px 0 0;
  border-radius: 0 3px 0 0;
}

.custom-select2 +.select2.select2-container.select2-container--open .select2-selection.select2-selection--multiple {
  border: 1px solid #34495e;
}

.custom-select2 +.select2.select2-container .select2-selection--multiple {
  height: auto;
  min-height: 34px;
}

.custom-select2 +.select2.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
  margin-top: 0;
  height: 32px;
}

.custom-select2 +.select2.select2-container .select2-selection--multiple .select2-selection__rendered {
  display: block;
  padding: 0 4px;
  line-height: 29px;
}

.custom-select2 +.select2.select2-container .select2-selection--multiple .select2-selection__choice {
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  margin: 4px 4px 0 0;
  padding: 0 7px 0 29px;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  position: relative;
  color: black;
}

.custom-select2 +.select2.select2-container .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  width: 22px;
  margin: 0;
  text-align: center;
  color: #e74c3c;
  font-weight: bold;
  font-size: 16px;
}

.custom-select2 +.select2-container .select2-dropdown {
  background: transparent;
  border: none;
  margin-top: -5px;
}

.custom-select2 +.select2-container .select2-dropdown .select2-search {
  padding: 0;
}

.custom-select2 +.select2-container .select2-dropdown .select2-search input {
  outline: none !important;
  border: 1px solid #34495e !important;
  border-bottom: none !important;
  padding: 4px 6px !important;
}

.custom-select2 +.select2-container .select2-dropdown .select2-results {
  padding: 0;
}

.custom-select2 +.select2-container .select2-dropdown .select2-results ul {
  background: #fff;
  border: 1px solid #34495e;
}

.custom-select2 +.select2-container .select2-dropdown .select2-results ul .select2-results__option--highlighted[aria-selected] {
  background-color: #3498db;
}

.myaccordion {
    box-shadow: 0 0 1px rgba(0,0,0,0.1);
}
.myaccordion .card,
.myaccordion .card:last-child .card-header {
    border: none;
}
.myaccordion .card-header {
    border-bottom-color: #EDEFF0;
    background: transparent;
}
.myaccordion .fa-stack {
    font-size: 14px;
}
.myaccordion .btn {
    width: 100%;
    font-weight: bold;
    color: #298D9E;
    padding: 0;
}
.myaccordion .btn-link:hover,
.myaccordion .btn-link:focus {
    text-decoration: none;
}
.myaccordion li + li {
    margin-top: 10px;
}
.myaccordion .btn-link{
    font-size: 19px;
}
.select2-container{
    width: 100% !important;
}
.form-control{
    border: 1px solid #6c757d;
}
.select2-container .select2-selection--single{
    border: 1px solid #6c757d !important;
}
input[type="file"].form-control {
    padding: 3px !important;
}
.select2-container--default .select2-selection--multiple{
    border: 1px solid #6c757d !important;
}
.select2-container .select2-selection--multiple{
    min-height: unset !important;
    height: auto !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice{
    background: #f8f8f8 !important;
    color: black !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
    color: #e74c3c !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__display{
    padding-left: 10px !important;
    padding-right: 8px !important;
}
.alert-dismissible .close, .alert-dismissible .mailbox-attachment-close{
    top: -4px;
}
.main-sidebar .brand-link .brand-image{
    border-radius: unset !important;
}
.login-card-body .input-group .input-group-text, .register-card-body .input-group .input-group-text{
    border: 1px solid #6c757d !important;   
}
.form-control:focus{
    border: 1px solid #6c757d !important;
}
.nav-sidebar .nav-link>.right, .nav-sidebar .nav-link>p>.right{
    right: 0px;
}
.login-page, .register-page{
    background: #023247;
}
.datepicker-days{
    padding: 5px;
}
.datepicker td, .datepicker th{
    width: 32px !important;
}
.datepicker-dropdown{
    top: 424.547px !important;
}
.datepicker table tr td.today, .datepicker table tr td.today.disabled, .datepicker table tr td.today.disabled:hover, .datepicker table tr td.today:hover{
    background-color: #3E98A8 !important;
    background-image: -webkit-gradient(linear,0 0,0 100%,from(#3E98A8),to(#3E98A8)) !important;
    color: white !important;
}
.datepicker table tr td.active, .datepicker table tr td.active.disabled, .datepicker table tr td.active.disabled:hover, .datepicker table tr td.active:hover{
    background-color: #3E98A8 !important;
    background-image: linear-gradient(to bottom,#3E98A8,#3E98A8) !important;
    color: white !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__clear{
    margin-top: 0px !important;
}
.action-icon{
    font-size: 14px;
    color: rgb(173, 173, 173);
}
/* Base table cleanup */
.e-sign-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    font-family: 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
}

.e-sign-table thead th {
    background-color: #FFFF !important;
    font-weight: 500 !important;
    color: rgb(118, 118, 118) !important;
    border-bottom: 0px solid #ddd !important;
    padding: 12px !important;
}

.e-sign-table .title{
    font-weight: bold !important;
    color: black;
}

.e-sign-table .grey-color{
    color: rgb(118, 118, 118) !important;
}

.e-sign-table tbody td {
    padding: 14px 12px !important;
    vertical-align: middle !important;
}

/* Status dot */
.status-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-signed {
    background-color: #2ecc71;
}

.status-expired {
    background-color: #dc3545;
}

.expired-text {
    color: #dc3545;
}

.signed-text {
    color: #2ecc71;
}

.status-cc {
    background-color: #000;
}

/* Owner initials circle */
.owner-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #F9EFED;
    color: #d9534f;
    font-weight: 900;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

/* Hover effect */
.e-sign-table tbody tr:hover {
    background-color: #fefefe !important;
}

/* Dropdown styles */
.dropdown-toggle::after {
    display: none !important;
}

.dropdown-menu {
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
    border: none;
    min-width: 120px;
    left: -60px !important;
}

.dropdown-menu-lg{
    left: -176px !important;
}

.dropdown-item {
    font-size: 14px;
    padding: 8px 12px;
}

.dropdown-item i {
    margin-right: 8px;
}

/* Align the three dots to right */
.e-sign-table td:last-child {
    text-align: right !important;
}
.content-header{
    padding: 15px;
}
.doc-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 260px;
}
.status-dot.draft {
    background-color: #ccc;
}

.initials-circle {
    width: 32px;
    height: 32px;
    background-color: #fce8e6;
    color: #e74c3c;
    font-weight: 600;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
}

.text-truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recipient-popover-wrapper {
    position: relative;
}

.recipient-popover-box {
    position: absolute;
    top: 120%;
    left: 0;
    background-color: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    z-index: 999;
    width: 220px;
    border: 1px solid #eaeaea;
    display: none;
}

.clickable {
    cursor: pointer;
    user-select: none;
    font-size: 14px !important;
}
.document-title{
    margin-bottom: 5px;
}
.client-circle{
    background-color: #EFF8F3;
    color: #58B783;
}
.cancel-btn{
    background-color: rgba(118, 118, 118, 0.16) !important;
    color: rgb(71, 71, 71);
    font-weight: 700 !important;
    font-size: 15px !important;
}
.cancel-btn:hover,
.cancel-btn:active{
    background-color: rgba(118, 118, 118, 0.16) !important;
    color: rgb(24, 24, 24) !important;
}
.save-changes-btn{
    font-weight: 700 !important;
    font-size: 15px !important;
    background-color: rgb(36, 133, 103) !important;
    color: rgb(255, 255, 255) !important;
    border: 1px solid rgb(36, 133, 103) !important;
}
.save-changes-btn:hover,
.save-changes-btn:active{
    background-color: rgb(22, 80, 62) !important;
    color: rgb(255, 255, 255) !important;
}

.option-boxes {
  display: flex;
  gap: 20px;
}

.option-box {
  position: relative;
  width: 150px;
  height: 100px;
  border: 3px solid #ccc; /* default gray */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #888; /* default gray text */
  transition: all 0.2s ease;
}

.option-box input[type="checkbox"] {
  position: absolute;
  top: 8px;
  left: 8px;
  accent-color: #157347;
  height: 16px;
  width: 16px;
}

.option-box .underline {
  width: 50px;
  height: 2px;
  background: #888;
  margin: 4px auto 0;
}

.option-box input[type="checkbox"]:checked ~ .content {
  color: #000 !important;
}

.option-box input[type="checkbox"]:checked ~ .content .underline {
  background: #000 !important;
}

.option-box input[type="checkbox"]:checked ~ .content {
  color: #000 !important;
}

.option-box input[type="checkbox"]:checked ~ .content .draw-text,
.option-box input[type="checkbox"]:checked ~ .content .type-text,
.option-box input[type="checkbox"]:checked ~ .content .upload-text {
  color: #000 !important;
}

.option-box input[type="checkbox"]:checked ~ .content .underline {
  background: #000 !important;
}

.option-box input[type="checkbox"]:checked ~ .content {
  color: #000 !important;
}

.option-box input[type="checkbox"]:checked ~ * {
  border-color: #157347 !important;
}

/* Better: use :has() if supported */
.option-box:has(input[type="checkbox"]:checked) {
  border-color: #157347 !important;
}
.signature-checkbox {
  accent-color: #157347;
  height: 16px;
  width: 16px;
}
.signature-label{
    margin-top: 1px !important;
}
.signature-pad{
    height: 160px;
}
.invalid-feedback{
    font-size: 16px;
}
.template-tags{
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 2px;
    display: inline-block;
}
.recipient-card {
    border: 1px solid #ddd;
    border-left: 4px solid orange;
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.recipient-card .form-label {
    font-weight: bold;
}
.add-recipient-btn {
    background: #f8f9fa;
    border: none;
    padding: 10px;
    text-align: left;
    width: 100%;
    font-weight: 500;
}
.add-recipient-btn:hover {
    background: #e9ecef;
}
.remove-recipient {
    border: none;
    background: transparent;
    font-size: 18px;
    color: #6c757d;
    padding: 0 12px;
}
.e-sign-input{
    border-radius: 2px;
}

.custom-recipient-dropdown {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    background: #fff;
    z-index: 1050;
    left: 0px !important;
}
.recipient-option{
    cursor: pointer;
}
.recipient-option:hover {
    background: #f5f5f5;
}
.recipient-card {
    background: #fff;
    border-radius: 1px;
    position: relative;
}
.recipient-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.recipient-info {
    display: flex;
    align-items: center;
}
.recipient-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}
.delete-recipient {
    cursor: pointer;
    color: #999;
    font-size: 28px;
}
.delete-recipient:hover {
    color: red;
}
.font-weight{
    font-weight: bold;
}
.delete-recipient-card{
    cursor: pointer;
}
.gap-20{
    gap: 20px;  
}
.collapsible-content{
    border-top: 1px solid #ddcdcd;
}
.custom-tab {
    border: none !important;
    background: none;
    font-weight: 500;
    color: #333;
    position: relative;
    padding-bottom: 8px;
    padding-left: 0;
    padding-bottom: 15px !important;
}

.custom-tab.active {
    color: #000;
}

.custom-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background-color: #12836c; /* green underline */
    border-radius: 2px;
}

.nav-tabs .nav-item{
    margin-right: 20px !important;
}
.e-sign-table thead tr th{
    border-top: 0;
    font-size: 16px;
}
.custom-btn-group{
    position: absolute;
    right: 19px;
    top: 10px;
}
.btn-template {
  background-color: #218866;
  color: #fff;
  border: 1px solid #FFF;
}
.group-btn-icon{
    font-size: 13px;
}

.btn-template:hover,
.btn-template:focus {
  background-color: #18694e;
  border-color: #145c45;
  color: #FFF;
}

.btn-group .btn:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.btn-group .btn:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.btn-group .btn {
  border-right: none;
}

.btn-group .btn:last-child {
  border-left: 1px solid #1f7e5f;
}
.e-sign-modal .modal-content {
    max-width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}
.e-sign-modal .form-control {
    font-size: 15px;
    padding: 8px 10px;
}
.e-sign-modal .modal-footer .btn {
    padding: 6px 16px;
    font-weight: 500;
    font-size: 14px;
}
.e-sign-modal .modal-title{
    font-size: 17.8px;
}
.pending{
    background: rgb(118, 118, 118) !important;
}