/* =========================================================
   RIVA APM — FEUILLE DE STYLE COMMUNE
   ---------------------------------------------------------
   Tokens de design + reset + composants réutilisables.
   Reprend à l'identique la charte du frontend Next.js
   (src/app/globals.css) en CSS pur.
   ========================================================= */


/* =========================================================
   1. TOKENS
   ========================================================= */

:root {
  /* Marque */
  --riva-primary: #2563eb;
  --riva-primary-hover: #1d4ed8;
  --riva-primary-light: #d4dde9;
  --riva-primary-border: #a7c2e2;

  /* Neutres */
  --riva-background: #ffffff;
  --riva-background-app: #e9eef4;
  --riva-background-muted: #dfe3e8;
  --riva-background-subtle: #e5e8ec;

  --riva-foreground: #1f2937;
  --riva-foreground-secondary: #475569;
  --riva-muted: #64748b;
  --riva-muted-light: #94a3b8;

  --riva-border: #e2e8f0;
  --riva-border-strong: #cbd5e1;

  /* Contour des cartes : volontairement plus marqué que les
     séparateurs internes, pour détacher la carte du fond. */
  --riva-card-border: #c3cedd;
  --riva-card-border-hover: #94a3b8;

  /* Séparations structurelles : trait entre la barre latérale
     et le contenu, bas de l'en-tête. Plus soutenu que le
     contour des cartes, car il structure la page entière. */
  --riva-divider: #d7dbe1;

  /* Contour des champs et boutons, pour qu'ils restent
     lisibles sur le fond gris. */
  --riva-control-border: #ccd4e0;

  /* Slate (équivalents Tailwind utilisés par le Next.js) */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Sémantique */
  --riva-success: #16a34a;
  --riva-success-light: #f0fdf4;

  --riva-warning: #ea580c;
  --riva-warning-light: #fff7ed;

  --riva-destructive: #dc2626;
  --riva-destructive-light: #fef2f2;

  /* Criticité */
  --criticality-aa: #dc2626;
  --criticality-aa-bg: #fef2f2;

  --criticality-a: #ea580c;
  --criticality-a-bg: #fff7ed;

  --criticality-b: #2563eb;
  --criticality-b-bg: #eff6ff;

  --criticality-c: #16a34a;
  --criticality-c-bg: #f0fdf4;

  --criticality-none: #64748b;
  --criticality-none-bg: #f1f5f9;

  /* Gabarit */
  --sidebar-width: 260px;
  --sidebar-width-collapsed: 72px;
  --header-height: 64px;

  /* Formes */
  --riva-radius: 10px;
  --riva-radius-sm: 7px;
  --riva-radius-lg: 14px;

  /* Ombres */
  --riva-shadow-sm:
    0 1px 2px rgba(15, 23, 42, .06),
    0 2px 4px rgba(15, 23, 42, .08);

  --riva-shadow:
    0 2px 4px rgba(15, 23, 42, .08),
    0 4px 10px rgba(15, 23, 42, .10);

  --riva-shadow-md: 0 6px 16px rgba(15, 23, 42, .12);
  --riva-shadow-lg: 0 12px 38px rgba(15, 23, 42, .18);

  /* Typographie */
  --riva-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}


/* =========================================================
   2. RESET / BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  background: var(--riva-background-app);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;

  background: var(--riva-background-app);
  color: var(--riva-foreground);

  font-family: var(--riva-font);
  font-size: 14px;
  line-height: 1.5;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

svg {
  flex: none;
}

::selection {
  background: var(--riva-primary-light);
  color: var(--riva-primary-hover);
}

:focus-visible {
  outline: 2px solid var(--riva-primary);
  outline-offset: 2px;
}

.riva-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.riva-mono {
  font-variant-numeric: tabular-nums;
}

.riva-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* =========================================================
   3. BARRE DE DÉFILEMENT
   ========================================================= */

* {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
  border: 2px solid transparent;
  background-clip: padding-box;
}


/* =========================================================
   4. PAGE
   ========================================================= */

.riva-page-content {
  width: 100%;
  padding: 16px;
}

@media (min-width: 768px) {
  .riva-page-content {
    padding: 24px;
  }
}

.riva-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 24px;
}

