/* ROOT */

:root {
    --dark-gray: #ffffff;
    --text-gray: #727477;
    --gray: #ececec;
    --white: #5e6064;
    --realwhite: #ffffff;
}

.dark-mode {
    --dark-gray: #131414;
    --text-gray: #727477;
    --gray: #212224;
    --white: #ffffff;
    --realwhite: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: block !important;
    /* height: 100vh; */
    /* display: flex; */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 400;
    background-color: var(--dark-gray);
    color: var(--text-gray);
    padding: 0;
    margin: 0;
    color-scheme: light;
    justify-content: center;
    align-items: center;
}

body.dark-mode { color-scheme: dark; }

/* PREFAB */

.bold {
    font-weight: bold;
}

.hide {
    display: none!important;
}

.block {
    display: block;
}
  
.padding-down {
    display: block;
    padding-bottom: 20px;
}

.force-center {
    align-items: center;
    text-align: center;
}

.grey {
    color: var(--text-gray);
}

.gradient-red {
  background: 
    radial-gradient(circle at top right, rgba(255, 0, 0, 0.2) 0%, transparent 20%);
}

.gradient-orange {
  background: 
    radial-gradient(circle at top right, rgba(255, 128, 0, 0.2) 0%, transparent 20%);
}

.gradient-yellow {
  background: 
    radial-gradient(circle at top right, rgba(255, 234, 0, 0.2) 0%, transparent 20%);
}
.gradient-green {
  background: 
    radial-gradient(circle at top right, rgba(17, 255, 0, 0.2) 0%, transparent 20%);
}
.gradient-blue {
  background: 
    radial-gradient(circle at top right, rgba(0, 119, 255, 0.2) 0%, transparent 20%);
}

.sortable {
    cursor: pointer
}

/* SCREEN */

.container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* SCREEN : LOGIN */

.left-section {
    flex: 1;
    background: url("../../assets/images/login_background.jpg");
    background-color: var(--dark-gray);
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
}

.left-section img {
    width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.right-section {
    flex: 1;
    background-color: var(--dark-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 24px;
    color: var(--realwhite);
}

.quote {
    font-size: 20px;
    color: var(--realwhite);
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}
  
.author {
    font-size: 20px;
    color: var(--realwhite);
    font-weight: bold;
    text-align: center;
}

.auth-card {
    background-color: var(--dark-gray);
    padding: 40px;
    max-width: 600px;
    width: 100%;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    color: var(--white);
}
  
.subtitle {
    font-size: 14px;
    text-align: center;
    color: var(--white);
    margin-bottom: 20px;
}
  
.auth-form {
    display: flex;
    flex-direction: column;
}
  
.input-group {
    margin-bottom: 15px;
}
  
.input-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--gray);
    background-color: var(--dark-gray);
    color: var(--white);
    font-size: 16px;
}
  
.input-group input::placeholder {
    color: var(--text-gray);
}
  
.input-group input:focus {
    outline: none;
    border-color: var(--gray);
}
  
.auth-button {
    padding: 12px;
    background-color: var(--white);
    color: var(--dark-gray);
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
}

.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}
  
.divider span {
    font-size: 14px;
    color: var(--text-gray);
    background-color: var(--dark-gray);
    padding: 0 10px;
    z-index: 1;
    position: relative;
  }
  
.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 60px);
    height: 1px;
    background-color: var(--gray);
}
  
.divider::before {
    left: 0;
}
  
.divider::after {
    right: 0;
}

.auth-footer {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-gray);
    text-align: center;
}
  
.auth-footer a {
    color: var(--white);
    text-decoration: none;
}
  
.auth-footer a:hover {
    text-decoration: underline;
}
  
/* MENU : LI */

li[disabled]{
    cursor: not-allowed !important;
    opacity: 0.5;
}

/* MENU : SCROLL BAR */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-gray);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-gray);
    border-radius: 10px;
    border: 2px solid var(--dark-gray);
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* MENU : INPUT */

input, .dropdown-button {
    width: calc(100% - 12px);
    margin: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: var(--gray);
    color: var(--white);
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    transition: color 0.2s ease !important;
}

input:focus {
    outline: none;
    border: none;
}

input::placeholder {
    color: var(--text-gray);
}

input[disabled],select[disabled] {
    cursor: not-allowed !important;
    opacity: 0.5;
}

input[disabled]:hover, select[disabled]:hover {
    background-color: var(--gray) !important;
    color: var(--white) !important;
    cursor: not-allowed !important;
}

input[type="file"] {
    display: none;
}
  
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px !important;
    height: 20px !important;
    background-color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
  
