
/*
 *  Document   : main-theme3.css — THÈME 3 (refonte design 2026)
 *  Description: Thème moderne du CRM. Base héritée de main-theme1.css
 *               (ciblage onglets par a[href], jamais :nth-child), surcouche
 *               "THEME 3 LAYER" en fin de fichier, pilotée par les design
 *               tokens de tokens.css (chargé avant, inconditionnellement).
 *
 *  Structure (with shortcodes):
 *      (#m01mls) MAIN LAYOUT
 *      (#m02hds) HEADER
 *      (#m03sns) SIDEBAR/NAVIGATION
 *      (#m04mcs) MAIN CONTENT
 *      (#m05pgs) PAGES
 *      (#m06bos) BOOTSTRAP OVERWRITE/EXTEND STYLES
 *      (#m07hes) HELPERS
 *      (#m08ths) THEMES
 *      (#m09res) RESPONSIVE
 *      (#m10rts) RETINA
 *      (#m11prs) PRINT
 */

/*
=================================================================
(#m01mls) MAIN LAYOUT
=================================================================
*/

/* Police Inter auto-hébergée : @font-face déclarés dans tokens.css (pas d'@import bloquant) */

/* Preloader */
#page-wrapper.page-loading {
    overflow: hidden;
}

#page-wrapper.page-loading .preloader {
    display: block;
}

#page-wrapper.page-loading #page-container {
    opacity: 0;
}

.preloader {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1bbae1 0%, #17a2b8 100%);
    z-index: 99999;
}

.preloader .inner {
    position: fixed;
    top: 20%;
    left: 50%;
    margin: 0 0 0 -50px;
    width: 100px;
    height: 100px;
    text-align: center;
}

.preloader-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    border-left-color: #ffffff;
    border-right-color: #ffffff;
    border-top-color: #ffffff;
    border-radius: 50%;
    -webkit-animation: nprogress-spinner .4s linear infinite;
    -moz-animation: nprogress-spinner .4s linear infinite;
    -ms-animation: nprogress-spinner .4s linear infinite;
    -o-animation: nprogress-spinner .4s linear infinite;
    animation: nprogress-spinner .4s linear infinite;
}

.preloader-spinner {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-width: 3px;
}

/* Main Structure */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    color: #394263;
    font-size: 13px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

#page-container,
#main-container,
#page-content + footer {
    min-width: 320px;
}

#page-container {
    width: 100%;
    padding: 0;
    margin: 0 auto;
    overflow-x: hidden;
    -webkit-transition: background-color 0.2s ease-out, opacity 0.3s ease-out;
    transition: background-color 0.2s ease-out, opacity 0.3s ease-out;
}

#page-container,
#sidebar,
#sidebar-alt {
    background: linear-gradient(180deg, #1a1f36 0%, #0f1419 100%);
}

#sidebar,
#sidebar-alt {
    width: 0;
    position: absolute;
    overflow: hidden;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

#sidebar-alt {
    right: 0;
}

#sidebar,
#sidebar-alt,
#main-container,
.header-fixed-top header,
.header-fixed-bottom header,
.footer-fixed #page-content + footer {
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

#page-content {
    padding: 10px 5px 1px;
    background-color: #eaedf1;
    min-height:1000px;
}

#page-content + footer {
    padding: 9px 10px;
    font-size: 11px;
    background-color: #ffffff;
    border-top: 1px solid #dbe1e8;
}

/* Fixed Header */
#page-container.header-fixed-top {
    padding: 50px 0 0;
}

#page-container.header-fixed-bottom {
    padding: 0 0 50px;
}

/* Sidebar + Static Header */
.sidebar-visible-xs #sidebar {
    width: 200px;
}

.sidebar-visible-xs #main-container {
    margin-left: 200px;
    margin-right: -200px;
}

/* Sidebar + Fixed Header */
.header-fixed-top #sidebar,
.header-fixed-bottom #sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}

.header-fixed-top .sidebar-content,
.header-fixed-bottom .sidebar-content {
    padding-bottom: 50px;
}

.sidebar-visible-xs.header-fixed-top header.navbar-fixed-top,
.sidebar-visible-xs.header-fixed-bottom header.navbar-fixed-bottom {
    left: 200px;
    right: -200px;
}

/* Alternative Sidebar + Static Header */
.sidebar-alt-visible-xs #sidebar-alt {
    width: 200px;
}

.sidebar-alt-visible-xs #main-container {
    margin-right: 200px;
    margin-left: -200px;
}

/* Alternative Sidebar + Fixed Header */
.header-fixed-top #sidebar-alt,
.header-fixed-bottom #sidebar-alt {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
}

.sidebar-alt-visible-xs.header-fixed-top header.navbar-fixed-top,
.sidebar-alt-visible-xs.header-fixed-bottom header.navbar-fixed-bottom {
    right: 200px;
    left: -200px;
}

/* Fixed Footer */
.footer-fixed #page-content + footer {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 999;
}

.footer-fixed #page-content {
    padding-bottom: 41px;
}

.footer-fixed.sidebar-visible-xs #page-content + footer {
    right: -200px;
    left: 200px;
}

.footer-fixed.sidebar-alt-visible-xs #page-content + footer {
    right: 200px;
    left: -200px;
}

.footer-fixed.header-fixed-bottom #page-content + footer {
    bottom: 50px;
}

/*
=================================================================
(#m02hds) HEADER
=================================================================
*/

header.navbar-default,
header.navbar-inverse {
    padding: 0;
    margin: 0;
    min-width: 320px;
    border: none;
}

header.navbar-default.navbar-fixed-top {
    border-bottom: 1px solid #eaedf1;
}

header.navbar-default.navbar-fixed-bottom {
    border-top: 1px solid #eaedf1;
}

header.navbar-inverse.navbar-fixed-top {
    border-bottom: 1px solid #394263;
}

header.navbar-inverse.navbar-fixed-bottom {
    border-top: 1px solid #394263;
}

/* Header Nav */
.navbar-default .navbar-nav > li > a {
    color: #394263;
}

.navbar-inverse .navbar-nav > li > a {
    color: #ffffff;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus,
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus,
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus,
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
    color: #ffffff;
    background-color: #1bbae1;
}

.navbar-inverse .collapse.in .navbar-nav .open .dropdown-menu > li > a {
    color: #dddddd;
}

.nav.navbar-nav-custom {
    float: left;
    margin: 0;
}

.nav.navbar-nav-custom > li {
    min-height: 50px;
    float: left;
}

.nav.navbar-nav-custom > li > a {
    min-width: 50px;
    padding: 5px 7px;
    line-height: 40px;
    text-align: center;
    color: #394263;
    position: relative;
}

.nav.navbar-nav-custom > li > a .gi,
.nav.navbar-nav-custom > li > a .hi,
.nav.navbar-nav-custom > li > a .si,
.nav.navbar-nav-custom > li > a .fi {
    margin-top: -3px;
}

.nav.navbar-nav-custom > li > a .label-indicator {
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 0;
    font-weight: 600;
}

.navbar-fixed-bottom .nav.navbar-nav-custom > li > a .label-indicator {
    top: auto;
    bottom: 0;
}

.navbar-inverse .nav.navbar-nav-custom > li > a {
    color: #ffffff;
}

.nav.navbar-nav-custom > li.open > a,
.nav.navbar-nav-custom > li > a:hover,
.nav.navbar-nav-custom > li > a:focus {
    background-color: #1bbae1;
    color: #ffffff;
}

.nav.navbar-nav-custom > li > a > img {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    vertical-align: top;
}

/* Header Search */
.navbar-form {
    margin: 7px 0;
}

.collapsing .navbar-form,
.collapse.in .navbar-form {
    margin-left: -15px;
    margin-right: -15px;
}

.collapsing .navbar-form .form-group,
.collapse.in .navbar-form .form-group {
    margin-bottom: 0;
}

.navbar-form-custom {
    padding: 0;
    width: 100px;
    float: left;
    height: 50px;
}

.navbar-form-custom .form-control {
    padding: 10px;
    margin: 0;
    height: 50px;
    font-size: 15px;
    background: transparent;
    border: none;
    z-index: 2000;
}

.navbar-form-custom .form-control:hover,
.navbar-form-custom .form-control:focus {
    background-color: #ffffff;
}

.navbar-form-custom .form-control:focus {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-size: 18px;
    padding: 10px 20px;
}

.navbar-inverse .navbar-form-custom .form-control {
    color: #ffffff;
}

.navbar-inverse .navbar-form-custom .form-control:hover,
.navbar-inverse .navbar-form-custom .form-control:focus {
    background: #000000;
    color: #ffffff;
}

/*
=================================================================
(#m03sns) SIDEBAR/NAVIGATION
=================================================================
*/

/* Sidebar Content */
.sidebar-content {
    width: 250px;
    color: #ffffff;
}

.sidebar-section {
    padding: 10px;
}

/* Sidebar Brand + Title */
.sidebar-brand,
.sidebar-title {
    height: 60px;
    line-height: 60px;
    padding: 0 18px;
    margin: 0;
    font-weight: 700;
    font-size: 20px;
    display: block;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

a.sidebar-brand:hover,
a.sidebar-brand:focus,
a.sidebar-title:hover,
a.sidebar-title:focus {
    background: linear-gradient(135deg, #1bbae1 0%, #17a2b8 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateX(4px);
}

.sidebar-brand i,
.sidebar-title i {
    font-size: 14px;
    display: inline-block;
    width: 18px;
    text-align: center;
    margin-right: 10px;
    opacity: 0.5;
    filter: alpha(opacity=50);
}

.sidebar-title i.pull-left {
    margin: 20px 10px 0 0;
}

.sidebar-title i.pull-right {
    margin: 20px 0 0 10px;
}

/* Sidebar User */
.sidebar-user {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.sidebar-user:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-user-avatar {
    /* Plus de rond dégradé cyan derrière les initiales : conteneur neutre */
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    float: none;
    padding: 0;
    margin-left: 0;
    background: none;
    transition: all 0.3s ease;
}

.sidebar-user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(27, 186, 225, 0.4);
}

.sidebar-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.sidebar-user-name {
    font-size: 15px;
    font-weight: 600;
    margin-top: 0;
    line-height: 1.4;
    flex: 1;
    /* un nom long se tronque en « … » au lieu de pousser le logout hors cadre */
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
}

.sidebar-user-links {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.sidebar-user-links a {
    color: #ffffff;
    opacity: 0.6;
    margin-right: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.sidebar-user-links a:hover,
.sidebar-user-links a:focus {
    color: #ffffff;
    text-decoration: none;
    opacity: 1;
    background: linear-gradient(135deg, #1bbae1 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 186, 225, 0.3);
}

.sidebar-user-links a > i {
    font-size: 16px;
}

/* Sidebar Color Themes */
.sidebar-themes {
    list-style: none;
    margin: 0;
    padding-top: 12px;
    padding-bottom: 6px;
    background: url('../img/template/ie8_opacity_dark_15.png') repeat;
    background: rgba(0, 0, 0, 0.15);
    opacity: .5;
    filter: alpha(opacity=50);
    -webkit-transition: opacity .25s ease-out;
    transition: opacity .25s ease-out;
}

.sidebar-themes:hover {
    opacity: 1;
    filter: alpha(opacity=100);
}

.sidebar-themes li {
    float: left;
    margin: 0 5px 6px 0;
}

.sidebar-themes li a {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    border-width: 2px;
    border-style: solid;
}

.sidebar-themes li a:hover,
.sidebar-themes li a:focus {
    border-color: #ffffff !important;
}

.sidebar-themes li.active a {
    border-color: #ffffff !important;
}

/* Sidebar Chat */
.chat-users {
    list-style: none;
    margin: 0;
    padding: 10px;
}

.chat-users li {
    float: left;
    margin: 0;
    padding: 3px;
}

.chat-users a {
    position: relative;
    display: inline-block;
    padding: 2px;
    width: 52px;
    height: 52px;
    border-radius: 25px;
    background: url('../img/template/ie8_opacity_light_10.png') repeat;
    background: rgba(255, 255, 255, 0.10);
}

.chat-users a span {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background-color: #cccccc;
}

.chat-users a img {
    width: 48px;
    height: 48px;
    opacity: 0.5;
    filter: alpha(opacity=50);
}

.chat-users a.chat-user-online,
.chat-users a.chat-user-away,
.chat-users a.chat-user-busy {
    background: url('../img/template/ie8_opacity_light_75.png') repeat;
    background: rgba(255, 255, 255, 0.75);
}

.chat-users a.chat-user-online span {
    background-color: #2ecc71;
}

.chat-users a.chat-user-away span {
    background-color: #f39c12;
}

.chat-users a.chat-user-busy span {
    background-color: #e74c3c;
}

.chat-users a:hover {
    background-color: #ffffff;
    -webkit-box-shadow: 0 0 4px 2px #999999;
    box-shadow: 0 0 4px 2px #999999;
}

.chat-users a:hover img,
.chat-users a.chat-user-online img,
.chat-users a.chat-user-away img,
.chat-users a.chat-user-busy img {
    opacity: 1;
    filter: alpha(opacity=100);
}

.chat-talk-info {
    line-height: 22px;
    font-size: 13px;
}

.chat-talk-info img {
    width: 22px;
    height: 22px;
    float: left;
    margin-right: 10px;
}

.chat-talk-messages {
    list-style: none;
    margin: 0;
    padding: 5px 0;
    background: url('../img/template/ie8_opacity_dark_20.png') repeat;
    background: rgba(0, 0, 0, 0.20);
}

.chat-talk-messages li {
    padding: 7px 10px;
    margin-bottom: 7px;
}

.chat-talk-messages .chat-talk-msg {
    width: 180px;
    margin-right: 20px;
    border-right: 3px solid #fff;
    background: url('../img/template/ie8_opacity_dark_40.png') repeat;
    background: rgba(0, 0, 0, 0.40);
}

.chat-talk-messages .chat-talk-msg.chat-talk-msg-highlight {
    margin-right: 0;
    margin-left: 20px;
    border-right: none;
    border-left-width: 3px;
    border-left-style: solid;
}

.chat-form {
    margin: 0;
    padding: 5px 10px;
    background: url('../img/template/ie8_opacity_dark_40.png') repeat;
    background: rgba(0, 0, 0, 0.40);
}

.chat-form .form-control {
    background: transparent;
    color: #eeeeee;
}

/* Sidebar Navigation */
.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 12px 0 0;
}

.sidebar-nav .sidebar-header:first-child {
    margin-top: 0;
}

.sidebar-nav a {
    display: block;
    color: #e2e8f0;
    padding: 0 18px;
    min-height: 42px;
    line-height: 42px;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-nav a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #1bbae1;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar-nav a:hover,
.sidebar-nav a:focus,
.sidebar-nav a.open,
.sidebar-nav li.active > a {
    color: #ffffff;
    text-decoration: none;
    background: rgba(27, 186, 225, 0.1);
    border-left-color: #1bbae1;
}

.sidebar-nav a:hover::before,
.sidebar-nav li.active > a::before {
    opacity: 1;
}

.sidebar-nav a.active {
    padding-left: 18px;
    border-left: 3px solid #1bbae1;
    background: rgba(27, 186, 225, 0.2);
    color: white;
    font-weight: 600;
}

.sidebar-nav a.active::before {
    opacity: 1;
}

.sidebar-nav a > .sidebar-nav-icon {
    margin-right: 12px;
    font-size: 18px;
}

.sidebar-nav a > .sidebar-nav-indicator {
    float: right;
    line-height: inherit;
    margin-left: 4px;
    transition: all 0.3s ease;
}

.sidebar-nav a > .sidebar-nav-icon,
.sidebar-nav a > .sidebar-nav-indicator {
    display: inline-block;
    opacity: 0.7;
    width: 20px;
    text-align: center;
}

.sidebar-nav a:hover,
.sidebar-nav a:hover > .sidebar-nav-icon,
.sidebar-nav a:hover > .sidebar-nav-indicator,
.sidebar-nav a.active,
.sidebar-nav a.active > .sidebar-nav-icon,
.sidebar-nav a.active > .sidebar-nav-indicator,
.sidebar-nav a.open,
.sidebar-nav a.open > .sidebar-nav-icon,
.sidebar-nav a.open > .sidebar-nav-indicator,
.sidebar-nav li.active > a,
.sidebar-nav li.active > a > .sidebar-nav-icon,
.sidebar-nav li.active > a > .sidebar-nav-indicator {
    opacity: 1;
}

.sidebar-nav a.active > .sidebar-nav-indicator,
.sidebar-nav a.open > .sidebar-nav-indicator,
.sidebar-nav li.active > a > .sidebar-nav-indicator {
    transform: rotate(-90deg);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background: rgba(0, 0, 0, 0.3);
}

.sidebar-nav li.active > ul {
    display: block;
}

.sidebar-nav ul a {
    margin: 0;
    font-size: 13px;
    padding-left: 40px;
    min-height: 38px;
    line-height: 38px;
    font-weight: 500;
}

.sidebar-nav ul a::before {
    left: 28px;
}

.sidebar-nav ul a.active,
.sidebar-nav ul a.active:hover {
    border-left: 3px solid #1bbae1;
    padding-left: 40px;
}

.sidebar-nav ul ul {
    background: rgba(0, 0, 0, 0.4);
}

.sidebar-nav ul ul a {
    padding-left: 55px;
}

.sidebar-nav ul ul a::before {
    left: 43px;
}

.sidebar-nav ul ul a.active,
.sidebar-nav ul ul a.active:hover {
    padding-left: 55px;
}

/* Sidebar Header — flat : le bandeau dégradé cyan est supprimé, la séparation
   de groupe est le simple border-top défini en (T3-09) */
.sidebar-header {
    margin: 16px 0 8px 0;
    padding: 14px 18px;
    line-height: 1.3;
}

.sidebar-header + .sidebar-section {
    padding-top: 0px;
    padding-bottom: 0px;
}

.sidebar-header .sidebar-header-title {
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
}

.sidebar-header-options {
    float: right;
    display: inline-block;
}

.sidebar-header-options > a,
.sidebar-nav .sidebar-header-options a {
    float: right;
    margin: 0;
    padding: 0;
    min-height: 0;
    line-height: inherit;
    display: block;
    min-width: 18px;
    text-align: center;
    color: #ffffff;
    opacity: 0.3;
    filter: alpha(opacity=30);
}

.sidebar-header-options a.active,
.sidebar-header-options a:hover,
.sidebar-header-options a:focus,
.sidebar-nav .sidebar-header-options a.active,
.sidebar-nav .sidebar-header-options a:hover,
.sidebar-nav .sidebar-header-options a:focus {
    background: none;
    color: #ffffff;
    opacity: 1;
    filter: alpha(opacity=100);
}

.sidebar-header-options a > i {
    font-size: 14px;
}

/*
=================================================================
(#m04mcs) MAIN CONTENT
=================================================================
*/

/* Content Header */
.content-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: none;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin: 0 0 20px 0;
}

.content-header h1,
.content-header h2 {
    margin: 0;
    font-size: 26px;
    line-height: 32px;
}

.content-header small
.content-header small{
    font-size: 17px;
}

.header-section h1 i {
    font-size: 56px;
    float: right;
    margin: 2px 0 0 10px;
    color: #eaedf1;
    margin: 0 0 0 10px;
    line-height: 64px;
}

.header-section {
    padding: 30px 10px;
}

.content-header,
.content-top {
    margin: -10px -5px 10px;
}

.content-top {
    background-color: #ffffff;
    border-bottom: 1px solid #dbe1e8;
}

.content-header-media {
    position: relative;
    height: 248px;
    overflow: hidden;
    border-top-color: #222222;
}

.content-header-media .header-section {
    z-index: 200;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: #ffffff;
    background: url('../img/template/ie8_opacity_dark_60.png') repeat;
    background: rgba(0, 0, 0, 0.6);
}

.content-header-media small,
.content-header-media i {
    color: #dddddd;
}

.content-header-media > img {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2560px;
    height: 248px;
    margin-left: -1280px;
}

.content-header-media > .content-header-media-map {
    height: 270px;
}

/* Blocks */
.block {
    margin: 0 0 20px;
    padding: 20px 15px 1px;
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.block:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Ne pas déplacer les blocks contenant des grids ou modales */
.block:has(.jdgridbox):hover,
.block:has(.modal):hover {
    transform: none;
}

.block.full {
    padding: 20px 15px;
}

.block .block-content-full {
    margin: -20px -15px -1px;
}

.block .block-content-mini-padding {
    padding: 8px;
}

.block.full .block-content-full {
    margin: -20px -15px;
}

.block .tab-content .block-content-full,
.block.full .tab-content .block-content-full {
    margin-top: -19px !important;
}

.block-title {
    margin: -20px -15px 20px;
    background: linear-gradient(135deg, #1bbae1 0%, #17a2b8 100%);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 4px 0;
}

.block-title h1,
.block-title h2,
.block-title h3,
.block-title h4,
.block-title h5,
.block-title h6 {
    color: #ffffff !important;
    font-weight: 600;
}

.block-title h1 strong,
.block-title h2 strong,
.block-title h3 strong,
.block-title h4 strong,
.block-title h5 strong,
.block-title h6 strong {
    font-weight: 800;
}

.block-title h1,
.block-title h2,
.block-title h3,
.block-title h4,
.block-title h5,
.block-title h6 {
    display: inline-block;
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    padding: 10px 16px 7px;
    font-weight: normal;
}

.block-title h1 small,
.block-title h2 small,
.block-title h3 small,
.block-title h4 small,
.block-title h5 small,
.block-title h6 small {
    font-size: 13px;
    color: #777777;
    font-weight: normal;
}

.block-title h1,
.block-title h2,
.block-title h3 {
    padding-left: 15px;
    padding-right: 15px;
}

.block-title .nav-tabs,
.block-options {
    min-height: 40px;
    line-height: 38px;
}

.block-title .nav-tabs {
    padding: 3px 1px 0;
    border-bottom: none;
}

.block-title .nav-tabs > li > a {
    border-bottom: none;
}

.block-title .nav-tabs {
    margin-bottom: -2px;
}

.block-title .nav-tabs > li > a {
    margin-bottom: 0;
}

.block-title .nav-tabs > li > a:hover {
    background: none;
}

.block-title .nav-tabs > li.active > a,
.block-title .nav-tabs > li.active > a:hover,
.block-title .nav-tabs > li.active > a:focus {
    border: 1px solid #eaedf1;
    border-bottom-color: #ffffff;
    background-color: #ffffff;
}

.block-title code {
    padding: 2px 3px;
}

.block-options {
    margin: 0 6px;
    line-height: 37px;
}

.block-options .label {
    display: inline-block;
    padding: 6px;
    vertical-align: middle;
    font-size: 13px;
}

.block-top {
    margin: -20px -15px 20px;
    border-bottom: 1px dotted #dbe1e8;
}

.block-section {
    margin-bottom: 20px;
}

.block.block-fullscreen {
    position: fixed;
    top: 5px;
    bottom: 5px;
    left: 5px;
    right: 5px;
    z-index: 1031;
    margin-bottom: 0;
    overflow-y: auto;
}

/* Widgets */
.widget {
    background-color: #ffffff;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: none;
    display: block;
}

.widget:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.widget .widget-extra-full,
.widget .widget-extra {
    position: relative;
    box-shadow: none !important;
}

.widget .widget-extra {
    padding: 8px 12px;
    background: #1bbae1;
    position: relative;
}

.widget-extra-full {
    background: #ffffff !important;
    padding: 12px 15px !important;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-extra-full .h4 {
    color: #1bbae1;
    font-weight: 700;
    margin: 0;
    font-size: 18px;
}

.widget .widget-content-light {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}

.widget .widget-content-light small {
    color: #ffffff;
    opacity: 0.9;
}

.widget .widget-image,
.widget .widget-icon {
    width: 64px;
    height: 64px;
}

.widget .widget-icon {
    display: inline-block;
    line-height: 64px;
    text-align: center;
    font-size: 28px;
    color: #ffffff;
    border-radius: 32px;
}

.widget .widget-icon .gi,
.widget .widget-icon .si,
.widget .widget-icon .hi,
.widget .widget-icon .fi {
    margin-top: -3px;
}

.widget .widget-options,
.widget .widget-options-left {
    position: absolute;
    top: 5px;
    opacity: 0.5;
    filter: alpha(opacity=50);
}

.widget .widget-options {
    right: 5px;
}

.widget .widget-options-left {
    left: 5px;
}

.widget .widget-options:hover,
.widget .widget-options-left:hover {
    opacity: 1;
    filter: alpha(opacity=100);
}

.widget-simple {
    padding: 15px;
}

.widget-simple:before,
.widget-simple:after {
    content:" ";
    display:table;
}

.widget-simple:after{
    clear:both;
}

.widget-simple .widget-image,
.widget-simple .widget-icon {
    margin: 0 15px;
}

.widget-simple .widget-image.pull-left,
.widget-simple .widget-icon.pull-left {
    margin-left: 0;
}

.widget-simple .widget-image.pull-right,
.widget-simple .widget-icon.pull-right {
    margin-right: 0;
}

.widget-simple .widget-content {
    font-size: 18px;
    margin: 12px 0;
}

.widget-simple .widget-content small {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    font-weight: 400;
}

.widget-advanced .widget-header {
    position: relative;
    padding: 15px 15px 50px;
    height: 150px;
    overflow: hidden;
}

.widget-advanced .widget-background {
    position: absolute;
    top: 0;
    left: 0;
    height: 150px;
}

.widget-advanced .widget-background-map {
    height: 180px;
    width: 100%;
}

.widget-advanced .widget-content-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    margin: 0;
    background: url('../img/template/ie8_opacity_dark_60.png') repeat;
    background: rgba(0, 0, 0, 0.6);
}

.widget-advanced .widget-main {
    position: relative;
    padding: 50px 15px 15px;
}

.widget-advanced .widget-image-container {
    position: absolute;
    display: inline-block;
    padding: 5px;
    width: 74px;
    height: 74px;
    top: -36px;
    left: 50%;
    margin-left: -36px;
    border-radius: 36px;
    background-color: #ffffff;
}

.widget-advanced .widget-header .widget-image-container {
    position: static;
    left: auto;
    top: auto;
    margin: 0;
}

.widget-advanced-alt .widget-header,
.widget-advanced-alt .widget-main {
    padding: 15px;
}

.widget-advanced-alt .widget-header {
    height: auto;
    min-height: 150px;
}

/* Link Widgets */
a.widget {
    display: block;
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

a.widget:hover,
a.widget:focus,
a.widget:active {
    text-decoration: none;
}

a.widget.widget-hover-effect1:hover {
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
    -webkit-box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

a.widget.widget-hover-effect1:active {
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

a.widget.widget-hover-effect2:hover {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.2);
}

a.widget.widget-hover-effect2:active {
    -webkit-transform: translateY(2px);
    transform: translateY(2px);
    -webkit-box-shadow: none;
    box-shadow: none;
}

a.widget.widget-hover-effect3:hover {
    -webkit-transform: rotate(2deg);
    transform: rotate(2deg);
}

a.widget.widget-hover-effect3:active {
    -webkit-transform: rotate(2deg) scale(0.95);
    transform: rotate(2deg) scale(0.95);
}

a.widget.widget-hover-effect4:hover {
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
}

a.widget.widget-hover-effect4:active {
    -webkit-transform: rotate(-1deg) scale(0.95);
    transform: rotate(-1deg) scale(0.95);
}

/* Content which contains floats */
.content-float .pull-left {
    margin: 0 20px 20px 0;
}

.content-float .pull-right {
    margin: 0 0 20px 20px;
}

/* Draggable Blocks */
.draggable-blocks .block-title {
    cursor: move;
}

.draggable-placeholder {
    background-color: #dddddd;
    border: 1px dashed #999999;
    margin-bottom: 10px;
}

/* Scroll to top link */
#to-top {
    display: none;
    position: fixed;
    bottom: 55px;
    left: 5px;
    border-radius: 3px;
    padding: 0 12px;
    font-size: 28px;
    text-align: center;
    color: #ffffff;
    background-color: #000000;
    opacity: 0.1;
    filter: alpha(opacity=10);
}

#to-top:hover {
    color: #ffffff;
    background-color: #1bbae1;
    text-decoration: none;
    opacity: 1;
    filter: alpha(opacity=100);
}

/*
=================================================================
(#m05pgs) PAGES
=================================================================
*/

/* Login */
#login-background {
    width: 100%;
    height: 224px;
    overflow: hidden;
    position: relative;
}

#login-background > img {
    position: absolute;
    width: 2560px;
    height: 400px;
    left: 50%;
    margin-left: -1280px;
}

#login-alt-container {
    display: none;
}

#login-container,
#login-alt-container {
    position: absolute;
    width: 300px;
    top: 10px;
    left: 50%;
    margin-left: -150px;
    z-index: 1000;
}

#login-container .login-title {
    padding: 20px 10px;
    background: #444444;
    background: url('../img/template/ie8_opacity_dark_60.png') repeat;
    background: rgba(0, 0, 0, 0.6);
}

#login-container .login-title h1,
#login-alt-container h1 {
    font-size: 26px;
    color: #ffffff;
}