.riva-page-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.riva-page-title {
  color: var(--riva-foreground);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.riva-page-subtitle {
  color: var(--riva-muted);
  font-size: 14px;
  line-height: 1.5;
}

.riva-page-meta {
  font-size: 12px;
  color: var(--slate-400);
}

.riva-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}


/* =========================================================
   5. SECTIONS / GRILLES
   ========================================================= */

.riva-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.riva-section + .riva-section {
  margin-top: 24px;
}

.riva-section-title {
  color: var(--riva-foreground);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.riva-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.riva-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.riva-grid {
  display: grid;
  gap: 16px;
}

.riva-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.riva-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.riva-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .riva-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .riva-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .riva-grid-2,
  .riva-grid-3,
  .riva-grid-4 { grid-template-columns: minmax(0, 1fr); }
}


/* =========================================================
   6. CARTES
   ========================================================= */

.riva-card {
  background: var(--riva-background);
  border: 1px solid var(--riva-card-border);
  border-radius: var(--riva-radius);
  box-shadow: var(--riva-shadow-sm);
}

.riva-card-pad {
  padding: 16px;
}

.riva-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 14px 16px;
  border-bottom: 1px solid var(--riva-border);
}

.riva-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-800);
}

.riva-card-body {
  padding: 16px;
}

.riva-card-hover {
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.riva-card-hover:hover {
  border-color: var(--riva-card-border-hover);
  box-shadow: var(--riva-shadow);
}


/* =========================================================
   7. BOUTONS
   ========================================================= */

.riva-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  height: 36px;
  padding: 0 14px;

  border: 1px solid transparent;
  border-radius: 8px;

  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;

  transition: background-color 130ms ease, border-color 130ms ease,
    color 130ms ease, opacity 130ms ease;
}

.riva-btn svg {
  width: 16px;
  height: 16px;
}

.riva-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.riva-btn-primary {
  background: var(--riva-primary);
  color: #fff;
}

.riva-btn-primary:hover:not(:disabled) {
  background: var(--riva-primary-hover);
}

.riva-btn-outline {
  background: #fff;
  border-color: var(--riva-control-border);
  color: var(--slate-700);
}

.riva-btn-outline:hover:not(:disabled) {
  background: var(--slate-50);
  border-color: var(--riva-card-border-hover);
}

.riva-btn-ghost {
  background: transparent;
  color: var(--slate-600);
}

.riva-btn-ghost:hover:not(:disabled) {
  background: var(--slate-100);
  color: var(--slate-900);
}

.riva-btn-danger {
  background: var(--riva-destructive);
  color: #fff;
}

.riva-btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}

.riva-btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 7px;
}

.riva-btn-sm svg {
  width: 14px;
  height: 14px;
}

.riva-btn-lg {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.riva-btn-block {
  width: 100%;
}

/* Bouton icône carré */
.riva-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  background: transparent;
  border: none;
  border-radius: 8px;

  color: var(--slate-600);
  transition: background-color 130ms ease, color 130ms ease;
}

.riva-icon-btn svg {
  width: 18px;
  height: 18px;
}

.riva-icon-btn:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.riva-icon-btn-danger:hover {
  background: var(--riva-destructive-light);
  color: var(--riva-destructive);
}


/* =========================================================
   8. FORMULAIRES
   ========================================================= */

.riva-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.riva-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-700);
}

.riva-input,
.riva-select,
.riva-textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;

  background: #fff;
  border: 1px solid var(--riva-control-border);
  border-radius: 8px;

  font-size: 14px;
  color: var(--riva-foreground);

  transition: border-color 130ms ease, box-shadow 130ms ease;
}

.riva-textarea {
  height: auto;
  min-height: 90px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}

.riva-input::placeholder,
.riva-textarea::placeholder {
  color: var(--slate-400);
}

.riva-input:focus,
.riva-select:focus,
.riva-textarea:focus {
  outline: none;
  border-color: var(--riva-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.riva-input:disabled,
.riva-select:disabled,
.riva-textarea:disabled {
  background: var(--slate-50);
  color: var(--slate-400);
  cursor: not-allowed;
}

.riva-select {
  appearance: none;
  padding-right: 32px;
  cursor: pointer;

  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Champ avec icône à gauche */
.riva-input-wrap {
  position: relative;
}

.riva-input-wrap > svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);

  width: 16px;
  height: 16px;
  color: var(--slate-400);
  pointer-events: none;
}

.riva-input-wrap .riva-input {
  padding-left: 36px;
}

.riva-input-wrap .riva-input-suffix {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--slate-400);
}