input[type="checkbox"]:checked {
    background-color: var(--white);
}
  
input[type="checkbox"]:checked::after {
    content: '✔';
    font-size: 10px;
    font-weight: bold;
    color: var(--dark-gray);
    position: absolute;
}
  
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    background-color: var(--dark-gray) !important;
    color: var(--white) !important;
    -webkit-text-fill-color: var(--white) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--dark-gray) inset !important;
}

/* MENU : TEXTAREA */

textarea {    
    resize: none;
    width: calc(100% - 12px);
    height: 10vh;
    margin: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: var(--gray);
    color: var(--white);
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    transition: color 0.2s ease !important;
}
  
textarea::placeholder {
    color: var(--text-gray);
}

/* MENU : DROPDOWN */

.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

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

.dropdown-toggle {
    text-align: left;
    flex: 1;
    padding: 8px 12px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    width: 100%;
    overflow-x: hidden;
    background-color: var(--dark-gray);
    border: 1px solid var(--gray);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    border-radius: 8px;
    transition: background-color 0.2s ease !important;
    transition: color 0.2s ease !important;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu label {
    display: flex;
    align-items: center;
    vertical-align: middle;
    gap: 8px;
    padding: 5px;
    cursor: pointer;
    color: var(--white);
}

.dropdown-menu input[type="checkbox"] {
    flex-shrink: 0;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    border: 1px solid var(--white);
}

.dropdown-menu label:hover {
    background-color: var(--white);
    color: var(--dark-gray);
}

.dropdown-search-box {
    width: calc(100% - 12px);
    margin: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-decoration: none !important;
}

/* MENU : SELECT */

select,.select-dropdown {
    appearance: none;
    width: calc(100% - 12px);
    margin: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: var(--gray);
    color: var(--white);
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    transition: color 0.2s ease !important;
}

select option {
    color: var(--white);
    background-color: var(--dark-gray);
}
  
select option:hover {
    background-color: var(--gray);
    color: var(--white);
}

.custom-select {
    position: relative;
}
  
.select-dropdown {
    top: 100%;
    left: 0;
    background-color: var(--dark-gray);
    display: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    margin-bottom: 10px;
}
  
.select-item {
    padding: 8px;
    cursor: pointer;
}
  
.select-item:hover,
.select-item:focus {
    color: var(--white);
    background-color: var(--gray);
    outline: none;
}
  
select:hover,
select:focus {
    color: var(--white);
    background-color: var(--gray);
    outline: none;
}

/* MENU : BUTTON */

button {
    margin: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background-color: var(--gray);
    color: var(--white);
    cursor: pointer;
    text-align: center;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    transition: color 0.2s ease !important;
}

button:hover {
    background-color: var(--white) !important;
    color: var(--dark-gray) !important;
}

button.active {
    color: var(--dark-gray) !important;
    background-color: var(--white) !important;
}

button[disabled] {
    cursor: not-allowed !important;
    opacity: 0.5;
}

button[disabled]:hover {
    background-color: var(--gray) !important;
    color: var(--white) !important;
    cursor: not-allowed !important;
}

.back_red:hover {
    background-color: #E57373 !important;
    color: var(--text-gray) !important;
}

.txt_red:hover {
    color: #E57373 !important;
}

.back_green:hover {
    background-color: #a6e573 !important;
    color: var(--text-gray) !important;
}

.txt_green:hover {
    color: #a6e573 !important;
}

/* IMAGE : ICON PICTO */

a .fa,
a .fa-solid,
a .fas {
    color: var(--text-gray);
}
  
a .fa:hover,
a .fa-solid:hover,
a .fas:hover {
    color: var(--white);
}

/* IMAGE : CANVAS */

canvas {
    display: block;
}

/* IMAGE : SVG */

.svg-white {
    filter: brightness(0) invert(0);
}

.dark-mode .svg-white {
    filter: brightness(0) invert(1) !important;
}

/* SLIDER BUTTON */

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin: 10px;
    vertical-align: middle;
}
  
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
  
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray);
    transition: .4s;
    border-radius: 34px;
}
  
.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    border-radius: 50%;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: .4s;
}
  
input:checked + .slider {
    background-color: var(--white);
}
  
input:checked + .slider:before {
    transform: translateX(20px);
    background-color: var(--dark-gray);
}

/* OLD */