#login-container .login-title h1 small,
#login-alt-container h1 small {
    font-size: 16px;
    color: #dddddd;
}

#login-container > .block {
    border: none;
}

#login-container .register-terms {
    line-height: 30px;
    margin-right: 10px;
    float: left;
}

/* Full Background Image */
.full-bg {
    min-height: 100%;
    min-width: 1280px;
    width: 100%;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
}

@media screen and (max-width: 1280px) {
    .full-bg {
        left: 50%;
        margin-left: -640px;
    }
}

/* Full Page Container */
.full-page-container {
    position: absolute;
    width: 300px;
    padding: 10px;
    top: 20px;
    left: 50%;
    margin-left: -150px;
    z-index: 1000;
    background-color: #333333;
    background-color: rgba(0,0,0,.5);
}

.full-page-section {
    padding: 25px 0;
    margin: 25px -10px;
    background-color: #000000;
    background-color: rgba(0,0,0,.15);
}

/* Countdown */
.countdown-con {
    color: #ffffff;
    text-align: center;
}

.countdown-con .countdown-num {
    font-size: 56px;
    font-weight: bold;
}

.countdown-con .countdown-info {
    font-size: 16px;
    color: rgba(255, 255, 255, .6);
}

/* Calendar */
.calendar-events {
    list-style: none;
    margin: 0;
    padding: 0;
}

.calendar-events li {
    color: #ffffff;
    margin-bottom: 5px;
    padding: 5px 10px;
    border-radius: 3px;
    background-color: #555555;
    opacity: 0.85;
    filter: alpha(opacity=85);
}

.calendar-events li:hover {
    cursor: move;
    opacity: 1;
    filter: alpha(opacity=100);
}

/* Gallery */
.gallery img, .gallery a img, .gallery-image img, a[data-toggle="lightbox-image"] img {
    max-width: 100%;
}

a[data-toggle="lightbox-image"],
a.gallery-link {
    cursor: pointer;
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    cursor: zoom-in;
}

.gallery a:hover img,
.gallery-image:hover img,
a[data-toggle="lightbox-image"]:hover img {
    opacity: 0.75;
    filter: alpha(opacity=75);
}

.gallery-image {
    position: relative;
}

.gallery-image-options {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    padding: 10px;
}

.gallery-image:hover .gallery-image-options {
    display: block;
}

.gallery > .row > div {
    margin-bottom: 15px;
}

.gallery.gallery-widget > .row > div {
    margin-bottom: 0;
    padding-top: 7px;
    padding-bottom: 7px;
}

/* Media Items */
.media-items {
    position: relative;
    margin-bottom: 20px;
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
    border: 2px solid #f1f1f1;
    -webkit-transition: all .15s ease-out;
    transition: all .15s ease-out;
}

.media-items:hover {
    border-color: #cccccc;
}

.media-items:hover .media-items-options {
    display: block;
}

.media-items .media-items-options {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    padding: 10px;
    display: none;
}

.media-items .media-items-content {
    padding: 40px 0 20px;
}

/* Charts */
.pie-chart .pie-avatar {
    position: absolute;
    top: 8px;
    left: 8px;
}

.chart {
    height: 360px;
}

.chart-tooltip,
.mini-chart-tooltip {
    position: absolute;
    display: none;
    color: #ffffff;
    background-color: #000000;
    padding: 4px 10px;
}

.chart-pie-label {
     font-size: 12px;
     text-align: center;
     padding: 8px 12px;
     color: #ffffff;
}

.mini-chart-tooltip {
    left: 0;
    top: 0;
    visibility: hidden;
}

.legend table td {
    padding: 4px;
    font-size: 14px;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline-header {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    padding: 0 15px;
    min-height: 60px;
    line-height: 60px;
    background-color: #ffffff;
    border-bottom: 2px solid #f0f0f0;
    z-index: 500;
}

.timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline-list:after {
    position: absolute;
    display: block;
    width: 2px;
    top: 0;
    left: 95px;
    bottom: 0;
    content: "";
    background-color: #f0f0f0;
    z-index: 1;
}

.timeline-header + .timeline-list:after {
    top: 60px;
}

.timeline-list li {
    position: relative;
    margin: 0;
    padding: 15px 0;
}

.timeline-list.timeline-hover li:hover {
    background-color: #f9f9f9;
}

.timeline-list .timeline-icon {
    position: absolute;
    left: 80px;
    top: 10px;
    width: 30px;
    height: 30px;
    line-height: 28px;
    font-size: 14px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 15px;
    z-index: 500;
}

.timeline-list .active .timeline-icon {
    background-color: #1bbae1;
    border-color: #1bbae1;
    color: #ffffff;
}

.timeline-list .timeline-time {
    float: left;
    width: 70px;
    text-align: right;
}

.timeline-list .timeline-content {
    margin-left: 120px;
}

.block-content-full .timeline-content {
    padding-right: 20px;
}

.media-feed {
    margin-bottom: 0;
}

.media-feed > .media {
    margin-top: 0;
    padding: 20px 20px 0;
    border-top: 1px dotted #dbe1e8;
}

.media-feed > .media:first-child {
    border-top: none;
}

.media-feed.media-feed-hover > .media:hover {
    background-color: #f9f9f9;
}

/* Error */
#error-container {
    padding: 120px 20px;
    position: relative;
}

#error-container .error-options {
    position: absolute;
    top: 20px;
    left: 20px;
}

#error-container h1 {
    font-size: 96px;
    color: #ffffff;
    margin-bottom: 40px;
}

#error-container h2 {
    color: #cccccc;
    margin-bottom: 40px;
    line-height: 1.4;
}

#error-container form {
    padding: 20px;
    border-radius: 3px;
    background: #ffffff;
    background: url('../img/template/ie8_opacity_light_10.png') repeat;
    background: rgba(255, 255, 255, 0.1);
}

#error-container .form-control {
    border-color: #ffffff;
}

/* Pricing Table */
.table.table-pricing {
    background-color: #ffffff;
}

.table-pricing th,
.table-pricing td {
    text-align: center;
}

.table-pricing th {
    font-size: 24px !important;
}

