/* Here, the content of the common custom CSS defined into Home - Setup - Display - CSS*/
/* =========================================================
 Rayanne Fragrance — Uniformisation Dolibarr
 Menu noir, texte doré, icônes dorées, fond crème
 Login propre : 1 seul RayanneManager
 ========================================================= */

/* Fond général */
body,
#id-right,
div.mainbody,
.maincontent {
 background-color: #FFF9EF !important;
}

/* Menu haut */
#id-top,
div.tmenu,
div#tmenu_tooltip,
.topmenu,
.tmenu {
 background-color: #111111 !important;
}

/* Zone logo */
#id-top .login_block,
#id-top .logo_setup,
#id-top .inline-block {
 background-color: #111111 !important;
}

/* Logo Rayanne — jamais filtré */
#id-top .logodolibarr img,
#id-top .logo img,
#id-top img[src*="logo"],
#id-top img[src*="rayanne"],
#id-top img[src*="Rayanne"],
#id-top img[src*="RAYANNE"] {
 filter: none !important;
 opacity: 1 !important;
 visibility: visible !important;
 display: inline-block !important;
 max-height: 42px !important;
 width: auto !important;
}

/* =========================================================
 MENU HAUT — TEXTE + ICÔNES EN DORÉ
 ========================================================= */

/* Texte menu haut doré */
#id-top a,
#id-top a span,
#id-top span,
#id-top .tmenulabel,
#id-top .mainmenuaspan,
#id-top .mainmenu,
#id-top .tmenu,
#id-top .tmenu span,
#id-top .login_block,
#id-top .login_block span,
#id-top .login_block a,
.tmenu,
.tmenu a,
.tmenu span,
.tmenulabel,
.mainmenuaspan,
.mainmenu {
 color: #C8A24A !important;
}

/* Icônes FontAwesome menu haut dorées */
#id-top .fa,
#id-top .fas,
#id-top .far,
#id-top .fab,
#id-top i,
#id-top span.fa,
#id-top span.fas,
#id-top .mainmenuaspan::before,
#id-top .mainmenu::before,
#id-top a::before,
.tmenu i,
.tmenu .fa,
.tmenu .fas,
.mainmenu i,
.mainmenu .fa,
.mainmenu .fas {
 color: #C8A24A !important;
}

/* Icônes SVG dorées */
#id-top svg,
#id-top svg path,
#id-top svg use,
.tmenu svg {
 color: #C8A24A !important;
 fill: #C8A24A !important;
 stroke: #C8A24A !important;
}

/* Images icônes menu haut uniquement — ne cible pas le logo */
#id-top .tmenuimage img,
#id-top .mainmenu img,
#id-top .mainmenuaspan img,
.tmenuimage img {
 filter: brightness(0) saturate(100%) invert(67%) sepia(31%) saturate(713%) hue-rotate(5deg) brightness(88%) contrast(87%) !important;
}

/* Protection logo après filtre */
#id-top .logodolibarr img,
#id-top .logo img,
#id-top img[src*="logo"],
#id-top img[src*="rayanne"],
#id-top img[src*="Rayanne"],
#id-top img[src*="RAYANNE"] {
 filter: none !important;
}

/* Version Dolibarr dans menu haut */
#id-top .version,
#id-top .dolversion,
#id-top span.opacitymedium,
#id-top .opacitymedium,
#id-top .opacityhigh {
 color: #C8A24A !important;
 opacity: 1 !important;
}

/* Icônes droite menu haut */
#id-top .login_block i,
#id-top .login_block .fa,
#id-top .login_block .fas,
#id-top .login_block a,
#id-top .login_block span {
 color: #C8A24A !important;
}

/* Avatar utilisateur : garder visible sans filtre doré */
#id-top img.photo,
#id-top img.userphoto,
#id-top img.loginphoto,
#id-top img[src*="photo"],
#id-top img[src*="user"] {
 filter: none !important;
 opacity: 1 !important;
}

/* Survol menu haut doré clair */
#id-top a:hover,
#id-top a:hover span,
#id-top a:hover i,
#id-top a:hover .fa,
#id-top a:hover .fas,
.tmenu a:hover,
.tmenu:hover,
.tmenu:hover span,
.tmenu:hover .mainmenuaspan {
 color: #D9BB70 !important;
}

/* Menu actif */
#id-top .active,
#id-top .selected,
#id-top a.active,
#id-top a.selected,
.tmenu.selected,
.tmenu.active,
.tmenu a.selected,
.tmenu a.active {
 color: #D9BB70 !important;
 border-bottom: 2px solid #C8A24A !important;
}