.status-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
  }
  
  .status-circle.green {
    background-color: green;
  }
  
  .status-circle.red {
    background-color: red;
  }
  
  .status-circle.orange {
    background-color: rgb(255, 196, 0);
  }
  
  .task-container {
    width: 100%;
  }
  
  .task-header {
    margin-bottom: 20px;
  }
  
  
  
  .welcome-title {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 8px;
  }
  
  .welcome-subtitle {
    font-size: 14px;
    color: var(--text-gray);
  }
  
  .task-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap:1rem;
  }

  .task-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap:1rem;
  }

  .task-img {
    max-height: 30px;
    width: 50px;
    object-fit: contain;
    cursor: pointer;
    align-items: center;
    text-align: center;
    justify-content: center;
    vertical-align: middle;
  }
  
  .screen-img {
    /* min-height: 400px; */
    /* min-width: 400px; */
    max-height: 400px;
    max-width: 400px;
    height: auto;
    width: 70%;
    padding: 20px;
    object-fit: contain;
    cursor: pointer;
  }

  .screen {
    display: flex;
    overflow-y: hidden;
  }
  
  .left-screen {
    flex: 1;
    overflow-y: auto;
    padding-left: 5px;
    padding-right: 5px;
  }
  
  .form-screen, .form-screen_2 {
    padding-top: 10px;
    margin-left: 5px;
    margin-right: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .form-screen small {
    flex: 1 1 calc(33.33% - 0.5rem);
    box-sizing: border-box;
  }
  
  .form-screen_2 small {
    flex: 1 1 calc(50% - 0.5rem);
    box-sizing: border-box;
  }
  
  .form-screen button {
    flex: 0 0 100%;
    margin-bottom: 5px;
    height: 40px;
    width: 100%;
  }
  
  .right-screen {
    flex: 2;
    overflow-y: auto;
    padding-left: 5px;
    padding-right: 5px;
  }
  
  .task-left {
    display: flex;
    align-items: center;
  }
  
  .task-right {
    display: flex;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: auto;
  }

  /* CARDS styles */

  .cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
  }
  

  /* Style des cartes */
  .screen-card {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--dark-gray);
    color: var(--white);
    padding: 16px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
  }
  
  .screen-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  }
  
  /* Header : boutons edit et delete */
  .card-header {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
  }
  
  /* Contenu principal */
  .card-body {
    text-align: center;
  }
  
  .card-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
  }
  
  .card-text {
    font-size: 14px;
    color: var(--light-gray);
    margin-top: 4px;
  }
  
  /* Footer */
  .card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
  }
  
  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  
  .task-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }
  
  .task-table th,
  .task-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray);
  }
  
  .task-table th {
    /* background-color: var(--dark-gray); */
    color: var(--text-gray);
    font-size: 15px;
  }
  
  .task-table td {
    /* background-color: var(--dark-gray); */
    color: var(--white);
  }
  
  .task-category {
    display: inline-block;
    padding: 4px 8px;
    color: var(--white);
    border-radius: 4px;
    border: 1px solid var(--gray);
    font-size: 12px;
    margin-right: 8px;
  }
  
  .task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    font-size: 14px;
  }
  
  .pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  
  .pagination span {
    white-space: nowrap;
  }
  
  /**************/
  /*** POPUP ****/
  /**************/
  
  .popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  #popupCamera {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90vw;
    height: 70vh;
    max-width: 800px;
    max-height: 600px;
    background-color: black;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
  }
  
  #popupCamera video {
    width: 100% !important;
    height: 100% !important;
    max-width: 640px;
    object-fit: cover;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  
  #popupCamera canvas {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
    pointer-events: none;
  }
  
  
  .popup img {
    max-width: 90%;
    max-height: 90%;
    cursor: pointer;
  }
  
  .popup:active {
    cursor: pointer;
  }
  
  /*****************/
  /*** dashboard ***/
  /*****************/
  
  .dashboard-container {
    width: 100%;
    margin: 20 20;
    padding: 20px;
    background-color: var(--dark-gray);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    box-sizing: border-box;
    align-items: center;
  }
  
  /* Titre et sous-titre de la page */
  .dashboard-header {
    display: flex;
    width: 100%;
    justify-content: space-between; /* Assure l'espacement entre gauche et droite */
    align-items: center; /* Aligne les éléments verticalement */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray);
  }
  
  .header-left {
    display: flex;
    align-items: center;
    margin-left: 50px;
  }
  
  .header-title {
    display: block;
  }
  
  .dashboard-title {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 8px;
  }
  
  .dashboard-subtitle {
    font-size: 14px;
    color: var(--white);
  }
  
  .header-right {
    display: flex; /* Pour aligner le texte et l'image */
    align-items: center; /* Centrer verticalement l'avatar et le username */
    margin-right: 50px;
  }
  
  .dashboard-image {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--gray);
    background-color: var(--white);
  }
  
  /* Structure de la page des paramètres */
  .dashboard-body {
    display: flex;
    width: 100%;
    min-height: auto;
    flex: 1;
    overflow: hidden;
  }
  
  /* Menu de navigation à gauche */
  
  .text-link {
    text-decoration: none;
    color: var(--white);
  }

  .hide-left {
    display: none !important;
  }
  
  .dashboard-nav {
    display: flex;
    flex: 1;
    flex-basis: 30vh;
    width: 30vh;
    margin-right: 20px;
    border-right: 1px solid var(--gray);
    padding-right: 20px;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
  }

  .version {
    list-style: none;
    padding-left: 0;
    color: var(--text-gray);
    font-size: 10px;
    text-decoration: none;
  }
  
  .dashboard-nav-item {
    display: flex;
    flex: 1;
    gap: 10px;
    padding: 10px;
    color: var(--white);
    cursor: pointer;
    border-radius: 4px;
    margin: 5px;
  }
  
  .dashboard-nav-item .margin-right {
    margin-right: 5%;
  }
  
  .dashboard-nav-item i {
    width: 10%;
    color: var(--text-gray);
  }
  
  .dashboard-nav-item.active i {
    color: var(--white);
  }
  
  .dashboard-nav-item:hover {
    background-color: var(--gray);
  }
  
  .dashboard-nav-item.active {
    background-color: var(--gray);
  }
  
  .dashboard-nav-item.open {
    background-color: var(--dark-gray);
  }
  .dashboard-nav-item.open.active {
    background-color: var(--dark-gray);
  }

  /* SUBMENU */
  
  .has-submenu {
    display: flex;
    flex-direction: column;
  }

  .has-submenu.open .submenu {
    display: block;
  }
  
  .submenu {
    display: none;
    list-style: none;
    flex-direction: column;
  }
  
  .submenu li {
    padding: 8px 12px;
    background: var(--dark-gray);
  }
  
  .submenu li:hover {
    background: var(--gray);
  }
  
  /* END : SUBMENU */
  
  .dashboard-content {
    display: flex;
    flex: auto;
    width: 100%;
    height: 100%;
    background-color: var(--dark-gray);
    border-radius: 8px;
    overflow-x: auto;
  }
  
