﻿/* ─────────────────────────────────────────────────────────
   Habillage commun des pages « liste + grille + panneau »
   (Licences, AdminModeles, ModelesDimpression, futures pages)
   ───────────────────────────────────────────────────────── */

.hw-page-root {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hw-toolbar {
    padding: 0.5rem;
    margin-bottom: 1rem;
}

    .hw-toolbar .custom-item {
        display: flex;
        align-items: center;
        margin: 0 0.5rem;
    }

.hw-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: break-word;
    background-color: var(--dxds-color-surface-neutral-default-rest);
    background-clip: border-box;
    border: var(--dxds-border-radius-10) solid var(--dxds-color-border-neutral-default-rest);
    border-radius: var(--dxds-border-radius-40);
}

.hw-liste-zone {
    flex-grow: 1;
    height: 90%;
}

.hw-w-100 {
    width: 100%;
}

.hw-h-100 {
    height: 100%;
}

.hw-search-item {
    max-width: 12.5rem;
}

.hw-standalone-btn {
    --dxbl-btn-padding-x: 0.5em;
}

.hw-grille {
    max-height: 100%;
    border-radius: var(--dxds-border-radius-40);
}

.hw-grille-loading {
    height: 100%;
}

.hw-panneau-drawer {
    --dxbl-drawer-panel-body-padding-x: 1.5rem;
    --dxbl-drawer-panel-header-padding-x: 1.5rem;
    --dxbl-drawer-separator-border-style: none;
}

.hw-details-header {
    display: flex;
    flex-shrink: 0;
    justify-content: space-between;
}

.hw-details-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hw-details {
    width: 100%;
}

.hw-sub-item {
    font-size: 0.8em;
}
.hw-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: var(--dxds-border-radius-40);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.hw-badge-success {
    color: var(--dxds-color-content-success-default-rest);
    background-color: var(--hw-orange-lt);
}

.hw-badge-danger {
    color: var(--dxds-color-content-danger-default-rest);
    background-color: var(--hw-orange-lt);
}