@font-face {
    font-family: 'Graphik-Regular';
    src: url("../../fonts/Graphik-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Graphik-Medium';
    src: url("../../fonts/Graphik-Medium.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Graphik-Bold';
    src: url("../../fonts/Graphik-Bold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* Material icons from icomoon */
@font-face {
    font-family: 'icomoon';
    src:  url('../../fonts/icomoon.eot?tf6qg9');
    src:  url('../../fonts/icomoon.eot?tf6qg9#iefix') format('embedded-opentype'),
      url('../../fonts/icomoon.ttf?tf6qg9') format('truetype'),
      url('../../fonts/icomoon.woff?tf6qg9') format('woff'),
      url('../../fonts/icomoon.svg?tf6qg9#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
  }
  
  [class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    font-size: 1.5rem;
    display: inline-block;
    letter-spacing: normal;
    white-space: nowrap;
    direction: ltr;
    vertical-align: bottom;
  
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .icon-add_circle_outline:before {
      content: "\e900";
  }

  .icon-content_copy:before {
      content: "\e901";
  }

  .icon-create:before {
      content: "\e902";
  }

  .icon-delete:before {
      content: "\e903";
  }

  .icon-highlight_remove:before {
      content: "\e904";
  }
  



/* Botones LG */
.lg-btn {
    font-size: 1rem;
    line-height: 1.5;
    border-width: 0.125rem;
    border-style: solid;
    padding: 0.5rem 2rem;
    background-color: transparent;
    border-color: transparent;
    cursor: pointer;
    -webkit-transition: 0.2s color, 0.2s background-color, 0.2s border-color;
    -o-transition: 0.2s color, 0.2s background-color, 0.2s border-color;
    transition: 0.2s color, 0.2s background-color, 0.2s border-color;
    -webkit-transition-timing-function: ease-out;
    -o-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

.lg-btn[disabled] {
    cursor: default;
    background-color: transparent;
    border-color: transparent;
    color: #111111;
    opacity: 0.5;
}


/* Colores de botones */
.lg-bg-primary {
    color: #FFFFFF;
    background-color: #A100FF;
    border-color: #A100FF;
}

.lg-bg-primary:hover:not([disabled]),
.lg-bg-primary:active:not([disabled]) {
    background-color: #7500C0;
    border-color: #7500C0;
}

.lg-bg-secondary {
    color: #FFFFFF;
    background-color: #05F0A5;
    border-color: #05F0A5;
}

.lg-bg-secondary:hover:not([disabled]),
.lg-bg-secondary:active:not([disabled]) {
    background-color: #08b77f;
    border-color: #08b77f;
}

.lg-bg-gray {
    color: #FFFFFF;
    background-color: #333333;
    border-color: #333333;
}

.lg-bg-gray:hover:not([disabled]),
.lg-bg-gray:active:not([disabled]) {
    background-color: #111111;
    border-color: #111111;
}

.lg-bg-white {
    color: #111111;
    background-color: #FFFFFF;
    border-color: #FFFFFF;
}

.lg-bg-white:hover:not([disabled]),
.lg-bg-white:active:not([disabled]) {
    background-color: #DBDBDB;
    border-color: #DBDBDB;
}


/* Colores de texto */
.lg-color-primary {
    color: #A100FF;
}


.form-control.is-valid {
    border-color: #A100FF;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'><path fill='%23A100FF' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/></svg>");
}

.form-control.is-valid:focus {
    border-color: #A100FF;
    box-shadow: 0 0 0 .25rem rgba(161, 0, 255, 0.25);
}


.form-switch .form-check-input:focus {
    border-color: #d080ff;
    box-shadow: 0 0 0 .25rem rgba(208, 128, 255, 0.25);
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='%23d080ff'/></svg>");
}

.form-switch .form-check-input:checked {
    border-color: #A100FF;
    background-color: #A100FF;
}

/* Custom Checkboxes */
.custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding: 0 0 0 1.5rem;
    margin: 0.5rem 1rem;
    white-space: normal;
}

.custom-control-input {
    position: absolute;
    z-index: 1;
    opacity: 0;
    left: 0;
    width: 20px;
    height: 20px;
}

.lg-checkbox label.custom-control-label {
    padding-left: 0.6rem;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
}

.custom-control-label::before {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    content: "";
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #dee2e6;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #A100FF;
}

.custom-control-input:checked ~ .custom-control-label::before {
    color: #FFFFFF;
    background-color: #A100FF;
}

.lg-checkbox label.custom-control-label::before {
    border: 1px solid #666666;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border-radius: 0;
}

.lg-checkbox label.custom-control-label::after {
    top: 0;
    width: 20px;
    height: 20px;
}

.custom-control-label::after {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'><path fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/></svg>");
}

.lg-text-regular {
    font-family: 'Graphik-Regular', 'Arial', 'Helvetica', sans-serif;
}
.lg-text-medium {
    font-family: 'Graphik-Medium', 'Arial', 'Helvetica', sans-serif;
}
.lg-text-bold {
    font-family: 'Graphik-Bold', 'Arial', 'Helvetica', sans-serif;
}


html {
    height: 100%;
}

body {
    background-color: #EFEFEF;
}

option:empty {
    display: none;
}

/* Login */
#loginCard {
    max-width: 480px;
}


/* Navbar */
nav.navbar {
    line-height: 4.5rem;
}

nav .navbar-nav .nav-link.active {
    box-shadow: inset 0 -4px #A100FF;
}

nav .navbar-nav .lg-separator {
    border-left: 1px solid #FFFFFF;
    height: 1rem;
}

#dlCard {
    background-color: #f8f9fa;
}

@keyframes dlCardAnimation {
    0% {
        color: #212529;
        background-color: #f8f9fa;
        transform: translate3d(0, 0, 0);
    }
    
    100% {
        color: #FFFFFF;
        background-color: #A100FF;
        transform: translate3d(100%, 0, 0);
    }
}

.lg-card-animate {
    animation-name: dlCardAnimation;
    animation-duration: 600ms;
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(0.83, 0, 0.17, 1);
    animation-fill-mode: forwards;
}

/* Channels */
#channelsContainer table {
    max-width: 480px;
}




/* History */
.js-order > .lg-order-icon:before {
    font-size: 0.8rem;
    color: #FFFFFF;
    content: "\25BC";
}

.js-order.des > .lg-order-icon:before {
    content: "\25B2";
}

table.lg-history tr.deeplink-row-info:not(.d-none) + tr {
    box-shadow: 0px 0px 12px 0px #BBBBBB;
}

table.lg-history tr.deeplink-row:hover td {
    background-color: #f0f0f0 !important;
    cursor: pointer;
}

/* TD info */
table.lg-history tr.lg-row.deeplink-row-info td {
    padding: 1rem 1rem 2rem;
}

table.lg-history tr.lg-row td {
    background-color: #FFFFFF;
    padding: 0.5rem 1rem;
}

/* Zebra cada dos filas */
table.lg-history tr.lg-row:nth-child(4n+1) td,
table.lg-history tr.lg-row:nth-child(4n+2) td {
    background-color: #f8f9fa;
}

table.lg-history thead th {
    background-color: #000000;
}

table.lg-history tr th:nth-child(1) {
    width: 43%;
}
table.lg-history tr th:nth-child(2) {
    width: 10%;
}
table.lg-history tr th:nth-child(3) {
    width: 18%;
}
table.lg-history tr th:nth-child(4) {
    width: 12%;
}
table.lg-history tr th:nth-child(5) {
    width: 12%;
}
table.lg-history tr th:nth-child(6) {
    width: 5%;
}


/* Animación del div con la info del DL */
/* 
.js-deeplink-row-info > td > div {
    position: absolute;
    left: -9999px;
    overflow: hidden;
    transition: height 0.5s ease-out;
}

.js-deeplink-row-info > td > div.is-visible {
    position: relative;
    left: auto;
    transition: height 0.5s ease-out;
}
 */


/* Filtros */
.dropdown-menu {
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    inline-size: max-content;
    max-width: 320px;
}

.dropdown-item.active, .dropdown-item:active {
    color: #FFFFFF;
    text-decoration: none;
    background-color: #A100FF;;
}


/* Navegación */
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes slide-up {
    0% {
        transform: translateY(20px);
    }
    100% {
        transform: translateY(0);
    }
}

.container[data-opening] {
    animation-name: slide-up, fade-in;
    animation-duration: 300ms;
    animation-fill-mode: forwards;
}

.container[data-closing] {
    animation-name: fade-out;
    animation-duration: 300ms;
    animation-fill-mode: forwards;
}
