/* ==========================================================================
   Portail technicien NetDiag — feuille de style indépendante.
   Aucun token/classe partagé avec assets/css/style.css (site public) ni
   avec admin/assets/css/admin.css (panneau admin) — palette volontairement
   différente des deux pour rester visuellement distincte.
   ========================================================================== */

:root {
    --tech-bg: #F6F8F7;
    --tech-accent: #0E8F6B;
    --tech-accent-dark: #0A6B50;
    --tech-text: #17261F;
    --tech-text-muted: #52645A;
    --tech-border: #D6E2DB;
    --tech-danger: #C0392B;
    --tech-danger-bg: #FBEAEA;
    --tech-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --tech-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--tech-font);
    color: var(--tech-text);
    background: var(--tech-bg);
}

a {
    color: var(--tech-accent);
}

.tech-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tech-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: #fff;
    border-bottom: 1px solid var(--tech-border);
}

.tech-topbar__brand {
    font-weight: 700;
}

.tech-topbar__user {
    margin-left: auto;
    color: var(--tech-text-muted);
    font-size: 0.9rem;
}

.tech-topbar__logout {
    text-decoration: none;
    font-size: 0.9rem;
}

.tech-content {
    padding: 28px 24px;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}

.tech-content h1 {
    margin: 0 0 16px;
    font-size: 1.3rem;
}

/* Formulaire de recherche */
.tech-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-search input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--tech-border);
    border-radius: 6px;
    font-size: 1rem;
    text-transform: uppercase;
}

.tech-search button {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    background: var(--tech-accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.tech-search button:hover {
    background: var(--tech-accent-dark);
}

/* Bouton générique (ex. Exporter en PDF) — mêmes tokens que .tech-search button */
.tech-btn {
    display: inline-block;
    padding: 9px 16px;
    border: none;
    border-radius: 6px;
    background: var(--tech-accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.tech-btn:hover {
    background: var(--tech-accent-dark);
}

.tech-export-actions {
    margin-bottom: 16px;
}

.tech-notice {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.92rem;
}

.tech-notice--error {
    background: var(--tech-danger-bg);
    color: var(--tech-danger);
}

.tech-notice--info {
    background: #fff;
    border: 1px solid var(--tech-border);
    color: var(--tech-text-muted);
}

/* Composant partagé lib/ReportView.php — classes .report-view* définies
   ici uniquement pour ce portail (voir doc du composant). */
.report-view {
    background: #fff;
    border: 1px solid var(--tech-border);
    border-radius: 8px;
    padding: 18px 20px;
}

.report-view__meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 12px;
    margin: 0 0 16px;
    font-size: 0.92rem;
}

.report-view__meta dt {
    color: var(--tech-text-muted);
}

.report-view__meta dd {
    margin: 0;
    font-weight: 600;
}

.report-view__text {
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--tech-bg);
    border: 1px solid var(--tech-border);
    border-radius: 6px;
    padding: 14px 16px;
    font-family: var(--tech-mono);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 16px;
}

.report-view__extra {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 12px;
    margin: 0 0 16px;
    font-size: 0.9rem;
}

.report-view__fallback summary {
    cursor: pointer;
    color: var(--tech-text-muted);
    font-size: 0.85rem;
}

.report-view__fallback pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--tech-mono);
    font-size: 0.8rem;
    background: var(--tech-bg);
    border: 1px solid var(--tech-border);
    border-radius: 6px;
    padding: 12px 14px;
    margin-top: 10px;
}

/* Page de connexion (indépendante du layout, pas de topbar) */
.tech-login-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tech-accent-dark);
    font-family: var(--tech-font);
}

.tech-login {
    background: #fff;
    padding: 32px 28px;
    border-radius: 8px;
    width: 100%;
    max-width: 320px;
}

.tech-login h1 {
    font-size: 1.1rem;
    margin: 0 0 20px;
}

.tech-login__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tech-login__form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #444;
}

.tech-login__form input {
    padding: 9px 10px;
    border: 1px solid var(--tech-border);
    border-radius: 6px;
    font-size: 0.95rem;
}

.tech-login__form button {
    margin-top: 6px;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: var(--tech-accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.tech-login__error {
    background: var(--tech-danger-bg);
    color: var(--tech-danger);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.88rem;
    margin: 0 0 16px;
}
