/* Tailwind css */
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/ *,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.grid{display:grid}.h-full{height:100%}.w-1\/2{width:50%}.w-3\/4{width:75%}.w-full{width:100%}.flex-grow{flex-grow:1}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem*var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}.rounded{border-radius:.25rem}.border{border-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.border-gray-700{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity,1))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity,1))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.p-3{padding:.75rem}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pt-3{padding-top:.75rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.leading-none{line-height:1}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}

/* Basic css */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #0f0f10;
    color: white;
    /* display: flex;
    justify-content: center;
    align-items: center; */
    height: 100vh;
}
.login {
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}
.login-container {
    display: flex;
    background: #1c1c1e;
    border-radius: 12px;
    overflow: hidden;
    width: 900px;
    height: 400px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
.login-left {
    flex: 1;
    background-color: #002b36;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.irs-logo {
    max-width: 200px;
    margin-bottom: 20px;
}
.login-left h2 {
    color: #fff;
    text-align: center;
}
.login-right {
    flex: 1;
    padding: 40px;
    background-color: #1c1c1e;
}
.login-right h2 {
    margin-bottom: 20px;
}
form {
    display: flex;
    flex-direction: column;
}
input {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 4px;
    border: none;
    background-color: #2c2c2e;
    color: white;
}
button {
    padding: 12px;
    background-color: #ff8c00;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}
#error-message {
    color: red;
    margin-top: 10px;
}
body {
  margin: 0;
  background: #0f0f10;
  font-family: Arial, sans-serif;
  color: #fff;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.topbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  grid-area: 1 / 2 / 2 / 6;
  padding: 20px 30px;
}

.topbar-container {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.topbar .logo {
  color: orange;
  font-weight: bold;
  font-size: 20px;
}

.topbar nav a {
  color: #ddd;
  margin-left: 20px;
  text-decoration: none;
}

.topbar nav a.active {
  color: orange;
}

#logout-message {
  display: block;
  margin: 0;
}

.content {
  padding: 30px;
}

.welcome-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.welcome-card .small-text {
  font-size: 12px;
  color: #aaa;
}

.title {
  color: orange;
  margin-left: 30px;
  grid-area: 2 / 2 / 3 / 6;
}

.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  margin-right: 30px;
  margin: 0 30px 30px 30px;
}

.stat-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  flex: 1;
  min-width: 200px;
  text-align: center;
  font-weight: bold;
  color: orange;
  font-size: 18px;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  color: #fff;
}

.graphs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
}

.graph-box {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
}

.sidebar {
  background: #0c0c0d;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  grid-area: 1 / 1 / 6 / 2;
}

.sidebar .logo {
  display: flex;
  justify-content: center;
}

.sidebar .logo img {
  width: 150px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  color: #fff;
  padding: 12px 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.sidebar ul li.active,
.sidebar ul li:hover {
  background: orange;
  color: #111;
}

.user-name {
  color: #fff;
  margin-right: 15px;
  font-weight: bold;
  margin: 0;
}

.user-role {
  background: #333;
  font-size: 12px;
  padding: 3px 6px;
  margin-left: 5px;
  border-radius: 5px;
  color: orange;
}

.user-menu {
  position: relative;
  cursor: pointer;
}

.user-menu .circle {
  width: 32px;
  height: 32px;
  background: orange;
  border-radius: 50%;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.user-menu:hover .dropdown {
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  right: 0;
  background: #222;
  top: 42px;
  border-radius: 5px;
  box-shadow: 0 2px 10px #00000066;
  overflow: hidden;
  z-index: 1000;
}

.dropdown div {
  padding: 10px 20px;
  cursor: pointer;
  color: #fff;
}

.dropdown div:hover {
  background: orange;
  color: #111;
}

/* .layout {
  display: flex;
  min-height: 100vh;
} */

.graph-columns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 30px 0 30px;
}

.graph-col {
  flex: 1;
  min-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main {
  display: grid;
  grid-template-columns: 0.5fr repeat(4, 1fr);
  grid-template-rows: 0.1fr 0.1fr 0.1fr repeat(2, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

@keyframes myAnim {
	0% {
    opacity: 0;
		/* transform: scale(0.1); */
	}

	100% {
    opacity: 1;
		/* transform: scale(1); */
	}
}

.stat-container {
  /* width: 50%; */
  grid-area: 3 / 2 / 6 / 6;
  margin-bottom: 30px;
  animation: myAnim 2s ease 0s 1 normal forwards;
}

.employee-container {
  grid-area: 3 / 2 / 6 / 6;
  margin: 0 30px 30px 30px;
  height: 77vh;
  animation: myAnim 2s ease 0s 1 normal forwards;
}

.hidden_element_dashboard {
  display: none;
}

/* Gestion employé */
.actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 30px 0;
  gap: 1rem;
}
#searchInput,
#searchInputArticle {
  padding: 0.7rem 1rem;
  border: 1px solid #444;
  border-radius: 999px;
  background-color: #1a1a1a;
  color: white;
  flex: 1;
  max-width: 300px;
}
#addEmployeeBtn,
#addArticleBtn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: orange;
  color: black;
  border: none;
  padding: 0.7rem 1.2rem;
  font-weight: bold;
  border-radius: 999px;
  cursor: pointer;
}
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal {
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 12px;
  width: 350px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal h2 {
  margin: 0;
  color: white;
}
.modal input[type="text"],
.modal input[type="file"] {
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  background: #333;
  color: white;
}
.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}
.modal-actions .validate,
.modal-actions .cancel {
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.modal-actions .validate {
  background: orange;
  color: black;
}
.modal-actions .cancel {
  background: #555;
  color: white;
}
.file-input-wrapper input[type="file"] {
  display: none;
}
.photo-label{
  width: 100%;
}
.photo-preview {
  max-width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin: auto;
  margin-top: 30px;
  margin-bottom: 30px;
  display: none;
}
.modal input[type="text"] {
  margin-bottom: 20px;
  align-items: center;
}
.modal input[type="text"] {
  margin-bottom: 20px !important;
}
.file-input-wrapper {
  border-radius: 6px;
  background: #333;
  margin-bottom: 20px;
  width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
}
table thead {
  background: #1b1b1d;
}
table th, table td {
  padding: 1rem;
  text-align: center;
}
table td small {
  color: gray;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.actions button {
  margin-right: 0.5rem;
  background: #222;
  color: white;
  border: none;
  padding: 0.4rem;
  border-radius: 4px;
  cursor: pointer;
}
.container-photoLink{
  display: flex;
  flex-direction: column;
}

/* gestion article */
.article-container {
  grid-area: 3 / 2 / 6 / 6;
  margin: 0 30px 30px 30px;
  height: 77vh;
  animation: myAnim 2s ease 0s 1 normal forwards;
}
#articleTable {
  overflow: scroll;
  max-height: 75vh;
}

/* gestion ticket */
.ticket-container {
  grid-area: 3 / 2 / 6 / 6;
  margin: 0 30px 30px 30px;
  animation: myAnim 2s ease 0s 1 normal forwards;
}
.ligne-titre {
  display: flex;
  align-items: center;
  color: #888; /* Gris pour le texte */
}
.ligne-titre p {
  margin: 0;
  padding-right: 10px;
  white-space: nowrap;
  color: inherit;
}
.ligne-titre hr {
  flex-grow: 1;
  border: none;
  border-top: 1px solid #888; /* Gris aussi */
  margin: 0;
}
.button_cat,
.button_cat2,
.button_article{
  width: max-content;
}