:root {
    --pgc-ink: #10231c;
    --pgc-ink-soft: #2a4036;
    --pgc-mint: #0f8f6b;
    --pgc-mint-deep: #0a6b50;
    --pgc-mint-glow: rgba(15, 143, 107, 0.18);
    --pgc-sand: #e8f0eb;
    --pgc-paper: rgba(255, 255, 255, 0.78);
    --pgc-paper-solid: #f4f8f5;
    --pgc-line: rgba(16, 35, 28, 0.1);
    --pgc-danger: #b42318;
    --pgc-warn: #b54708;
    --pgc-radius: 18px;
    --pgc-shadow: 0 18px 50px rgba(16, 35, 28, 0.1);
    --pgc-font: "Manrope", system-ui, sans-serif;
    --pgc-display: "Newsreader", Georgia, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

.pgc-body {
    margin: 0;
    font-family: var(--pgc-font);
    color: var(--pgc-ink);
    background: #d9e6df;
    position: relative;
}

.pgc-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 500px at 8% -10%, rgba(15, 143, 107, 0.28), transparent 60%),
        radial-gradient(700px 420px at 92% 8%, rgba(16, 35, 28, 0.16), transparent 55%),
        linear-gradient(160deg, #e7f1eb 0%, #d5e4dc 45%, #c9dbd2 100%);
}

.pgc-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(16, 35, 28, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 35, 28, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.pgc-main {
    position: relative;
    z-index: 1;
}

/* Les modales doivent vivre hors de .pgc-main (sinon backdrop body > modal piégée). */
body > .modal {
    z-index: 1060;
}

body > .modal-backdrop {
    z-index: 1055;
}

.pgc-chrome-sticky {
    position: sticky;
    top: 0;
    z-index: 1040;
    width: 100%;
}

.pgc-topbar {
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
    backdrop-filter: blur(14px);
    background: rgba(16, 35, 28, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    animation: pgc-fade-down 0.45s ease both;
}

/* Bandeau tâche maintenance en cours (sous la topbar) */
.pgc-task-banner {
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, #b54708 0%, #c2410c 45%, #9a3412 100%);
    color: #fff7ed;
    border-bottom: 1px solid rgba(255, 247, 237, 0.25);
    box-shadow: 0 6px 18px rgba(154, 52, 18, 0.28);
    animation: pgc-task-banner-flash 1.1s ease-in-out infinite;
}

.pgc-task-banner[hidden] {
    display: none !important;
}

.pgc-task-banner__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1.25rem;
    max-width: none;
}

.pgc-task-banner__pulse {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #fff7ed;
    box-shadow: 0 0 0 0 rgba(255, 247, 237, 0.7);
    flex-shrink: 0;
    animation: pgc-task-pulse 1.1s ease-out infinite;
}

.pgc-task-banner__text {
    flex: 1 1 auto;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.pgc-task-banner__close {
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    border: 1px solid rgba(255, 247, 237, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff7ed;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}

.pgc-task-banner__close:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.24);
    transform: scale(1.05);
}

.pgc-task-banner__close:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@keyframes pgc-task-banner-flash {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.18);
    }
}

@keyframes pgc-task-pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 247, 237, 0.65);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 247, 237, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 247, 237, 0);
    }
}

.pgc-topbar__inner {
    max-width: none;
    margin: 0;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.pgc-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #fff;
    flex-wrap: wrap;
}

.pgc-brand__icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.pgc-brand__title {
    font-family: "Lucida Handwriting", "Segoe Script", cursive;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: #fff;
}

.pgc-brand__version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.28rem 0.45rem;
    border-radius: 0.35rem;
    background: #f8fafc;
    color: #0a6b50;
    margin-left: 0.15rem;
}

.pgc-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.pgc-nav-icon {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.pgc-nav-icon:hover,
.pgc-nav-icon.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.pgc-nav-icon--danger:hover {
    background: rgba(220, 38, 38, 0.28);
    border-color: rgba(248, 113, 113, 0.55);
}

/* Anciens liens texte (pages secondaires éventuelles) */
.pgc-nav__link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.pgc-nav__link:hover,
.pgc-nav__link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.pgc-nav__logout:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.pgc-main {
    max-width: none;
    margin: 0;
    width: 100%;
    padding: 1.75rem 1.5rem 3.5rem;
    animation: pgc-fade-up 0.5s ease both;
}

.pgc-main--login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    max-width: none;
    padding: 2rem 1rem;
}

.pgc-flashes {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.pgc-flash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--pgc-line);
    background: var(--pgc-paper);
    backdrop-filter: blur(8px);
    box-shadow: var(--pgc-shadow);
}

.pgc-flash--success {
    border-color: rgba(15, 143, 107, 0.35);
    background: rgba(220, 245, 235, 0.9);
}

