/**
 * openSUSE Leap 15.6 — bureau Plasma 5.27 (thème Plasma « openSUSE », Breeze,
 * BreezeClassic), relevé VM 1209 (2026-10-15, capture QMP 1280 × 800).
 *
 *   · fond « Azul-openSUSE » 1920 × 1200 (openSUSEdefault) ;
 *   · panneau bord à bord de 44 px (filet clair #dfe3e4 puis #cfd5d8) :
 *     Kickoff (32 px, x 6), sélecteur de bureaux (2 × 27 × 17 px, x 44),
 *     tâches-icônes au pas de 52 px (x 75), zone de notification (icônes
 *     16 px au pas de 30), horloge sur deux lignes, Afficher le bureau ;
 *   · bureau : Corbeille, Dossier personnel (Breeze 64 px, cellules de 116 px).
 * Chargée après les feuilles du skin : remplace le panneau flottant Plasma 6.
 */
html:has(#opensuse) {
    --leap-panel-h: 44px;
    --leap-panel-bg: #cfd5d8;
    --leap-panel-line: #dfe3e4;
    --leap-text: #232629;
    --opensuse-panel-dock-inset: 0px;
    --taskbar-height: var(--leap-panel-h);
}

#opensuse {
    --taskbar-height: var(--leap-panel-h);
    --opensuse-panel-anchor-bottom: var(--leap-panel-h);
    background-color: #193f4f;
    background-image: url("../../../../usr/share/capsuleos/assets/images/vendors/opensuse/leap156/wallpaper-azul-1920x1200.webp");
    background-size: cover;
    background-position: center;
    font-family: "Noto Sans", sans-serif;
}

#opensuse #tableau,
#opensuse[data-plasma-panel="expanded"] #tableau {
    position: fixed;
    display: flex;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: var(--leap-panel-h);
    margin: 0;
    padding: 0;
    border: 0;
    padding-bottom: 1px;
    border-top: 1px solid var(--leap-panel-line);
    border-radius: 0;
    background: var(--leap-panel-bg);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
    align-items: stretch;
    z-index: 9000;
    box-sizing: border-box;
}

#opensuse footer .taskbar-pins {
    display: flex;
    height: 100%;
    gap: 0;
    align-items: center;
    flex: 1 1 auto;
}

/* Kickoff : icône start-here-kde du thème Plasma openSUSE (32 px en x 6). */
#opensuse footer .taskbar-pins__launcher {
    width: 44px;
    height: 43px;
    margin: 0;
    border: 0;
    border-radius: 0;
}

#opensuse footer .taskbar-pins__launcher > img {
    width: 32px;
    height: 32px;
    margin-left: 0;
    opacity: 1;
    filter: none;
}

/* Sélecteur de bureaux : deux bureaux empilés, l'actif en bleu Breeze. */
#opensuse footer .plasma-pager {
    display: flex;
    width: 27px;
    height: 35px;
    margin: 3px 4px 0 0;
    flex-direction: column;
    align-self: flex-start;
    gap: 1px;
    flex: 0 0 auto;
}

#opensuse footer .plasma-pager__desk {
    height: 17px;
    background: #bdc4c7;
}

#opensuse footer .plasma-pager__desk.is-current {
    background: #77bee2;
}

/* Gestionnaire de tâches (icônes seules) : boutons de 52 px, icônes 32 px. */
#opensuse footer .taskbar-pins__apps--tasks {
    display: flex;
    height: 100%;
    margin-left: 1px;
    gap: 0;
    align-items: stretch;
}

#opensuse footer .taskbar-pins__apps--tasks > a {
    display: flex;
    width: 52px;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
}

#opensuse footer .taskbar-pins__apps--tasks > a > img {
    width: 32px;
    height: 32px;
}

#opensuse footer .taskbar-pins__apps--tasks > a:hover {
    background: rgb(61 174 233 / 0.2);
}

#opensuse footer .taskbar-pins__apps--tasks > a.active-link,
#opensuse footer .taskbar-pins__apps--tasks > a.running-link {
    background: transparent;
    box-shadow: inset 0 -3px 0 #3daee9;
}

/* Zone de notification : seuls Mises à jour, Réseau, Volume et ^ sont visibles
   (les autres applets sont dans la fenêtre « Statut et notifications »). */
#opensuse footer .taskbar-right {
    display: flex;
    height: 100%;
    padding: 0;
    gap: 0;
    align-items: center;
}

#opensuse footer .taskbar-tray {
    display: flex;
    height: 100%;
    padding: 0;
    gap: 0;
    align-items: center;
}

#opensuse footer #tray-btn-notifications,
#opensuse footer #tray-btn-clipboard,
#opensuse footer #tray-btn-brightness {
    display: none;
}

#opensuse footer .taskbar-tray__btn {
    display: flex;
    width: 30px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
}

#opensuse footer .taskbar-tray__btn > img,
#opensuse footer .taskbar-tray__btn > .taskbar-tray__icon {
    width: 22px;
    height: 22px;
    opacity: 1;
    filter: none;
}

#opensuse footer .taskbar-tray__btn--expand {
    width: 26px;
}

#opensuse footer .taskbar-tray__btn--expand > img {
    width: 16px;
    height: 16px;
}

