
.card{
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.07), 0 2px 9px 0 rgba(3, 1, 14, 0.06);
}

.lable-text{
  color: #000;
  font-weight: bold;
}
  
.modal-center{
    padding: 6px;
}

.modal-content {
  border: initial;
  border-radius: 8px;
  background: #f8f9fb;
  z-index: 1000;
}

/*modal*/
.modal-title {
  display: inline-block;
}

.modal-right .modal-dialog {
  color: #fff;
  margin: 0 auto;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0 !important;
  height: 100%;
  max-width: 600px;
}
/*notification*/
.header.top .notifcation{
  position: relative;
  font-size: 25px;
  color: red;
}

.header.top .notifcation .nav-unread{
  top: 2px;
  right: -1px;
}
.header.top .notifcation .nav-unread.change_color{
  top: 2px;
  right: -1px;
  animation:change_color 3s infinite;
}


.header .nav-item .badge {
  position: relative!important;
  top: 0!important;
  right: -5px;
}


@keyframes change_color {
  from {background: #ffffff;}
  to {background: #cd201f;}
}

.news_announcement .modal-right .modal-dialog {
  max-width: 420px;
}

.news_announcement .modal-header{
  color: white;
  background: #4338ca;
  background: -webkit-linear-gradient(45deg, #4338ca, #6366f1) !important;
  background: -moz- oldlinear-gradient(45deg, #4338ca, #6366f1) !important;
  background: -o-linear-gradient(45deg, #4338ca, #6366f1) !important;
  background: linear-gradient(45deg, #4338ca, #6366f1) !important; 
}

.news_announcement .modal-content{
  height: 100vh;
}

.news_announcement .modal-content .modal-body{
  background: #f8f9fb;
  padding: 0.5rem;
}

.news_announcement .news-item .card{
  margin-bottom: 0.5rem;
}

.news_announcement  .news-item .card .card-header{
  min-height: 0.5rem;
  padding: 0.5rem 0.5rem;
}

.news_announcement  .news-item .card .desc>ul{
  padding-left: 5px;
}

.main-content{
  padding-top: 70px;
}


@keyframes lds-hourglass {
  0% {
    transform: rotate(0);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }
  50% {
    transform: rotate(900deg);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  100% {
    transform: rotate(1800deg);
  }
}


/*tabs-list*/
.order-add .card, .order-add .card-header{
  padding: 0px;

}

.order-add form .form-group {
  margin-bottom: 5px;
}

.order-add label{
  margin-bottom: 2px;
}
.order-add form .form-actions {
  margin-top: 0px; 
}



.tabs-list .nav-tabs li>a{
  font-weight: 500;
  color: #fff;
  padding: 3px 8px;
  border: 0.1px solid #000;
  border-radius: 3px;
  text-decoration: none;
}

.tabs-list .nav-tabs li > a.active, .tabs-list .nav-tabs li> a:hover{
  font-weight: 600;
  color: #fff;
  padding: 5px 8px;
  background: #4f46e5;
  margin-left: 2px;
  
}

.tabs-list .tab-content{
  border-top: 2px solid #E6E9ED;
}

.mass_order_error .table{
  table-layout: fixed;
}

.mass_order_error .table tr td:first-child{
  text-overflow: ellipsis;
  overflow: hidden;
}

/*data-empty*/
.data-empty{
  position: relative;
  height: 100vh;
}

.data-empty .content{
  padding-top: 150px;
}

.data-empty .content .title{
  color: #9b9b9b;
  padding-top: 10px;
}
/*tickets*/
.ticket-lists .item{
  padding: 10px 0px;
  border-bottom: 1px solid #e6e9ed;
}

.ticket-lists .item .content{

}

.ticket-lists .item .content .subject{
  font-size: 16px !important;
  color: black;
}

.ticket-lists .item .content .email, .ticket-lists .item .content .time{
  color: #9da2a7;
}

.ticket-lists .item .subject{
  max-width: 550px;
  word-break: break-all;
  white-space: normal;
}

.ticket-lists .item .avatar-md {
  width: 40px;
}

.ticket-lists .item .avatar {
  position: relative;
  width: 40px;
  white-space: nowrap;
  border-radius: 1000px;
  vertical-align: bottom;
  display: inline-block;
}

.ticket-lists .item .avatar-md span.text-circle {
  width: 40px;
  height: 40px;
}

.ticket-lists .item .avatar span.text-circle{
  text-align: center;
  vertical-align: middle;
  color: #fff;
  font-size: 18px;
  background: #6366f1;
  display: table-cell;
}

.ticket-lists .item .avatar span.text-circle.closed{
  color: #fff;
  background: #9da2a7;
}

.ticket-lists .item .avatar span.text-circle.pending{
  color: #fff;
  background: #6366f1;
}

.rounded-circle {
  border-radius: 50%!important;
}

.ticket-lists .item:hover{
  background: #eceff1;
}

.ticket-lists .item{
  position: relative;
}

.ticket-lists .item .action{
  position: absolute;
  top: 0px;
  right: 0px;
}


/* ---------- Ticket thread (admin) ----------
   The same conversation the customer sees: their messages left in a plain card,
   support's right in a tinted one, both a fixed 70% so the thread reads as two tidy
   columns instead of a ragged staircase. Each card carries a small footer with who
   said it and when.
   (This replaces the old #frame/.messages block below, which used fixed 255/390px
   bubbles, absolutely positioned footers and avatar rules for images that are not in
   the markup. Those rules are left in place only because other views may still use
   the #frame markup.) */
.ticket-thread-admin {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
}
.tmsg {
  width: 70%;
  align-self: flex-start;
  /* no bottom padding — the footer strip supplies it, and overflow keeps that strip
     clipped to the card's rounded corners */
  padding: 11px 13px 0;
  overflow: hidden;
  border: 1px solid #e6e9f0;
  border-radius: 10px;
  background: #f7f8fa;
}
.tmsg-staff {
  align-self: flex-end;
  background: #eef3fb;
  border-color: #d4e1f4;
}
.tmsg-text {
  font-size: 14px;
  line-height: 1.55;
  color: #2f3542;
  word-break: break-word;
}
/* the card's footer: who and when, as a strip along the bottom. The negative side
   margins pull it out to the card's own edges. */
.tmsg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 9px -13px 0;
  padding: 4px 13px;
  border-top: 1px solid #e6e9f0;
  background: rgba(0, 0, 0, .035);
  font-size: 11px;
  line-height: 1.45;
  color: #7b8496;
}
.tmsg-foot b { font-weight: 700; letter-spacing: .3px; color: #2f3542; }
.tmsg-staff .tmsg-foot { border-top-color: #d4e1f4; }
.tmsg-staff .tmsg-foot b { color: #2456a6; }
.tmsg-del { color: #b5525f; }
.tmsg-del:hover { color: #8f2f3c; }

/* The reply form sits in the same card as the thread, so it needs the line that
   separates it from the conversation — the customer's page has the same one.
   The form is a .card-body, whose 1.5rem padding left a bigger gap under the line
   than the thread's 18px leaves above it; matching them makes the line sit centred. */
.ticket-thread-admin + form {
  border-top: 1px solid #e6e9f0;
  padding-top: 18px;
}

@media (max-width: 735px) {
  /* a little wider on a phone — 70% of a narrow screen leaves too little room for
     the text, but the gap on the other side still shows which way a message goes */
  .tmsg { width: 86%; }
}

/*ticket-contents*/
#frame .content {
  height: 100%;
  overflow: hidden;
  position: relative;
}

#frame .content .messages {
  height: auto;
  min-height: calc(100% - 93px);
  max-height: calc(100% - 93px);
}
@media screen and (max-width: 735px) {
  #frame .content .messages {
    max-height: calc(100% - 105px);
  }
}
#frame .content .messages::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}
#frame .content .messages::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
}
#frame .content .messages ul li {
  display: inline-block;
  clear: both;
  margin: 15px 15px 15px 15px;
  width: calc(100% - 25px);
  font-size: 0.9em;
}
#frame .content .messages ul li:nth-last-child(1) {
  margin-bottom: 20px;
}
#frame .content .messages ul li.sent img {
  margin: 0px 8px 0 0;
}
#frame .content .messages ul li.sent .msg-content {
  background: #f0f2f7;
}

#frame .content .messages ul li.replies img {
  float: right;
  margin: 0px 0 0 8px;
}

#frame .content .messages ul li.replies .message{
  float: right;
}

#frame .content .messages ul li.replies .msg-content {
  color: #fff;
  background: -moz-linear-gradient(135deg, rgb(67, 56, 202), rgb(99, 102, 241));
  background: -o-linear-gradient(135deg, rgb(67, 56, 202), rgb(99, 102, 241));
  background: linear-gradient(135deg, rgb(67, 56, 202), rgb(99, 102, 241));
}

