* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

:focus-visible{
    outline:#000 auto 1px;
}

.dashboard-container {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: white;
  display: flex;
  align-items: flex-start;
  border-right: 1px solid #ededed;
  padding: 20px;
  flex-direction: column;
  margin-top: 60px;
  position: fixed;
  height: 100%;
}

.dashboard-content {
  flex: 1; 
  background-color: white;
  padding: 20px;
  margin-top: 60px;
  margin-left: 250px;
}

.dashboard-header {
  background-color: white;
  height: 60px; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ededed;
  position: fixed;
  width: 100%;
  z-index: 999;
}

.logo-dashboard{
    margin-left: 48px;
}


.dashboard-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.dashboard-title h1{
    font-size: 22px;
    font-weight: 600;
}

.dashboard-title a{
    font-size: 22px;
    font-weight: 400;
    text-decoration: none;
    color:#000;
}

.arrow.title{
    margin-left: 0px;
}

/*--- Sidebar - Button ---*/
.icons {
    width: 20px;
    height: 20px;
}

.icons img {
    width: 20px;
    height: 20px;
}
.sidebar-button-content {
    width: 100%;
}

.sidebar-button {
  display: flex;
  align-items: center;
  width:100%;
  padding: 10px 10px;
  gap: 8px;
  background-color: #fff;
  color: #000;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 5px;
  font-size: 16px;
  text-decoration: none;
  border: none;
}

.sidebar-button-content.selected, .sidebar-button-content.selected .sidebar-button{
    background-color: #ededed;
    border-radius: 5px;
}

.sidebar-button.sub-menu{
    justify-content: space-between;
}

.sub-menu{
    display: flex;
    gap: 8px;
}

.sidebar-button:hover, .sidebar-button-content.open .sidebar-button:hover {
  background-color: #ededed;
}

.sidebar-button.selected .sidebar-button {
  background-color: #ededed;
  color: #000;
}

.sidebar-button-content.open .sidebar-button, .sidebar-button-content.open {
  background-color: #f4f4f4;
  color: #000;
  border-radius: 5px;
}

