/*
 * alldash.css
 * Grille de jauges multi-sites (alldash.php).
 * Chaque box utilise le système de widgets du dashboard (G_boxlist / DisplayBoxes).
 */

/*code changé 2026-05-09 ALLDASH neutraliser html{padding-top:60px} de signup.css*/
html {
    padding-top: 0 !important;
}
/*fin*/

/*code changé 2026-05-10 ALLDASH fond de page #EDECEC pour thème par défaut (sans !important : les thèmes sombres écrasent)*/
body {
    background: #EDECEC;
}
/*fin*/

/* ------------------------------------------------------------------ */
/* HEADER DU WIDGET — flex pour aligner titre + nav + boutons         */
/* ------------------------------------------------------------------ */

/*code changé 2026-05-09 ALLDASH header flex + pas de ligne séparatrice*/
#theboxes .box-header {
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: none;
}
#theboxes .chbox {
    border-bottom: none;
}
#theboxes .box-title-font {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/*fin*/

/*code changé 2026-05-10 ALLDASH curseur sur le titre (lien vers le dashboard du site)*/
#theboxes .box-title-font {
    cursor: pointer;
}
/*fin*/

/* ------------------------------------------------------------------ */
/* NAVIGATION REPTYPE — dans le header du widget (avant .box-buttons) */
/* ------------------------------------------------------------------ */

/*code changé 2026-05-10 ALLDASH nav : badge visuel + couleurs thème*/
.ad-header-nav {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    padding: 1px 2px;
    background: #EDECEC;
}

.ad-btn-prev,
.ad-btn-next {
    border: none;
    background: transparent;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.65);
    font-size: 13px;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 10px;
}

.ad-btn-prev:hover,
.ad-btn-next:hover {
    background: rgba(0, 0, 0, 0.10);
    color: rgba(0, 0, 0, 0.90);
}

#theboxes .ad-rep-title {
    font-size: 13px;
    font-weight: 700 !important;
    color: rgba(0, 0, 0, 0.70);
    white-space: nowrap;
    min-width: 62px;
    text-align: center;
    cursor: pointer;
    padding: 0 3px;
}
#theboxes .ad-rep-title:hover {
    color: rgba(0, 0, 0, 0.90);
    text-decoration: underline;
}
/*fin*/

/* ------------------------------------------------------------------ */
/* BOUTONS CUSTOMIZE / REMOVE — visibles au survol du widget          */
/* ------------------------------------------------------------------ */

/*code changé 2026-05-09 ALLDASH rendre le bouton engrenage visible*/
#theboxes .customize-widget,
#theboxes .remove-widget {
    color: rgba(150, 150, 150, 0.3);
    transition: color 0.2s ease;
}
#theboxes .box_normal:hover .customize-widget,
#theboxes .box_normal:hover .remove-widget {
    color: rgba(80, 80, 80, 0.75);
}
/*fin*/

/* ------------------------------------------------------------------ */
/* CORPS DE BOX — JAUGES                                               */
/* ------------------------------------------------------------------ */

.ad-gauges {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

/* ad-gauge-wrap reçoit width/height en inline style (dynamique) */
.ad-gauge-wrap {
    flex-shrink: 0;
    box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* CORPS DE BOX — MODE NOMBRES                                         */
/* ------------------------------------------------------------------ */

/*code changé 2026-05-10 ALLDASH mode nombres*/
.ad-numbers {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 8px 4px;
    text-align: center;
    box-sizing: border-box;
}

.ad-num-main {
    font-size: clamp(22px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    color: inherit;
}

.ad-num-sub {
    font-size: 11px;
    opacity: 0.65;
    margin-top: 4px;
    white-space: nowrap;
}

.ad-num-trend {
    font-size: 14px;
    font-weight: 600;
    margin-top: 6px;
}

.ad-trend-up   { color: #008000; }
.ad-trend-down { color: #cc0000; }

.ad-num-est {
    font-size: 11px;
    opacity: 0.55;
    margin-top: 4px;
}
/*fin*/

/* ------------------------------------------------------------------ */
/* ICÔNES HEADER — manage + reptype (même style que theme-icon)       */
/* ------------------------------------------------------------------ */

/*code changé 2026-05-10 ALLDASH icônes header alldash — style de base (indépendant du cache de dashboard5.css)*/
#ad-manage-icon,
#ad-reptype-icon,
#ad-gaugestyle-icon {
    display: inline-block;
    margin: 0;
    padding: 0;
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
}

#ad-gaugestyle-icon {
    font-size: 18px;
    line-height: 1;
    opacity: 0.65;
    transition: opacity 0.2s;
}
#ad-gaugestyle-icon:hover { opacity: 1; }
/*fin*/

/* ------------------------------------------------------------------ */
/* MENU DÉROULANT — reptype global                                     */
/* ------------------------------------------------------------------ */

/*code changé 2026-05-10 ALLDASH dropdown reptype*/
#ad-reptype-menu {
    position: absolute;
    z-index: 9999;
    min-width: 130px;
    padding: 4px 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ad-menu-item {
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    color: #333;
}
.ad-menu-item:hover {
    background: rgba(0, 0, 0, 0.06);
}
/*fin*/

/* ------------------------------------------------------------------ */
/* MODAL GESTION DES SITES                                             */
/* ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ */
/* TAGS — modal "Gestion des Sites"                                   */
/* ------------------------------------------------------------------ */

/*code changé 2026-05-10 ALLDASH tags sites dans widgetbox*/
.ad-site-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(128, 128, 128, 0.18);
    border: 1px solid rgba(128, 128, 128, 0.30);
    border-radius: 14px;
    padding: 4px 10px 4px 12px;
    margin: 3px 4px;
    font-size: 12px;
    vertical-align: middle;
    white-space: nowrap;
}

.ad-site-tag-x {
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    opacity: 0.45;
    flex-shrink: 0;
    line-height: 1;
}
.ad-site-tag-x:hover { opacity: 1; }
/*fin*/

/*code changé 2026-05-10 ALLDASH modal sites*/
.ad-manage-list {
    overflow-y: auto;
    max-height: 320px;
    padding: 4px 0;
}

.ad-manage-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.3;
}
.ad-manage-row:hover {
    background: rgba(0, 0, 0, 0.05);
}
.ad-manage-row input[type="checkbox"] {
    flex-shrink: 0;
    cursor: pointer;
}

.ad-manage-btns {
    padding: 10px 16px 4px;
    text-align: center;
}
/*fin*/

/* ------------------------------------------------------------------ */
/* MODAL WIDGET SETTINGS — centrage fixe                              */
/* ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ */
/* ICÔNE MODE DANS LE HEADER (cycle style jauge + texte)             */
/* ------------------------------------------------------------------ */

/*code changé 2026-05-10 ALLDASH ad-mode-icon dans le header*/
.ad-mode-icon {
    cursor: pointer !important;
    font-size: 20px;
    opacity: 0.40;
    transition: opacity 0.2s;
    user-select: none;
    flex-shrink: 0;
    margin: 0 4px;
}

.ad-mode-icon:hover {
    opacity: 0.90;
}
/*fin*/

/*code changé 2026-05-10 ALLDASH centrage fixe #widgetbox (outerHeight=0 sur display:none)*/
#widgetbox {
    position: fixed !important;
    top:  50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}
/*fin*/