#frame .content .messages ul li.sent .message .msg-footer{
  position: absolute;
  left: 90px;
}

#frame .content .messages ul li.replies .message .msg-footer{
  position: absolute;
  right: 70px;
}

#frame .content .messages ul li img {
  width: 50px;
  border-radius: 50%;
  float: left;
}
#frame .content .messages ul li .msg-content {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 10px;
  max-width: 255px;
  min-width: 255px;
  line-height: 130%;
}

@media screen and (min-width: 735px) {
  #frame .content .messages ul li .msg-content {
    max-width: 390px;
    min-width: 390px;
  }
}


.ticket-contents .item{
  padding: 10px 0px;
  border-bottom: 1px solid #e6e9ed;
}

.ticket-contents .item .content{
  line-height: 15px;
  display: table-cell;
  vertical-align: top;
}

.ticket-contents .item .avatar-md {
  width: 40px;
}

.ticket-contents .item .avatar {
  position: relative;
  width: 40px;
  white-space: nowrap;
  border-radius: 1000px;
  vertical-align: bottom;
  display: inline-block;
}

.ticket-contents .item .avatar-md span.text-circle {
  width: 40px;
  height: 40px;
}

.ticket-contents .item .avatar span.text-circle{
  text-align: center;
  vertical-align: middle;
  color: #fff;
  font-size: 15px;
  background: #6366f1;
  display: table-cell;
}

