﻿:root {
    --accent: #8F9FBF;
    --color1-loader: #fa9c1f;
    --color2-loader: hsl(212, 77%, 50%);
    --color3-loader: #6e35bd;
    --success: #7dae66;
    --warning: #f1bf41;
    --danger: #d86663;
    --danger-soft: rgba(216, 102, 99, 0.08);
    --neutral-light: #D7D7D9;
    --neutral-mid: #9298A6;
    --gray: #808080;
    --gray-300: hsl(0, 0%, 90%);
    --gray-500: hsl(0, 0%, 50%);
    --primary: #182240;
    --secondary: #4F5B73;
    --text-dark: #182240;
    --text-light: #FFFFFF;
    --text-primary: #182240;
    --text-muted: #6c757d;
    --timeline-icon: hsl(217, 88.2%, 90%);
    --timeline-bg: hsl(217, 88%, 98%);
    --font-family: "Source Sans Pro";
    --border-radius-large: 24px;
    --border-radius-small: calc(var(--border-radius-large) / 2);
    --border-radius-x-small: calc(var(--border-radius-small) / 2);
    --bs-body-font-size: 0.875rem;
    --btn-padding: var(--btn-padding-x) var(--btn-padding-y);
    --btn-padding-x: 0.8rem;
    --btn-padding-y: 1rem;
    --badge-padding: 6px 12px;
    --bg-header: white;
}

body {
    font-family: var(--font-family), sans-serif;
    background-color: var(--rz-menu-background);
    font-size: small;
}

h5, h6{ color: var(--primary) }

.text-primary { color: var(--text-primary) !important }
.text-danger  { color: var(--danger) !important }
.text-warning { color: var(--warning) !important }
.text-success { color: var(--success) !important }
.text-white   { color: white !important }

.border-top-dashed { border-top: 1px dashed hsl(217, 30%, 90%) }

.alert-primary { background: var(--timeline-bg); border: 1px solid #d8e9fb }

::placeholder {
    font-style: italic;
    color: darkgrey !important;
    font-size: smaller;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.flex-baseline {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.flex-center {
    display: flex;
    align-items: center;
}

.input-group > .form-control:focus {
    box-shadow: none;
    border-color: var(--bs-border-color);
}

.row-title {
    font-weight: bold;
    min-height: 40px;
}

.btn-login {
    color: var(--primary);
    padding: var(--btn-padding);
    border-radius: var(--border-radius-large);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
    border: none;
    font-weight: 600;
}

.liste-valeurs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.valeur.lecture-seule {
    padding-right: 10px;
}

.liste-valeurs.compacte {
    margin-top: 0;
}

.valeur {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: var(--primary);
    color: var(--text-light);
    border-radius: var(--border-radius-small);
    padding: 3px 4px 3px 10px;
    font-size: 0.75rem;
}

.valeur .retirer {
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: bold;
    padding: 0 4px;
    line-height: 1;
    cursor: pointer;
}

.valeur .retirer:hover {
    color: var(--warning);
}

.valeur, .valeur-auto {
    box-sizing: border-box;
    height: 1.5rem;
    line-height: 1;
}

.valeur-auto .rzi {
    font-size: 0.85rem;
    width: auto;
    height: auto;
}

.valeur-grise {
    display: inline-block;
    background-color: var(--gray-300);
    color: var(--text-dark);
    border-radius: var(--border-radius-x-small);
    padding: 1px 8px;
    margin: 0 4px 4px 0;
    font-size: 0.7rem;
}

.texte-uri {
    font-size: 0.7rem;
    word-break: break-all;
}

.badge-type {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 2px 10px;
    border-radius: var(--border-radius-small);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-type .rzi {
    font-size: 1rem;
}

.badge-type.interactif { background: #cff4fc; color: #055160; }
.badge-type.robot { background: #e9edf0; color: #3a474d; }
.badge-type.of { background: #fff3cd; color: #664d03; }

.texte-secret {
    font-family: Consolas, monospace;
}

.rz-button.btn-action-modale {
    min-width: 9rem;
}

.grille-sso .rz-grid-table tbody tr.rz-data-row:not(.rz-state-highlight) > td {
    background-color: #ffffff;
}

.grille-sso .rz-grid-table tbody tr.rz-data-row:nth-child(even):not(.rz-state-highlight) > td {
    background-color: #f5f6f8;
}

.grille-sso .rz-grid-table tbody tr.rz-data-row:hover > td {
    background-color: var(--rz-grid-hover-background-color) !important;
    color: var(--rz-grid-hover-color);
}

.rz-label {
    font-size: 0.95rem !important;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.texte-secondaire {
    color: var(--secondary);
}

.actions-ligne {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.4rem;
}

.rz-badge.badge-flux {
    display: inline-flex;
    align-items: center;
    height: var(--rz-input-height, 2.25rem);
    margin-top: 1px;
    padding: 0 0.9rem;
    font-size: 1rem !important;
}