.riva-input-wrap .riva-input-suffix:hover {
  color: var(--slate-700);
  background: var(--slate-100);
}

.riva-input-wrap .riva-input-suffix svg {
  width: 16px;
  height: 16px;
}


/* =========================================================
   9. TABLEAUX
   ========================================================= */

.riva-table-container {
  overflow-x: auto;
  background: var(--riva-background);
  border: 1px solid var(--riva-card-border);
  border-radius: var(--riva-radius);
  box-shadow: var(--riva-shadow-sm);
}

.riva-table {
  width: 100%;
  border-collapse: collapse;
}

.riva-table thead {
  background: var(--slate-50);
}

.riva-table th {
  height: 42px;
  padding: 0 16px;

  border-bottom: 1px solid var(--riva-border);

  color: var(--riva-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.riva-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--riva-border);
  color: var(--riva-foreground-secondary);
  vertical-align: middle;
}

.riva-table tbody tr {
  transition: background-color 120ms ease;
}

.riva-table tbody tr:hover {
  background: #fafcff;
}

.riva-table tbody tr:last-child td {
  border-bottom: none;
}

.riva-table-clickable tbody tr {
  cursor: pointer;
}

.riva-table .riva-cell-strong {
  color: var(--slate-800);
  font-weight: 500;
}

.riva-table .riva-cell-right {
  text-align: right;
}


/* =========================================================
   10. BADGES
   ========================================================= */

.riva-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;

  min-height: 22px;
  padding: 2px 8px;

  border: 1px solid transparent;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.riva-badge svg {
  width: 12px;
  height: 12px;
}

