/* ------------------------------------------------------------------------------
 *
 *  # Custom CPanel styles
 *
 * ---------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root,
[data-color-theme=light]{
  --primary: #E5A000;
  --primary-rgb: 229, 160, 0;
  --primary-hover: #CC8F00;
  --bs-primary: #E5A000;
  --alpha-primary: #F8F7F2;
  --body-bg: #f8f6f1;
  --border-color: #e8e4dc;
  --body-font-size-lg: 1rem;
  --body-font-size-sm: 0.75rem;
  --body-font-size-xs: 0.625rem;
  --body-line-height-computed: calc(1375rem / 1000);
  --body-line-height-lg: 1.375;
  --body-line-height-sm: 1.8334;
  --body-line-height-xs: 2.2;
  --spacer-1: 0.3125rem;
  --spacer-2: 0.625rem;
  --spacer: 1.25rem;
  --spacer-4: 1.875rem;
  --spacer-5: 3.75rem;
  --icon-font-family: Phosphor;
  --icon-font-size: 1.25rem;
  --icon-font-size-lg: 1.5rem;
  --icon-font-size-sm: 1rem;
  --transition-base-timer: 0.15s;
  --transition-collapse-timer: 0.3s;
  --font-sans-serif: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --body-font-family: var(--font-sans-serif);
  --body-font-size: 0.875rem;
  --body-font-weight: 400;
  --body-line-height: 1.5715;
  --border-width: 1px;
  --border-style: solid;
  --border-radius: 0.5rem;
  --border-radius-sm: 0.5rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 2rem;
  --border-radius-pill: 50rem;
  --highlight-bg: rgba(0, 0, 0, 0.15);
}

/* Highcharts extendable category labels (Production screen) */
.extendable-label {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  transition: all 0.15s ease-in-out;
  padding: 3px 8px;
  margin-left:-2px;
}
.extendable-label:hover {
  max-width: none;
  position: relative;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  color: #0f172a;
  font-weight: 600;
}

/* Fancytree Folder & File Icons (CheckPOP V1 Parity) */
.fancytree-container .fancytree-checkbox,
.fancytree-checkbox,
span.fancytree-checkbox,
.fancytree-custom-icon {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.fancytree-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  background-image: none !important;
  margin-right: 4px;
}
.fancytree-icon::after {
  display: none !important;
}
.fancytree-folder .fancytree-icon::before {
  content: "📁";
  font-size: 13px;
}
.fancytree-folder.fancytree-expanded .fancytree-icon::before {
  content: "📂";
  font-size: 13px;
}
.fancytree-node:not(.fancytree-folder) .fancytree-icon::before {
  content: "📄";
  font-size: 13px;
}

.fancytree-node.fancytree-selected,
.fancytree-node.fancytree-active {
  background-color: #e2e8f0 !important;
  border-radius: 4px;
}
.fancytree-node.fancytree-selected .fancytree-title,
.fancytree-node.fancytree-active .fancytree-title {
  font-weight: 600;
  color: #0f172a;
}

/* Masquer le bouton natif de réinitialisation du zoom Highcharts (remplacé par le bouton CTA du header) */
.highcharts-reset-zoom,
.highcharts-button.highcharts-reset-zoom,
.highcharts-button {
  display: none !important;
  visibility: hidden !important;
}

/* Positionnement des 5 boîtes d'informations de pertes sous le graphique TRS principal */
.loss-informations {
  position: absolute;
  top: 370px !important;
  left: 0;
  width: 100%;
  padding: 4px 10px 4px 135px;
  display: flex;
  column-gap: 8px;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}
.loss-info {
  display: flex;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.825rem;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.loss-info.loss-success {
  background: rgba(240, 253, 244, 0.95);
  border-color: #86efac;
}
.loss-info.loss-success .loss-value {
  color: #16a34a;
}
.loss-info.loss-danger {
  background: rgba(254, 242, 242, 0.95);
  border-color: #fca5a5;
}
.loss-info.loss-danger .loss-value {
  color: #dc2626;
}
.loss-value {
  margin-left: 4px;
}
.btn-primary{
	--btn-bg:var(--primary);
	--btn-border-color:var(--primary);
	--btn-disabled-bg:var(--primary);
	--btn-disabled-border-color:var(--primary);
	--btn-hover-bg:var(--primary-hover);
	--btn-hover-border-color:var(--primary-hover);
	--btn-active-bg:var(--primary-hover);
	--btn-active-border-color:var(--primary-hover);
	--btn-focus-shadow-rgb:var(--primary-rgb);
}
.btn-outline-primary{
	--btn-color:var(--primary);
	--btn-border-color:var(--primary);
	--btn-hover-bg:var(--primary);
	--btn-hover-border-color:var(--primary);
	--btn-focus-shadow-rgb:var(--primary-rgb);
	--btn-active-bg:var(--primary-hover);
	--btn-active-border-color:var(--primary);
	--btn-disabled-color:var(--primary);
}
.btn-outline-primary:active{
	--btn-color:#fff;
}
.card{
	--card-border-radius:var(--border-radius-xl);
}

/* General */
#alert-container {
    display: none;
    left: 10%;
    position: fixed;
    top: 60px;
    width: 80%;
    z-index: 2000;
}
#alert-container .alert {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
.sortable-placeholder + .panel.mb-10{
	margin-top:10px;
}