.button-arrow{
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.button-arrow span{
    margin-right: 6px;
}

.sidebar-submenu-container .sidebar-button{
    background-color: #ededed;
}

.sidebar-submenu-container span.icon-container {
    margin-left: 28px;
}

.sidebar-submenu-container .selected span, .sidebar-button.selected span{
    font-weight: 700;
}

.separator{
    width: 100%;
    height: 1px;
    background-color: #ededed;
}

/*--- User Menu ---*/
.user-button{
    width: auto;
    border-radius: 5px;
    border: 1px solid #ededed;
    margin-right: 48px;
    gap: 10px;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 10px 10px;
    color: #000;
    text-align: left;
    cursor: pointer;
    background-color: #fff;
    font-size: 16px;
}

.user-name{
    cursor: pointer;
    font-weight: 600;
    font-family: 'Lato';
}

.user-button {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ededed;
    background: transparent;
    cursor: pointer;
    gap: 10px;
}

.arrow {
    width: 5.6px;
    margin-left: 6px;
}

span.arrow img {
    width: 5.6px;
    transition: transform 0.2s ease; 
}

.user-button.open .arrow img, .sidebar-button-content.open span.arrow img,
.sidebar-button-content.selected span.arrow img, .icons-menu-content.open img, .button.action.active .arrow img, .selected-item img,
.total-products-button.active.show span.arrow img {
    transform: rotate(90deg); 
}

.user-card.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.user-card{
    position: absolute;
    z-index: 2;
    top: 56px;
    right: 48px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #ededed;
    width: 318px;
    padding: 20px;
    opacity: 0;
    line-height: 1.5;
    transform: translateY(-10px);
    transition: opacity .15s ease-out, transform .15s ease-out;
    pointer-events: none;
}

.user-email{
    margin-bottom: 10px;
    font-weight: 400;
}

.user-info-content{
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    pointer-events: none;
}

.user-card.show .user-info-content * {
    pointer-events: auto;
}

.user-info{
    font-weight: 600;
}

.icons-menu-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.icons-menu-content img{
    width: 20px;
    height: 20px;
}

.plan-link {
    display: flex;
    justify-content: space-between;
    background-color: #2B2D42;
    padding: 10px;
    height: 70px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    margin-bottom: 10px;
}

.user-plan-info{
    display: flex;
    flex-direction: row;
    gap:5px;
    text-decoration: none;
}

.plan-name{
    font-size: 18px;
    color:#fff;
    font-weight: 700;
    text-decoration: none;
    text-transform: capitalize;
}

.icon-arrow-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.icon-arrow img {
    width: 5.6px;
    height: auto;
}

.user-options-content{
    position: relative;
}
.user-options-content.show {
    height: 150px;
}

/*--- User Menu - Dropdown Companies ---*/
.company-dropdown {
    position: absolute;
    z-index: 1000;
    max-height: calc(100% + 20px);
    overflow-y: auto;
    width: 276px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #ededed;
    padding: 20px;
    opacity: 0;
    line-height: 1.5;
    transform: translateY(-10px);
    transition: opacity .15s ease-out, transform .15s ease-out;
    pointer-events: none;
}

.company-dropdown.show{
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.company-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-dropdown li {
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.company-dropdown .info-companies{
    display: flex;
    gap: 10px;
}

.icon-companies-container{
    display: flex;
    align-items: center;
}

.companies-info-content{
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.company-dropdown li:hover {
    background-color: #f0f0f0;
}

/*--- Label Plan ---*/
.user-plan-label{
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    padding: 0px 6px;
    color:#000;
    cursor: pointer;
    text-transform: capitalize;
}

.cycle-label{
    background-color: #fff;
}

.status-label{
    background-color: #75ED39;
}

.status-label.cancell{
    background-color: #ed9039;
}

/*--- Alert Subscribe ---*/

.plan-link.alert-subscribe{
    min-height: 56px;
    padding: 15px;
    margin-bottom: 10px;
    height: auto;
    gap:5px;
}

.alert-subscribe-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.alert-subscribe-content{
    display: flex;
    gap: 10px;
    color: #fff;
    height: fit-content;
}

.alert-subscribe-container .cycle-label{
    font-size: 16px;
    margin-right: 4px;
}

/*--- Messages Notifications (success, danger, help) ---*/

.message-container {
    display: flex;
    justify-content: space-between;
    border-radius: 5px;
    min-height: 47px;
    padding: 15px;
    margin-bottom: 30px;
    opacity: 1;
    transform: translateY(0px);
    transition: opacity .15s ease-out, transform .15s ease-out;
    max-width: 1175px;
    margin-left: auto;
    margin-right: auto;  
    width: 100%;
}

.no-margin{
    margin-bottom: 0;
}

.message-container.message-close {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10);
    z-index: -2;
}

.btn-close{
    background-color: transparent;
    border:none;
    font-weight: 600;
    display: flex;
    cursor: pointer;
}

.message-container.success{
    background-color: #C2FFC7;
}

.message-container.success p, .btn-close.success{
    color: #137100;
}


.message-container.danger{
    background-color: #FFC2C2;
}

.message-container.danger p, .btn-close.danger{
    color: #A50505;
}

.message-container.danger .icon-container .icons img{
    height: 17.48px;
}

.message-container.info{
    background-color: #FFF3C2;
}

.message-container.info p, .btn-close.info{
    color: #8B7200;
}

.btn-test{
    border: 1px solid #ededed;
    width: fit-content;
    margin-top: 10px;
}

/*--- Loading ---*/
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(2px);
}

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

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

    to {
        transform: rotate(1turn)
    }
}


/*--- Modal ---*/
.modal-overlay {
    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;
    animation: fadeIn 0.2s ease-in-out;
    z-index: 9999;
}
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 540px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-in-out;
    overflow: auto;
    max-height: 100%;
    max-width: 1150px;
}
.modal-component .modal-content {
    overflow: auto;
}
.modal-header{
    margin-top: 20px;
    margin-bottom: 20px;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}
.modal-content .top-title {
    color: #D80032;
    font-size: 20px;
}
.modal-content .button-group.onmodal{
    margin-top: 30px;
}
.modal-content .button-group{
    text-align: right;
}
.modal-content .button-group.onmodal .button.back{
    float: left;
}

@keyframes slideDown {
     0% {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0px);
    }
}

/*--- Buttons ---*/
.button {
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    text-transform: capitalize;
}
.button-confirm {
    background-color: #CD002F;
    border: none;
    color: #fff;
}
.return{
    margin-top: 3%;
}
.action{
    font-size: 18px;
    color:#fff;
    background-color: #2B2D42;
}

/*--- Switch ---*/
.switch-content{
    display: flex;
    justify-content: flex-end;
}
.switch-on {
    background: #d70000;
    justify-content: flex-end;
}
.switch {
    border-radius: 20px;
    cursor: pointer;
    height: 25px;
    padding: 2px 4px;
    transition: background .2s ease;
    width: 45px;
    align-items: center;
    display: flex;
}
.switch-toggle {
    background: #fff;
    border-radius: 50%;
    height: 16px;
    transition: all .2s ease;
    width: 16px;
}
.switch-off {
    background: #888;
    justify-content: flex-start;
}
/*--- Hamburguer Menu ---*/
.movil-navbar{
    opacity: 0;
}