@import url("theme.css");

#conteneur_aside {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: 18px auto 1fr;
    min-height: 62px;
    max-height: 68px;
    margin: 5px 0 3px;
    overflow: hidden;
    border: 1px solid var(--np-border);
    background: var(--np-surface);
    box-shadow: var(--np-shadow);
}

#titre_aside {
    grid-column: 1 / -1;
    min-height: 18px;
    padding: 0 5px;
    background: var(--np-heading-accent);
    color: var(--np-heading-text);
    text-align: center;
    font-size: 13px;
    line-height: 18px;
}

#logo_aside {
    grid-row: 2 / 4;
    width: 40px;
    height: 40px;
    margin: 4px;
    border: 1px solid var(--np-border);
    background: var(--np-panel);
}

#info_aside,
#contenu_aside {
    min-width: 0;
    margin: 0;
    padding: 1px 5px 0 0;
    overflow: hidden;
    color: var(--np-text);
    font-size: 12px;
    line-height: 14px;
}

#contenu_aside p {
    margin: 0;
}

.flextest {
    display: flex;
    flex-flow: row wrap;
    gap: 5px;
}

#descriptif_rapport_asside p {
    margin: 0;
    font-size: 12px;
    line-height: 12px;
    overflow-wrap: anywhere;
}

/* Cartes Aside communes : Info, Production et Développement ---------------- */
.aside-edit-form {
    display: contents;
}

.aside-card-link {
    display: block;
    margin: 5px 0 8px;
    color: inherit;
    text-decoration: none;
}

.aside-card {
    position: relative;
    width: 100%;
    height: 80px;
    min-height: 80px;
    max-height: 80px;
    overflow: hidden;
    border: 1px solid var(--np-border);
    background: var(--np-surface);
    box-shadow: var(--np-shadow);
    box-sizing: border-box;
}

.aside-card-title {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 18px;
    margin: 0;
    padding: 0 5px;
    overflow: hidden;
    background: var(--np-heading-accent);
    color: var(--np-heading-text);
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    line-height: 18px;
    box-sizing: border-box;
}

.aside-card-visual {
    position: absolute;
    top: 18px;
    bottom: 0;
    left: 0;
    display: flex;
    width: 62px;
    margin: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--np-border);
    background: var(--np-panel);
    font-weight: 700;
    box-sizing: border-box;
}

.aside-card-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.aside-card-description {
    position: absolute;
    top: 18px;
    right: 0;
    bottom: 12px;
    left: 62px;
    margin: 0;
    padding: 2px 5px;
    overflow: hidden;
    color: var(--np-text);
    font-size: 11px;
    line-height: 15px;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.aside-card-meta {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 62px;
    display: flex;
    height: 12px;
    margin: 0;
    padding: 0 5px;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    overflow: hidden;
    color: var(--np-text-muted, var(--np-text));
    font-size: 10px;
    line-height: 12px;
    white-space: nowrap;
    box-sizing: border-box;
}

.aside-card-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aside-card-link:hover .aside-card {
    border-color: var(--np-accent);
}

.aside-card-empty {
    padding: 8px;
    color: var(--np-text);
    font-size: 12px;
}
