/*!
 * Theme Name: FECMEMX
 * Package : DashLite
 * Author: Eduardo Elizondo
 * Version	 :	1.0.0
 * Updated	 :	28.02.2024
**/



.bg_login{
  
  background-image: url('../../../img/template/bg/login-bg.jpg');
  /* Add the blur effect */
  
  /* Full height */
  height: 100%;

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 2;
}


.dt_paginate ul li {
    padding: 0px !important;
    margin: 0px !important;
    border: 0px !important;
}

.dt-scroll-body{
  min-height: 400px;
}

/* RESET STYLES & HELPER CLASSES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
  --level-1: #8dccad;
  --level-2: #f7ead0;
  --level-3: #bed4fb;
  --level-4: #f27c8d;
  --black: black;
}


ol {
  list-style: none;
}



.container {
  max-width: 1000px;
  padding: 0 10px;
  margin: 0 auto;
}

.rectangle {
  position: relative;
  padding: 0px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.a-tree {
  color:#364a63;
}

/* LEVEL-1 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-1 {
  width: 50%;
  margin: 0 auto 40px;
  background: var(--level-1);
}

.level-1::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}


/* LEVEL-2 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-2-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.level-2-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: var(--black);
}

.level-2-wrapper::after {
  display: none;
  content: "";
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: calc(100% + 20px);
  height: 2px;
  background: var(--black);
}

.level-2-wrapper li {
  position: relative;
}

.level-2-wrapper > li::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

.level-2 {
  width: 70%;
  margin: 0 auto 40px;
  background: var(--level-2);
}

.level-2::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

.level-2::after {
  display: none;
  content: "";
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-100%, -50%);
  width: 20px;
  height: 2px;
  background: var(--black);
}


/* LEVEL-3 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-3-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 20px;
  width: 90%;
  margin: 0 auto;
}

.level-3-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: calc(25% - 5px);
  width: calc(50% + 10px);
  height: 2px;
  background: var(--black);
}

.level-3-wrapper > li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 2px;
  height: 20px;
  background: var(--black);
}

.level-3 {
  margin-bottom: 20px;
  background: var(--level-3);
}


/* LEVEL-4 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-4-wrapper {
  position: relative;
  width: 80%;
  margin-left: auto;
}

.level-4-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 2px;
  height: calc(100% + 20px);
  background: var(--black);
}

.level-4-wrapper li + li {
  margin-top: 20px;
}

.level-4 {
  font-weight: normal;
  background: var(--level-4);
}

.level-4::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-100%, -50%);
  width: 20px;
  height: 2px;
  background: var(--black);
}


/* MQ STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 700px) {
  .rectangle {
    padding: 20px 10px;
  }

  .level-1,
  .level-2 {
    width: 100%;
  }

  .level-1 {
    margin-bottom: 20px;
  }

  .level-1::before,
  .level-2-wrapper > li::before {
    display: none;
  }
  
  .level-2-wrapper,
  .level-2-wrapper::after,
  .level-2::after {
    display: block;
  }

  .level-2-wrapper {
    width: 90%;
    margin-left: 10%;
  }

  .level-2-wrapper::before {
    left: -20px;
    width: 2px;
    height: calc(100% + 40px);
  }

  .level-2-wrapper > li:not(:first-child) {
    margin-top: 50px;
  }
}



#wrapper {
  position: relative;
}

.branch {
  position: relative;
  margin-left: 250px;
}
.branch:before {
  content: "";
  width: 50px;
  border-top: 2px solid #eee9dc;
  position: absolute;
  left: -100px;
  top: 50%;
  margin-top: 1px;
}

.entry {
  position: relative;
  min-height: 60px;
}
.entry:before {
  content: "";
  height: 100%;
  border-left: 2px solid #eee9dc;
  position: absolute;
  left: -50px;
}
.entry:after {
  content: "";
  width: 50px;
  border-top: 2px solid #eee9dc;
  position: absolute;
  left: -50px;
  top: 50%;
  margin-top: 1px;
}
.entry:first-child:before {
  width: 10px;
  height: 50%;
  top: 50%;
  margin-top: 2px;
  border-radius: 10px 0 0 0;
}
.entry:first-child:after {
  height: 10px;
  border-radius: 10px 0 0 0;
}
.entry:last-child:before {
  width: 10px;
  height: 50%;
  border-radius: 0 0 0 10px;
}
.entry:last-child:after {
  height: 10px;
  border-top: none;
  border-bottom: 2px solid #eee9dc;
  border-radius: 0 0 0 10px;
  margin-top: -9px;
}
.entry.sole:before {
  display: none;
}
.entry.sole:after {
  width: 50px;
  height: 0;
  margin-top: 1px;
  border-radius: 0;
}

.label {
  display: block;
  min-width: 150px;
  padding: 5px 10px;
  line-height: 20px;
  text-align: center;
  border: 2px solid #eee9dc;
  border-radius: 5px;
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -15px;
}

/*=====  End of Bloquear o Desbloquear  ======*/