/* Horloge numérique : heure et date sur deux lignes (Noto Sans). */
#opensuse footer .taskbar-clock-trigger {
    display: flex;
    width: auto;
    min-width: 72px;
    height: 100%;
    margin: 0;
    padding: 2px 4px 0;
    border: 0;
    color: var(--leap-text);
    background: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

#opensuse footer .taskbar-clock-trigger > .taskbar__clock {
    font: 400 15.7px/1 "Noto Sans", sans-serif;
    color: var(--leap-text);
}

#opensuse footer .taskbar-clock-trigger > .taskbar__date {
    font: 400 13px/1 "Noto Sans", sans-serif;
    color: var(--leap-text);
    letter-spacing: 0.3px;
}

/* Afficher le bureau (user-desktop 16 px). */
#opensuse footer .taskbar-show-desktop {
    display: flex;
    width: 38px;
    height: 100%;
    margin: 0 0 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
}

#opensuse footer .taskbar-show-desktop > img {
    width: 22px;
    height: 22px;
    filter: none;
}

/* Bureau : grille de cellules 116 px, icône Breeze 64 px à 7 px du haut. */
#opensuse #desktop > .desktop-shortcut {
    display: flex;
    width: 116px;
    margin: 0;
    padding: 7px 0 0;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

#opensuse #desktop > .desktop-shortcut > img {
    width: 64px;
    height: 64px;
}

#opensuse #desktop > .desktop-shortcut > span {
    max-width: 104px;
    font: 400 13.3333px/1.3 "Noto Sans", sans-serif;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.8);
}

/* Positions mesurées : tray 1039 / 1069 / 1099 / ^ 1129, horloge, Afficher le
   bureau à 1246 (16 px). Pas de pastille : l'état est porté par l'icône. */
#opensuse footer .taskbar-tray {
    margin-right: 1px;
}

#opensuse footer .taskbar-show-desktop {
    margin: 0 7px 0 8px;
}

#opensuse footer .taskbar-tray__btn--updates::after,
#opensuse footer .taskbar-tray__btn--updates::before {
    display: none;
}

/* plasma5-pk-updates : l'icône porte l'état (update-none / -low / -medium /
   -high). Une fois PackageKit interrogé, la VM affiche update-high (17 mises à
   jour dont des correctifs de sécurité) : même état que Discover dans le clone. */
#opensuse footer .taskbar-tray__btn--updates[data-has-updates="true"] > img {
    content: url("../../../../usr/share/capsuleos/assets/images/vendors/opensuse/leap156/tray/update-high.svg");
}

/* Vue Dossier du bureau : une rangée en haut à gauche (Corbeille, Dossier
   personnel, puis les raccourcis propres au clone). */
#opensuse #desktop > a.desktop-shortcut {
    position: absolute;
    top: 0;
    left: 0;
}

#opensuse #desktop > a.desktop-shortcut:nth-of-type(2) {
    left: 116px;
}

#opensuse #desktop > a.desktop-shortcut:nth-of-type(3) {
    left: 232px;
}

#opensuse #desktop > a.desktop-shortcut:nth-of-type(4) {
    left: 348px;
}

#opensuse #desktop > a.desktop-shortcut:nth-of-type(5) {
    left: 464px;
}

/* Dolphin restauré : 762 × 564 (contour compris), centré (relevé VM).
   Lu sur :root par windowContainer.js. */
html:has(#opensuse) {
    --win-nemo-width: 762px;
    --win-nemo-height: 564px;
    /* Konsole 23.08 : 800 × 468 de contenu (konsolerc) + barre 28 + contour. */
    --win-terminal-width: 802px;
    --win-terminal-height: 498px;
    /* Kate 23.08 : 800 × 533 de contenu (katerc) + barre 28 + contour. */
    --win-text_editor-width: 802px;
    --win-text_editor-height: 563px;
    /* Discover 5.27 : 936 × 684 de contenu + barre 28 + contour. */
    --win-update_manager-width: 938px;
    --win-update_manager-height: 714px;
    /* Configuration du système 5.27 : 1020 × 680 de contenu + barre 28 + contour. */
    --win-themes-width: 1022px;
    --win-themes-height: 710px;
    /* Paramètres Dossier du bureau (Plasma 5.27) : 720 × 539 de contenu + barre 29 + contour. */
    --win-plasma_desktop_config-width: 722px;
    --win-plasma_desktop_config-height: 570px;
}

/* Tâches (Plasma 5.27, VM) : tâche active = fond #8cc2e0 sur toute la hauteur
   et liseré #4eb3e9 de 3 px en haut ; en cours non active = liseré seul. */
#opensuse footer .taskbar-pins__apps--tasks > a.plasma-task--transient {
    display: flex;
    width: 50px;
    height: 100%;
    margin: 0 0 0 1px;
    align-items: center;
    justify-content: center;
}

#opensuse footer .taskbar-pins__apps--tasks > a.plasma-task--transient > img {
    width: 32px;
    height: 32px;
}

#opensuse footer .taskbar-pins__apps--tasks > a.running-link {
    background: transparent;
    box-shadow: inset 0 3px 0 rgb(78 179 233 / 0.6);
}

#opensuse footer .taskbar-pins__apps--tasks > a.active-link {
    background: #8cc2e0;
    box-shadow: inset 0 3px 0 #4eb3e9;
}
