:root {
  --mobiletog-height: 60px;
  --desktop-left-width: 250px;
  --desktop-top-height: 45px;
  --blue-grad: linear-gradient(0deg,#3358f4,#1d8cf8);
  --top-grey: #f6f6f6;
  --content-bg: #fdfdfd;
  --body: #000;
}

/* app layout */

/* desktop */

@media (min-width: 992px) {
  .topnav {
    display: flex;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .topnav > ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
}

@media (min-width: 992px) {
  .topnav > ul > li {
    display: inline-block;
    position: relative;
    cursor: pointer;
  }
}

@media (min-width: 992px) {
  .topnav > ul > li > ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: none;
    position: absolute;
    width: 180px;
    background: var(--top-grey);
    right: 0;
    z-index: 999;
  }
}

@media (min-width: 992px) {
  li.opuser > a, li.opuser > a:hover {
    display: inline-flex;
    height: 35px;
    text-align: center;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    background: var(--blue-grad);
    color: #fff;
  }
}

@media (min-width: 992px) {
  .topnav > ul > li.open > ul {
    display: block;
    background: var(--blue-grad);
  }
}

@media (min-width: 992px) {
  .app {
    display: grid;
    grid-template-columns: minmax(0, var(--desktop-left-width)) repeat(11, 1fr);
    grid-template-rows: var(--desktop-top-height) repeat(9, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    height: 100vh;
  }
}

@media (min-width: 992px) {
  .app > .top {
    grid-area: 1 / 2 / 2 / 13;
    background: var(--top-grey);
    max-height: var(--desktop-top-height);
    border-radius: 0 0 0 20px;
    padding: 5px 20px;
  }
}

@media (min-width: 992px) {
  .app > .left {
    grid-area: 1 / 1 / 11 / 2;
    background: var(--blue-grad);
    max-width: var(--desktop-left-width);
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

@media (min-width: 992px) {
  .app > .content {
    grid-area: 2 / 2 / 11 / 13;
    background: var(--content-bg);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    border-radius: 20px 0 0 0 !important;
    padding: 20px;
  }
}

/* mobile */

@media (max-width: 991px) {
  .app {
    display: block;
    min-height: 100vh;
    position: relative;
  }
}

@media (max-width: 991px) {
  #mobiletog {
    background-color: rgb(255 255 255 / 85%);
    height: var(--mobiletog-height);
    position: sticky;
    z-index: 999;
    top: 0;
    width: 100%;
    left: 0;
    margin: 0;
    padding: 5px 0 0 0;
  }
}

@media (max-width: 991px) {
  .app > .top {
    background: var(--top-grey);
    position: fixed;
    right: 0;
    top: 0;
    width: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1000;
    transition: width 0.3s ease;
  }
}

@media (max-width: 991px) {
  .app > .left {
    background: var(--blue-grad);
    position: fixed;
    left: 0;
    top: 0;
    width: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1000;
    transition: width 0.3s ease;
  }
}

@media (max-width: 991px) {
  .app > .left.open {
    width: 80%;
    transition: width 0.3s ease;
  }
}

@media (max-width: 991px) {
  .app > .top.open {
    width: 80%;
    transition: width 0.3s ease;
  }
}

@media (max-width: 991px) {
  .app > .content {
    background: var(--content-bg);
    min-height: calc(100vh - var(--mobiletog-height));
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    padding: 20px;
  }
}

.open-app-menu, .open-usr-menu, .open-app-menu:hover, .open-usr-menu:hover {
  border: none;
  background: var(--blue-grad);
  color: #fff;
}

.left ul li a {
  color: #FFF !important;
  font-weight: 700;
  display: flex;
  padding: .75rem;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
  gap: 20px;
}

.left ul {
  list-style: none;
  padding: 11px;
  margin: 0;
}

@media (min-width: 992px) {
  li.opuser > ul > li a {
    display: flex;
    color: #ffffff !important;
    padding: 10px;
    background: transparent;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
  }
}

@media (max-width: 991px) {
  .topnav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
}

@media (max-width: 991px) {
  .topnav > ul > li.opuser > a {
    display: none;
  }
}

@media (max-width: 991px) {
  .topnav > img {
    display: none;
  }
}

@media (max-width: 991px) {
  .topnav > ul > li.opuser > ul > li > a, .noti, .carti {
        display: flex;
        padding: 10px;
        text-align: center;
        background: #fff;
        color: #000 !important;
        text-decoration: none !important;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 20px;
        align-items: center;
  }
}

@media (min-width: 992px) {
  .noti {
    justify-content: center !important;
    align-items: center !important;
    align-content: center !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 10px;
    background: orange !important;
    display: inline-flex;
    color: #fff;
    height: 35px;
    margin-right: 10px;
  }
  .carti {
    justify-content: center !important;
    align-items: center !important;
    align-content: center !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 10px;
    background: #00BCD4 !important;
    display: inline-flex;
    color: #fff;
    height: 35px;
    margin-right: 10px;
  }
}

@media (max-width: 991px) {
  a.btn.noti, a.btn.carti {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
}

@media (max-width: 991px) {
  a.btn.noti i:after {
    content: 'Notifications';
    font-family: sans-serif;
    font-weight: 400;
    display: inline-block;
    margin: 0 10px;
  }
  a.btn.carti i:after {
    content: 'Cart';
    font-family: sans-serif;
    font-weight: 400;
    display: inline-block;
    margin: 0 10px;
  }
}

.btn-blue, .btn-blue:hover, .btn-blue:focus {
  background: #2d328e;
  color: #fff;
  border-color: #2d328e;
}

body {
  font-family: 'Roboto';
  color: var(--body);
}



#modonotify {
    position: fixed;
    z-index: 99999;
    display: block;
    width: 100%;
    right: 0;
    top: 0px !important;
    padding: 1em;
    max-width: 300px;
}
div#modonotify:empty {
    display: none;
}
#modonotify .alert {
	cursor: pointer;
}

/* TABLE-RES START */
table.table-res {
	margin-top: 10px;
}

table.table-res tr:first-child,
table.table-res tr:first-child th,
table.table-res tr:first-child td,
table.emails tr:first-child,
table.emails tr:first-child th,
table.emails tr:first-child td {
	border-top: none;
}

@media (max-width: 767px) {
	table.table-res thead {
		display: none;
	}

	table.table-res.dataTable tbody tr:first-child {
		display: block !important;
	}

	table.table-res.datatable tbody tr:first-child {
		display: initial !important;
	}

	table.table-res {
		width: 100%;
	}

	table.table-res tbody tr {
		display: block;
		border-bottom: solid 1px #000;
		margin-bottom: 10px;
		margin-top: 10px;
	}

	table.table-res td {
		display: block;
		border: none;
		border-top: none !important;
		text-align: center !important;
    width: 100%;
    max-width: 100%;
	}

	table.table-res td.labeled:before {
		content: attr(data-label);
		display: block;
		font-size: 15px;
		color: #000;
		font-weight: 700;
	}

	.table-res td.options {
		text-align: center;
	}

	.optselect a {
		margin: auto !important;
	}

	#facturas .btn-group.pull-right {
		float: none !important;
		clear: both;
	}

	.table-res .btn-group.pull-right {
		float: none !important;
	}

  .table-res td:last-child .btn, .table-res td:last-child .btn-group {
      display: block;
      padding: 7px;
      margin-bottom: 5px;
  }

}
.ui-helper-hidden-accessible, .ui-widget-content {
    display: none !important;
}
/* TABLE-RES END */