/* Sections de contenu */
.dashboard-section {
    display: none;
    color: var(--white);
}
  
.dashboard-section.active {
    display: block;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
  
.dashboard-section h2 {
    color: var(--white);
    padding-bottom: 10px;
}
  
.title-menu {
    margin-top: 20px;
    margin-bottom: 20px;
}

.mobile-label {
    font-size: 12px;
}

/* STEP MENU */

.arrow-steps {
	left: 0;
	right: 0;
  padding-top: 10px;
  padding-bottom: 20px;
}

.arrow-steps .step {
	font-size: 14px;
	text-align: center;
	color: var(--text-gray);
	background-color: var(--gray);
	cursor: default;
	margin: 0 3px;
	padding: 10px 10px 10px 30px;
	min-width: 180px;
	float: left;
	position: relative;
	border-right: none !important;	
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none; 
}

.arrow-steps .step:after,
.arrow-steps .step:before {
	content: " ";
	position: absolute;
	top: 0;
	right: -17px;
	width: 0;
	height: 0;
	border-top: 19px solid transparent !important;
	border-bottom: 17px solid transparent !important;
	border-left: 17px solid var(--gray) !important;	
	z-index: 2;
}

.arrow-steps .step:before {
	right: auto;
	left: 0;
	border-left: 17px solid var(--dark-gray) !important;	
	z-index: 0;
}

.arrow-steps .step:first-child:before {
	border: none !important;
}

.arrow-steps .step:first-child {
	border-top-left-radius: 4px !important;
	border-bottom-left-radius: 4px !important;
}

.arrow-steps .step.active {
	color: var(--dark-gray);
	background-color: var(--white);
}

.arrow-steps .step.active:after {
	border-left: 17px solid var(--white) !important;	
}
  
/* RESPONSIVE */

.scan-hidden {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  border: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
}

.force-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 1500px) {

    .hide_1500 {
      display: none;
    }

}