/* sidebar */
.sidebar-main .sidebar-logo a{
	color:var(--body-color);
}
.nav-sidebar{
	--nav-link-active-color:var(--body-color);
}

/* navbar */

/* cards */
[data-card-action=collapse] svg {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
  transition: -webkit-transform ease-in-out var(--transition-collapse-timer);
  transition: transform ease-in-out var(--transition-collapse-timer);
  transition: transform ease-in-out var(--transition-collapse-timer), -webkit-transform ease-in-out var(--transition-collapse-timer);
}
@media (prefers-reduced-motion: reduce) {
  [data-card-action=collapse] svg {
    transition: none;
  }
}
.card-collapsed [data-card-action=collapse] svg {
  -webkit-transform: rotate(0deg);
          transform: rotate(0deg);
}

/* light color whitout opacity */
.alpha-indigo{
	background-color:var(--alpha-indigo) !important;
}
.alpha-purple{
	background-color:var(--alpha-purple) !important;
}
.alpha-pink{
	background-color:var(--alpha-pink) !important;
}
.alpha-teal{
	background-color:var(--alpha-teal) !important;
}
.alpha-yellow{
	background-color:var(--alpha-yellow) !important;
}
.alpha-primary{
	background-color:var(--alpha-primary) !important;
}
.alpha-secondary{
	background-color:var(--alpha-secondary) !important;
}
.alpha-success{
	background-color:var(--alpha-success) !important;
}
.alpha-info{
	background-color:var(--alpha-info) !important;
}
.alpha-warning{
	background-color:var(--alpha-warning) !important;
}
.alpha-danger{
	background-color:var(--alpha-danger) !important;
}
.alpha-black{
	background-color:var(--alpha-black) !important;
}
.alpha-white{
	background-color:var(--alpha-white) !important;
}

/* grid system */
.grid-cols-2{
	grid-template-columns:repeat(2,1fr);
}
.grid-cols-3{
	grid-template-columns:repeat(3,1fr);
}
.grid-cols-4{
	grid-template-columns:repeat(4,1fr);
}
.grid-cols-5{
	grid-template-columns:repeat(5,1fr);
}
.grid-cols-6{
	grid-template-columns:repeat(6,1fr);
}
.grid-cols-8{
	grid-template-columns:repeat(8,1fr);
}
.grid-cols-10{
	grid-template-columns:repeat(10,1fr);
}
.grid-cols-12{
	grid-template-columns:repeat(12,1fr);
}
@media (min-width: 576px) {
	.grid-sm-cols-2{
		grid-template-columns:repeat(2,1fr);
	}
	.grid-sm-cols-3{
		grid-template-columns:repeat(3,1fr);
	}
	.grid-sm-cols-4{
		grid-template-columns:repeat(4,1fr);
	}
	.grid-sm-cols-5{
		grid-template-columns:repeat(5,1fr);
	}
	.grid-sm-cols-6{
		grid-template-columns:repeat(6,1fr);
	}
	.grid-sm-cols-8{
		grid-template-columns:repeat(8,1fr);
	}
	.grid-sm-cols-10{
		grid-template-columns:repeat(10,1fr);
	}
	.grid-sm-cols-12{
		grid-template-columns:repeat(12,1fr);
	}
}
@media (min-width: 768px) {
	.grid-md-cols-2{
		grid-template-columns:repeat(2,1fr);
	}
	.grid-md-cols-3{
		grid-template-columns:repeat(3,1fr);
	}
	.grid-md-cols-4{
		grid-template-columns:repeat(4,1fr);
	}
	.grid-md-cols-5{
		grid-template-columns:repeat(5,1fr);
	}
	.grid-md-cols-6{
		grid-template-columns:repeat(6,1fr);
	}
	.grid-md-cols-8{
		grid-template-columns:repeat(8,1fr);
	}
	.grid-md-cols-10{
		grid-template-columns:repeat(10,1fr);
	}
	.grid-md-cols-12{
		grid-template-columns:repeat(12,1fr);
	}
}
@media (min-width: 992px) {
	.grid-lg-cols-2{
		grid-template-columns:repeat(2,1fr);
	}
	.grid-lg-cols-3{
		grid-template-columns:repeat(3,1fr);
	}
	.grid-lg-cols-4{
		grid-template-columns:repeat(4,1fr);
	}
	.grid-lg-cols-5{
		grid-template-columns:repeat(5,1fr);
	}
	.grid-lg-cols-6{
		grid-template-columns:repeat(6,1fr);
	}
	.grid-lg-cols-8{
		grid-template-columns:repeat(8,1fr);
	}
	.grid-lg-cols-10{
		grid-template-columns:repeat(10,1fr);
	}
	.grid-lg-cols-12{
		grid-template-columns:repeat(12,1fr);
	}
}
@media (min-width: 1200px) {
	.grid-xl-cols-2{
		grid-template-columns:repeat(2,1fr);
	}
	.grid-xl-cols-3{
		grid-template-columns:repeat(3,1fr);
	}
	.grid-xl-cols-4{
		grid-template-columns:repeat(4,1fr);
	}
	.grid-xl-cols-5{
		grid-template-columns:repeat(5,1fr);
	}
	.grid-xl-cols-6{
		grid-template-columns:repeat(6,1fr);
	}
	.grid-xl-cols-8{
		grid-template-columns:repeat(8,1fr);
	}
	.grid-xl-cols-10{
		grid-template-columns:repeat(10,1fr);
	}
	.grid-xl-cols-12{
		grid-template-columns:repeat(12,1fr);
	}
}
@media (min-width: 1400px) {
	.grid-xxl-cols-2{
		grid-template-columns:repeat(2,1fr);
	}
	.grid-xxl-cols-3{
		grid-template-columns:repeat(3,1fr);
	}
	.grid-xxl-cols-4{
		grid-template-columns:repeat(4,1fr);
	}
	.grid-xxl-cols-5{
		grid-template-columns:repeat(5,1fr);
	}
	.grid-xxl-cols-6{
		grid-template-columns:repeat(6,1fr);
	}
	.grid-xxl-cols-8{
		grid-template-columns:repeat(8,1fr);
	}
	.grid-xxl-cols-10{
		grid-template-columns:repeat(10,1fr);
	}
	.grid-xxl-cols-12{
		grid-template-columns:repeat(12,1fr);
	}
}