.datas-holder {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    align-items: center;
    color: #fff;
    background: var(--blue-grad);
    padding: 3px 5px;
}
.datum {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    font-weight: 600;
    gap: 5px;
}
.datum span {
    font-weight: 400;
}

@media print {
    * {
        color: #000000 !important
    }

    .d-print {
        display: block !important;
    }

    .no-print {
        display: none !important;
    }
}


 .isttt {
        position: relative; /* Essential for positioning the ::after pseudo-element */
        display: inline-block; /* Or block, depending on your layout */
    }

    .isttt::after {
        content: attr(data-title); /* Get content from data-title attribute */
        position: absolute;
        bottom: 100%; /* Position above the element */
        left: 50%;
        transform: translateX(-50%);
        background-color: #333;
        color: #fff;
        padding: 8px 12px;
        border-radius: 4px;
        white-space: nowrap; /* Prevent text from wrapping */
        opacity: 0; /* Hidden by default */
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s; /* Smooth transition */
        z-index: 10; /* Ensure it appears above other content */
    }

    .isttt:hover::after {
        opacity: 1; /* Show on hover */
        visibility: visible;
    }

    a.sort-link {
      cursor: pointer;
      color: #000;
      text-decoration: underline;
      position: relative;
  }
  a.sort-link.ASC:after {
      content: ' ▲';
      font-size: 0.8em;
      position: absolute;
      right: -15px;
  }
  a.sort-link.DESC:after {
      content: ' ▼';
      font-size: 0.8em;
      position: absolute;
      right: -15px;
  }