.table-pricing td {
    font-size: 15px;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.table-pricing .table-price {
    background-color: #f9f9f9;
}

.table-pricing.table-featured .table-price,
.table-pricing .table-price.table-featured {
    background-color: #252525;
}

.table-pricing.table-featured th,
.table-pricing th.table-featured {
    background-color: #1bbae1;
    border-bottom: 2px solid #394263;
    color: #ffffff;
}

.table-pricing.table-featured td,
.table-pricing td.table-featured {
    background-color: #394263;
    color: #ffffff;
}

/* Chat UI */
.chatui-container {
    position: relative;
}

.chatui-people,
.chatui-talk {
    overflow-y: hidden;
}

.chatui-people .chatui-header {
    font-size: 14px;
    line-height: 14px;
    color: #999999;
    text-transform: uppercase;
    padding: 5px 20px;
}

.chatui-people hr {
    border-top-color: #252525;
    border-top-color: rgba(0, 0, 0, 0.25);
}

.chatui-people .list-group-item {
    background: transparent;
    min-height: 52px;
    border: 0;
    border-radius: 0 !important;
}

.chatui-people .list-group-item .badge {
    margin-top: 7px;
}

.chatui-people .list-group-item .list-group-item-heading {
    color: #ffffff;
    line-height: 32px;
    margin: 0;
}

.chatui-people .list-group-item:hover,
.chatui-people .list-group-item:focus {
    background: url('../img/template/ie8_opacity_dark_20.png') repeat;
    background: rgba(0, 0, 0, 0.2);
}

.chatui-people .list-group-item img {
    float: left;
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.chatui-talk {
    top: 0;
    bottom: 50px;
}

.chatui-talk ul {
    padding: 15px;
    margin: 0;
    list-style: none;
}

.chatui-talk li {
    padding: 5px 10px;
    margin-bottom: 7px;
}

.chatui-talk .chatui-talk-msg {
    padding: 15px 10px;
    padding-right: 50px;
    border-left: 5px solid #333333;
    background-color: #f6f6f6;
    position: relative;
}

.chatui-talk .chatui-talk-msg.chatui-talk-msg-highlight {
    padding-left: 50px;
    border-left: none;
    border-right-width: 5px;
    border-right-style: solid;
}

.chatui-talk-msg .chatui-talk-msg-avatar {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
}

.chatui-talk-msg.chatui-talk-msg-highlight .chatui-talk-msg-avatar {
    top: 8px;
    right: auto;
    left: 8px;
}

.chatui-input {
    height: 50px;
    line-height: 50px;
    border-top: 1px solid #eeeeee;
}

/* Tasks */
.task-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.task-list li {
    padding: 15px 40px 15px 15px;
    margin-bottom: 10px;
    background-color: #ffffff;
    border-radius: 3px;
    position: relative;
    -webkit-transition: box-shadow 0.15s ease-out;
    transition: box-shadow 0.15s ease-out;
}

.task-list li:hover {
    -webkit-box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

.task-list li.in-1x {
    margin-left: 15px;
}

.task-list li.in-2x {
    margin-left: 30px;
}

.task-list li > .task-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #000000;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transition: opacity 0.2s ease-out;
    transition: opacity 0.2s ease-out;
}

.task-list li:hover > .task-close {
    opacity: .25;
    filter: alpha(opacity=25);
}

.task-list li.task-done {
    opacity: .50;
    filter: alpha(opacity=50);
}

.task-list li.task-done > label {
    text-decoration: line-through;
}

/*
=================================================================
(#m06bos) BOOTSTRAP OVERWRITE/EXTEND STYLES
=================================================================
*/

/* Navbar */
.navbar.navbar-default {
    background-color: #f9fafc;
}

.navbar.navbar-inverse {
    background-color: #4c5471;
}

.navbar-fixed-top,
.navbar-fixed-bottom {
    border-width: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
}

h1 small, h2 small, h3 small, h4 small, h5 small, h6 small,
.h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small,
h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small,
.h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small {
    font-weight: 300;
    color: #777777;
}

h1, h2, h3 {
    margin-bottom: 15px;
}

.text-primary,
.text-primary:hover,
a,
a:hover,
a:focus,
a.text-primary,
a.text-primary:hover,
a.text-primary:focus {
    color: #1bbae1;
}

.text-danger,
.text-danger:hover,
a.text-danger,
a.text-danger:hover,
a.text-danger:focus {
    color: #e74c3c;
}

.text-warning,
.text-warning:hover,
a.text-warning,
a.text-warning:hover,
a.text-warning:focus {
    color: #e67e22;
}

.text-success,
.text-success:hover,
a.text-success,
a.text-success:hover,
a.text-success:focus {
    color: #27ae60;
}

.text-info,
.text-info:hover,
a.text-info,
a.text-info:hover,
a.text-info:focus {
    color: #3498db;
}

.text-muted,
.text-muted:hover,
a.text-muted,
a.text-muted:hover,
a.text-muted:focus {
    color: #999999;
}

.text-light,
.text-light:hover,
a.text-light,
a.text-light:hover,
a.text-light:focus {
    color: #ffffff;
}

b, strong {
    font-weight: 600;
}

ul,
ol {
    padding-left: 30px;
}

.list-li-push li {
    margin-bottom: 10px;
}

p {
    line-height: 1.6;
}

article p {
    font-size: 16px;
    line-height: 1.8;
}

.well {
    background-color: #f9f9f9;
    border: 1px solid #eeeeee;
}

.page-header {
    border-bottom-width: 1px;
    border-bottom-color: #dddddd;
    margin: 30px 0 20px;
}

.sub-header {
    margin: 10px 0 20px;
    padding: 10px 0;
    border-bottom: 1px dotted #dddddd;
}

blockquote {
    border-left-width: 3px;
}

blockquote {
    margin: 20px 0;
    padding: 30px 60px 30px 20px;
    position: relative;
    width: 100%;
    border-color: #eaedf1;
}

blockquote:before {
    display: block;
    content: "\201C";
    font-family: serif;
    font-size: 96px;
    position: absolute;
    right: 10px;
    top: -30px;
    color: #eaedf1;
}

blockquote.pull-right:before {
    left: 10px;
    right: auto;
}

/* Forms */
label {
    font-weight: 600;
}

fieldset legend {
    font-size: 16px;
    padding: 30px 0 10px;
    border-bottom: 2px solid #eaedf1;
}

input[type="file"] {
    padding-top: 7px;
}

input[type="text"].form-control,
input[type="password"].form-control,
input[type="email"].form-control,
textarea.form-control {
    -webkit-appearance: none;
}

.form-control {
    font-size: 13px;
    padding: 6px 8px;
    max-width: 100%;
    margin: 1px 0;
    color: #394263;
    border-color: #dbe1e8;
}

.form-control-borderless .form-control,
.form-control-borderless .input-group-addon,
.form-control-borderless,
.form-control-borderless:focus {
    border: transparent !important;
}

.input-group {
    margin-top: 1px;
    margin-bottom: 1px;
}

.input-group .form-control {
    margin-top: 0;
}

.form-control:focus {
    border-color: #1bbae1;
}

.help-block {
    color: #777777;
    font-weight: 400;
}

.input-group-addon {
    min-width: 45px;
    text-align: center;
    background-color: #ffffff;
    border-color: #dbe1e8;
}

.form-horizontal .control-label {
    margin-bottom: 5px;
}

.form-bordered {
    margin: -15px -15px -1px;
}

.modal-body .form-bordered {
    margin-bottom: -20px;
}

.modal-lg-80{width:80%;height:80%;}

.form-bordered fieldset legend {
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
}

.form-bordered .form-group {
    margin: 0;
    border: none;
    padding: 15px;
    border-bottom: 1px dashed #eaedf1;
}

.form-bordered .form-group.form-actions {
    background-color: #f9fafc;
    border-bottom: none;
}

.form-horizontal.form-bordered .form-group {
    padding-left: 0;
    padding-right: 0;
}

.form-bordered .help-block {
    margin-bottom: 0;
}

.has-success .form-control,
.has-warning .form-control,
.has-error .form-control {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.has-success .help-block,
.has-success .control-label,
.has-success .input-group-addon,
.has-success .checkbox,
.has-success .checkbox-inline,
.has-success .radio,
.has-success .radio-inline {
    color: #27ae60;
}

.has-success .form-control,
.has-success .input-group-addon {
    border-color: #27ae60;
    background-color: #ffffff;
}

.has-success .form-control:focus {
    border-color: #166638;
}

.has-warning .help-block,
.has-warning .control-label,
.has-warning .input-group-addon,
.has-warning .checkbox,
.has-warning .checkbox-inline,
.has-warning .radio,
.has-warning .radio-inline {
    color: #e67e22;
}

.has-warning .form-control,
.has-warning .input-group-addon {
    border-color: #e67e22;
    background-color: #ffffff;
}

.has-warning .form-control:focus {
    border-color: #b3621b;
}

.has-error .help-block,
.has-error .control-label,
.has-error .input-group-addon,
.has-error .checkbox,
.has-error .checkbox-inline,
.has-error .radio,
.has-error .radio-inline {
    color: #e74c3c;
}

.has-error .form-control,
.has-error .input-group-addon {
    border-color: #e74c3c;
    background-color: #ffffff;
}

.has-error .form-control:focus {
    border-color: #c0392b;
}

/* Form Wizards */
.wizard-steps {
    border-bottom: 1px solid #eaedf1;
    margin-bottom: 20px;
}

.form-bordered .wizard-steps {
    margin-bottom: 0;
}

.wizard-steps .row {
    margin: 0;
}

.wizard-steps .row div {
    padding: 15px 0;
    font-size: 15px;
    text-align: center;
}

.form-bordered .wizard-steps .row div {
    padding-top: 10px;
}

.wizard-steps span {
    display: inline-block;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border: 1px solid #1bbae1;
    border-radius: 50px;
}

.wizard-steps div.done span,
.wizard-steps div.active span {
    background-color: #1bbae1;
    color: #ffffff;
}

.wizard-steps div.done span {
    opacity: 0.25;
    filter: alpha(opacity=25);
}

.wizard-steps div.active span {
    opacity: 1;
    filter: alpha(opacity=100);
}

/* Form Select Switches */
.switch {
    margin: 1px 0;
    position: relative;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

.switch input {
    position: absolute;
    opacity: 0;
    filter: alpha(opacity=0);
}

.switch span {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
    border-radius: 28px;
    background-color: #f9f9f9;
    border: 1px solid #dddddd;
    -webkit-transition: background-color 0.35s;
    transition: background-color 0.35s;
}

.switch span:after {
    content: "";
    position: absolute;
    left: 2px;
    top: 1px;
    bottom: 1px;
    width: 24px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 50%;
    -webkit-box-shadow: 1px 0 3px rgba(0, 0, 0, 0.05);
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.05);
    -webkit-transition: all 0.15s ease-out;
    transition: all 0.15s ease-out;
}

.switch input:checked + span:after {
    left: 26px;
    border: none;
    -webkit-box-shadow: -2px 0 3px rgba(0, 0, 0, 0.1);
    box-shadow: -2px 0 3px rgba(0, 0, 0, 0.1);
}

.switch input:checked + span {
    background-color: #eeeeee;
}

.switch-default span {
    border-color: #dbe1e8;
}

.switch-default input:checked + span {
    background-color: #dbe1e8;
}

.switch-primary span {
    border-color: #1bbae1;
}

.switch-primary input:checked + span {
    background-color: #1bbae1;
}

.switch-info span {
    border-color: #7abce7;
}

.switch-info input:checked + span {
    background-color: #7abce7;
}

.switch-success span {
    border-color: #aad178;
}

.switch-success input:checked + span {
    background-color: #aad178;
}

.switch-warning span {
    border-color: #f7be64;
}

.switch-warning input:checked + span {
    background-color: #f7be64;
}

.switch-danger span {
    border-color: #ef8a80;
}

.switch-danger input:checked + span {
    background-color: #ef8a80;
}

.lt-ie9 .switch input {
    position: static;
    opacity: 1;
    filter: alpha(opacity=100);
}

.lt-ie9 .switch span,
.lt-ie9 .switch span:after {
    display: none !important;
}

/* Tables */
.table.table-vcenter th,
.table.table-vcenter td {
    vertical-align: middle;
}

.table-options {
    padding: 6px 0;
}

.table thead > tr > th {
    font-size: 14px;
    font-weight: 600;
}

.table thead > tr > th > small {
    font-weight: 400;
    font-size: 75%;
}

.table thead > tr > th,
.table thead > tr > td,
.table tfoot > tr > th,
.table tfoot > tr > td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.table tfoot > tr > th,
.table tfoot > tr > td {
    background-color: #f9fafc;
}

.table-borderless tbody > tr > th,
.table-borderless tbody > tr > td {
    border-top-width: 0;
}

.table thead > tr > th,
.table tbody > tr > th,
.table tfoot > tr > th,
.table thead > tr > td,
.table tbody > tr > td,
.table tfoot > tr > td,
.table tbody + tbody,
.table-bordered,
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
    border-color: #eaedf1;
}

.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th {
    background-color: #eaedf1;
}

/* List Group */
.list-group-item {
    border-color: #eaedf1;
}

a.list-group-item.active,
a.list-group-item.active:hover,
a.list-group-item.active:focus {
    background-color: #1bbae1;
    border-color: #1bbae1;
}

a.list-group-item.active .list-group-item-text,
a.list-group-item.active:hover .list-group-item-text,
a.list-group-item.active:focus .list-group-item-text {
    color: #ffffff;
}

a.list-group-item:hover,
a.list-group-item:focus {
    background-color: #f9fafc;
}

a.list-group-item.active > .badge {
    background: url('../img/template/ie8_opacity_dark_40.png') repeat;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

/* Navs */
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus,
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus,
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
    color: #fff;
    background-color: #1bbae1;
}

.nav > li i {
    font-size: 14px;
}

.nav-pills > .active > a > .badge {
    color: #1bbae1;
}

.nav-stacked > li > a {
    margin: 4px 0 0;
}

.nav .caret,
.nav a:hover .caret,
.nav a:focus .caret {
    border-top-color: #1bbae1;
    border-bottom-color: #1bbae1;
}

.nav > li > a:hover,
.nav > li > a:focus {
    background-color: #f9fafc;
}

.nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 0;
    gap: 4px;
}

.nav-tabs > li {
    margin-bottom: 0;
}

.nav-tabs > li > a {
    padding: 10px 16px;
    margin-bottom: 0;
    border: none;
    border-radius: 6px 6px 0 0;
    background: transparent;
    color: #6c757d;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-tabs > li > a:hover {
    border: none;
    background: rgba(27, 186, 225, 0.08);
    color: #1bbae1;
}

.nav-tabs > li > a i {
    margin-right: 6px;
    font-size: 14px;
    opacity: 0.8;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: #1bbae1;
    background: #ffffff;
    border: none;
    border-bottom: 3px solid #1bbae1;
    font-weight: 600;
}

.nav-tabs > li.active > a i {
    opacity: 1;
    color: #1bbae1;
}

.nav-tabs > li > a .badge {
    background: #1bbae1;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* Tab icons emoji styling */
.nav-tabs .tab-icon {
    font-size: 16px;
    margin-right: 6px;
    display: inline-block;
    vertical-align: middle;
}

/* Fix tab display - allow wrapping */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
}

.nav-tabs > li {
    flex-shrink: 0;
}

.nav-pills > li.active > a > .badge {
    background: url('../img/template/ie8_opacity_dark_20.png') repeat;
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.nav-pills.nav-icons > li > a i {
    margin-right: 10px;
}

.nav-pills.nav-icons > li.active > a i,
.nav-pills.nav-icons > li.active > a:hover i,
.nav-pills.nav-icons > li.active > a:focus i {
    color: #ffffff;
}

.dropdown-menu {
    padding: 0;
    font-size: 13px;
    border-color: #dbe1e8;
    -webkit-box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.dropdown-menu > li > a {
    padding: 6px 10px;
}

.dropdown-menu i {
    opacity: 0.2;
    filter: alpha(opacity=20);
    line-height: 17px;
}

.dropdown-menu a:hover i {
    opacity: 0.5;
    filter: alpha(opacity=50);
}

.dropdown-menu .divider {
    margin: 2px 0;
    padding: 0 !important;
    background-color: #f0f0f0;
}

li.dropdown-header {
    padding: 5px 10px;
    color: #394263;
    background-color: #f9fafc;
    border-top: 1px solid #eaedf1;
    border-bottom: 1px solid #eaedf1;
}

.dropdown-menu li:first-child.dropdown-header {
    border-top: none;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.dropdown-menu.dropdown-custom {
    min-width: 200px;
}

.dropdown-menu.dropdown-custom > li {
    padding: 8px 10px;
    font-size: 12px;
}

.dropdown-menu.dropdown-custom > li > a {
    border-radius: 3px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -3px;
    margin-left: 0;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left > .dropdown-menu {
    left: -100%;
    margin-left: 10px;
}

.collapse.in .dropdown.open .dropdown-menu {
    display: block;
    position: static;
    margin: 0 0 0 15px;
    left: auto;
    top: auto;
}

.navbar-fixed-top .dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
}

.pagination > li > a,
.pagination > li > span  {
    color: #1bbae1;
    margin-left: 5px;
    margin-right: 5px;
    border: none !important;
    border-radius: 25px !important;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background-color: #1bbae1;
}

.pager > li > a,
.pager > li > span {
    border-color: #eaedf1;
}

.pager > li > a:hover,
.pagination > li > a:hover {
    background-color: #1bbae1;
    border-color: #1bbae1;
    color: #ffffff;
}

.pager > li.disabled > a:hover {
    border-color: #eaedf1;
}

/* Horizontal Navigation */
.nav-horizontal {
    padding: 16px 12px 8px;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-horizontal li {
    display: inline-block;
    margin: 0;
}

.nav-horizontal a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    padding: 8px 12px;
    background: #ffffff;
    color: #394263;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.nav-horizontal a:hover {
    background: linear-gradient(135deg, #E6007E 0%, #FF2D9C 100%);
    text-decoration: none;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 126, 0.3);
}

.nav-horizontal li.active a {
    background: linear-gradient(135deg, #1bbae1 0%, #17a2b8 100%);
    text-decoration: none;
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(27, 186, 225, 0.4);
}

.nav-horizontal a:focus {
    text-decoration: none;
    outline: none;
}

.nav-horizontal a:hover i,
.nav-horizontal li.active a i {
    color: #ffffff;
    opacity: 1;
    filter: alpha(opacity=100);
}

.nav-horizontal i {
    display: inline-block;
    font-size: 16px;
    color: #394263;
    margin-right: 0;
    transition: all 0.3s ease;
    line-height: 1;
    height: auto;
}

.nav-horizontal a:hover i {
    transform: scale(1.1);
}

/* Popover */
.popover-title {
    background: none;
    border: none;
    font-size: 17px;
    font-weight: 600;
}

/* Tooltip */
.tooltip {
    z-index: 1051;
}

.tooltip.in {
    opacity: 1;
    filter: alpha(opacity=100);
}

.tooltip-inner {
    padding: 4px 6px;
    background-color: #000000;
    color: #ffffff;
}

.tooltip.top .tooltip-arrow,
.tooltip.top-left .tooltip-arrow,
.tooltip.top-right .tooltip-arrow {
    border-top-color: #000000;
}

.tooltip.right .tooltip-arrow {
    border-right-color: #000000;
}

.tooltip.left .tooltip-arrow {
    border-left-color: #000000;
}

.tooltip.bottom .tooltip-arrow,
.tooltip.bottom-left .tooltip-arrow,
.tooltip.bottom-right .tooltip-arrow {
    border-bottom-color: #000000;
}

/* Breadcrumps */
.breadcrumb {
    background-color: #ffffff;
}

.breadcrumb i {
    font-size: 14px;
}

.breadcrumb-top {
    margin: -10px -5px 10px;
    padding: 7px 10px;
    border-top: 1px solid #eaedf1;
    border-bottom: 1px solid #dbe1e8;
    font-size: 12px;
}

.content-header + .breadcrumb-top,
.breadcrumb-top + .content-header {
    margin-top: -11px;
}

.breadcrumb > li + li:before {
    content: "\203a";
}

/* Progress Bars */
.progress,
.progress-bar {
    height: 20px;
    line-height: 20px;
}

.progress-bar-danger {
    background-color: #e74c3c;
}

.progress-bar-warning {
    background-color: #f39c12;
}

.progress-bar-success {
    background-color: #2ecc71;
}

.progress-bar-info {
    background-color: #3498db;
}

/* Modals */
.modal-content {
    border-radius: 12px;
}

.modal-header {
    padding: 15px 15px 14px;
    border-bottom: 1px solid #eeeeee;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.modal-title {
    font-weight: 300;
}

.modal-body {
    padding: 20px 15px;
}

.modal-body .nav-tabs {
    margin: 0 -15px 15px;
    padding: 0 5px !important;
}

.modal-footer {
    margin-top: 0;
    padding: 14px 15px 15px;
    border-top: 1px solid #eeeeee;
    background-color: #f9f9f9;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Buttons */
.btn {
    margin: 1px 0;
    background-color: #ffffff;
}

.btn .gi,
.btn .hi,
.btn .si,
.btn .fi {
    line-height: 1;
}

.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
    opacity: 0.4;
    filter: alpha(opacity=40);
}

.block-options .btn,
.input-group .btn,
.modal-content .btn {
    margin-top: 0;
    margin-bottom: 0;
}

.input-group .btn {
    padding: 6px 12px;
    line-height: 1.42857143;
}

.input-group .btn-xs {
    padding: 6px 8px;
}

.btn-default {
    background-color: #f1f3f6;
    border-color: #dbe1e8;
    color: #394263;
}

.btn-default.btn-alt {
    background-color: #ffffff;
}

.btn-default:hover {
    background-color: #eaedf1;
    border-color: #c2c8cf;
}

.btn-default:focus,
.btn-default.focus,
.btn-default:active,
.btn-default:active:hover,
.btn-default:active:focus,
.btn-default.active,
.btn-default.active:hover,
.btn-default.active:focus,
.open .btn-default.dropdown-toggle,
.open .btn-default.dropdown-toggle:hover,
.open .btn-default.dropdown-toggle:focus,
.open .btn-default.dropdown-toggle.focus {
    background-color: #eaedf1;
    border-color: #eaedf1;
}

.btn-default.disabled,
.btn-default.disabled:hover,
.btn-default.disabled:focus,
.btn-default.disabled:active,
.btn-default.disabled.active,
.btn-default[disabled]:hover,
.btn-default[disabled]:focus,
.btn-default[disabled].focus,
.btn-default[disabled]:active,
.btn-default[disabled].active,
.btn-default[disabled]:active:focus,
.btn-default[disabled].active:focus,
fieldset[disabled] .btn-default:hover,
fieldset[disabled] .btn-default:focus,
fieldset[disabled] .btn-default.focus,
fieldset[disabled] .btn-default:active,
fieldset[disabled] .btn-default.active,
fieldset[disabled] .btn-default:active:focus,
fieldset[disabled] .btn-default.active:focus {
    background-color: #eaedf1;
    border-color: #eaedf1;
}

.btn-primary {
    background: linear-gradient(135deg, #1bbae1 0%, #17a2b8 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(27, 186, 225, 0.3);
    transition: all 0.3s ease;
}

.btn-primary.btn-alt {
    background: #ffffff;
    color: #1bbae1;
    border: 2px solid #1bbae1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #17a2b8 0%, #42c5e0 100%);
    border: none;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(27, 186, 225, 0.4);
}

.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary:active:hover,
.btn-primary:active:focus,
.btn-primary.active,
.btn-primary.active:hover,
.btn-primary.active:focus,
.open .btn-primary.dropdown-toggle,
.open .btn-primary.dropdown-toggle:hover,
.open .btn-primary.dropdown-toggle:focus,
.open .btn-primary.dropdown-toggle.focus {
    background: linear-gradient(135deg, #17a2b8 0%, #42c5e0 100%);
    border: none;
    color: #ffffff;
}

.btn-primary.disabled,
.btn-primary.disabled:hover,
.btn-primary.disabled:focus,
.btn-primary.disabled:active,
.btn-primary.disabled.active,
.btn-primary[disabled]:hover,
.btn-primary[disabled]:focus,
.btn-primary[disabled].focus,
.btn-primary[disabled]:active,
.btn-primary[disabled].active,
.btn-primary[disabled]:active:focus,
.btn-primary[disabled].active:focus,
fieldset[disabled] .btn-primary:hover,
fieldset[disabled] .btn-primary:focus,
fieldset[disabled] .btn-primary.focus,
fieldset[disabled] .btn-primary:active,
fieldset[disabled] .btn-primary.active,
fieldset[disabled] .btn-primary:active:focus,
fieldset[disabled] .btn-primary.active:focus {
    background-color: #1bbae1;
    border-color: #1bbae1;
    color: #ffffff;
}

.btn-danger {
    background-color: #ef8a80;
    border-color: #e74c3c;
    color: #ffffff;
}

.btn-danger.btn-alt {
    background-color: #ffffff;
    color: #e74c3c;
}

.btn-danger:hover {
    background-color: #e74c3c;
    border-color: #9c3428;
    color: #ffffff;
}

.btn-danger:focus,
.btn-danger.focus,
.btn-danger:active,
.btn-danger:active:hover,
.btn-danger:active:focus,
.btn-danger.active,
.btn-danger.active:hover,
.btn-danger.active:focus,
.open .btn-danger.dropdown-toggle,
.open .btn-danger.dropdown-toggle:hover,
.open .btn-danger.dropdown-toggle:focus,
.open .btn-danger.dropdown-toggle.focus {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: #ffffff;
}

.btn-danger.disabled,
.btn-danger.disabled:hover,
.btn-danger.disabled:focus,
.btn-danger.disabled:active,
.btn-danger.disabled.active,
.btn-danger[disabled]:hover,
.btn-danger[disabled]:focus,
.btn-danger[disabled].focus,
.btn-danger[disabled]:active,
.btn-danger[disabled].active,
.btn-danger[disabled]:active:focus,
.btn-danger[disabled].active:focus,
fieldset[disabled] .btn-danger:hover,
fieldset[disabled] .btn-danger:focus,
fieldset[disabled] .btn-danger.focus,
fieldset[disabled] .btn-danger:active,
fieldset[disabled] .btn-danger.active,
fieldset[disabled] .btn-danger:active:focus,
fieldset[disabled] .btn-danger.active:focus {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: #ffffff;
}

.btn-warning {
    background: linear-gradient(135deg, #E6007E 0%, #FF2D9C 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(230, 0, 126, 0.3);
    transition: all 0.3s ease;
}

.btn-warning.btn-alt {
    background: #ffffff;
    color: #E6007E;
    border: 2px solid #E6007E;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #FF2D9C 0%, #FF5AB0 100%);
    border: none;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 0, 126, 0.4);
}

.btn-warning:focus,
.btn-warning.focus,
.btn-warning:active,
.btn-warning:active:hover,
.btn-warning:active:focus,
.btn-warning.active,
.btn-warning.active:hover,
.btn-warning.active:focus,
.open .btn-warning.dropdown-toggle,
.open .btn-warning.dropdown-toggle:hover,
.open .btn-warning.dropdown-toggle:focus,
.open .btn-warning.dropdown-toggle.focus {
    background: linear-gradient(135deg, #FF2D9C 0%, #FF5AB0 100%);
    border: none;
    color: #ffffff;
}

.btn-warning.disabled,
.btn-warning.disabled:hover,
.btn-warning.disabled:focus,
.btn-warning.disabled:active,
.btn-warning.disabled.active,
.btn-warning[disabled]:hover,
.btn-warning[disabled]:focus,
.btn-warning[disabled].focus,
.btn-warning[disabled]:active,
.btn-warning[disabled].active,
.btn-warning[disabled]:active:focus,
.btn-warning[disabled].active:focus,
fieldset[disabled] .btn-warning:hover,
fieldset[disabled] .btn-warning:focus,
fieldset[disabled] .btn-warning.focus,
fieldset[disabled] .btn-warning:active,
fieldset[disabled] .btn-warning.active,
fieldset[disabled] .btn-warning:active:focus,
fieldset[disabled] .btn-warning.active:focus {
    background-color: #f39c12;
    border-color: #f39c12;
    color: #ffffff;
}

.btn-success {
    background-color: #aad178;
    border-color: #7db831;
    color: #ffffff;
}

.btn-success.btn-alt {
    background-color: #ffffff;
    color: #7db831;
}

.btn-success:hover {
    background-color: #7db831;
    border-color: #578022;
    color: #ffffff;
}

.btn-success:focus,
.btn-success.focus,
.btn-success:active,
.btn-success:active:hover,
.btn-success:active:focus,
.btn-success.active,
.btn-success.active:hover,
.btn-success.active:focus,
.open .btn-success.dropdown-toggle,
.open .btn-success.dropdown-toggle:hover,
.open .btn-success.dropdown-toggle:focus,
.open .btn-success.dropdown-toggle.focus {
    background-color: #7db831;
    border-color: #7db831;
    color: #ffffff;
}

.btn-success.disabled,
.btn-success.disabled:hover,
.btn-success.disabled:focus,
.btn-success.disabled:active,
.btn-success.disabled.active,
.btn-success[disabled]:hover,
.btn-success[disabled]:focus,
.btn-success[disabled].focus,
.btn-success[disabled]:active,
.btn-success[disabled].active,
.btn-success[disabled]:active:focus,
.btn-success[disabled].active:focus,
fieldset[disabled] .btn-success:hover,
fieldset[disabled] .btn-success:focus,
fieldset[disabled] .btn-success.focus,
fieldset[disabled] .btn-success:active,
fieldset[disabled] .btn-success.active,
fieldset[disabled] .btn-success:active:focus,
fieldset[disabled] .btn-success.active:focus {
    background-color: #7db831;
    border-color: #7db831;
    color: #ffffff;
}

.btn-info {
    background-color: #7abce7;
    border-color: #3498db;
    color: #ffffff;
}

.btn-info.btn-alt {
    background-color: #ffffff;
    color: #3498db;
}

.btn-info:hover {
    background-color: #3498db;
    border-color: #2875a8;
    color: #ffffff;
}

.btn-info:focus,
.btn-info.focus,
.btn-info:active,
.btn-info:active:hover,
.btn-info:active:focus,
.btn-info.active,
.btn-info.active:hover,
.btn-info.active:focus,
.open .btn-info.dropdown-toggle,
.open .btn-info.dropdown-toggle:hover,
.open .btn-info.dropdown-toggle:focus,
.open .btn-info.dropdown-toggle.focus {
    background-color: #3498db;
    border-color: #3498db;
    color: #ffffff;
}

.btn-info.disabled,
.btn-info.disabled:hover,
.btn-info.disabled:focus,
.btn-info.disabled:active,
.btn-info.disabled.active,
.btn-info[disabled]:hover,
.btn-info[disabled]:focus,
.btn-info[disabled].focus,
.btn-info[disabled]:active,
.btn-info[disabled].active,
.btn-info[disabled]:active:focus,
.btn-info[disabled].active:focus,
fieldset[disabled] .btn-info:hover,
fieldset[disabled] .btn-info:focus,
fieldset[disabled] .btn-info.focus,
fieldset[disabled] .btn-info:active,
fieldset[disabled] .btn-info.active,
fieldset[disabled] .btn-info:active:focus,
fieldset[disabled] .btn-info.active:focus {
    background-color: #3498db;
    border-color: #3498db;
    color: #ffffff;
}

.btn-link,
.btn-link:hover,
.btn-link:focus,
.btn-link.btn-icon:hover,
.btn-link.btn-icon:focus {
    color: #1bbae1;
}

.btn-link.btn-icon {
    color: #999999;
}

.btn-link.btn-icon:hover,
.btn-link.btn-icon:focus {
    text-decoration: none;
}

.block-options .btn {
    border-radius: 15px;
    padding-right: 8px;
    padding-left: 8px;
    min-width: 30px;
    text-align: center;
}

/* Panels */
.panel {
    margin-bottom: 20px;
}

.panel-heading {
    padding: 15px;
}

.panel-title {
    font-size: 14px;
}

.panel-default > .panel-heading {
    background-color: #f9f9f9;
}

.panel-group {
    margin-bottom: 20px;
}

/* Pre, Code */
pre {
    background: #151515;
    overflow: scroll;
}

code {
    border: 1px solid #fad4df;
    margin: 1px 0;
    display: inline-block;
}

.btn code {
    display: inline;
    margin: 0;
}

/* Alerts */
.alert {
    border-top-width: 0;
    border-right-width: 2px;
    border-bottom-width: 0;
    border-left-width: 2px;
}

.alert-danger {
    color: #e74c3c;
    background-color: #ffd1cc;
    border-color: #ffb8b0;
}

.alert-danger .alert-link {
    color: #e74c3c;
}

.alert-warning {
    color: #e67e22;
    background-color: #ffe4cc;
    border-color: #ffd6b2;
}

.alert-warning .alert-link {
    color: #e67e22;
}

.alert-success {
    color: #27ae60;
    background-color: #daf2e4;
    border-color: #b8e5cb;
}

.alert-success .alert-link {
    color: #27ae60;
}

.alert-info {
    color: #3498db;
    background-color: #dae8f2;
    border-color: #b8d2e5;
}

.alert-info .alert-link {
    color: #3498db;
}

.alert-dismissable .close {
    top: -5px;
    right: -25px;
}

.close {
    text-shadow: none;
}

/* Alternative Alerts */
.alert.alert-alt {
    margin: 0 0 2px;
    padding: 5px;
    font-size: 12px;
    border-width: 0;
    border-left-width: 2px;
}

.alert.alert-alt small {
    opacity: 0.75;
    filter: alpha(opacity=75);
}

.alert-alt.alert-dismissable .close {
    right: 0;
}

.alert-alt.alert-dismissable .close:hover {
    color: #ffffff;
}

.alert-danger.alert-alt {
    border-color: #e74c3c;
}

.alert-warning.alert-alt {
    border-color: #e67e22;
}

.alert-success.alert-alt {
    border-color: #27ae60;
}

.alert-info.alert-alt {
    border-color: #3498db;
}

.sidebar-content .alert.alert-alt {
    margin-left: -10px;
    padding-left: 10px;
    background: transparent;
    color: #ffffff;
}

#sidebar-alt .sidebar-content .alert.alert-alt {
    margin-left: 0;
    margin-right: -10px;
    padding-left: 0;
    padding-right: 10px;
}

#sidebar-alt .sidebar-content .alert.alert-alt {
    border-width: 0;
    border-right-width: 2px;
}

/* Labels, Badges */
.label,
.badge {
    font-weight: normal;
    font-size: 90%;
}

.label {
    padding: 1px 4px;
}

.badge {
    background: url('../img/template/ie8_opacity_dark_30.png') repeat;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 6px;
}

.label-danger {
    background-color: #e74c3c;
}

.label-danger[href]:hover,
.label-danger[href]:focus {
    background-color: #ff5542;
}

.label-warning {
    background-color: #e67e22;
}

.label-warning[href]:hover,
.label-warning[href]:focus {
    background-color: #ff8b26;
}

.label-success {
    background-color: #27ae60;
}

.label-success[href]:hover,
.label-success[href]:focus {
    background-color: #2cc76c;
}

.label-info {
    background-color: #2980b9;
}

.label-info[href]:hover,
.label-info[href]:focus {
    background-color: #2f92d4;
}

.label-primary {
    background-color: #1bbae1;
}

.label-primary[href]:hover,
.label-primary[href]:focus {
    background-color: #5ac5e0;
}

.label-default {
    background-color: #999999;
}

.label-default[href]:hover,
.label-default[href]:focus {
    background-color: #777777;
}

/* Carousel */
.carousel-control.left,
.carousel-control.right,
.carousel-control.left.no-hover:hover,
.carousel-control.right.no-hover:hover {
    background: none;
}

.carousel-control.left:hover,
.carousel-control.right:hover {
    background: url('../img/template/ie8_opacity_dark_30.png') repeat;
    background: rgba(0, 0, 0, 0.30);
}

.carousel-control span {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    display: inline-block;
}

.carousel-control i {
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
}

/* Bottom Margin */
p, .table, .alert, .carousel {
    margin-bottom: 20px;
}

/* Removing shadows and radius */
.navbar-form-custom .form-control:hover,
.navbar-form-custom .form-control:focus,
.navbar-form,
.navbar-collapse,
.form-control,
.form-control:focus,
.has-success .form-control:focus,
.has-warning .form-control:focus,
.has-error .form-control:focus,
.popover,
.progress,
.progress-bar,
.btn.active,
.open .btn.dropdown-toggle,
.panel {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.navbar-form-custom .form-control,
.navbar,
.dropdown-menu,
.tooltip-inner,
.breadcrumb,
.alert.alert-alt {
    border-radius: 0;
}

/*
=================================================================
(#m07hes) HELPERS
=================================================================
*/

.push-bit {
    margin-bottom: 10px !important;
}

.push {
    margin-bottom: 15px !important;
}

.push-top-bottom {
    margin-top: 40px;
    margin-bottom: 40px;
}

.display-none {
    display: none;
}

.remove-margin {
    margin: 0 !important;
}

.remove-margin-bottom {
    margin-bottom: 0 !important;
}

.remove-padding {
    padding: 0 !important;
}

.remove-radius {
    border-radius: 0 !important;
}

.remove-box-shadow {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

.remove-transition {
    -moz-transition: none !important;
    -webkit-transition: none !important;
    transition: none !important;
}

.lt-ie9 .hidden-lt-ie9,
.lt-ie10 .hidden-lt-ie10 {
    display: none !important;
}

.visible-lt-ie9,
.visible-lt-ie10 {
    display: none;
}

.lt-ie9 .visible-lt-ie9,
.lt-ie10 .visible-lt-ie10 {
    display: block;
}

:focus {
    outline: 0 !important;
}

/*
=================================================================
(#m08ths) THEMES
=================================================================
*/

/* Alternative Main Style */
.style-alt #page-content {
    background-color: #ffffff;
}

.style-alt .block {
    border-color: #dbe1e8;
}

.style-alt .block.block-alt-noborder {
    border-color: transparent;
}

.style-alt .block-title {
    background-color: #dbe1e8;
    border-bottom-color: #dbe1e8;
}

.style-alt .content-header + .breadcrumb-top,
.style-alt .breadcrumb-top + .content-header,
.style-alt #page-content + footer {
    background-color: #f9fafc;
}

.style-alt .content-header,
.style-alt .breadcrumb-top {
    border-bottom-color: #eaedf1;
}

.style-alt #page-content + footer {
    border-top-color: #eaedf1;
}

.style-alt .widget,
.style-alt .task-list li {
    background-color: #f6f6f6;
}

/* Test Circle used in Color Themes Page */
.test-circle {
    display: inline-block;
    width: 100px;
    height: 100px;
    line-height: 100px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border-radius: 50px;
    background-color: #eeeeee;
    border: 2px solid #cccccc;
    color: #ffffff;
    margin-bottom: 15px;
}

/* Default Color Theme specific colors */
.themed-color {
    color: #1bbae1;
}

.themed-border {
    border-color: #1bbae1;
}

.themed-background {
    background-color: #1bbae1;
}

.themed-color-dark {
    color: #394263;
}

.themed-border-dark {
    border-color: #394263;
}

.themed-background-dark {
    background-color: #394263;
}

/* Contextual Background Colors */
.themed-background-danger {
    background-color: #e74c3c !important;
}

.themed-background-warning {
    background-color: #e67e22 !important;
}

.themed-background-info {
    background-color: #3498db !important;
}

.themed-background-success {
    background-color: #27ae60 !important;
}

.themed-background-muted {
    background-color: #999999 !important;
}

.themed-background-muted-light {
    background-color: #f9f9f9!important;
}

/*
=================================================================
(#m09res) RESPONSIVE
=================================================================
*/

/* Small devices, Tablets (>767px) */
@media screen and (min-width: 768px) {

    /* General */
    #login-background {
        height: 400px;
    }

    #login-background > img {
        top: 0;
    }

    #login-container,
    #login-alt-container {
        width: 480px;
        top: 80px;
        margin-left: -240px;
    }

    .full-page-container {
        width: 740px;
        top: 120px;
        padding: 20px;
        margin-left: -370px;
    }

    .full-page-section {
        padding: 50px 0;
        margin: 50px -20px;
    }

    #page-content {
        padding: 20px 20px 1px;
    }

    .header-section,
    .breadcrumb-top,
    .block,
    .block.full,
    .modal-body,
    #page-content + footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .block .block-content-full {
        margin: -20px -20px -1px;
    }

    .block.full .block-content-full {
        margin: -20px;
    }

    .content-header,
    .content-top,
    .breadcrumb-top {
        margin: -20px -20px 20px;
    }

    .content-header + .breadcrumb-top,
    .breadcrumb-top + .content-header {
        margin-top: -21px;
    }

    .block,
    .widget {
        margin-bottom: 20px;
    }

    .block-title,
    .block-top {
        margin-left: -20px;
        margin-right: -20px;
    }

    .draggable-placeholder {
        margin-bottom: 20px;
    }

    .navbar-fixed-top .dropdown-menu {
        max-height: none;
        overflow-y: visible;
    }

    /* Forms */
    .form-bordered {
        margin-left: -20px;
        margin-right: -20px;
    }

    .form-bordered .form-group {
        padding-left: 20px;
        padding-right: 20px;
    }

    .form-horizontal.form-bordered .form-group {
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Tabs */
    .nav-tabs > li > a {
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 3px;
        margin-right: 3px;
    }

    /* Chat UI */
    .chatui-people,
    .chatui-talk,
    .chatui-input {
        position: absolute;
    }

    .chatui-talk,
    .chatui-input {
        right: 200px;
        left: 0;
    }

    .chatui-people {
        top: 0;
        right: 0;
        bottom: 0;
        width: 200px;
        height: auto;
    }

    .chatui-talk {
        height: auto;
    }

    .chatui-talk .chatui-talk-msg {
        width: 50%;
        margin-left: 50%;
    }

    .chatui-talk .chatui-talk-msg.chatui-talk-msg-highlight {
        margin-left: 0;
        margin-right: 50%;
    }

    .chatui-input {
        bottom: 0;
    }
}

/* Medium devices, Desktops (>991px) */
@media screen and (min-width: 992px) {

    /* General */
    #login-alt-container {
        display: block;
    }

    /* Sidebar Animations */
    .sidebar-no-animations #sidebar,
    .sidebar-no-animations #sidebar-alt {
        -webkit-transition: opacity 0.5s linear, background-color 0.2s ease-out;
        transition: opacity 0.5s linear, background-color 0.2s ease-out;
    }

    .sidebar-no-animations #main-container,
    .sidebar-no-animations.header-fixed-top header.navbar-fixed-top,
    .sidebar-no-animations.header-fixed-bottom header.navbar-fixed-bottom,
    .sidebar-no-animations.footer-fixed #page-content + footer {
        -webkit-transition: none;
        transition: none;
    }

    /* Reset sidebar classes used only on small screens */
    .sidebar-visible-xs #sidebar,
    .sidebar-alt-visible-xs #sidebar-alt {
        width: 0;
    }

    .sidebar-visible-xs #main-container,
    .sidebar-alt-visible-xs #main-container {
        margin-left: 0;
        margin-right: 0;
    }

    .sidebar-visible-xs.header-fixed-top header.navbar-fixed-top,
    .sidebar-visible-xs.header-fixed-bottom header.navbar-fixed-bottom,
    .sidebar-alt-visible-xs.header-fixed-top header.navbar-fixed-top,
    .sidebar-alt-visible-xs.header-fixed-bottom header.navbar-fixed-bottom,
    .sidebar-visible-xs.footer-fixed #page-content + footer,
    .sidebar-alt-visible-xs.footer-fixed #page-content + footer {
        right: 0;
        left: 0;
    }

    /* Both Sidebars */
    #sidebar,
    #sidebar-alt,
    .sidebar-partial #sidebar,
    .sidebar-alt-partial #sidebar-alt {
        width: 0;
        opacity: 0.2;
        filter: alpha(opacity=20);
    }

    .sidebar-partial #sidebar,
    .sidebar-alt-partial #sidebar-alt {
        width: 65px;
    }

    .sidebar-partial #sidebar:hover,
    .sidebar-visible-lg #sidebar,
    .sidebar-visible-lg.sidebar-partial #sidebar,
    .sidebar-alt-partial #sidebar-alt:hover,
    .sidebar-alt-visible-lg #sidebar-alt,
    .sidebar-alt-visible-lg.sidebar-alt-partial #sidebar-alt {
        width: 250px;
        opacity: 1;
        filter: alpha(opacity=100);
    }

    .sidebar-partial #sidebar .sidebar-brand i,
    .sidebar-alt-partial #sidebar-alt .sidebar-brand i {
        display: none;
    }

    .sidebar-partial #sidebar:hover .sidebar-brand i,
    .sidebar-visible-lg #sidebar .sidebar-brand i,
    .sidebar-alt-partial #sidebar-alt:hover .sidebar-brand i,
    .sidebar-alt-visible-lg #sidebar-alt .sidebar-brand i {
        display: inline-block;
    }

    /* Main Sidebar */
    .sidebar-partial #main-container {
        margin-left: 65px;
    }

    .sidebar-partial #sidebar:hover + #main-container,
    .sidebar-visible-lg #main-container {
        margin-left: 250px;
    }

    .sidebar-partial.footer-fixed #main-container #page-content + footer,
    .sidebar-partial.header-fixed-top header.navbar-fixed-top,
    .sidebar-partial.header-fixed-bottom header.navbar-fixed-bottom {
        left: 65px;
    }

    .sidebar-partial #sidebar:hover + #main-container header.navbar-fixed-top,
    .sidebar-partial #sidebar:hover + #main-container header.navbar-fixed-bottom,
    .sidebar-partial #sidebar:hover + #main-container #page-content + footer,
    .sidebar-visible-lg.header-fixed-top header.navbar-fixed-top,
    .sidebar-visible-lg.header-fixed-bottom header.navbar-fixed-bottom,
    .sidebar-visible-lg.footer-fixed #main-container #page-content + footer {
        left: 250px;
    }

    /* Alternative Sidebar */
    .sidebar-alt-partial #main-container {
        margin-right: 65px;
    }

    .sidebar-alt-partial #sidebar-alt:hover ~ #main-container,
    .sidebar-alt-visible-lg #main-container {
        margin-right: 250px;
    }

    .sidebar-alt-partial.footer-fixed #main-container #page-content + footer,
    .sidebar-alt-partial.header-fixed-top header.navbar-fixed-top,
    .sidebar-alt-partial.header-fixed-bottom header.navbar-fixed-bottom {
        right: 65px;
    }

    .sidebar-alt-partial #sidebar-alt:hover ~ #main-container header.navbar-fixed-top,
    .sidebar-alt-partial #sidebar-alt:hover ~ #main-container header.navbar-fixed-bottom,
    .sidebar-alt-partial #sidebar-alt:hover ~ #main-container #page-content + footer,
    .sidebar-alt-visible-lg.header-fixed-top header.navbar-fixed-top,
    .sidebar-alt-visible-lg.header-fixed-bottom header.navbar-fixed-bottom,
    .sidebar-alt-visible-lg.footer-fixed #main-container #page-content + footer {
        right: 200px;
    }

    /* Main Sidebar - Mini mode */
    .sidebar-mini.sidebar-visible-lg-mini #main-container {
        margin-left: 40px;
    }

    .sidebar-mini.sidebar-visible-lg-mini #main-container header.navbar-fixed-top,
    .sidebar-mini.sidebar-visible-lg-mini #main-container header.navbar-fixed-bottom,
    .sidebar-mini.sidebar-visible-lg-mini #main-container #page-content + footer {
        left: 40px;
    }

    .sidebar-mini.sidebar-visible-lg-mini #sidebar {
        overflow: visible;
        opacity: 1;
        filter: alpha(opacity=100);
        z-index: 1029;
    }

    .sidebar-mini.sidebar-visible-lg-mini #sidebar .sidebar-content {
        width: 40px;
    }

    .sidebar-mini.sidebar-visible-lg-mini #sidebar .sidebar-nav-mini-hide,
    .sidebar-mini.sidebar-visible-lg-mini #sidebar .sidebar-header > span {
        display: none;
    }

    .sidebar-mini.sidebar-visible-lg-mini #sidebar .sidebar-header {
        padding: 0;
        margin: 5px 0;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    .sidebar-mini.sidebar-visible-lg-mini #sidebar .sidebar-nav li {
        position: relative;
    }

    .sidebar-mini.sidebar-visible-lg-mini #sidebar .sidebar-nav .sidebar-nav-menu + ul {
        position: absolute;
        width: 220px;
        top: 0;
        right: -220px;
        margin: 0;
        padding: 6px 5px;
        border-left: 3px solid #1bbae1;
        background-color: #394263;
    }

    .sidebar-mini.sidebar-visible-lg-mini #sidebar .sidebar-nav ul a {
        margin: 0;
        padding-left: 10px;
        border-left: none;
    }

    .sidebar-mini.sidebar-visible-lg-mini #sidebar .sidebar-nav ul ul {
        margin-left: 0;
    }

    .sidebar-mini.sidebar-visible-lg-mini #sidebar .sidebar-nav > li.active > ul {
        display: none;
    }

    .sidebar-mini.sidebar-visible-lg-mini #sidebar .sidebar-nav .sidebar-nav-menu.open + ul {
        display: block !important;
    }

    /* Nav Horizontal */
    .nav-horizontal a {
        text-align: center;
        min-width: 130px;
        padding: 12px 15px;
    }

    .nav-horizontal i {
        display: inline-block;
        height: auto;
        margin-right: 0;
        margin-bottom: 0;
        font-size: 16px;
        padding: 0;
        line-height: 1;
    }
}