.ticket-contents .item .avatar span.text-circle.admin{
  background: #4f46e5;
}

.ticket-contents .item .content .username{
  font-size: 15px;
  color: black;
  display: inline-block;
}

.ticket-contents .item .content .username .time{
  font-size: 11px;
  color: #adadad;
}

.ticket-contents .item .content .message{
  font-size: 14px;
  color: #565d67;
}

@media (max-width: 720px){
  .ticket-lists .item .subject{
    max-width: 160px;
    white-space: normal;
  }
}

/*btn*/

.btn-sm {
  padding: 4px 8px  !important;
  font-size: .875rem  !important;
  line-height: 1  !important;
  border-radius: .21rem  !important;
}

.round {
  border-radius: 1.5rem !important;
}

.btn-group>.btn-group:not(:last-child)>.btn, .btn-group>.btn:not(:last-child):not(.dropdown-toggle) {
  border-top-right-radius: 0!important;
  border-bottom-right-radius: 0!important;
}

.btn-group>.btn-group:not(:first-child)>.btn, .btn-group>.btn:not(:first-child) {
  border-top-left-radius: 0!important;
  border-bottom-left-radius: 0!important;
}

.dropdown-menu {
  padding: 0px !important;
  min-width: 150px;
}

.btn-min-width {
  min-width: 8.5rem;
}


/*SETTING PAGE*/

.settings .sidebar{
  height: calc(100vh - 150px);
}

.settings .content{
  min-height: calc(10vh - 150px);
}

.settings .sidebar .item .title{
  font-size: 16px;
  font-weight: 600;
  line-height: 32px;
}

.settings .sidebar .item li > a{
  color: #4f46e5;
  padding-left: 10px;
}

.settings .sidebar .item li.active > a,.settings .sidebar .item li:hover > a {
  color: #4f46e5;
  font-weight: 600;
}



.settings input[type=file] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  max-width: 40px;
  height: auto;
}





.c3-line {
stroke-width: 2px;
}



.bg-success-gradient{
  background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%) !important;
}

.bg-danger-gradient{
  background-image: linear-gradient(to right, #fa709a 0%, #fe8f40 100%) !important;
}

.bg-warning-gradient{
  background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%) !important;
}