/* tables */
.table-sm{
	--table-cell-padding-x: 1rem;
}
.table-xs{
	--table-cell-padding-x: 0.625rem;
}
.table-xxs{
	--table-cell-padding-y: 0.375rem;
	--table-cell-padding-x: 0.5rem;
}
/* Datatable */
.datatable-header .dataTables_filter{
	margin-left:0;
}
.datatable-toolbar{
	display:flex;
	align-items:center;
	justify-content:space-between;
	flex-wrap:wrap;
	width:100%;
	column-gap:0.625rem;
}
.datatable-toolbar .dataTables_length{
	margin-left:auto;
}
.dataTables_wrapper .table-sm{
	--dt-spacer-x:1rem;
	--dt-spacer-y:1rem;
}
.dataTables_wrapper .table-xs{
	--dt-spacer-x:0.625rem;
	--dt-spacer-y:0.625rem;
}
.dataTables_wrapper .table-xxs{
	--dt-spacer-x:0.5rem;
	--dt-spacer-y:0.5rem;
}
.dataTable thead .sorting:before,
.dataTable thead .sorting:after,
.dataTable thead .sorting_asc_disabled:before,
.dataTable thead .sorting_desc_disabled:after{
	right:calc(var(--dt-spacer-y) - 5px);
}
.dataTable tr > .dtfc-fixed-left{
	position:sticky;
	left:0;
	z-index:4;
	box-shadow:1px 0 0 var(--border-color);
}
.dataTable tr > .dtfc-fixed-right{
	position:sticky;
	right:0;
	z-index:4;
	box-shadow:-1px 0 0 var(--border-color);
}
.dataTable thead tr > .dtfc-fixed-left,
.dataTable thead tr > .dtfc-fixed-right{
	z-index:5;
}
.dataTables_scrollBody .table thead tr,
.dataTables_scrollBody .table thead th,
.dataTables_scrollBody .table thead td{
	border-bottom-width:0 !important;
}

/* users thumbnails */
.user-thumbnail{
	width:3.75rem;
	height:3.75rem;
	font-size:1.5rem;
	display:inline-flex;
	justify-content:center;
	align-items:center;
	background-color:#d6d1ff;
	color:#4e39fe;
	border-radius:50%;
	overflow:hidden;
	cursor:pointer;
}
.user-thumbnail span.img-alt{
	display:none;
}
.user-thumbnail img{
	width:100%;
	height:100%;
}
.user-thumbnail img[src=""]{
	display:none;
}
.user-thumbnail img[src=""]+span.img-alt{
	display:inline-block;
}
.user-thumbnail[data-color="1"]{
	background-color:#caf4c3;
	color:#4b9e3c;
}
.user-thumbnail[data-color="2"]{
	background-color:#f6e6b8;
	color:#a48834;
}
.user-thumbnail[data-color="3"]{
	background-color:#efb0b0;
	color:#993333;
}
.user-thumbnail[data-color="4"]{
	background-color:#f2cef1;
	color:#a442a3;
}
.header-thumbnail,
.table-thumbnail{
	width:2rem;
	height:2rem;
	font-size:1rem;
}