/* Large devices, Desktops (>1199px) */
@media screen and (min-width: 1200px) {

    /* Main Layout */
    .header-fixed-top .sidebar-content,
    .header-fixed-bottom .sidebar-content {
        padding-bottom: 0;
    }

    /* General */
    article p {
        font-size: 19px;
        line-height: 1.9;
    }
}

/*
=================================================================
(#m10rts) RETINA
=================================================================
*/

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-moz-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min-device-pixel-ratio: 1.5) {
    /* If you did use a CSS image background, you can put your high resolution image here */

}

/*
=================================================================
(#m11prs) PRINT
=================================================================
*/

@media print {
    #sidebar, #sidebar-alt, .content-header, .breadcrumb-top, .block-title .block-options, #page-content + footer, #to-top {display: none !important;}
    #page-content {min-height: 0 !important; height: auto !important; padding: 0 !important;}
    #main-container {margin: 0 !important;}
    .block, .block.full {border: none !important; padding: 0 !important;}
    .block-title {margin: 0 0 20px !important;}
}



  /* Firefox — thumb neutre (le bleu saturé datait du thème 1) */
  * {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {    width: 7px;	height	: 7px;  }

  *::-webkit-scrollbar-track {    background: #dfeffc;  }

  *::-webkit-scrollbar-thumb {   
	background: #DFEFFC;
	background: -webkit-radial-gradient(center, #DFEFFC, #3599DB);
	background: -moz-radial-gradient(center, #DFEFFC, #3599DB);
	background: radial-gradient(ellipse at center, #DFEFFC, #3599DB);
    border-radius: 10px;
    border: 1px solid #DFEFFC;
  }

::-webkit-scrollbar-thumb:hover {
	border: 0;
}

::-webkit-scrollbar-thumb:active {
   border: 0;
}



.ui-th-column, .ui-jqgrid .ui-jqgrid-htable th.ui-th-column {vertical-align:middle;}
.ui-jqgrid .ui-jqgrid-htable th {height:35px;}
.ui-jqgrid tr.jqgrow td {height:35px;}
.ui-jqgrid body, .ui-widget, .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {font-size:12px; font-family: Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;}
.jqgrow td > a > img, .jqgrow td > img {border-radius: 30px;max-height: 40px;}

.ui-widget-content a.lnk {color:#e38e7b !important; }
.ui-widget-content .subgridcms a {color: #e38e7b !important;}
.ui-widget-content .subgridcms li.active a {color: #394263 !important;}
.subgridcms li img {border-radius: 25px;}

.widget-extra-full .small img {border-radius:20px; width:30px; height:30px;}

.prgdash {height: 15px;width: 80px;float:left;}
.prgdashctt {background-color: #e67e22;height: 15px;}
.bglotclose {background-color:#ffdddd !important;}

#map {height:200px; width:100%;}
.page-lap #map {height:400px; width:100%;}
.page-dashboard #map, .page-dashboard #map2 {height:520px; width:100%;}
.page-installator #comment, .page-entrepot #comment {height:200px; width:100%;}
.pac-container {z-index:1051 !important;}

.fc-time-grid-event {overflow:auto;}
.fc-content .fc-time {background-color: #e38e7b;}
.fc-title b {background-color: #778;display: block;}

#list_trips td, #list_laps td[aria-describedby="list_laps_action"]{white-space:normal;}

.tbpsgplan {width: 100%;}
.tbpsgplan tr:nth-child(even) {background-color:#f9f9f9;}
.tbpsgplan td:first-child, .tbpsgplan tr:nth-child(2) td {font-weight: bold;}
.tbpsgplan td {padding: 5px;}

.tbpsgview .text-success, #list_trips .text-success{background-color: #fff000;}
.calhdi {font-size:12px; text-align:center;font-weight:bold;text-transform:uppercase;}
.calhdi1, .calhdi2 {background-color:#ddddff;color:#000;}
.calhdi0, .calhdi3 {background-color:#ffdddd; color:#000;}

.txtmsg {text-align:center; font-size:16px; color:#990000;padding: 20px;}

.selvac {border:solid 2px #e38e7b !important;}
#tbvac {display: block;max-height: 500px;overflow: auto;}
#tbvac td > div > ul {list-style: outside none none;padding-left: 10px;}
#tbvac td > div > ul > li > a:first-child {width: 40px;}
#tbvac td > div > ul > li > * {display: inline-block;vertical-align: top;width: calc(100% - 40px);}

#modal-psg .modal-dialog {width:800px;}

.tooltip {position: fixed;}
.fc-title a {color:#fff;}

div#searchres {display:none;position: absolute;left: 10px;border: solid 1px #eee;padding: 20px;background: #fff;right: 10px;top: 52px;z-index:9;max-height: 400px;overflow: auto;box-shadow: 2px 2px 5px #ccc;z-index:200}
li.media {border-bottom: solid 1px #eee;cursor:pointer;}
li.media:hover{background-color:#eee;}
.media a > i {font-size:30px;}
.media>.pull-left {margin: 20px 10px 0;}
#tbclimsg td:first-child {width: 150px;white-space: nowrap;vertical-align: top;}
.gallery-file {text-align:center;}
.gallery-file > i {font-size:50px;padding-bottom:20px;}

.page-contact .nav-tabs li .badge {display: initial;}
.page-contact .nav-tabs li .badge:empty {display: none;}
.page-contact #frminfousr .form-group, .page-contact #frminfoquest .form-group {padding:2px !important;}

#modal-rapport .modal-body {max-height: 500px;overflow: auto;}
#modal-columns .modal-dialog{width:1100px;}
#modal-columns .modal-body{overflow:auto;height:500px;}

.recinfcli{padding:20px;text-align: center;line-height: 30px;font-size: 18px;}

.fc-content span.label {margin-top: 1px;display: inline-block;}
.align-right {text-align: right;}

.calrdvdispo{color:#000 !important;}
.calfull{position:absolute;top:0;left:0;width:100%;padding:0}
.simudisdel{font-size:12px;text-align: right;margin-top: 10px;/*position: absolute;top: 10px;left: 0;right: 0;*/}
.simuentdisdel{font-size:12px; margin-top:5px;}
.simudisdel > span {box-shadow: 0px 0px 7px 1px #999;height: 20px;line-height: 22px;margin: 0 5px;border:solid 1px #fff;}
.simuentdisdel > span {box-shadow: 0px 0px 7px 1px #999;height: 20px;line-height: 22px;margin: 5px;border:solid 1px #fff}
/* .blrzone{filter: blur(1px);opacity: 0.45;} */
.icordvstatut {font-size: 16px;padding: 0 5px;}
.btsavdone > i {font-size: 16px;padding: 0 5px;}
.blkwinf {background: #000;color: #fff;font-weight: 600; padding: 0 3px;font-size: 10px;}
.btchent, .btattins, .btdetins{font-size:11px;margin-top:5px;}

#selcross_chosen {min-width: 150px;}

#lstcolumns .chosen-container .chosen-drop {
    left: 0;
    opacity:0;
    height:0;
    overflow: hidden;
}
#lstcolumns .chosen-container.chosen-with-drop .chosen-drop {
    opacity:1;
    height:auto;
}
#principal table tr:nth-child(2n) td {background-color: #eee;padding: 3px 3px;}
#principal table td.espace{display: none;}

legend .block-options {min-height: 0;line-height: 0;}

#jdautoc{position: absolute;background-color: #fff;border: solid 1px #eee;padding: 10px;box-shadow: 0 0 5px #eee;border-radius: 3px;z-index:1050}
#jdautoc > div {border-bottom: solid 1px #eee;padding: 3px 7px;cursor: pointer;}
#jdautoc > div:hover {background-color: #1bbae1;border-radius: 5px;color: #fff;}
#jdautoc > div:last-child {border: 0;padding-bottom: 0;}
#jdautoc > div .l1{font-weight:600;}

#tbsuivdos td:nth-child(1), #tbsuivdos td:nth-child(2), #tbsuivdos td:nth-child(3) {width:20%}
#tbsuivdos td textarea{font-size:12px}

#frminfodir .control-label{text-align:left}

.ui-multiselect-menu{z-index: 999;}

.btclosetab{
    text-align:right; 
    color:#fff;
    line-height: 8px; 
    width: 18px; 
    font-size: 8px; 
    font-family: tahoma; 
    top: 2px; 
    right: 2px;
    position:absolute; 
    border: 1px solid #ddd;
    background-color:red; 
    text-align:center;
    
}
.row-flex {
    display: flex;
    flex-wrap: wrap;
}

.col-flex {
    display: flex;
    flex-direction: column;
}

.widget-hover-effect2 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


/** modif pour taille de la recherche */
div[aria-describedby*="colchooser_list"] .ui-resizable{height: 550px !important;}
div[aria-describedby*="colchooser_list"] .ui-multiselect-checkboxes .ui-helper-reset{height: 391px !important;}
div[aria-describedby*="colchooser_list"] .ui-multiselect-menu{height: 349px !important;}
div[aria-describedby*="colchooser_list"] .ui-multiselect-checkboxes {height: 315px !important;}
div[id*="colchooser_list"] {height: 400px !important;}
div[aria-describedby*="colchooser_list"] .ui-multiselect-menu {display: block !important;}
#serachcolchoz{width:102%;border:solid 1px #ddd;border-radius:3px;margin-bottom: 5px;}

.lblsuiv {border: solid 1px #ccc;padding: 3px;border-radius: 3px;float: right;margin-right: 5px;margin-top: 10px;}

/* MODULE : AFFICHAGE DES PARCELLES CADASTRALES  */
.popmapcadastre {
    padding:10px;
    background-color: #f6f6f6;
    background: #f6f6f6;
    /* margin-top:100px; */
    margin-left:10px;
    border-radius: 5px;
    opacity: 0.9;
    min-width: 194px;
}

.maploader {
    background-color: #fff;
}

/* Survol d'un événement : simple élévation — SANS forçage de taille/position
   (l'ancien min-height/min-width 100×200px faisait « exploser » les RDV) */
.fc-time-grid-event:hover {
    opacity: 1;
    box-shadow: var(--shadow-md);
    z-index: 999 !important;
}


/* specif timeline planning v2 */
.calendarv2 .fc-timeline-event:hover {
    opacity: 1;
    box-shadow: var(--shadow-md);
    z-index: 999 !important;
}

.calendarv2 .fc-resource-area .resblc {
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendarv2 .fc-resource-area .fc-cell-content {
    text-align: center;
}

.calendarv2 .fc-resource-area tr[data-resource-id] .fc-cell-content{
    color:#fff;
    font-weight: 600;
}

.calendarv2 .fc-chrono .fc-cell-content {
    text-align: center;
    font-size: 11px;
    font-weight: 400;
}

/* .calendarv2 .fc-scroller.fc-no-scrollbars {
    overflow: hidden !important;
} */

.calendarv2 .fc-time-area.fc-widget-header {
    padding-top: 0px;
    padding-bottom: 0px;
}

.calendarv2 .elmrdv .btn {
    display:none
}

.calendarv2 .elmrdv:hover .btn{
    display: inline;
}

.calendarv2 .fc-scroller-clip .fc-widget-header .fc-cell-content {
    text-transform: uppercase;
}

.calendarv2 .fc-head {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 99;
}

.sidebarnotif{
    max-height: 100vh;
    overflow: scroll;
}

.jdshadow{
    box-shadow: 0px 0px 5px #999;
}

.left-submenu {
    float: none;
}
.left-submenu > .dropdown-menu {
    border-radius: 6px 0px 6px 6px;
    left: auto;
    margin-left: 10px;
    right: 98%;
}

/* Reduire le padding top/bottom du dropwdown-custon */

.dropdown-menu.dropdown-custom-s {
    min-width: 200px;
}

.dropdown-menu.dropdown-custom-s > li {
    padding: 4px 10px;
    font-size: 12px;
}

.dropdown-menu.dropdown-custo-s > li > a {
    border-radius: 3px;
}
/* End */
/* =====================================================
   MODERN THEME ADDITIONS - Inspired by Inter Design
   ===================================================== */

/* Smooth scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(27, 186, 225, 0.3) rgba(0, 0, 0, 0.05);
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: all 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Modern labels with gradients */
.label-primary {
    background: linear-gradient(135deg, #1bbae1 0%, #17a2b8 100%);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(27, 186, 225, 0.25);
}

.label-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.25);
}

.label-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.25);
}

.label-warning {
    background: linear-gradient(135deg, #E6007E 0%, #FF2D9C 100%);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(230, 0, 126, 0.25);
}

.label-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.25);
}

/* Modern form controls */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 14px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    border-color: #1bbae1;
    box-shadow: 0 0 0 3px rgba(27, 186, 225, 0.1);
    outline: none;
}

/* Modern alerts */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left-color: #17a2b8;
    color: #0c5460;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left-color: #28a745;
    color: #155724;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left-color: #ffc107;
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left-color: #dc3545;
    color: #721c24;
}

/* Modern tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #1bbae1 0%, #17a2b8 100%);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border: none;
    padding: 14px 12px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(27, 186, 225, 0.05);
    transform: scale(1.01);
}

.table tbody td {
    border-color: #e9ecef;
    padding: 12px;
}

/* Modern panels/cards */
.panel {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.panel:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Ne pas déplacer les panels contenant des grids ou modales */
.panel:has(.jdgridbox):hover,
.panel:has(.modal):hover {
    transform: none;
}

.panel-heading {
    background: linear-gradient(135deg, #1bbae1 0%, #17a2b8 100%);
    color: #ffffff;
    border-radius: 12px 12px 0 0;
    border: none;
    font-weight: 600;
    padding: 14px 18px;
}

.panel-body {
    padding: 20px;
}

/* Modern badges */
.badge {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
}

.badge-primary {
    background: linear-gradient(135deg, #1bbae1 0%, #17a2b8 100%);
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.badge-warning {
    background: linear-gradient(135deg, #E6007E 0%, #FF2D9C 100%);
}

/* Modern dropdowns */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 8px 0;
}

.dropdown-menu > li > a {
    padding: 10px 20px;
    transition: all 0.2s ease;
    color: #394263;
    font-weight: 500;
}

.dropdown-menu > li > a:hover {
    background: linear-gradient(135deg, rgba(27, 186, 225, 0.1) 0%, rgba(23, 162, 184, 0.1) 100%);
    color: #1bbae1;
    transform: translateX(4px);
}

/* Modern footer */
footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    padding: 16px 20px;
    color: #6c757d;
    font-size: 13px;
}

footer a {
    color: #1bbae1;
    font-weight: 600;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #E6007E;
    text-decoration: none;
}

/* Enhanced button styles */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* NE PAS remettre "border: none" : le raccourci met border-width a 0, ce qui
       annule TOUTES les border-color declarees plus bas (.btn-default, pastels
       .btn-success/.btn-danger/...). Les boutons secondaires deviennent alors
       blancs sur blanc, sans contour. Bordure transparente = comportement
       Bootstrap d'origine, chaque variante fournit ensuite sa couleur. */
    border: 1px solid transparent;
    font-family: 'Inter', sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 10px;
}

/* Modern input groups */
.input-group-addon {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #6c757d;
    font-weight: 600;
}

.input-group .form-control:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.input-group .form-control:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Page contact specific */
.page-contact .block {
    margin-bottom: 24px;
}

.page-contact .block-title h2 {
    font-size: 18px;
}

/* Animations for interactive elements */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-on-hover:hover {
    animation: pulse 0.6s ease infinite;
}

/* Modern progress bars */
.progress {
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 24px;
}

.progress-bar {
    border-radius: 8px;
    background: linear-gradient(135deg, #1bbae1 0%, #17a2b8 100%);
    box-shadow: 0 2px 6px rgba(27, 186, 225, 0.3);
    transition: width 0.6s ease;
}

.progress-bar-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.progress-bar-warning {
    background: linear-gradient(135deg, #E6007E 0%, #FF2D9C 100%);
}

.progress-bar-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Modern tooltips */
.tooltip-inner {
    background: linear-gradient(135deg, #1a1f36 0%, #0f1419 100%);
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* =====================================================
   MODERN SIDEBAR ENHANCEMENTS - Larger & More Spacious
   ===================================================== */

/* Increase sidebar link padding and height for better clickability.
   Taille/graisse : gérées par (T3-09) — var(--font-size-base) = 14px */
.sidebar-nav a {
    padding: 0 15px 0 17px !important;
    min-height: 40px !important;
    line-height: 40px !important;
}

/* Adjust icon size and spacing */
.sidebar-nav a > .sidebar-nav-icon {
    margin-right: 10px !important;
    font-size: 16px !important;
    width: 20px !important;
}

/* Better visual separation between items */
.sidebar-nav > li {
    margin-bottom: 4px;
}

/* Hover/active : gérés par (T3-09) — fonds flat, jamais de translateX ni de
   changement de padding (le texte ne doit pas bouger au survol), ni de halo */

/* Submenu styling improvements */
.sidebar-nav ul a {
    padding-left: 42px !important;
    font-size: 13px !important;
    min-height: 36px !important;
    line-height: 36px !important;
}

/* Brand/Header section */
.sidebar-brand,
.sidebar-title {
    padding: 15px 17px !important;
    font-size: 14px !important;
}

/* Section headers : typographie/espacements gérés par (T3-09) */

/* User info section in sidebar */
.sidebar-section {
    padding: 12px 17px !important;
}

/* Better scrollbar for sidebar */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(27, 186, 225, 0.4);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(27, 186, 225, 0.6);
}

/* Boutons extra small (btn-xs) */
.btn-xs,
.btn-group-xs > .btn {
    padding: 6px 8px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    border-radius: 3px !important;
}

.btn-xs i {
    font-size: 10px !important;
}

/* Menu navigation - Remplacer les icônes par des emojis */
.nav-horizontal i::before,
.nav-horizontal [class*="fa-"]::before,
.nav-horizontal [class*="gi-"]::before {
    font-family: inherit;
    font-size: 20px;
}

.nav-horizontal [class*="fa-"],
.nav-horizontal [class*="gi-"] {
    font-family: inherit !important;
}

.nav-horizontal a[href="index.php"] .fa-bar-chart::before {
    content: "📊";
}

.nav-horizontal a[href="contacts.php"] .gi-parents::before {
    content: "👥";
}

.nav-horizontal a[href="entrepots.php"] .gi-shop_window::before {
    content: "🏪";
}

.nav-horizontal a[href="installators.php"] .gi-cars::before {
    content: "🚗";
}

.nav-horizontal a[href="rdvs.php"] .gi-list::before {
    content: "📋";
}

.nav-horizontal a[href*="v2planning.php"] .gi-calendar::before {
    content: "📅";
}

.nav-horizontal a[href="crmusers.php"] .fa-user-secret::before {
    content: "👤";
}

.nav-horizontal a[href="settings.php"] .gi-settings::before {
    content: "⚙️";
}
/* Contact page tabs - Remplacer les icônes par des emojis */
.page-contact .nav-tabs a[href="#tabs-dir"] i::before {
    content: "🏭";
}

.page-contact .nav-tabs a[href="#tabs-coment"] i::before {
    content: "💬";
}

.page-contact .nav-tabs a[href="#tabs-quests"] i::before {
    content: "❓";
}

.page-contact .nav-tabs a[href="#tabs-rapportdigital"] i::before {
    content: "📊";
}

.page-contact .nav-tabs a[href="#tabs-local"] i::before {
    content: "🌍";
}

.page-contact .nav-tabs a[href="#tabs-rdv"] i::before {
    content: "📅";
}

.page-contact .nav-tabs a[href="#tabs-doc"] i::before {
    content: "📄";
}

.page-contact .nav-tabs a[href="#tabs-sav"] i::before {
    content: "🔧";
}

.page-contact .nav-tabs a[href="#tabs-inout"] i::before {
    content: "🔄";
}

.page-contact .nav-tabs a[href="#tabs-cadastre"] i::before {
    content: "🗺️";
}

.page-contact .nav-tabs a[href="#tabs-prox"] i::before {
    content: "📍";
}

.page-contact .nav-tabs a[href="#tabs-log"] i::before {
    content: "📝";
}

.page-contact .nav-tabs a[href="#tabs-audit"] i::before {
    content: "🔍";
}

.page-contact .nav-tabs a[href="#tabs-sign"] i::before {
    content: "✍️";
}

.page-contact .nav-tabs a[href="#tabs-mails"] i::before {
    content: "📧";
}

.page-contact .nav-tabs a[href="#tabs-calp"] i::before {
    content: "📏";
}

.page-contact .nav-tabs a[href="#tabs-appel"] i::before {
    content: "📞";
}

/* Forcer la police normale pour les emojis dans les tabs */
.page-contact .nav-tabs [class*="fa-"]::before,
.page-contact .nav-tabs [class*="gi-"]::before,
.page-contact .nav-tabs [class*="fi-"]::before {
    font-family: inherit;
}

/* Widgets colorés - Page contact */
/* Widget 1 - Catégorie sociale - Violet */
.page-contact #rowinfosum .col-flex:nth-child(1) .themed-background {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%) !important;
}

/* Widget 2 - Zone géographique - Vert */
.page-contact #rowinfosum .col-flex:nth-child(2) .themed-background-dark {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
}

/* Widget 3 - Type de chauffage - Orange/Rouge */
.page-contact #rowinfosum .col-flex:nth-child(3) .themed-background-dark {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

/* Widget 4 - CUMAC - Bleu ciel */
.page-contact #rowinfosum .col-flex:nth-child(4) .themed-background-dark {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

/* Widget 5 - Total TTC - Vert foncé */
.page-contact #rowinfosum .col-flex:nth-child(5) .themed-background-dark {
    background: linear-gradient(135deg, #16a085 0%, #138d75 100%) !important;
}

/* Widget 6 - Aides CEE - Cyan */
.page-contact #rowinfosum .col-flex:nth-child(6) .themed-background-dark {
    background: linear-gradient(135deg, #1bbae1 0%, #17a2b8 100%) !important;
}

/* Widget 7 - Aides MPR - Rose */
.page-contact #rowinfosum .col-flex:nth-child(7) .themed-background-dark {
    background: linear-gradient(135deg, #E6007E 0%, #FF2D9C 100%) !important;
}

/* Widget 8 - Reste à payer - Orange */
.page-contact #rowinfosum .col-flex:nth-child(8) .themed-background-dark {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
}
/* Fond léger et triangle décoratif pour les widgets */
.page-contact #rowinfosum .widget-extra-full {
    position: relative;
}

/* Triangle en bas à droite avec faible opacité - Widget 1 Violet */
.page-contact #rowinfosum .col-flex:nth-child(1) .widget-extra-full::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-right: 50px solid rgba(155, 89, 182, 0.15);
    border-top: 50px solid transparent;
}

.page-contact #rowinfosum .col-flex:nth-child(1) .widget-extra-full {
    background: rgba(155, 89, 182, 0.05);
}

/* Widget 2 Vert */
.page-contact #rowinfosum .col-flex:nth-child(2) .widget-extra-full::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-right: 50px solid rgba(39, 174, 96, 0.15);
    border-top: 50px solid transparent;
}

.page-contact #rowinfosum .col-flex:nth-child(2) .widget-extra-full {
    background: rgba(39, 174, 96, 0.05);
}

/* Widget 3 Rouge */
.page-contact #rowinfosum .col-flex:nth-child(3) .widget-extra-full::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-right: 50px solid rgba(231, 76, 60, 0.15);
    border-top: 50px solid transparent;
}

.page-contact #rowinfosum .col-flex:nth-child(3) .widget-extra-full {
    background: rgba(231, 76, 60, 0.05);
}

/* Widget 4 Bleu ciel */
.page-contact #rowinfosum .col-flex:nth-child(4) .widget-extra-full::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-right: 50px solid rgba(52, 152, 219, 0.15);
    border-top: 50px solid transparent;
}

.page-contact #rowinfosum .col-flex:nth-child(4) .widget-extra-full {
    background: rgba(52, 152, 219, 0.05);
}

/* Widget 5 Vert foncé */
.page-contact #rowinfosum .col-flex:nth-child(5) .widget-extra-full::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-right: 50px solid rgba(22, 160, 133, 0.15);
    border-top: 50px solid transparent;
}

.page-contact #rowinfosum .col-flex:nth-child(5) .widget-extra-full {
    background: rgba(22, 160, 133, 0.05);
}

/* Widget 6 Cyan */
.page-contact #rowinfosum .col-flex:nth-child(6) .widget-extra-full::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-right: 50px solid rgba(27, 186, 225, 0.15);
    border-top: 50px solid transparent;
}

.page-contact #rowinfosum .col-flex:nth-child(6) .widget-extra-full {
    background: rgba(27, 186, 225, 0.05);
}

/* Widget 7 Rose */
.page-contact #rowinfosum .col-flex:nth-child(7) .widget-extra-full::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-right: 50px solid rgba(230, 0, 126, 0.15);
    border-top: 50px solid transparent;
}

.page-contact #rowinfosum .col-flex:nth-child(7) .widget-extra-full {
    background: rgba(230, 0, 126, 0.05);
}

/* Widget 8 Orange */
.page-contact #rowinfosum .col-flex:nth-child(8) .widget-extra-full::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-right: 50px solid rgba(243, 156, 18, 0.15);
    border-top: 50px solid transparent;
}

.page-contact #rowinfosum .col-flex:nth-child(8) .widget-extra-full {
    background: rgba(243, 156, 18, 0.05);
}

/* Bordure colorée au hover pour les widgets */
.page-contact #rowinfosum .col-flex:nth-child(1) .widget-extra-full:hover {
    border: 2px dotted rgba(155, 89, 182, 0.8);
}

.page-contact #rowinfosum .col-flex:nth-child(2) .widget-extra-full:hover {
    border: 2px dotted rgba(39, 174, 96, 0.8);
}

.page-contact #rowinfosum .col-flex:nth-child(3) .widget-extra-full:hover {
    border: 2px dotted rgba(231, 76, 60, 0.8);
}