/* =========================================================
 MENU GAUCHE
 ========================================================= */

#id-left,
.vmenu,
.vmenu .menu_titre,
.vmenu .menu_contenu,
div.vmenu,
div.menu_titre,
div.menu_contenu {
 background-color: #FFF9EF !important;
}

.vmenu .menu_titre,
.menu_titre {
 color: #111111 !important;
 border-bottom: 1px solid #E8D8B8 !important;
}

.vmenu a,
.menu_contenu a,
#id-left a {
 color: #111111 !important;
}

.vmenu a:hover,
.menu_contenu a:hover,
#id-left a:hover {
 color: #5A2A83 !important;
}

/* =========================================================
 LIENS / TITRES / TABLEAUX
 ========================================================= */

a {
 color: #5A2A83;
}

a:hover {
 color: #C8A24A;
}

h1,
h2,
h3,
.titlefield,
.titlefieldcreate,
.titlefieldmiddle {
 color: #111111 !important;
}

.liste_titre,
table.liste tr.liste_titre,
table.noborder tr.liste_titre {
 background-color: #F3E6C3 !important;
 color: #111111 !important;
}

table.liste tr.oddeven:nth-child(odd),
table.noborder tr.oddeven:nth-child(odd) {
 background-color: #FFFFFF !important;
}

table.liste tr.oddeven:nth-child(even),
table.noborder tr.oddeven:nth-child(even) {
 background-color: #FFF9EF !important;
}

tr.oddeven:hover,
table.liste tr:hover,
table.noborder tr:hover {
 background-color: #F3E6C3 !important;
}

tr.highlight,
tr.selected,
tr.checked {
 background-color: #F2E9FA !important;
}

/* =========================================================
 BOUTONS GÉNÉRAUX
 ========================================================= */

.button,
.butAction,
input[type="submit"],
button[type="submit"] {
 background: #C8A24A !important;
 color: #111111 !important;
 border: 1px solid #C8A24A !important;
 font-weight: 700 !important;
}

.button:hover,
.butAction:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
 background: #D9BB70 !important;
 color: #111111 !important;
 border-color: #D9BB70 !important;
}

.butActionRefused {
 background: #E8D8B8 !important;
 color: #64748B !important;
 border: 1px solid #E8D8B8 !important;
}

.butActionDelete,
.buttonDelete {
 background: #111111 !important;
 color: #C8A24A !important;
 border: 1px solid #111111 !important;
}

/* Champs focus */
input:focus,
select:focus,
textarea:focus {
 border-color: #C8A24A !important;
 box-shadow: 0 0 0 1px #C8A24A33 !important;
}

/* Onglets actifs */
.tabs .tabactive,
.tabBar .tabactive,
a.tabactive {
 border-bottom: 2px solid #C8A24A !important;
 color: #111111 !important;
}

/* Badges */
.badge,
.badge-status {
 border-radius: 12px !important;
}

/* Textes secondaires */
.opacitymedium,
.opacityhigh {
 color: #64748B !important;
}

/* =========================================================
 POPUP UTILISATEUR — SRF
 Boutons Fiche + Déconnexion : noir / texte doré
 ========================================================= */

/* Popup utilisateur */
#id-top .dropdown-menu,
#id-top .login_block_other,
.login_block_other,
.login_block_other_open,
div.login_block_other,
div.login_block_other_open {
 background: #FFF9EF !important;
 color: #111111 !important;
 border: 1px solid #E8D8B8 !important;
 box-shadow: 0 8px 22px rgba(17,17,17,.18) !important;
}

/* Texte popup */
.login_block_other,
.login_block_other *,
.login_block_other_open,
.login_block_other_open *,
#id-top .dropdown-menu,
#id-top .dropdown-menu * {
 color: #111111 !important;
}

/* Icônes popup dorées */
.login_block_other i,
.login_block_other .fa,
.login_block_other .fas,
.login_block_other_open i,
.login_block_other_open .fa,
.login_block_other_open .fas,
#id-top .dropdown-menu i,
#id-top .dropdown-menu .fa,
#id-top .dropdown-menu .fas {
 color: #C8A24A !important;
}

/* Lignes internes popup */
.login_block_other .login_block_elem,
.login_block_other_open .login_block_elem,
#id-top .dropdown-menu .login_block_elem {
 background: #FFF9EF !important;
 border-color: #E8D8B8 !important;
}