/* gallery grid */
.gallery-grid {
	display: flex;
	flex-wrap: wrap;
	column-gap: var(--spacer-2);
	row-gap: var(--spacer-2);
}
.gallery-element {
	display: flex;
	width: 150px;
	height: 150px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.gallery-element > img {
	max-width: 100%;
	max-height: 100%;
}

/* login page */
.login-cover{
	background:url(../img/backgrounds/panel_bg.png) center center;
}

/* versions */
.minor-version{
	opacity:0.6;
}

/* Custom classes */
.hide{
	display:none !important;
}
.hidden{
	display:none;
}

.bounce-notification{
	-webkit-animation-duration:10s;
	animation-duration:10s;
	-webkit-animation-fill-mode:both;
	animation-fill-mode:both;
	-webkit-animation-iteration-count:infinite;
	animation-iteration-count:infinite;
	-webkit-animation-name:notificationBounce;
	animation-name:notificationBounce;
}
@keyframes notificationBounce{
	from{
		-webkit-transform:scale3d(1, 1, 1);
		transform:scale3d(1, 1, 1)
	}
	3%{
		-webkit-transform: scale3d(1.25, .75, 1);
		transform: scale3d(1.25, .75, 1)
	}
	4%{
		-webkit-transform: scale3d(0.75, 1.25, 1);
		transform: scale3d(0.75, 1.25, 1)
	}
	5%{
		-webkit-transform: scale3d(1.15, .85, 1);
		transform: scale3d(1.15, .85, 1)
	}
	6.5%{
		-webkit-transform: scale3d(.95, 1.05, 1);
		transform: scale3d(.95, 1.05, 1)
	}
	7.5%{
		-webkit-transform: scale3d(1.05, .95, 1);
		transform: scale3d(1.05, .95, 1)
	}
	10%{
		-webkit-transform: scale3d(1, 1, 1);
		transform: scale3d(1, 1, 1)
	}
	100%{
		-webkit-transform:scale3d(1, 1, 1);
		transform:scale3d(1, 1, 1)
	}
}

/* Submenu layout and indentation (MMI V3 style) */
.nav-sidebar .nav-group-sub {
    background-color: rgba(0, 0, 0, 0.02) !important;
}
.sidebar .navigation-main .nav-group-sub .nav-link {
    padding-left: 2.75rem !important; /* Shift to the right for submenu items (~44px) */
    font-size: 0.825rem !important; /* Slightly smaller font for submenus */
    opacity: 0.85;
}
.sidebar .navigation-main .nav-group-sub .nav-group-sub .nav-link {
    padding-left: 3.75rem !important; /* Level 2 submenu (~60px) */
}
.sidebar .navigation-main .nav-group-sub .nav-link:hover,
.sidebar .navigation-main .nav-group-sub .nav-link:focus,
.sidebar .navigation-main .nav-group-sub .nav-link.active {
    opacity: 1;
}
.sidebar .navigation-main .nav-group-sub .nav-link .icon {
    margin-right: 0.75rem !important; /* Spacing between submenu icon and text */
    width: 1rem !important;
    height: 1rem !important;
}

/* SweetAlert2 Toast Colors */
.swal2-toast.swal2-icon-success { --swal-bg: var(--alpha-success) !important; }
.swal2-toast.swal2-icon-error { --swal-bg: var(--alpha-danger) !important; }
.swal2-toast.swal2-icon-warning { --swal-bg: var(--alpha-warning) !important; }
.swal2-toast.swal2-icon-info { --swal-bg: var(--alpha-info) !important; }
.swal2-toast.swal2-icon-question { --swal-bg: var(--alpha-primary) !important; }

/* Custom Topbar / Navbar items */
.navbar .tb-logo { display:flex;align-items:center;gap:10px; }
.navbar .tb-sep { width:1px;height:20px;background:#e8e4dc;margin:0 8px; }
.navbar .tb-env { font-size:10px;font-weight:700;letter-spacing:1px;color:var(--primary);border:1px solid rgba(229,160,0,0.5);padding:2px 8px;border-radius:4px;margin-left:8px; }

/* Header active production session badge & shift info */
.te-session-info {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}
.te-session-badge {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #d97706;
    font-weight: 700;
    border-radius: 10px;
    padding: 5px 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}
.te-session-badge:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #b45309;
}
.te-shift-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.te-shift-badge.te-shift-ended-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706 !important;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    animation: teShiftPulse 2s infinite ease-in-out;
}
.te-shift-badge.te-shift-ended-warning .icon {
    color: #d97706 !important;
}
@keyframes teShiftPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}
.te-shift-badge .icon {
    color: #64748b;
}
.te-session-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-weight: 500;
    font-size: 0.85rem;
}
.te-session-time .icon {
    color: #64748b;
}
.dataTables_scrollFootInner { box-sizing: content-box !important; }

/* Suppression totale des spin buttons (flèches numériques / stepper) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
input.cp-numeric-input::-webkit-outer-spin-button,
input.cp-numeric-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
input[type="number"],
input.cp-numeric-input {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* ── Default Login Styles ── */
/* assets/css/pages/login.css
 * Écran de connexion MMI TIRIA — Noyau Standard.
 *
 * Gabarit générique de la plateforme MMI V3 avec charte TIRIA (logo TIRIA hardcodé,
 * scène industrielle dorée, indicateurs TRS/OEE, palette MMI TIRIA #E5A000).
 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.login-root { font-family:'Outfit',sans-serif; width:100%; min-height:100vh; display:flex; background:#0a0a0a; position:fixed; top:0; left:0; z-index:9999; }
.login-root * { box-sizing:border-box; }

/* LEFT */
.login-root .left{width:52%;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;}

/* SVG industrial scene */
.login-root .scene{position:absolute;inset:0;width:100%;height:100%;}

/* Particles canvas */
.login-root #pc{position:absolute;inset:0;width:100%;height:100%;}

/* Overlay gradient bottom */
.login-root .left-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(10,10,10,1) 0%,rgba(10,10,10,0.55) 40%,rgba(10,10,10,0.1) 100%);}

/* Grid lines */
.login-root .grid{position:absolute;inset:0;background-image:linear-gradient(rgba(229,160,0,0.04) 1px,transparent 1px),linear-gradient(90deg,rgba(229,160,0,0.04) 1px,transparent 1px);background-size:44px 44px;}