.page-contact #rowinfosum .col-flex:nth-child(4) .widget-extra-full:hover {
    border: 2px dotted rgba(52, 152, 219, 0.8);
}

.page-contact #rowinfosum .col-flex:nth-child(5) .widget-extra-full:hover {
    border: 2px dotted rgba(22, 160, 133, 0.8);
}

.page-contact #rowinfosum .col-flex:nth-child(6) .widget-extra-full:hover {
    border: 2px dotted rgba(27, 186, 225, 0.8);
}

.page-contact #rowinfosum .col-flex:nth-child(7) .widget-extra-full:hover {
    border: 2px dotted rgba(230, 0, 126, 0.8);
}

.page-contact #rowinfosum .col-flex:nth-child(8) .widget-extra-full:hover {
    border: 2px dotted rgba(243, 156, 18, 0.8);
}


/*
=================================================================
=================================================================
                        THEME 3 LAYER
      Surcouche moderne pilotée par les tokens (tokens.css)
      Organisée par sections : (T3-01) BASE · (T3-02) BLOCKS ·
      (T3-03) BOUTONS · (T3-04) FORMULAIRES · (T3-05) DROPDOWNS
      · (T3-06) BADGES/LABELS · (T3-07) TABLES
      (les sections HEADER, SIDEBAR, MODALS, RESPONSIVE et
      ANIMATIONS sont ajoutées par les phases 2 à 7)
=================================================================
=================================================================
*/