/* OWNER TABLE STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Owner Card Styles */
.owner-card {

  border-radius: 12px;
  padding: 16px;
  color: #353535;
  transition: all 0.3s ease;
}

.owner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.owner-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

.owner-id {
  background: rgba(108, 117, 125, 0.2);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
}

.owner-name {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  color: #212529;
}

.owner-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6c757d;
}

.contact-item .icon {
  font-size: 14px;
  color: #adb5bd;
}

/* Address Card Styles */
.address-card {
  border-radius: 12px;
  padding: 16px;
  color: #353535;
  transition: all 0.3s ease;
}

.address-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.address-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 14px;
}

.address-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.address-line {
  font-size: 12px;
  color: #6c757d;
  line-height: 1.4;
}

/* Membership Card Styles */
.membership-card {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px;
}

.membership-badge {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
  color: white !important;
  border: none !important;
  padding: 10px 14px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.3s ease !important;
}

.membership-badge:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4) !important;
}

.membership-badge .icon {
  font-size: 12px !important;
}

/* Status Card Styles */
.status-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.status-badge {
  padding: 8px 12px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.status-badge.badge-soft-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3) !important;
}

.status-badge.badge-soft-danger {
  background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3) !important;
}

.status-badge:hover {
  transform: translateY(-2px) !important;
}

.status-dates {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.date-item {
  font-size: 11px;
  color: #6c757d;
}

/* Table Responsive Improvements */
.dtOwnerList {
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
}

.dtOwnerList tbody tr {
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
}

.dtOwnerList tbody tr:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

.dtOwnerList tbody td {
  padding: 16px 12px !important;
  border: none !important;
  vertical-align: middle !important;
}

.dtOwnerList tbody td:first-child {
  border-radius: 12px 0 0 12px !important;
}

.dtOwnerList tbody td:last-child {
  border-radius: 0 12px 12px 0 !important;
}

/* Row Status Backgrounds */
.dtOwnerList tbody tr.row-active {
  background-color: #f8fff8 !important;
}

.dtOwnerList tbody tr.row-inactive {
  background-color: #f8f9fa !important;
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  margin: 16px 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  border: none !important;
  margin: 0 2px !important;
  transition: all 0.3s ease !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
  color: white !important;
  border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
  color: white !important;
  border: none !important;
}

/* Horizontal Scroll for Header */
.dataTables_wrapper .dataTables_scrollHead {
  overflow-x: auto !important;
}

.dataTables_wrapper .dataTables_scrollHead table {
  width: 100% !important;
  min-width: 800px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .owner-card,
  .address-card {
    padding: 12px;
  }
  
  .owner-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .contact-item {
    font-size: 12px;
  }
  
  .address-line {
    font-size: 11px;
  }
  
  .membership-badge {
    padding: 8px 12px !important;
    font-size: 11px !important;
  }
  
  .status-badge {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
}