.pgc-flash--danger {
    border-color: rgba(180, 35, 24, 0.3);
    background: rgba(255, 235, 232, 0.92);
}

.pgc-flash--warning {
    border-color: rgba(181, 71, 8, 0.3);
    background: rgba(255, 244, 230, 0.92);
}

.pgc-flash__close {
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.55;
    cursor: pointer;
}

.pgc-page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.pgc-page-head h1 {
    margin: 0;
    font-family: var(--pgc-display);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.pgc-page-head p {
    margin: 0.35rem 0 0;
    color: var(--pgc-ink-soft);
    max-width: 36rem;
}

.pgc-panel {
    background: var(--pgc-paper);
    border: 1px solid var(--pgc-line);
    border-radius: var(--pgc-radius);
    box-shadow: var(--pgc-shadow);
    backdrop-filter: blur(10px);
    overflow: hidden;
    margin-bottom: 1.25rem;
    animation: pgc-rise 0.55s ease both;
}

.pgc-panel:nth-of-type(2) {
    animation-delay: 0.06s;
}

.pgc-panel:nth-of-type(3) {
    animation-delay: 0.12s;
}

.pgc-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--pgc-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2));
}

.pgc-panel__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pgc-panel__body {
    padding: 1.15rem;
}

.pgc-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.pgc-table th,
.pgc-table td {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--pgc-line);
    vertical-align: middle;
}

.pgc-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pgc-ink-soft);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.35);
}

.pgc-table tbody tr {
    transition: background 0.18s ease;
}

.pgc-table tbody tr:hover {
    background: rgba(15, 143, 107, 0.06);
}

.pgc-table tbody tr:last-child td {
    border-bottom: 0;
}

.pgc-table code,
.pgc-mono {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.86em;
    font-weight: 600;
    color: var(--pgc-ink);
    background: rgba(16, 35, 28, 0.08);
    padding: 0.12rem 0.4rem;
    border-radius: 0.4rem;
}

/* Tableau postes pharmacie : colonnes techniques toujours visibles */
.pgc-table--postes {
    min-width: 56rem;
}

.pgc-table--postes .pgc-col-version,
.pgc-table--postes .pgc-col-seq,
.pgc-table--postes .pgc-col-ip {
    white-space: nowrap;
}

.pgc-table--postes .pgc-col-version {
    min-width: 4.5rem;
}

.pgc-table--postes .pgc-col-seq {
    min-width: 3.5rem;
}

.pgc-table--postes .pgc-col-ip {
    min-width: 7.5rem;
}

.pgc-muted {
    color: var(--pgc-ink-soft);
}

.pgc-empty {
    text-align: center;
    color: var(--pgc-ink-soft);
    padding: 2rem 1rem !important;
}

.pgc-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pgc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.45rem 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pgc-btn:hover {
    transform: translateY(-1px);
}

.pgc-btn--primary {
    background: linear-gradient(145deg, var(--pgc-mint), var(--pgc-mint-deep));
    color: #fff;
    box-shadow: 0 10px 24px var(--pgc-mint-glow);
}

.pgc-btn--primary:hover {
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 143, 107, 0.28);
}

.pgc-btn--ghost {
    background: rgba(255, 255, 255, 0.65);
    border-color: var(--pgc-line);
    color: var(--pgc-ink);
}

.pgc-btn--ghost:hover {
    background: #fff;
    color: var(--pgc-ink);
}

.pgc-btn--danger {
    background: rgba(180, 35, 24, 0.08);
    border-color: rgba(180, 35, 24, 0.25);
    color: var(--pgc-danger);
}

.pgc-btn--warn {
    background: rgba(181, 71, 8, 0.1);
    border-color: rgba(181, 71, 8, 0.28);
    color: var(--pgc-warn);
}

.pgc-btn--sm {
    font-size: 0.8rem;
    padding: 0.32rem 0.75rem;
}

.pgc-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(181, 71, 8, 0.12);
    color: var(--pgc-warn);
}

.pgc-poste-login-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 143, 107, 0.35);
}

.pgc-poste-login-link:hover,
.pgc-poste-login-link:focus-visible {
    color: var(--pgc-mint-deep);
    border-bottom-color: var(--pgc-mint);
    outline: none;
}

.pgc-presence {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    margin-right: 0.45rem;
    vertical-align: 0.05em;
    flex-shrink: 0;
}

.pgc-presence--on,
.pgc-presence--green {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.22);
}

.pgc-presence--yellow,
.pgc-presence--orange {
    background: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.28);
}

.pgc-presence--off,
.pgc-presence--red {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22);
}

.pgc-presence--ban {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22);
}

