/* ── Orange theme overrides ── */
.bg-orange-dark {
  background-color: #e65100 !important;
}

.sidebar-orange {
  background-color: #fff3e0;
}

:root {
  --bs-primary:       #f57c00;
  --bs-primary-rgb:   245, 124, 0;
  --bs-link-color:    #e65100;
  --bs-link-hover-color: #bf4500;
  --bs-link-color-rgb: 230, 81, 0;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #ffb74d;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #ffffff;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/*************************************************/
/* layout princupale */
/* layout principal */
.app-shell {
    min-height: 100vh;
}

/* Sidebar: verrouille la largeur dans un container flex */
.app-sidebar {
    flex: 0 0 280px; /* IMPORTANT */
    width: 280px;
    flex-shrink: 0; /* IMPORTANT */
}

/* Mobile: la sidebar prend toute la largeur (stack) */
@media (max-width: 991.98px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }
}

.page-header {
    padding: .25rem 0;
    border-bottom: 1px solid #dee2e6;
}

    .page-header h3 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
    }
/* ── Charte UI (documentation/Plan/WebApp_Charte_UI.md) ── */
/* En-tête de page */
.page-header h3, .page-header h4 { font-weight: 600; }
.page-header .badge { vertical-align: middle; }

/* Cards KPI : 4 variantes du thème orange */
.kpi-card { color: #fff; }
.kpi-card-1 { background-color: #e65100; }
.kpi-card-2 { background-color: #f57c00; }
.kpi-card-3 { background-color: #ff9800; }
.kpi-card-4 { background-color: #ffb74d; }
.kpi-card h2 { font-size: 1.9rem; line-height: 1.1; }
.kpi-card .kpi-label { opacity: .8; }
.kpi-card .kpi-icon { font-size: 1.4rem; opacity: .7; display: block; margin-bottom: .25rem; }

/* Grille 12 mois */
.month-card-current { border: 2px solid #ffc107; }
.month-card-active { background-color: #e65100; color: #fff; }
.month-card-idle { background-color: #f8f9fa; color: #6c757d; }

/* Hub : cards de navigation */
.hub-card .card-header { background-color: #fff; font-weight: 600; }
.hub-card .btn { text-align: left; }

/* Card de section (listes, filtres, formulaires) */
.card-header-orange { background-color: #e65100; color: #fff; }
.card-header-orange .badge { background-color: #fff; color: #212529; }
.btn-orange { background-color: #f57c00; border-color: #f57c00; color: #fff; }
.btn-orange:hover { background-color: #e65100; border-color: #e65100; color: #fff; }

/* Tableaux CRUD */
.crud-table thead th { white-space: nowrap; }
.crud-table .crud-actions { white-space: nowrap; }
.crud-table td.col-actions { width: 1%; white-space: nowrap; text-align: right; }
.crud-table th.col-actions { width: 1%; text-align: right; }
.table-responsive.crud-scroll { max-height: 70vh; }
.table-responsive.crud-scroll thead th { position: sticky; top: 0; z-index: 1; background-color: #f8f9fa; }

/* Formulaires */
.form-section-title { font-weight: 600; margin-bottom: 1rem; }
.form-footer { border-top-color: #dee2e6 !important; }
textarea.code-area { font-family: var(--bs-font-monospace); font-size: .8rem; }
.readonly-xml { font-family: var(--bs-font-monospace); font-size: .8rem; white-space: pre-wrap; max-height: 60vh; overflow: auto; }
.text-prewrap { white-space: pre-wrap; }
.async-panel { position: relative; }
.async-panel-loading { font-size: .9rem; }
.trace-scroll { max-height: 520px; }
.section-title { font-weight: 600; margin-bottom: .75rem; }
/* Pastille du type de commerce (en-tete et tableau de bord) */
.shop-type-badge { font-weight: 500; font-size: .75rem; vertical-align: middle; }
.shop-type-inflight { background-color: #0d6efd; color: #fff; }
.shop-type-commerce { background-color: #e65100; color: #fff; }
.shop-type-artisan { background-color: #6f42c1; color: #fff; }
.shop-type-restaurant { background-color: #198754; color: #fff; }
.shop-type-delivery { background-color: #0dcaf0; color: #000; }
.shop-type-other { background-color: #6c757d; color: #fff; }
/* Tableau de bord MyShop */
.dash-kpi .dash-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.dash-kpi .dash-label { font-size: .8rem; color: #6c757d; text-transform: uppercase; letter-spacing: .03em; }
.dash-delta { font-size: .78rem; white-space: nowrap; }
.dash-chart svg { width: 100%; height: auto; display: block; }
.dash-heat td { width: 3.6%; height: 18px; padding: 0 !important; border: 1px solid #fff; }
.dash-section-title { font-weight: 600; margin: 1.5rem 0 .75rem; }
/* Charte UI - classes nommees (ex-styles inline specifiques, 2026-10-23) */
.bg-brand-warm { background-color: #ff9800; }
.bg-sidebar-head { background-color: #ffe0b2; }
.alert[data-degraded="true"] { background: #b71c1c; color: #fff; }
/* Bandeau environnement de recette (ACC), toujours visible : Views/Shared/_AccBanner.cshtml */
.env-acc-banner { position: sticky; top: 0; z-index: 1040; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .4rem 1rem; color: #111; font-size: .95rem; letter-spacing: .04em; text-align: center; background: repeating-linear-gradient(-45deg, #ffd600 0 18px, #ffea00 18px 36px); border-bottom: 4px solid #111; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.env-acc-banner .bi { font-size: 1.15rem; color: #b71c1c; }
.env-acc-banner strong { background: #111; color: #ffd600; padding: .05rem .5rem; border-radius: .2rem; }
.main-pane { min-width: 0; overflow: auto; }
.console-pane { max-height: 500px; overflow-y: auto; background: #1e1e1e; color: #d4d4d4; padding: 1rem; border-radius: .375rem; font-size: .85rem; white-space: pre-wrap; }
.log-pane { height: 65vh; overflow: auto; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.file-pane { white-space: pre-wrap; word-break: break-word; max-height: 70vh; overflow: auto; }
.file-pane.file-pane-short { max-height: 65vh; }
.catalog-tile { flex: 0 0 25%; box-sizing: border-box; padding: 10px; cursor: pointer; }
.catalog-tile-box { border: 1px solid #ddd; border-radius: 4px; height: 0; padding-bottom: 60%; position: relative; }
.catalog-tile-content { position: absolute; inset: 0; padding: 15px; }
.catalog-tile-title { margin: 0 0 10px; font-size: 16px; }
.dash-legend-current { background: #e65100; }
.dash-legend-previous { background: #ffcc80; }
.dash-heat td.dash-heat-hour { height: auto; font-size: .6rem; }
/* Charte UI - pages de connexion (Areas/Identity/Pages/_AuthLayout.cshtml, 2026-10-30) */
.auth-body { background-color: #fff8f0; margin-bottom: 0; }
.auth-container { max-width: 1040px; }
.auth-narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.auth-brand { font-weight: 600; font-size: 1.15rem; }
.auth-brand-logo { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.auth-brand-sub { font-weight: 400; opacity: .85; }
.auth-lang .dropdown-item.active, .auth-lang .dropdown-item:active { background-color: #f57c00; color: #fff; }
.auth-welcome { border: 0; border-left: 6px solid #e65100; border-radius: .75rem; background: linear-gradient(135deg, #ffffff 0%, #fff3e0 100%); }
.auth-welcome h1 { font-size: 1.6rem; font-weight: 700; margin: 0 0 .35rem; color: #212529; }
.auth-welcome-lead { color: #bf4500; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; }
.auth-welcome-icon { width: 56px; height: 56px; border-radius: 50%; background-color: #e65100; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; }
.auth-badge { background-color: #fff; color: #bf4500; border: 1px solid #ffcc80; font-weight: 500; }
.auth-card { border: 0; border-radius: .75rem; overflow: hidden; }
.auth-card .card-header { padding: .85rem 1.25rem; font-weight: 600; }
.auth-card .card-footer { border-top-color: #f1e3d3; }
.auth-sso-card .card-header { background-color: #fff3e0; color: #bf4500; }
.auth-header-danger { background-color: #b71c1c; color: #fff; }
.auth-sso-button { white-space: normal; }
.auth-status-icon { font-size: 2.25rem; line-height: 1; }
.auth-validation.validation-summary-valid { display: none; }
.auth-validation.validation-summary-errors { color: #842029; background-color: #f8d7da; border: 1px solid #f5c2c7; border-radius: .375rem; padding: .6rem .9rem; margin-bottom: 1rem; }
.auth-validation ul { margin: 0; padding-left: 1.1rem; }
.auth-body .form-check-input:checked { background-color: #f57c00; border-color: #f57c00; }
.auth-body .form-floating > .form-control::placeholder { color: transparent; }
.auth-recaptcha { min-height: 78px; }
.auth-footer { font-size: .85rem; }
.btn-outline-orange { color: #e65100; border-color: #f57c00; background-color: transparent; }
.btn-outline-orange:hover, .btn-outline-orange:focus, .btn-outline-orange:active { color: #fff; background-color: #f57c00; border-color: #f57c00; }
@media (min-width: 576px) {
  .auth-secondary-actions { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
@media (max-width: 575.98px) {
  .auth-welcome h1 { font-size: 1.3rem; }
}
/* charte-utilities:start */
/* Charte UI - utilitaires (ex-styles inline, generes par documentation/Plan/tools/inline_style_to_classes.py) */
.bg-brand-dark { background-color: #e65100; }
.bg-brand { background-color: #f57c00; }
.bg-brand-light { background-color: #fff3e0; }
.text-brand { color: #e65100; }
.cursor-pointer { cursor: pointer; }
.overflow-y-auto { overflow-y: auto; }
.overflow-y-scroll { overflow-y: scroll; }
.fs-0_75em { font-size: 0.75em; }
.fs-0_7rem { font-size: .7rem; }
.fs-12px { font-size: 12px; }
.fs-30px { font-size: 30px !important; }
.h-12px { height: 12px; }
.h-14px { height: 14px; }
.h-1500px { height: 1500px; }
.h-150px { height: 150px; }
.h-16px { height: 16px; }
.h-25px { height: 25px; }
.h-30px { height: 30px; }
.h-3px { height: 3px; }
.h-500px { height: 500px; }
.h-50px { height: 50px; }
.h-65vh { height: 65vh; }
.h-6px { height: 6px; }
.maxh-220px { max-height: 220px; }
.maxh-250px { max-height: 250px; }
.maxh-260px { max-height: 260px; }
.maxh-300px { max-height: 300px; }
.maxh-500px { max-height: 500px; }
.maxh-60vh { max-height: 60vh; }
.maxh-65vh { max-height: 65vh; }
.maxh-70vh { max-height: 70vh; }
.maxh-80px { max-height: 80px; }
.maxh-90px { max-height: 90px; }
.maxw-120px { max-width: 120px; }
.maxw-130px { max-width: 130px; }
.maxw-140px { max-width: 140px; }
.maxw-220px { max-width: 220px; }
.maxw-250px { max-width: 250px; }
.maxw-260px { max-width: 260px; }
.maxw-300px { max-width: 300px; }
.maxw-360px { max-width: 360px; }
.maxw-380px { max-width: 380px; }
.maxw-420px { max-width: 420px; }
.maxw-460px { max-width: 460px; }
.maxw-70pct { max-width: 70%; }
.maxw-80px { max-width: 80px; }
.maxw-90px { max-width: 90px; }
.minw-100px { min-width: 100px; }
.minw-110px { min-width: 110px; }
.minw-120px { min-width: 120px; }
.minw-140px { min-width: 140px; }
.minw-150px { min-width: 150px; }
.minw-160px { min-width: 160px; }
.minw-260px { min-width: 260px; }
.minw-280px { min-width: 280px; }
.minw-420px { min-width: 420px; }
.minw-90px { min-width: 90px; }
.pb-2px { padding-bottom: 2px; }
.pe-15px { padding-right: 15px; }
.pe-2px { padding-right: 2px; }
.ps-2px { padding-left: 2px; }
.pt-4px { padding-top: 4px; }
.w-110px { width: 110px; }
.w-120px { width: 120px; }
.w-130px { width: 130px; }
.w-140px { width: 140px; }
.w-150px { width: 150px; }
.w-160px { width: 160px; }
.w-170px { width: 170px; }
.w-180px { width: 180px; }
.w-18pct { width: 18%; }
.w-190px { width: 190px; }
.w-1pct { width: 1%; }
.w-200px { width: 200px; }
.w-210px { width: 210px; }
.w-220px { width: 220px; }
.w-230px { width: 230px; }
.w-240px { width: 240px; }
.w-25px { width: 25px; }
.w-280px { width: 280px; }
.w-28px { width: 28px; }
.w-30pct { width: 30%; }
.w-30px { width: 30px; }
.w-32pct { width: 32%; }
.w-32px { width: 32px; }
.w-330px { width: 330px; }
.w-34px { width: 34px; }
.w-40px { width: 40px; }
.w-42px { width: 42px; }
.w-48px { width: 48px; }
.w-500px { width: 500px; }
.w-60px { width: 60px; }
.w-70px { width: 70px; }
.w-80px { width: 80px; }
.w-90px { width: 90px; }
/* charte-utilities:end */