.login-root .left-content{position:relative;z-index:4;padding:40px 48px;margin-bottom:8px;}
.login-root .tiria-logo{display:flex;align-items:center;gap:12px;margin-bottom:28px;}
.login-root .tiria-logo img{height:60px;object-fit:contain;margin-left:-5px;}
.login-root .tiria-name{font-size:26px;font-weight:700;letter-spacing:4px;color:#E5A000;margin:0;padding:0;}
.login-root .tiria-tag{font-size:9px;color:rgba(255,255,255,0.3);letter-spacing:1.4px;text-transform:uppercase;display:block;margin-top:2px;}
.login-root .badge-design{display:inline-flex;align-items:center;gap:7px;padding:5px 13px;border-radius:20px;border:1px solid rgba(229,160,0,0.28);background:rgba(229,160,0,0.07);margin-bottom:16px;}
.login-root .badge-dot{width:6px;height:6px;border-radius:50%;background:#E5A000;animation:blink 2s infinite;}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.25}}
.login-root .badge-txt{font-size:10px;color:#E5A000;letter-spacing:1.5px;font-weight:500;text-transform:uppercase;}
.login-root .left-title{font-size:32px;font-weight:700;color:#fff;line-height:1.2;margin-bottom:10px;letter-spacing:-.4px;}
.login-root .left-title em{font-style:normal;color:#E5A000;}
.login-root .left-desc{font-size:13px;color:rgba(255,255,255,0.38);line-height:1.7;font-weight:300;max-width:340px; margin:0;}
.login-root .feats{display:flex;gap:18px;margin-top:22px;}
.login-root .ft{display:flex;align-items:center;gap:7px;font-size:12px;color:rgba(255,255,255,0.45);}
.login-root .ft-dot{width:5px;height:5px;border-radius:50%;background:#E5A000;flex-shrink:0;}

/* RIGHT */
.login-root .right{width:48%;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:56px 52px;position:relative;}
.login-root .right-autologin{justify-content:center;text-align:center;}
.login-root .rc{position:absolute;top:0;right:0;width:100px;height:100px;background:#E5A000;clip-path:polygon(100% 0,0 0,100% 100%);opacity:.07;}

.login-root .fw{width:100%;max-width:350px;}
.login-root .f-eye{font-size:10px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#E5A000;margin-bottom:10px;}
.login-root .f-title{font-size:24px;font-weight:700;color:#111;letter-spacing:-.4px;margin-bottom:4px;}
.login-root .f-sub{font-size:13px;color:#9CA3AF;margin-bottom:32px;}

.login-root .right-autologin .f-title{font-size:28px;margin-bottom:8px;}
.login-root .right-autologin .f-sub{font-size:14px;color:#6B7280;margin-bottom:40px;}
.login-root .right-autologin .f-sub strong{color:#111;}
.login-root .right-autologin .fw{animation:fadeIn .4s ease;}
.login-root .autologin-spinner{display:inline-block;position:relative;width:64px;height:64px;margin-bottom:30px;}
.login-root .autologin-spinner div{box-sizing:border-box;display:block;position:absolute;width:48px;height:48px;margin:8px;border:4px solid #E5A000;border-radius:50%;border-color:#E5A000 transparent transparent transparent;animation:spin 1.2s cubic-bezier(.5,0,.5,1) infinite;}
.login-root .autologin-hint{font-size:12px;color:#9CA3AF;letter-spacing:.5px;}

.login-root form{margin-top:28px;}
.login-root .field{margin-bottom:18px;}
.login-root .field label{display:block;font-size:10px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;color:#9CA3AF;margin-bottom:7px;}
.login-root .fi{position:relative;display:flex;align-items:center;}
.login-root .fi input{width:100%;padding:13px 44px 13px 44px;border:1.5px solid #E5E7EB;border-radius:10px;font-family:'Outfit',sans-serif;font-size:14px;color:#111;background:#FAFAFA;outline:none;transition:all .2s; margin:0;}
.login-root .fi input:focus{border-color:#E5A000;background:#fff;box-shadow:0 0 0 4px rgba(229,160,0,0.09);}
.login-root .fi input::placeholder{color:#CBD5E1;}
.login-root .fi svg{position:absolute;left:14px;width:17px;height:17px;stroke:#CBD5E1;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:stroke .2s;pointer-events:none;}
.login-root .fi .pass-toggle { position:absolute; right:14px; background:none; border:none; padding:0; cursor:pointer; display:flex; align-items:center; justify-content:center; color:#CBD5E1; transition:color .2s; outline:none; }
.login-root .fi .pass-toggle:hover { color:#E5A000; }
.login-root .fi .pass-toggle svg { position:static; width:18px; height:18px; pointer-events:auto; }
.login-root .fi:focus-within svg{stroke:#E5A000;}

.login-root .frow{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;}
.login-root .ck{display:flex;align-items:center;gap:7px;}
.login-root .ck input{accent-color:#E5A000; margin:0;}
.login-root .ck label{font-size:12px;color:#6B7280;cursor:pointer; margin:0;}
.login-root .fgt{font-size:12px;color:#E5A000;text-decoration:none;font-weight:500;}
.login-root .fgt:hover{color:#cc8f00;}

.login-root .btn-submit{width:100%;padding:14px;background:#E5A000;border:none;border-radius:10px;color:#000;font-family:'Outfit',sans-serif;font-size:14px;font-weight:700;letter-spacing:.4px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:8px;}
.login-root .btn-submit:hover{background:#cc8f00;transform:translateY(-1px);}
.login-root .btn-submit svg{width:16px;height:16px;stroke:#000;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}

.login-root #forget-message{font-size:12px;line-height:1.5;margin:0 0 14px;}
.login-root #forget-message:empty{display:none;}
.login-root #forget-message.success{color:#10B981;}
.login-root #forget-message.danger{color:#dc3545;}

.login-root .strow{display:flex;justify-content:center;gap:20px;margin-top:28px;padding-top:22px;border-top:1px solid #F3F4F6;}
.login-root .st{display:flex;align-items:center;gap:6px;font-size:11px;color:#9CA3AF;}
.login-root .st-d{width:6px;height:6px;border-radius:50%;}
.login-root .st-d.g{background:#10B981;}
.login-root .st-d.o{background:#E5A000;}
.login-root .st-d.b{background:#3B82F6;}
.login-root .copy{position:absolute;bottom:16px;font-size:10px;color:#D1D5DB;letter-spacing:.4px;}
.login-root .form-control-feedback-icon { display: none; }
.login-root .invalid-feedback { display: none; color: #dc3545; font-size: 11px; margin-top: 4px; }
.login-root .is-invalid ~ .invalid-feedback { display: block; }
.login-root .is-invalid { border-color: #dc3545 !important; }

.login-message { margin-top: 20px; font-size: 13px; }
.hide { display: none !important; }

/* ── TABLETTE (≤1024px) ─────────────────────────────────────── */
@media (max-width:1024px){
  .login-root .left  { width:45%; }
  .login-root .right { width:55%; padding:40px 36px; }
  .login-root .left-title { font-size:26px; }
  .login-root .left-content { padding:32px 32px; }
  .login-root .fw { max-width:100%; }
}

/* ── MOBILE (≤768px) ────────────────────────────────────────── */
@media (max-width:768px){
  /* Libérer le scroll sur mobile — écrase le position:fixed */
  html, body { height:auto !important; overflow:auto !important; }

  .login-root {
    position: relative !important;  /* CRITICAL: overrides fixed */
    top: auto !important;
    left: auto !important;
    flex-direction: column;
    min-height: 100dvh;
    overflow-y: visible;
    width: 100%;
  }

  /* Formulaire PASSE EN PREMIER sur mobile */
  .login-root .right {
    order: 1;
    width: 100% !important;
    min-height: auto;
    padding: 52px 24px 36px;
    justify-content: flex-start;
    align-items: stretch;
    position: relative;
  }
  .login-root .fw { max-width: 100%; }
  .login-root .copy { position: relative; bottom: auto; margin-top: 24px; text-align: center; }

  /* Panneau TIRIA en dessous, version compacte */
  .login-root .left {
    order: 2;
    width: 100% !important;
    min-height: 240px;
    position: relative;
    overflow: hidden;
    justify-content: flex-end;
  }
  .login-root .left .scene,
  .login-root .left #pc,
  .login-root .left .grid,
  .login-root .left .left-overlay {
    position: absolute;
  }
  .login-root .left-content {
    padding: 24px 24px 28px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
  }
  .login-root .tiria-logo { margin-bottom: 10px; }
  .login-root .tiria-logo img { height: 40px; }
  .login-root .badge-design { margin-bottom: 8px; }
  .login-root .left-title { font-size: 20px; margin-bottom: 4px; }
  .login-root .left-desc { display:none; }
  .login-root .feats { gap: 12px; margin-top: 10px; flex-wrap: wrap; }
  .login-root .ft { font-size: 11px; }

  /* Ajustements form */
  .login-root .f-eye { font-size: 9px; }
  .login-root .f-title { font-size: 22px; }
  .login-root .f-sub { font-size: 12px; margin-bottom: 24px; }
  .login-root .fi input { padding: 13px 44px; font-size: 16px; }
  .login-root .btn-submit { padding: 16px; font-size: 16px; }
  .login-root .frow { flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
  .login-root .ck label { font-size: 13px; }
  .login-root .fgt { font-size: 13px; }
  .login-root .strow { gap: 14px; margin-top: 20px; padding-top: 18px; }
  .login-root .st { font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STYLES EXTRAITS DES TEMPLATES CORE (ZÉRO CSS INLINE DANS TEMPLATES)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Sidebar collapse & fullscreen */
.sidebar-main {
	transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease !important;
}
.sidebar-main.sidebar-collapsed {
	width: 0 !important;
	min-width: 0 !important;
	max-width: 0 !important;
	border-right: 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
body.is-fullscreen-mode #dashboard-page-toolbar {
	top: 12px;
}

/* Header / Topbar */
.navbar.navbar-static .navbar-toggler.sidebar-mobile-main-toggle {
	margin-right: 8px;
	border: none;
	background: transparent;
	padding: 4px;
	flex-shrink: 0;
}
.navbar.navbar-static .navbar-toggler.sidebar-mobile-main-toggle .icon,
#btn-toggle-sidebar-collapse .icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
}
#btn-toggle-sidebar-collapse {
	color: #475569;
	padding: 6px;
	flex-shrink: 0;
}
.navbar .tb-spacer {
	flex: 1;
	min-width: 4px;
}
.navbar .header-update-btn {
	font-size: 0.78rem;
	animation: headerUpdatePulse 2s ease-in-out infinite;
}
.navbar .header-update-btn .icon {
	width: 14px;
	height: 14px;
	fill: currentColor;
}
.navbar .user-thumbnail.header-thumbnail img.sidebar-logo-icon {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}
.navbar .tb-username {
	margin-left: 8px;
	color: #1e293b;
}
.navbar .superuser-impersonate-badge {
	background: #fef3c7 !important;
	border: 1px solid #fde68a !important;
}
.navbar .superuser-impersonate-badge .tb-username {
	font-size: 0.82rem;
	color: #92400e !important;
}

/* Dashboard Hero & Cards */
.hero {
	position: relative;
	overflow: hidden;
	min-height: 320px;
	display: flex;
	align-items: center;
}
.hero .hero-scene {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.hero .hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(248,246,241,0.97) 0%, rgba(248,246,241,0.88) 45%, rgba(248,246,241,0.3) 100%);
}
.hero .hero-content {
	position: relative;
	z-index: 3;
	padding: 48px 52px;
	max-width: 560px;
}
.hero .hero-eyebrow {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #E5A000;
	margin-bottom: 14px;
}
.hero .hero-title {
	font-size: 34px;
	font-weight: 700;
	color: #111;
	line-height: 1.15;
	margin-bottom: 12px;
	letter-spacing: -0.5px;
}
.hero .hero-title em {
	font-style: normal;
	color: #E5A000;
}
.hero .hero-sub {
	font-size: 14px;
	color: #6B7280;
	line-height: 1.7;
	font-weight: 400;
	margin-bottom: 28px;
}
.cards-section {
	padding: 32px 40px;
	flex: 1;
}
.cards-section .cards-title {
	font-size: 13px;
	font-weight: 600;
	color: #9CA3AF;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 20px;
}
.cards-section .cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 991.98px) {
	.cards-section .cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 575.98px) {
	.cards-section .cards-grid {
		grid-template-columns: 1fr;
	}
	.hero .hero-content {
		padding: 32px 24px;
	}
	.cards-section {
		padding: 24px;
	}
}
.db-card .card-logo {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	gap: 5px;
	opacity: 0.25;
}
.db-card .card-logo-txt {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 2px;
	color: #111;
}
.db-card .card-icon {
	width: 44px;
	height: 44px;
	border-radius: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	flex-shrink: 0;
	background: #EFF6FF;
	color: #3B82F6;
}
.db-card .card-icon.blue { background: #EFF6FF; color: #3B82F6; }
.db-card .card-icon.gold { background: #fef9ee; color: #E5A000; }
.db-card .card-icon.green { background: #ECFDF5; color: #10B981; }
.db-card .card-icon.purple { background: #F5F3FF; color: #8B5CF6; }
.db-card .card-icon.red { background: #FEF2F2; color: #EF4444; }
.db-card .card-icon.teal { background: #F0F9FF; color: #0EA5E9; }
.db-card .card-icon .icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
}
.db-card .card-name {
	font-size: 15px;
	font-weight: 600;
	color: #111;
	margin-bottom: 6px;
}
.db-card .card-desc {
	font-size: 12px;
	color: #6B7280;
	line-height: 1.6;
	font-weight: 400;
	flex: 1;
}
.db-card .card-arrow {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	color: #9CA3AF;
	margin-top: 18px;
	transition: color 0.2s;
}
.db-card .card-arrow svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
}

/* Groups page */
.btn-gold-gradient {
	background: linear-gradient(135deg, #E0A000, #d4a843) !important;
	color: #fff !important;
	border: none !important;
}
#groups-table thead tr.groups-thead-main {
	background: linear-gradient(135deg, #fdf6e3, #f5e6c8);
	color: #5a4a28;
	border-bottom: 2px solid #E0A000;
}
#groups-table thead tr.groups-thead-main th {
	background: linear-gradient(135deg, #fdf6e3, #f5e6c8);
	color: #5a4a28;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	font-size: 12px;
}
#groups-table thead tr.groups-thead-sub {
	background: rgba(224, 160, 0, 0.08);
	color: #8b7335;
	font-size: 10px;
	letter-spacing: 0.3px;
}
#groups-table thead tr.table-filter,
#groups-table thead tr.table-filter td.dtfc-fixed-left {
	background: #fafaf8;
}
.modal-header-dark-gold {
	background: linear-gradient(135deg, #2d3436, #1a1a2e) !important;
}
.modal-header-dark-gold .modal-title {
	color: #E0A000 !important;
}
.thead-dark-gold {
	background: #2d3436;
	color: #d4a843;
}

/* Users page */
.users-export-btn {
	background: var(--te-bg-card, #fff) !important;
	color: var(--te-text-primary, #1e293b) !important;
	border: 1px solid #cbd5e1 !important;
}
.users-export-dropdown {
	min-width: 300px;
	z-index: 1050;
}

/* Settings & AI & Login Rules & SMTP & Clients */
#prompts-container {
	max-height: 500px;
	padding-right: 10px;
}
.prompt-row .prompt-key {
	width: 70%;
}
#logo-preview-img {
	max-height: 80px;
	max-width: 100%;
}
#sirene_results {
	max-height: 250px;
	overflow-y: auto;
	z-index: 1050;
}
#login-chevron {
	transition: transform 0.2s;
}
#login-rule-body.is-disabled {
	opacity: 0.5;
	pointer-events: none;
}
.format-option {
	transition: all 0.15s ease;
}
.smtp-killswitch-box {
	background: rgba(220, 53, 69, 0.06);
	border: 1px solid rgba(220, 53, 69, 0.2);
}
.smtp-redirect-box {
	background: rgba(255, 193, 7, 0.06);
	border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Custom Fields (Champs Natifs) */
.cf-section-title { color: #0f172a; }
.cf-section-sub { font-size: 0.875rem; }
.cf-main-card, .cf-item-card, .cf-modal-content { border-radius: 12px !important; overflow: hidden; }
.cf-item-card { height: 100%; }
.cf-tab-link { color: #64748b; }
.cf-tab-body { padding: 2rem !important; background: #f8fafc; }
.cf-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}
.cf-item-card-body { padding: 1.5rem !important; }
.cf-item-dropdown { top: 1.25rem; right: 1.25rem; }
.cf-dropdown-menu { border-radius: 8px; }
.cf-item-title { color: #0f172a; font-size: 1rem; padding-right: 24px; }
.cf-item-key { color: #64748b; font-size: 0.8125rem; }
.cf-item-hr { border-top-color: #e2e8f0; margin: 1rem 0; }
.cf-opt-badge { padding: 0.4rem 0.6rem; font-size: 0.75rem; }
.cf-modal-title { color: #0f172a; font-size: 1.1rem; }
.cf-edit-alert {
	background: #f0f9ff;
	border: 1px solid #e0f2fe;
	color: #0369a1;
	border-radius: 8px;
	font-size: 0.875rem;
	padding: 0.75rem 1rem;
}
#cf_extended { width: 18px; height: 18px; margin-top: 0.15rem; }
.cf-extended-label { color: #334155; font-size: 0.875rem; }
.cf-options-builder-card { background: #f8fafc !important; border-radius: 12px !important; border: 1px solid #f1f5f9 !important; }
.cf-color-input { width: 40px; height: 40px; border-radius: 8px; cursor: pointer; border-color: #cbd5e1; }
.cf-icon-picker-btn {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #cbd5e1;
}
.cf-opt-val-input { width: 110px; border-color: #cbd5e1; }
#modalIconPicker { z-index: 1070; }
.cf-search-icon { left: 10px; top: 10px; color: #94a3b8; width: 16px; height: 16px; }
.cf-filter-select { width: 120px; }
.cf-icons-grid { max-height: 300px; overflow-y: auto; padding: 0.5rem; }
.cf-icon-choice {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	cursor: pointer;
	border: 1px solid transparent;
	color: #334155;
}
.cf-icon-choice:hover { background: #f1f5f9; }
.cf-opt-row {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.cf-opt-row-inactive {
	background: #f8fafc;
	opacity: 0.75;
}
.cf-opt-color-dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	flex-shrink: 0;
	margin-left: 0.5rem;
}
.cf-opt-badge-val {
	font-size: 0.7rem;
	font-weight: 700;
	background: #f1f5f9;
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
	color: #475569;
	min-width: 30px;
	text-align: center;
	font-family: monospace;
	letter-spacing: 0.5px;
}
.cf-opt-badge-ref {
	font-size: 0.7rem;
	font-weight: 700;
	background: #e0f2fe;
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
	color: #0369a1;
	min-width: 30px;
	text-align: center;
	font-family: monospace;
	letter-spacing: 0.5px;
}

/* Tools & Utility classes */
.versions-tabs-nav { max-width: 500px; }
#ws-test-result { overflow-x: auto; min-height: 80px; max-height: 400px; overflow-y: auto; }
.grid-col-full { grid-column: 1 / -1; }
.progress-h-6 { height: 6px; }
.icon-12 { width: 12px !important; height: 12px !important; }
.icon-13 { width: 13px !important; height: 13px !important; }
.icon-14 { width: 14px !important; height: 14px !important; }
.icon-16 { width: 16px !important; height: 16px !important; }
.icon-18 { width: 18px !important; height: 18px !important; }
.icon-20 { width: 20px !important; height: 20px !important; }
.icon-24 { width: 24px !important; height: 24px !important; }
.col-w-50 { width: 50px; }
.col-w-60 { width: 60px; }
.col-w-70 { width: 70px; }
.col-w-75 { width: 75px; min-width: 75px; }
.col-w-80 { width: 80px; }
.col-w-90 { width: 90px; }
.col-w-100 { width: 100px; }
.col-w-120 { width: 120px; }
.col-w-150 { width: 150px; }
.col-w-180 { width: 180px; }
.col-w-12p { width: 12%; }
.col-w-15p { width: 15%; }
.col-w-18p { width: 18%; }
.col-w-25p { width: 25%; }
.col-w-30p { width: 30%; }
.input-w-150 { width: 150px; }
.input-w-220 { width: 220px; }
.input-max-200 { max-width: 200px; }
.input-max-300 { max-width: 300px; }
.input-max-360 { max-width: 360px; }