.pgc-channel-pills {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin-right: 0.4rem;
    vertical-align: middle;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.pgc-conn-pill {
    position: relative;
    display: inline-block;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(16, 35, 28, 0.12);
    cursor: help;
    pointer-events: auto;
}

.pgc-conn-pill[data-pgc-tip]::after {
    content: attr(data-pgc-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.45rem);
    transform: translateX(-50%) translateY(0.15rem);
    min-width: max-content;
    max-width: 16rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.4rem;
    background: rgba(16, 35, 28, 0.94);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(16, 35, 28, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
    z-index: 30;
}

.pgc-conn-pill[data-pgc-tip]::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.2rem);
    transform: translateX(-50%);
    border: 0.28rem solid transparent;
    border-top-color: rgba(16, 35, 28, 0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, visibility 0.12s ease;
    z-index: 30;
}

.pgc-conn-pill[data-pgc-tip]:hover::after,
.pgc-conn-pill[data-pgc-tip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.pgc-conn-pill[data-pgc-tip]:hover::before,
.pgc-conn-pill[data-pgc-tip]:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.pgc-conn-pill--green {
    background: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.22);
}

.pgc-conn-pill--orange {
    background: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.25);
}

.pgc-conn-pill--red {
    background: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.22);
}

.pgc-conn-pill--grey {
    background: #94a3b8;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.25);
}

.pgc-page-head__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
}

.pgc-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.9rem;
}

.pgc-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 9.5rem;
    padding: 1rem 1.05rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--pgc-line);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(16, 35, 28, 0.06);
}

.pgc-tile--on,
.pgc-tile--green {
    background: linear-gradient(165deg, rgba(22, 163, 74, 0.22), rgba(22, 163, 74, 0.08));
    border-color: rgba(22, 163, 74, 0.35);
}

.pgc-tile--yellow,
.pgc-tile--orange {
    background: linear-gradient(165deg, rgba(234, 88, 12, 0.28), rgba(234, 88, 12, 0.1));
    border-color: rgba(194, 65, 12, 0.45);
}

.pgc-tile--off,
.pgc-tile--red {
    background: linear-gradient(165deg, rgba(220, 38, 38, 0.2), rgba(220, 38, 38, 0.07));
    border-color: rgba(220, 38, 38, 0.32);
}

.pgc-tile--ban {
    background: linear-gradient(165deg, rgba(220, 38, 38, 0.22), rgba(220, 38, 38, 0.08));
    border-color: rgba(220, 38, 38, 0.35);
}

.pgc-tile--pharmacy {
    background: rgba(255, 255, 255, 0.9);
}

.pgc-tile--clickable {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.pgc-tile--clickable:hover {
    border-color: rgba(15, 143, 107, 0.45);
    box-shadow: 0 12px 28px rgba(16, 35, 28, 0.1);
    transform: translateY(-1px);
}

.pgc-tile__hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-decoration: none;
}

.pgc-tile__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--pgc-ink);
    word-break: break-word;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem 0.25rem;
}

.pgc-tile__sep {
    margin: 0 0.2rem;
    opacity: 0.45;
    font-weight: 600;
}

.pgc-tile__meta {
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.pgc-tile__meta > div {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 0.4rem;
    align-items: baseline;
    font-size: 0.84rem;
}

.pgc-tile__meta dt {
    margin: 0;
    color: var(--pgc-ink-soft);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pgc-tile__meta dd {
    margin: 0;
    color: var(--pgc-ink);
    font-weight: 600;
}

.pgc-tile__actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    position: relative;
    z-index: 2;
}

.pgc-tile-pending-badge {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 3;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(16, 35, 28, 0.14);
    pointer-events: none;
}

.pgc-tile-pending-badge--green {
    background: #16a34a;
}

.pgc-tile-pending-badge--orange {
    background: #ea580c;
}

.pgc-tile-pending-badge--red {
    background: #dc2626;
}

.pgc-icon-btn {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid var(--pgc-line);
    background: #fff;
    color: var(--pgc-ink);
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pgc-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(16, 35, 28, 0.1);
    color: var(--pgc-ink);
    background: #fff;
}

.pgc-icon-btn--danger {
    background: #dc2626;
    border-color: #b91c1c;
    color: #fff;
}

.pgc-icon-btn--danger:hover {
    background: #b91c1c;
    color: #fff;
}

.pgc-badge--danger {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
    margin-left: 0.35rem;
}


.pgc-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.pgc-stat {
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--pgc-line);
}

.pgc-stat__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pgc-ink-soft);
    margin-bottom: 0.25rem;
}

.pgc-stat__value {
    font-family: var(--pgc-display);
    font-size: 1.35rem;
    font-weight: 600;
}

.pgc-login {
    width: min(420px, 100%);
    animation: pgc-rise 0.6s ease both;
}

.pgc-login__brand {
    text-align: center;
    margin-bottom: 1.35rem;
    color: var(--pgc-ink);
}