/* ---------------- (T3-01) BASE ---------------- */
body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background: var(--gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

a {
    color: var(--primary-blue-light);
    transition: color var(--transition-fast);
}
a:hover, a:focus {
    color: var(--primary-blue);
}

::selection {
    background: var(--primary-blue-light);
    color: #fff;
}

/* Scrollbars discrètes (WebKit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--gray-500);
}

/* ---------------- (T3-02) BLOCKS / CARTES ---------------- */
.block {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    transition: box-shadow var(--transition-fast);
}
/* Survol d'un conteneur : AUCUN changement (retour user — un grand bloc comme
   le planning « changeait de fond » à cause du renforcement d'ombre) */
.block:hover {
    box-shadow: var(--shadow-xs);
}
.block-title {
    border-bottom: 1px solid var(--gray-200);
    margin: calc(var(--space-4) * -1) calc(var(--space-4) * -1) var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    min-height: 0;
}
/* !important requis : la base theme1 impose color:#ffffff !important
   (prévu pour son bandeau cyan) → titre invisible sur fond blanc sinon */
.block-title h1, .block-title h2, .block-title h3,
.block-title h4, .block-title h5, .block-title h6 {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary) !important;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}
.block-title h2 strong {
    font-weight: var(--font-weight-bold);
}
.block-title h1 small, .block-title h2 small, .block-title h3 small {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}
/* Le pattern ProUI place .block-options AVANT le titre dans le DOM :
   order:99 garantit titre à gauche / boutons à droite, sur la même ligne */
.block-title .block-options {
    margin-left: auto;
    order: 99;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-1);
    float: none;
}

/* ---------------- (T3-03) BOUTONS ---------------- */
.btn {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast),
                box-shadow var(--transition-fast),
                transform var(--transition-fast);
    box-shadow: none;
}
.btn:active {
    transform: translateY(1px);
    box-shadow: none;
}
.btn:focus, .btn.focus, .btn:active:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}
.btn-primary {
    background: var(--primary-blue-light);
    border-color: var(--primary-blue-light);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-primary.active, .open .dropdown-toggle.btn-primary {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}
.btn-default {
    background: #fff;
    /* --gray-500 et non --gray-400 : sur fond blanc le 400 plafonne a ~1.5:1 de
       contraste (trop pale), le 500 monte a ~2.2:1 et reste sobre. */
    border-color: var(--gray-500);
    color: var(--gray-700);
}
.btn-default:hover, .btn-default:focus, .btn-default:active,
.btn-default.active, .open .dropdown-toggle.btn-default {
    background: var(--gray-100);
    border-color: var(--gray-500);
    color: var(--gray-900);
}
/* Hiérarchie SaaS : UN bouton primaire plein par zone (.btn-primary), le reste
   en variantes PASTEL (fond teinté clair + texte foncé) — appliqué sans toucher
   au HTML des pages. */
/* Bordures des pastels à 0.5 (au lieu de 0.3) : contour net, même esprit que
   les onglets de la fiche client */
.btn-success {
    background: var(--color-success-bg);
    border-color: rgba(22, 163, 74, 0.5);
    color: #15803d;
}
.btn-success:hover, .btn-success:focus, .btn-success:active,
.btn-success.active, .open .dropdown-toggle.btn-success {
    background: #d3f5e0;
    border-color: rgba(22, 163, 74, 0.5);
    color: #166534;
}
.btn-danger {
    background: var(--color-danger-bg);
    border-color: rgba(220, 38, 38, 0.5);
    color: #b91c1c;
}
.btn-danger:hover, .btn-danger:focus, .btn-danger:active,
.btn-danger.active, .open .dropdown-toggle.btn-danger {
    background: #fde3e3;
    border-color: rgba(220, 38, 38, 0.5);
    color: #991b1b;
}
.btn-warning {
    background: var(--color-warning-bg);
    border-color: rgba(217, 119, 6, 0.55);
    color: #b45309;
}
.btn-warning:hover, .btn-warning:focus, .btn-warning:active,
.btn-warning.active, .open .dropdown-toggle.btn-warning {
    background: #fdefd0;
    border-color: rgba(217, 119, 6, 0.55);
    color: #92400e;
}
.btn-info {
    background: var(--color-info-bg);
    border-color: rgba(2, 132, 199, 0.5);
    color: #0369a1;
}
.btn-info:hover, .btn-info:focus, .btn-info:active,
.btn-info.active, .open .dropdown-toggle.btn-info {
    background: #dcedfb;
    border-color: rgba(2, 132, 199, 0.5);
    color: #075985;
}
/* Variante "alt" ProUI utilisée partout (JDGrid, toolbars) */
.btn-alt {
    border-radius: var(--radius-sm);
}

/* ---------------- (T3-04) FORMULAIRES ---------------- */
.form-control {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    box-shadow: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus {
    border-color: var(--primary-blue-light);
    box-shadow: var(--focus-ring);
    outline: none;
}
/* Selects natifs : avec 10px de padding haut/bas (« Modern form controls ») et la hauteur fixe Bootstrap
   (34px, 30px en input-sm), il reste 12px (8px) pour le texte et Chrome le rogne. Les inputs, eux, débordent sans rognage. */
select.form-control:not([multiple]) {
    padding-top: 6px;
    padding-bottom: 6px;
    line-height: 1.4;
}
select.form-control.input-sm:not([multiple]) {
    padding: 4px 8px;
}
.form-control::placeholder {
    color: var(--text-muted);
}
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
    background: var(--gray-100);
    color: var(--text-secondary);
    cursor: not-allowed;
}
/* Libellés de champs : plus foncés et semi-gras (lisibilité, toutes pages) */
label, .control-label {
    font-weight: var(--font-weight-semibold);
    color: var(--gray-900);
    font-size: var(--font-size-sm);
}
legend {
    font-family: var(--font-sans);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: var(--space-2);
}
.form-horizontal.form-bordered .form-group {
    border-color: var(--gray-100);
}
.input-group-addon {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}
.help-block {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* ---------------- (T3-05) DROPDOWNS ---------------- */
.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-1) 0;
    font-size: var(--font-size-base);
}
.dropdown-menu > li > a {
    padding: var(--space-2) var(--space-4);
    color: var(--gray-700);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    background: var(--gray-100);
    color: var(--text-primary);
}
.dropdown-menu .divider {
    background: var(--gray-200);
    margin: var(--space-1) 0;
}
.dropdown-header {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------------- (T3-06) BADGES / LABELS ---------------- */
.label, .badge {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-full);
    padding: 3px 9px;
    font-size: var(--font-size-xs);
}
.label-primary { background: var(--primary-blue-light); }
.label-success { background: var(--color-success); }
.label-danger  { background: var(--color-danger); }
.label-warning { background: var(--color-warning); }
.label-info    { background: var(--color-info); }
.badge {
    background: var(--gray-600);
}

/* ---------------- (T3-07) TABLES (hors JDGrid) ---------------- */
.table > thead > tr > th {
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    text-transform: none;
    border-bottom: 1px solid var(--gray-200);
}
.table > tbody > tr > td {
    border-color: var(--gray-100);
    vertical-align: middle;
}
.table-hover > tbody > tr:hover {
    background: var(--gray-50);
}
.table-bordered, .table-bordered > tbody > tr > td, .table-bordered > thead > tr > th {
    border-color: var(--gray-200);
}

/* ---------------- (T3-08) HEADER COMPACT ---------------- */
header.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
    min-height: var(--header-height);
}
.nav.navbar-nav-custom > li {
    min-height: var(--header-height);
}
.nav.navbar-nav-custom > li > a {
    min-width: 44px;
    padding: 0 10px;
    line-height: var(--header-height);
    height: var(--header-height);
    color: var(--gray-600);
    font-size: 15px;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}
.nav.navbar-nav-custom > li > a:hover,
.nav.navbar-nav-custom > li > a:focus,
.nav.navbar-nav-custom > li.open > a {
    color: var(--primary-blue);
    background: var(--gray-100);
}
.nav.navbar-nav-custom > li > a > img {
    margin-top: calc((var(--header-height) - 32px) / 2);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
}
.nav.navbar-nav-custom > li > a .label-indicator {
    top: 8px;
}
/* Contrôles ProUI obsolètes : masqués en thème 3 (le PHP reste en place pour les anciens thèmes) */
html[data-demo-theme='theme3'] .proui-template-options {
    display: none !important;
}
/* Recherche globale : pilule moderne */
.navbar-form-custom {
    margin: calc((var(--header-height) - 36px) / 2) 10px;
    padding: 0;
}
.navbar-form-custom .form-control {
    height: 36px;
    line-height: 36px;
    background: var(--gray-100);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    padding: 0 16px;
    font-size: var(--font-size-base);
    transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.navbar-form-custom .form-control:hover {
    background: var(--gray-200);
}
.navbar-form-custom .form-control:focus {
    background: #fff;
    border-color: var(--primary-blue-light);
    box-shadow: var(--focus-ring);
}

/* ---------------- (T3-09) SIDEBAR ---------------- */
/* La structure/les largeurs ProUI sont conservées (app.js en dépend) — on raffine
   couleurs, accents et intertitres. Fond sombre hérité de la base (dégradé navy). */
#page-container,
#sidebar,
#sidebar-alt {
    background: linear-gradient(180deg, #10233c 0%, #0b1626 100%);
}
.sidebar-brand,
.sidebar-title {
    height: var(--header-height);
    line-height: var(--header-height);
    font-size: 17px;
    font-weight: var(--font-weight-bold);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
a.sidebar-brand:hover,
a.sidebar-brand:focus,
a.sidebar-title:hover,
a.sidebar-title:focus {
    background: rgba(255, 255, 255, 0.06);
    transform: none;
}
/* Intertitres de groupes du menu ($primary_nav 'url' => 'header') */
.sidebar-nav li.sidebar-header {
    padding: 14px 18px 4px;
    margin: 6px 0 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-nav li.sidebar-header:first-child {
    border-top: none;
    margin-top: 0;
}
.sidebar-nav li.sidebar-header .sidebar-header-title {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.38);
}
/* En mode replié (sidebar-mini/partial), les intertitres deviennent un simple trait */
.sidebar-mini:not(.sidebar-visible-lg-full) .sidebar-nav li.sidebar-header .sidebar-header-title {
    display: none;
}
.sidebar-nav a {
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    min-height: 40px;
    line-height: 40px;
    border-left: 3px solid transparent;
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}
.sidebar-nav a::before {
    display: none; /* pas de puce cyan héritée de la base */
}
.sidebar-nav a:hover,
.sidebar-nav a:focus,
.sidebar-nav a.open,
.sidebar-nav li.active > a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--primary-pink);
}
.sidebar-nav a.active {
    border-left-color: var(--primary-pink);
    background: linear-gradient(90deg, rgba(230, 0, 126, 0.18) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: #ffffff;
    font-weight: var(--font-weight-semibold);
}
.sidebar-nav a > .sidebar-nav-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
    margin-right: 10px;
    opacity: 0.85;
}
.sidebar-user {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------------- (T3-10) CONTENT HEADER + SORT DE MENUTOP ---------------- */
/* La barre d'onglets menutop (doublon de la sidebar) disparaît en thème 3.
   Audit croisé fait : chaque entrée de menutop.php (par profil) existe dans
   $primary_nav. Suppression physique des includes prévue en phase 8. */
html[data-demo-theme='theme3'] .content-header ul.nav-horizontal {
    display: none !important;
}
/* Neutralisation COMPLÈTE de l'héritage theme1 (dégradé, ombre, rayons,
   marges négatives -10px/-5px) : effet « bande grise » supprimé. */
.content-header {
    background: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
}
.content-header .header-section {
    padding: 0;
}
.content-header h1, .content-header h2 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
}
.content-header h1 small, .content-header h2 small {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}
/* Icônes décoratives géantes ProUI (56px flottantes) : masquées */
.content-header .header-section h1 i {
    display: none;
}
/* Fond et paddings du conteneur de page resserrés */
#page-content {
    background-color: var(--gray-100);
    padding: var(--space-2) var(--space-3) var(--space-1);
}

/* ---------------- (T3-11) MODALS ---------------- */
/* Pattern DOM invariant (.modal > .modal-dialog > .modal-content) : ce restylage
   s'applique aux ~250 modals existants (statiques + générés en JS) sans en
   réécrire un seul. */
/* overflow VISIBLE indispensable : comme pour les cartes de la fiche contact,
   les listes Chosen sont positionnées hors du cadre et un overflow:hidden ici
   les découpe. L'arrondi est porté par l'entête et le pied, qui sont les seuls
   éléments à fond distinct pouvant déborder des coins. */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: visible;
}
/* Même raison pour les tableaux DANS une modal : la règle « Modern tables »
   (.table { overflow:hidden }) découpait la liste Chosen « Champ » de la modal
   « Filtrer les données » (JDGrid .jdgtbfilter, dico .tbfilter). */
.modal .table {
    overflow: visible;
}
.modal-header {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4) var(--space-5);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}
.modal-header .modal-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}
.modal-header .modal-title i {
    color: var(--primary-blue-light);
    margin-right: var(--space-2);
}
.modal-header .close {
    font-size: 22px;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}
.modal-header .close:hover {
    opacity: 1;
}
.modal-body {
    padding: var(--space-5);
}
/* Le corps porte aussi l'arrondi bas : sans pied de modale, c'est lui qui
   touche le bas du cadre. */
.modal-body:last-child {
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}
.modal-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: var(--space-3) var(--space-5);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}
/* Certaines modales (ex. "Envoyer un email") n'ont pas de .modal-footer : leur
   barre de boutons est un .form-actions en fin de .modal-body, au fond quasi
   blanc et sans separation. On lui donne l'aspect d'un vrai pied.
   Portee volontairement limitee a .modal : .form-actions sert aussi en bas de
   formulaires pleine page, ou ce fond gris n'aurait rien a faire.
   AUCUNE marge laterale ici : le .form-bordered parent "saigne" deja hors du
   padding du .modal-body (margin -15px, -20px en desktop, cf. L2352/L4144).
   En rajouter ferait deborder la barre hors du cadre arrondi. */
.modal .modal-body > form > .form-actions:last-child,
.modal .modal-body > .form-actions:last-child {
    padding: var(--space-3) var(--space-5);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}
/* Une .form-actions DANS un .modal-footer (cas frequent) ne doit pas empiler un
   second fond gris ni ressortir du pied : on la laisse totalement neutre. */
.modal .modal-footer .form-actions {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

/* Backdrop : voile sombre + léger flou (fallback sans flou géré par @supports) */
.modal-backdrop {
    background-color: #0f172a;
}
.modal-backdrop.in {
    opacity: 0.45;
}
@supports (backdrop-filter: blur(3px)) or (-webkit-backdrop-filter: blur(3px)) {
    .modal-backdrop.in {
        opacity: 0.35;
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }
}

/* Animation scale + fade (remplace le translateY(-25%) de Bootstrap 3).
   Compatible avec tous les appels .modal() existants. */
.modal.fade .modal-dialog {
    -webkit-transform: scale(0.96) translateY(8px);
    -ms-transform: scale(0.96) translateY(8px);
    transform: scale(0.96) translateY(8px);
    opacity: 0;
    -webkit-transition: -webkit-transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}
.modal.in .modal-dialog {
    -webkit-transform: scale(1) translateY(0);
    -ms-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ---------------- (T3-12) FICHE CLIENT (.page-contact) ---------------- */
/* Ciblage des onglets EXCLUSIVEMENT par a[href="#tabs-*"] — jamais :nth-child
   (des onglets sont masqués selon le profil : nth-child se désynchronise). */

/* Sections repliables de la colonne identité */
/* overflow VISIBLE indispensable : les listes Chosen (.chosen-drop) sont en
   position absolue sous leur champ, donc hors du cadre de la carte. Un
   overflow:hidden ici les découpe et l'utilisateur ne voit plus les valeurs.
   L'arrondi des coins hauts est donc porté par .contact-section-head lui-même
   (voir plus bas) et non plus par un rognage du parent. */
.page-contact .contact-section {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    background: #fff;
    overflow: visible;
}
.page-contact .contact-section-head {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    /* Reprend l'arrondi du parent : sans lui le fond gris déborderait en angle
       droit des coins arrondis de la carte. */
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-700);
    background: var(--gray-50);
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
.page-contact .contact-section-head:hover,
.page-contact .contact-section-head:focus {
    background: var(--gray-100);
    color: var(--primary-blue);
    text-decoration: none;
}
.page-contact .contact-section-chevron {
    transition: transform var(--transition-base);
}
/* Section repliée : l'entête occupe seule toute la carte, ses coins bas doivent
   donc être arrondis eux aussi. */
.page-contact .contact-section-head.collapsed {
    border-radius: var(--radius-md);
}
.page-contact .contact-section-head.collapsed .contact-section-chevron {
    transform: rotate(-90deg);
}

/* Pastilles de synthèse dans l'entête : visibles UNIQUEMENT section repliée,
   l'information étant sinon déjà lisible dans les champs du formulaire.
   Aucune règle dans theme-compat.css n'est nécessaire : ces spans vivent dans
   .contact-section-head, déjà masqué en display:none pour les anciens thèmes. */
.page-contact .contact-section-head .csec-badges {
    display: none;
    margin-left: auto;
    gap: var(--space-1, 4px);
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}
.page-contact .contact-section-head.collapsed .csec-badges {
    display: flex;
}
.page-contact .contact-section-head .csec-badges:empty {
    display: none;
}
/* Libellé affiché en entier : pas de largeur maximale ni de troncature. Sur
   colonne étroite les pastilles passent à la ligne (flex-wrap du conteneur)
   plutôt que d'être coupées. */
.page-contact .csec-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-full, 999px);
    font-size: 11px;
    font-weight: var(--font-weight-semibold, 600);
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
}
.page-contact .csec-badge i {
    flex: 0 0 auto;
    font-size: 10px;
    opacity: 0.9;
}
.page-contact .contact-section-body {
    padding: var(--space-2) var(--space-3);
}
.page-contact .contact-section .form-group {
    border: none;
}
/* Les fieldsets ANAH/MPA vivent dans une section : légendes allégées */
.page-contact .contact-section legend {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    padding: var(--space-2) 0;
    margin-bottom: var(--space-2);
}

/* Barre d'actions du formulaire identité : sticky en bas de viewport */
.page-contact #frminfousr .form-actions {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-top: 1px solid var(--gray-200);
    margin: 0 calc(var(--space-4) * -1) calc(var(--space-4) * -1);
    padding: var(--space-3) var(--space-4);
}

/* Onglets principaux : barre de pills scrollable avec libellés de groupes */
.page-contact #maintabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-3);
}
.page-contact #maintabs > li {
    float: none;
    margin: 0;
}
/* Libellés de groupes (inertes dans les anciens thèmes : display:none inline) */
.page-contact #maintabs > li.maintabs-group {
    display: flex !important;
    align-items: center;
    margin-left: var(--space-3);
    pointer-events: none;
}
.page-contact #maintabs > li.maintabs-group:first-child,
.page-contact #maintabs > li.maintabs-group + li.maintabs-group {
    margin-left: 0;
}
.page-contact #maintabs > li.maintabs-group span {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0 var(--space-1);
}
.page-contact #maintabs > li > a {
    border: 1px solid transparent !important;
    border-radius: var(--radius-full) !important;
    padding: 6px 14px;
    margin: 0;
    color: var(--gray-700);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    background: transparent;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.page-contact #maintabs > li > a:hover,
.page-contact #maintabs > li > a:focus {
    background: var(--gray-100);
    color: var(--primary-blue);
}
.page-contact #maintabs > li.active > a,
.page-contact #maintabs > li.active > a:hover,
.page-contact #maintabs > li.active > a:focus {
    background: var(--primary-blue-lighter);
    color: var(--primary-blue);
    border-color: rgba(0, 82, 163, 0.25) !important;
    font-weight: var(--font-weight-semibold);
}
.page-contact #maintabs .badge {
    background: var(--primary-pink);
    margin-left: 4px;
}

/* Widgets KPI (#rowinfosum) : cartes compactes */
.page-contact #rowinfosum .widget {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-200);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.page-contact #rowinfosum .widget:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Onglets 2e niveau (types d'opérations #tabs-ope-*) : structure interne intacte,
   simple habillage */