.bg-info-gradient{
  background-image: linear-gradient(120deg, #89f7fe 0%, #66a6ff 100%) !important;
}

.bg-inverse-gradient{
  background-image: linear-gradient(to right, #434343 0%, black 100%) !important;
}

.table th, .text-wrap table th {
  text-transform: capitalize !important;
  font-size: 0.75rem  !important;
}

/*pagination*/
.pagination>li>a {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #4f46e5;
  background-color: #fff;
  border: 1px solid #ddd;
}

.news-annoucement .table td>ul{
  padding-left: 10px;
}

.modules-lists .module-item .product-price{
  font-size: 22px;
  font-weight: 600;
}
.modules-lists .module-item .product-name{
  font-size: 16px;
  font-weight: 600;
  max-width: 300px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

@media (max-width: 992px){
  .modules-lists .module-item .product-name{
    max-width: 230px;
  }
}

.card-options a:not(.btn) {
  margin-left: 0px; 
}
.card-options a:not(.btn):hover {
  text-decoration: none;
}

/*auth-login-form*/
.login-bg-image{
  height: 100vh;
  background: url(../images/bg-01.jpg) center center/cover;
  filter: blur(6px);
  -webkit-filter: blur(6px);
}

.auth-login-form {
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0, 0.4); /* Black w/opacity/see-through */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  position: fixed;
}

.auth-login-form .auth-form{
  width: 100%;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

/*Menu center*/
@media (max-width: 720px){
  .order_resume{
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ededed;
  }
}


.whatsapp-fix{
  width: 40px;
  height: 40px;
  background: #29AD37;
  border-radius: 20px;
  border: 2px solid #ccc;
  border-color: white;
}

.bell-fix{
  width: 35px;
  height: 35px;
  background: #4f46e5;
  border-radius: 20px;
  border: 2px solid #ccc;
  border-color: white;
}

    
.hs-responsive-embed-youtube {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}
.hs-responsive-embed-youtube iframe {
  position: absolute;
  width: 100%!important;
  height: 100%!important;
  border: 6px solid blue;
  border-radius: 6px;
}

.sht {
  color: black;
  background: #DAE0E5;
  border: 1px solid #e9ecef;
  padding: 0rem 1rem;
  border-radius: 3px;
}


.smal_card {
  width: 100%;
  margin-bottom: 10px;
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  border-radius: 7px;
  border: 0.5px solid #4f46e5;
  color: #fff;
  background: #061e2c;
}

.list-group-item-action {
  width: 100%;
  color: #000;
  padding: 0.10rem 0rem;
  text-align: inherit;
  font-weight: bold;
  margin-bottom: 2px;
  border-radius: 3px;
}

.list-group-item-action:hover, .list-group-item-action:focus {
  color: #fff;
  background-color: #4f46e5;
  font-weight: bold;
  box-shadow: 0 0 3px 1px rgba(79, 70, 229, 0.5);
}

.list-group-item-action:active,.list-group-item-action.active {
  color: #fff;
  background: #4f46e5;
  font-weight: bold;
}

.nav-tabs2 .link-text{
  color: #4f46e5;
}

	    
.starrating > input {display: none;}  /* Remove radio buttons */

.starrating > label:before { 
  content: "\f005"; /* Star */
  margin: 5px;
  font-size: 2em;
  font-family: FontAwesome;
  display: inline-block; 
}

.starrating > label {
  color: #fff; /* Start color when not clicked */
}

.starrating > input:checked ~ label { 
  color: #ffca08 ; } /* Set yellow color when star checked */

.starrating > input:hover ~ label {
  color: #ffca08 ;  } /* Set yellow color when star hover */


.card-header-reviews {
  padding: 1rem  1rem 0rem 1rem;
  margin-bottom: -0rem;
  background: none;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
}    

.card-footer-reviews {
  padding: 0rem  1rem 0.7rem 1rem;
  margin-bottom: -0rem;
  background: none;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
}

.card-reviews {
  margin-bottom: auto;
  margin-top: -0rem;
  margin-left: auto;
  margin-right: -.3rem;
  display: -ms-flexbox;
  display: flex;
  color: #fff;
  -ms-flex-item-align: center;
  align-self: center;
} 

.reviews-str{
  padding: 0rem  0rem 0rem 0rem;
}

.reviews-comnt{
  padding: 0.5rem  1rem 0.3rem 1rem;
}

.custom-switch-desc {
  margin-left: .5rem;
  color: #000;
  transition: .3s color;
}


.custom-switch-input:checked ~ .custom-switch-desc {
  display: none;
}

.checked {
  color: #ffca08; /* Start color when not clicked */
  font-size: 1.3em;
}

.nochecked {
  color: #ddd; /* Start color when not clicked */
  font-size: 1.3em;
}

.reviews-gmail{
  padding-left: 1rem;
}

  .order_btn_group .list-inline-item{
    margin-right: 0px!important;
  }
  .order_btn_group .list-inline-item a.btn{
    font-size: 0.9rem;
    font-weight: 400;
  }
  .btn-show-custom-mention{
    font-weight: 400px!important;
    font-size: 10px!important;
  }
  .nav-link .badge.badge-error-orders{
    position: relative;
    left: 5px;
  }
  .mmm{
    margin-bottom: 5px;
    width: 50%;
  }
  .nnn{
    margin-bottom: 5px;
  }

.copyNotification {
    position: absolute;
    padding: 10px;
    border-radius: 3px;
    background-color: rgba(79, 70, 229, 0.9); /* Background color with 80% opacity */
    color: black;
    display: none;
    z-index: 9999;
}

.copy_Order_IDBtn{
    color: #4f46e5;   
}

.single-line-text {
  white-space: nowrap;
}

.custom-switch {
    position: relative; /* To position spinner relative to the checkbox */
}

.loading-spinner {
    display: none;
    border: 2px solid #c7cff1;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    width: 19px;
    height: 19px;
    animation: spin 0.5s linear infinite;
    position: absolute;
    right: -25px; 
    top: 3%;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.status-green {
  margin-left: 10px;
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: green;
}

.status-red {
  margin-left: 10px;
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: red;
}


#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#page-loader .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* =========================================================
   SEARCHABLE DROPDOWN  (Select2 replacement)
   prefix: search-select
   ========================================================= */

/* poora component ka wrapper (asli <select> ke upar aata hai) */
.search-select-wrapper{
  position: relative;
  width: 100%;
}

/* jab upar khule (neeche jagah kam ho) */
.search-select-wrapper.opens-up .search-select-panel{
  top: auto;
  bottom: calc(100% + 5px);
}

/* band halat mein dikhne wala box (dikhta select jaisa hai) */
.search-select-control{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fcfcfe;
  color: #1a1d29;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* control ke andar selected value ka text */
.search-select-value{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-select-value i{                /* selected value ka icon */
  color: #4f46e5;
  margin-right: 4px;
}

/* right side ka neeche wala caret (arrow) */
.search-select-caret{
  color: #9aa3b2;
  flex: 0 0 auto;
  transition: transform .18s ease;
}

/* jab dropdown khula ho */
.search-select-wrapper.is-open .search-select-caret{ transform: rotate(180deg); }
.search-select-wrapper.is-open .search-select-control{
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

/* khulne wala panel (search + options) */
.search-select-panel{
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 20000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(20,24,40,.14);
  padding: 6px;
  display: none;
}
.search-select-wrapper.is-open .search-select-panel{ display: block; }

/* upar wala search input */
.search-select-input{
  width: 100%;
  height: 34px;
  padding: 0 10px;
  margin-bottom: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.search-select-input:focus{
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

/* options ki scrollable list */
.search-select-list{
  max-height: 280px;
  overflow-y: auto;
}

/* ek option row */
.search-select-option{
  display: flex;
  align-items: flex-start; /* icon top se align rahe */
  gap: 8px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #3c4250;
  cursor: pointer;
  white-space: normal;      /* wrap allow */
  word-break: break-word;   /* zarurat par word break */
  line-height: 1.4;
  border-bottom: 1px solid rgba(0,0,0,.04);
}

.search-select-option:last-child{
  border-bottom: 0;
}

.search-select-option i{
  width: 14px;
  flex-shrink: 0;           /* icon compress na ho */
  text-align: center;
  margin-top: 2px;
}

/* Har option ke RIGHT par radio-dot (normal selector jaisा lagे) — pure CSS, JS touch nahi.
   ::after + margin-left:auto => dot far-right (icon/text ke baad). Unselected: khali grey
   ring; selected: white ring + andar white dot (blue row bg beech se dikhta). */
.search-select-option::after{
  content: '';
  margin-left: auto;         /* icon/text ke baad dot ko far-right push karo */
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;           /* icon jaisा text ke saath align */
  border-radius: 50%;
  border: 2px solid #c7ccd6; /* khali ring (unselected) */
  background: transparent;
  box-sizing: border-box;
  transition: border-color .15s ease;
}
.search-select-option:hover::after{ border-color: #4f46e5; }
.search-select-option.is-selected::after{
  border-color: #fff;
  background: radial-gradient(circle, #fff 0 4px, transparent 5px);  /* ring + center dot = checked */
}

/* option pe hover */
.search-select-option:hover{
  background: #eef2ff;
  color: #4f46e5;
}
.search-select-option:hover i{ color: #4f46e5; }

/* jo option abhi selected hai */
.search-select-option.is-selected{
  background: #4f46e5;
  color: #fff;
}

/* optgroup ka header (non-clickable) — e.g. transactions filter ki "Payment Methods" / "Other" */
.search-select-group{
  padding: 9px 11px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9aa3b2;
  pointer-events: none;
  user-select: none;
}
.search-select-option.is-selected i{ color: #fff; }

/* koi result na mile to */
.search-select-empty{
  padding: 10px 11px;
  font-size: 12.5px;
  color: #9aa3b2;
}

/* Add/Remove Funds modal: currency selector + amount ek input-group.currency-funds mein.
   Pehle select ko .input-group-prepend > span ke andar rakha tha; prepend content-width tak
   simat jata, is liye widget wrapper (width:100%) us simte span ka 100% le kar itna patla ho
   jata k "None" tak letters vertically wrap karne lagte. Ab select seedha input-group ka
   flex-child hai: wrapper ko bounded width diya, amount input baqi jagah leta, aur khulne wala
   panel ko min-width taake choti control par bhi options poori line par render hon. */
.currency-funds .search-select-wrapper{
  flex: 0 0 130px;
  min-width: 130px;
}
.currency-funds .search-select-panel{
  right: auto;        /* left-anchored; chaurai min-width se */
  min-width: 210px;
}
/* join-corners (select ka right + funds ka left square) admin-radius.css mein hai —
   wahan har control par radius !important lagta, is liye flatten bhi wahin (!important) karna parta. */


.drag-handle {
  color: #4f46e5 !important;
  cursor: grab;
  width: 20px; /* Fixed width */
  height: 100%;
  transition: width 0.2s ease; /* Smooth transition */
}

.drag-handle:active {
  cursor: grabbing;
}

/* Custom drag grip (dots-rail) — services page jaisा handle; ab kisi bhi .drag-handle list (currencies,
   categories, menu, payment_methods) pe reuse ho sakta. fa-ellipsis <i> ki jagah <span class="grip-rail">.
   grip absolute-positioned (left:2px) = cell padding ignore, row ke bilkul START pe flush (services jaisा). */
td.drag-handle { position: relative; touch-action: none; width: 14px; padding-left: 4px; padding-right: 4px; }   /* tight cell (grip ke right zyada gap na ho) + mobile touch = drag */
.drag-handle .grip-rail {
  position: absolute; top: 50%; left: 2px; transform: translateY(-50%);
  width: 9px; height: 27px;                                  /* 6 dots/column, 2 columns */
  background-image: radial-gradient(currentColor 1.4px, transparent 1.9px);
  background-size: 4.5px 4.5px;
  color: #2e333c;                                            /* row text jaisा soft-dark */
  cursor: grab;
}
html[data-theme="dark"] .drag-handle .grip-rail { color: #9aa3b2; }   /* dark mein readable grey */

/* Currencies list — name column ko kam se kam 150px chaura rakho (naam chhota na squeeze ho) */
.cur-name-col { min-width: 150px; }

/* Table height content ke hisab se (global `.table { min-height:170px }` override) — sirf jahan .tbl-fit
   ho (abhi admins page). services/import tables ko NAHI cherte, wo global 170px pe rehti. */
.table.tbl-fit { min-height: 0; }

/* admins > staff edit ke access section titles (View/Add-Edit/Delete/Integration) — indigo (panel accent),
   pehle inline cyan #01afcc tha. display:flow-root = apna float ("All" toggle) contain kare (warna toggle
   h5 se bahar nikal ke hr/items ke beech ajeeb gap banata tha). Margins tight. */
.access-section-title {
  color: #4f46e5;
  display: flow-root;
  margin: 0 0 .3rem;
  line-height: 1.6;
}
.access-section-title + hr { margin: .4rem 0 .9rem; }

/* admins > access page: har permission-section ab apna chhota card (header = title + All toggle) */
.acc-card { margin-bottom: 1rem; }
.acc-card:last-of-type { margin-bottom: 0; }
.acc-card .card-header { padding-top: .5rem; padding-bottom: .5rem; min-height: 0; }
.acc-card .card-options .custom-switch { margin-bottom: 0; }

/* indigo outline button — cross-module (users/affiliate/admins) use hota, par poori style pehle sirf
   pages-tops.css (per-page) mein thi -> jahan wo load nahi wahan text black dikhta. Ab GLOBAL. */
.indigo-outline-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:30px; padding:0 12px;
  border:2px solid #4f46e5; border-radius:8px;
  background:transparent; color:#4f46e5;
  font-weight:600; font-size:13px; line-height:1;
  cursor:pointer; white-space:nowrap; text-decoration:none;
  transition:all .2s ease;
}
.indigo-outline-btn:hover{ background:#4f46e5; color:#fff; }
/* card-header ke card-options mein core ka `.card-options a:not(.btn){color:#000}` (+ uska i) is button ka
   text/icon black kar deta tha — indigo wapas force karo (framework default override, isliye !important). */
.card-options a.indigo-outline-btn,
.card-options a.indigo-outline-btn i { color:#4f46e5 !important; }
.card-options a.indigo-outline-btn:hover,
.card-options a.indigo-outline-btn:hover i { color:#fff !important; }
/* core wala rule `display:inline-block` bhi force karta tha -> flex centering toot jati (text centre nahi).
   inline-flex wapas force karo taake icon+text vertically/horizontally centre rahein. */
.card-options a.indigo-outline-btn { display:inline-flex !important; align-items:center; justify-content:center; }

.ui-draggable-dragging {
  background-color: #f9f9f9;
  border: 1px solid #ddd; 
  z-index: 1000; 
  position: absolute; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
  width: 100%; 
  display: table; 
  table-layout: fixed; 
}

.drop-hover {
  border: 2px dashed #4f46e5; 
  background-color: #eef2ff; 
}

.ui-sortable-helper {
  display: table-row; 
  table-layout: fixed; 
  background-color: #f9f9f9; 
  border: 1px solid #ddd; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

.ui-sortable-placeholder {
  visibility: visible; 
  border: 2px dashed #4f46e5; 
  height: 50px; 
  background-color: #eef2ff; 
}

.CodeMirror {
  border: 1px solid #ddd;
  border-radius: 8px;
  min-height: 70vh;
}

.CodeMirror-scroll {
  min-height: 70vh;
}

.CodeMirror-lines {
  padding: 12px 0;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn {
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f5f5f5;
}

.save-btn {
  padding: 8px 12px;
  border: 1px solid #111;
  border-radius: 8px;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.body-padding {
  padding: 16px;
}

.css-editor-textarea {
  width: 100%;
  min-height: 70vh;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
}

.msg-box {
  margin-top: 10px;
  font-size: 14px;
}

.theme-edit-warning {
  background: #fff3f3;
  border: 1px solid #f5c2c2;
  color: #a94442;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 12px 0;
}

.status-pill.edit-css-btn {
    background: #6366f1;       /* purple background */
    color: #fff;               /* white text */
    margin-left: 8px;          /* space from previous element */
    text-decoration: none;     /* remove underline */
    display: inline-flex;      /* align icon and text */
    align-items: center;                /* space between icon and text */
    padding: 5px 14px;         /* pill padding */
    border-radius: 50px;       /* pill shape */
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease;
}

.status-pill.edit-css-btn:hover {
    background: #4f46e5;  /* darker purple on hover */
    color: #fff;
}


.status-pill.active {
    background: #4f46e5; /* blue */
    color: #fff;
    text-decoration: none;
}
.status-pill.active:hover {
    background: #4f46e5;
    color: #000;
}
.status-pill.active i {
    font-size: 14px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 50px; /* pill shape */
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin: 5px;
}

/* Activated look */
.status-pill.activated {
    background: #28a745; /* green */
    color: #fff;
}
.status-pill.activated i {
    font-size: 14px;
}

.badge-count-cate {
  background: #E6E6E6;
  color: #000;           
  font-weight: 600;
  padding: 3px 4px;
  border-radius: 4px;
  margin: 0 2px;
}



.custom-file-upload {
  border: 2px dashed #4f46e5;
  display: block;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  color: #4f46e5;
  font-weight: bold;
  border-radius: 8px;
  transition: 0.3s ease;
}

.custom-file-upload:hover {
  background-color: #f0f8ff;
}

.custom-file-upload i {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}

/* Hidden file input */
#file-input {
  display: none;
}

/* Stylish Loader */
.uploader {
  display: none;
  margin-top: 15px;
  text-align: center;
}

.uploader .spinner {
  width: 3rem;
  height: 3rem;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #4f46e5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}







.hq-spinner-wrap {
  position: relative;
  width: 340px;
  height: 340px;
}

.hq-spinner-wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #4f46e5;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  overflow: hidden;
  background: #f8fafc;
  transform: rotate(0deg);
}

.hq-seg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  clip-path: polygon(50% 50%, 100% 0%, 100% 50%);
  pointer-events: none;
}

.hq-label {
  position: absolute;
  left: 90%;
  top: 33%;
  transform: translate(-50%, -50%) rotate(66deg);
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  background: rgba(255,255,255,0.92);
  padding: 5px 10px;
  border-radius: 25px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  white-space: nowrap;
  text-align: center;
  min-width: 70px;
}

/* Pointer - triangle + circle base */
.hq-spinner-pointer {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 32px solid #4f46e5;
}


/* Center cap */
.hq-spinner-center {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 70px;
  height: 70px;
  background: #111827;
  border: 10px solid #ffffff;
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: bold;
}


/* Orders Page */
.info-cell {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    line-height: 1.2;
}
.info-cell .line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    white-space: nowrap;
}
.info-cell .label {
    color: #8a94a6;
    font-weight: 600;
    letter-spacing: .3px;
}
.info-cell .value {
    font-weight: 600;
    color: #2b3445;
    font-variant-numeric: tabular-nums;
}

/* profit/loss text colors */
.value.profit {
    color: #0a7d3c;
}
.value.loss {
    color: #c2293a;
}

  /* highlight when api charge exceeds charge */
.value.api-high {
    color: #c2293a;
}


/* order status badges */

.order-status-badge {
    display: inline-block;
    width: 100px;
    text-align: center;
    padding: 5px 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .2px;
    white-space: nowrap;
    box-sizing: border-box;
    border: 1px solid transparent;
}
.order-status-pending    { color: #b5860b; background: #fdf6e3; border-color: #f0e2bd; }
.order-status-processing { color: #2456a6; background: #eef3fb; border-color: #d4e1f4; }
.order-status-inprogress { color: #117a8b; background: #e9f6f8; border-color: #cfe9ed; }
.order-status-completed  { color: #1a7a45; background: #ecf7f0; border-color: #cfe8da; }
.order-status-partial    { color: #b35e0f; background: #fdf2e7; border-color: #f3ddc4; }
.order-status-canceled   { color: #c62f3f; background: #fcf0f1; border-color: #f3d4d8; }
.order-status-refunded   { color: #b03325; background: #fbefed; border-color: #f1d4cf; }
.order-status-error      { color: #9a1b27; background: #faecee; border-color: #eecdd2; }
/* "there is something new here", shown NEXT TO a status badge rather than instead of
   it — a ticket can be open or closed and still have an unread reply. Not one of the
   status colours above, and no fixed width: it is a small pill, not a status column. */
.status-unread {
    width: auto;
    padding: 5px 10px;
    margin-left: 6px;
    color: #7c3aed; background: #f4efff; border-color: #ddd0f7;
}



.item-name-long {
  min-width: 300px;
}


.service-type-cards{
    display:flex;
    gap:10px;
    flex-wrap:nowrap;
}

.service-type-card{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border:1px solid #dcdfe6;
    border-radius:8px;
    background:#fff;
    cursor:pointer;
    transition:.2s;
    min-width:120px;
    margin:0;
}

.service-type-card:hover{
    border-color:#4338ca;
    box-shadow:0 3px 10px rgba(67,56,202,.10);
}

.service-type-card input{
    display:none;
}

.service-type-card .radio{
    width:16px;
    height:16px;
    border:2px solid #bfc5d2;
    border-radius:50%;
    position:relative;
    flex-shrink:0;
}

.service-type-card .text{
    font-size:13px;
    font-weight:600;
    color:#555;
}

.service-type-card input:checked + .radio{
    border-color:#4338ca;
}

.service-type-card input:checked + .radio:after{
    content:"";
    width:8px;
    height:8px;
    background:#4338ca;
    border-radius:50%;
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}

.service-type-card input:checked ~ .text{
    color:#4338ca;
}

.service-type-card:has(input:checked){
    border-color:#4338ca;
    background:#f5f5ff;
}

@media(max-width:576px){
    .service-type-card{
        flex:1;
        min-width:0;
        justify-content:center;
    }
}

.switch-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:10px;
}

.mini-switch-card{
    height:36px;
    padding:0 12px;
    border:1px solid #e2e5ec;
    border-radius: 8px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    cursor:pointer;
    margin:0;
    transition:.2s ease;
}

.mini-switch-card:hover{
    border-color:#4338ca;
    box-shadow:0 4px 12px rgba(67,56,202,.10);
}

.mini-switch-card span{
    font-size:13px;
    font-weight:600;
    color:#4b5563;
    white-space:nowrap;
}

.mini-switch-card input{
    display:none;
}

.mini-switch-card i{
    width:38px;
    height:20px;
    border-radius:30px;
    background:#d1d5db;
    position:relative;
    flex-shrink:0;
    transition:.2s ease;
}

.mini-switch-card i:before{
    content:"";
    width:16px;
    height:16px;
    border-radius:50%;
    background:#fff;
    position:absolute;
    top:2px;
    left:2px;
    transition:.2s ease;
    box-shadow:0 1px 4px rgba(0,0,0,.25);
}

.mini-switch-card input:checked + i{
    background:#4338ca;
}

.mini-switch-card input:checked + i:before{
    left:20px;
}

.mini-switch-card:has(input:checked){
    border-color:#4338ca;
    background:#f5f5ff;
}

.mini-switch-card:has(input:checked) span{
    color:#4338ca;
}

@media(max-width:576px){
    .switch-grid{
        grid-template-columns:repeat(2, 1fr);
    }

    /* 2-per-row chhote cards: switch + text + spacing sikure, lambe label wrap ho jayen */
    .mini-switch-card{
        height:auto;
        min-height:34px;
        padding:5px 8px;
        gap:6px;
    }

    .mini-switch-card span{
        font-size:11px;
        line-height:1.2;
        white-space:normal;
    }

    .mini-switch-card i{
        width:32px;
        height:18px;
    }

    .mini-switch-card i:before{
        width:14px;
        height:14px;
    }

    .mini-switch-card input:checked + i:before{
        left:16px;
    }
}


/* IDGO Alert Cards */
.idgo-alert{
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.idgo-alert strong{
  font-weight: 700;
}

.idgo-alert-warning{
  background: #fff8e1;
  border-color: #ffe082;
  color: #7a5c00;
}

.idgo-alert-info{
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.idgo-alert-danger{
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.idgo-alert-success{
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}


/* searchable-select: disabled option — greyed + non-clickable (e.g. menu picker "(added)" pages) */
.search-select-option.is-disabled{ opacity:.5; cursor:not-allowed; }
/* added/disabled = selectable nahi → radio-dot chhupao. Warna dot + badge dono margin-left:auto
   free space split kar dete the aur badge har row mein alag jagah ("aage peeche") aata tha. */
.search-select-option.is-disabled::after{ display:none; }

/* searchable-select: "Added" badge (menu picker — already-in-menu pages). akela margin-left:auto
   → hamesha far-right, straight column. */
.ss-added-badge{
  margin-left:auto;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:#0b8a3e;
  background:#e5f7ec;
  border:1px solid #b9e6c9;
  padding:1px 6px;
  border-radius:4px;
}