.pgc-login__brand-name {
    display: block;
    font-family: var(--pgc-display);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.pgc-login__brand-sub {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pgc-ink-soft);
}

.pgc-login__card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--pgc-line);
    border-radius: 24px;
    padding: 1.6rem 1.5rem 1.4rem;
    box-shadow: var(--pgc-shadow);
    backdrop-filter: blur(14px);
}

.pgc-login__card h1 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.pgc-login__card p {
    margin: 0 0 1.15rem;
    color: var(--pgc-ink-soft);
    font-size: 0.92rem;
}

.pgc-portal {
    width: min(440px, 100%);
    margin: 0 auto;
    padding: 2.5rem 1rem 3rem;
    animation: pgc-rise 0.6s ease both;
}

.pgc-portal__card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--pgc-line);
    border-radius: 28px;
    padding: 2rem 1.75rem 1.65rem;
    box-shadow: var(--pgc-shadow);
    backdrop-filter: blur(14px);
}

.pgc-portal__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.pgc-portal__logo {
    width: 4.25rem;
    height: 4.25rem;
    object-fit: contain;
    flex: 0 0 auto;
}

.pgc-portal__brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.pgc-portal__title {
    font-family: var(--pgc-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--pgc-ink);
}

.pgc-portal__subtitle {
    font-size: 0.88rem;
    color: var(--pgc-ink-soft);
}

.pgc-portal__hint {
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
    color: var(--pgc-ink-soft);
}

.pgc-portal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.pgc-portal__actions--split .pgc-btn {
    flex: 1 1 8rem;
}

.pgc-forbidden {
    width: min(480px, 100%);
    margin: 0 auto;
    padding: 3rem 1rem;
    animation: pgc-rise 0.6s ease both;
}

.pgc-forbidden__card {
    text-align: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--pgc-line);
    border-radius: 28px;
    padding: 2.25rem 1.75rem 1.85rem;
    box-shadow: var(--pgc-shadow);
}

.pgc-forbidden__logo {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    margin-bottom: 0.85rem;
}

.pgc-forbidden__icon {
    font-size: 2.2rem;
    color: var(--pgc-mint-deep);
    margin-bottom: 0.55rem;
}

.pgc-forbidden__title {
    margin: 0 0 0.55rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.pgc-forbidden__message {
    margin: 0 0 1.35rem;
    color: var(--pgc-ink-soft);
    font-size: 0.98rem;
    line-height: 1.45;
}

.pgc-field {
    margin-bottom: 1rem;
}

.pgc-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.pgc-field input,
.pgc-field select,
.pgc-field textarea,
.pgc-input {
    width: 100%;
    border: 1px solid var(--pgc-line);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    font: inherit;
    background: rgba(255, 255, 255, 0.9);
    color: var(--pgc-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pgc-field input:focus,
.pgc-field select:focus,
.pgc-field textarea:focus,
.pgc-input:focus {
    outline: none;
    border-color: rgba(15, 143, 107, 0.55);
    box-shadow: 0 0 0 4px var(--pgc-mint-glow);
}

.pgc-field__hint {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--pgc-ink-soft);
}

.pgc-alert {
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.pgc-alert--danger {
    background: rgba(255, 235, 232, 0.95);
    border: 1px solid rgba(180, 35, 24, 0.25);
    color: var(--pgc-danger);
}

.pgc-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--pgc-ink-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pgc-back:hover {
    color: var(--pgc-mint-deep);
}

.pgc-danger-zone {
    border-color: rgba(180, 35, 24, 0.28);
}

.pgc-danger-zone .pgc-panel__head {
    color: var(--pgc-danger);
}

.pgc-admin-params .pg-framed-panel {
    overflow: visible;
}

.pg-channel-fields--locked {
    opacity: 0.55;
}

.pg-channel-fields--locked .form-control,
.pg-channel-fields--locked .form-select,
.pg-channel-fields--locked .btn {
    cursor: not-allowed;
}

.pgc-modal .modal-header,
.pgc-modal .modal-footer {
    border-color: var(--pgc-line);
    background: rgba(244, 248, 245, 0.9);
}

.pgc-modal .modal-title {
    font-family: var(--pgc-display);
    font-weight: 600;
}

.pgc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.pgc-status-badge--ok {
    color: #0f5c3a;
    background: rgba(46, 160, 110, 0.16);
}

.pgc-status-badge--ko {
    color: #8a1f16;
    background: rgba(180, 35, 24, 0.14);
}

.pgc-status-list {
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.pgc-status-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}

.pgc-status-list dt {
    margin: 0;
    color: var(--pgc-muted, #6a7a70);
    font-size: 0.82rem;
    font-weight: 500;
}

.pgc-status-list dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

@keyframes pgc-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pgc-fade-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pgc-rise {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Ne plus masquer de colonnes du tableau postes (Version / Seq / IP). */