.page-contact .tab-content .nav-tabs {
    border-bottom: 1px solid var(--gray-200);
}
.page-contact .tab-content .nav-tabs > li > a {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-size: var(--font-size-sm);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

/* ---------------- (T3-13) RESPONSIVE ---------------- */
/* Breakpoints thème 3 : 640 / 768 / 1024 / 1280 (alignés Tailwind), en
   complément des media queries Bootstrap 3 qui restent actives. */

@media (max-width: 1023px) {
    /* Fiche client : colonnes empilées, sections repliées visuellement resserrées */
    .page-contact .col-lg-4,
    .page-contact .col-lg-8 {
        width: 100%;
    }
    .content-header {
        padding-top: var(--space-2);
    }
}

@media (max-width: 767px) {
    /* Anti-zoom iOS : un input < 16px déclenche le zoom automatique */
    .form-control,
    input[type="text"], input[type="email"], input[type="password"],
    input[type="number"], input[type="tel"], select, textarea {
        font-size: 16px !important;
    }
    /* Header : la recherche prend l'espace restant, boutons resserrés */
    .navbar-form-custom {
        margin-left: var(--space-1);
        margin-right: var(--space-1);
    }
    .nav.navbar-nav-custom > li > a {
        min-width: 40px;
        padding: 0 8px;
    }
    /* Blocks moins de marge interne sur petit écran */
    .block {
        padding: var(--space-3);
    }
    .block-title {
        margin: calc(var(--space-3) * -1) calc(var(--space-3) * -1) var(--space-3);
    }
    /* Modals plein écran confortable */
    .modal-dialog {
        margin: var(--space-2);
    }
    .modal-body {
        padding: var(--space-4);
    }
    /* Onglets fiche : barre horizontale scrollable (pills) */
    .page-contact #maintabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--space-2);
        scrollbar-width: thin;
    }
    .page-contact #maintabs > li > a {
        white-space: nowrap;
    }
    /* Dropdowns du header en pleine largeur */
    header.navbar .dropdown-menu {
        max-width: calc(100vw - 16px);
    }
}

/* Sidebar mobile : le comportement off-canvas ProUI (sidebar-visible-xs) est
   conservé ; voile PUREMENT DÉCORATIF sur le contenu quand la sidebar est
   ouverte. pointer-events:none + left:200px obligatoires : la sidebar ProUI
   pousse le contenu par marges (pas de superposition) — un voile plein écran
   cliquable recouvrait la sidebar et gelait tout le CRM. */
@media (max-width: 991px) {
    .sidebar-visible-xs #main-container::before {
        content: '';
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 200px;
        background: rgba(15, 23, 42, 0.35);
        z-index: 1010;
        pointer-events: none;
    }
}

/* ---------------- (T3-14) ANIMATIONS & MICRO-INTERACTIONS ---------------- */
/* Transitions ciblées uniquement (jamais transition:all sur les grilles). */

/* Apparition du contenu de page — une seule fois au chargement */
@keyframes t3-page-enter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* PAS de fill-mode (both) : un transform résiduel sur #page-content en ferait
   un stacking context permanent, piégeant les modals SOUS le backdrop (bug
   « modal figé » constaté sur Importer / multiselect JDGrid). */
#page-content {
    animation: t3-page-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Onglets : soulignement/fond animés (déjà des transitions sur .nav-tabs T3-12) */
.nav-tabs > li > a {
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

/* Collapse BS3 : courbe plus douce */
.collapsing {
    transition-duration: 0.25s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Focus visible au clavier */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-blue-light);
    outline-offset: 2px;
}

/* Chevron accordéons génériques */
.sidebar-nav .sidebar-nav-indicator {
    transition: transform var(--transition-base);
}
.sidebar-nav a.open .sidebar-nav-indicator {
    transform: rotate(-90deg);
}

/* Tooltips/popovers BS3 : fondu rapide */
.tooltip.fade {
    transition: opacity 0.12s ease;
}

/* Respect de la préférence utilisateur : tout désactiver */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* (T3-10 bis) Ligne de titre de page — remplace menutop, rendue par menutop.php
   (bloc .page-title-t3, inerte dans les anciens thèmes via display:none inline) */
/* Fil d'ariane de repérage : discret, signé par un accent rose sous la page
   courante. Le vrai titre de page est celui du bloc (visible à gauche). */
html[data-demo-theme='theme3'] .content-header .page-title-t3 {
    display: flex !important;
    align-items: center;
    gap: var(--space-2);
    padding: 0 0 var(--space-2) 2px;
    line-height: 28px;
}
html[data-demo-theme='theme3'] .page-title-t3 .page-title-t3-group {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}
html[data-demo-theme='theme3'] .page-title-t3 > i {
    color: var(--gray-400);
    font-size: 10px;
}
/* Page courante en puce encadrée (pattern Stripe/Linear) : fond bleu très
   clair, texte bleu marque, icône de la page */
html[data-demo-theme='theme3'] .page-title-t3 h1 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-blue-lighter);
    color: var(--primary-blue);
    border: 1px solid rgba(0, 82, 163, 0.15);
    border-radius: var(--radius-full);
    padding: 3px 12px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 20px;
    margin: 0;
    /* la puce ne se comprime jamais : sans ça, en flex nowrap sur mobile elle
       cassait en 3 lignes à l'intérieur du cadre arrondi */
    white-space: nowrap;
    flex-shrink: 0;
}
html[data-demo-theme='theme3'] .page-title-t3 h1 i {
    font-size: 12px;
    opacity: 0.8;
}
/* Rappel client permanent (fiche client) : nom + adresse courte + tél restent
   visibles même accordéons fermés — rendu par menutop.php, données $curusr */
html[data-demo-theme='theme3'] .page-title-t3 .page-title-t3-client {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: var(--space-2);
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}
html[data-demo-theme='theme3'] .page-title-t3 .page-title-t3-client strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}
html[data-demo-theme='theme3'] .page-title-t3 .page-title-t3-client .t3-client-adr {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
html[data-demo-theme='theme3'] .page-title-t3 .page-title-t3-client .t3-client-sep {
    color: var(--gray-400);
}
html[data-demo-theme='theme3'] .page-title-t3 .page-title-t3-client a {
    color: var(--primary-blue-light);
    white-space: nowrap;
    /* le numéro ne se coupe jamais — c'est l'adresse (ellipsée) qui absorbe */
    flex-shrink: 0;
}
html[data-demo-theme='theme3'] .page-title-t3 .page-title-t3-client a:hover {
    text-decoration: underline;
}
html[data-demo-theme='theme3'] .page-title-t3 .page-title-t3-client a i {
    font-size: 11px;
    opacity: 0.8;
    margin-right: 2px;
}

/* ---------------- (T3-15) FEEDBACK : TOASTS, OVERLAY, AVATARS ---------------- */

/* Toasts bootstrapGrowl : carte blanche, bordure gauche colorée par type */
.bootstrap-growl.alert {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--gray-200);
    border-left-width: 4px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
}
.bootstrap-growl.alert .close {
    color: var(--gray-500);
    opacity: 1;
    text-shadow: none;
}
.bootstrap-growl.alert-success { border-left-color: var(--color-success); }
.bootstrap-growl.alert-danger  { border-left-color: var(--color-danger); }
.bootstrap-growl.alert-warning { border-left-color: var(--color-warning); }
.bootstrap-growl.alert-info    { border-left-color: var(--color-info); }

/* Overlay HoldOn : voile blanc + flou, spinner aux couleurs de la marque */
#holdon-overlay {
    background: rgba(255, 255, 255, 0.7) !important;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
#holdon-message {
    color: var(--gray-700) !important;
    font-family: var(--font-sans);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
}
/* Cibler les BARRES/POINTS des spinners, jamais leurs conteneurs (sinon pavé
   de couleur plein — bug constaté sur sk-rect) */
#holdon-content .sk-rect,
#holdon-content .sk-cube,
#holdon-content .sk-dot,
#holdon-content .sk-bounce,
#holdon-content .sk-circle {
    background: transparent !important;
}
#holdon-content .sk-rect > div,
#holdon-content .sk-cube > div,
#holdon-content .sk-bounce > div,
#holdon-content .sk-child::before,
#holdon-content .sk-cubechild::before,
#holdon-content .sk-dot::before,
#holdon-content .sk-dot > div {
    background-color: var(--primary-blue-light) !important;
}

/* Avatar à initiales (remplace la photo stock ProUI en thème 3) */
.avatar-initials-t3 {
    display: none;
}
html[data-demo-theme='theme3'] .avatar-initials-t3 {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--primary-pink) 100%);
    color: #fff;
    font-weight: var(--font-weight-semibold);
    font-size: 13px;
    letter-spacing: 0.02em;
    vertical-align: middle;
    -webkit-user-select: none;
    user-select: none;
}
/* Dans le sidebar : UN seul rond (le dégradé bleu→rose ci-dessus), le halo
   cyan du conteneur .sidebar-user-avatar ayant été retiré. Calé sur les 40px
   du conteneur (le 48px précédent débordait). */
html[data-demo-theme='theme3'] .sidebar-user-avatar .avatar-initials-t3 {
    width: 40px;
    height: 40px;
    font-size: 16px;
}
html[data-demo-theme='theme3'] .avatar-img-legacy {
    display: none !important;
}

/* ---------------- (T3-16) CORRECTIFS RETOURS UTILISATEUR ---------------- */

/* Variantes .btn-alt : la base theme1 les rendait blanches/cyan (look « lien nu »,
   ex. Ajouter un RDV Timeline/Agenda). Redéfinies en pastel bordé cohérent Lot 1. */
.btn-primary.btn-alt {
    background: var(--primary-blue-lighter);
    color: var(--primary-blue);
    border: 1px solid rgba(0, 82, 163, 0.3);
    box-shadow: none;
}
.btn-primary.btn-alt:hover, .btn-primary.btn-alt:focus, .btn-primary.btn-alt:active {
    background: #d5e6f7;
    color: var(--primary-blue);
    border-color: rgba(0, 82, 163, 0.5);
}
.btn-info.btn-alt {
    background: var(--color-info-bg);
    color: #0369a1;
    border: 1px solid rgba(2, 132, 199, 0.3);
    box-shadow: none;
}
.btn-info.btn-alt:hover, .btn-info.btn-alt:focus, .btn-info.btn-alt:active {
    background: #dcedfb;
    color: #075985;
    border-color: rgba(2, 132, 199, 0.5);
}
.btn-success.btn-alt {
    background: var(--color-success-bg);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.3);
    box-shadow: none;
}
.btn-success.btn-alt:hover, .btn-success.btn-alt:focus, .btn-success.btn-alt:active {
    background: #d3f5e0;
    color: #166534;
    border-color: rgba(22, 163, 74, 0.5);
}
.btn-danger.btn-alt {
    background: var(--color-danger-bg);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: none;
}
.btn-danger.btn-alt:hover, .btn-danger.btn-alt:focus, .btn-danger.btn-alt:active {
    background: #fde3e3;
    color: #991b1b;
    border-color: rgba(220, 38, 38, 0.5);
}
.btn-warning.btn-alt {
    background: var(--color-warning-bg);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.35);
    box-shadow: none;
}
.btn-warning.btn-alt:hover, .btn-warning.btn-alt:focus, .btn-warning.btn-alt:active {
    background: #fdefd0;
    color: #92400e;
    border-color: rgba(217, 119, 6, 0.55);
}
.btn-default.btn-alt {
    background: #fff;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    box-shadow: none;
}

/* Titres de blocs toujours EN PREMIER : pousse à droite tout le reste
   (boutons nus type « Ajouter un document »,
   .block-options), quel que soit l'ordre du DOM. */
.block-title h1, .block-title h2, .block-title h3,
.block-title h4, .block-title h5, .block-title h6 {
    order: -1;
    margin-right: auto;
}

/* Onglets fiche client à 2 niveaux : barre de groupes segmentée (thème 3).
   Les anciens libellés inline .maintabs-group sont définitivement masqués. */
html[data-demo-theme='theme3'] .page-contact #maintabs > li.maintabs-group {
    display: none !important;
}
html[data-demo-theme='theme3'] .maintabs-groups-t3 {
    display: inline-flex !important;
    align-items: center;
    gap: 2px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 3px;
    margin-bottom: var(--space-3);
}
.maintabs-groups-t3 .mtg-seg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--gray-600);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.maintabs-groups-t3 .mtg-seg i {
    font-size: 12px;
    opacity: 0.75;
}
.maintabs-groups-t3 .mtg-seg:hover {
    color: var(--primary-blue);
}
.maintabs-groups-t3 .mtg-seg.active {
    background: #fff;
    color: var(--primary-blue);
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-xs);
}
/* La rangée d'onglets vit SOUS la barre de groupes : bordure allégée */
html[data-demo-theme='theme3'] .page-contact #maintabs {
    padding-top: 0;
}

/* Mobile : widgets KPI de la fiche en grille 2 colonnes alignées */
@media (max-width: 767px) {
    .page-contact #rowinfosum {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
        margin-left: 0;
        margin-right: 0;
    }
    /* Les pseudo-éléments clearfix de .row deviendraient des items de grille
       (case vide avant la 1re carte) : on les supprime */
    .page-contact #rowinfosum::before,
    .page-contact #rowinfosum::after {
        content: none;
    }
    .page-contact #rowinfosum .col-flex {
        width: auto;
        padding: 0;
        float: none;
    }
    .page-contact #rowinfosum .widget {
        margin-bottom: 0;
        height: 100%;
    }
}

/* ---------------- (T3-17) WIDGETS DASHBOARD (module dico, index.php) ---------------- */

/* Carte widget : en-tête compact */
.page-dashboard .dicwidget .block-title h4 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary) !important;
}
.page-dashboard .draggable-blocks {
    margin: 0;
    gap: var(--space-4);
}
.page-dashboard .dicwidget {
    margin-bottom: 0;
}

/* Bandeau axes/filtres : chips discrètes (neutralise les styles inline) */
.page-dashboard .stat-widget-info {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-xs) !important;
    color: var(--text-secondary) !important;
    margin-top: 0 !important;
}
.page-dashboard .stat-widget-info > span {
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 2px 10px;
    margin-right: 0 !important;
}
.page-dashboard .stat-widget-detail {
    background: var(--gray-50) !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-secondary);
}

/* Labels Highcharts : fin des soulignements bleus ; œil discret, coloré au survol */
.page-dashboard .highcharts-container a,
.page-dashboard .graph-label-text {
    color: var(--gray-700) !important;
    text-decoration: none !important;
}
.page-dashboard .highcharts-data-label a,
.page-dashboard .highcharts-data-label a span,
.page-dashboard .highcharts-xaxis-labels a,
.page-dashboard .highcharts-xaxis-labels a span {
    text-decoration: none !important;
}
.page-dashboard .btstattoviewfromgraph,
.page-dashboard .btstattoview {
    color: var(--gray-400) !important;
    transition: color var(--transition-fast);
}
.page-dashboard .highcharts-container span:hover > .btstattoviewfromgraph,
.page-dashboard .btstattoviewfromgraph:hover,
.page-dashboard .btstattoview:hover {
    color: var(--primary-blue-light) !important;
}

/* Cartes totaux modernes (classe wt-modern posée en JS, accent via --wt-accent) */
.widget-totaux-card.wt-modern {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--wt-accent, var(--primary-blue-light));
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    color: var(--text-primary);
    text-align: left;
    padding: var(--space-3) var(--space-4);
    font-weight: var(--font-weight-normal);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.widget-totaux-card.wt-modern:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.widget-totaux-card.wt-modern .wt-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    opacity: 1;
    margin-bottom: var(--space-1);
}
.widget-totaux-card.wt-modern .wt-value {
    font-size: 22px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
    color: var(--wt-accent, var(--text-primary));
}

/* Moyennes (μ) des tableaux de stats : gris discret (remplace le bleu inline) */
html[data-demo-theme='theme3'] .stat-mu {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: var(--font-weight-normal);
}

/* Plein écran d'un widget : fond opaque garanti (le fond de page sombre
   transparaissait derrière les graphes) */
.block.block-fullscreen {
    background: #fff;
}

/* Conteneur tableau des widgets */
.page-dashboard .jdtbcont {
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius-sm);
    overflow: auto;
}

/* Mobile : 1 widget par ligne, cartes totaux en 2 colonnes, tableaux scrollables */
@media (max-width: 767px) {
    .page-dashboard .draggable-blocks {
        margin: 0;
        gap: var(--space-3);
    }
    .page-dashboard .dicwidget {
        flex: 1 1 100% !important;
        max-width: 100%;
    }
    .widget-totaux-card,
    .widget-totaux-card.wt-modern {
        flex: 1 1 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
        min-width: 0 !important;
    }
    .page-dashboard .jdtbcont {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ---------------- (T3-18) CORRECTIFS MOBILE FICHE CLIENT ---------------- */
@media (max-width: 767px) {
    /* Selects natifs : hauteur suffisante + MÊME police et corps que les inputs
       (les navigateurs mobiles rendent les <select> en police système sinon,
       ce qui paraît plus gros que le 16px Inter des inputs) */
    select.form-control {
        height: 38px;
        padding-right: 24px;
        font-family: var(--font-sans);
        font-size: 16px !important;
    }
    .chosen-container,
    .chosen-container .chosen-single span {
        font-family: var(--font-sans);
    }
    /* Selects Chosen : hauteur/ligne recalées, MÊME taille de texte que les
       inputs (16px anti-zoom) pour un formulaire homogène */
    .chosen-container {
        font-size: 16px;
    }
    .chosen-container-single .chosen-single {
        height: 36px;
        line-height: 34px;
    }
    .chosen-container-single .chosen-single div b {
        background-position-y: 8px;
    }

    /* Barre segmentée Dossier/Suivi/Terrain/Modules : pleine largeur scrollable */
    html[data-demo-theme='theme3'] .maintabs-groups-t3 {
        display: flex !important;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    html[data-demo-theme='theme3'] .maintabs-groups-t3::-webkit-scrollbar {
        display: none;
    }
    .maintabs-groups-t3 .mtg-seg {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Suivi de dossier (#tbsuivdos) : la pastille compteur flottait à droite et
       recouvrait « Ouvrir l'historique » / « Infos sup. DP Mairie » dans la
       cellule étroite — remise dans le flux ; largeur minimale de colonne
       (la table défile horizontalement via .table-responsive) */
    #tbsuivdos .lblsuiv {
        float: none;
        display: inline-block;
        margin: 4px 0;
    }
    #tbsuivdos td:first-child,
    #tbsuivdos th:first-child {
        min-width: 120px;
    }
    #tbsuivdos small a,
    #tbsuivdos a small {
        white-space: nowrap;
    }

    /* Barre Valider sticky : marges négatives recalées sur le padding mobile
       du block (12px) */
    .page-contact #frminfousr .form-actions {
        margin: 0 calc(var(--space-3) * -1) calc(var(--space-3) * -1);
        padding: var(--space-3);
    }
}

/* Bouton Valider (#btupdatect) : retrait gauche verrouillé sur toutes les
   largeurs mobile/tablette pour l'aligner sur les cartouches de sections et
   les segments — !important pour neutraliser tout héritage de largeur */
@media (max-width: 1023px) {
    .page-contact #frminfousr .form-actions {
        padding-left: calc(var(--space-3) + var(--space-4)) !important;
    }
}

/* ---------------- (T3-19) PLANNING (FullCalendar, v2planning.php) ---------------- */

/* Barre des jours (LUN 8/12…) : sobre — fini le dégradé cyan */
.fc th,
.fc-day-header,
.calendarv2 .fc-widget-header th {
    background: var(--gray-50) !important;
    color: var(--gray-700) !important;
    font-size: var(--font-size-xs) !important;
    font-weight: var(--font-weight-semibold) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-color: var(--gray-200) !important;
    padding: 8px 4px !important;
}