/* Criticité */
.riva-criticality-aa { color: #b91c1c; background: var(--criticality-aa-bg); border-color: #fecaca; }
.riva-criticality-a  { color: #c2410c; background: var(--criticality-a-bg);  border-color: #fed7aa; }
.riva-criticality-b  { color: #1d4ed8; background: var(--criticality-b-bg);  border-color: #bfdbfe; }
.riva-criticality-c  { color: #15803d; background: var(--criticality-c-bg);  border-color: #bbf7d0; }
.riva-criticality-none { color: #475569; background: var(--criticality-none-bg); border-color: #e2e8f0; }

/* Statut */
.riva-status-success { color: #15803d; background: var(--riva-success-light); border-color: #bbf7d0; }
.riva-status-warning { color: #c2410c; background: var(--riva-warning-light); border-color: #fed7aa; }
.riva-status-danger  { color: #b91c1c; background: var(--riva-destructive-light); border-color: #fecaca; }
.riva-status-info    { color: #1d4ed8; background: var(--riva-primary-light); border-color: var(--riva-primary-border); }
.riva-status-neutral { color: #475569; background: #f8fafc; border-color: #e2e8f0; }



/* =========================================================
   10 bis. CARTES D'INDICATEUR (KPI)
   ---------------------------------------------------------
   Composant partagé par toutes les pages, pour que les
   indicateurs aient partout la même apparence.

   Structure :

     <article class="riva-kpi">
       <div class="riva-kpi-top">
         <span class="riva-kpi-label">Libellé</span>
         <span class="riva-kpi-icon"><svg/></span>
       </div>
       <div class="riva-kpi-value">42</div>
       <div class="riva-kpi-desc">Précision</div>   (facultatif)
     </article>
   ========================================================= */

.riva-kpi-grid {
  display: grid;
  gap: 12px;

  /* S'adapte au nombre d'indicateurs de la page sans
     imposer un nombre de colonnes par écran. */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .riva-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.riva-kpi {
  display: flex;
  flex-direction: column;
  gap: 10px;

  padding: 14px;

  background: var(--riva-background);
  border: 1px solid var(--riva-card-border);
  border-radius: 12px;
  box-shadow: var(--riva-shadow-sm);

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.riva-kpi:hover {
  border-color: var(--riva-card-border-hover);
  box-shadow: var(--riva-shadow);
}

.riva-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.riva-kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-500);
}

.riva-kpi-icon {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;
  flex: none;

  background: var(--slate-100);
  border-radius: 8px;
  color: var(--slate-500);
}

.riva-kpi-icon svg {
  width: 16px;
  height: 16px;
}

.riva-kpi-value {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
}

.riva-kpi-desc {
  font-size: 11.5px;
  color: var(--slate-400);
}


/* ---- État d'alerte ---- */

.riva-kpi.is-alert {
  border-color: #ef9a9a;
  background: #fffbfb;
}

.riva-kpi.is-alert .riva-kpi-icon {
  background: var(--riva-destructive-light);
  color: var(--riva-destructive);
}

.riva-kpi.is-alert .riva-kpi-value {
  color: #b91c1c;
}


/* =========================================================
   11. ALERTES
   ========================================================= */

.riva-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;

  font-size: 13px;
  line-height: 1.45;
}

.riva-alert svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.riva-alert-error {
  background: var(--riva-destructive-light);
  border-color: #fecaca;
  color: #b91c1c;
}

.riva-alert-warning {
  background: var(--riva-warning-light);
  border-color: #fed7aa;
  color: #c2410c;
}

.riva-alert-info {
  background: var(--riva-primary-light);
  border-color: var(--riva-primary-border);
  color: #1d4ed8;
}

.riva-alert-success {
  background: var(--riva-success-light);
  border-color: #bbf7d0;
  color: #15803d;
}


/* =========================================================
   12. ÉTATS (chargement / vide)
   ========================================================= */

.riva-spinner {
  animation: riva-spin 900ms linear infinite;
}

@keyframes riva-spin {
  to { transform: rotate(360deg); }
}

.riva-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 180px;
  color: var(--riva-muted);
  font-size: 13px;
}

.riva-loading svg {
  width: 20px;
  height: 20px;
  color: var(--riva-primary);
}

.riva-skeleton {
  background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%);
  background-size: 400% 100%;
  border-radius: 6px;
  animation: riva-shimmer 1.4s ease infinite;
}

@keyframes riva-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.riva-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 48px 24px;
  text-align: center;
}

.riva-empty-icon {
  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  background: var(--slate-100);
  border-radius: 12px;
  color: var(--slate-400);
}

.riva-empty-icon svg {
  width: 22px;
  height: 22px;
}

.riva-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
}

.riva-empty-text {
  font-size: 13px;
  color: var(--riva-muted);
  max-width: 42ch;
}


/* =========================================================
   13. NOTIFICATIONS (toast)
   ========================================================= */

.riva-toaster {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;

  display: flex;
  flex-direction: column;
  gap: 8px;

  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.riva-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 12px 14px;

  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  box-shadow: var(--riva-shadow-md);

  font-size: 13px;
  color: var(--slate-700);

  pointer-events: auto;
  animation: riva-toast-in 180ms ease-out;
}

.riva-toast.riva-toast-out {
  animation: riva-toast-out 160ms ease-in forwards;
}

.riva-toast svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.riva-toast-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.riva-toast-error   { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.riva-toast-warning { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.riva-toast-info    { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

@keyframes riva-toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes riva-toast-out {
  to { opacity: 0; transform: translateX(16px); }
}


/* =========================================================
   14. BOÎTES DE DIALOGUE
   ========================================================= */

.riva-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;

  display: grid;
  place-items: center;
  padding: 16px;

  background: rgba(15, 23, 42, .32);
  backdrop-filter: blur(1px);

  animation: riva-fade-in 140ms ease-out;
}

.riva-dialog {
  width: 100%;
  max-width: 460px;

  background: #fff;
  border-radius: 12px;
  box-shadow: var(--riva-shadow-lg);

  animation: riva-dialog-in 160ms ease-out;
}

@keyframes riva-dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.riva-dialog-header {
  padding: 18px 20px 0;
}

.riva-dialog-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-900);
}

.riva-dialog-body {
  padding: 10px 20px 0;
  font-size: 13.5px;
  color: var(--riva-muted);
  line-height: 1.55;
}

.riva-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px 20px 20px;
}


/* =========================================================
   15. ANIMATIONS
   ========================================================= */

@keyframes riva-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.riva-fade-in {
  animation: riva-fade-in 180ms ease-out;
}


/* =========================================================
   16. IMPRESSION
   ========================================================= */

@media print {
  .riva-no-print,
  .riva-sidebar,
  .riva-header {
    display: none !important;
  }

  .riva-main {
    padding-left: 0 !important;
  }
}