/* Boutons Fiche + carte + autres boutons popup : noir / texte doré */
.login_block_other .button,
.login_block_other button,
.login_block_other a.button,
.login_block_other input[type="button"],
.login_block_other_open .button,
.login_block_other_open button,
.login_block_other_open a.button,
.login_block_other_open input[type="button"],
#id-top .dropdown-menu .button,
#id-top .dropdown-menu button,
#id-top .dropdown-menu a.button,
#id-top .dropdown-menu input[type="button"] {
 background: #111111 !important;
 color: #C8A24A !important;
 border: 1px solid #111111 !important;
 font-weight: 800 !important;
 opacity: 1 !important;
}

/* Icônes dans les boutons popup */
.login_block_other .button i,
.login_block_other button i,
.login_block_other a.button i,
.login_block_other_open .button i,
.login_block_other_open button i,
.login_block_other_open a.button i,
#id-top .dropdown-menu .button i,
#id-top .dropdown-menu button i,
#id-top .dropdown-menu a.button i {
 color: #C8A24A !important;
}

/* Déconnexion : noir / texte doré */
.login_block_other a[href*="logout"],
.login_block_other_open a[href*="logout"],
#id-top .dropdown-menu a[href*="logout"] {
 background: #111111 !important;
 color: #C8A24A !important;
 border: 1px solid #111111 !important;
 font-weight: 800 !important;
 opacity: 1 !important;
}

/* Icône déconnexion */
.login_block_other a[href*="logout"] i,
.login_block_other_open a[href*="logout"] i,
#id-top .dropdown-menu a[href*="logout"] i {
 color: #C8A24A !important;
}

/* Survol boutons popup */
.login_block_other .button:hover,
.login_block_other button:hover,
.login_block_other a.button:hover,
.login_block_other a[href*="logout"]:hover,
.login_block_other_open .button:hover,
.login_block_other_open button:hover,
.login_block_other_open a.button:hover,
.login_block_other_open a[href*="logout"]:hover,
#id-top .dropdown-menu .button:hover,
#id-top .dropdown-menu button:hover,
#id-top .dropdown-menu a.button:hover,
#id-top .dropdown-menu a[href*="logout"]:hover {
 background: #000000 !important;
 color: #D9BB70 !important;
 border-color: #C8A24A !important;
}

/* Survol liens popup non-boutons */
.login_block_other a:hover,
.login_block_other_open a:hover,
#id-top .dropdown-menu a:hover {
 color: #5A2A83 !important;
}

/* =========================================================
 LOGIN PAGE — RayanneManager unique
 ========================================================= */

/* Masquer les textes Dolibarr/version du login */
.login_main_message,
.login_main_home,
.login_main_messagecenter,
.login_table_title,
div.login_table_title {
 display: none !important;
}

/* Évite les doublons créés par anciens blocs CSS */
.login_main_message::before,
.login_main_home::before,
.login_main_messagecenter::before,
.login_table_title::before,
div.login_table_title::before {
 content: none !important;
 display: none !important;
}

/* Titre unique au-dessus du formulaire */
.login_table::before,
div.login_table::before {
 content: "RayanneManager";
 display: block !important;
 font-size: 18px !important;
 font-weight: 800 !important;
 color: #C8A24A !important;
 text-align: center !important;
 letter-spacing: .04em !important;
 margin-bottom: 18px !important;
}

/* Fallback si login_table n’est pas utilisé */
body.loginbody .login_block::before {
 content: "RayanneManager";
 display: block !important;
 font-size: 18px !important;
 font-weight: 800 !important;
 color: #C8A24A !important;
 text-align: center !important;
 letter-spacing: .04em !important;
 margin-bottom: 18px !important;
}

/* Si les deux titres apparaissent, masquer le fallback quand login_table existe */
body.loginbody .login_table ~ .login_block::before {
 content: none !important;
 display: none !important;
}

/* Logo login */
.login_table img,
.login_block img {
 max-height: 70px !important;
 width: auto !important;
}

/* Carte login */
.login_table,
.login_block {
 background: #FFF9EF !important;
 border-radius: 8px !important;
 box-shadow: 0 8px 24px rgba(17,17,17,.20) !important;
}

/* Bouton connexion */
.login_table input[type="submit"],
.login_block input[type="submit"],
.login_table .button,
.login_block .button {
 background: #C8A24A !important;
 color: #111111 !important;
 border: 1px solid #C8A24A !important;
 font-weight: 800 !important;
}

/* Lien mot de passe oublié */
.login_table a,
.login_block a {
 color: #5A2A83 !important;
}

.login_table a:hover,
.login_block a:hover {
 color: #C8A24A !important;
}

/* =========================================================
 Fin thème Rayanne Fragrance
 ========================================================= */