/* Boutons de vue (Agenda / Semaine / Jour / ‹ ›) : pills neutres */
.fc-button,
.fc button {
    background: #fff !important;
    background-image: none !important;
    border: 1px solid var(--gray-300) !important;
    color: var(--gray-700) !important;
    font-family: var(--font-sans);
    font-size: var(--font-size-sm) !important;
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    height: auto !important;
    padding: 5px 12px !important;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.fc-button:hover {
    background: var(--gray-100) !important;
    color: var(--primary-blue) !important;
}
.fc-button.fc-state-active,
.fc-state-active {
    background: var(--primary-blue-lighter) !important;
    border-color: rgba(0, 82, 163, 0.3) !important;
    color: var(--primary-blue) !important;
    font-weight: var(--font-weight-semibold);
}

/* Événements : coins arrondis, bordure fine */
.fc-event,
.fc-time-grid-event,
.calendarv2 .fc-timeline-event {
    border-radius: var(--radius-sm);
    border-width: 1px;
}

/* Grille horaire : lignes douces */
.fc-widget-content,
.fc td {
    border-color: var(--gray-200) !important;
}
.fc-axis {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
}

/* (T3-19 bis) Planning : contenu des RDV STABLE au survol — les pastilles
   d'action restent visibles en permanence (la base les faisait apparaître au
   hover → saut de taille « bizarre ») */
.calendarv2 .elmrdv .btn {
    display: inline-block !important;
}

/* Header de bloc : les .block-options multiples (ex. planning : WhatsApp +
   timeline + select + date) ne se dispersent plus sur toute la largeur — le
   titre (margin-right:auto) pousse déjà le groupe à droite */
.block-title .block-options {
    margin-left: 0;
}

/* ---------------- (T3-20) ANTI-TRANSFORMS HÉRITÉS ---------------- */
/* La base theme1 anime blocs/boutons/lignes au survol (translateY, scale) —
   effet « tout grossit » signalé sur le planning et ailleurs. Le survol du
   thème 3 s'exprime par fonds/ombres légères, jamais par déplacement. */
.block:hover,
.panel:hover {
    transform: none;
    /* même ombre qu'au repos : zéro variation au survol des cadres */
    box-shadow: var(--shadow-xs);
}
.btn:hover {
    transform: none;
}
.table tbody tr:hover {
    transform: none;
    background-color: var(--gray-50);
}
.sidebar-user-avatar:hover {
    transform: none;
    box-shadow: none;
}
/* Le menu latéral aussi : aucun déplacement du texte au survol (le translateX
   + padding-left du bloc « MODERN SIDEBAR » historique faisait sauter les
   libellés de ~6px — Ticket utilisateur, capture à l'appui) */
.sidebar-nav a:hover,
.sidebar-nav a:focus {
    transform: none;
}

/* (T3-20 bis) Planning : AUCUN surlignage de ligne au survol de l'agenda
   (la vue Agenda est une table .table custom — v2planning.php:1828 ; le
   survol générique des tables y peignait un bandeau gris pleine largeur,
   diagnostiqué image par image sur l'enregistrement écran du user) */
/* Lignes : transparentes au survol à TOUTE profondeur (le wrapper .table
   contient tout le FullCalendar). Cellules : uniquement celles du wrapper —
   les td internes (fc-today beige, fond des dispos) gardent leur couleur. */
.page-planning .table tbody tr:hover,
.page-planning .table-hover > tbody > tr:hover {
    background: transparent !important;
}
.page-planning .table > tbody > tr:hover > td,
.page-planning .table > tbody > tr:hover > th,
.page-planning .table-hover > tbody > tr:hover > td,
.page-planning .table-hover > tbody > tr:hover > th {
    background: transparent !important;
}
.page-planning .table thead tr:hover th {
    background: var(--gray-50) !important;
}

/* ==========================================================================
   T3-21 : PARAMETRAGES (settings.php) — nav groupée, recherche, mobile
   ========================================================================== */

/* --- Colonne de navigation : carte sticky avec scroll propre --- */
.page-settings .setnav-t3-card {
    position: sticky;
    top: calc(var(--header-height) + 12px);
    max-height: calc(100vh - var(--header-height) - 24px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 10px;
    box-shadow: var(--shadow-xs);
}
.page-settings .setnav-t3-card::-webkit-scrollbar { width: 6px; }
.page-settings .setnav-t3-card::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

/* --- Recherche --- */
.page-settings .setnav-t3-search { position: relative; margin-bottom: 8px; }
.page-settings .setnav-t3-search > i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-muted);
    pointer-events: none;
}
.page-settings .setnav-t3-search > input {
    width: 100%;
    padding: 7px 10px 7px 30px;
    font-size: 13px;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.page-settings .setnav-t3-search > input:focus {
    background: #fff;
    border-color: var(--primary-blue);
    box-shadow: var(--focus-ring);
}

/* --- Groupes + items --- */
.page-settings .setnav-t3 > li.setnav-t3-group {
    padding: 14px 10px 4px;
    font-size: 10.5px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: default;
}
.page-settings .setnav-t3 > li.setnav-t3-group:first-child { padding-top: 4px; }
.page-settings .setnav-t3 > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 1px 0;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.page-settings .setnav-t3 > li > a > i {
    width: 16px;
    flex-shrink: 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}
.page-settings .setnav-t3 > li > a:hover,
.page-settings .setnav-t3 > li > a:focus {
    background: var(--gray-50);
    color: var(--text-primary);
}
.page-settings .setnav-t3 > li.active > a,
.page-settings .setnav-t3 > li.active > a:hover,
.page-settings .setnav-t3 > li.active > a:focus {
    background: var(--primary-blue-lighter);
    color: var(--primary-blue);
    box-shadow: inset 3px 0 0 var(--primary-blue);
}
.page-settings .setnav-t3 > li.active > a > i { color: var(--primary-blue); }
.page-settings .setnav-t3 .setnav-t3-lib {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Select mobile : masqué sur desktop --- */
.page-settings #setnavmobile { display: none; }

/* --- Contenu : alignements sobres (le text-center legacy est retiré côté PHP) --- */
.page-settings .tab-content { text-align: left; }
.page-settings .tab-pane > h2 {
    margin: 4px 0 18px;
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    text-align: left;
    color: var(--text-primary);
}
.page-settings .tab-pane legend {
    display: block;
    float: none;
    width: 100%;
    margin: 26px 0 14px;
    padding: 0 0 8px;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
    color: var(--text-secondary);
    background: transparent;
    border-bottom: 1px solid var(--gray-200);
}
/* Première legend d'un formulaire : pas de marge fantôme au-dessus */
.page-settings .tab-pane form > legend:first-child { margin-top: 0; }
/* ProUI fait "saigner" .form-bordered hors du padding du .block
   (margin -15px) : la 1re legend chevauchait la bordure de la carte.
   En theme3 le formulaire reste DANS le padding du bloc. */
.page-settings .tab-pane .form-bordered { margin: 0; }
.page-settings .tab-pane .form-bordered .form-group { padding-left: 0; padding-right: 0; }
/* Les wrappers historiques centraient tout le formulaire (labels, inputs,
   legends à cheval) : en theme3 le contenu des panes est aligné à gauche */
.page-settings .tab-pane > .row.text-center,
.page-settings .tab-pane .full.row.text-center { text-align: left; }
@media (max-width: 767px) {
    .page-settings .form-horizontal .control-label { text-align: left; }
}

/* --- Mobile : la liste laisse place à un sélecteur sticky --- */
@media (max-width: 991px) {
    .page-settings .setnav-t3-card {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .page-settings .setnav-t3,
    .page-settings .setnav-t3-search { display: none; }
    .page-settings #setnavmobile {
        display: block;
        position: sticky;
        top: calc(var(--header-height) + 8px);
        z-index: 5;
        width: 100%;
        margin-bottom: 14px;
        padding: 10px 12px;
        font-size: 16px; /* évite le zoom iOS + rendu homogène (leçon selects mobiles) */
        font-family: var(--font-sans);
        color: var(--text-primary);
        background: #fff;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
    }
}

/* ==========================================================================
   T3-22 : DASHBOARD ÉPURÉ — table pivot des widgets, compteurs, cartes
   ========================================================================== */

/* --- Table pivot sous les graphiques (dico) : fini les fonds saturés.
       dico.css charge APRÈS le thème à spécificité égale → !important requis --- */
[id^="tbstatpreview"] tr[data-level='1'],
[id^="tbstatpreview"] tr[data-level='2'],
[id^="tbstatpreview"] tr[data-level='3'] {
    background-color: transparent !important;
}
[id^="tbstatpreview"] tr[data-level='99'] td,
[id^="tbstatpreview"] tfoot td {
    background-color: #eaf3fc !important;
    font-weight: var(--font-weight-bold);
    font-size: 13px;
    border-top: 2px solid #bcd8f2 !important;
}
[id^="tbstatpreview"] th {
    border-bottom: 1px solid var(--gray-200);
}
/* Cellules épinglées (sticky) : fond opaque obligatoire au-dessus du scroll */
[id^="tbstatpreview"] tbody td.stat-td-pinned { background-color: #fff !important; }
[id^="tbstatpreview"] tfoot td.stat-td-pinned,
[id^="tbstatpreview"] tr[data-level='99'] td.stat-td-pinned { background-color: #eaf3fc !important; }

/* Pourcentages des lignes : gris ardoise lisible (remplace le rouge inline) */
.stat-pct-t3 {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: var(--font-weight-medium);
}

/* --- Barre de scroll dupliquée (double-scroll) au-dessus des grilles :
       fine et discrète (le thumb global est déjà gris) --- */
.doubleScroll-scroll-wrapper {
    height: 10px;
    overflow-x: auto;
    overflow-y: hidden;
}
.doubleScroll-scroll { height: 1px; }

/* --- Compteurs "Informations globales" : cartes sobres façon wt-modern --- */
.page-dashboard .widget.widget-hover-effect2 {
    background: #fff !important;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: none;
    overflow: hidden;
}
.page-dashboard .widget.widget-hover-effect2:hover {
    background: var(--gray-50) !important;
    border-color: var(--gray-300);
}
.page-dashboard .widget-simple { padding: 14px 16px; }
.page-dashboard .widget-simple .widget-icon {
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 16px;
    border-radius: var(--radius-md);
    background: var(--primary-blue-lighter) !important;
    color: var(--primary-blue) !important;
}
.page-dashboard .widget-simple .widget-icon.themed-background-success {
    background: #d1fae5 !important;
    color: #059669 !important;
}
.page-dashboard .widget-simple .widget-icon.themed-background-danger {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}
.page-dashboard .widget-simple h4 { margin: 0; }
.page-dashboard .widget-simple h4 strong {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}
.page-dashboard .widget-simple h4 small {
    font-size: 12px;
    color: var(--text-muted);
}
.page-dashboard .widget-simple h4.text-success strong,
.page-dashboard .widget-simple h4.text-danger strong { color: var(--text-primary); }

/* --- État vide "Pas de tournées" : propre et centré --- */
.page-dashboard #tbvac td center {
    display: block;
    padding: 28px 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.page-dashboard #tbvac td center::before {
    content: '\f133'; /* fa-calendar */
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
    color: var(--gray-300);
}

/* --- Cartes Google Maps : hauteur adaptée aux petits écrans --- */
@media (max-width: 767px) {
    .page-dashboard #map,
    .page-dashboard #map2 { height: 320px; }
}

/* ==========================================================================
   T3-23 : VUE CARTOGRAPHIQUE (mapoverview.php)
   ========================================================================== */

/* Panneaux de filtres : libellés neutres (le pin conserve la couleur du
   statut, cf. script theme3 en pied de mapoverview.php), en-têtes discrets */
.tboptmapovw tbody label {
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
}
.tboptmapovw tbody label:hover { color: var(--text-primary); }
.tboptmapovw thead th {
    font-size: 11.5px !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--gray-50);
}
.tboptmapovw.table-bordered,
.tboptmapovw.table-bordered > tbody > tr > td,
.tboptmapovw.table-bordered > thead > th {
    border-color: var(--gray-200);
}

/* Chips Distance / Temps estimé : pastel au lieu des pleins saturés */
#infodis3 .label-success {
    background-color: #d1fae5;
    color: #047857;
}
#infodis3 .label-danger {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* ==========================================================================
   T3-24 : BOUTONS D'EN-TÊTE DE BLOC — couleurs pleines et affirmées, sur
   TOUTES les pages (retour user : fonds trop discrets). Les variantes
   .btn-alt (pastel volontaire) sont préservées via :not(.btn-alt).
   ========================================================================== */
.block-title .block-options .btn-sm.btn-primary:not(.btn-alt),
.block-title .block-options .btn-xs.btn-primary:not(.btn-alt) {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}
.block-title .block-options .btn-sm.btn-primary:not(.btn-alt):hover,
.block-title .block-options .btn-xs.btn-primary:not(.btn-alt):hover {
    background: #003d7a;
    border-color: #003d7a;
    color: #fff;
}
.block-title .block-options .btn-sm.btn-warning:not(.btn-alt),
.block-title .block-options .btn-xs.btn-warning:not(.btn-alt) {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}
.block-title .block-options .btn-sm.btn-warning:not(.btn-alt):hover,
.block-title .block-options .btn-xs.btn-warning:not(.btn-alt):hover {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}
.block-title .block-options .btn-sm.btn-success:not(.btn-alt),
.block-title .block-options .btn-xs.btn-success:not(.btn-alt) {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}
.block-title .block-options .btn-sm.btn-success:not(.btn-alt):hover,
.block-title .block-options .btn-xs.btn-success:not(.btn-alt):hover {
    background: #059669;
    border-color: #059669;
    color: #fff;
}
.block-title .block-options .btn-sm.btn-danger:not(.btn-alt),
.block-title .block-options .btn-xs.btn-danger:not(.btn-alt) {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}
.block-title .block-options .btn-sm.btn-danger:not(.btn-alt):hover,
.block-title .block-options .btn-xs.btn-danger:not(.btn-alt):hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}
.block-title .block-options .btn-sm.btn-info:not(.btn-alt),
.block-title .block-options .btn-xs.btn-info:not(.btn-alt) {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}
.block-title .block-options .btn-sm.btn-info:not(.btn-alt):hover,
.block-title .block-options .btn-xs.btn-info:not(.btn-alt):hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}
/* « Lier cette fiche à un groupe WhatsApp » (état non lié = btn-default,
   quasi invisible) : fond teinté WhatsApp bien visible */
.block-title .block-options #btwagrouplink.btn-default {
    background: #e7f8ef;
    border: 1px solid #a7e3c9;
    color: #128C7E;
}
.block-title .block-options #btwagrouplink.btn-default:hover {
    background: #d1f2e1;
    border-color: #7fd6b0;
    color: #0d7a6c;
}

/* ==========================================================================
   T3-23 bis : VUE CARTOGRAPHIQUE — mobile/tablette (la carte ne s'affichait
   pas : bloc en position:absolute inset:0 + chaîne de height:100% inline qui
   s'effondre quand les colonnes col-lg s'empilent sous 1200px)
   ========================================================================== */
@media (max-width: 1199px) {
    .page-mapoverview > .block.full.row {
        position: static !important; /* bat le style inline */
    }
    .page-mapoverview > .block.full.row > div {
        height: auto !important;
        overflow: visible !important;
    }
    .page-mapoverview .col-lg-2,
    .page-mapoverview .col-lg-8 { height: auto !important; }
    /* Colonne filtres : scrollable au-dessus de la carte, sans l'écraser */
    .page-mapoverview > .block.full.row > div > .col-lg-2:first-child {
        max-height: 45vh;
        overflow: auto !important;
    }
    .page-mapoverview #map { height: 62vh !important; }
}

/* ==========================================================================
   T3-19 ter : PLANNING — mobile. La table wrapper (agents 10% / calendrier 90%)
   est inutilisable sous 768px ; la colonne agents s'empile au-dessus et le
   calendrier scrolle horizontalement DANS son .table-responsive (déjà présent
   dans le markup, v2planning.php:1827).
   ========================================================================== */
@media (max-width: 767px) {
    /* Le wrapper .table-responsive de Bootstrap force overflow-y:hidden <768px
       et est trop loin du contenu : on le neutralise, le scroll se fait au
       niveau du td (parent direct du calendrier) */
    .page-planning #calendars .table-responsive {
        overflow: visible;
        border: 0;
        max-width: 100%;
    }
    /* IMPORTANT : enfants DIRECTS du wrapper uniquement — un sélecteur
       descendant («#calendars td») disloquait aussi les tables INTERNES de
       FullCalendar (vue Liste éclatée en 3 lignes, dates rognées) */
    .page-planning #calendars > .table-responsive > table,
    .page-planning #calendars > .table-responsive > table > tbody,
    .page-planning #calendars > .table-responsive > table > tbody > tr {
        display: block;
        width: 100% !important;
    }
    .page-planning #calendars > .table-responsive > table > tbody > tr > td {
        display: block;
        width: 100% !important; /* bat les width:10%/90% inline */
        max-height: none !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Bootstrap force white-space:nowrap sur ces td <768px ; hérité par TOUT
           le calendrier → la vue Liste ne pouvait plus replier son contenu et sa
           table auto débordait du cadre (bord droit rogné) */
        white-space: normal;
    }
    /* La liste occupe l'écran (pas de min-width) ; la vue Jour (timeline) garde
       une largeur lisible et scrolle dans le td ; touch-action garantit le
       panoramique natif même si FullCalendar écoute les événements tactiles */
    .page-planning #calv2ctner {
        min-width: 0;
        touch-action: pan-x pan-y;
    }
    .page-planning #calendars .fc-view[class*="timeline"] { min-width: 640px; }
    .page-planning #cal-general { touch-action: pan-x pan-y; }
    /* Toolbar : le btn-group du type de planning imposait min-width:200px inline */
    .page-planning .block-title .btn-group { min-width: 0 !important; }

    /* ---- Vue Liste (mobile) : habillage theme3 ---- */
    .page-planning .fc-list-view {
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
    }
    /* Pas de scroll imbriqué : la liste prend sa hauteur naturelle et c'est la
       page qui défile */
    .page-planning .fc-list-view .fc-scroller {
        height: auto !important;
        overflow: visible !important;
    }
    /* En-têtes de jour */
    .page-planning .fc-list-heading td {
        background: #f8fafc;
        border-color: #e2e8f0;
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #475569;
    }
    .page-planning .fc-list-heading-alt {
        color: #94a3b8;
        white-space: nowrap;
    }
    /* Lignes RDV : cible tactile confortable */
    .page-planning .fc-list-item td {
        padding: 12px;
        border-color: #f1f5f9;
        font-size: 14px;
        color: #1e293b;
    }
    .page-planning .fc-list-item-time {
        width: 1%;
        white-space: nowrap;
        font-size: 12px;
        color: #64748b;
    }
    .page-planning .fc-list-item-marker .fc-event-dot {
        width: 10px;
        height: 10px;
        border-radius: 5px;
    }
    .page-planning .fc-list-item-title a {
        color: #1e293b;
        font-weight: 500;
    }
    /* Filet : tout contenu insécable (URL, email long…) casse au lieu d'élargir
       la table auto au-delà du conteneur */
    .page-planning .fc-list-item-title { overflow-wrap: anywhere; }
    .page-planning .fc-list-item:active td,
    .page-planning .fc-list-item:hover td { background: #f8fafc; }
    /* État vide */
    .page-planning .fc-list-empty {
        padding: 36px 16px;
        font-size: 13px;
        color: #94a3b8;
        background: #fff;
    }
    /* Liste Agents terrains : compacte, son scroll interne fait le reste */
    .page-planning #plnlistinst { max-height: 150px !important; }
    /* Toolbar FullCalendar compacte */
    .page-planning .fc-toolbar .fc-button {
        padding: 3px 8px;
        font-size: 12px;
        height: auto;
    }
    .page-planning .fc-toolbar h2 { font-size: 15px; }
    .page-planning .fc-toolbar .fc-right { flex-wrap: wrap; }
}

/* ==========================================================================
   T3-25 : CHAT LATÉRAL — fermeture visible. Le panneau (z-index:120, top:0)
   passait SOUS le header fixe (--z-header:1020) : la barre de titre et sa
   croix étaient masquées, et en plein écran mobile le clic-extérieur n'avait
   plus aucune zone accessible → impossible de fermer.
   ========================================================================== */
.jdsidechat { z-index: 1030; }
.jdsidechat .block-title .close {
    order: 100;            /* .block-title theme3 est flex : croix calée à droite */
    margin-left: 8px;
    font-size: 20px;
    opacity: 0.75;
    padding: 6px 12px;
    cursor: pointer;
}
.jdsidechat .block-title .close:hover { opacity: 1; }

/* ==========================================================================
   T3-26 : VUE MOBILE — fil d'ariane fiche client + bloc utilisateur sidebar.
   En fin de fichier exprès : ces media queries surchargent des règles de
   même spécificité définies plus haut (une @media n'ajoute rien à la
   spécificité, seul l'ordre tranche).
   ========================================================================== */

/* Fil d'ariane < 768px : la puce reste entière sur sa ligne, le rappel
   client (nom · adresse · tél) passe en 2e ligne pleine largeur. Le
   « CLIENTS > » est masqué : redondant avec la puce, il volait la place. */
@media (max-width: 767px) {
    html[data-demo-theme='theme3'] .content-header .page-title-t3 {
        flex-wrap: wrap;
        row-gap: 2px;
    }
    html[data-demo-theme='theme3'] .page-title-t3 .page-title-t3-group,
    html[data-demo-theme='theme3'] .page-title-t3 > i {
        display: none;
    }
    html[data-demo-theme='theme3'] .page-title-t3 .page-title-t3-client {
        flex: 1 1 100%;
        margin-left: 2px;
    }
}

/* Sidebar mobile (< 992px = zone où .sidebar-visible-xs #sidebar fait 200px,
   cf. l.163) : .sidebar-content était figé à 250px avec overflow:hidden sur
   le parent → les 50px de droite (icône logout) étaient physiquement rognés.
   On aligne le contenu sur 200px et on compacte le bloc user pour que les
   3 icônes (Profile/Settings/Logout) + le nom tiennent. */
@media (max-width: 991px) {
    .sidebar-content {
        width: 200px;
    }
    .sidebar-section {
        padding: 10px 12px !important; /* le !important de « MODERN SIDEBAR » l'impose */
    }
    /* (le bloc user est en 2 lignes — cf. T3-27 — il tient dans 200px sans
       réduire avatar/icônes) */
}

/* ==========================================================================
   T3-27 : SIDEBAR — brand centré, bloc utilisateur en 2 lignes.
   Ligne 1 : initiales + nom complet (plus de troncature « Ad… ») ;
   ligne 2 : boutons Profil / Réglages / Déconnexion.
   En fin de fichier : bat les !important du bloc « MODERN SIDEBAR ».
   ========================================================================== */
.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: auto;
    line-height: 1.3;
    padding: 18px 16px !important;
    text-align: center;
}
.sidebar-brand i {
    width: auto;
    margin-right: 0;
}
.sidebar-user {
    flex-wrap: wrap;
    row-gap: 10px;
}
.sidebar-user-name {
    flex: 1 1 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.3;
    word-break: break-word;
}
.sidebar-user-links {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 8px;
}
.sidebar-user-links a {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   T3-28 : BOUTONS .btn-xs D'EN-TÊTE DE BLOC (« Nouveau client / prospect »,
   « Importer », « Pour la sélection »… de contacts.php et consorts) — pilule
   arrondie et bordure nette, dans l'esprit des onglets de la fiche client
   (le `border-radius: 3px !important` générique de .btn-xs l'imposait carré).
   Les fonds pleins viennent de T3-24, étendu de .btn-sm à .btn-xs.
   ========================================================================== */
.block-title .block-options .btn-xs {
    border-radius: var(--radius-full) !important;
    padding: 5px 12px !important;
    border-width: 1px;
}

/* ==========================================================================
   T3-29 : STATISTIQUES DU DICO (dicostat.php) — tableaux « Axe de
   regroupement » et « Valeurs ». La règle « Modern tables »
   (.table { overflow:hidden }) rognait le menu ▾ Options de chaque ligne :
   sur la dernière ligne il était invisible (« Conditions sur cette valeur »
   inaccessible). Même cause que T3-11 pour les tableaux en modal.
   ========================================================================== */
#tbvals,
#tbregroup {
    overflow: visible;
}