@media (max-width: 1024px) {

    .hide_1024,.task-category {
        display: none;
    }

    .screen {
        flex-direction: column;
    }

    .left-screen, 
    .right-screen {
        height: 50%;
    }
    
    .screen-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    td[data-column="hide_1024"], 
    th[data-column="hide_1024"] { 
      display: none; 
    }

    td[data-column="loc"], 
    th[data-column="loc"], 
    td[data-column="hour"], 
    th[data-column="hour"], 
    td[data-column="brand"], 
    th[data-column="brand"], 
    td[data-column="ip"], 
    th[data-column="ip"], 
    td[data-column="power"], 
    th[data-column="power"], 
    td[data-column="lamp"], 
    th[data-column="lamp"], 
    td[data-column="stage_manager"], 
    th[data-column="stage_manager"], 
    td[data-column="isstage"], 
    th[data-column="isstage"], 
    td[data-column="zone"], 
    th[data-column="zone"], 
    td[data-column="weight"], 
    th[data-column="weight"], 
    td[data-column="price"], 
    th[data-column="price"], 
    td[data-column="supplier"], 
    th[data-column="supplier"], 
    td[data-column="desc"], 
    th[data-column="desc"], 
    td[data-column="fixture_type"], 
    th[data-column="fixture_type"], 
    td[data-column="update_date"], 
    th[data-column="update_date"], 
    td[data-column="edit"], 
    th[data-column="edit"] { 
      display: none; 
    }
}

/* DESKTOP */
@media (min-width: 769px) {
    .mobile-label {  
        display: none;
    }
}

/* TELEPHONE */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
        line-height: 1.4;
    }

    .task-filters{
        flex-direction:column;
        align-items:stretch;
        gap:.75rem;
    }

    .task-left,
    .task-right{
        width:100% !important;
        display:flex;
        flex-wrap:wrap;
        gap:.5rem;
    }

    .task-left .search-input{
        flex:1 1 0 !important;
        min-width:0;
        width:100% !important;
    }

    .phone-column {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .search-input {
      width: auto;
    }

    #popupCamera {
      width: 100vw;
      height: 100vh;
      max-width: none;
      max-height: none;
      border-radius: 0;
    }
  
    #popupCamera video {
      width: 100% !important;
      max-width: 640px;
      height: 100% !important;
    }
  
    /* td[data-column="hideglass"],  */
    /* th[data-column="hideglass"], */
  
    .hidephone,.left-section,.header-title,.task-footer p,.pagination span,.dashboard-section p {
      display: none;
    }
    
    .header-right {
      right: 0px;
      margin-right: 0px;
    }

    .menu-open .dashboard-content {
      display: none;
    }

    .screen {
      flex-direction: column;
      width: 100%;
    }

    .left-screen, 
    .right-screen {
      width: 100%;
    }

    .dashboard-nav {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      overflow-x: auto;
      overflow-y: auto;
      margin: 0;
      padding: 20px;
      flex-basis: auto;
      border-right: none;
      background-color: var(--dark-gray);
      z-index: 1000;
      transform: translateX(-100%);
      transition: transform 0.3s ease;
    }

    .dashboard-nav:not(.hide-left) {
      transform: translateX(0);
    }

    .has-submenu > span {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      width: 100%;
      gap: 8px;
    }

    .has-submenu .submenu {
      flex-direction: column;
    }

    /* .dashboard-nav-item {
      width: auto;
      margin: 5px;
      padding: 20px;
      padding-bottom: 5px;
      flex-direction: column;
    } */

    .dashboard-nav-item i {
        width: 100%;
        padding-top: 5px;
        font-size: 1.8rem;
    }

    .nav-title {
      color: var(--white);
      font-size: 16px;
      font-weight: bold;
      margin-left: 12px;
    }

  
    .screen-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* OVERLAY / SKELETON */

:root {
  --overlay-bg: rgba(255,255,255,0.96);
  --overlay-fg: #0f1115;
  --skeleton-base: #e9ecef;
  --skeleton-shine: #f6f7f8;
}

body.dark-mode {
  --overlay-bg: rgba(11,11,13,0.96);
  --overlay-fg: #eaeef7;
  --skeleton-base: #1b1d22;
  --skeleton-shine: #2a2d34;
}

body.has-overlay { overflow: hidden; }

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--overlay-bg);
  color: var(--overlay-fg);
  display: grid;
  place-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity .25s ease, visibility 0s linear 0s;
}

.loading-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}

.loader { text-align: center; max-width: 640px; padding: 16px; }

.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: currentColor;
  border-right-color: currentColor;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton-table { margin-top: 8px; }
.skeleton-row {
  height: 12px;
  border-radius: 8px;
  margin: 10px 0;
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 37%, var(--skeleton-base) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton-head { height: 16px; opacity: .85; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .skeleton-row { animation: none; }
}
